@datadog/datadog-api-client 1.38.0 → 1.40.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 +36 -0
- package/dist/packages/datadog-api-client-common/configuration.js +8 -5
- package/dist/packages/datadog-api-client-common/configuration.js.map +1 -1
- package/dist/packages/datadog-api-client-common/servers.js +14 -0
- package/dist/packages/datadog-api-client-common/servers.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/apis/HostsApi.d.ts +1 -0
- package/dist/packages/datadog-api-client-v1/apis/HostsApi.js +1 -0
- package/dist/packages/datadog-api-client-v1/apis/HostsApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/apis/SyntheticsApi.d.ts +46 -0
- package/dist/packages/datadog-api-client-v1/apis/SyntheticsApi.js +90 -0
- package/dist/packages/datadog-api-client-v1/apis/SyntheticsApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/apis/UsageMeteringApi.d.ts +6 -1
- package/dist/packages/datadog-api-client-v1/apis/UsageMeteringApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/index.d.ts +11 -1
- package/dist/packages/datadog-api-client-v1/index.js +19 -11
- package/dist/packages/datadog-api-client-v1/index.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/models/DashboardTemplateVariable.d.ts +4 -0
- package/dist/packages/datadog-api-client-v1/models/DashboardTemplateVariable.js +4 -0
- package/dist/packages/datadog-api-client-v1/models/DashboardTemplateVariable.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/models/HourlyUsageAttributionBody.d.ts +1 -0
- package/dist/packages/datadog-api-client-v1/models/HourlyUsageAttributionBody.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/models/HourlyUsageAttributionUsageType.d.ts +10 -2
- package/dist/packages/datadog-api-client-v1/models/HourlyUsageAttributionUsageType.js +10 -3
- package/dist/packages/datadog-api-client-v1/models/HourlyUsageAttributionUsageType.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/models/LogsArrayProcessor.d.ts +54 -0
- package/dist/packages/datadog-api-client-v1/models/LogsArrayProcessor.js +48 -0
- package/dist/packages/datadog-api-client-v1/models/LogsArrayProcessor.js.map +1 -0
- package/dist/packages/datadog-api-client-v1/models/LogsArrayProcessorOperation.d.ts +13 -0
- package/dist/packages/datadog-api-client-v1/models/LogsArrayProcessorOperation.js +3 -0
- package/dist/packages/datadog-api-client-v1/models/LogsArrayProcessorOperation.js.map +1 -0
- package/dist/packages/datadog-api-client-v1/models/LogsArrayProcessorOperationAppend.d.ts +49 -0
- package/dist/packages/datadog-api-client-v1/models/LogsArrayProcessorOperationAppend.js +45 -0
- package/dist/packages/datadog-api-client-v1/models/LogsArrayProcessorOperationAppend.js.map +1 -0
- package/dist/packages/datadog-api-client-v1/models/LogsArrayProcessorOperationAppendType.d.ts +11 -0
- package/dist/packages/datadog-api-client-v1/models/LogsArrayProcessorOperationAppendType.js +10 -0
- package/dist/packages/datadog-api-client-v1/models/LogsArrayProcessorOperationAppendType.js.map +1 -0
- package/dist/packages/datadog-api-client-v1/models/LogsArrayProcessorOperationLength.d.ts +45 -0
- package/dist/packages/datadog-api-client-v1/models/LogsArrayProcessorOperationLength.js +41 -0
- package/dist/packages/datadog-api-client-v1/models/LogsArrayProcessorOperationLength.js.map +1 -0
- package/dist/packages/datadog-api-client-v1/models/LogsArrayProcessorOperationLengthType.d.ts +11 -0
- package/dist/packages/datadog-api-client-v1/models/LogsArrayProcessorOperationLengthType.js +10 -0
- package/dist/packages/datadog-api-client-v1/models/LogsArrayProcessorOperationLengthType.js.map +1 -0
- package/dist/packages/datadog-api-client-v1/models/LogsArrayProcessorOperationSelect.d.ts +53 -0
- package/dist/packages/datadog-api-client-v1/models/LogsArrayProcessorOperationSelect.js +51 -0
- package/dist/packages/datadog-api-client-v1/models/LogsArrayProcessorOperationSelect.js.map +1 -0
- package/dist/packages/datadog-api-client-v1/models/LogsArrayProcessorOperationSelectType.d.ts +11 -0
- package/dist/packages/datadog-api-client-v1/models/LogsArrayProcessorOperationSelectType.js +10 -0
- package/dist/packages/datadog-api-client-v1/models/LogsArrayProcessorOperationSelectType.js.map +1 -0
- package/dist/packages/datadog-api-client-v1/models/LogsArrayProcessorType.d.ts +11 -0
- package/dist/packages/datadog-api-client-v1/models/LogsArrayProcessorType.js +10 -0
- package/dist/packages/datadog-api-client-v1/models/LogsArrayProcessorType.js.map +1 -0
- package/dist/packages/datadog-api-client-v1/models/LogsProcessor.d.ts +2 -1
- package/dist/packages/datadog-api-client-v1/models/MonthlyUsageAttributionBody.d.ts +1 -0
- package/dist/packages/datadog-api-client-v1/models/MonthlyUsageAttributionBody.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/models/MonthlyUsageAttributionSupportedMetrics.d.ts +15 -1
- package/dist/packages/datadog-api-client-v1/models/MonthlyUsageAttributionSupportedMetrics.js +17 -2
- package/dist/packages/datadog-api-client-v1/models/MonthlyUsageAttributionSupportedMetrics.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/models/MonthlyUsageAttributionValues.d.ts +57 -0
- package/dist/packages/datadog-api-client-v1/models/MonthlyUsageAttributionValues.js +71 -0
- package/dist/packages/datadog-api-client-v1/models/MonthlyUsageAttributionValues.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/models/ObjectSerializer.js +41 -0
- package/dist/packages/datadog-api-client-v1/models/ObjectSerializer.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/models/SelectableTemplateVariableItems.d.ts +4 -0
- package/dist/packages/datadog-api-client-v1/models/SelectableTemplateVariableItems.js +4 -0
- package/dist/packages/datadog-api-client-v1/models/SelectableTemplateVariableItems.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/models/SyntheticsMobileTest.d.ts +1 -1
- package/dist/packages/datadog-api-client-v1/models/SyntheticsMobileTest.js +1 -0
- package/dist/packages/datadog-api-client-v1/models/SyntheticsMobileTest.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/models/SyntheticsStepType.d.ts +2 -1
- package/dist/packages/datadog-api-client-v1/models/SyntheticsStepType.js +2 -1
- package/dist/packages/datadog-api-client-v1/models/SyntheticsStepType.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/models/SyntheticsTestRequest.d.ts +2 -1
- package/dist/packages/datadog-api-client-v1/models/SyntheticsTestRequest.js +1 -1
- package/dist/packages/datadog-api-client-v1/models/SyntheticsTestRequest.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/models/SyntheticsTestRequestDNSServerPort.d.ts +10 -0
- package/dist/packages/datadog-api-client-v1/models/SyntheticsTestRequestDNSServerPort.js +8 -0
- package/dist/packages/datadog-api-client-v1/models/SyntheticsTestRequestDNSServerPort.js.map +1 -0
- package/dist/packages/datadog-api-client-v1/models/UsageSummaryDate.d.ts +32 -0
- package/dist/packages/datadog-api-client-v1/models/UsageSummaryDate.js +40 -0
- package/dist/packages/datadog-api-client-v1/models/UsageSummaryDate.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/models/UsageSummaryDateOrg.d.ts +32 -0
- package/dist/packages/datadog-api-client-v1/models/UsageSummaryDateOrg.js +40 -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 +32 -0
- package/dist/packages/datadog-api-client-v1/models/UsageSummaryResponse.js +40 -0
- package/dist/packages/datadog-api-client-v1/models/UsageSummaryResponse.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/apis/AWSIntegrationApi.d.ts +15 -0
- package/dist/packages/datadog-api-client-v2/apis/AWSIntegrationApi.js +68 -0
- package/dist/packages/datadog-api-client-v2/apis/AWSIntegrationApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/apis/ActionConnectionApi.d.ts +96 -4
- package/dist/packages/datadog-api-client-v2/apis/ActionConnectionApi.js +304 -4
- package/dist/packages/datadog-api-client-v2/apis/ActionConnectionApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/apis/AppBuilderApi.d.ts +8 -8
- package/dist/packages/datadog-api-client-v2/apis/AppBuilderApi.js +8 -8
- package/dist/packages/datadog-api-client-v2/apis/CloudCostManagementApi.d.ts +84 -0
- package/dist/packages/datadog-api-client-v2/apis/CloudCostManagementApi.js +312 -0
- package/dist/packages/datadog-api-client-v2/apis/CloudCostManagementApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/apis/DatasetsApi.d.ts +93 -0
- package/dist/packages/datadog-api-client-v2/apis/DatasetsApi.js +338 -0
- package/dist/packages/datadog-api-client-v2/apis/DatasetsApi.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/apis/EventsApi.d.ts +10 -4
- package/dist/packages/datadog-api-client-v2/apis/EventsApi.js +10 -4
- package/dist/packages/datadog-api-client-v2/apis/EventsApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/apis/MonitorsApi.d.ts +156 -0
- package/dist/packages/datadog-api-client-v2/apis/MonitorsApi.js +576 -20
- package/dist/packages/datadog-api-client-v2/apis/MonitorsApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/apis/RestrictionPoliciesApi.d.ts +7 -3
- package/dist/packages/datadog-api-client-v2/apis/RestrictionPoliciesApi.js +4 -0
- package/dist/packages/datadog-api-client-v2/apis/RestrictionPoliciesApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/apis/SecurityMonitoringApi.d.ts +87 -2
- package/dist/packages/datadog-api-client-v2/apis/SecurityMonitoringApi.js +137 -4
- package/dist/packages/datadog-api-client-v2/apis/SecurityMonitoringApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/apis/UsageMeteringApi.d.ts +4 -4
- package/dist/packages/datadog-api-client-v2/apis/WorkflowAutomationApi.d.ts +8 -8
- package/dist/packages/datadog-api-client-v2/apis/WorkflowAutomationApi.js +8 -8
- package/dist/packages/datadog-api-client-v2/index.d.ts +64 -4
- package/dist/packages/datadog-api-client-v2/index.js +139 -40
- package/dist/packages/datadog-api-client-v2/index.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/models/AWSIntegrationIamPermissionsResponse.d.ts +37 -0
- package/dist/packages/datadog-api-client-v2/models/AWSIntegrationIamPermissionsResponse.js +31 -0
- package/dist/packages/datadog-api-client-v2/models/AWSIntegrationIamPermissionsResponse.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/AWSIntegrationIamPermissionsResponseAttributes.d.ts +36 -0
- package/dist/packages/datadog-api-client-v2/models/AWSIntegrationIamPermissionsResponseAttributes.js +36 -0
- package/dist/packages/datadog-api-client-v2/models/AWSIntegrationIamPermissionsResponseAttributes.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/AWSIntegrationIamPermissionsResponseData.d.ts +46 -0
- package/dist/packages/datadog-api-client-v2/models/AWSIntegrationIamPermissionsResponseData.js +38 -0
- package/dist/packages/datadog-api-client-v2/models/AWSIntegrationIamPermissionsResponseData.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/AWSIntegrationIamPermissionsResponseDataType.d.ts +11 -0
- package/dist/packages/datadog-api-client-v2/models/AWSIntegrationIamPermissionsResponseDataType.js +10 -0
- package/dist/packages/datadog-api-client-v2/models/AWSIntegrationIamPermissionsResponseDataType.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/AlertEventCustomAttributes.d.ts +45 -0
- package/dist/packages/datadog-api-client-v2/models/AlertEventCustomAttributes.js +39 -0
- package/dist/packages/datadog-api-client-v2/models/AlertEventCustomAttributes.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/AlertEventCustomAttributesLinksItems.d.ts +37 -0
- package/dist/packages/datadog-api-client-v2/models/AlertEventCustomAttributesLinksItems.js +36 -0
- package/dist/packages/datadog-api-client-v2/models/AlertEventCustomAttributesLinksItems.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/AlertEventCustomAttributesLinksItemsCategory.d.ts +13 -0
- package/dist/packages/datadog-api-client-v2/models/AlertEventCustomAttributesLinksItemsCategory.js +12 -0
- package/dist/packages/datadog-api-client-v2/models/AlertEventCustomAttributesLinksItemsCategory.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/AlertEventCustomAttributesPriority.d.ts +15 -0
- package/dist/packages/datadog-api-client-v2/models/AlertEventCustomAttributesPriority.js +14 -0
- package/dist/packages/datadog-api-client-v2/models/AlertEventCustomAttributesPriority.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/AlertEventCustomAttributesStatus.d.ts +13 -0
- package/dist/packages/datadog-api-client-v2/models/AlertEventCustomAttributesStatus.js +12 -0
- package/dist/packages/datadog-api-client-v2/models/AlertEventCustomAttributesStatus.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/AppKeyRegistrationData.d.ts +41 -0
- package/dist/packages/datadog-api-client-v2/models/AppKeyRegistrationData.js +36 -0
- package/dist/packages/datadog-api-client-v2/models/AppKeyRegistrationData.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/AppKeyRegistrationDataType.d.ts +11 -0
- package/dist/packages/datadog-api-client-v2/models/AppKeyRegistrationDataType.js +10 -0
- package/dist/packages/datadog-api-client-v2/models/AppKeyRegistrationDataType.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/AssetAttributes.d.ts +4 -0
- package/dist/packages/datadog-api-client-v2/models/AssetAttributes.js +4 -0
- package/dist/packages/datadog-api-client-v2/models/AssetAttributes.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/models/ChangeEventCustomAttributes.d.ts +7 -15
- package/dist/packages/datadog-api-client-v2/models/ChangeEventCustomAttributes.js +1 -5
- package/dist/packages/datadog-api-client-v2/models/ChangeEventCustomAttributes.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/models/ChangeEventCustomAttributesAuthor.d.ts +2 -10
- package/dist/packages/datadog-api-client-v2/models/ChangeEventCustomAttributesAuthor.js +1 -5
- package/dist/packages/datadog-api-client-v2/models/ChangeEventCustomAttributesAuthor.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/models/ChangeEventCustomAttributesChangedResource.d.ts +3 -11
- package/dist/packages/datadog-api-client-v2/models/ChangeEventCustomAttributesChangedResource.js +1 -5
- package/dist/packages/datadog-api-client-v2/models/ChangeEventCustomAttributesChangedResource.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/models/ChangeEventCustomAttributesChangedResourceType.d.ts +1 -1
- package/dist/packages/datadog-api-client-v2/models/ChangeEventCustomAttributesImpactedResourcesItems.d.ts +3 -11
- package/dist/packages/datadog-api-client-v2/models/ChangeEventCustomAttributesImpactedResourcesItems.js +1 -5
- package/dist/packages/datadog-api-client-v2/models/ChangeEventCustomAttributesImpactedResourcesItems.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/models/ChangeEventCustomAttributesImpactedResourcesItemsType.d.ts +1 -1
- package/dist/packages/datadog-api-client-v2/models/Dataset.d.ts +45 -0
- package/dist/packages/datadog-api-client-v2/models/Dataset.js +40 -0
- package/dist/packages/datadog-api-client-v2/models/Dataset.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/DatasetAttributes.d.ts +53 -0
- package/dist/packages/datadog-api-client-v2/models/DatasetAttributes.js +51 -0
- package/dist/packages/datadog-api-client-v2/models/DatasetAttributes.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/DatasetCreateRequest.d.ts +37 -0
- package/dist/packages/datadog-api-client-v2/models/DatasetCreateRequest.js +31 -0
- package/dist/packages/datadog-api-client-v2/models/DatasetCreateRequest.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/DatasetResponseMulti.d.ts +37 -0
- package/dist/packages/datadog-api-client-v2/models/DatasetResponseMulti.js +31 -0
- package/dist/packages/datadog-api-client-v2/models/DatasetResponseMulti.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/DatasetResponseSingle.d.ts +37 -0
- package/dist/packages/datadog-api-client-v2/models/DatasetResponseSingle.js +31 -0
- package/dist/packages/datadog-api-client-v2/models/DatasetResponseSingle.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/EventCategory.d.ts +3 -2
- package/dist/packages/datadog-api-client-v2/models/EventCategory.js +2 -1
- package/dist/packages/datadog-api-client-v2/models/EventCategory.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/models/EventCreateRequest.d.ts +3 -3
- package/dist/packages/datadog-api-client-v2/models/EventCreateRequest.js +3 -1
- package/dist/packages/datadog-api-client-v2/models/EventCreateRequest.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/models/EventCreateRequestPayload.d.ts +2 -2
- package/dist/packages/datadog-api-client-v2/models/EventCreateRequestPayload.js +1 -0
- package/dist/packages/datadog-api-client-v2/models/EventCreateRequestPayload.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/models/EventCreateResponse.d.ts +3 -3
- package/dist/packages/datadog-api-client-v2/models/EventCreateResponse.js +1 -1
- package/dist/packages/datadog-api-client-v2/models/EventCreateResponseAttributes.d.ts +2 -2
- package/dist/packages/datadog-api-client-v2/models/EventCreateResponseAttributes.js +1 -1
- package/dist/packages/datadog-api-client-v2/models/EventCreateResponseAttributesAttributes.d.ts +1 -1
- package/dist/packages/datadog-api-client-v2/models/EventCreateResponseAttributesAttributes.js +1 -1
- package/dist/packages/datadog-api-client-v2/models/EventCreateResponseAttributesAttributesEvt.d.ts +5 -1
- package/dist/packages/datadog-api-client-v2/models/EventCreateResponseAttributesAttributesEvt.js +4 -0
- package/dist/packages/datadog-api-client-v2/models/EventCreateResponseAttributesAttributesEvt.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/models/EventCreateResponsePayload.d.ts +7 -2
- package/dist/packages/datadog-api-client-v2/models/EventCreateResponsePayload.js +5 -1
- package/dist/packages/datadog-api-client-v2/models/EventCreateResponsePayload.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/models/EventCreateResponsePayloadLinks.d.ts +36 -0
- package/dist/packages/datadog-api-client-v2/models/EventCreateResponsePayloadLinks.js +35 -0
- package/dist/packages/datadog-api-client-v2/models/EventCreateResponsePayloadLinks.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/EventPayload.d.ts +11 -14
- package/dist/packages/datadog-api-client-v2/models/EventPayload.js +4 -4
- package/dist/packages/datadog-api-client-v2/models/EventPayload.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/models/EventPayloadAttributes.d.ts +3 -2
- package/dist/packages/datadog-api-client-v2/models/EventPayloadIntegrationId.d.ts +11 -0
- package/dist/packages/datadog-api-client-v2/models/EventPayloadIntegrationId.js +10 -0
- package/dist/packages/datadog-api-client-v2/models/EventPayloadIntegrationId.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/FiltersPerProduct.d.ts +44 -0
- package/dist/packages/datadog-api-client-v2/models/FiltersPerProduct.js +41 -0
- package/dist/packages/datadog-api-client-v2/models/FiltersPerProduct.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/GCPUsageCostConfig.d.ts +46 -0
- package/dist/packages/datadog-api-client-v2/models/GCPUsageCostConfig.js +40 -0
- package/dist/packages/datadog-api-client-v2/models/GCPUsageCostConfig.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/GCPUsageCostConfigAttributes.d.ts +84 -0
- package/dist/packages/datadog-api-client-v2/models/GCPUsageCostConfigAttributes.js +91 -0
- package/dist/packages/datadog-api-client-v2/models/GCPUsageCostConfigAttributes.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/GCPUsageCostConfigPatchData.d.ts +42 -0
- package/dist/packages/datadog-api-client-v2/models/GCPUsageCostConfigPatchData.js +36 -0
- package/dist/packages/datadog-api-client-v2/models/GCPUsageCostConfigPatchData.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/GCPUsageCostConfigPatchRequest.d.ts +37 -0
- package/dist/packages/datadog-api-client-v2/models/GCPUsageCostConfigPatchRequest.js +31 -0
- package/dist/packages/datadog-api-client-v2/models/GCPUsageCostConfigPatchRequest.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/GCPUsageCostConfigPatchRequestAttributes.d.ts +36 -0
- package/dist/packages/datadog-api-client-v2/models/GCPUsageCostConfigPatchRequestAttributes.js +36 -0
- package/dist/packages/datadog-api-client-v2/models/GCPUsageCostConfigPatchRequestAttributes.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/GCPUsageCostConfigPatchRequestType.d.ts +11 -0
- package/dist/packages/datadog-api-client-v2/models/GCPUsageCostConfigPatchRequestType.js +10 -0
- package/dist/packages/datadog-api-client-v2/models/GCPUsageCostConfigPatchRequestType.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/GCPUsageCostConfigPostData.d.ts +42 -0
- package/dist/packages/datadog-api-client-v2/models/GCPUsageCostConfigPostData.js +36 -0
- package/dist/packages/datadog-api-client-v2/models/GCPUsageCostConfigPostData.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/GCPUsageCostConfigPostRequest.d.ts +37 -0
- package/dist/packages/datadog-api-client-v2/models/GCPUsageCostConfigPostRequest.js +31 -0
- package/dist/packages/datadog-api-client-v2/models/GCPUsageCostConfigPostRequest.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/GCPUsageCostConfigPostRequestAttributes.d.ts +56 -0
- package/dist/packages/datadog-api-client-v2/models/GCPUsageCostConfigPostRequestAttributes.js +60 -0
- package/dist/packages/datadog-api-client-v2/models/GCPUsageCostConfigPostRequestAttributes.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/GCPUsageCostConfigPostRequestType.d.ts +11 -0
- package/dist/packages/datadog-api-client-v2/models/GCPUsageCostConfigPostRequestType.js +10 -0
- package/dist/packages/datadog-api-client-v2/models/GCPUsageCostConfigPostRequestType.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/GCPUsageCostConfigResponse.d.ts +37 -0
- package/dist/packages/datadog-api-client-v2/models/GCPUsageCostConfigResponse.js +30 -0
- package/dist/packages/datadog-api-client-v2/models/GCPUsageCostConfigResponse.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/GCPUsageCostConfigType.d.ts +11 -0
- package/dist/packages/datadog-api-client-v2/models/GCPUsageCostConfigType.js +10 -0
- package/dist/packages/datadog-api-client-v2/models/GCPUsageCostConfigType.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/GCPUsageCostConfigsResponse.d.ts +37 -0
- package/dist/packages/datadog-api-client-v2/models/GCPUsageCostConfigsResponse.js +30 -0
- package/dist/packages/datadog-api-client-v2/models/GCPUsageCostConfigsResponse.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/GetAppKeyRegistrationResponse.d.ts +37 -0
- package/dist/packages/datadog-api-client-v2/models/GetAppKeyRegistrationResponse.js +30 -0
- package/dist/packages/datadog-api-client-v2/models/GetAppKeyRegistrationResponse.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentCreateAttributes.d.ts +4 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentCreateAttributes.js +4 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentCreateAttributes.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/models/IncidentResponseAttributes.d.ts +4 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentResponseAttributes.js +4 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentResponseAttributes.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/models/JobDefinitionFromRule.d.ts +0 -4
- package/dist/packages/datadog-api-client-v2/models/JobDefinitionFromRule.js +0 -6
- package/dist/packages/datadog-api-client-v2/models/JobDefinitionFromRule.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/models/LayerAttributes.d.ts +1 -1
- package/dist/packages/datadog-api-client-v2/models/LayerAttributesInterval.d.ts +1 -1
- package/dist/packages/datadog-api-client-v2/models/LayerAttributesInterval.js +1 -1
- package/dist/packages/datadog-api-client-v2/models/ListAppKeyRegistrationsResponse.d.ts +42 -0
- package/dist/packages/datadog-api-client-v2/models/ListAppKeyRegistrationsResponse.js +34 -0
- package/dist/packages/datadog-api-client-v2/models/ListAppKeyRegistrationsResponse.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/ListAppKeyRegistrationsResponseMeta.d.ts +40 -0
- package/dist/packages/datadog-api-client-v2/models/ListAppKeyRegistrationsResponseMeta.js +41 -0
- package/dist/packages/datadog-api-client-v2/models/ListAppKeyRegistrationsResponseMeta.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/ListAssetsSBOMsResponse.d.ts +47 -0
- package/dist/packages/datadog-api-client-v2/models/ListAssetsSBOMsResponse.js +39 -0
- package/dist/packages/datadog-api-client-v2/models/ListAssetsSBOMsResponse.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/MonitorUserTemplate.d.ts +72 -0
- package/dist/packages/datadog-api-client-v2/models/MonitorUserTemplate.js +65 -0
- package/dist/packages/datadog-api-client-v2/models/MonitorUserTemplate.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/MonitorUserTemplateCreateData.d.ts +42 -0
- package/dist/packages/datadog-api-client-v2/models/MonitorUserTemplateCreateData.js +36 -0
- package/dist/packages/datadog-api-client-v2/models/MonitorUserTemplateCreateData.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/MonitorUserTemplateCreateRequest.d.ts +37 -0
- package/dist/packages/datadog-api-client-v2/models/MonitorUserTemplateCreateRequest.js +31 -0
- package/dist/packages/datadog-api-client-v2/models/MonitorUserTemplateCreateRequest.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/MonitorUserTemplateCreateResponse.d.ts +37 -0
- package/dist/packages/datadog-api-client-v2/models/MonitorUserTemplateCreateResponse.js +30 -0
- package/dist/packages/datadog-api-client-v2/models/MonitorUserTemplateCreateResponse.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/MonitorUserTemplateListResponse.d.ts +37 -0
- package/dist/packages/datadog-api-client-v2/models/MonitorUserTemplateListResponse.js +30 -0
- package/dist/packages/datadog-api-client-v2/models/MonitorUserTemplateListResponse.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/MonitorUserTemplateRequestAttributes.d.ts +47 -0
- package/dist/packages/datadog-api-client-v2/models/MonitorUserTemplateRequestAttributes.js +45 -0
- package/dist/packages/datadog-api-client-v2/models/MonitorUserTemplateRequestAttributes.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/MonitorUserTemplateResourceType.d.ts +11 -0
- package/dist/packages/datadog-api-client-v2/models/MonitorUserTemplateResourceType.js +10 -0
- package/dist/packages/datadog-api-client-v2/models/MonitorUserTemplateResourceType.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/MonitorUserTemplateResponse.d.ts +37 -0
- package/dist/packages/datadog-api-client-v2/models/MonitorUserTemplateResponse.js +30 -0
- package/dist/packages/datadog-api-client-v2/models/MonitorUserTemplateResponse.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/MonitorUserTemplateResponseAttributes.d.ts +67 -0
- package/dist/packages/datadog-api-client-v2/models/MonitorUserTemplateResponseAttributes.js +61 -0
- package/dist/packages/datadog-api-client-v2/models/MonitorUserTemplateResponseAttributes.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/MonitorUserTemplateResponseData.d.ts +46 -0
- package/dist/packages/datadog-api-client-v2/models/MonitorUserTemplateResponseData.js +38 -0
- package/dist/packages/datadog-api-client-v2/models/MonitorUserTemplateResponseData.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/MonitorUserTemplateResponseDataWithVersions.d.ts +46 -0
- package/dist/packages/datadog-api-client-v2/models/MonitorUserTemplateResponseDataWithVersions.js +38 -0
- package/dist/packages/datadog-api-client-v2/models/MonitorUserTemplateResponseDataWithVersions.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/MonitorUserTemplateTemplateVariablesItems.d.ts +40 -0
- package/dist/packages/datadog-api-client-v2/models/MonitorUserTemplateTemplateVariablesItems.js +44 -0
- package/dist/packages/datadog-api-client-v2/models/MonitorUserTemplateTemplateVariablesItems.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/MonitorUserTemplateUpdateData.d.ts +46 -0
- package/dist/packages/datadog-api-client-v2/models/MonitorUserTemplateUpdateData.js +41 -0
- package/dist/packages/datadog-api-client-v2/models/MonitorUserTemplateUpdateData.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/MonitorUserTemplateUpdateRequest.d.ts +37 -0
- package/dist/packages/datadog-api-client-v2/models/MonitorUserTemplateUpdateRequest.js +31 -0
- package/dist/packages/datadog-api-client-v2/models/MonitorUserTemplateUpdateRequest.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/ObjectSerializer.js +125 -2
- package/dist/packages/datadog-api-client-v2/models/ObjectSerializer.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/models/RegisterAppKeyResponse.d.ts +37 -0
- package/dist/packages/datadog-api-client-v2/models/RegisterAppKeyResponse.js +30 -0
- package/dist/packages/datadog-api-client-v2/models/RegisterAppKeyResponse.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/SBOMAttributes.d.ts +5 -0
- package/dist/packages/datadog-api-client-v2/models/SBOMAttributes.js +5 -0
- package/dist/packages/datadog-api-client-v2/models/SBOMAttributes.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/models/SBOMComponent.d.ts +15 -0
- package/dist/packages/datadog-api-client-v2/models/SBOMComponent.js +13 -0
- package/dist/packages/datadog-api-client-v2/models/SBOMComponent.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/models/SBOMComponentDependency.d.ts +40 -0
- package/dist/packages/datadog-api-client-v2/models/SBOMComponentDependency.js +39 -0
- package/dist/packages/datadog-api-client-v2/models/SBOMComponentDependency.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/SBOMComponentLicense.d.ts +37 -0
- package/dist/packages/datadog-api-client-v2/models/SBOMComponentLicense.js +31 -0
- package/dist/packages/datadog-api-client-v2/models/SBOMComponentLicense.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/SBOMComponentLicenseLicense.d.ts +36 -0
- package/dist/packages/datadog-api-client-v2/models/SBOMComponentLicenseLicense.js +36 -0
- package/dist/packages/datadog-api-client-v2/models/SBOMComponentLicenseLicense.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/SBOMComponentLicenseType.d.ts +18 -0
- package/dist/packages/datadog-api-client-v2/models/SBOMComponentLicenseType.js +17 -0
- package/dist/packages/datadog-api-client-v2/models/SBOMComponentLicenseType.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/SBOMComponentProperty.d.ts +40 -0
- package/dist/packages/datadog-api-client-v2/models/SBOMComponentProperty.js +41 -0
- package/dist/packages/datadog-api-client-v2/models/SBOMComponentProperty.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/SBOMComponentSupplier.d.ts +36 -0
- package/dist/packages/datadog-api-client-v2/models/SBOMComponentSupplier.js +36 -0
- package/dist/packages/datadog-api-client-v2/models/SBOMComponentSupplier.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/SBOMMetadata.d.ts +9 -0
- package/dist/packages/datadog-api-client-v2/models/SBOMMetadata.js +8 -0
- package/dist/packages/datadog-api-client-v2/models/SBOMMetadata.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/models/SBOMMetadataAuthor.d.ts +36 -0
- package/dist/packages/datadog-api-client-v2/models/SBOMMetadataAuthor.js +35 -0
- package/dist/packages/datadog-api-client-v2/models/SBOMMetadataAuthor.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/ScheduleCreateRequestDataAttributesLayersItems.d.ts +1 -1
- package/dist/packages/datadog-api-client-v2/models/ScheduleUpdateRequestDataAttributesLayersItems.d.ts +1 -1
- package/dist/packages/datadog-api-client-v2/models/SimpleMonitorUserTemplate.d.ts +67 -0
- package/dist/packages/datadog-api-client-v2/models/SimpleMonitorUserTemplate.js +60 -0
- package/dist/packages/datadog-api-client-v2/models/SimpleMonitorUserTemplate.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/VulnerabilityAttributes.d.ts +4 -0
- package/dist/packages/datadog-api-client-v2/models/VulnerabilityAttributes.js +5 -0
- package/dist/packages/datadog-api-client-v2/models/VulnerabilityAttributes.js.map +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
|
@@ -50,10 +50,6 @@ class MonitorsApiRequestFactory extends baseapi_1.BaseAPIRequestFactory {
|
|
|
50
50
|
createMonitorNotificationRule(body, _options) {
|
|
51
51
|
return __awaiter(this, void 0, void 0, function* () {
|
|
52
52
|
const _config = _options || this.configuration;
|
|
53
|
-
logger_1.logger.warn("Using unstable operation 'createMonitorNotificationRule'");
|
|
54
|
-
if (!_config.unstableOperations["v2.createMonitorNotificationRule"]) {
|
|
55
|
-
throw new Error("Unstable operation 'createMonitorNotificationRule' is disabled");
|
|
56
|
-
}
|
|
57
53
|
// verify required parameter 'body' is not null or undefined
|
|
58
54
|
if (body === null || body === undefined) {
|
|
59
55
|
throw new baseapi_1.RequiredError("body", "createMonitorNotificationRule");
|
|
@@ -82,6 +78,41 @@ class MonitorsApiRequestFactory extends baseapi_1.BaseAPIRequestFactory {
|
|
|
82
78
|
return requestContext;
|
|
83
79
|
});
|
|
84
80
|
}
|
|
81
|
+
createMonitorUserTemplate(body, _options) {
|
|
82
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
83
|
+
const _config = _options || this.configuration;
|
|
84
|
+
logger_1.logger.warn("Using unstable operation 'createMonitorUserTemplate'");
|
|
85
|
+
if (!_config.unstableOperations["v2.createMonitorUserTemplate"]) {
|
|
86
|
+
throw new Error("Unstable operation 'createMonitorUserTemplate' is disabled");
|
|
87
|
+
}
|
|
88
|
+
// verify required parameter 'body' is not null or undefined
|
|
89
|
+
if (body === null || body === undefined) {
|
|
90
|
+
throw new baseapi_1.RequiredError("body", "createMonitorUserTemplate");
|
|
91
|
+
}
|
|
92
|
+
// Path Params
|
|
93
|
+
const localVarPath = "/api/v2/monitor/template";
|
|
94
|
+
// Make Request Context
|
|
95
|
+
const requestContext = _config
|
|
96
|
+
.getServer("v2.MonitorsApi.createMonitorUserTemplate")
|
|
97
|
+
.makeRequestContext(localVarPath, http_1.HttpMethod.POST);
|
|
98
|
+
requestContext.setHeaderParam("Accept", "application/json");
|
|
99
|
+
requestContext.setHttpConfig(_config.httpConfig);
|
|
100
|
+
// Body Params
|
|
101
|
+
const contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([
|
|
102
|
+
"application/json",
|
|
103
|
+
]);
|
|
104
|
+
requestContext.setHeaderParam("Content-Type", contentType);
|
|
105
|
+
const serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(body, "MonitorUserTemplateCreateRequest", ""), contentType);
|
|
106
|
+
requestContext.setBody(serializedBody);
|
|
107
|
+
// Apply auth methods
|
|
108
|
+
(0, configuration_1.applySecurityAuthentication)(_config, requestContext, [
|
|
109
|
+
"AuthZ",
|
|
110
|
+
"apiKeyAuth",
|
|
111
|
+
"appKeyAuth",
|
|
112
|
+
]);
|
|
113
|
+
return requestContext;
|
|
114
|
+
});
|
|
115
|
+
}
|
|
85
116
|
deleteMonitorConfigPolicy(policyId, _options) {
|
|
86
117
|
return __awaiter(this, void 0, void 0, function* () {
|
|
87
118
|
const _config = _options || this.configuration;
|
|
@@ -108,10 +139,6 @@ class MonitorsApiRequestFactory extends baseapi_1.BaseAPIRequestFactory {
|
|
|
108
139
|
deleteMonitorNotificationRule(ruleId, _options) {
|
|
109
140
|
return __awaiter(this, void 0, void 0, function* () {
|
|
110
141
|
const _config = _options || this.configuration;
|
|
111
|
-
logger_1.logger.warn("Using unstable operation 'deleteMonitorNotificationRule'");
|
|
112
|
-
if (!_config.unstableOperations["v2.deleteMonitorNotificationRule"]) {
|
|
113
|
-
throw new Error("Unstable operation 'deleteMonitorNotificationRule' is disabled");
|
|
114
|
-
}
|
|
115
142
|
// verify required parameter 'ruleId' is not null or undefined
|
|
116
143
|
if (ruleId === null || ruleId === undefined) {
|
|
117
144
|
throw new baseapi_1.RequiredError("ruleId", "deleteMonitorNotificationRule");
|
|
@@ -133,6 +160,34 @@ class MonitorsApiRequestFactory extends baseapi_1.BaseAPIRequestFactory {
|
|
|
133
160
|
return requestContext;
|
|
134
161
|
});
|
|
135
162
|
}
|
|
163
|
+
deleteMonitorUserTemplate(templateId, _options) {
|
|
164
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
165
|
+
const _config = _options || this.configuration;
|
|
166
|
+
logger_1.logger.warn("Using unstable operation 'deleteMonitorUserTemplate'");
|
|
167
|
+
if (!_config.unstableOperations["v2.deleteMonitorUserTemplate"]) {
|
|
168
|
+
throw new Error("Unstable operation 'deleteMonitorUserTemplate' is disabled");
|
|
169
|
+
}
|
|
170
|
+
// verify required parameter 'templateId' is not null or undefined
|
|
171
|
+
if (templateId === null || templateId === undefined) {
|
|
172
|
+
throw new baseapi_1.RequiredError("templateId", "deleteMonitorUserTemplate");
|
|
173
|
+
}
|
|
174
|
+
// Path Params
|
|
175
|
+
const localVarPath = "/api/v2/monitor/template/{template_id}".replace("{template_id}", encodeURIComponent(String(templateId)));
|
|
176
|
+
// Make Request Context
|
|
177
|
+
const requestContext = _config
|
|
178
|
+
.getServer("v2.MonitorsApi.deleteMonitorUserTemplate")
|
|
179
|
+
.makeRequestContext(localVarPath, http_1.HttpMethod.DELETE);
|
|
180
|
+
requestContext.setHeaderParam("Accept", "*/*");
|
|
181
|
+
requestContext.setHttpConfig(_config.httpConfig);
|
|
182
|
+
// Apply auth methods
|
|
183
|
+
(0, configuration_1.applySecurityAuthentication)(_config, requestContext, [
|
|
184
|
+
"AuthZ",
|
|
185
|
+
"apiKeyAuth",
|
|
186
|
+
"appKeyAuth",
|
|
187
|
+
]);
|
|
188
|
+
return requestContext;
|
|
189
|
+
});
|
|
190
|
+
}
|
|
136
191
|
getMonitorConfigPolicy(policyId, _options) {
|
|
137
192
|
return __awaiter(this, void 0, void 0, function* () {
|
|
138
193
|
const _config = _options || this.configuration;
|
|
@@ -160,10 +215,6 @@ class MonitorsApiRequestFactory extends baseapi_1.BaseAPIRequestFactory {
|
|
|
160
215
|
getMonitorNotificationRule(ruleId, include, _options) {
|
|
161
216
|
return __awaiter(this, void 0, void 0, function* () {
|
|
162
217
|
const _config = _options || this.configuration;
|
|
163
|
-
logger_1.logger.warn("Using unstable operation 'getMonitorNotificationRule'");
|
|
164
|
-
if (!_config.unstableOperations["v2.getMonitorNotificationRule"]) {
|
|
165
|
-
throw new Error("Unstable operation 'getMonitorNotificationRule' is disabled");
|
|
166
|
-
}
|
|
167
218
|
// verify required parameter 'ruleId' is not null or undefined
|
|
168
219
|
if (ruleId === null || ruleId === undefined) {
|
|
169
220
|
throw new baseapi_1.RequiredError("ruleId", "getMonitorNotificationRule");
|
|
@@ -192,10 +243,6 @@ class MonitorsApiRequestFactory extends baseapi_1.BaseAPIRequestFactory {
|
|
|
192
243
|
getMonitorNotificationRules(include, _options) {
|
|
193
244
|
return __awaiter(this, void 0, void 0, function* () {
|
|
194
245
|
const _config = _options || this.configuration;
|
|
195
|
-
logger_1.logger.warn("Using unstable operation 'getMonitorNotificationRules'");
|
|
196
|
-
if (!_config.unstableOperations["v2.getMonitorNotificationRules"]) {
|
|
197
|
-
throw new Error("Unstable operation 'getMonitorNotificationRules' is disabled");
|
|
198
|
-
}
|
|
199
246
|
// Path Params
|
|
200
247
|
const localVarPath = "/api/v2/monitor/notification_rule";
|
|
201
248
|
// Make Request Context
|
|
@@ -217,6 +264,38 @@ class MonitorsApiRequestFactory extends baseapi_1.BaseAPIRequestFactory {
|
|
|
217
264
|
return requestContext;
|
|
218
265
|
});
|
|
219
266
|
}
|
|
267
|
+
getMonitorUserTemplate(templateId, withAllVersions, _options) {
|
|
268
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
269
|
+
const _config = _options || this.configuration;
|
|
270
|
+
logger_1.logger.warn("Using unstable operation 'getMonitorUserTemplate'");
|
|
271
|
+
if (!_config.unstableOperations["v2.getMonitorUserTemplate"]) {
|
|
272
|
+
throw new Error("Unstable operation 'getMonitorUserTemplate' is disabled");
|
|
273
|
+
}
|
|
274
|
+
// verify required parameter 'templateId' is not null or undefined
|
|
275
|
+
if (templateId === null || templateId === undefined) {
|
|
276
|
+
throw new baseapi_1.RequiredError("templateId", "getMonitorUserTemplate");
|
|
277
|
+
}
|
|
278
|
+
// Path Params
|
|
279
|
+
const localVarPath = "/api/v2/monitor/template/{template_id}".replace("{template_id}", encodeURIComponent(String(templateId)));
|
|
280
|
+
// Make Request Context
|
|
281
|
+
const requestContext = _config
|
|
282
|
+
.getServer("v2.MonitorsApi.getMonitorUserTemplate")
|
|
283
|
+
.makeRequestContext(localVarPath, http_1.HttpMethod.GET);
|
|
284
|
+
requestContext.setHeaderParam("Accept", "application/json");
|
|
285
|
+
requestContext.setHttpConfig(_config.httpConfig);
|
|
286
|
+
// Query Params
|
|
287
|
+
if (withAllVersions !== undefined) {
|
|
288
|
+
requestContext.setQueryParam("with_all_versions", ObjectSerializer_1.ObjectSerializer.serialize(withAllVersions, "boolean", ""), "");
|
|
289
|
+
}
|
|
290
|
+
// Apply auth methods
|
|
291
|
+
(0, configuration_1.applySecurityAuthentication)(_config, requestContext, [
|
|
292
|
+
"AuthZ",
|
|
293
|
+
"apiKeyAuth",
|
|
294
|
+
"appKeyAuth",
|
|
295
|
+
]);
|
|
296
|
+
return requestContext;
|
|
297
|
+
});
|
|
298
|
+
}
|
|
220
299
|
listMonitorConfigPolicies(_options) {
|
|
221
300
|
return __awaiter(this, void 0, void 0, function* () {
|
|
222
301
|
const _config = _options || this.configuration;
|
|
@@ -237,6 +316,30 @@ class MonitorsApiRequestFactory extends baseapi_1.BaseAPIRequestFactory {
|
|
|
237
316
|
return requestContext;
|
|
238
317
|
});
|
|
239
318
|
}
|
|
319
|
+
listMonitorUserTemplates(_options) {
|
|
320
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
321
|
+
const _config = _options || this.configuration;
|
|
322
|
+
logger_1.logger.warn("Using unstable operation 'listMonitorUserTemplates'");
|
|
323
|
+
if (!_config.unstableOperations["v2.listMonitorUserTemplates"]) {
|
|
324
|
+
throw new Error("Unstable operation 'listMonitorUserTemplates' is disabled");
|
|
325
|
+
}
|
|
326
|
+
// Path Params
|
|
327
|
+
const localVarPath = "/api/v2/monitor/template";
|
|
328
|
+
// Make Request Context
|
|
329
|
+
const requestContext = _config
|
|
330
|
+
.getServer("v2.MonitorsApi.listMonitorUserTemplates")
|
|
331
|
+
.makeRequestContext(localVarPath, http_1.HttpMethod.GET);
|
|
332
|
+
requestContext.setHeaderParam("Accept", "application/json");
|
|
333
|
+
requestContext.setHttpConfig(_config.httpConfig);
|
|
334
|
+
// Apply auth methods
|
|
335
|
+
(0, configuration_1.applySecurityAuthentication)(_config, requestContext, [
|
|
336
|
+
"AuthZ",
|
|
337
|
+
"apiKeyAuth",
|
|
338
|
+
"appKeyAuth",
|
|
339
|
+
]);
|
|
340
|
+
return requestContext;
|
|
341
|
+
});
|
|
342
|
+
}
|
|
240
343
|
updateMonitorConfigPolicy(policyId, body, _options) {
|
|
241
344
|
return __awaiter(this, void 0, void 0, function* () {
|
|
242
345
|
const _config = _options || this.configuration;
|
|
@@ -274,10 +377,6 @@ class MonitorsApiRequestFactory extends baseapi_1.BaseAPIRequestFactory {
|
|
|
274
377
|
updateMonitorNotificationRule(ruleId, body, _options) {
|
|
275
378
|
return __awaiter(this, void 0, void 0, function* () {
|
|
276
379
|
const _config = _options || this.configuration;
|
|
277
|
-
logger_1.logger.warn("Using unstable operation 'updateMonitorNotificationRule'");
|
|
278
|
-
if (!_config.unstableOperations["v2.updateMonitorNotificationRule"]) {
|
|
279
|
-
throw new Error("Unstable operation 'updateMonitorNotificationRule' is disabled");
|
|
280
|
-
}
|
|
281
380
|
// verify required parameter 'ruleId' is not null or undefined
|
|
282
381
|
if (ruleId === null || ruleId === undefined) {
|
|
283
382
|
throw new baseapi_1.RequiredError("ruleId", "updateMonitorNotificationRule");
|
|
@@ -310,6 +409,119 @@ class MonitorsApiRequestFactory extends baseapi_1.BaseAPIRequestFactory {
|
|
|
310
409
|
return requestContext;
|
|
311
410
|
});
|
|
312
411
|
}
|
|
412
|
+
updateMonitorUserTemplate(templateId, body, _options) {
|
|
413
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
414
|
+
const _config = _options || this.configuration;
|
|
415
|
+
logger_1.logger.warn("Using unstable operation 'updateMonitorUserTemplate'");
|
|
416
|
+
if (!_config.unstableOperations["v2.updateMonitorUserTemplate"]) {
|
|
417
|
+
throw new Error("Unstable operation 'updateMonitorUserTemplate' is disabled");
|
|
418
|
+
}
|
|
419
|
+
// verify required parameter 'templateId' is not null or undefined
|
|
420
|
+
if (templateId === null || templateId === undefined) {
|
|
421
|
+
throw new baseapi_1.RequiredError("templateId", "updateMonitorUserTemplate");
|
|
422
|
+
}
|
|
423
|
+
// verify required parameter 'body' is not null or undefined
|
|
424
|
+
if (body === null || body === undefined) {
|
|
425
|
+
throw new baseapi_1.RequiredError("body", "updateMonitorUserTemplate");
|
|
426
|
+
}
|
|
427
|
+
// Path Params
|
|
428
|
+
const localVarPath = "/api/v2/monitor/template/{template_id}".replace("{template_id}", encodeURIComponent(String(templateId)));
|
|
429
|
+
// Make Request Context
|
|
430
|
+
const requestContext = _config
|
|
431
|
+
.getServer("v2.MonitorsApi.updateMonitorUserTemplate")
|
|
432
|
+
.makeRequestContext(localVarPath, http_1.HttpMethod.PUT);
|
|
433
|
+
requestContext.setHeaderParam("Accept", "application/json");
|
|
434
|
+
requestContext.setHttpConfig(_config.httpConfig);
|
|
435
|
+
// Body Params
|
|
436
|
+
const contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([
|
|
437
|
+
"application/json",
|
|
438
|
+
]);
|
|
439
|
+
requestContext.setHeaderParam("Content-Type", contentType);
|
|
440
|
+
const serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(body, "MonitorUserTemplateUpdateRequest", ""), contentType);
|
|
441
|
+
requestContext.setBody(serializedBody);
|
|
442
|
+
// Apply auth methods
|
|
443
|
+
(0, configuration_1.applySecurityAuthentication)(_config, requestContext, [
|
|
444
|
+
"AuthZ",
|
|
445
|
+
"apiKeyAuth",
|
|
446
|
+
"appKeyAuth",
|
|
447
|
+
]);
|
|
448
|
+
return requestContext;
|
|
449
|
+
});
|
|
450
|
+
}
|
|
451
|
+
validateExistingMonitorUserTemplate(templateId, body, _options) {
|
|
452
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
453
|
+
const _config = _options || this.configuration;
|
|
454
|
+
logger_1.logger.warn("Using unstable operation 'validateExistingMonitorUserTemplate'");
|
|
455
|
+
if (!_config.unstableOperations["v2.validateExistingMonitorUserTemplate"]) {
|
|
456
|
+
throw new Error("Unstable operation 'validateExistingMonitorUserTemplate' is disabled");
|
|
457
|
+
}
|
|
458
|
+
// verify required parameter 'templateId' is not null or undefined
|
|
459
|
+
if (templateId === null || templateId === undefined) {
|
|
460
|
+
throw new baseapi_1.RequiredError("templateId", "validateExistingMonitorUserTemplate");
|
|
461
|
+
}
|
|
462
|
+
// verify required parameter 'body' is not null or undefined
|
|
463
|
+
if (body === null || body === undefined) {
|
|
464
|
+
throw new baseapi_1.RequiredError("body", "validateExistingMonitorUserTemplate");
|
|
465
|
+
}
|
|
466
|
+
// Path Params
|
|
467
|
+
const localVarPath = "/api/v2/monitor/template/{template_id}/validate".replace("{template_id}", encodeURIComponent(String(templateId)));
|
|
468
|
+
// Make Request Context
|
|
469
|
+
const requestContext = _config
|
|
470
|
+
.getServer("v2.MonitorsApi.validateExistingMonitorUserTemplate")
|
|
471
|
+
.makeRequestContext(localVarPath, http_1.HttpMethod.POST);
|
|
472
|
+
requestContext.setHeaderParam("Accept", "*/*");
|
|
473
|
+
requestContext.setHttpConfig(_config.httpConfig);
|
|
474
|
+
// Body Params
|
|
475
|
+
const contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([
|
|
476
|
+
"application/json",
|
|
477
|
+
]);
|
|
478
|
+
requestContext.setHeaderParam("Content-Type", contentType);
|
|
479
|
+
const serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(body, "MonitorUserTemplateUpdateRequest", ""), contentType);
|
|
480
|
+
requestContext.setBody(serializedBody);
|
|
481
|
+
// Apply auth methods
|
|
482
|
+
(0, configuration_1.applySecurityAuthentication)(_config, requestContext, [
|
|
483
|
+
"AuthZ",
|
|
484
|
+
"apiKeyAuth",
|
|
485
|
+
"appKeyAuth",
|
|
486
|
+
]);
|
|
487
|
+
return requestContext;
|
|
488
|
+
});
|
|
489
|
+
}
|
|
490
|
+
validateMonitorUserTemplate(body, _options) {
|
|
491
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
492
|
+
const _config = _options || this.configuration;
|
|
493
|
+
logger_1.logger.warn("Using unstable operation 'validateMonitorUserTemplate'");
|
|
494
|
+
if (!_config.unstableOperations["v2.validateMonitorUserTemplate"]) {
|
|
495
|
+
throw new Error("Unstable operation 'validateMonitorUserTemplate' is disabled");
|
|
496
|
+
}
|
|
497
|
+
// verify required parameter 'body' is not null or undefined
|
|
498
|
+
if (body === null || body === undefined) {
|
|
499
|
+
throw new baseapi_1.RequiredError("body", "validateMonitorUserTemplate");
|
|
500
|
+
}
|
|
501
|
+
// Path Params
|
|
502
|
+
const localVarPath = "/api/v2/monitor/template/validate";
|
|
503
|
+
// Make Request Context
|
|
504
|
+
const requestContext = _config
|
|
505
|
+
.getServer("v2.MonitorsApi.validateMonitorUserTemplate")
|
|
506
|
+
.makeRequestContext(localVarPath, http_1.HttpMethod.POST);
|
|
507
|
+
requestContext.setHeaderParam("Accept", "*/*");
|
|
508
|
+
requestContext.setHttpConfig(_config.httpConfig);
|
|
509
|
+
// Body Params
|
|
510
|
+
const contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([
|
|
511
|
+
"application/json",
|
|
512
|
+
]);
|
|
513
|
+
requestContext.setHeaderParam("Content-Type", contentType);
|
|
514
|
+
const serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(body, "MonitorUserTemplateCreateRequest", ""), contentType);
|
|
515
|
+
requestContext.setBody(serializedBody);
|
|
516
|
+
// Apply auth methods
|
|
517
|
+
(0, configuration_1.applySecurityAuthentication)(_config, requestContext, [
|
|
518
|
+
"AuthZ",
|
|
519
|
+
"apiKeyAuth",
|
|
520
|
+
"appKeyAuth",
|
|
521
|
+
]);
|
|
522
|
+
return requestContext;
|
|
523
|
+
});
|
|
524
|
+
}
|
|
313
525
|
}
|
|
314
526
|
exports.MonitorsApiRequestFactory = MonitorsApiRequestFactory;
|
|
315
527
|
class MonitorsApiResponseProcessor {
|
|
@@ -387,6 +599,41 @@ class MonitorsApiResponseProcessor {
|
|
|
387
599
|
throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"');
|
|
388
600
|
});
|
|
389
601
|
}
|
|
602
|
+
/**
|
|
603
|
+
* Unwraps the actual response sent by the server from the response context and deserializes the response content
|
|
604
|
+
* to the expected objects
|
|
605
|
+
*
|
|
606
|
+
* @params response Response returned by the server for a request to createMonitorUserTemplate
|
|
607
|
+
* @throws ApiException if the response code was not in [200, 299]
|
|
608
|
+
*/
|
|
609
|
+
createMonitorUserTemplate(response) {
|
|
610
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
611
|
+
const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
612
|
+
if (response.httpStatusCode === 200) {
|
|
613
|
+
const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "MonitorUserTemplateCreateResponse");
|
|
614
|
+
return body;
|
|
615
|
+
}
|
|
616
|
+
if (response.httpStatusCode === 400 || response.httpStatusCode === 429) {
|
|
617
|
+
const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType);
|
|
618
|
+
let body;
|
|
619
|
+
try {
|
|
620
|
+
body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse");
|
|
621
|
+
}
|
|
622
|
+
catch (error) {
|
|
623
|
+
logger_1.logger.debug(`Got error deserializing error: ${error}`);
|
|
624
|
+
throw new exception_1.ApiException(response.httpStatusCode, bodyText);
|
|
625
|
+
}
|
|
626
|
+
throw new exception_1.ApiException(response.httpStatusCode, body);
|
|
627
|
+
}
|
|
628
|
+
// Work around for missing responses in specification, e.g. for petstore.yaml
|
|
629
|
+
if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
|
|
630
|
+
const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "MonitorUserTemplateCreateResponse", "");
|
|
631
|
+
return body;
|
|
632
|
+
}
|
|
633
|
+
const body = (yield response.body.text()) || "";
|
|
634
|
+
throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"');
|
|
635
|
+
});
|
|
636
|
+
}
|
|
390
637
|
/**
|
|
391
638
|
* Unwraps the actual response sent by the server from the response context and deserializes the response content
|
|
392
639
|
* to the expected objects
|
|
@@ -460,6 +707,40 @@ class MonitorsApiResponseProcessor {
|
|
|
460
707
|
throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"');
|
|
461
708
|
});
|
|
462
709
|
}
|
|
710
|
+
/**
|
|
711
|
+
* Unwraps the actual response sent by the server from the response context and deserializes the response content
|
|
712
|
+
* to the expected objects
|
|
713
|
+
*
|
|
714
|
+
* @params response Response returned by the server for a request to deleteMonitorUserTemplate
|
|
715
|
+
* @throws ApiException if the response code was not in [200, 299]
|
|
716
|
+
*/
|
|
717
|
+
deleteMonitorUserTemplate(response) {
|
|
718
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
719
|
+
const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
720
|
+
if (response.httpStatusCode === 204) {
|
|
721
|
+
return;
|
|
722
|
+
}
|
|
723
|
+
if (response.httpStatusCode === 404 || response.httpStatusCode === 429) {
|
|
724
|
+
const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType);
|
|
725
|
+
let body;
|
|
726
|
+
try {
|
|
727
|
+
body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse");
|
|
728
|
+
}
|
|
729
|
+
catch (error) {
|
|
730
|
+
logger_1.logger.debug(`Got error deserializing error: ${error}`);
|
|
731
|
+
throw new exception_1.ApiException(response.httpStatusCode, bodyText);
|
|
732
|
+
}
|
|
733
|
+
throw new exception_1.ApiException(response.httpStatusCode, body);
|
|
734
|
+
}
|
|
735
|
+
// Work around for missing responses in specification, e.g. for petstore.yaml
|
|
736
|
+
if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
|
|
737
|
+
const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "void", "");
|
|
738
|
+
return body;
|
|
739
|
+
}
|
|
740
|
+
const body = (yield response.body.text()) || "";
|
|
741
|
+
throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"');
|
|
742
|
+
});
|
|
743
|
+
}
|
|
463
744
|
/**
|
|
464
745
|
* Unwraps the actual response sent by the server from the response context and deserializes the response content
|
|
465
746
|
* to the expected objects
|
|
@@ -569,6 +850,41 @@ class MonitorsApiResponseProcessor {
|
|
|
569
850
|
throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"');
|
|
570
851
|
});
|
|
571
852
|
}
|
|
853
|
+
/**
|
|
854
|
+
* Unwraps the actual response sent by the server from the response context and deserializes the response content
|
|
855
|
+
* to the expected objects
|
|
856
|
+
*
|
|
857
|
+
* @params response Response returned by the server for a request to getMonitorUserTemplate
|
|
858
|
+
* @throws ApiException if the response code was not in [200, 299]
|
|
859
|
+
*/
|
|
860
|
+
getMonitorUserTemplate(response) {
|
|
861
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
862
|
+
const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
863
|
+
if (response.httpStatusCode === 200) {
|
|
864
|
+
const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "MonitorUserTemplateResponse");
|
|
865
|
+
return body;
|
|
866
|
+
}
|
|
867
|
+
if (response.httpStatusCode === 404 || response.httpStatusCode === 429) {
|
|
868
|
+
const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType);
|
|
869
|
+
let body;
|
|
870
|
+
try {
|
|
871
|
+
body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse");
|
|
872
|
+
}
|
|
873
|
+
catch (error) {
|
|
874
|
+
logger_1.logger.debug(`Got error deserializing error: ${error}`);
|
|
875
|
+
throw new exception_1.ApiException(response.httpStatusCode, bodyText);
|
|
876
|
+
}
|
|
877
|
+
throw new exception_1.ApiException(response.httpStatusCode, body);
|
|
878
|
+
}
|
|
879
|
+
// Work around for missing responses in specification, e.g. for petstore.yaml
|
|
880
|
+
if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
|
|
881
|
+
const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "MonitorUserTemplateResponse", "");
|
|
882
|
+
return body;
|
|
883
|
+
}
|
|
884
|
+
const body = (yield response.body.text()) || "";
|
|
885
|
+
throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"');
|
|
886
|
+
});
|
|
887
|
+
}
|
|
572
888
|
/**
|
|
573
889
|
* Unwraps the actual response sent by the server from the response context and deserializes the response content
|
|
574
890
|
* to the expected objects
|
|
@@ -604,6 +920,41 @@ class MonitorsApiResponseProcessor {
|
|
|
604
920
|
throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"');
|
|
605
921
|
});
|
|
606
922
|
}
|
|
923
|
+
/**
|
|
924
|
+
* Unwraps the actual response sent by the server from the response context and deserializes the response content
|
|
925
|
+
* to the expected objects
|
|
926
|
+
*
|
|
927
|
+
* @params response Response returned by the server for a request to listMonitorUserTemplates
|
|
928
|
+
* @throws ApiException if the response code was not in [200, 299]
|
|
929
|
+
*/
|
|
930
|
+
listMonitorUserTemplates(response) {
|
|
931
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
932
|
+
const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
933
|
+
if (response.httpStatusCode === 200) {
|
|
934
|
+
const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "MonitorUserTemplateListResponse");
|
|
935
|
+
return body;
|
|
936
|
+
}
|
|
937
|
+
if (response.httpStatusCode === 429) {
|
|
938
|
+
const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType);
|
|
939
|
+
let body;
|
|
940
|
+
try {
|
|
941
|
+
body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse");
|
|
942
|
+
}
|
|
943
|
+
catch (error) {
|
|
944
|
+
logger_1.logger.debug(`Got error deserializing error: ${error}`);
|
|
945
|
+
throw new exception_1.ApiException(response.httpStatusCode, bodyText);
|
|
946
|
+
}
|
|
947
|
+
throw new exception_1.ApiException(response.httpStatusCode, body);
|
|
948
|
+
}
|
|
949
|
+
// Work around for missing responses in specification, e.g. for petstore.yaml
|
|
950
|
+
if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
|
|
951
|
+
const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "MonitorUserTemplateListResponse", "");
|
|
952
|
+
return body;
|
|
953
|
+
}
|
|
954
|
+
const body = (yield response.body.text()) || "";
|
|
955
|
+
throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"');
|
|
956
|
+
});
|
|
957
|
+
}
|
|
607
958
|
/**
|
|
608
959
|
* Unwraps the actual response sent by the server from the response context and deserializes the response content
|
|
609
960
|
* to the expected objects
|
|
@@ -680,6 +1031,113 @@ class MonitorsApiResponseProcessor {
|
|
|
680
1031
|
throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"');
|
|
681
1032
|
});
|
|
682
1033
|
}
|
|
1034
|
+
/**
|
|
1035
|
+
* Unwraps the actual response sent by the server from the response context and deserializes the response content
|
|
1036
|
+
* to the expected objects
|
|
1037
|
+
*
|
|
1038
|
+
* @params response Response returned by the server for a request to updateMonitorUserTemplate
|
|
1039
|
+
* @throws ApiException if the response code was not in [200, 299]
|
|
1040
|
+
*/
|
|
1041
|
+
updateMonitorUserTemplate(response) {
|
|
1042
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1043
|
+
const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
1044
|
+
if (response.httpStatusCode === 200) {
|
|
1045
|
+
const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "MonitorUserTemplateResponse");
|
|
1046
|
+
return body;
|
|
1047
|
+
}
|
|
1048
|
+
if (response.httpStatusCode === 400 ||
|
|
1049
|
+
response.httpStatusCode === 404 ||
|
|
1050
|
+
response.httpStatusCode === 429) {
|
|
1051
|
+
const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType);
|
|
1052
|
+
let body;
|
|
1053
|
+
try {
|
|
1054
|
+
body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse");
|
|
1055
|
+
}
|
|
1056
|
+
catch (error) {
|
|
1057
|
+
logger_1.logger.debug(`Got error deserializing error: ${error}`);
|
|
1058
|
+
throw new exception_1.ApiException(response.httpStatusCode, bodyText);
|
|
1059
|
+
}
|
|
1060
|
+
throw new exception_1.ApiException(response.httpStatusCode, body);
|
|
1061
|
+
}
|
|
1062
|
+
// Work around for missing responses in specification, e.g. for petstore.yaml
|
|
1063
|
+
if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
|
|
1064
|
+
const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "MonitorUserTemplateResponse", "");
|
|
1065
|
+
return body;
|
|
1066
|
+
}
|
|
1067
|
+
const body = (yield response.body.text()) || "";
|
|
1068
|
+
throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"');
|
|
1069
|
+
});
|
|
1070
|
+
}
|
|
1071
|
+
/**
|
|
1072
|
+
* Unwraps the actual response sent by the server from the response context and deserializes the response content
|
|
1073
|
+
* to the expected objects
|
|
1074
|
+
*
|
|
1075
|
+
* @params response Response returned by the server for a request to validateExistingMonitorUserTemplate
|
|
1076
|
+
* @throws ApiException if the response code was not in [200, 299]
|
|
1077
|
+
*/
|
|
1078
|
+
validateExistingMonitorUserTemplate(response) {
|
|
1079
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1080
|
+
const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
1081
|
+
if (response.httpStatusCode === 204) {
|
|
1082
|
+
return;
|
|
1083
|
+
}
|
|
1084
|
+
if (response.httpStatusCode === 400 ||
|
|
1085
|
+
response.httpStatusCode === 404 ||
|
|
1086
|
+
response.httpStatusCode === 429) {
|
|
1087
|
+
const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType);
|
|
1088
|
+
let body;
|
|
1089
|
+
try {
|
|
1090
|
+
body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse");
|
|
1091
|
+
}
|
|
1092
|
+
catch (error) {
|
|
1093
|
+
logger_1.logger.debug(`Got error deserializing error: ${error}`);
|
|
1094
|
+
throw new exception_1.ApiException(response.httpStatusCode, bodyText);
|
|
1095
|
+
}
|
|
1096
|
+
throw new exception_1.ApiException(response.httpStatusCode, body);
|
|
1097
|
+
}
|
|
1098
|
+
// Work around for missing responses in specification, e.g. for petstore.yaml
|
|
1099
|
+
if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
|
|
1100
|
+
const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "void", "");
|
|
1101
|
+
return body;
|
|
1102
|
+
}
|
|
1103
|
+
const body = (yield response.body.text()) || "";
|
|
1104
|
+
throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"');
|
|
1105
|
+
});
|
|
1106
|
+
}
|
|
1107
|
+
/**
|
|
1108
|
+
* Unwraps the actual response sent by the server from the response context and deserializes the response content
|
|
1109
|
+
* to the expected objects
|
|
1110
|
+
*
|
|
1111
|
+
* @params response Response returned by the server for a request to validateMonitorUserTemplate
|
|
1112
|
+
* @throws ApiException if the response code was not in [200, 299]
|
|
1113
|
+
*/
|
|
1114
|
+
validateMonitorUserTemplate(response) {
|
|
1115
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1116
|
+
const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
1117
|
+
if (response.httpStatusCode === 204) {
|
|
1118
|
+
return;
|
|
1119
|
+
}
|
|
1120
|
+
if (response.httpStatusCode === 400 || response.httpStatusCode === 429) {
|
|
1121
|
+
const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType);
|
|
1122
|
+
let body;
|
|
1123
|
+
try {
|
|
1124
|
+
body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse");
|
|
1125
|
+
}
|
|
1126
|
+
catch (error) {
|
|
1127
|
+
logger_1.logger.debug(`Got error deserializing error: ${error}`);
|
|
1128
|
+
throw new exception_1.ApiException(response.httpStatusCode, bodyText);
|
|
1129
|
+
}
|
|
1130
|
+
throw new exception_1.ApiException(response.httpStatusCode, body);
|
|
1131
|
+
}
|
|
1132
|
+
// Work around for missing responses in specification, e.g. for petstore.yaml
|
|
1133
|
+
if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
|
|
1134
|
+
const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "void", "");
|
|
1135
|
+
return body;
|
|
1136
|
+
}
|
|
1137
|
+
const body = (yield response.body.text()) || "";
|
|
1138
|
+
throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"');
|
|
1139
|
+
});
|
|
1140
|
+
}
|
|
683
1141
|
}
|
|
684
1142
|
exports.MonitorsApiResponseProcessor = MonitorsApiResponseProcessor;
|
|
685
1143
|
class MonitorsApi {
|
|
@@ -718,6 +1176,20 @@ class MonitorsApi {
|
|
|
718
1176
|
});
|
|
719
1177
|
});
|
|
720
1178
|
}
|
|
1179
|
+
/**
|
|
1180
|
+
* Create a new monitor user template.
|
|
1181
|
+
* @param param The request object
|
|
1182
|
+
*/
|
|
1183
|
+
createMonitorUserTemplate(param, options) {
|
|
1184
|
+
const requestContextPromise = this.requestFactory.createMonitorUserTemplate(param.body, options);
|
|
1185
|
+
return requestContextPromise.then((requestContext) => {
|
|
1186
|
+
return this.configuration.httpApi
|
|
1187
|
+
.send(requestContext)
|
|
1188
|
+
.then((responseContext) => {
|
|
1189
|
+
return this.responseProcessor.createMonitorUserTemplate(responseContext);
|
|
1190
|
+
});
|
|
1191
|
+
});
|
|
1192
|
+
}
|
|
721
1193
|
/**
|
|
722
1194
|
* Delete a monitor configuration policy.
|
|
723
1195
|
* @param param The request object
|
|
@@ -746,6 +1218,20 @@ class MonitorsApi {
|
|
|
746
1218
|
});
|
|
747
1219
|
});
|
|
748
1220
|
}
|
|
1221
|
+
/**
|
|
1222
|
+
* Delete an existing monitor user template by its ID.
|
|
1223
|
+
* @param param The request object
|
|
1224
|
+
*/
|
|
1225
|
+
deleteMonitorUserTemplate(param, options) {
|
|
1226
|
+
const requestContextPromise = this.requestFactory.deleteMonitorUserTemplate(param.templateId, options);
|
|
1227
|
+
return requestContextPromise.then((requestContext) => {
|
|
1228
|
+
return this.configuration.httpApi
|
|
1229
|
+
.send(requestContext)
|
|
1230
|
+
.then((responseContext) => {
|
|
1231
|
+
return this.responseProcessor.deleteMonitorUserTemplate(responseContext);
|
|
1232
|
+
});
|
|
1233
|
+
});
|
|
1234
|
+
}
|
|
749
1235
|
/**
|
|
750
1236
|
* Get a monitor configuration policy by `policy_id`.
|
|
751
1237
|
* @param param The request object
|
|
@@ -788,6 +1274,20 @@ class MonitorsApi {
|
|
|
788
1274
|
});
|
|
789
1275
|
});
|
|
790
1276
|
}
|
|
1277
|
+
/**
|
|
1278
|
+
* Retrieve a monitor user template by its ID.
|
|
1279
|
+
* @param param The request object
|
|
1280
|
+
*/
|
|
1281
|
+
getMonitorUserTemplate(param, options) {
|
|
1282
|
+
const requestContextPromise = this.requestFactory.getMonitorUserTemplate(param.templateId, param.withAllVersions, options);
|
|
1283
|
+
return requestContextPromise.then((requestContext) => {
|
|
1284
|
+
return this.configuration.httpApi
|
|
1285
|
+
.send(requestContext)
|
|
1286
|
+
.then((responseContext) => {
|
|
1287
|
+
return this.responseProcessor.getMonitorUserTemplate(responseContext);
|
|
1288
|
+
});
|
|
1289
|
+
});
|
|
1290
|
+
}
|
|
791
1291
|
/**
|
|
792
1292
|
* Get all monitor configuration policies.
|
|
793
1293
|
* @param param The request object
|
|
@@ -802,6 +1302,20 @@ class MonitorsApi {
|
|
|
802
1302
|
});
|
|
803
1303
|
});
|
|
804
1304
|
}
|
|
1305
|
+
/**
|
|
1306
|
+
* Retrieve all monitor user templates.
|
|
1307
|
+
* @param param The request object
|
|
1308
|
+
*/
|
|
1309
|
+
listMonitorUserTemplates(options) {
|
|
1310
|
+
const requestContextPromise = this.requestFactory.listMonitorUserTemplates(options);
|
|
1311
|
+
return requestContextPromise.then((requestContext) => {
|
|
1312
|
+
return this.configuration.httpApi
|
|
1313
|
+
.send(requestContext)
|
|
1314
|
+
.then((responseContext) => {
|
|
1315
|
+
return this.responseProcessor.listMonitorUserTemplates(responseContext);
|
|
1316
|
+
});
|
|
1317
|
+
});
|
|
1318
|
+
}
|
|
805
1319
|
/**
|
|
806
1320
|
* Edit a monitor configuration policy.
|
|
807
1321
|
* @param param The request object
|
|
@@ -830,6 +1344,48 @@ class MonitorsApi {
|
|
|
830
1344
|
});
|
|
831
1345
|
});
|
|
832
1346
|
}
|
|
1347
|
+
/**
|
|
1348
|
+
* Creates a new version of an existing monitor user template.
|
|
1349
|
+
* @param param The request object
|
|
1350
|
+
*/
|
|
1351
|
+
updateMonitorUserTemplate(param, options) {
|
|
1352
|
+
const requestContextPromise = this.requestFactory.updateMonitorUserTemplate(param.templateId, param.body, options);
|
|
1353
|
+
return requestContextPromise.then((requestContext) => {
|
|
1354
|
+
return this.configuration.httpApi
|
|
1355
|
+
.send(requestContext)
|
|
1356
|
+
.then((responseContext) => {
|
|
1357
|
+
return this.responseProcessor.updateMonitorUserTemplate(responseContext);
|
|
1358
|
+
});
|
|
1359
|
+
});
|
|
1360
|
+
}
|
|
1361
|
+
/**
|
|
1362
|
+
* Validate the structure and content of an existing monitor user template being updated to a new version.
|
|
1363
|
+
* @param param The request object
|
|
1364
|
+
*/
|
|
1365
|
+
validateExistingMonitorUserTemplate(param, options) {
|
|
1366
|
+
const requestContextPromise = this.requestFactory.validateExistingMonitorUserTemplate(param.templateId, param.body, options);
|
|
1367
|
+
return requestContextPromise.then((requestContext) => {
|
|
1368
|
+
return this.configuration.httpApi
|
|
1369
|
+
.send(requestContext)
|
|
1370
|
+
.then((responseContext) => {
|
|
1371
|
+
return this.responseProcessor.validateExistingMonitorUserTemplate(responseContext);
|
|
1372
|
+
});
|
|
1373
|
+
});
|
|
1374
|
+
}
|
|
1375
|
+
/**
|
|
1376
|
+
* Validate the structure and content of a monitor user template.
|
|
1377
|
+
* @param param The request object
|
|
1378
|
+
*/
|
|
1379
|
+
validateMonitorUserTemplate(param, options) {
|
|
1380
|
+
const requestContextPromise = this.requestFactory.validateMonitorUserTemplate(param.body, options);
|
|
1381
|
+
return requestContextPromise.then((requestContext) => {
|
|
1382
|
+
return this.configuration.httpApi
|
|
1383
|
+
.send(requestContext)
|
|
1384
|
+
.then((responseContext) => {
|
|
1385
|
+
return this.responseProcessor.validateMonitorUserTemplate(responseContext);
|
|
1386
|
+
});
|
|
1387
|
+
});
|
|
1388
|
+
}
|
|
833
1389
|
}
|
|
834
1390
|
exports.MonitorsApi = MonitorsApi;
|
|
835
1391
|
//# sourceMappingURL=MonitorsApi.js.map
|