@datadog/datadog-api-client 1.47.0 → 1.48.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 +20 -0
- package/dist/packages/datadog-api-client-common/configuration.js +25 -3
- package/dist/packages/datadog-api-client-common/configuration.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/apis/MonitorsApi.d.ts +6 -1
- package/dist/packages/datadog-api-client-v1/apis/MonitorsApi.js +5 -2
- package/dist/packages/datadog-api-client-v1/apis/MonitorsApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/index.d.ts +3 -0
- package/dist/packages/datadog-api-client-v1/index.js +12 -10
- package/dist/packages/datadog-api-client-v1/index.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/models/Monitor.d.ts +5 -0
- package/dist/packages/datadog-api-client-v1/models/Monitor.js +4 -0
- package/dist/packages/datadog-api-client-v1/models/Monitor.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/models/MonitorAsset.d.ts +55 -0
- package/dist/packages/datadog-api-client-v1/models/MonitorAsset.js +50 -0
- package/dist/packages/datadog-api-client-v1/models/MonitorAsset.js.map +1 -0
- package/dist/packages/datadog-api-client-v1/models/MonitorAssetCategory.d.ts +11 -0
- package/dist/packages/datadog-api-client-v1/models/MonitorAssetCategory.js +10 -0
- package/dist/packages/datadog-api-client-v1/models/MonitorAssetCategory.js.map +1 -0
- package/dist/packages/datadog-api-client-v1/models/MonitorAssetResourceType.d.ts +11 -0
- package/dist/packages/datadog-api-client-v1/models/MonitorAssetResourceType.js +10 -0
- package/dist/packages/datadog-api-client-v1/models/MonitorAssetResourceType.js.map +1 -0
- package/dist/packages/datadog-api-client-v1/models/MonitorUpdateRequest.d.ts +5 -0
- package/dist/packages/datadog-api-client-v1/models/MonitorUpdateRequest.js +4 -0
- package/dist/packages/datadog-api-client-v1/models/MonitorUpdateRequest.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/models/ObjectSerializer.js +4 -0
- package/dist/packages/datadog-api-client-v1/models/ObjectSerializer.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/models/UsageSummaryDate.d.ts +4 -0
- package/dist/packages/datadog-api-client-v1/models/UsageSummaryDate.js +5 -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 +4 -0
- package/dist/packages/datadog-api-client-v1/models/UsageSummaryDateOrg.js +5 -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 +4 -0
- package/dist/packages/datadog-api-client-v1/models/UsageSummaryResponse.js +5 -0
- package/dist/packages/datadog-api-client-v1/models/UsageSummaryResponse.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/apis/DeploymentGatesApi.d.ts +213 -0
- package/dist/packages/datadog-api-client-v2/apis/DeploymentGatesApi.js +977 -0
- package/dist/packages/datadog-api-client-v2/apis/DeploymentGatesApi.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/apis/FleetAutomationApi.d.ts +76 -0
- package/dist/packages/datadog-api-client-v2/apis/FleetAutomationApi.js +183 -1
- package/dist/packages/datadog-api-client-v2/apis/FleetAutomationApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/apis/LogsRestrictionQueriesApi.d.ts +283 -0
- package/dist/packages/datadog-api-client-v2/apis/LogsRestrictionQueriesApi.js +958 -0
- package/dist/packages/datadog-api-client-v2/apis/LogsRestrictionQueriesApi.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/apis/ReferenceTablesApi.d.ts +52 -0
- package/dist/packages/datadog-api-client-v2/apis/ReferenceTablesApi.js +172 -0
- package/dist/packages/datadog-api-client-v2/apis/ReferenceTablesApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/apis/SecurityMonitoringApi.d.ts +126 -4
- package/dist/packages/datadog-api-client-v2/apis/SecurityMonitoringApi.js +427 -4
- package/dist/packages/datadog-api-client-v2/apis/SecurityMonitoringApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/apis/TeamsApi.d.ts +232 -1
- package/dist/packages/datadog-api-client-v2/apis/TeamsApi.js +800 -71
- package/dist/packages/datadog-api-client-v2/apis/TeamsApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/index.d.ts +142 -7
- package/dist/packages/datadog-api-client-v2/index.js +303 -61
- package/dist/packages/datadog-api-client-v2/index.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/models/AttachCaseRequest.d.ts +37 -0
- package/dist/packages/datadog-api-client-v2/models/AttachCaseRequest.js +30 -0
- package/dist/packages/datadog-api-client-v2/models/AttachCaseRequest.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/AttachCaseRequestData.d.ts +46 -0
- package/dist/packages/datadog-api-client-v2/models/AttachCaseRequestData.js +40 -0
- package/dist/packages/datadog-api-client-v2/models/AttachCaseRequestData.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/AttachCaseRequestDataRelationships.d.ts +37 -0
- package/dist/packages/datadog-api-client-v2/models/AttachCaseRequestDataRelationships.js +31 -0
- package/dist/packages/datadog-api-client-v2/models/AttachCaseRequestDataRelationships.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/AttachJiraIssueRequest.d.ts +37 -0
- package/dist/packages/datadog-api-client-v2/models/AttachJiraIssueRequest.js +30 -0
- package/dist/packages/datadog-api-client-v2/models/AttachJiraIssueRequest.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/AttachJiraIssueRequestData.d.ts +51 -0
- package/dist/packages/datadog-api-client-v2/models/AttachJiraIssueRequestData.js +43 -0
- package/dist/packages/datadog-api-client-v2/models/AttachJiraIssueRequestData.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/AttachJiraIssueRequestDataAttributes.d.ts +36 -0
- package/dist/packages/datadog-api-client-v2/models/AttachJiraIssueRequestDataAttributes.js +36 -0
- package/dist/packages/datadog-api-client-v2/models/AttachJiraIssueRequestDataAttributes.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/AttachJiraIssueRequestDataRelationships.d.ts +42 -0
- package/dist/packages/datadog-api-client-v2/models/AttachJiraIssueRequestDataRelationships.js +36 -0
- package/dist/packages/datadog-api-client-v2/models/AttachJiraIssueRequestDataRelationships.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/BatchDeleteRowsRequestArray.d.ts +34 -0
- package/dist/packages/datadog-api-client-v2/models/BatchDeleteRowsRequestArray.js +31 -0
- package/dist/packages/datadog-api-client-v2/models/BatchDeleteRowsRequestArray.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/BatchDeleteRowsRequestData.d.ts +38 -0
- package/dist/packages/datadog-api-client-v2/models/BatchDeleteRowsRequestData.js +36 -0
- package/dist/packages/datadog-api-client-v2/models/BatchDeleteRowsRequestData.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/BatchUpsertRowsRequestArray.d.ts +34 -0
- package/dist/packages/datadog-api-client-v2/models/BatchUpsertRowsRequestArray.js +31 -0
- package/dist/packages/datadog-api-client-v2/models/BatchUpsertRowsRequestArray.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/BatchUpsertRowsRequestData.d.ts +43 -0
- package/dist/packages/datadog-api-client-v2/models/BatchUpsertRowsRequestData.js +40 -0
- package/dist/packages/datadog-api-client-v2/models/BatchUpsertRowsRequestData.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/BatchUpsertRowsRequestDataAttributes.d.ts +38 -0
- package/dist/packages/datadog-api-client-v2/models/BatchUpsertRowsRequestDataAttributes.js +36 -0
- package/dist/packages/datadog-api-client-v2/models/BatchUpsertRowsRequestDataAttributes.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/CaseDataType.d.ts +11 -0
- package/dist/packages/datadog-api-client-v2/models/CaseDataType.js +10 -0
- package/dist/packages/datadog-api-client-v2/models/CaseDataType.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/CaseInsightsItems.d.ts +44 -0
- package/dist/packages/datadog-api-client-v2/models/CaseInsightsItems.js +43 -0
- package/dist/packages/datadog-api-client-v2/models/CaseInsightsItems.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/CaseManagementProject.d.ts +34 -0
- package/dist/packages/datadog-api-client-v2/models/CaseManagementProject.js +31 -0
- package/dist/packages/datadog-api-client-v2/models/CaseManagementProject.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/CaseManagementProjectData.d.ts +38 -0
- package/dist/packages/datadog-api-client-v2/models/CaseManagementProjectData.js +33 -0
- package/dist/packages/datadog-api-client-v2/models/CaseManagementProjectData.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/CaseManagementProjectDataType.d.ts +11 -0
- package/dist/packages/datadog-api-client-v2/models/CaseManagementProjectDataType.js +10 -0
- package/dist/packages/datadog-api-client-v2/models/CaseManagementProjectDataType.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/ConfiguredSchedule.d.ts +51 -0
- package/dist/packages/datadog-api-client-v2/models/ConfiguredSchedule.js +46 -0
- package/dist/packages/datadog-api-client-v2/models/ConfiguredSchedule.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/ConfiguredScheduleTarget.d.ts +41 -0
- package/dist/packages/datadog-api-client-v2/models/ConfiguredScheduleTarget.js +36 -0
- package/dist/packages/datadog-api-client-v2/models/ConfiguredScheduleTarget.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/ConfiguredScheduleTargetAttributes.d.ts +37 -0
- package/dist/packages/datadog-api-client-v2/models/ConfiguredScheduleTargetAttributes.js +31 -0
- package/dist/packages/datadog-api-client-v2/models/ConfiguredScheduleTargetAttributes.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/ConfiguredScheduleTargetRelationships.d.ts +37 -0
- package/dist/packages/datadog-api-client-v2/models/ConfiguredScheduleTargetRelationships.js +31 -0
- package/dist/packages/datadog-api-client-v2/models/ConfiguredScheduleTargetRelationships.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/ConfiguredScheduleTargetRelationshipsSchedule.d.ts +37 -0
- package/dist/packages/datadog-api-client-v2/models/ConfiguredScheduleTargetRelationshipsSchedule.js +31 -0
- package/dist/packages/datadog-api-client-v2/models/ConfiguredScheduleTargetRelationshipsSchedule.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/ConfiguredScheduleTargetType.d.ts +11 -0
- package/dist/packages/datadog-api-client-v2/models/ConfiguredScheduleTargetType.js +10 -0
- package/dist/packages/datadog-api-client-v2/models/ConfiguredScheduleTargetType.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/CreateCaseRequestArray.d.ts +34 -0
- package/dist/packages/datadog-api-client-v2/models/CreateCaseRequestArray.js +31 -0
- package/dist/packages/datadog-api-client-v2/models/CreateCaseRequestArray.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/CreateCaseRequestData.d.ts +51 -0
- package/dist/packages/datadog-api-client-v2/models/CreateCaseRequestData.js +43 -0
- package/dist/packages/datadog-api-client-v2/models/CreateCaseRequestData.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/CreateCaseRequestDataAttributes.d.ts +49 -0
- package/dist/packages/datadog-api-client-v2/models/CreateCaseRequestDataAttributes.js +42 -0
- package/dist/packages/datadog-api-client-v2/models/CreateCaseRequestDataAttributes.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/CreateCaseRequestDataRelationships.d.ts +42 -0
- package/dist/packages/datadog-api-client-v2/models/CreateCaseRequestDataRelationships.js +36 -0
- package/dist/packages/datadog-api-client-v2/models/CreateCaseRequestDataRelationships.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/CreateDeploymentGateParams.d.ts +37 -0
- package/dist/packages/datadog-api-client-v2/models/CreateDeploymentGateParams.js +31 -0
- package/dist/packages/datadog-api-client-v2/models/CreateDeploymentGateParams.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/CreateDeploymentGateParamsData.d.ts +42 -0
- package/dist/packages/datadog-api-client-v2/models/CreateDeploymentGateParamsData.js +36 -0
- package/dist/packages/datadog-api-client-v2/models/CreateDeploymentGateParamsData.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/CreateDeploymentGateParamsDataAttributes.d.ts +48 -0
- package/dist/packages/datadog-api-client-v2/models/CreateDeploymentGateParamsDataAttributes.js +49 -0
- package/dist/packages/datadog-api-client-v2/models/CreateDeploymentGateParamsDataAttributes.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/CreateDeploymentRuleParams.d.ts +37 -0
- package/dist/packages/datadog-api-client-v2/models/CreateDeploymentRuleParams.js +30 -0
- package/dist/packages/datadog-api-client-v2/models/CreateDeploymentRuleParams.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/CreateDeploymentRuleParamsData.d.ts +42 -0
- package/dist/packages/datadog-api-client-v2/models/CreateDeploymentRuleParamsData.js +36 -0
- package/dist/packages/datadog-api-client-v2/models/CreateDeploymentRuleParamsData.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/CreateDeploymentRuleParamsDataAttributes.d.ts +49 -0
- package/dist/packages/datadog-api-client-v2/models/CreateDeploymentRuleParamsDataAttributes.js +45 -0
- package/dist/packages/datadog-api-client-v2/models/CreateDeploymentRuleParamsDataAttributes.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/CreateJiraIssueRequestArray.d.ts +36 -0
- package/dist/packages/datadog-api-client-v2/models/CreateJiraIssueRequestArray.js +35 -0
- package/dist/packages/datadog-api-client-v2/models/CreateJiraIssueRequestArray.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/CreateJiraIssueRequestArrayIncluded.d.ts +13 -0
- package/dist/packages/datadog-api-client-v2/models/CreateJiraIssueRequestArrayIncluded.js +3 -0
- package/dist/packages/datadog-api-client-v2/models/CreateJiraIssueRequestArrayIncluded.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/CreateJiraIssueRequestData.d.ts +51 -0
- package/dist/packages/datadog-api-client-v2/models/CreateJiraIssueRequestData.js +43 -0
- package/dist/packages/datadog-api-client-v2/models/CreateJiraIssueRequestData.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/CreateJiraIssueRequestDataAttributes.d.ts +37 -0
- package/dist/packages/datadog-api-client-v2/models/CreateJiraIssueRequestDataAttributes.js +30 -0
- package/dist/packages/datadog-api-client-v2/models/CreateJiraIssueRequestDataAttributes.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/CreateJiraIssueRequestDataAttributesFields.d.ts +33 -0
- package/dist/packages/datadog-api-client-v2/models/CreateJiraIssueRequestDataAttributesFields.js +35 -0
- package/dist/packages/datadog-api-client-v2/models/CreateJiraIssueRequestDataAttributesFields.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/CreateJiraIssueRequestDataRelationships.d.ts +37 -0
- package/dist/packages/datadog-api-client-v2/models/CreateJiraIssueRequestDataRelationships.js +31 -0
- package/dist/packages/datadog-api-client-v2/models/CreateJiraIssueRequestDataRelationships.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/CreateJiraIssueRequestDataRelationshipsCase.d.ts +37 -0
- package/dist/packages/datadog-api-client-v2/models/CreateJiraIssueRequestDataRelationshipsCase.js +31 -0
- package/dist/packages/datadog-api-client-v2/models/CreateJiraIssueRequestDataRelationshipsCase.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/CreateJiraIssueRequestDataRelationshipsCaseData.d.ts +38 -0
- package/dist/packages/datadog-api-client-v2/models/CreateJiraIssueRequestDataRelationshipsCaseData.js +36 -0
- package/dist/packages/datadog-api-client-v2/models/CreateJiraIssueRequestDataRelationshipsCaseData.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/DeploymentGateDataType.d.ts +11 -0
- package/dist/packages/datadog-api-client-v2/models/DeploymentGateDataType.js +10 -0
- package/dist/packages/datadog-api-client-v2/models/DeploymentGateDataType.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/DeploymentGateResponse.d.ts +37 -0
- package/dist/packages/datadog-api-client-v2/models/DeploymentGateResponse.js +30 -0
- package/dist/packages/datadog-api-client-v2/models/DeploymentGateResponse.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/DeploymentGateResponseData.d.ts +46 -0
- package/dist/packages/datadog-api-client-v2/models/DeploymentGateResponseData.js +41 -0
- package/dist/packages/datadog-api-client-v2/models/DeploymentGateResponseData.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/DeploymentGateResponseDataAttributes.d.ts +66 -0
- package/dist/packages/datadog-api-client-v2/models/DeploymentGateResponseDataAttributes.js +66 -0
- package/dist/packages/datadog-api-client-v2/models/DeploymentGateResponseDataAttributes.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/DeploymentGateResponseDataAttributesCreatedBy.d.ts +44 -0
- package/dist/packages/datadog-api-client-v2/models/DeploymentGateResponseDataAttributesCreatedBy.js +44 -0
- package/dist/packages/datadog-api-client-v2/models/DeploymentGateResponseDataAttributesCreatedBy.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/DeploymentGateResponseDataAttributesUpdatedBy.d.ts +44 -0
- package/dist/packages/datadog-api-client-v2/models/DeploymentGateResponseDataAttributesUpdatedBy.js +44 -0
- package/dist/packages/datadog-api-client-v2/models/DeploymentGateResponseDataAttributesUpdatedBy.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/DeploymentRuleDataType.d.ts +11 -0
- package/dist/packages/datadog-api-client-v2/models/DeploymentRuleDataType.js +10 -0
- package/dist/packages/datadog-api-client-v2/models/DeploymentRuleDataType.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/{TableResultV2DataAttributesFileMetadataLocalFile.d.ts → DeploymentRuleOptionsFaultyDeploymentDetection.d.ts} +6 -6
- package/dist/packages/datadog-api-client-v2/models/DeploymentRuleOptionsFaultyDeploymentDetection.js +36 -0
- package/dist/packages/datadog-api-client-v2/models/DeploymentRuleOptionsFaultyDeploymentDetection.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/DeploymentRuleOptionsMonitor.d.ts +32 -0
- package/dist/packages/datadog-api-client-v2/models/DeploymentRuleOptionsMonitor.js +37 -0
- package/dist/packages/datadog-api-client-v2/models/DeploymentRuleOptionsMonitor.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/DeploymentRuleResponse.d.ts +37 -0
- package/dist/packages/datadog-api-client-v2/models/DeploymentRuleResponse.js +30 -0
- package/dist/packages/datadog-api-client-v2/models/DeploymentRuleResponse.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/DeploymentRuleResponseData.d.ts +46 -0
- package/dist/packages/datadog-api-client-v2/models/DeploymentRuleResponseData.js +41 -0
- package/dist/packages/datadog-api-client-v2/models/DeploymentRuleResponseData.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/DeploymentRuleResponseDataAttributes.d.ts +72 -0
- package/dist/packages/datadog-api-client-v2/models/DeploymentRuleResponseDataAttributes.js +71 -0
- package/dist/packages/datadog-api-client-v2/models/DeploymentRuleResponseDataAttributes.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/DeploymentRuleResponseDataAttributesCreatedBy.d.ts +44 -0
- package/dist/packages/datadog-api-client-v2/models/DeploymentRuleResponseDataAttributesCreatedBy.js +44 -0
- package/dist/packages/datadog-api-client-v2/models/DeploymentRuleResponseDataAttributesCreatedBy.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/DeploymentRuleResponseDataAttributesType.d.ts +12 -0
- package/dist/packages/datadog-api-client-v2/models/DeploymentRuleResponseDataAttributesType.js +11 -0
- package/dist/packages/datadog-api-client-v2/models/DeploymentRuleResponseDataAttributesType.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/DeploymentRuleResponseDataAttributesUpdatedBy.d.ts +44 -0
- package/dist/packages/datadog-api-client-v2/models/DeploymentRuleResponseDataAttributesUpdatedBy.js +44 -0
- package/dist/packages/datadog-api-client-v2/models/DeploymentRuleResponseDataAttributesUpdatedBy.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/DeploymentRulesOptions.d.ts +12 -0
- package/dist/packages/datadog-api-client-v2/models/DeploymentRulesOptions.js +3 -0
- package/dist/packages/datadog-api-client-v2/models/DeploymentRulesOptions.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/DetachCaseRequest.d.ts +37 -0
- package/dist/packages/datadog-api-client-v2/models/DetachCaseRequest.js +30 -0
- package/dist/packages/datadog-api-client-v2/models/DetachCaseRequest.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/DetachCaseRequestData.d.ts +46 -0
- package/dist/packages/datadog-api-client-v2/models/DetachCaseRequestData.js +39 -0
- package/dist/packages/datadog-api-client-v2/models/DetachCaseRequestData.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/DetachCaseRequestDataRelationships.d.ts +37 -0
- package/dist/packages/datadog-api-client-v2/models/DetachCaseRequestDataRelationships.js +31 -0
- package/dist/packages/datadog-api-client-v2/models/DetachCaseRequestDataRelationships.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/EscalationPolicyIncluded.d.ts +2 -1
- package/dist/packages/datadog-api-client-v2/models/EscalationPolicyStepTarget.d.ts +6 -1
- package/dist/packages/datadog-api-client-v2/models/EscalationPolicyStepTarget.js +5 -1
- package/dist/packages/datadog-api-client-v2/models/EscalationPolicyStepTarget.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/models/EscalationPolicyStepTargetConfig.d.ts +37 -0
- package/dist/packages/datadog-api-client-v2/models/EscalationPolicyStepTargetConfig.js +30 -0
- package/dist/packages/datadog-api-client-v2/models/EscalationPolicyStepTargetConfig.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/EscalationPolicyStepTargetConfigSchedule.d.ts +37 -0
- package/dist/packages/datadog-api-client-v2/models/EscalationPolicyStepTargetConfigSchedule.js +30 -0
- package/dist/packages/datadog-api-client-v2/models/EscalationPolicyStepTargetConfigSchedule.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/EscalationTarget.d.ts +3 -2
- package/dist/packages/datadog-api-client-v2/models/FindingCaseResponse.d.ts +37 -0
- package/dist/packages/datadog-api-client-v2/models/FindingCaseResponse.js +30 -0
- package/dist/packages/datadog-api-client-v2/models/FindingCaseResponse.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/FindingCaseResponseArray.d.ts +34 -0
- package/dist/packages/datadog-api-client-v2/models/FindingCaseResponseArray.js +31 -0
- package/dist/packages/datadog-api-client-v2/models/FindingCaseResponseArray.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/FindingCaseResponseData.d.ts +51 -0
- package/dist/packages/datadog-api-client-v2/models/FindingCaseResponseData.js +43 -0
- package/dist/packages/datadog-api-client-v2/models/FindingCaseResponseData.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/FindingCaseResponseDataAttributes.d.ts +106 -0
- package/dist/packages/datadog-api-client-v2/models/FindingCaseResponseDataAttributes.js +102 -0
- package/dist/packages/datadog-api-client-v2/models/FindingCaseResponseDataAttributes.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/FindingCaseResponseDataRelationships.d.ts +46 -0
- package/dist/packages/datadog-api-client-v2/models/FindingCaseResponseDataRelationships.js +38 -0
- package/dist/packages/datadog-api-client-v2/models/FindingCaseResponseDataRelationships.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/FindingData.d.ts +38 -0
- package/dist/packages/datadog-api-client-v2/models/FindingData.js +33 -0
- package/dist/packages/datadog-api-client-v2/models/FindingData.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/FindingDataType.d.ts +11 -0
- package/dist/packages/datadog-api-client-v2/models/FindingDataType.js +10 -0
- package/dist/packages/datadog-api-client-v2/models/FindingDataType.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/FindingJiraIssue.d.ts +45 -0
- package/dist/packages/datadog-api-client-v2/models/FindingJiraIssue.js +38 -0
- package/dist/packages/datadog-api-client-v2/models/FindingJiraIssue.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/FindingJiraIssueResult.d.ts +48 -0
- package/dist/packages/datadog-api-client-v2/models/FindingJiraIssueResult.js +47 -0
- package/dist/packages/datadog-api-client-v2/models/FindingJiraIssueResult.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/Findings.d.ts +34 -0
- package/dist/packages/datadog-api-client-v2/models/Findings.js +30 -0
- package/dist/packages/datadog-api-client-v2/models/Findings.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/FleetAgentAttributes.d.ts +121 -0
- package/dist/packages/datadog-api-client-v2/models/FleetAgentAttributes.js +116 -0
- package/dist/packages/datadog-api-client-v2/models/FleetAgentAttributes.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/FleetAgentAttributesTagsItems.d.ts +31 -0
- package/dist/packages/datadog-api-client-v2/models/FleetAgentAttributesTagsItems.js +36 -0
- package/dist/packages/datadog-api-client-v2/models/FleetAgentAttributesTagsItems.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/FleetAgentInfo.d.ts +46 -0
- package/dist/packages/datadog-api-client-v2/models/FleetAgentInfo.js +41 -0
- package/dist/packages/datadog-api-client-v2/models/FleetAgentInfo.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/FleetAgentInfoAttributes.d.ts +52 -0
- package/dist/packages/datadog-api-client-v2/models/FleetAgentInfoAttributes.js +42 -0
- package/dist/packages/datadog-api-client-v2/models/FleetAgentInfoAttributes.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/FleetAgentInfoDetails.d.ts +150 -0
- package/dist/packages/datadog-api-client-v2/models/FleetAgentInfoDetails.js +149 -0
- package/dist/packages/datadog-api-client-v2/models/FleetAgentInfoDetails.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/FleetAgentInfoResourceType.d.ts +11 -0
- package/dist/packages/datadog-api-client-v2/models/FleetAgentInfoResourceType.js +10 -0
- package/dist/packages/datadog-api-client-v2/models/FleetAgentInfoResourceType.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/FleetAgentInfoResponse.d.ts +37 -0
- package/dist/packages/datadog-api-client-v2/models/FleetAgentInfoResponse.js +31 -0
- package/dist/packages/datadog-api-client-v2/models/FleetAgentInfoResponse.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/FleetAgentsResponse.d.ts +42 -0
- package/dist/packages/datadog-api-client-v2/models/FleetAgentsResponse.js +35 -0
- package/dist/packages/datadog-api-client-v2/models/FleetAgentsResponse.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/FleetAgentsResponseData.d.ts +42 -0
- package/dist/packages/datadog-api-client-v2/models/FleetAgentsResponseData.js +41 -0
- package/dist/packages/datadog-api-client-v2/models/FleetAgentsResponseData.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/FleetAgentsResponseDataAttributes.d.ts +34 -0
- package/dist/packages/datadog-api-client-v2/models/FleetAgentsResponseDataAttributes.js +27 -0
- package/dist/packages/datadog-api-client-v2/models/FleetAgentsResponseDataAttributes.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/FleetAgentsResponseMeta.d.ts +36 -0
- package/dist/packages/datadog-api-client-v2/models/FleetAgentsResponseMeta.js +36 -0
- package/dist/packages/datadog-api-client-v2/models/FleetAgentsResponseMeta.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/FleetConfigurationFile.d.ts +44 -0
- package/dist/packages/datadog-api-client-v2/models/FleetConfigurationFile.js +43 -0
- package/dist/packages/datadog-api-client-v2/models/FleetConfigurationFile.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/FleetConfigurationLayer.d.ts +56 -0
- package/dist/packages/datadog-api-client-v2/models/FleetConfigurationLayer.js +55 -0
- package/dist/packages/datadog-api-client-v2/models/FleetConfigurationLayer.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/FleetDetectedIntegration.d.ts +40 -0
- package/dist/packages/datadog-api-client-v2/models/FleetDetectedIntegration.js +39 -0
- package/dist/packages/datadog-api-client-v2/models/FleetDetectedIntegration.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/FleetIntegrationDetails.d.ts +72 -0
- package/dist/packages/datadog-api-client-v2/models/FleetIntegrationDetails.js +72 -0
- package/dist/packages/datadog-api-client-v2/models/FleetIntegrationDetails.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/FleetIntegrationsByStatus.d.ts +59 -0
- package/dist/packages/datadog-api-client-v2/models/FleetIntegrationsByStatus.js +50 -0
- package/dist/packages/datadog-api-client-v2/models/FleetIntegrationsByStatus.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/HTTPCDGatesBadRequestResponse.d.ts +37 -0
- package/dist/packages/datadog-api-client-v2/models/HTTPCDGatesBadRequestResponse.js +30 -0
- package/dist/packages/datadog-api-client-v2/models/HTTPCDGatesBadRequestResponse.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/HTTPCDGatesNotFoundResponse.d.ts +37 -0
- package/dist/packages/datadog-api-client-v2/models/HTTPCDGatesNotFoundResponse.js +30 -0
- package/dist/packages/datadog-api-client-v2/models/HTTPCDGatesNotFoundResponse.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/HTTPCDRulesNotFoundResponse.d.ts +37 -0
- package/dist/packages/datadog-api-client-v2/models/HTTPCDRulesNotFoundResponse.js +30 -0
- package/dist/packages/datadog-api-client-v2/models/HTTPCDRulesNotFoundResponse.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/JiraIssuesDataType.d.ts +11 -0
- package/dist/packages/datadog-api-client-v2/models/JiraIssuesDataType.js +10 -0
- package/dist/packages/datadog-api-client-v2/models/JiraIssuesDataType.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/LayerAttributes.d.ts +4 -0
- package/dist/packages/datadog-api-client-v2/models/LayerAttributes.js +4 -0
- package/dist/packages/datadog-api-client-v2/models/LayerAttributes.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/models/LogsRestrictionQueriesType.d.ts +11 -0
- package/dist/packages/datadog-api-client-v2/models/LogsRestrictionQueriesType.js +10 -0
- package/dist/packages/datadog-api-client-v2/models/LogsRestrictionQueriesType.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/MonitorNotificationRuleAttributes.d.ts +2 -2
- package/dist/packages/datadog-api-client-v2/models/MonitorNotificationRuleCondition.d.ts +1 -1
- package/dist/packages/datadog-api-client-v2/models/MonitorNotificationRuleConditionalRecipients.d.ts +2 -2
- package/dist/packages/datadog-api-client-v2/models/MonitorNotificationRuleConditionalRecipients.js +1 -1
- package/dist/packages/datadog-api-client-v2/models/MonitorNotificationRuleFilter.d.ts +2 -1
- package/dist/packages/datadog-api-client-v2/models/MonitorNotificationRuleFilterScope.d.ts +28 -0
- package/dist/packages/datadog-api-client-v2/models/MonitorNotificationRuleFilterScope.js +32 -0
- package/dist/packages/datadog-api-client-v2/models/MonitorNotificationRuleFilterScope.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/MonitorNotificationRuleFilterTags.d.ts +2 -2
- package/dist/packages/datadog-api-client-v2/models/MonitorNotificationRuleFilterTags.js +1 -1
- package/dist/packages/datadog-api-client-v2/models/MonitorNotificationRuleResponseAttributes.d.ts +2 -2
- package/dist/packages/datadog-api-client-v2/models/ObjectSerializer.js +281 -12
- package/dist/packages/datadog-api-client-v2/models/ObjectSerializer.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/models/ObservabilityPipelineGoogleChronicleDestination.d.ts +1 -1
- package/dist/packages/datadog-api-client-v2/models/ObservabilityPipelineGoogleChronicleDestination.js +0 -1
- package/dist/packages/datadog-api-client-v2/models/ObservabilityPipelineGoogleChronicleDestination.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/models/ObservabilityPipelineGoogleCloudStorageDestination.d.ts +2 -2
- package/dist/packages/datadog-api-client-v2/models/ObservabilityPipelineGoogleCloudStorageDestination.js +0 -2
- package/dist/packages/datadog-api-client-v2/models/ObservabilityPipelineGoogleCloudStorageDestination.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/models/ObservabilityPipelineGooglePubSubSource.d.ts +1 -1
- package/dist/packages/datadog-api-client-v2/models/ObservabilityPipelineGooglePubSubSource.js +0 -1
- package/dist/packages/datadog-api-client-v2/models/ObservabilityPipelineGooglePubSubSource.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/models/RestrictionQueryAttributes.d.ts +60 -0
- package/dist/packages/datadog-api-client-v2/models/RestrictionQueryAttributes.js +63 -0
- package/dist/packages/datadog-api-client-v2/models/RestrictionQueryAttributes.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/RestrictionQueryCreateAttributes.d.ts +36 -0
- package/dist/packages/datadog-api-client-v2/models/RestrictionQueryCreateAttributes.js +36 -0
- package/dist/packages/datadog-api-client-v2/models/RestrictionQueryCreateAttributes.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/RestrictionQueryCreateData.d.ts +42 -0
- package/dist/packages/datadog-api-client-v2/models/RestrictionQueryCreateData.js +34 -0
- package/dist/packages/datadog-api-client-v2/models/RestrictionQueryCreateData.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/RestrictionQueryCreatePayload.d.ts +37 -0
- package/dist/packages/datadog-api-client-v2/models/RestrictionQueryCreatePayload.js +30 -0
- package/dist/packages/datadog-api-client-v2/models/RestrictionQueryCreatePayload.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/RestrictionQueryListResponse.d.ts +37 -0
- package/dist/packages/datadog-api-client-v2/models/RestrictionQueryListResponse.js +30 -0
- package/dist/packages/datadog-api-client-v2/models/RestrictionQueryListResponse.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/RestrictionQueryResponseIncludedItem.d.ts +11 -0
- package/dist/packages/datadog-api-client-v2/models/RestrictionQueryResponseIncludedItem.js +3 -0
- package/dist/packages/datadog-api-client-v2/models/RestrictionQueryResponseIncludedItem.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/RestrictionQueryRole.d.ts +46 -0
- package/dist/packages/datadog-api-client-v2/models/RestrictionQueryRole.js +41 -0
- package/dist/packages/datadog-api-client-v2/models/RestrictionQueryRole.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/RestrictionQueryRoleAttribute.d.ts +36 -0
- package/dist/packages/datadog-api-client-v2/models/RestrictionQueryRoleAttribute.js +35 -0
- package/dist/packages/datadog-api-client-v2/models/RestrictionQueryRoleAttribute.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/RestrictionQueryRolesResponse.d.ts +37 -0
- package/dist/packages/datadog-api-client-v2/models/RestrictionQueryRolesResponse.js +30 -0
- package/dist/packages/datadog-api-client-v2/models/RestrictionQueryRolesResponse.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/RestrictionQueryUpdateAttributes.d.ts +36 -0
- package/dist/packages/datadog-api-client-v2/models/RestrictionQueryUpdateAttributes.js +36 -0
- package/dist/packages/datadog-api-client-v2/models/RestrictionQueryUpdateAttributes.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/RestrictionQueryUpdateData.d.ts +42 -0
- package/dist/packages/datadog-api-client-v2/models/RestrictionQueryUpdateData.js +34 -0
- package/dist/packages/datadog-api-client-v2/models/RestrictionQueryUpdateData.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/RestrictionQueryUpdatePayload.d.ts +37 -0
- package/dist/packages/datadog-api-client-v2/models/RestrictionQueryUpdatePayload.js +30 -0
- package/dist/packages/datadog-api-client-v2/models/RestrictionQueryUpdatePayload.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/RestrictionQueryWithRelationships.d.ts +51 -0
- package/dist/packages/datadog-api-client-v2/models/RestrictionQueryWithRelationships.js +42 -0
- package/dist/packages/datadog-api-client-v2/models/RestrictionQueryWithRelationships.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/RestrictionQueryWithRelationshipsResponse.d.ts +42 -0
- package/dist/packages/datadog-api-client-v2/models/RestrictionQueryWithRelationshipsResponse.js +34 -0
- package/dist/packages/datadog-api-client-v2/models/RestrictionQueryWithRelationshipsResponse.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/RestrictionQueryWithoutRelationships.d.ts +45 -0
- package/dist/packages/datadog-api-client-v2/models/RestrictionQueryWithoutRelationships.js +38 -0
- package/dist/packages/datadog-api-client-v2/models/RestrictionQueryWithoutRelationships.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/RestrictionQueryWithoutRelationshipsResponse.d.ts +37 -0
- package/dist/packages/datadog-api-client-v2/models/RestrictionQueryWithoutRelationshipsResponse.js +30 -0
- package/dist/packages/datadog-api-client-v2/models/RestrictionQueryWithoutRelationshipsResponse.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/ScheduleCreateRequestDataAttributesLayersItems.d.ts +4 -0
- package/dist/packages/datadog-api-client-v2/models/ScheduleCreateRequestDataAttributesLayersItems.js +4 -0
- package/dist/packages/datadog-api-client-v2/models/ScheduleCreateRequestDataAttributesLayersItems.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/models/ScheduleTarget.d.ts +1 -1
- package/dist/packages/datadog-api-client-v2/models/ScheduleTarget.js +1 -1
- package/dist/packages/datadog-api-client-v2/models/ScheduleTargetPosition.d.ts +13 -0
- package/dist/packages/datadog-api-client-v2/models/ScheduleTargetPosition.js +12 -0
- package/dist/packages/datadog-api-client-v2/models/ScheduleTargetPosition.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/ScheduleUpdateRequestDataAttributesLayersItems.d.ts +4 -0
- package/dist/packages/datadog-api-client-v2/models/ScheduleUpdateRequestDataAttributesLayersItems.js +4 -0
- package/dist/packages/datadog-api-client-v2/models/ScheduleUpdateRequestDataAttributesLayersItems.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/models/TableResultV2DataAttributes.d.ts +8 -0
- package/dist/packages/datadog-api-client-v2/models/TableResultV2DataAttributes.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/models/TableResultV2DataAttributesFileMetadata.d.ts +46 -4
- package/dist/packages/datadog-api-client-v2/models/TableResultV2DataAttributesFileMetadata.js +48 -0
- package/dist/packages/datadog-api-client-v2/models/TableResultV2DataAttributesFileMetadata.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/models/TeamAttributes.d.ts +4 -0
- package/dist/packages/datadog-api-client-v2/models/TeamAttributes.js +4 -0
- package/dist/packages/datadog-api-client-v2/models/TeamAttributes.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/models/TeamHierarchyLink.d.ts +51 -0
- package/dist/packages/datadog-api-client-v2/models/TeamHierarchyLink.js +45 -0
- package/dist/packages/datadog-api-client-v2/models/TeamHierarchyLink.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/TeamHierarchyLinkAttributes.d.ts +40 -0
- package/dist/packages/datadog-api-client-v2/models/TeamHierarchyLinkAttributes.js +42 -0
- package/dist/packages/datadog-api-client-v2/models/TeamHierarchyLinkAttributes.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/TeamHierarchyLinkCreate.d.ts +42 -0
- package/dist/packages/datadog-api-client-v2/models/TeamHierarchyLinkCreate.js +36 -0
- package/dist/packages/datadog-api-client-v2/models/TeamHierarchyLinkCreate.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/TeamHierarchyLinkCreateRelationships.d.ts +41 -0
- package/dist/packages/datadog-api-client-v2/models/TeamHierarchyLinkCreateRelationships.js +36 -0
- package/dist/packages/datadog-api-client-v2/models/TeamHierarchyLinkCreateRelationships.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/TeamHierarchyLinkCreateRequest.d.ts +37 -0
- package/dist/packages/datadog-api-client-v2/models/TeamHierarchyLinkCreateRequest.js +31 -0
- package/dist/packages/datadog-api-client-v2/models/TeamHierarchyLinkCreateRequest.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/TeamHierarchyLinkCreateTeam.d.ts +41 -0
- package/dist/packages/datadog-api-client-v2/models/TeamHierarchyLinkCreateTeam.js +36 -0
- package/dist/packages/datadog-api-client-v2/models/TeamHierarchyLinkCreateTeam.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/TeamHierarchyLinkCreateTeamRelationship.d.ts +37 -0
- package/dist/packages/datadog-api-client-v2/models/TeamHierarchyLinkCreateTeamRelationship.js +31 -0
- package/dist/packages/datadog-api-client-v2/models/TeamHierarchyLinkCreateTeamRelationship.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/TeamHierarchyLinkRelationships.d.ts +41 -0
- package/dist/packages/datadog-api-client-v2/models/TeamHierarchyLinkRelationships.js +36 -0
- package/dist/packages/datadog-api-client-v2/models/TeamHierarchyLinkRelationships.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/TeamHierarchyLinkResponse.d.ts +47 -0
- package/dist/packages/datadog-api-client-v2/models/TeamHierarchyLinkResponse.js +38 -0
- package/dist/packages/datadog-api-client-v2/models/TeamHierarchyLinkResponse.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/TeamHierarchyLinkTeam.d.ts +46 -0
- package/dist/packages/datadog-api-client-v2/models/TeamHierarchyLinkTeam.js +40 -0
- package/dist/packages/datadog-api-client-v2/models/TeamHierarchyLinkTeam.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/TeamHierarchyLinkTeamAttributes.d.ts +68 -0
- package/dist/packages/datadog-api-client-v2/models/TeamHierarchyLinkTeamAttributes.js +72 -0
- package/dist/packages/datadog-api-client-v2/models/TeamHierarchyLinkTeamAttributes.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/TeamHierarchyLinkTeamRelationship.d.ts +37 -0
- package/dist/packages/datadog-api-client-v2/models/TeamHierarchyLinkTeamRelationship.js +31 -0
- package/dist/packages/datadog-api-client-v2/models/TeamHierarchyLinkTeamRelationship.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/TeamHierarchyLinkType.d.ts +11 -0
- package/dist/packages/datadog-api-client-v2/models/TeamHierarchyLinkType.js +10 -0
- package/dist/packages/datadog-api-client-v2/models/TeamHierarchyLinkType.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/TeamHierarchyLinksResponse.d.ts +52 -0
- package/dist/packages/datadog-api-client-v2/models/TeamHierarchyLinksResponse.js +42 -0
- package/dist/packages/datadog-api-client-v2/models/TeamHierarchyLinksResponse.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/TeamSyncAttributes.d.ts +10 -1
- package/dist/packages/datadog-api-client-v2/models/TeamSyncAttributes.js +8 -0
- package/dist/packages/datadog-api-client-v2/models/TeamSyncAttributes.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/models/TeamSyncAttributesFrequency.d.ts +13 -0
- package/dist/packages/datadog-api-client-v2/models/TeamSyncAttributesFrequency.js +12 -0
- package/dist/packages/datadog-api-client-v2/models/TeamSyncAttributesFrequency.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/TeamSyncAttributesType.d.ts +3 -2
- package/dist/packages/datadog-api-client-v2/models/TeamSyncAttributesType.js +2 -1
- package/dist/packages/datadog-api-client-v2/models/TeamSyncAttributesType.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/models/TeamSyncData.d.ts +5 -1
- package/dist/packages/datadog-api-client-v2/models/TeamSyncData.js +5 -1
- package/dist/packages/datadog-api-client-v2/models/TeamSyncData.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/models/TeamSyncRequest.d.ts +1 -1
- package/dist/packages/datadog-api-client-v2/models/TeamSyncResponse.d.ts +37 -0
- package/dist/packages/datadog-api-client-v2/models/TeamSyncResponse.js +30 -0
- package/dist/packages/datadog-api-client-v2/models/TeamSyncResponse.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/TeamsHierarchyLinksResponseLinks.d.ts +52 -0
- package/dist/packages/datadog-api-client-v2/models/TeamsHierarchyLinksResponseLinks.js +51 -0
- package/dist/packages/datadog-api-client-v2/models/TeamsHierarchyLinksResponseLinks.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/TeamsHierarchyLinksResponseMeta.d.ts +37 -0
- package/dist/packages/datadog-api-client-v2/models/TeamsHierarchyLinksResponseMeta.js +30 -0
- package/dist/packages/datadog-api-client-v2/models/TeamsHierarchyLinksResponseMeta.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/TeamsHierarchyLinksResponseMetaPage.d.ts +64 -0
- package/dist/packages/datadog-api-client-v2/models/TeamsHierarchyLinksResponseMetaPage.js +70 -0
- package/dist/packages/datadog-api-client-v2/models/TeamsHierarchyLinksResponseMetaPage.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/ThreatHuntingJobResponseAttributes.d.ts +4 -0
- package/dist/packages/datadog-api-client-v2/models/ThreatHuntingJobResponseAttributes.js +4 -0
- package/dist/packages/datadog-api-client-v2/models/ThreatHuntingJobResponseAttributes.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/models/UpdateDeploymentGateParams.d.ts +37 -0
- package/dist/packages/datadog-api-client-v2/models/UpdateDeploymentGateParams.js +31 -0
- package/dist/packages/datadog-api-client-v2/models/UpdateDeploymentGateParams.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/UpdateDeploymentGateParamsData.d.ts +46 -0
- package/dist/packages/datadog-api-client-v2/models/UpdateDeploymentGateParamsData.js +41 -0
- package/dist/packages/datadog-api-client-v2/models/UpdateDeploymentGateParamsData.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/UpdateDeploymentGateParamsDataAttributes.d.ts +36 -0
- package/dist/packages/datadog-api-client-v2/models/UpdateDeploymentGateParamsDataAttributes.js +36 -0
- package/dist/packages/datadog-api-client-v2/models/UpdateDeploymentGateParamsDataAttributes.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/UpdateDeploymentRuleParams.d.ts +37 -0
- package/dist/packages/datadog-api-client-v2/models/UpdateDeploymentRuleParams.js +31 -0
- package/dist/packages/datadog-api-client-v2/models/UpdateDeploymentRuleParams.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/UpdateDeploymentRuleParamsData.d.ts +42 -0
- package/dist/packages/datadog-api-client-v2/models/UpdateDeploymentRuleParamsData.js +36 -0
- package/dist/packages/datadog-api-client-v2/models/UpdateDeploymentRuleParamsData.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/UpdateDeploymentRuleParamsDataAttributes.d.ts +45 -0
- package/dist/packages/datadog-api-client-v2/models/UpdateDeploymentRuleParamsDataAttributes.js +41 -0
- package/dist/packages/datadog-api-client-v2/models/UpdateDeploymentRuleParamsDataAttributes.js.map +1 -0
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
- package/dist/packages/datadog-api-client-v2/apis/TeamConnectionsApi.d.ts +0 -107
- package/dist/packages/datadog-api-client-v2/apis/TeamConnectionsApi.js +0 -343
- package/dist/packages/datadog-api-client-v2/apis/TeamConnectionsApi.js.map +0 -1
- package/dist/packages/datadog-api-client-v2/models/TableResultV2DataAttributesFileMetadataCloudStorage.d.ts +0 -46
- package/dist/packages/datadog-api-client-v2/models/TableResultV2DataAttributesFileMetadataCloudStorage.js +0 -44
- package/dist/packages/datadog-api-client-v2/models/TableResultV2DataAttributesFileMetadataCloudStorage.js.map +0 -1
- package/dist/packages/datadog-api-client-v2/models/TableResultV2DataAttributesFileMetadataLocalFile.js +0 -36
- package/dist/packages/datadog-api-client-v2/models/TableResultV2DataAttributesFileMetadataLocalFile.js.map +0 -1
|
@@ -0,0 +1,977 @@
|
|
|
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.DeploymentGatesApi = exports.DeploymentGatesApiResponseProcessor = exports.DeploymentGatesApiRequestFactory = 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 DeploymentGatesApiRequestFactory extends baseapi_1.BaseAPIRequestFactory {
|
|
20
|
+
createDeploymentGate(body, _options) {
|
|
21
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
22
|
+
const _config = _options || this.configuration;
|
|
23
|
+
logger_1.logger.warn("Using unstable operation 'createDeploymentGate'");
|
|
24
|
+
if (!_config.unstableOperations["v2.createDeploymentGate"]) {
|
|
25
|
+
throw new Error("Unstable operation 'createDeploymentGate' is disabled");
|
|
26
|
+
}
|
|
27
|
+
// verify required parameter 'body' is not null or undefined
|
|
28
|
+
if (body === null || body === undefined) {
|
|
29
|
+
throw new baseapi_1.RequiredError("body", "createDeploymentGate");
|
|
30
|
+
}
|
|
31
|
+
// Path Params
|
|
32
|
+
const localVarPath = "/api/v2/deployment_gates";
|
|
33
|
+
// Make Request Context
|
|
34
|
+
const requestContext = _config
|
|
35
|
+
.getServer("v2.DeploymentGatesApi.createDeploymentGate")
|
|
36
|
+
.makeRequestContext(localVarPath, http_1.HttpMethod.POST);
|
|
37
|
+
requestContext.setHeaderParam("Accept", "application/json");
|
|
38
|
+
requestContext.setHttpConfig(_config.httpConfig);
|
|
39
|
+
// Body Params
|
|
40
|
+
const contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([
|
|
41
|
+
"application/json",
|
|
42
|
+
]);
|
|
43
|
+
requestContext.setHeaderParam("Content-Type", contentType);
|
|
44
|
+
const serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(body, "CreateDeploymentGateParams", ""), contentType);
|
|
45
|
+
requestContext.setBody(serializedBody);
|
|
46
|
+
// Apply auth methods
|
|
47
|
+
(0, configuration_1.applySecurityAuthentication)(_config, requestContext, [
|
|
48
|
+
"apiKeyAuth",
|
|
49
|
+
"appKeyAuth",
|
|
50
|
+
]);
|
|
51
|
+
return requestContext;
|
|
52
|
+
});
|
|
53
|
+
}
|
|
54
|
+
createDeploymentRule(gateId, body, _options) {
|
|
55
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
56
|
+
const _config = _options || this.configuration;
|
|
57
|
+
logger_1.logger.warn("Using unstable operation 'createDeploymentRule'");
|
|
58
|
+
if (!_config.unstableOperations["v2.createDeploymentRule"]) {
|
|
59
|
+
throw new Error("Unstable operation 'createDeploymentRule' is disabled");
|
|
60
|
+
}
|
|
61
|
+
// verify required parameter 'gateId' is not null or undefined
|
|
62
|
+
if (gateId === null || gateId === undefined) {
|
|
63
|
+
throw new baseapi_1.RequiredError("gateId", "createDeploymentRule");
|
|
64
|
+
}
|
|
65
|
+
// verify required parameter 'body' is not null or undefined
|
|
66
|
+
if (body === null || body === undefined) {
|
|
67
|
+
throw new baseapi_1.RequiredError("body", "createDeploymentRule");
|
|
68
|
+
}
|
|
69
|
+
// Path Params
|
|
70
|
+
const localVarPath = "/api/v2/deployment_gates/{gate_id}/rules".replace("{gate_id}", encodeURIComponent(String(gateId)));
|
|
71
|
+
// Make Request Context
|
|
72
|
+
const requestContext = _config
|
|
73
|
+
.getServer("v2.DeploymentGatesApi.createDeploymentRule")
|
|
74
|
+
.makeRequestContext(localVarPath, http_1.HttpMethod.POST);
|
|
75
|
+
requestContext.setHeaderParam("Accept", "application/json");
|
|
76
|
+
requestContext.setHttpConfig(_config.httpConfig);
|
|
77
|
+
// Body Params
|
|
78
|
+
const contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([
|
|
79
|
+
"application/json",
|
|
80
|
+
]);
|
|
81
|
+
requestContext.setHeaderParam("Content-Type", contentType);
|
|
82
|
+
const serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(body, "CreateDeploymentRuleParams", ""), contentType);
|
|
83
|
+
requestContext.setBody(serializedBody);
|
|
84
|
+
// Apply auth methods
|
|
85
|
+
(0, configuration_1.applySecurityAuthentication)(_config, requestContext, [
|
|
86
|
+
"apiKeyAuth",
|
|
87
|
+
"appKeyAuth",
|
|
88
|
+
]);
|
|
89
|
+
return requestContext;
|
|
90
|
+
});
|
|
91
|
+
}
|
|
92
|
+
deleteDeploymentGate(id, _options) {
|
|
93
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
94
|
+
const _config = _options || this.configuration;
|
|
95
|
+
logger_1.logger.warn("Using unstable operation 'deleteDeploymentGate'");
|
|
96
|
+
if (!_config.unstableOperations["v2.deleteDeploymentGate"]) {
|
|
97
|
+
throw new Error("Unstable operation 'deleteDeploymentGate' is disabled");
|
|
98
|
+
}
|
|
99
|
+
// verify required parameter 'id' is not null or undefined
|
|
100
|
+
if (id === null || id === undefined) {
|
|
101
|
+
throw new baseapi_1.RequiredError("id", "deleteDeploymentGate");
|
|
102
|
+
}
|
|
103
|
+
// Path Params
|
|
104
|
+
const localVarPath = "/api/v2/deployment_gates/{id}".replace("{id}", encodeURIComponent(String(id)));
|
|
105
|
+
// Make Request Context
|
|
106
|
+
const requestContext = _config
|
|
107
|
+
.getServer("v2.DeploymentGatesApi.deleteDeploymentGate")
|
|
108
|
+
.makeRequestContext(localVarPath, http_1.HttpMethod.DELETE);
|
|
109
|
+
requestContext.setHeaderParam("Accept", "*/*");
|
|
110
|
+
requestContext.setHttpConfig(_config.httpConfig);
|
|
111
|
+
// Apply auth methods
|
|
112
|
+
(0, configuration_1.applySecurityAuthentication)(_config, requestContext, [
|
|
113
|
+
"apiKeyAuth",
|
|
114
|
+
"appKeyAuth",
|
|
115
|
+
]);
|
|
116
|
+
return requestContext;
|
|
117
|
+
});
|
|
118
|
+
}
|
|
119
|
+
deleteDeploymentRule(gateId, id, _options) {
|
|
120
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
121
|
+
const _config = _options || this.configuration;
|
|
122
|
+
logger_1.logger.warn("Using unstable operation 'deleteDeploymentRule'");
|
|
123
|
+
if (!_config.unstableOperations["v2.deleteDeploymentRule"]) {
|
|
124
|
+
throw new Error("Unstable operation 'deleteDeploymentRule' is disabled");
|
|
125
|
+
}
|
|
126
|
+
// verify required parameter 'gateId' is not null or undefined
|
|
127
|
+
if (gateId === null || gateId === undefined) {
|
|
128
|
+
throw new baseapi_1.RequiredError("gateId", "deleteDeploymentRule");
|
|
129
|
+
}
|
|
130
|
+
// verify required parameter 'id' is not null or undefined
|
|
131
|
+
if (id === null || id === undefined) {
|
|
132
|
+
throw new baseapi_1.RequiredError("id", "deleteDeploymentRule");
|
|
133
|
+
}
|
|
134
|
+
// Path Params
|
|
135
|
+
const localVarPath = "/api/v2/deployment_gates/{gate_id}/rules/{id}"
|
|
136
|
+
.replace("{gate_id}", encodeURIComponent(String(gateId)))
|
|
137
|
+
.replace("{id}", encodeURIComponent(String(id)));
|
|
138
|
+
// Make Request Context
|
|
139
|
+
const requestContext = _config
|
|
140
|
+
.getServer("v2.DeploymentGatesApi.deleteDeploymentRule")
|
|
141
|
+
.makeRequestContext(localVarPath, http_1.HttpMethod.DELETE);
|
|
142
|
+
requestContext.setHeaderParam("Accept", "*/*");
|
|
143
|
+
requestContext.setHttpConfig(_config.httpConfig);
|
|
144
|
+
// Apply auth methods
|
|
145
|
+
(0, configuration_1.applySecurityAuthentication)(_config, requestContext, [
|
|
146
|
+
"apiKeyAuth",
|
|
147
|
+
"appKeyAuth",
|
|
148
|
+
]);
|
|
149
|
+
return requestContext;
|
|
150
|
+
});
|
|
151
|
+
}
|
|
152
|
+
getDeploymentGate(id, _options) {
|
|
153
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
154
|
+
const _config = _options || this.configuration;
|
|
155
|
+
logger_1.logger.warn("Using unstable operation 'getDeploymentGate'");
|
|
156
|
+
if (!_config.unstableOperations["v2.getDeploymentGate"]) {
|
|
157
|
+
throw new Error("Unstable operation 'getDeploymentGate' is disabled");
|
|
158
|
+
}
|
|
159
|
+
// verify required parameter 'id' is not null or undefined
|
|
160
|
+
if (id === null || id === undefined) {
|
|
161
|
+
throw new baseapi_1.RequiredError("id", "getDeploymentGate");
|
|
162
|
+
}
|
|
163
|
+
// Path Params
|
|
164
|
+
const localVarPath = "/api/v2/deployment_gates/{id}".replace("{id}", encodeURIComponent(String(id)));
|
|
165
|
+
// Make Request Context
|
|
166
|
+
const requestContext = _config
|
|
167
|
+
.getServer("v2.DeploymentGatesApi.getDeploymentGate")
|
|
168
|
+
.makeRequestContext(localVarPath, http_1.HttpMethod.GET);
|
|
169
|
+
requestContext.setHeaderParam("Accept", "application/json");
|
|
170
|
+
requestContext.setHttpConfig(_config.httpConfig);
|
|
171
|
+
// Apply auth methods
|
|
172
|
+
(0, configuration_1.applySecurityAuthentication)(_config, requestContext, [
|
|
173
|
+
"apiKeyAuth",
|
|
174
|
+
"appKeyAuth",
|
|
175
|
+
]);
|
|
176
|
+
return requestContext;
|
|
177
|
+
});
|
|
178
|
+
}
|
|
179
|
+
getDeploymentRule(gateId, id, _options) {
|
|
180
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
181
|
+
const _config = _options || this.configuration;
|
|
182
|
+
logger_1.logger.warn("Using unstable operation 'getDeploymentRule'");
|
|
183
|
+
if (!_config.unstableOperations["v2.getDeploymentRule"]) {
|
|
184
|
+
throw new Error("Unstable operation 'getDeploymentRule' is disabled");
|
|
185
|
+
}
|
|
186
|
+
// verify required parameter 'gateId' is not null or undefined
|
|
187
|
+
if (gateId === null || gateId === undefined) {
|
|
188
|
+
throw new baseapi_1.RequiredError("gateId", "getDeploymentRule");
|
|
189
|
+
}
|
|
190
|
+
// verify required parameter 'id' is not null or undefined
|
|
191
|
+
if (id === null || id === undefined) {
|
|
192
|
+
throw new baseapi_1.RequiredError("id", "getDeploymentRule");
|
|
193
|
+
}
|
|
194
|
+
// Path Params
|
|
195
|
+
const localVarPath = "/api/v2/deployment_gates/{gate_id}/rules/{id}"
|
|
196
|
+
.replace("{gate_id}", encodeURIComponent(String(gateId)))
|
|
197
|
+
.replace("{id}", encodeURIComponent(String(id)));
|
|
198
|
+
// Make Request Context
|
|
199
|
+
const requestContext = _config
|
|
200
|
+
.getServer("v2.DeploymentGatesApi.getDeploymentRule")
|
|
201
|
+
.makeRequestContext(localVarPath, http_1.HttpMethod.GET);
|
|
202
|
+
requestContext.setHeaderParam("Accept", "application/json");
|
|
203
|
+
requestContext.setHttpConfig(_config.httpConfig);
|
|
204
|
+
// Apply auth methods
|
|
205
|
+
(0, configuration_1.applySecurityAuthentication)(_config, requestContext, [
|
|
206
|
+
"apiKeyAuth",
|
|
207
|
+
"appKeyAuth",
|
|
208
|
+
]);
|
|
209
|
+
return requestContext;
|
|
210
|
+
});
|
|
211
|
+
}
|
|
212
|
+
updateDeploymentGate(id, body, _options) {
|
|
213
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
214
|
+
const _config = _options || this.configuration;
|
|
215
|
+
logger_1.logger.warn("Using unstable operation 'updateDeploymentGate'");
|
|
216
|
+
if (!_config.unstableOperations["v2.updateDeploymentGate"]) {
|
|
217
|
+
throw new Error("Unstable operation 'updateDeploymentGate' is disabled");
|
|
218
|
+
}
|
|
219
|
+
// verify required parameter 'id' is not null or undefined
|
|
220
|
+
if (id === null || id === undefined) {
|
|
221
|
+
throw new baseapi_1.RequiredError("id", "updateDeploymentGate");
|
|
222
|
+
}
|
|
223
|
+
// verify required parameter 'body' is not null or undefined
|
|
224
|
+
if (body === null || body === undefined) {
|
|
225
|
+
throw new baseapi_1.RequiredError("body", "updateDeploymentGate");
|
|
226
|
+
}
|
|
227
|
+
// Path Params
|
|
228
|
+
const localVarPath = "/api/v2/deployment_gates/{id}".replace("{id}", encodeURIComponent(String(id)));
|
|
229
|
+
// Make Request Context
|
|
230
|
+
const requestContext = _config
|
|
231
|
+
.getServer("v2.DeploymentGatesApi.updateDeploymentGate")
|
|
232
|
+
.makeRequestContext(localVarPath, http_1.HttpMethod.PUT);
|
|
233
|
+
requestContext.setHeaderParam("Accept", "application/json");
|
|
234
|
+
requestContext.setHttpConfig(_config.httpConfig);
|
|
235
|
+
// Body Params
|
|
236
|
+
const contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([
|
|
237
|
+
"application/json",
|
|
238
|
+
]);
|
|
239
|
+
requestContext.setHeaderParam("Content-Type", contentType);
|
|
240
|
+
const serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(body, "UpdateDeploymentGateParams", ""), contentType);
|
|
241
|
+
requestContext.setBody(serializedBody);
|
|
242
|
+
// Apply auth methods
|
|
243
|
+
(0, configuration_1.applySecurityAuthentication)(_config, requestContext, [
|
|
244
|
+
"apiKeyAuth",
|
|
245
|
+
"appKeyAuth",
|
|
246
|
+
]);
|
|
247
|
+
return requestContext;
|
|
248
|
+
});
|
|
249
|
+
}
|
|
250
|
+
updateDeploymentRule(gateId, id, body, _options) {
|
|
251
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
252
|
+
const _config = _options || this.configuration;
|
|
253
|
+
logger_1.logger.warn("Using unstable operation 'updateDeploymentRule'");
|
|
254
|
+
if (!_config.unstableOperations["v2.updateDeploymentRule"]) {
|
|
255
|
+
throw new Error("Unstable operation 'updateDeploymentRule' is disabled");
|
|
256
|
+
}
|
|
257
|
+
// verify required parameter 'gateId' is not null or undefined
|
|
258
|
+
if (gateId === null || gateId === undefined) {
|
|
259
|
+
throw new baseapi_1.RequiredError("gateId", "updateDeploymentRule");
|
|
260
|
+
}
|
|
261
|
+
// verify required parameter 'id' is not null or undefined
|
|
262
|
+
if (id === null || id === undefined) {
|
|
263
|
+
throw new baseapi_1.RequiredError("id", "updateDeploymentRule");
|
|
264
|
+
}
|
|
265
|
+
// verify required parameter 'body' is not null or undefined
|
|
266
|
+
if (body === null || body === undefined) {
|
|
267
|
+
throw new baseapi_1.RequiredError("body", "updateDeploymentRule");
|
|
268
|
+
}
|
|
269
|
+
// Path Params
|
|
270
|
+
const localVarPath = "/api/v2/deployment_gates/{gate_id}/rules/{id}"
|
|
271
|
+
.replace("{gate_id}", encodeURIComponent(String(gateId)))
|
|
272
|
+
.replace("{id}", encodeURIComponent(String(id)));
|
|
273
|
+
// Make Request Context
|
|
274
|
+
const requestContext = _config
|
|
275
|
+
.getServer("v2.DeploymentGatesApi.updateDeploymentRule")
|
|
276
|
+
.makeRequestContext(localVarPath, http_1.HttpMethod.PUT);
|
|
277
|
+
requestContext.setHeaderParam("Accept", "application/json");
|
|
278
|
+
requestContext.setHttpConfig(_config.httpConfig);
|
|
279
|
+
// Body Params
|
|
280
|
+
const contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([
|
|
281
|
+
"application/json",
|
|
282
|
+
]);
|
|
283
|
+
requestContext.setHeaderParam("Content-Type", contentType);
|
|
284
|
+
const serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(body, "UpdateDeploymentRuleParams", ""), contentType);
|
|
285
|
+
requestContext.setBody(serializedBody);
|
|
286
|
+
// Apply auth methods
|
|
287
|
+
(0, configuration_1.applySecurityAuthentication)(_config, requestContext, [
|
|
288
|
+
"apiKeyAuth",
|
|
289
|
+
"appKeyAuth",
|
|
290
|
+
]);
|
|
291
|
+
return requestContext;
|
|
292
|
+
});
|
|
293
|
+
}
|
|
294
|
+
}
|
|
295
|
+
exports.DeploymentGatesApiRequestFactory = DeploymentGatesApiRequestFactory;
|
|
296
|
+
class DeploymentGatesApiResponseProcessor {
|
|
297
|
+
/**
|
|
298
|
+
* Unwraps the actual response sent by the server from the response context and deserializes the response content
|
|
299
|
+
* to the expected objects
|
|
300
|
+
*
|
|
301
|
+
* @params response Response returned by the server for a request to createDeploymentGate
|
|
302
|
+
* @throws ApiException if the response code was not in [200, 299]
|
|
303
|
+
*/
|
|
304
|
+
createDeploymentGate(response) {
|
|
305
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
306
|
+
const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
307
|
+
if (response.httpStatusCode === 200) {
|
|
308
|
+
const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "DeploymentGateResponse");
|
|
309
|
+
return body;
|
|
310
|
+
}
|
|
311
|
+
if (response.httpStatusCode === 400) {
|
|
312
|
+
const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType);
|
|
313
|
+
let body;
|
|
314
|
+
try {
|
|
315
|
+
body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "HTTPCDGatesBadRequestResponse");
|
|
316
|
+
}
|
|
317
|
+
catch (error) {
|
|
318
|
+
logger_1.logger.debug(`Got error deserializing error: ${error}`);
|
|
319
|
+
throw new exception_1.ApiException(response.httpStatusCode, bodyText);
|
|
320
|
+
}
|
|
321
|
+
throw new exception_1.ApiException(response.httpStatusCode, body);
|
|
322
|
+
}
|
|
323
|
+
if (response.httpStatusCode === 401 ||
|
|
324
|
+
response.httpStatusCode === 403 ||
|
|
325
|
+
response.httpStatusCode === 429) {
|
|
326
|
+
const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType);
|
|
327
|
+
let body;
|
|
328
|
+
try {
|
|
329
|
+
body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse");
|
|
330
|
+
}
|
|
331
|
+
catch (error) {
|
|
332
|
+
logger_1.logger.debug(`Got error deserializing error: ${error}`);
|
|
333
|
+
throw new exception_1.ApiException(response.httpStatusCode, bodyText);
|
|
334
|
+
}
|
|
335
|
+
throw new exception_1.ApiException(response.httpStatusCode, body);
|
|
336
|
+
}
|
|
337
|
+
if (response.httpStatusCode === 500) {
|
|
338
|
+
const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType);
|
|
339
|
+
let body;
|
|
340
|
+
try {
|
|
341
|
+
body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "HTTPCIAppErrors");
|
|
342
|
+
}
|
|
343
|
+
catch (error) {
|
|
344
|
+
logger_1.logger.debug(`Got error deserializing error: ${error}`);
|
|
345
|
+
throw new exception_1.ApiException(response.httpStatusCode, bodyText);
|
|
346
|
+
}
|
|
347
|
+
throw new exception_1.ApiException(response.httpStatusCode, body);
|
|
348
|
+
}
|
|
349
|
+
// Work around for missing responses in specification, e.g. for petstore.yaml
|
|
350
|
+
if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
|
|
351
|
+
const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "DeploymentGateResponse", "");
|
|
352
|
+
return body;
|
|
353
|
+
}
|
|
354
|
+
const body = (yield response.body.text()) || "";
|
|
355
|
+
throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"');
|
|
356
|
+
});
|
|
357
|
+
}
|
|
358
|
+
/**
|
|
359
|
+
* Unwraps the actual response sent by the server from the response context and deserializes the response content
|
|
360
|
+
* to the expected objects
|
|
361
|
+
*
|
|
362
|
+
* @params response Response returned by the server for a request to createDeploymentRule
|
|
363
|
+
* @throws ApiException if the response code was not in [200, 299]
|
|
364
|
+
*/
|
|
365
|
+
createDeploymentRule(response) {
|
|
366
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
367
|
+
const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
368
|
+
if (response.httpStatusCode === 200) {
|
|
369
|
+
const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "DeploymentRuleResponse");
|
|
370
|
+
return body;
|
|
371
|
+
}
|
|
372
|
+
if (response.httpStatusCode === 400) {
|
|
373
|
+
const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType);
|
|
374
|
+
let body;
|
|
375
|
+
try {
|
|
376
|
+
body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "HTTPCDGatesBadRequestResponse");
|
|
377
|
+
}
|
|
378
|
+
catch (error) {
|
|
379
|
+
logger_1.logger.debug(`Got error deserializing error: ${error}`);
|
|
380
|
+
throw new exception_1.ApiException(response.httpStatusCode, bodyText);
|
|
381
|
+
}
|
|
382
|
+
throw new exception_1.ApiException(response.httpStatusCode, body);
|
|
383
|
+
}
|
|
384
|
+
if (response.httpStatusCode === 401 ||
|
|
385
|
+
response.httpStatusCode === 403 ||
|
|
386
|
+
response.httpStatusCode === 429) {
|
|
387
|
+
const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType);
|
|
388
|
+
let body;
|
|
389
|
+
try {
|
|
390
|
+
body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse");
|
|
391
|
+
}
|
|
392
|
+
catch (error) {
|
|
393
|
+
logger_1.logger.debug(`Got error deserializing error: ${error}`);
|
|
394
|
+
throw new exception_1.ApiException(response.httpStatusCode, bodyText);
|
|
395
|
+
}
|
|
396
|
+
throw new exception_1.ApiException(response.httpStatusCode, body);
|
|
397
|
+
}
|
|
398
|
+
if (response.httpStatusCode === 500) {
|
|
399
|
+
const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType);
|
|
400
|
+
let body;
|
|
401
|
+
try {
|
|
402
|
+
body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "HTTPCIAppErrors");
|
|
403
|
+
}
|
|
404
|
+
catch (error) {
|
|
405
|
+
logger_1.logger.debug(`Got error deserializing error: ${error}`);
|
|
406
|
+
throw new exception_1.ApiException(response.httpStatusCode, bodyText);
|
|
407
|
+
}
|
|
408
|
+
throw new exception_1.ApiException(response.httpStatusCode, body);
|
|
409
|
+
}
|
|
410
|
+
// Work around for missing responses in specification, e.g. for petstore.yaml
|
|
411
|
+
if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
|
|
412
|
+
const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "DeploymentRuleResponse", "");
|
|
413
|
+
return body;
|
|
414
|
+
}
|
|
415
|
+
const body = (yield response.body.text()) || "";
|
|
416
|
+
throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"');
|
|
417
|
+
});
|
|
418
|
+
}
|
|
419
|
+
/**
|
|
420
|
+
* Unwraps the actual response sent by the server from the response context and deserializes the response content
|
|
421
|
+
* to the expected objects
|
|
422
|
+
*
|
|
423
|
+
* @params response Response returned by the server for a request to deleteDeploymentGate
|
|
424
|
+
* @throws ApiException if the response code was not in [200, 299]
|
|
425
|
+
*/
|
|
426
|
+
deleteDeploymentGate(response) {
|
|
427
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
428
|
+
const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
429
|
+
if (response.httpStatusCode === 204) {
|
|
430
|
+
return;
|
|
431
|
+
}
|
|
432
|
+
if (response.httpStatusCode === 400) {
|
|
433
|
+
const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType);
|
|
434
|
+
let body;
|
|
435
|
+
try {
|
|
436
|
+
body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "HTTPCDGatesBadRequestResponse");
|
|
437
|
+
}
|
|
438
|
+
catch (error) {
|
|
439
|
+
logger_1.logger.debug(`Got error deserializing error: ${error}`);
|
|
440
|
+
throw new exception_1.ApiException(response.httpStatusCode, bodyText);
|
|
441
|
+
}
|
|
442
|
+
throw new exception_1.ApiException(response.httpStatusCode, body);
|
|
443
|
+
}
|
|
444
|
+
if (response.httpStatusCode === 401 ||
|
|
445
|
+
response.httpStatusCode === 403 ||
|
|
446
|
+
response.httpStatusCode === 429) {
|
|
447
|
+
const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType);
|
|
448
|
+
let body;
|
|
449
|
+
try {
|
|
450
|
+
body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse");
|
|
451
|
+
}
|
|
452
|
+
catch (error) {
|
|
453
|
+
logger_1.logger.debug(`Got error deserializing error: ${error}`);
|
|
454
|
+
throw new exception_1.ApiException(response.httpStatusCode, bodyText);
|
|
455
|
+
}
|
|
456
|
+
throw new exception_1.ApiException(response.httpStatusCode, body);
|
|
457
|
+
}
|
|
458
|
+
if (response.httpStatusCode === 404) {
|
|
459
|
+
const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType);
|
|
460
|
+
let body;
|
|
461
|
+
try {
|
|
462
|
+
body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "HTTPCDGatesNotFoundResponse");
|
|
463
|
+
}
|
|
464
|
+
catch (error) {
|
|
465
|
+
logger_1.logger.debug(`Got error deserializing error: ${error}`);
|
|
466
|
+
throw new exception_1.ApiException(response.httpStatusCode, bodyText);
|
|
467
|
+
}
|
|
468
|
+
throw new exception_1.ApiException(response.httpStatusCode, body);
|
|
469
|
+
}
|
|
470
|
+
if (response.httpStatusCode === 500) {
|
|
471
|
+
const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType);
|
|
472
|
+
let body;
|
|
473
|
+
try {
|
|
474
|
+
body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "HTTPCIAppErrors");
|
|
475
|
+
}
|
|
476
|
+
catch (error) {
|
|
477
|
+
logger_1.logger.debug(`Got error deserializing error: ${error}`);
|
|
478
|
+
throw new exception_1.ApiException(response.httpStatusCode, bodyText);
|
|
479
|
+
}
|
|
480
|
+
throw new exception_1.ApiException(response.httpStatusCode, body);
|
|
481
|
+
}
|
|
482
|
+
// Work around for missing responses in specification, e.g. for petstore.yaml
|
|
483
|
+
if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
|
|
484
|
+
return;
|
|
485
|
+
}
|
|
486
|
+
const body = (yield response.body.text()) || "";
|
|
487
|
+
throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"');
|
|
488
|
+
});
|
|
489
|
+
}
|
|
490
|
+
/**
|
|
491
|
+
* Unwraps the actual response sent by the server from the response context and deserializes the response content
|
|
492
|
+
* to the expected objects
|
|
493
|
+
*
|
|
494
|
+
* @params response Response returned by the server for a request to deleteDeploymentRule
|
|
495
|
+
* @throws ApiException if the response code was not in [200, 299]
|
|
496
|
+
*/
|
|
497
|
+
deleteDeploymentRule(response) {
|
|
498
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
499
|
+
const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
500
|
+
if (response.httpStatusCode === 204) {
|
|
501
|
+
return;
|
|
502
|
+
}
|
|
503
|
+
if (response.httpStatusCode === 400) {
|
|
504
|
+
const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType);
|
|
505
|
+
let body;
|
|
506
|
+
try {
|
|
507
|
+
body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "HTTPCDGatesBadRequestResponse");
|
|
508
|
+
}
|
|
509
|
+
catch (error) {
|
|
510
|
+
logger_1.logger.debug(`Got error deserializing error: ${error}`);
|
|
511
|
+
throw new exception_1.ApiException(response.httpStatusCode, bodyText);
|
|
512
|
+
}
|
|
513
|
+
throw new exception_1.ApiException(response.httpStatusCode, body);
|
|
514
|
+
}
|
|
515
|
+
if (response.httpStatusCode === 401 ||
|
|
516
|
+
response.httpStatusCode === 403 ||
|
|
517
|
+
response.httpStatusCode === 429) {
|
|
518
|
+
const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType);
|
|
519
|
+
let body;
|
|
520
|
+
try {
|
|
521
|
+
body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse");
|
|
522
|
+
}
|
|
523
|
+
catch (error) {
|
|
524
|
+
logger_1.logger.debug(`Got error deserializing error: ${error}`);
|
|
525
|
+
throw new exception_1.ApiException(response.httpStatusCode, bodyText);
|
|
526
|
+
}
|
|
527
|
+
throw new exception_1.ApiException(response.httpStatusCode, body);
|
|
528
|
+
}
|
|
529
|
+
if (response.httpStatusCode === 404) {
|
|
530
|
+
const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType);
|
|
531
|
+
let body;
|
|
532
|
+
try {
|
|
533
|
+
body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "HTTPCDGatesNotFoundResponse");
|
|
534
|
+
}
|
|
535
|
+
catch (error) {
|
|
536
|
+
logger_1.logger.debug(`Got error deserializing error: ${error}`);
|
|
537
|
+
throw new exception_1.ApiException(response.httpStatusCode, bodyText);
|
|
538
|
+
}
|
|
539
|
+
throw new exception_1.ApiException(response.httpStatusCode, body);
|
|
540
|
+
}
|
|
541
|
+
if (response.httpStatusCode === 500) {
|
|
542
|
+
const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType);
|
|
543
|
+
let body;
|
|
544
|
+
try {
|
|
545
|
+
body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "HTTPCIAppErrors");
|
|
546
|
+
}
|
|
547
|
+
catch (error) {
|
|
548
|
+
logger_1.logger.debug(`Got error deserializing error: ${error}`);
|
|
549
|
+
throw new exception_1.ApiException(response.httpStatusCode, bodyText);
|
|
550
|
+
}
|
|
551
|
+
throw new exception_1.ApiException(response.httpStatusCode, body);
|
|
552
|
+
}
|
|
553
|
+
// Work around for missing responses in specification, e.g. for petstore.yaml
|
|
554
|
+
if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
|
|
555
|
+
return;
|
|
556
|
+
}
|
|
557
|
+
const body = (yield response.body.text()) || "";
|
|
558
|
+
throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"');
|
|
559
|
+
});
|
|
560
|
+
}
|
|
561
|
+
/**
|
|
562
|
+
* Unwraps the actual response sent by the server from the response context and deserializes the response content
|
|
563
|
+
* to the expected objects
|
|
564
|
+
*
|
|
565
|
+
* @params response Response returned by the server for a request to getDeploymentGate
|
|
566
|
+
* @throws ApiException if the response code was not in [200, 299]
|
|
567
|
+
*/
|
|
568
|
+
getDeploymentGate(response) {
|
|
569
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
570
|
+
const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
571
|
+
if (response.httpStatusCode === 200) {
|
|
572
|
+
const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "DeploymentGateResponse");
|
|
573
|
+
return body;
|
|
574
|
+
}
|
|
575
|
+
if (response.httpStatusCode === 400) {
|
|
576
|
+
const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType);
|
|
577
|
+
let body;
|
|
578
|
+
try {
|
|
579
|
+
body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "HTTPCDGatesBadRequestResponse");
|
|
580
|
+
}
|
|
581
|
+
catch (error) {
|
|
582
|
+
logger_1.logger.debug(`Got error deserializing error: ${error}`);
|
|
583
|
+
throw new exception_1.ApiException(response.httpStatusCode, bodyText);
|
|
584
|
+
}
|
|
585
|
+
throw new exception_1.ApiException(response.httpStatusCode, body);
|
|
586
|
+
}
|
|
587
|
+
if (response.httpStatusCode === 401 ||
|
|
588
|
+
response.httpStatusCode === 403 ||
|
|
589
|
+
response.httpStatusCode === 429) {
|
|
590
|
+
const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType);
|
|
591
|
+
let body;
|
|
592
|
+
try {
|
|
593
|
+
body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse");
|
|
594
|
+
}
|
|
595
|
+
catch (error) {
|
|
596
|
+
logger_1.logger.debug(`Got error deserializing error: ${error}`);
|
|
597
|
+
throw new exception_1.ApiException(response.httpStatusCode, bodyText);
|
|
598
|
+
}
|
|
599
|
+
throw new exception_1.ApiException(response.httpStatusCode, body);
|
|
600
|
+
}
|
|
601
|
+
if (response.httpStatusCode === 404) {
|
|
602
|
+
const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType);
|
|
603
|
+
let body;
|
|
604
|
+
try {
|
|
605
|
+
body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "HTTPCDGatesNotFoundResponse");
|
|
606
|
+
}
|
|
607
|
+
catch (error) {
|
|
608
|
+
logger_1.logger.debug(`Got error deserializing error: ${error}`);
|
|
609
|
+
throw new exception_1.ApiException(response.httpStatusCode, bodyText);
|
|
610
|
+
}
|
|
611
|
+
throw new exception_1.ApiException(response.httpStatusCode, body);
|
|
612
|
+
}
|
|
613
|
+
if (response.httpStatusCode === 500) {
|
|
614
|
+
const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType);
|
|
615
|
+
let body;
|
|
616
|
+
try {
|
|
617
|
+
body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "HTTPCIAppErrors");
|
|
618
|
+
}
|
|
619
|
+
catch (error) {
|
|
620
|
+
logger_1.logger.debug(`Got error deserializing error: ${error}`);
|
|
621
|
+
throw new exception_1.ApiException(response.httpStatusCode, bodyText);
|
|
622
|
+
}
|
|
623
|
+
throw new exception_1.ApiException(response.httpStatusCode, body);
|
|
624
|
+
}
|
|
625
|
+
// Work around for missing responses in specification, e.g. for petstore.yaml
|
|
626
|
+
if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
|
|
627
|
+
const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "DeploymentGateResponse", "");
|
|
628
|
+
return body;
|
|
629
|
+
}
|
|
630
|
+
const body = (yield response.body.text()) || "";
|
|
631
|
+
throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"');
|
|
632
|
+
});
|
|
633
|
+
}
|
|
634
|
+
/**
|
|
635
|
+
* Unwraps the actual response sent by the server from the response context and deserializes the response content
|
|
636
|
+
* to the expected objects
|
|
637
|
+
*
|
|
638
|
+
* @params response Response returned by the server for a request to getDeploymentRule
|
|
639
|
+
* @throws ApiException if the response code was not in [200, 299]
|
|
640
|
+
*/
|
|
641
|
+
getDeploymentRule(response) {
|
|
642
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
643
|
+
const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
644
|
+
if (response.httpStatusCode === 200) {
|
|
645
|
+
const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "DeploymentRuleResponse");
|
|
646
|
+
return body;
|
|
647
|
+
}
|
|
648
|
+
if (response.httpStatusCode === 400) {
|
|
649
|
+
const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType);
|
|
650
|
+
let body;
|
|
651
|
+
try {
|
|
652
|
+
body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "HTTPCDGatesBadRequestResponse");
|
|
653
|
+
}
|
|
654
|
+
catch (error) {
|
|
655
|
+
logger_1.logger.debug(`Got error deserializing error: ${error}`);
|
|
656
|
+
throw new exception_1.ApiException(response.httpStatusCode, bodyText);
|
|
657
|
+
}
|
|
658
|
+
throw new exception_1.ApiException(response.httpStatusCode, body);
|
|
659
|
+
}
|
|
660
|
+
if (response.httpStatusCode === 401 ||
|
|
661
|
+
response.httpStatusCode === 403 ||
|
|
662
|
+
response.httpStatusCode === 429) {
|
|
663
|
+
const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType);
|
|
664
|
+
let body;
|
|
665
|
+
try {
|
|
666
|
+
body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse");
|
|
667
|
+
}
|
|
668
|
+
catch (error) {
|
|
669
|
+
logger_1.logger.debug(`Got error deserializing error: ${error}`);
|
|
670
|
+
throw new exception_1.ApiException(response.httpStatusCode, bodyText);
|
|
671
|
+
}
|
|
672
|
+
throw new exception_1.ApiException(response.httpStatusCode, body);
|
|
673
|
+
}
|
|
674
|
+
if (response.httpStatusCode === 404) {
|
|
675
|
+
const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType);
|
|
676
|
+
let body;
|
|
677
|
+
try {
|
|
678
|
+
body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "HTTPCDRulesNotFoundResponse");
|
|
679
|
+
}
|
|
680
|
+
catch (error) {
|
|
681
|
+
logger_1.logger.debug(`Got error deserializing error: ${error}`);
|
|
682
|
+
throw new exception_1.ApiException(response.httpStatusCode, bodyText);
|
|
683
|
+
}
|
|
684
|
+
throw new exception_1.ApiException(response.httpStatusCode, body);
|
|
685
|
+
}
|
|
686
|
+
if (response.httpStatusCode === 500) {
|
|
687
|
+
const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType);
|
|
688
|
+
let body;
|
|
689
|
+
try {
|
|
690
|
+
body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "HTTPCIAppErrors");
|
|
691
|
+
}
|
|
692
|
+
catch (error) {
|
|
693
|
+
logger_1.logger.debug(`Got error deserializing error: ${error}`);
|
|
694
|
+
throw new exception_1.ApiException(response.httpStatusCode, bodyText);
|
|
695
|
+
}
|
|
696
|
+
throw new exception_1.ApiException(response.httpStatusCode, body);
|
|
697
|
+
}
|
|
698
|
+
// Work around for missing responses in specification, e.g. for petstore.yaml
|
|
699
|
+
if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
|
|
700
|
+
const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "DeploymentRuleResponse", "");
|
|
701
|
+
return body;
|
|
702
|
+
}
|
|
703
|
+
const body = (yield response.body.text()) || "";
|
|
704
|
+
throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"');
|
|
705
|
+
});
|
|
706
|
+
}
|
|
707
|
+
/**
|
|
708
|
+
* Unwraps the actual response sent by the server from the response context and deserializes the response content
|
|
709
|
+
* to the expected objects
|
|
710
|
+
*
|
|
711
|
+
* @params response Response returned by the server for a request to updateDeploymentGate
|
|
712
|
+
* @throws ApiException if the response code was not in [200, 299]
|
|
713
|
+
*/
|
|
714
|
+
updateDeploymentGate(response) {
|
|
715
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
716
|
+
const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
717
|
+
if (response.httpStatusCode === 200) {
|
|
718
|
+
const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "DeploymentGateResponse");
|
|
719
|
+
return body;
|
|
720
|
+
}
|
|
721
|
+
if (response.httpStatusCode === 400) {
|
|
722
|
+
const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType);
|
|
723
|
+
let body;
|
|
724
|
+
try {
|
|
725
|
+
body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "HTTPCDGatesBadRequestResponse");
|
|
726
|
+
}
|
|
727
|
+
catch (error) {
|
|
728
|
+
logger_1.logger.debug(`Got error deserializing error: ${error}`);
|
|
729
|
+
throw new exception_1.ApiException(response.httpStatusCode, bodyText);
|
|
730
|
+
}
|
|
731
|
+
throw new exception_1.ApiException(response.httpStatusCode, body);
|
|
732
|
+
}
|
|
733
|
+
if (response.httpStatusCode === 401 ||
|
|
734
|
+
response.httpStatusCode === 403 ||
|
|
735
|
+
response.httpStatusCode === 429) {
|
|
736
|
+
const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType);
|
|
737
|
+
let body;
|
|
738
|
+
try {
|
|
739
|
+
body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse");
|
|
740
|
+
}
|
|
741
|
+
catch (error) {
|
|
742
|
+
logger_1.logger.debug(`Got error deserializing error: ${error}`);
|
|
743
|
+
throw new exception_1.ApiException(response.httpStatusCode, bodyText);
|
|
744
|
+
}
|
|
745
|
+
throw new exception_1.ApiException(response.httpStatusCode, body);
|
|
746
|
+
}
|
|
747
|
+
if (response.httpStatusCode === 404) {
|
|
748
|
+
const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType);
|
|
749
|
+
let body;
|
|
750
|
+
try {
|
|
751
|
+
body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "HTTPCDGatesNotFoundResponse");
|
|
752
|
+
}
|
|
753
|
+
catch (error) {
|
|
754
|
+
logger_1.logger.debug(`Got error deserializing error: ${error}`);
|
|
755
|
+
throw new exception_1.ApiException(response.httpStatusCode, bodyText);
|
|
756
|
+
}
|
|
757
|
+
throw new exception_1.ApiException(response.httpStatusCode, body);
|
|
758
|
+
}
|
|
759
|
+
if (response.httpStatusCode === 500) {
|
|
760
|
+
const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType);
|
|
761
|
+
let body;
|
|
762
|
+
try {
|
|
763
|
+
body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "HTTPCIAppErrors");
|
|
764
|
+
}
|
|
765
|
+
catch (error) {
|
|
766
|
+
logger_1.logger.debug(`Got error deserializing error: ${error}`);
|
|
767
|
+
throw new exception_1.ApiException(response.httpStatusCode, bodyText);
|
|
768
|
+
}
|
|
769
|
+
throw new exception_1.ApiException(response.httpStatusCode, body);
|
|
770
|
+
}
|
|
771
|
+
// Work around for missing responses in specification, e.g. for petstore.yaml
|
|
772
|
+
if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
|
|
773
|
+
const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "DeploymentGateResponse", "");
|
|
774
|
+
return body;
|
|
775
|
+
}
|
|
776
|
+
const body = (yield response.body.text()) || "";
|
|
777
|
+
throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"');
|
|
778
|
+
});
|
|
779
|
+
}
|
|
780
|
+
/**
|
|
781
|
+
* Unwraps the actual response sent by the server from the response context and deserializes the response content
|
|
782
|
+
* to the expected objects
|
|
783
|
+
*
|
|
784
|
+
* @params response Response returned by the server for a request to updateDeploymentRule
|
|
785
|
+
* @throws ApiException if the response code was not in [200, 299]
|
|
786
|
+
*/
|
|
787
|
+
updateDeploymentRule(response) {
|
|
788
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
789
|
+
const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
790
|
+
if (response.httpStatusCode === 200) {
|
|
791
|
+
const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "DeploymentRuleResponse");
|
|
792
|
+
return body;
|
|
793
|
+
}
|
|
794
|
+
if (response.httpStatusCode === 400) {
|
|
795
|
+
const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType);
|
|
796
|
+
let body;
|
|
797
|
+
try {
|
|
798
|
+
body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "HTTPCDGatesBadRequestResponse");
|
|
799
|
+
}
|
|
800
|
+
catch (error) {
|
|
801
|
+
logger_1.logger.debug(`Got error deserializing error: ${error}`);
|
|
802
|
+
throw new exception_1.ApiException(response.httpStatusCode, bodyText);
|
|
803
|
+
}
|
|
804
|
+
throw new exception_1.ApiException(response.httpStatusCode, body);
|
|
805
|
+
}
|
|
806
|
+
if (response.httpStatusCode === 401 ||
|
|
807
|
+
response.httpStatusCode === 403 ||
|
|
808
|
+
response.httpStatusCode === 429) {
|
|
809
|
+
const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType);
|
|
810
|
+
let body;
|
|
811
|
+
try {
|
|
812
|
+
body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse");
|
|
813
|
+
}
|
|
814
|
+
catch (error) {
|
|
815
|
+
logger_1.logger.debug(`Got error deserializing error: ${error}`);
|
|
816
|
+
throw new exception_1.ApiException(response.httpStatusCode, bodyText);
|
|
817
|
+
}
|
|
818
|
+
throw new exception_1.ApiException(response.httpStatusCode, body);
|
|
819
|
+
}
|
|
820
|
+
if (response.httpStatusCode === 404) {
|
|
821
|
+
const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType);
|
|
822
|
+
let body;
|
|
823
|
+
try {
|
|
824
|
+
body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "HTTPCDRulesNotFoundResponse");
|
|
825
|
+
}
|
|
826
|
+
catch (error) {
|
|
827
|
+
logger_1.logger.debug(`Got error deserializing error: ${error}`);
|
|
828
|
+
throw new exception_1.ApiException(response.httpStatusCode, bodyText);
|
|
829
|
+
}
|
|
830
|
+
throw new exception_1.ApiException(response.httpStatusCode, body);
|
|
831
|
+
}
|
|
832
|
+
if (response.httpStatusCode === 500) {
|
|
833
|
+
const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType);
|
|
834
|
+
let body;
|
|
835
|
+
try {
|
|
836
|
+
body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "HTTPCIAppErrors");
|
|
837
|
+
}
|
|
838
|
+
catch (error) {
|
|
839
|
+
logger_1.logger.debug(`Got error deserializing error: ${error}`);
|
|
840
|
+
throw new exception_1.ApiException(response.httpStatusCode, bodyText);
|
|
841
|
+
}
|
|
842
|
+
throw new exception_1.ApiException(response.httpStatusCode, body);
|
|
843
|
+
}
|
|
844
|
+
// Work around for missing responses in specification, e.g. for petstore.yaml
|
|
845
|
+
if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
|
|
846
|
+
const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "DeploymentRuleResponse", "");
|
|
847
|
+
return body;
|
|
848
|
+
}
|
|
849
|
+
const body = (yield response.body.text()) || "";
|
|
850
|
+
throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"');
|
|
851
|
+
});
|
|
852
|
+
}
|
|
853
|
+
}
|
|
854
|
+
exports.DeploymentGatesApiResponseProcessor = DeploymentGatesApiResponseProcessor;
|
|
855
|
+
class DeploymentGatesApi {
|
|
856
|
+
constructor(configuration, requestFactory, responseProcessor) {
|
|
857
|
+
this.configuration = configuration;
|
|
858
|
+
this.requestFactory =
|
|
859
|
+
requestFactory || new DeploymentGatesApiRequestFactory(configuration);
|
|
860
|
+
this.responseProcessor =
|
|
861
|
+
responseProcessor || new DeploymentGatesApiResponseProcessor();
|
|
862
|
+
}
|
|
863
|
+
/**
|
|
864
|
+
* Endpoint to create a deployment gate.
|
|
865
|
+
* @param param The request object
|
|
866
|
+
*/
|
|
867
|
+
createDeploymentGate(param, options) {
|
|
868
|
+
const requestContextPromise = this.requestFactory.createDeploymentGate(param.body, options);
|
|
869
|
+
return requestContextPromise.then((requestContext) => {
|
|
870
|
+
return this.configuration.httpApi
|
|
871
|
+
.send(requestContext)
|
|
872
|
+
.then((responseContext) => {
|
|
873
|
+
return this.responseProcessor.createDeploymentGate(responseContext);
|
|
874
|
+
});
|
|
875
|
+
});
|
|
876
|
+
}
|
|
877
|
+
/**
|
|
878
|
+
* Endpoint to create a deployment rule. A gate for the rule must already exist.
|
|
879
|
+
* @param param The request object
|
|
880
|
+
*/
|
|
881
|
+
createDeploymentRule(param, options) {
|
|
882
|
+
const requestContextPromise = this.requestFactory.createDeploymentRule(param.gateId, param.body, options);
|
|
883
|
+
return requestContextPromise.then((requestContext) => {
|
|
884
|
+
return this.configuration.httpApi
|
|
885
|
+
.send(requestContext)
|
|
886
|
+
.then((responseContext) => {
|
|
887
|
+
return this.responseProcessor.createDeploymentRule(responseContext);
|
|
888
|
+
});
|
|
889
|
+
});
|
|
890
|
+
}
|
|
891
|
+
/**
|
|
892
|
+
* Endpoint to delete a deployment gate. Rules associated with the gate are also deleted.
|
|
893
|
+
* @param param The request object
|
|
894
|
+
*/
|
|
895
|
+
deleteDeploymentGate(param, options) {
|
|
896
|
+
const requestContextPromise = this.requestFactory.deleteDeploymentGate(param.id, options);
|
|
897
|
+
return requestContextPromise.then((requestContext) => {
|
|
898
|
+
return this.configuration.httpApi
|
|
899
|
+
.send(requestContext)
|
|
900
|
+
.then((responseContext) => {
|
|
901
|
+
return this.responseProcessor.deleteDeploymentGate(responseContext);
|
|
902
|
+
});
|
|
903
|
+
});
|
|
904
|
+
}
|
|
905
|
+
/**
|
|
906
|
+
* Endpoint to delete a deployment rule.
|
|
907
|
+
* @param param The request object
|
|
908
|
+
*/
|
|
909
|
+
deleteDeploymentRule(param, options) {
|
|
910
|
+
const requestContextPromise = this.requestFactory.deleteDeploymentRule(param.gateId, param.id, options);
|
|
911
|
+
return requestContextPromise.then((requestContext) => {
|
|
912
|
+
return this.configuration.httpApi
|
|
913
|
+
.send(requestContext)
|
|
914
|
+
.then((responseContext) => {
|
|
915
|
+
return this.responseProcessor.deleteDeploymentRule(responseContext);
|
|
916
|
+
});
|
|
917
|
+
});
|
|
918
|
+
}
|
|
919
|
+
/**
|
|
920
|
+
* Endpoint to get a deployment gate.
|
|
921
|
+
* @param param The request object
|
|
922
|
+
*/
|
|
923
|
+
getDeploymentGate(param, options) {
|
|
924
|
+
const requestContextPromise = this.requestFactory.getDeploymentGate(param.id, options);
|
|
925
|
+
return requestContextPromise.then((requestContext) => {
|
|
926
|
+
return this.configuration.httpApi
|
|
927
|
+
.send(requestContext)
|
|
928
|
+
.then((responseContext) => {
|
|
929
|
+
return this.responseProcessor.getDeploymentGate(responseContext);
|
|
930
|
+
});
|
|
931
|
+
});
|
|
932
|
+
}
|
|
933
|
+
/**
|
|
934
|
+
* Endpoint to get a deployment rule.
|
|
935
|
+
* @param param The request object
|
|
936
|
+
*/
|
|
937
|
+
getDeploymentRule(param, options) {
|
|
938
|
+
const requestContextPromise = this.requestFactory.getDeploymentRule(param.gateId, param.id, options);
|
|
939
|
+
return requestContextPromise.then((requestContext) => {
|
|
940
|
+
return this.configuration.httpApi
|
|
941
|
+
.send(requestContext)
|
|
942
|
+
.then((responseContext) => {
|
|
943
|
+
return this.responseProcessor.getDeploymentRule(responseContext);
|
|
944
|
+
});
|
|
945
|
+
});
|
|
946
|
+
}
|
|
947
|
+
/**
|
|
948
|
+
* Endpoint to update a deployment gate.
|
|
949
|
+
* @param param The request object
|
|
950
|
+
*/
|
|
951
|
+
updateDeploymentGate(param, options) {
|
|
952
|
+
const requestContextPromise = this.requestFactory.updateDeploymentGate(param.id, param.body, options);
|
|
953
|
+
return requestContextPromise.then((requestContext) => {
|
|
954
|
+
return this.configuration.httpApi
|
|
955
|
+
.send(requestContext)
|
|
956
|
+
.then((responseContext) => {
|
|
957
|
+
return this.responseProcessor.updateDeploymentGate(responseContext);
|
|
958
|
+
});
|
|
959
|
+
});
|
|
960
|
+
}
|
|
961
|
+
/**
|
|
962
|
+
* Endpoint to update a deployment rule.
|
|
963
|
+
* @param param The request object
|
|
964
|
+
*/
|
|
965
|
+
updateDeploymentRule(param, options) {
|
|
966
|
+
const requestContextPromise = this.requestFactory.updateDeploymentRule(param.gateId, param.id, param.body, options);
|
|
967
|
+
return requestContextPromise.then((requestContext) => {
|
|
968
|
+
return this.configuration.httpApi
|
|
969
|
+
.send(requestContext)
|
|
970
|
+
.then((responseContext) => {
|
|
971
|
+
return this.responseProcessor.updateDeploymentRule(responseContext);
|
|
972
|
+
});
|
|
973
|
+
});
|
|
974
|
+
}
|
|
975
|
+
}
|
|
976
|
+
exports.DeploymentGatesApi = DeploymentGatesApi;
|
|
977
|
+
//# sourceMappingURL=DeploymentGatesApi.js.map
|