@datadog/datadog-api-client 1.19.0 → 1.20.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +25 -0
- package/dist/packages/datadog-api-client-common/configuration.js +4 -4
- package/dist/packages/datadog-api-client-common/configuration.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/apis/HostsApi.d.ts +1 -1
- package/dist/packages/datadog-api-client-v1/apis/HostsApi.js +1 -1
- package/dist/packages/datadog-api-client-v1/apis/SyntheticsApi.d.ts +28 -1
- package/dist/packages/datadog-api-client-v1/apis/SyntheticsApi.js +87 -0
- package/dist/packages/datadog-api-client-v1/apis/SyntheticsApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/index.d.ts +4 -1
- package/dist/packages/datadog-api-client-v1/index.js +8 -4
- package/dist/packages/datadog-api-client-v1/index.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/models/AzureAccount.d.ts +6 -1
- package/dist/packages/datadog-api-client-v1/models/AzureAccount.js +4 -0
- package/dist/packages/datadog-api-client-v1/models/AzureAccount.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/models/ObjectSerializer.js +14 -0
- package/dist/packages/datadog-api-client-v1/models/ObjectSerializer.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/models/SyntheticsPatchTestBody.d.ts +29 -0
- package/dist/packages/datadog-api-client-v1/models/SyntheticsPatchTestBody.js +26 -0
- package/dist/packages/datadog-api-client-v1/models/SyntheticsPatchTestBody.js.map +1 -0
- package/dist/packages/datadog-api-client-v1/models/SyntheticsPatchTestOperation.d.ts +37 -0
- package/dist/packages/datadog-api-client-v1/models/SyntheticsPatchTestOperation.js +34 -0
- package/dist/packages/datadog-api-client-v1/models/SyntheticsPatchTestOperation.js.map +1 -0
- package/dist/packages/datadog-api-client-v1/models/SyntheticsPatchTestOperationName.d.ts +16 -0
- package/dist/packages/datadog-api-client-v1/models/SyntheticsPatchTestOperationName.js +15 -0
- package/dist/packages/datadog-api-client-v1/models/SyntheticsPatchTestOperationName.js.map +1 -0
- package/dist/packages/datadog-api-client-v1/models/UsageSummaryDateOrg.d.ts +8 -0
- package/dist/packages/datadog-api-client-v1/models/UsageSummaryDateOrg.js +10 -0
- package/dist/packages/datadog-api-client-v1/models/UsageSummaryDateOrg.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/models/UsageSummaryResponse.d.ts +8 -0
- package/dist/packages/datadog-api-client-v1/models/UsageSummaryResponse.js +10 -0
- package/dist/packages/datadog-api-client-v1/models/UsageSummaryResponse.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/models/WidgetLiveSpan.d.ts +3 -1
- package/dist/packages/datadog-api-client-v1/models/WidgetLiveSpan.js +3 -1
- package/dist/packages/datadog-api-client-v1/models/WidgetLiveSpan.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/apis/ContainerImagesApi.js +0 -4
- package/dist/packages/datadog-api-client-v2/apis/ContainerImagesApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/apis/ContainersApi.js +0 -4
- package/dist/packages/datadog-api-client-v2/apis/ContainersApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/apis/DORAMetricsApi.d.ts +66 -0
- package/dist/packages/datadog-api-client-v2/apis/DORAMetricsApi.js +228 -0
- package/dist/packages/datadog-api-client-v2/apis/DORAMetricsApi.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/apis/EventsApi.js +0 -8
- package/dist/packages/datadog-api-client-v2/apis/EventsApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/apis/OktaIntegrationApi.d.ts +118 -0
- package/dist/packages/datadog-api-client-v2/apis/OktaIntegrationApi.js +423 -0
- package/dist/packages/datadog-api-client-v2/apis/OktaIntegrationApi.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/apis/UsageMeteringApi.d.ts +115 -0
- package/dist/packages/datadog-api-client-v2/apis/UsageMeteringApi.js +277 -0
- package/dist/packages/datadog-api-client-v2/apis/UsageMeteringApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/index.d.ts +59 -1
- package/dist/packages/datadog-api-client-v2/index.js +115 -20
- package/dist/packages/datadog-api-client-v2/index.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/models/APIKeysResponse.d.ts +5 -0
- package/dist/packages/datadog-api-client-v2/models/APIKeysResponse.js +4 -0
- package/dist/packages/datadog-api-client-v2/models/APIKeysResponse.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/models/APIKeysResponseMeta.d.ts +33 -0
- package/dist/packages/datadog-api-client-v2/models/APIKeysResponseMeta.js +31 -0
- package/dist/packages/datadog-api-client-v2/models/APIKeysResponseMeta.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/APIKeysResponseMetaPage.d.ts +28 -0
- package/dist/packages/datadog-api-client-v2/models/APIKeysResponseMetaPage.js +32 -0
- package/dist/packages/datadog-api-client-v2/models/APIKeysResponseMetaPage.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/ActiveBillingDimensionsAttributes.d.ts +32 -0
- package/dist/packages/datadog-api-client-v2/models/ActiveBillingDimensionsAttributes.js +36 -0
- package/dist/packages/datadog-api-client-v2/models/ActiveBillingDimensionsAttributes.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/ActiveBillingDimensionsBody.d.ts +38 -0
- package/dist/packages/datadog-api-client-v2/models/ActiveBillingDimensionsBody.js +34 -0
- package/dist/packages/datadog-api-client-v2/models/ActiveBillingDimensionsBody.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/ActiveBillingDimensionsResponse.d.ts +29 -0
- package/dist/packages/datadog-api-client-v2/models/ActiveBillingDimensionsResponse.js +26 -0
- package/dist/packages/datadog-api-client-v2/models/ActiveBillingDimensionsResponse.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/ActiveBillingDimensionsType.d.ts +11 -0
- package/dist/packages/datadog-api-client-v2/models/ActiveBillingDimensionsType.js +10 -0
- package/dist/packages/datadog-api-client-v2/models/ActiveBillingDimensionsType.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/ApplicationKeyResponseMeta.d.ts +33 -0
- package/dist/packages/datadog-api-client-v2/models/ApplicationKeyResponseMeta.js +31 -0
- package/dist/packages/datadog-api-client-v2/models/ApplicationKeyResponseMeta.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/ApplicationKeyResponseMetaPage.d.ts +28 -0
- package/dist/packages/datadog-api-client-v2/models/ApplicationKeyResponseMetaPage.js +32 -0
- package/dist/packages/datadog-api-client-v2/models/ApplicationKeyResponseMetaPage.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/CloudWorkloadSecurityAgentRuleAttributes.d.ts +4 -0
- package/dist/packages/datadog-api-client-v2/models/CloudWorkloadSecurityAgentRuleAttributes.js +4 -0
- package/dist/packages/datadog-api-client-v2/models/CloudWorkloadSecurityAgentRuleAttributes.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/models/CostAttributionAggregatesBody.d.ts +36 -0
- package/dist/packages/datadog-api-client-v2/models/CostAttributionAggregatesBody.js +40 -0
- package/dist/packages/datadog-api-client-v2/models/CostAttributionAggregatesBody.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/CostAttributionType.d.ts +11 -0
- package/dist/packages/datadog-api-client-v2/models/CostAttributionType.js +10 -0
- package/dist/packages/datadog-api-client-v2/models/CostAttributionType.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/DORADeploymentRequest.d.ts +29 -0
- package/dist/packages/datadog-api-client-v2/models/DORADeploymentRequest.js +27 -0
- package/dist/packages/datadog-api-client-v2/models/DORADeploymentRequest.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/DORADeploymentRequestAttributes.d.ts +49 -0
- package/dist/packages/datadog-api-client-v2/models/DORADeploymentRequestAttributes.js +51 -0
- package/dist/packages/datadog-api-client-v2/models/DORADeploymentRequestAttributes.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/DORADeploymentRequestData.d.ts +29 -0
- package/dist/packages/datadog-api-client-v2/models/DORADeploymentRequestData.js +27 -0
- package/dist/packages/datadog-api-client-v2/models/DORADeploymentRequestData.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/DORADeploymentResponse.d.ts +29 -0
- package/dist/packages/datadog-api-client-v2/models/DORADeploymentResponse.js +27 -0
- package/dist/packages/datadog-api-client-v2/models/DORADeploymentResponse.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/DORADeploymentResponseData.d.ts +33 -0
- package/dist/packages/datadog-api-client-v2/models/DORADeploymentResponseData.js +31 -0
- package/dist/packages/datadog-api-client-v2/models/DORADeploymentResponseData.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/DORADeploymentType.d.ts +11 -0
- package/dist/packages/datadog-api-client-v2/models/DORADeploymentType.js +10 -0
- package/dist/packages/datadog-api-client-v2/models/DORADeploymentType.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/DORAGitInfo.d.ts +32 -0
- package/dist/packages/datadog-api-client-v2/models/DORAGitInfo.js +37 -0
- package/dist/packages/datadog-api-client-v2/models/DORAGitInfo.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/DORAIncidentRequest.d.ts +29 -0
- package/dist/packages/datadog-api-client-v2/models/DORAIncidentRequest.js +27 -0
- package/dist/packages/datadog-api-client-v2/models/DORAIncidentRequest.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/DORAIncidentRequestAttributes.d.ts +57 -0
- package/dist/packages/datadog-api-client-v2/models/DORAIncidentRequestAttributes.js +58 -0
- package/dist/packages/datadog-api-client-v2/models/DORAIncidentRequestAttributes.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/DORAIncidentRequestData.d.ts +29 -0
- package/dist/packages/datadog-api-client-v2/models/DORAIncidentRequestData.js +27 -0
- package/dist/packages/datadog-api-client-v2/models/DORAIncidentRequestData.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/DORAIncidentResponse.d.ts +29 -0
- package/dist/packages/datadog-api-client-v2/models/DORAIncidentResponse.js +27 -0
- package/dist/packages/datadog-api-client-v2/models/DORAIncidentResponse.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/DORAIncidentResponseData.d.ts +33 -0
- package/dist/packages/datadog-api-client-v2/models/DORAIncidentResponseData.js +31 -0
- package/dist/packages/datadog-api-client-v2/models/DORAIncidentResponseData.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/DORAIncidentType.d.ts +11 -0
- package/dist/packages/datadog-api-client-v2/models/DORAIncidentType.js +10 -0
- package/dist/packages/datadog-api-client-v2/models/DORAIncidentType.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/FullAPIKeyAttributes.d.ts +8 -0
- package/dist/packages/datadog-api-client-v2/models/FullAPIKeyAttributes.js +8 -0
- package/dist/packages/datadog-api-client-v2/models/FullAPIKeyAttributes.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentLinkAttributes.d.ts +4 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentLinkAttributes.js +5 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentLinkAttributes.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/models/IncidentCreateRelationships.d.ts +1 -1
- package/dist/packages/datadog-api-client-v2/models/IncidentImpactsType.d.ts +11 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentImpactsType.js +10 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentImpactsType.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentIntegrationMetadataAttributes.d.ts +8 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentIntegrationMetadataAttributes.js +10 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentIntegrationMetadataAttributes.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/models/IncidentIntegrationMetadataResponseData.d.ts +5 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentIntegrationMetadataResponseData.js +4 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentIntegrationMetadataResponseData.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/models/IncidentIntegrationRelationships.d.ts +33 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentIntegrationRelationships.js +30 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentIntegrationRelationships.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentNonDatadogCreator.d.ts +32 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentNonDatadogCreator.js +35 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentNonDatadogCreator.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentRespondersType.d.ts +11 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentRespondersType.js +10 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentRespondersType.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentResponseAttributes.d.ts +26 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentResponseAttributes.js +26 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentResponseAttributes.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/models/IncidentResponseRelationships.d.ts +15 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentResponseRelationships.js +12 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentResponseRelationships.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/models/IncidentSeverity.d.ts +16 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentSeverity.js +15 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentSeverity.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentTodoAttributes.d.ts +8 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentTodoAttributes.js +10 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentTodoAttributes.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/models/IncidentTodoRelationships.d.ts +33 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentTodoRelationships.js +30 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentTodoRelationships.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentTodoResponseData.d.ts +5 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentTodoResponseData.js +4 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentTodoResponseData.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/models/IncidentUserDefinedFieldType.d.ts +11 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentUserDefinedFieldType.js +10 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentUserDefinedFieldType.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/ListApplicationKeysResponse.d.ts +5 -0
- package/dist/packages/datadog-api-client-v2/models/ListApplicationKeysResponse.js +4 -0
- package/dist/packages/datadog-api-client-v2/models/ListApplicationKeysResponse.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/models/MonthlyCostAttributionAttributes.d.ts +57 -0
- package/dist/packages/datadog-api-client-v2/models/MonthlyCostAttributionAttributes.js +56 -0
- package/dist/packages/datadog-api-client-v2/models/MonthlyCostAttributionAttributes.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/MonthlyCostAttributionBody.d.ts +38 -0
- package/dist/packages/datadog-api-client-v2/models/MonthlyCostAttributionBody.js +34 -0
- package/dist/packages/datadog-api-client-v2/models/MonthlyCostAttributionBody.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/MonthlyCostAttributionMeta.d.ts +34 -0
- package/dist/packages/datadog-api-client-v2/models/MonthlyCostAttributionMeta.js +30 -0
- package/dist/packages/datadog-api-client-v2/models/MonthlyCostAttributionMeta.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/MonthlyCostAttributionPagination.d.ts +28 -0
- package/dist/packages/datadog-api-client-v2/models/MonthlyCostAttributionPagination.js +31 -0
- package/dist/packages/datadog-api-client-v2/models/MonthlyCostAttributionPagination.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/MonthlyCostAttributionResponse.d.ts +34 -0
- package/dist/packages/datadog-api-client-v2/models/MonthlyCostAttributionResponse.js +30 -0
- package/dist/packages/datadog-api-client-v2/models/MonthlyCostAttributionResponse.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/ObjectSerializer.js +106 -1
- package/dist/packages/datadog-api-client-v2/models/ObjectSerializer.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/models/OktaAccount.d.ts +38 -0
- package/dist/packages/datadog-api-client-v2/models/OktaAccount.js +36 -0
- package/dist/packages/datadog-api-client-v2/models/OktaAccount.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/OktaAccountAttributes.d.ts +48 -0
- package/dist/packages/datadog-api-client-v2/models/OktaAccountAttributes.js +54 -0
- package/dist/packages/datadog-api-client-v2/models/OktaAccountAttributes.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/OktaAccountRequest.d.ts +29 -0
- package/dist/packages/datadog-api-client-v2/models/OktaAccountRequest.js +27 -0
- package/dist/packages/datadog-api-client-v2/models/OktaAccountRequest.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/OktaAccountResponse.d.ts +29 -0
- package/dist/packages/datadog-api-client-v2/models/OktaAccountResponse.js +26 -0
- package/dist/packages/datadog-api-client-v2/models/OktaAccountResponse.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/OktaAccountResponseData.d.ts +38 -0
- package/dist/packages/datadog-api-client-v2/models/OktaAccountResponseData.js +37 -0
- package/dist/packages/datadog-api-client-v2/models/OktaAccountResponseData.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/OktaAccountType.d.ts +11 -0
- package/dist/packages/datadog-api-client-v2/models/OktaAccountType.js +10 -0
- package/dist/packages/datadog-api-client-v2/models/OktaAccountType.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/OktaAccountUpdateRequest.d.ts +29 -0
- package/dist/packages/datadog-api-client-v2/models/OktaAccountUpdateRequest.js +27 -0
- package/dist/packages/datadog-api-client-v2/models/OktaAccountUpdateRequest.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/OktaAccountUpdateRequestAttributes.d.ts +44 -0
- package/dist/packages/datadog-api-client-v2/models/OktaAccountUpdateRequestAttributes.js +49 -0
- package/dist/packages/datadog-api-client-v2/models/OktaAccountUpdateRequestAttributes.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/OktaAccountUpdateRequestData.d.ts +34 -0
- package/dist/packages/datadog-api-client-v2/models/OktaAccountUpdateRequestData.js +30 -0
- package/dist/packages/datadog-api-client-v2/models/OktaAccountUpdateRequestData.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/OktaAccountsResponse.d.ts +29 -0
- package/dist/packages/datadog-api-client-v2/models/OktaAccountsResponse.js +26 -0
- package/dist/packages/datadog-api-client-v2/models/OktaAccountsResponse.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/PartialAPIKeyAttributes.d.ts +8 -0
- package/dist/packages/datadog-api-client-v2/models/PartialAPIKeyAttributes.js +8 -0
- package/dist/packages/datadog-api-client-v2/models/PartialAPIKeyAttributes.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/models/PowerpackRelationships.d.ts +3 -3
- package/dist/packages/datadog-api-client-v2/models/PowerpackRelationships.js +1 -1
- package/dist/packages/datadog-api-client-v2/models/PowerpackRelationships.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/models/ProjectedCost.d.ts +38 -0
- package/dist/packages/datadog-api-client-v2/models/ProjectedCost.js +34 -0
- package/dist/packages/datadog-api-client-v2/models/ProjectedCost.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/ProjectedCostAttributes.d.ts +49 -0
- package/dist/packages/datadog-api-client-v2/models/ProjectedCostAttributes.js +48 -0
- package/dist/packages/datadog-api-client-v2/models/ProjectedCostAttributes.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/ProjectedCostResponse.d.ts +29 -0
- package/dist/packages/datadog-api-client-v2/models/ProjectedCostResponse.js +26 -0
- package/dist/packages/datadog-api-client-v2/models/ProjectedCostResponse.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/ProjectedCostType.d.ts +11 -0
- package/dist/packages/datadog-api-client-v2/models/ProjectedCostType.js +10 -0
- package/dist/packages/datadog-api-client-v2/models/ProjectedCostType.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/RelationshipToIncidentImpactData.d.ts +33 -0
- package/dist/packages/datadog-api-client-v2/models/RelationshipToIncidentImpactData.js +32 -0
- package/dist/packages/datadog-api-client-v2/models/RelationshipToIncidentImpactData.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/RelationshipToIncidentImpacts.d.ts +29 -0
- package/dist/packages/datadog-api-client-v2/models/RelationshipToIncidentImpacts.js +27 -0
- package/dist/packages/datadog-api-client-v2/models/RelationshipToIncidentImpacts.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/RelationshipToIncidentResponderData.d.ts +33 -0
- package/dist/packages/datadog-api-client-v2/models/RelationshipToIncidentResponderData.js +32 -0
- package/dist/packages/datadog-api-client-v2/models/RelationshipToIncidentResponderData.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/RelationshipToIncidentResponders.d.ts +29 -0
- package/dist/packages/datadog-api-client-v2/models/RelationshipToIncidentResponders.js +27 -0
- package/dist/packages/datadog-api-client-v2/models/RelationshipToIncidentResponders.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/RelationshipToIncidentUserDefinedFieldData.d.ts +33 -0
- package/dist/packages/datadog-api-client-v2/models/RelationshipToIncidentUserDefinedFieldData.js +32 -0
- package/dist/packages/datadog-api-client-v2/models/RelationshipToIncidentUserDefinedFieldData.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/RelationshipToIncidentUserDefinedFields.d.ts +29 -0
- package/dist/packages/datadog-api-client-v2/models/RelationshipToIncidentUserDefinedFields.js +27 -0
- package/dist/packages/datadog-api-client-v2/models/RelationshipToIncidentUserDefinedFields.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringRuleTypeCreate.d.ts +2 -1
- package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringRuleTypeCreate.js +2 -1
- package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringRuleTypeCreate.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/models/SensitiveDataScannerStandardPatternAttributes.d.ts +4 -0
- package/dist/packages/datadog-api-client-v2/models/SensitiveDataScannerStandardPatternAttributes.js +4 -0
- package/dist/packages/datadog-api-client-v2/models/SensitiveDataScannerStandardPatternAttributes.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/models/SortDirection.d.ts +12 -0
- package/dist/packages/datadog-api-client-v2/models/SortDirection.js +11 -0
- package/dist/packages/datadog-api-client-v2/models/SortDirection.js.map +1 -0
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,423 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.OktaIntegrationApi = exports.OktaIntegrationApiResponseProcessor = exports.OktaIntegrationApiRequestFactory = void 0;
|
|
13
|
+
const baseapi_1 = require("../../datadog-api-client-common/baseapi");
|
|
14
|
+
const configuration_1 = require("../../datadog-api-client-common/configuration");
|
|
15
|
+
const http_1 = require("../../datadog-api-client-common/http/http");
|
|
16
|
+
const logger_1 = require("../../../logger");
|
|
17
|
+
const ObjectSerializer_1 = require("../models/ObjectSerializer");
|
|
18
|
+
const exception_1 = require("../../datadog-api-client-common/exception");
|
|
19
|
+
class OktaIntegrationApiRequestFactory extends baseapi_1.BaseAPIRequestFactory {
|
|
20
|
+
createOktaAccount(body, _options) {
|
|
21
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
22
|
+
const _config = _options || this.configuration;
|
|
23
|
+
// verify required parameter 'body' is not null or undefined
|
|
24
|
+
if (body === null || body === undefined) {
|
|
25
|
+
throw new baseapi_1.RequiredError("body", "createOktaAccount");
|
|
26
|
+
}
|
|
27
|
+
// Path Params
|
|
28
|
+
const localVarPath = "/api/v2/integrations/okta/accounts";
|
|
29
|
+
// Make Request Context
|
|
30
|
+
const requestContext = _config
|
|
31
|
+
.getServer("v2.OktaIntegrationApi.createOktaAccount")
|
|
32
|
+
.makeRequestContext(localVarPath, http_1.HttpMethod.POST);
|
|
33
|
+
requestContext.setHeaderParam("Accept", "application/json");
|
|
34
|
+
requestContext.setHttpConfig(_config.httpConfig);
|
|
35
|
+
// Body Params
|
|
36
|
+
const contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([
|
|
37
|
+
"application/json",
|
|
38
|
+
]);
|
|
39
|
+
requestContext.setHeaderParam("Content-Type", contentType);
|
|
40
|
+
const serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(body, "OktaAccountRequest", ""), contentType);
|
|
41
|
+
requestContext.setBody(serializedBody);
|
|
42
|
+
// Apply auth methods
|
|
43
|
+
(0, configuration_1.applySecurityAuthentication)(_config, requestContext, [
|
|
44
|
+
"apiKeyAuth",
|
|
45
|
+
"appKeyAuth",
|
|
46
|
+
]);
|
|
47
|
+
return requestContext;
|
|
48
|
+
});
|
|
49
|
+
}
|
|
50
|
+
deleteOktaAccount(accountId, _options) {
|
|
51
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
52
|
+
const _config = _options || this.configuration;
|
|
53
|
+
// verify required parameter 'accountId' is not null or undefined
|
|
54
|
+
if (accountId === null || accountId === undefined) {
|
|
55
|
+
throw new baseapi_1.RequiredError("accountId", "deleteOktaAccount");
|
|
56
|
+
}
|
|
57
|
+
// Path Params
|
|
58
|
+
const localVarPath = "/api/v2/integrations/okta/accounts/{account_id}".replace("{account_id}", encodeURIComponent(String(accountId)));
|
|
59
|
+
// Make Request Context
|
|
60
|
+
const requestContext = _config
|
|
61
|
+
.getServer("v2.OktaIntegrationApi.deleteOktaAccount")
|
|
62
|
+
.makeRequestContext(localVarPath, http_1.HttpMethod.DELETE);
|
|
63
|
+
requestContext.setHeaderParam("Accept", "*/*");
|
|
64
|
+
requestContext.setHttpConfig(_config.httpConfig);
|
|
65
|
+
// Apply auth methods
|
|
66
|
+
(0, configuration_1.applySecurityAuthentication)(_config, requestContext, [
|
|
67
|
+
"apiKeyAuth",
|
|
68
|
+
"appKeyAuth",
|
|
69
|
+
]);
|
|
70
|
+
return requestContext;
|
|
71
|
+
});
|
|
72
|
+
}
|
|
73
|
+
getOktaAccount(accountId, _options) {
|
|
74
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
75
|
+
const _config = _options || this.configuration;
|
|
76
|
+
// verify required parameter 'accountId' is not null or undefined
|
|
77
|
+
if (accountId === null || accountId === undefined) {
|
|
78
|
+
throw new baseapi_1.RequiredError("accountId", "getOktaAccount");
|
|
79
|
+
}
|
|
80
|
+
// Path Params
|
|
81
|
+
const localVarPath = "/api/v2/integrations/okta/accounts/{account_id}".replace("{account_id}", encodeURIComponent(String(accountId)));
|
|
82
|
+
// Make Request Context
|
|
83
|
+
const requestContext = _config
|
|
84
|
+
.getServer("v2.OktaIntegrationApi.getOktaAccount")
|
|
85
|
+
.makeRequestContext(localVarPath, http_1.HttpMethod.GET);
|
|
86
|
+
requestContext.setHeaderParam("Accept", "application/json");
|
|
87
|
+
requestContext.setHttpConfig(_config.httpConfig);
|
|
88
|
+
// Apply auth methods
|
|
89
|
+
(0, configuration_1.applySecurityAuthentication)(_config, requestContext, [
|
|
90
|
+
"apiKeyAuth",
|
|
91
|
+
"appKeyAuth",
|
|
92
|
+
]);
|
|
93
|
+
return requestContext;
|
|
94
|
+
});
|
|
95
|
+
}
|
|
96
|
+
listOktaAccounts(_options) {
|
|
97
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
98
|
+
const _config = _options || this.configuration;
|
|
99
|
+
// Path Params
|
|
100
|
+
const localVarPath = "/api/v2/integrations/okta/accounts";
|
|
101
|
+
// Make Request Context
|
|
102
|
+
const requestContext = _config
|
|
103
|
+
.getServer("v2.OktaIntegrationApi.listOktaAccounts")
|
|
104
|
+
.makeRequestContext(localVarPath, http_1.HttpMethod.GET);
|
|
105
|
+
requestContext.setHeaderParam("Accept", "application/json");
|
|
106
|
+
requestContext.setHttpConfig(_config.httpConfig);
|
|
107
|
+
// Apply auth methods
|
|
108
|
+
(0, configuration_1.applySecurityAuthentication)(_config, requestContext, [
|
|
109
|
+
"apiKeyAuth",
|
|
110
|
+
"appKeyAuth",
|
|
111
|
+
]);
|
|
112
|
+
return requestContext;
|
|
113
|
+
});
|
|
114
|
+
}
|
|
115
|
+
updateOktaAccount(accountId, body, _options) {
|
|
116
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
117
|
+
const _config = _options || this.configuration;
|
|
118
|
+
// verify required parameter 'accountId' is not null or undefined
|
|
119
|
+
if (accountId === null || accountId === undefined) {
|
|
120
|
+
throw new baseapi_1.RequiredError("accountId", "updateOktaAccount");
|
|
121
|
+
}
|
|
122
|
+
// verify required parameter 'body' is not null or undefined
|
|
123
|
+
if (body === null || body === undefined) {
|
|
124
|
+
throw new baseapi_1.RequiredError("body", "updateOktaAccount");
|
|
125
|
+
}
|
|
126
|
+
// Path Params
|
|
127
|
+
const localVarPath = "/api/v2/integrations/okta/accounts/{account_id}".replace("{account_id}", encodeURIComponent(String(accountId)));
|
|
128
|
+
// Make Request Context
|
|
129
|
+
const requestContext = _config
|
|
130
|
+
.getServer("v2.OktaIntegrationApi.updateOktaAccount")
|
|
131
|
+
.makeRequestContext(localVarPath, http_1.HttpMethod.PATCH);
|
|
132
|
+
requestContext.setHeaderParam("Accept", "application/json");
|
|
133
|
+
requestContext.setHttpConfig(_config.httpConfig);
|
|
134
|
+
// Body Params
|
|
135
|
+
const contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([
|
|
136
|
+
"application/json",
|
|
137
|
+
]);
|
|
138
|
+
requestContext.setHeaderParam("Content-Type", contentType);
|
|
139
|
+
const serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(body, "OktaAccountUpdateRequest", ""), contentType);
|
|
140
|
+
requestContext.setBody(serializedBody);
|
|
141
|
+
// Apply auth methods
|
|
142
|
+
(0, configuration_1.applySecurityAuthentication)(_config, requestContext, [
|
|
143
|
+
"apiKeyAuth",
|
|
144
|
+
"appKeyAuth",
|
|
145
|
+
]);
|
|
146
|
+
return requestContext;
|
|
147
|
+
});
|
|
148
|
+
}
|
|
149
|
+
}
|
|
150
|
+
exports.OktaIntegrationApiRequestFactory = OktaIntegrationApiRequestFactory;
|
|
151
|
+
class OktaIntegrationApiResponseProcessor {
|
|
152
|
+
/**
|
|
153
|
+
* Unwraps the actual response sent by the server from the response context and deserializes the response content
|
|
154
|
+
* to the expected objects
|
|
155
|
+
*
|
|
156
|
+
* @params response Response returned by the server for a request to createOktaAccount
|
|
157
|
+
* @throws ApiException if the response code was not in [200, 299]
|
|
158
|
+
*/
|
|
159
|
+
createOktaAccount(response) {
|
|
160
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
161
|
+
const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
162
|
+
if (response.httpStatusCode == 201) {
|
|
163
|
+
const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "OktaAccountResponse");
|
|
164
|
+
return body;
|
|
165
|
+
}
|
|
166
|
+
if (response.httpStatusCode == 400 ||
|
|
167
|
+
response.httpStatusCode == 403 ||
|
|
168
|
+
response.httpStatusCode == 404 ||
|
|
169
|
+
response.httpStatusCode == 429) {
|
|
170
|
+
const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType);
|
|
171
|
+
let body;
|
|
172
|
+
try {
|
|
173
|
+
body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse");
|
|
174
|
+
}
|
|
175
|
+
catch (error) {
|
|
176
|
+
logger_1.logger.info(`Got error deserializing error: ${error}`);
|
|
177
|
+
throw new exception_1.ApiException(response.httpStatusCode, bodyText);
|
|
178
|
+
}
|
|
179
|
+
throw new exception_1.ApiException(response.httpStatusCode, body);
|
|
180
|
+
}
|
|
181
|
+
// Work around for missing responses in specification, e.g. for petstore.yaml
|
|
182
|
+
if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
|
|
183
|
+
const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "OktaAccountResponse", "");
|
|
184
|
+
return body;
|
|
185
|
+
}
|
|
186
|
+
const body = (yield response.body.text()) || "";
|
|
187
|
+
throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"');
|
|
188
|
+
});
|
|
189
|
+
}
|
|
190
|
+
/**
|
|
191
|
+
* Unwraps the actual response sent by the server from the response context and deserializes the response content
|
|
192
|
+
* to the expected objects
|
|
193
|
+
*
|
|
194
|
+
* @params response Response returned by the server for a request to deleteOktaAccount
|
|
195
|
+
* @throws ApiException if the response code was not in [200, 299]
|
|
196
|
+
*/
|
|
197
|
+
deleteOktaAccount(response) {
|
|
198
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
199
|
+
const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
200
|
+
if (response.httpStatusCode == 204) {
|
|
201
|
+
return;
|
|
202
|
+
}
|
|
203
|
+
if (response.httpStatusCode == 400 ||
|
|
204
|
+
response.httpStatusCode == 403 ||
|
|
205
|
+
response.httpStatusCode == 404 ||
|
|
206
|
+
response.httpStatusCode == 429) {
|
|
207
|
+
const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType);
|
|
208
|
+
let body;
|
|
209
|
+
try {
|
|
210
|
+
body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse");
|
|
211
|
+
}
|
|
212
|
+
catch (error) {
|
|
213
|
+
logger_1.logger.info(`Got error deserializing error: ${error}`);
|
|
214
|
+
throw new exception_1.ApiException(response.httpStatusCode, bodyText);
|
|
215
|
+
}
|
|
216
|
+
throw new exception_1.ApiException(response.httpStatusCode, body);
|
|
217
|
+
}
|
|
218
|
+
// Work around for missing responses in specification, e.g. for petstore.yaml
|
|
219
|
+
if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
|
|
220
|
+
const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "void", "");
|
|
221
|
+
return body;
|
|
222
|
+
}
|
|
223
|
+
const body = (yield response.body.text()) || "";
|
|
224
|
+
throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"');
|
|
225
|
+
});
|
|
226
|
+
}
|
|
227
|
+
/**
|
|
228
|
+
* Unwraps the actual response sent by the server from the response context and deserializes the response content
|
|
229
|
+
* to the expected objects
|
|
230
|
+
*
|
|
231
|
+
* @params response Response returned by the server for a request to getOktaAccount
|
|
232
|
+
* @throws ApiException if the response code was not in [200, 299]
|
|
233
|
+
*/
|
|
234
|
+
getOktaAccount(response) {
|
|
235
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
236
|
+
const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
237
|
+
if (response.httpStatusCode == 200) {
|
|
238
|
+
const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "OktaAccountResponse");
|
|
239
|
+
return body;
|
|
240
|
+
}
|
|
241
|
+
if (response.httpStatusCode == 400 ||
|
|
242
|
+
response.httpStatusCode == 403 ||
|
|
243
|
+
response.httpStatusCode == 404 ||
|
|
244
|
+
response.httpStatusCode == 429) {
|
|
245
|
+
const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType);
|
|
246
|
+
let body;
|
|
247
|
+
try {
|
|
248
|
+
body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse");
|
|
249
|
+
}
|
|
250
|
+
catch (error) {
|
|
251
|
+
logger_1.logger.info(`Got error deserializing error: ${error}`);
|
|
252
|
+
throw new exception_1.ApiException(response.httpStatusCode, bodyText);
|
|
253
|
+
}
|
|
254
|
+
throw new exception_1.ApiException(response.httpStatusCode, body);
|
|
255
|
+
}
|
|
256
|
+
// Work around for missing responses in specification, e.g. for petstore.yaml
|
|
257
|
+
if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
|
|
258
|
+
const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "OktaAccountResponse", "");
|
|
259
|
+
return body;
|
|
260
|
+
}
|
|
261
|
+
const body = (yield response.body.text()) || "";
|
|
262
|
+
throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"');
|
|
263
|
+
});
|
|
264
|
+
}
|
|
265
|
+
/**
|
|
266
|
+
* Unwraps the actual response sent by the server from the response context and deserializes the response content
|
|
267
|
+
* to the expected objects
|
|
268
|
+
*
|
|
269
|
+
* @params response Response returned by the server for a request to listOktaAccounts
|
|
270
|
+
* @throws ApiException if the response code was not in [200, 299]
|
|
271
|
+
*/
|
|
272
|
+
listOktaAccounts(response) {
|
|
273
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
274
|
+
const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
275
|
+
if (response.httpStatusCode == 200) {
|
|
276
|
+
const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "OktaAccountsResponse");
|
|
277
|
+
return body;
|
|
278
|
+
}
|
|
279
|
+
if (response.httpStatusCode == 400 ||
|
|
280
|
+
response.httpStatusCode == 403 ||
|
|
281
|
+
response.httpStatusCode == 404 ||
|
|
282
|
+
response.httpStatusCode == 429) {
|
|
283
|
+
const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType);
|
|
284
|
+
let body;
|
|
285
|
+
try {
|
|
286
|
+
body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse");
|
|
287
|
+
}
|
|
288
|
+
catch (error) {
|
|
289
|
+
logger_1.logger.info(`Got error deserializing error: ${error}`);
|
|
290
|
+
throw new exception_1.ApiException(response.httpStatusCode, bodyText);
|
|
291
|
+
}
|
|
292
|
+
throw new exception_1.ApiException(response.httpStatusCode, body);
|
|
293
|
+
}
|
|
294
|
+
// Work around for missing responses in specification, e.g. for petstore.yaml
|
|
295
|
+
if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
|
|
296
|
+
const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "OktaAccountsResponse", "");
|
|
297
|
+
return body;
|
|
298
|
+
}
|
|
299
|
+
const body = (yield response.body.text()) || "";
|
|
300
|
+
throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"');
|
|
301
|
+
});
|
|
302
|
+
}
|
|
303
|
+
/**
|
|
304
|
+
* Unwraps the actual response sent by the server from the response context and deserializes the response content
|
|
305
|
+
* to the expected objects
|
|
306
|
+
*
|
|
307
|
+
* @params response Response returned by the server for a request to updateOktaAccount
|
|
308
|
+
* @throws ApiException if the response code was not in [200, 299]
|
|
309
|
+
*/
|
|
310
|
+
updateOktaAccount(response) {
|
|
311
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
312
|
+
const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
313
|
+
if (response.httpStatusCode == 200) {
|
|
314
|
+
const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "OktaAccountResponse");
|
|
315
|
+
return body;
|
|
316
|
+
}
|
|
317
|
+
if (response.httpStatusCode == 400 ||
|
|
318
|
+
response.httpStatusCode == 403 ||
|
|
319
|
+
response.httpStatusCode == 404 ||
|
|
320
|
+
response.httpStatusCode == 429) {
|
|
321
|
+
const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType);
|
|
322
|
+
let body;
|
|
323
|
+
try {
|
|
324
|
+
body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse");
|
|
325
|
+
}
|
|
326
|
+
catch (error) {
|
|
327
|
+
logger_1.logger.info(`Got error deserializing error: ${error}`);
|
|
328
|
+
throw new exception_1.ApiException(response.httpStatusCode, bodyText);
|
|
329
|
+
}
|
|
330
|
+
throw new exception_1.ApiException(response.httpStatusCode, body);
|
|
331
|
+
}
|
|
332
|
+
// Work around for missing responses in specification, e.g. for petstore.yaml
|
|
333
|
+
if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
|
|
334
|
+
const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "OktaAccountResponse", "");
|
|
335
|
+
return body;
|
|
336
|
+
}
|
|
337
|
+
const body = (yield response.body.text()) || "";
|
|
338
|
+
throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"');
|
|
339
|
+
});
|
|
340
|
+
}
|
|
341
|
+
}
|
|
342
|
+
exports.OktaIntegrationApiResponseProcessor = OktaIntegrationApiResponseProcessor;
|
|
343
|
+
class OktaIntegrationApi {
|
|
344
|
+
constructor(configuration, requestFactory, responseProcessor) {
|
|
345
|
+
this.configuration = configuration;
|
|
346
|
+
this.requestFactory =
|
|
347
|
+
requestFactory || new OktaIntegrationApiRequestFactory(configuration);
|
|
348
|
+
this.responseProcessor =
|
|
349
|
+
responseProcessor || new OktaIntegrationApiResponseProcessor();
|
|
350
|
+
}
|
|
351
|
+
/**
|
|
352
|
+
* Create an Okta account.
|
|
353
|
+
* @param param The request object
|
|
354
|
+
*/
|
|
355
|
+
createOktaAccount(param, options) {
|
|
356
|
+
const requestContextPromise = this.requestFactory.createOktaAccount(param.body, options);
|
|
357
|
+
return requestContextPromise.then((requestContext) => {
|
|
358
|
+
return this.configuration.httpApi
|
|
359
|
+
.send(requestContext)
|
|
360
|
+
.then((responseContext) => {
|
|
361
|
+
return this.responseProcessor.createOktaAccount(responseContext);
|
|
362
|
+
});
|
|
363
|
+
});
|
|
364
|
+
}
|
|
365
|
+
/**
|
|
366
|
+
* Delete an Okta account.
|
|
367
|
+
* @param param The request object
|
|
368
|
+
*/
|
|
369
|
+
deleteOktaAccount(param, options) {
|
|
370
|
+
const requestContextPromise = this.requestFactory.deleteOktaAccount(param.accountId, options);
|
|
371
|
+
return requestContextPromise.then((requestContext) => {
|
|
372
|
+
return this.configuration.httpApi
|
|
373
|
+
.send(requestContext)
|
|
374
|
+
.then((responseContext) => {
|
|
375
|
+
return this.responseProcessor.deleteOktaAccount(responseContext);
|
|
376
|
+
});
|
|
377
|
+
});
|
|
378
|
+
}
|
|
379
|
+
/**
|
|
380
|
+
* Get an Okta account.
|
|
381
|
+
* @param param The request object
|
|
382
|
+
*/
|
|
383
|
+
getOktaAccount(param, options) {
|
|
384
|
+
const requestContextPromise = this.requestFactory.getOktaAccount(param.accountId, options);
|
|
385
|
+
return requestContextPromise.then((requestContext) => {
|
|
386
|
+
return this.configuration.httpApi
|
|
387
|
+
.send(requestContext)
|
|
388
|
+
.then((responseContext) => {
|
|
389
|
+
return this.responseProcessor.getOktaAccount(responseContext);
|
|
390
|
+
});
|
|
391
|
+
});
|
|
392
|
+
}
|
|
393
|
+
/**
|
|
394
|
+
* List Okta accounts.
|
|
395
|
+
* @param param The request object
|
|
396
|
+
*/
|
|
397
|
+
listOktaAccounts(options) {
|
|
398
|
+
const requestContextPromise = this.requestFactory.listOktaAccounts(options);
|
|
399
|
+
return requestContextPromise.then((requestContext) => {
|
|
400
|
+
return this.configuration.httpApi
|
|
401
|
+
.send(requestContext)
|
|
402
|
+
.then((responseContext) => {
|
|
403
|
+
return this.responseProcessor.listOktaAccounts(responseContext);
|
|
404
|
+
});
|
|
405
|
+
});
|
|
406
|
+
}
|
|
407
|
+
/**
|
|
408
|
+
* Update an Okta account.
|
|
409
|
+
* @param param The request object
|
|
410
|
+
*/
|
|
411
|
+
updateOktaAccount(param, options) {
|
|
412
|
+
const requestContextPromise = this.requestFactory.updateOktaAccount(param.accountId, param.body, options);
|
|
413
|
+
return requestContextPromise.then((requestContext) => {
|
|
414
|
+
return this.configuration.httpApi
|
|
415
|
+
.send(requestContext)
|
|
416
|
+
.then((responseContext) => {
|
|
417
|
+
return this.responseProcessor.updateOktaAccount(responseContext);
|
|
418
|
+
});
|
|
419
|
+
});
|
|
420
|
+
}
|
|
421
|
+
}
|
|
422
|
+
exports.OktaIntegrationApi = OktaIntegrationApi;
|
|
423
|
+
//# sourceMappingURL=OktaIntegrationApi.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"OktaIntegrationApi.js","sourceRoot":"","sources":["../../../../packages/datadog-api-client-v2/apis/OktaIntegrationApi.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qEAGiD;AACjD,iFAGuD;AACvD,oEAImD;AAEnD,4CAAyC;AACzC,iEAA8D;AAC9D,yEAAyE;AAQzE,MAAa,gCAAiC,SAAQ,+BAAqB;IAC5D,iBAAiB,CAC5B,IAAwB,EACxB,QAAwB;;YAExB,MAAM,OAAO,GAAG,QAAQ,I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iB,CAAC,eAAe,CAAC,CAAC;YACnE,CAAC,CAAC,CAAC;QACP,CAAC,CAAC,CAAC;IACL,CAAC;CACF;AAtHD,gDAsHC"}
|
|
@@ -1,21 +1,36 @@
|
|
|
1
1
|
import { BaseAPIRequestFactory } from "../../datadog-api-client-common/baseapi";
|
|
2
2
|
import { Configuration } from "../../datadog-api-client-common/configuration";
|
|
3
3
|
import { RequestContext, ResponseContext } from "../../datadog-api-client-common/http/http";
|
|
4
|
+
import { ActiveBillingDimensionsResponse } from "../models/ActiveBillingDimensionsResponse";
|
|
4
5
|
import { CostByOrgResponse } from "../models/CostByOrgResponse";
|
|
5
6
|
import { HourlyUsageResponse } from "../models/HourlyUsageResponse";
|
|
7
|
+
import { MonthlyCostAttributionResponse } from "../models/MonthlyCostAttributionResponse";
|
|
8
|
+
import { ProjectedCostResponse } from "../models/ProjectedCostResponse";
|
|
9
|
+
import { SortDirection } from "../models/SortDirection";
|
|
6
10
|
import { UsageApplicationSecurityMonitoringResponse } from "../models/UsageApplicationSecurityMonitoringResponse";
|
|
7
11
|
import { UsageLambdaTracedInvocationsResponse } from "../models/UsageLambdaTracedInvocationsResponse";
|
|
8
12
|
import { UsageObservabilityPipelinesResponse } from "../models/UsageObservabilityPipelinesResponse";
|
|
9
13
|
export declare class UsageMeteringApiRequestFactory extends BaseAPIRequestFactory {
|
|
14
|
+
getActiveBillingDimensions(_options?: Configuration): Promise<RequestContext>;
|
|
10
15
|
getCostByOrg(startMonth: Date, endMonth?: Date, _options?: Configuration): Promise<RequestContext>;
|
|
11
16
|
getEstimatedCostByOrg(view?: string, startMonth?: Date, endMonth?: Date, startDate?: Date, endDate?: Date, _options?: Configuration): Promise<RequestContext>;
|
|
12
17
|
getHistoricalCostByOrg(startMonth: Date, view?: string, endMonth?: Date, _options?: Configuration): Promise<RequestContext>;
|
|
13
18
|
getHourlyUsage(filterTimestampStart: Date, filterProductFamilies: string, filterTimestampEnd?: Date, filterIncludeDescendants?: boolean, filterIncludeBreakdown?: boolean, filterVersions?: string, pageLimit?: number, pageNextRecordId?: string, _options?: Configuration): Promise<RequestContext>;
|
|
19
|
+
getMonthlyCostAttribution(startMonth: Date, endMonth: Date, fields: string, sortDirection?: SortDirection, sortName?: string, tagBreakdownKeys?: string, nextRecordId?: string, includeDescendants?: boolean, _options?: Configuration): Promise<RequestContext>;
|
|
20
|
+
getProjectedCost(view?: string, _options?: Configuration): Promise<RequestContext>;
|
|
14
21
|
getUsageApplicationSecurityMonitoring(startHr: Date, endHr?: Date, _options?: Configuration): Promise<RequestContext>;
|
|
15
22
|
getUsageLambdaTracedInvocations(startHr: Date, endHr?: Date, _options?: Configuration): Promise<RequestContext>;
|
|
16
23
|
getUsageObservabilityPipelines(startHr: Date, endHr?: Date, _options?: Configuration): Promise<RequestContext>;
|
|
17
24
|
}
|
|
18
25
|
export declare class UsageMeteringApiResponseProcessor {
|
|
26
|
+
/**
|
|
27
|
+
* Unwraps the actual response sent by the server from the response context and deserializes the response content
|
|
28
|
+
* to the expected objects
|
|
29
|
+
*
|
|
30
|
+
* @params response Response returned by the server for a request to getActiveBillingDimensions
|
|
31
|
+
* @throws ApiException if the response code was not in [200, 299]
|
|
32
|
+
*/
|
|
33
|
+
getActiveBillingDimensions(response: ResponseContext): Promise<ActiveBillingDimensionsResponse>;
|
|
19
34
|
/**
|
|
20
35
|
* Unwraps the actual response sent by the server from the response context and deserializes the response content
|
|
21
36
|
* to the expected objects
|
|
@@ -48,6 +63,22 @@ export declare class UsageMeteringApiResponseProcessor {
|
|
|
48
63
|
* @throws ApiException if the response code was not in [200, 299]
|
|
49
64
|
*/
|
|
50
65
|
getHourlyUsage(response: ResponseContext): Promise<HourlyUsageResponse>;
|
|
66
|
+
/**
|
|
67
|
+
* Unwraps the actual response sent by the server from the response context and deserializes the response content
|
|
68
|
+
* to the expected objects
|
|
69
|
+
*
|
|
70
|
+
* @params response Response returned by the server for a request to getMonthlyCostAttribution
|
|
71
|
+
* @throws ApiException if the response code was not in [200, 299]
|
|
72
|
+
*/
|
|
73
|
+
getMonthlyCostAttribution(response: ResponseContext): Promise<MonthlyCostAttributionResponse>;
|
|
74
|
+
/**
|
|
75
|
+
* Unwraps the actual response sent by the server from the response context and deserializes the response content
|
|
76
|
+
* to the expected objects
|
|
77
|
+
*
|
|
78
|
+
* @params response Response returned by the server for a request to getProjectedCost
|
|
79
|
+
* @throws ApiException if the response code was not in [200, 299]
|
|
80
|
+
*/
|
|
81
|
+
getProjectedCost(response: ResponseContext): Promise<ProjectedCostResponse>;
|
|
51
82
|
/**
|
|
52
83
|
* Unwraps the actual response sent by the server from the response context and deserializes the response content
|
|
53
84
|
* to the expected objects
|
|
@@ -180,6 +211,60 @@ export interface UsageMeteringApiGetHourlyUsageRequest {
|
|
|
180
211
|
*/
|
|
181
212
|
pageNextRecordId?: string;
|
|
182
213
|
}
|
|
214
|
+
export interface UsageMeteringApiGetMonthlyCostAttributionRequest {
|
|
215
|
+
/**
|
|
216
|
+
* Datetime in ISO-8601 format, UTC, precise to month: `[YYYY-MM]` for cost beginning in this month.
|
|
217
|
+
* @type Date
|
|
218
|
+
*/
|
|
219
|
+
startMonth: Date;
|
|
220
|
+
/**
|
|
221
|
+
* Datetime in ISO-8601 format, UTC, precise to month: `[YYYY-MM]` for cost ending this month.
|
|
222
|
+
* @type Date
|
|
223
|
+
*/
|
|
224
|
+
endMonth: Date;
|
|
225
|
+
/**
|
|
226
|
+
* Comma-separated list specifying cost types (e.g., `<billing_dimension>_on_demand_cost`, `<billing_dimension>_committed_cost`, `<billing_dimension>_total_cost`) and the
|
|
227
|
+
* proportions (`<billing_dimension>_percentage_in_org`, `<billing_dimension>_percentage_in_account`). Use `*` to retrieve all fields.
|
|
228
|
+
* Example: `infra_host_on_demand_cost,infra_host_percentage_in_account`
|
|
229
|
+
* To obtain the complete list of active billing dimensions that can be used to replace
|
|
230
|
+
* `<billing_dimension>` 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).
|
|
231
|
+
* @type string
|
|
232
|
+
*/
|
|
233
|
+
fields: string;
|
|
234
|
+
/**
|
|
235
|
+
* The direction to sort by: `[desc, asc]`.
|
|
236
|
+
* @type SortDirection
|
|
237
|
+
*/
|
|
238
|
+
sortDirection?: SortDirection;
|
|
239
|
+
/**
|
|
240
|
+
* The billing dimension to sort by. Always sorted by total cost. Example: `infra_host`.
|
|
241
|
+
* @type string
|
|
242
|
+
*/
|
|
243
|
+
sortName?: string;
|
|
244
|
+
/**
|
|
245
|
+
* Comma separated list of tag keys used to group cost. If no value is provided the cost will not be broken down by tags.
|
|
246
|
+
* To see which tags are available, look for the value of `tag_config_source` in the API response.
|
|
247
|
+
* @type string
|
|
248
|
+
*/
|
|
249
|
+
tagBreakdownKeys?: string;
|
|
250
|
+
/**
|
|
251
|
+
* List following results with a next_record_id provided in the previous query.
|
|
252
|
+
* @type string
|
|
253
|
+
*/
|
|
254
|
+
nextRecordId?: string;
|
|
255
|
+
/**
|
|
256
|
+
* Include child org cost in the response. Defaults to `true`.
|
|
257
|
+
* @type boolean
|
|
258
|
+
*/
|
|
259
|
+
includeDescendants?: boolean;
|
|
260
|
+
}
|
|
261
|
+
export interface UsageMeteringApiGetProjectedCostRequest {
|
|
262
|
+
/**
|
|
263
|
+
* 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`.
|
|
264
|
+
* @type string
|
|
265
|
+
*/
|
|
266
|
+
view?: string;
|
|
267
|
+
}
|
|
183
268
|
export interface UsageMeteringApiGetUsageApplicationSecurityMonitoringRequest {
|
|
184
269
|
/**
|
|
185
270
|
* Datetime in ISO-8601 format, UTC, precise to hour: `[YYYY-MM-DDThh]` for usage beginning at this hour.
|
|
@@ -224,6 +309,11 @@ export declare class UsageMeteringApi {
|
|
|
224
309
|
private responseProcessor;
|
|
225
310
|
private configuration;
|
|
226
311
|
constructor(configuration: Configuration, requestFactory?: UsageMeteringApiRequestFactory, responseProcessor?: UsageMeteringApiResponseProcessor);
|
|
312
|
+
/**
|
|
313
|
+
* Get active billing dimensions for cost attribution. Cost data for a given month becomes available no later than the 17th of the following month.
|
|
314
|
+
* @param param The request object
|
|
315
|
+
*/
|
|
316
|
+
getActiveBillingDimensions(options?: Configuration): Promise<ActiveBillingDimensionsResponse>;
|
|
227
317
|
/**
|
|
228
318
|
* Get cost across multi-org account.
|
|
229
319
|
* Cost by org data for a given month becomes available no later than the 16th of the following month.
|
|
@@ -252,6 +342,31 @@ export declare class UsageMeteringApi {
|
|
|
252
342
|
* @param param The request object
|
|
253
343
|
*/
|
|
254
344
|
getHourlyUsage(param: UsageMeteringApiGetHourlyUsageRequest, options?: Configuration): Promise<HourlyUsageResponse>;
|
|
345
|
+
/**
|
|
346
|
+
* Get monthly cost attribution by tag across multi-org and single root-org accounts.
|
|
347
|
+
* Cost Attribution data for a given month becomes available no later than the 17th of the following month.
|
|
348
|
+
* This API endpoint is paginated. To make sure you receive all records, check if the value of `next_record_id` is
|
|
349
|
+
* set in the response. If it is, make another request and pass `next_record_id` as a parameter.
|
|
350
|
+
* Pseudo code example:
|
|
351
|
+
* ```
|
|
352
|
+
* response := GetMonthlyCostAttribution(start_month, end_month)
|
|
353
|
+
* cursor := response.metadata.pagination.next_record_id
|
|
354
|
+
* WHILE cursor != null BEGIN
|
|
355
|
+
* sleep(5 seconds) # Avoid running into rate limit
|
|
356
|
+
* response := GetMonthlyCostAttribution(start_month, end_month, next_record_id=cursor)
|
|
357
|
+
* cursor := response.metadata.pagination.next_record_id
|
|
358
|
+
* END
|
|
359
|
+
* ```
|
|
360
|
+
* @param param The request object
|
|
361
|
+
*/
|
|
362
|
+
getMonthlyCostAttribution(param: UsageMeteringApiGetMonthlyCostAttributionRequest, options?: Configuration): Promise<MonthlyCostAttributionResponse>;
|
|
363
|
+
/**
|
|
364
|
+
* Get projected cost across multi-org and single root-org accounts.
|
|
365
|
+
* Projected cost data is only available for the current month and becomes available around the 12th of the month.
|
|
366
|
+
* This endpoint requires the usage_read authorization scope.
|
|
367
|
+
* @param param The request object
|
|
368
|
+
*/
|
|
369
|
+
getProjectedCost(param?: UsageMeteringApiGetProjectedCostRequest, options?: Configuration): Promise<ProjectedCostResponse>;
|
|
255
370
|
/**
|
|
256
371
|
* Get hourly usage for application security .
|
|
257
372
|
* **Note:** hourly usage data for all products is now available in the [Get hourly usage by product family API](https://docs.datadoghq.com/api/latest/usage-metering/#get-hourly-usage-by-product-family)
|