@datadog/datadog-api-client 1.3.0 → 1.5.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 +44 -0
- package/README.md +72 -2
- package/dist/packages/datadog-api-client-common/configuration.js +2 -1
- package/dist/packages/datadog-api-client-common/configuration.js.map +1 -1
- package/dist/packages/datadog-api-client-common/exception.js +3 -0
- package/dist/packages/datadog-api-client-common/exception.js.map +1 -1
- package/dist/packages/datadog-api-client-common/http/isomorphic-fetch.js +3 -5
- package/dist/packages/datadog-api-client-common/http/isomorphic-fetch.js.map +1 -1
- package/dist/packages/datadog-api-client-common/servers.js.map +1 -1
- package/dist/packages/datadog-api-client-common/util.d.ts +0 -9
- package/dist/packages/datadog-api-client-common/util.js +1 -32
- package/dist/packages/datadog-api-client-common/util.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/apis/AWSIntegrationApi.js +253 -407
- package/dist/packages/datadog-api-client-v1/apis/AWSIntegrationApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/apis/AWSLogsIntegrationApi.js +194 -291
- package/dist/packages/datadog-api-client-v1/apis/AWSLogsIntegrationApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/apis/AuthenticationApi.js +26 -33
- package/dist/packages/datadog-api-client-v1/apis/AuthenticationApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/apis/AzureIntegrationApi.js +140 -215
- package/dist/packages/datadog-api-client-v1/apis/AzureIntegrationApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/apis/DashboardListsApi.js +139 -215
- package/dist/packages/datadog-api-client-v1/apis/DashboardListsApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/apis/DashboardsApi.js +191 -313
- package/dist/packages/datadog-api-client-v1/apis/DashboardsApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/apis/DowntimesApi.js +194 -308
- package/dist/packages/datadog-api-client-v1/apis/DowntimesApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/apis/EventsApi.js +82 -119
- package/dist/packages/datadog-api-client-v1/apis/EventsApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/apis/GCPIntegrationApi.js +112 -172
- package/dist/packages/datadog-api-client-v1/apis/GCPIntegrationApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/apis/HostsApi.js +112 -172
- package/dist/packages/datadog-api-client-v1/apis/HostsApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/apis/IPRangesApi.js +22 -19
- package/dist/packages/datadog-api-client-v1/apis/IPRangesApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/apis/KeyManagementApi.js +281 -460
- package/dist/packages/datadog-api-client-v1/apis/KeyManagementApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/apis/LogsApi.js +71 -67
- package/dist/packages/datadog-api-client-v1/apis/LogsApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/apis/LogsIndexesApi.js +200 -226
- package/dist/packages/datadog-api-client-v1/apis/LogsIndexesApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/apis/LogsPipelinesApi.js +234 -272
- package/dist/packages/datadog-api-client-v1/apis/LogsPipelinesApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/apis/MetricsApi.js +201 -351
- package/dist/packages/datadog-api-client-v1/apis/MetricsApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/apis/MonitorsApi.js +285 -490
- package/dist/packages/datadog-api-client-v1/apis/MonitorsApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/apis/NotebooksApi.js +141 -251
- package/dist/packages/datadog-api-client-v1/apis/NotebooksApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/apis/OrganizationsApi.js +167 -258
- package/dist/packages/datadog-api-client-v1/apis/OrganizationsApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/apis/PagerDutyIntegrationApi.js +107 -174
- package/dist/packages/datadog-api-client-v1/apis/PagerDutyIntegrationApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/apis/SecurityMonitoringApi.js +87 -159
- package/dist/packages/datadog-api-client-v1/apis/SecurityMonitoringApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/apis/ServiceChecksApi.js +30 -63
- package/dist/packages/datadog-api-client-v1/apis/ServiceChecksApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/apis/ServiceLevelObjectiveCorrectionsApi.js +137 -221
- package/dist/packages/datadog-api-client-v1/apis/ServiceLevelObjectiveCorrectionsApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/apis/ServiceLevelObjectivesApi.d.ts +8 -1
- package/dist/packages/datadog-api-client-v1/apis/ServiceLevelObjectivesApi.js +288 -492
- package/dist/packages/datadog-api-client-v1/apis/ServiceLevelObjectivesApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/apis/SlackIntegrationApi.js +142 -261
- package/dist/packages/datadog-api-client-v1/apis/SlackIntegrationApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/apis/SnapshotsApi.js +28 -43
- package/dist/packages/datadog-api-client-v1/apis/SnapshotsApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/apis/SyntheticsApi.js +738 -1130
- package/dist/packages/datadog-api-client-v1/apis/SyntheticsApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/apis/TagsApi.js +137 -211
- package/dist/packages/datadog-api-client-v1/apis/TagsApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/apis/UsageMeteringApi.d.ts +1 -1
- package/dist/packages/datadog-api-client-v1/apis/UsageMeteringApi.js +1056 -1595
- package/dist/packages/datadog-api-client-v1/apis/UsageMeteringApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/apis/UsersApi.js +141 -235
- package/dist/packages/datadog-api-client-v1/apis/UsersApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/apis/WebhooksIntegrationApi.js +222 -376
- package/dist/packages/datadog-api-client-v1/apis/WebhooksIntegrationApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/index.d.ts +20 -0
- package/dist/packages/datadog-api-client-v1/index.js +35 -7
- package/dist/packages/datadog-api-client-v1/index.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/models/DashboardTemplateVariable.d.ts +5 -1
- package/dist/packages/datadog-api-client-v1/models/DashboardTemplateVariable.js +4 -0
- package/dist/packages/datadog-api-client-v1/models/DashboardTemplateVariable.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/models/DashboardTemplateVariablePresetValue.d.ts +5 -1
- package/dist/packages/datadog-api-client-v1/models/DashboardTemplateVariablePresetValue.js +4 -0
- package/dist/packages/datadog-api-client-v1/models/DashboardTemplateVariablePresetValue.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/models/FormulaAndFunctionEventQueryDefinition.d.ts +4 -0
- package/dist/packages/datadog-api-client-v1/models/FormulaAndFunctionEventQueryDefinition.js +4 -0
- package/dist/packages/datadog-api-client-v1/models/FormulaAndFunctionEventQueryDefinition.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/models/HourlyUsageAttributionUsageType.d.ts +2 -1
- package/dist/packages/datadog-api-client-v1/models/HourlyUsageAttributionUsageType.js +2 -1
- package/dist/packages/datadog-api-client-v1/models/HourlyUsageAttributionUsageType.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/models/ListStreamQuery.d.ts +4 -0
- package/dist/packages/datadog-api-client-v1/models/ListStreamQuery.js +4 -0
- package/dist/packages/datadog-api-client-v1/models/ListStreamQuery.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/models/MonitorOptions.d.ts +9 -0
- package/dist/packages/datadog-api-client-v1/models/MonitorOptions.js +4 -0
- package/dist/packages/datadog-api-client-v1/models/MonitorOptions.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/models/MonthlyUsageAttributionSupportedMetrics.d.ts +3 -1
- package/dist/packages/datadog-api-client-v1/models/MonthlyUsageAttributionSupportedMetrics.js +4 -2
- package/dist/packages/datadog-api-client-v1/models/MonthlyUsageAttributionSupportedMetrics.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/models/MonthlyUsageAttributionValues.d.ts +8 -0
- package/dist/packages/datadog-api-client-v1/models/MonthlyUsageAttributionValues.js +10 -0
- package/dist/packages/datadog-api-client-v1/models/MonthlyUsageAttributionValues.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/models/ObjectSerializer.js +44 -0
- package/dist/packages/datadog-api-client-v1/models/ObjectSerializer.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/models/SLOCreator.d.ts +36 -0
- package/dist/packages/datadog-api-client-v1/models/SLOCreator.js +42 -0
- package/dist/packages/datadog-api-client-v1/models/SLOCreator.js.map +1 -0
- package/dist/packages/datadog-api-client-v1/models/SLOListWidgetDefinition.d.ts +47 -0
- package/dist/packages/datadog-api-client-v1/models/SLOListWidgetDefinition.js +46 -0
- package/dist/packages/datadog-api-client-v1/models/SLOListWidgetDefinition.js.map +1 -0
- package/dist/packages/datadog-api-client-v1/models/SLOListWidgetDefinitionType.d.ts +7 -0
- package/dist/packages/datadog-api-client-v1/models/SLOListWidgetDefinitionType.js +10 -0
- package/dist/packages/datadog-api-client-v1/models/SLOListWidgetDefinitionType.js.map +1 -0
- package/dist/packages/datadog-api-client-v1/models/SLOListWidgetQuery.d.ts +32 -0
- package/dist/packages/datadog-api-client-v1/models/SLOListWidgetQuery.js +39 -0
- package/dist/packages/datadog-api-client-v1/models/SLOListWidgetQuery.js.map +1 -0
- package/dist/packages/datadog-api-client-v1/models/SLOListWidgetRequest.d.ts +34 -0
- package/dist/packages/datadog-api-client-v1/models/SLOListWidgetRequest.js +34 -0
- package/dist/packages/datadog-api-client-v1/models/SLOListWidgetRequest.js.map +1 -0
- package/dist/packages/datadog-api-client-v1/models/SLOListWidgetRequestType.d.ts +7 -0
- package/dist/packages/datadog-api-client-v1/models/SLOListWidgetRequestType.js +10 -0
- package/dist/packages/datadog-api-client-v1/models/SLOListWidgetRequestType.js.map +1 -0
- package/dist/packages/datadog-api-client-v1/models/SLOOverallStatuses.d.ts +55 -0
- package/dist/packages/datadog-api-client-v1/models/SLOOverallStatuses.js +56 -0
- package/dist/packages/datadog-api-client-v1/models/SLOOverallStatuses.js.map +1 -0
- package/dist/packages/datadog-api-client-v1/models/SLORawErrorBudgetRemaining.d.ts +32 -0
- package/dist/packages/datadog-api-client-v1/models/SLORawErrorBudgetRemaining.js +38 -0
- package/dist/packages/datadog-api-client-v1/models/SLORawErrorBudgetRemaining.js.map +1 -0
- package/dist/packages/datadog-api-client-v1/models/SearchSLOQuery.d.ts +39 -0
- package/dist/packages/datadog-api-client-v1/models/SearchSLOQuery.js +43 -0
- package/dist/packages/datadog-api-client-v1/models/SearchSLOQuery.js.map +1 -0
- package/dist/packages/datadog-api-client-v1/models/SearchSLOResponseDataAttributes.d.ts +2 -2
- package/dist/packages/datadog-api-client-v1/models/SearchSLOResponseDataAttributes.js +3 -3
- package/dist/packages/datadog-api-client-v1/models/SearchSLOResponseDataAttributes.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/models/SearchSLOThreshold.d.ts +54 -0
- package/dist/packages/datadog-api-client-v1/models/SearchSLOThreshold.js +48 -0
- package/dist/packages/datadog-api-client-v1/models/SearchSLOThreshold.js.map +1 -0
- package/dist/packages/datadog-api-client-v1/models/SearchSLOTimeframe.d.ts +9 -0
- package/dist/packages/datadog-api-client-v1/models/SearchSLOTimeframe.js +12 -0
- package/dist/packages/datadog-api-client-v1/models/SearchSLOTimeframe.js.map +1 -0
- package/dist/packages/datadog-api-client-v1/models/SearchServiceLevelObjective.d.ts +29 -0
- package/dist/packages/datadog-api-client-v1/models/SearchServiceLevelObjective.js +28 -0
- package/dist/packages/datadog-api-client-v1/models/SearchServiceLevelObjective.js.map +1 -0
- package/dist/packages/datadog-api-client-v1/models/SearchServiceLevelObjectiveAttributes.d.ts +103 -0
- package/dist/packages/datadog-api-client-v1/models/SearchServiceLevelObjectiveAttributes.js +88 -0
- package/dist/packages/datadog-api-client-v1/models/SearchServiceLevelObjectiveAttributes.js.map +1 -0
- package/dist/packages/datadog-api-client-v1/models/SearchServiceLevelObjectiveData.d.ts +40 -0
- package/dist/packages/datadog-api-client-v1/models/SearchServiceLevelObjectiveData.js +36 -0
- package/dist/packages/datadog-api-client-v1/models/SearchServiceLevelObjectiveData.js.map +1 -0
- package/dist/packages/datadog-api-client-v1/models/SyntheticsAssertionOperator.d.ts +2 -1
- package/dist/packages/datadog-api-client-v1/models/SyntheticsAssertionOperator.js +2 -1
- package/dist/packages/datadog-api-client-v1/models/SyntheticsAssertionOperator.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/models/SyntheticsBrowserTest.d.ts +1 -1
- package/dist/packages/datadog-api-client-v1/models/TopologyMapWidgetDefinition.d.ts +52 -0
- package/dist/packages/datadog-api-client-v1/models/TopologyMapWidgetDefinition.js +50 -0
- package/dist/packages/datadog-api-client-v1/models/TopologyMapWidgetDefinition.js.map +1 -0
- package/dist/packages/datadog-api-client-v1/models/TopologyMapWidgetDefinitionType.d.ts +7 -0
- package/dist/packages/datadog-api-client-v1/models/TopologyMapWidgetDefinitionType.js +10 -0
- package/dist/packages/datadog-api-client-v1/models/TopologyMapWidgetDefinitionType.js.map +1 -0
- package/dist/packages/datadog-api-client-v1/models/TopologyQuery.d.ts +37 -0
- package/dist/packages/datadog-api-client-v1/models/TopologyQuery.js +36 -0
- package/dist/packages/datadog-api-client-v1/models/TopologyQuery.js.map +1 -0
- package/dist/packages/datadog-api-client-v1/models/TopologyQueryDataSource.d.ts +8 -0
- package/dist/packages/datadog-api-client-v1/models/TopologyQueryDataSource.js +11 -0
- package/dist/packages/datadog-api-client-v1/models/TopologyQueryDataSource.js.map +1 -0
- package/dist/packages/datadog-api-client-v1/models/TopologyRequest.d.ts +34 -0
- package/dist/packages/datadog-api-client-v1/models/TopologyRequest.js +32 -0
- package/dist/packages/datadog-api-client-v1/models/TopologyRequest.js.map +1 -0
- package/dist/packages/datadog-api-client-v1/models/TopologyRequestType.d.ts +7 -0
- package/dist/packages/datadog-api-client-v1/models/TopologyRequestType.js +10 -0
- package/dist/packages/datadog-api-client-v1/models/TopologyRequestType.js.map +1 -0
- package/dist/packages/datadog-api-client-v1/models/UsageAttributionSort.d.ts +3 -1
- package/dist/packages/datadog-api-client-v1/models/UsageAttributionSort.js +3 -1
- package/dist/packages/datadog-api-client-v1/models/UsageAttributionSort.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/models/UsageAttributionSupportedMetrics.d.ts +3 -1
- package/dist/packages/datadog-api-client-v1/models/UsageAttributionSupportedMetrics.js +3 -1
- package/dist/packages/datadog-api-client-v1/models/UsageAttributionSupportedMetrics.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/models/UsageAttributionValues.d.ts +8 -0
- package/dist/packages/datadog-api-client-v1/models/UsageAttributionValues.js +10 -0
- package/dist/packages/datadog-api-client-v1/models/UsageAttributionValues.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/models/UsageCIVisibilityHour.js +4 -0
- package/dist/packages/datadog-api-client-v1/models/UsageCIVisibilityHour.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/models/UsageFargateHour.d.ts +4 -0
- package/dist/packages/datadog-api-client-v1/models/UsageFargateHour.js +5 -0
- package/dist/packages/datadog-api-client-v1/models/UsageFargateHour.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/models/UsageOnlineArchiveHour.js +1 -0
- package/dist/packages/datadog-api-client-v1/models/UsageOnlineArchiveHour.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-v1/models/WidgetDefinition.d.ts +3 -1
- package/dist/packages/datadog-api-client-v2/apis/AuditApi.js +56 -86
- package/dist/packages/datadog-api-client-v2/apis/AuditApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/apis/AuthNMappingsApi.js +139 -241
- package/dist/packages/datadog-api-client-v2/apis/AuthNMappingsApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/apis/CloudWorkloadSecurityApi.js +161 -260
- package/dist/packages/datadog-api-client-v2/apis/CloudWorkloadSecurityApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/apis/ConfluentCloudApi.d.ts +253 -0
- package/dist/packages/datadog-api-client-v2/apis/ConfluentCloudApi.js +1064 -0
- package/dist/packages/datadog-api-client-v2/apis/ConfluentCloudApi.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/apis/DashboardListsApi.js +115 -202
- package/dist/packages/datadog-api-client-v2/apis/DashboardListsApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/apis/EventsApi.js +55 -86
- package/dist/packages/datadog-api-client-v2/apis/EventsApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/apis/IncidentServicesApi.js +146 -311
- package/dist/packages/datadog-api-client-v2/apis/IncidentServicesApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/apis/IncidentTeamsApi.js +146 -311
- package/dist/packages/datadog-api-client-v2/apis/IncidentTeamsApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/apis/IncidentsApi.d.ts +67 -0
- package/dist/packages/datadog-api-client-v2/apis/IncidentsApi.js +358 -303
- package/dist/packages/datadog-api-client-v2/apis/IncidentsApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/apis/KeyManagementApi.js +389 -650
- package/dist/packages/datadog-api-client-v2/apis/KeyManagementApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/apis/LogsApi.js +117 -222
- package/dist/packages/datadog-api-client-v2/apis/LogsApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/apis/LogsArchivesApi.js +275 -469
- package/dist/packages/datadog-api-client-v2/apis/LogsArchivesApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/apis/LogsMetricsApi.js +137 -221
- package/dist/packages/datadog-api-client-v2/apis/LogsMetricsApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/apis/MetricsApi.d.ts +41 -8
- package/dist/packages/datadog-api-client-v2/apis/MetricsApi.js +419 -563
- package/dist/packages/datadog-api-client-v2/apis/MetricsApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/apis/OpsgenieIntegrationApi.js +141 -261
- package/dist/packages/datadog-api-client-v2/apis/OpsgenieIntegrationApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/apis/OrganizationsApi.js +26 -40
- package/dist/packages/datadog-api-client-v2/apis/OrganizationsApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/apis/ProcessesApi.js +28 -43
- package/dist/packages/datadog-api-client-v2/apis/ProcessesApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/apis/RUMApi.js +214 -310
- package/dist/packages/datadog-api-client-v2/apis/RUMApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/apis/RolesApi.js +367 -625
- package/dist/packages/datadog-api-client-v2/apis/RolesApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/apis/SecurityMonitoringApi.d.ts +21 -0
- package/dist/packages/datadog-api-client-v2/apis/SecurityMonitoringApi.js +506 -685
- package/dist/packages/datadog-api-client-v2/apis/SecurityMonitoringApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/apis/ServiceAccountsApi.js +139 -231
- package/dist/packages/datadog-api-client-v2/apis/ServiceAccountsApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/apis/ServiceDefinitionApi.d.ts +94 -0
- package/dist/packages/datadog-api-client-v2/apis/ServiceDefinitionApi.js +456 -0
- package/dist/packages/datadog-api-client-v2/apis/ServiceDefinitionApi.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/apis/UsageMeteringApi.d.ts +43 -6
- package/dist/packages/datadog-api-client-v2/apis/UsageMeteringApi.js +277 -265
- package/dist/packages/datadog-api-client-v2/apis/UsageMeteringApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/apis/UsersApi.js +279 -446
- package/dist/packages/datadog-api-client-v2/apis/UsersApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/index.d.ts +88 -5
- package/dist/packages/datadog-api-client-v2/index.js +134 -17
- package/dist/packages/datadog-api-client-v2/index.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/models/ConfluentAccountCreateRequest.d.ts +29 -0
- package/dist/packages/datadog-api-client-v2/models/ConfluentAccountCreateRequest.js +29 -0
- package/dist/packages/datadog-api-client-v2/models/ConfluentAccountCreateRequest.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/ConfluentAccountCreateRequestAttributes.d.ts +41 -0
- package/dist/packages/datadog-api-client-v2/models/ConfluentAccountCreateRequestAttributes.js +42 -0
- package/dist/packages/datadog-api-client-v2/models/ConfluentAccountCreateRequestAttributes.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/ConfluentAccountCreateRequestData.d.ts +34 -0
- package/dist/packages/datadog-api-client-v2/models/ConfluentAccountCreateRequestData.js +34 -0
- package/dist/packages/datadog-api-client-v2/models/ConfluentAccountCreateRequestData.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/ConfluentAccountResourceAttributes.d.ts +36 -0
- package/dist/packages/datadog-api-client-v2/models/ConfluentAccountResourceAttributes.js +41 -0
- package/dist/packages/datadog-api-client-v2/models/ConfluentAccountResourceAttributes.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/ConfluentAccountResponse.d.ts +29 -0
- package/dist/packages/datadog-api-client-v2/models/ConfluentAccountResponse.js +28 -0
- package/dist/packages/datadog-api-client-v2/models/ConfluentAccountResponse.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/ConfluentAccountResponseAttributes.d.ts +37 -0
- package/dist/packages/datadog-api-client-v2/models/ConfluentAccountResponseAttributes.js +37 -0
- package/dist/packages/datadog-api-client-v2/models/ConfluentAccountResponseAttributes.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/ConfluentAccountResponseData.d.ts +38 -0
- package/dist/packages/datadog-api-client-v2/models/ConfluentAccountResponseData.js +39 -0
- package/dist/packages/datadog-api-client-v2/models/ConfluentAccountResponseData.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/ConfluentAccountType.d.ts +7 -0
- package/dist/packages/datadog-api-client-v2/models/ConfluentAccountType.js +10 -0
- package/dist/packages/datadog-api-client-v2/models/ConfluentAccountType.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/ConfluentAccountUpdateRequest.d.ts +29 -0
- package/dist/packages/datadog-api-client-v2/models/ConfluentAccountUpdateRequest.js +29 -0
- package/dist/packages/datadog-api-client-v2/models/ConfluentAccountUpdateRequest.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/ConfluentAccountUpdateRequestAttributes.d.ts +36 -0
- package/dist/packages/datadog-api-client-v2/models/ConfluentAccountUpdateRequestAttributes.js +43 -0
- package/dist/packages/datadog-api-client-v2/models/ConfluentAccountUpdateRequestAttributes.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/ConfluentAccountUpdateRequestData.d.ts +34 -0
- package/dist/packages/datadog-api-client-v2/models/ConfluentAccountUpdateRequestData.js +34 -0
- package/dist/packages/datadog-api-client-v2/models/ConfluentAccountUpdateRequestData.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/ConfluentAccountsResponse.d.ts +29 -0
- package/dist/packages/datadog-api-client-v2/models/ConfluentAccountsResponse.js +28 -0
- package/dist/packages/datadog-api-client-v2/models/ConfluentAccountsResponse.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/ConfluentResourceRequest.d.ts +29 -0
- package/dist/packages/datadog-api-client-v2/models/ConfluentResourceRequest.js +29 -0
- package/dist/packages/datadog-api-client-v2/models/ConfluentResourceRequest.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/ConfluentResourceRequestAttributes.d.ts +32 -0
- package/dist/packages/datadog-api-client-v2/models/ConfluentResourceRequestAttributes.js +37 -0
- package/dist/packages/datadog-api-client-v2/models/ConfluentResourceRequestAttributes.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/ConfluentResourceRequestData.d.ts +38 -0
- package/dist/packages/datadog-api-client-v2/models/ConfluentResourceRequestData.js +39 -0
- package/dist/packages/datadog-api-client-v2/models/ConfluentResourceRequestData.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/ConfluentResourceResponse.d.ts +29 -0
- package/dist/packages/datadog-api-client-v2/models/ConfluentResourceResponse.js +28 -0
- package/dist/packages/datadog-api-client-v2/models/ConfluentResourceResponse.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/ConfluentResourceResponseAttributes.d.ts +32 -0
- package/dist/packages/datadog-api-client-v2/models/ConfluentResourceResponseAttributes.js +38 -0
- package/dist/packages/datadog-api-client-v2/models/ConfluentResourceResponseAttributes.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/ConfluentResourceResponseData.d.ts +38 -0
- package/dist/packages/datadog-api-client-v2/models/ConfluentResourceResponseData.js +39 -0
- package/dist/packages/datadog-api-client-v2/models/ConfluentResourceResponseData.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/ConfluentResourceType.d.ts +7 -0
- package/dist/packages/datadog-api-client-v2/models/ConfluentResourceType.js +10 -0
- package/dist/packages/datadog-api-client-v2/models/ConfluentResourceType.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/ConfluentResourcesResponse.d.ts +29 -0
- package/dist/packages/datadog-api-client-v2/models/ConfluentResourcesResponse.js +28 -0
- package/dist/packages/datadog-api-client-v2/models/ConfluentResourcesResponse.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/Event.js +1 -0
- package/dist/packages/datadog-api-client-v2/models/Event.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/models/EventAttributes.js +2 -0
- package/dist/packages/datadog-api-client-v2/models/EventAttributes.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/models/HTTPLogItem.d.ts +3 -3
- package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentAttachmentType.d.ts +8 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentAttachmentType.js +11 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentAttachmentType.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentAttributes.d.ts +12 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentAttributes.js +3 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentAttributes.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentData.d.ts +43 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentData.js +44 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentData.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentLinkAttachmentType.d.ts +7 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentLinkAttachmentType.js +10 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentLinkAttachmentType.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentLinkAttributes.d.ts +34 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentLinkAttributes.js +34 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentLinkAttributes.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentLinkAttributesAttachmentObject.d.ts +32 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentLinkAttributesAttachmentObject.js +39 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentLinkAttributesAttachmentObject.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentPostmortemAttachmentType.d.ts +7 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentPostmortemAttachmentType.js +10 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentPostmortemAttachmentType.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentPostmortemAttributes.d.ts +34 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentPostmortemAttributes.js +34 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentPostmortemAttributes.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentRelatedObject.d.ts +7 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentRelatedObject.js +10 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentRelatedObject.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentRelationships.d.ts +29 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentRelationships.js +28 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentRelationships.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentType.d.ts +7 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentType.js +10 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentType.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentUpdateAttributes.d.ts +12 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentUpdateAttributes.js +3 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentUpdateAttributes.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentUpdateData.d.ts +38 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentUpdateData.js +37 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentUpdateData.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentUpdateRequest.d.ts +32 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentUpdateRequest.js +29 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentUpdateRequest.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentUpdateResponse.d.ts +35 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentUpdateResponse.js +33 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentUpdateResponse.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentsPostmortemAttributesAttachmentObject.d.ts +32 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentsPostmortemAttributesAttachmentObject.js +39 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentsPostmortemAttributesAttachmentObject.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentsResponse.d.ts +34 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentsResponse.js +33 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentsResponse.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentsResponseIncludedItem.d.ts +11 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentsResponseIncludedItem.js +3 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentsResponseIncludedItem.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentRelatedObject.d.ts +2 -1
- package/dist/packages/datadog-api-client-v2/models/IncidentRelatedObject.js +2 -1
- package/dist/packages/datadog-api-client-v2/models/IncidentRelatedObject.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/models/IncidentResponseAttributes.d.ts +1 -5
- package/dist/packages/datadog-api-client-v2/models/IncidentResponseAttributes.js +0 -4
- package/dist/packages/datadog-api-client-v2/models/IncidentResponseAttributes.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/models/IncidentResponseIncludedItem.d.ts +2 -1
- package/dist/packages/datadog-api-client-v2/models/IncidentResponseRelationships.d.ts +5 -5
- package/dist/packages/datadog-api-client-v2/models/IncidentResponseRelationships.js +4 -4
- package/dist/packages/datadog-api-client-v2/models/IncidentResponseRelationships.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/models/IncidentUpdateAttributes.d.ts +0 -4
- package/dist/packages/datadog-api-client-v2/models/IncidentUpdateAttributes.js +0 -5
- package/dist/packages/datadog-api-client-v2/models/IncidentUpdateAttributes.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/models/MetricActiveConfigurationType.d.ts +7 -0
- package/dist/packages/datadog-api-client-v2/models/MetricActiveConfigurationType.js +10 -0
- package/dist/packages/datadog-api-client-v2/models/MetricActiveConfigurationType.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/MetricSuggestedTagsAndAggregations.d.ts +38 -0
- package/dist/packages/datadog-api-client-v2/models/MetricSuggestedTagsAndAggregations.js +36 -0
- package/dist/packages/datadog-api-client-v2/models/MetricSuggestedTagsAndAggregations.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/MetricSuggestedTagsAndAggregationsResponse.d.ts +29 -0
- package/dist/packages/datadog-api-client-v2/models/MetricSuggestedTagsAndAggregationsResponse.js +28 -0
- package/dist/packages/datadog-api-client-v2/models/MetricSuggestedTagsAndAggregationsResponse.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/MetricSuggestedTagsAttributes.d.ts +33 -0
- package/dist/packages/datadog-api-client-v2/models/MetricSuggestedTagsAttributes.js +32 -0
- package/dist/packages/datadog-api-client-v2/models/MetricSuggestedTagsAttributes.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/MonitorType.js +4 -0
- package/dist/packages/datadog-api-client-v2/models/MonitorType.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/models/ObjectSerializer.js +186 -10
- package/dist/packages/datadog-api-client-v2/models/ObjectSerializer.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/models/RelationshipToIncidentAttachment.d.ts +29 -0
- package/dist/packages/datadog-api-client-v2/models/RelationshipToIncidentAttachment.js +29 -0
- package/dist/packages/datadog-api-client-v2/models/RelationshipToIncidentAttachment.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/RelationshipToIncidentAttachmentData.d.ts +33 -0
- package/dist/packages/datadog-api-client-v2/models/RelationshipToIncidentAttachmentData.js +34 -0
- package/dist/packages/datadog-api-client-v2/models/RelationshipToIncidentAttachmentData.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringRuleCreatePayload.d.ts +4 -61
- package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringRuleCreatePayload.js +0 -67
- package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringRuleCreatePayload.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringRuleQuery.d.ts +4 -46
- package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringRuleQuery.js +0 -49
- package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringRuleQuery.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringRuleQueryAggregation.d.ts +2 -1
- package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringRuleQueryAggregation.js +2 -1
- package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringRuleQueryAggregation.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringRuleResponse.d.ts +5 -90
- package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringRuleResponse.js +0 -93
- package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringRuleResponse.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringSignalRuleCreatePayload.d.ts +69 -0
- package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringSignalRuleCreatePayload.js +70 -0
- package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringSignalRuleCreatePayload.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringSignalRuleQuery.d.ts +49 -0
- package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringSignalRuleQuery.js +50 -0
- package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringSignalRuleQuery.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringSignalRuleResponse.d.ts +97 -0
- package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringSignalRuleResponse.js +96 -0
- package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringSignalRuleResponse.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringSignalRuleResponseQuery.d.ts +53 -0
- package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringSignalRuleResponseQuery.js +53 -0
- package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringSignalRuleResponseQuery.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringSignalRuleType.d.ts +7 -0
- package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringSignalRuleType.js +10 -0
- package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringSignalRuleType.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringStandardRuleCreatePayload.d.ts +69 -0
- package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringStandardRuleCreatePayload.js +70 -0
- package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringStandardRuleCreatePayload.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/{SecurityMonitoringRuleQueryCreate.d.ts → SecurityMonitoringStandardRuleQuery.d.ts} +4 -4
- package/dist/packages/datadog-api-client-v2/models/{SecurityMonitoringRuleQueryCreate.js → SecurityMonitoringStandardRuleQuery.js} +9 -9
- package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringStandardRuleQuery.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringStandardRuleResponse.d.ts +97 -0
- package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringStandardRuleResponse.js +96 -0
- package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringStandardRuleResponse.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionCreateResponse.d.ts +29 -0
- package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionCreateResponse.js +28 -0
- package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionCreateResponse.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionData.d.ts +33 -0
- package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionData.js +32 -0
- package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionData.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionDataAttributes.d.ts +34 -0
- package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionDataAttributes.js +32 -0
- package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionDataAttributes.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionGetResponse.d.ts +29 -0
- package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionGetResponse.js +28 -0
- package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionGetResponse.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionMeta.d.ts +40 -0
- package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionMeta.js +45 -0
- package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionMeta.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionSchema.d.ts +12 -0
- package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionSchema.js +3 -0
- package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionSchema.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionV1.d.ts +64 -0
- package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionV1.js +58 -0
- package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionV1.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionV1Contact.d.ts +32 -0
- package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionV1Contact.js +38 -0
- package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionV1Contact.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionV1Info.d.ts +40 -0
- package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionV1Info.js +46 -0
- package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionV1Info.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionV1Integrations.d.ts +28 -0
- package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionV1Integrations.js +33 -0
- package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionV1Integrations.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionV1Org.d.ts +32 -0
- package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionV1Org.js +37 -0
- package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionV1Org.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionV1Resource.d.ts +37 -0
- package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionV1Resource.js +39 -0
- package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionV1Resource.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionV1ResourceType.d.ts +15 -0
- package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionV1ResourceType.js +18 -0
- package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionV1ResourceType.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionV1Version.d.ts +7 -0
- package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionV1Version.js +10 -0
- package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionV1Version.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionV2.d.ts +76 -0
- package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionV2.js +70 -0
- package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionV2.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionV2Contact.d.ts +12 -0
- package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionV2Contact.js +3 -0
- package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionV2Contact.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionV2Doc.d.ts +36 -0
- package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionV2Doc.js +43 -0
- package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionV2Doc.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionV2Email.d.ts +37 -0
- package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionV2Email.js +39 -0
- package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionV2Email.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionV2EmailType.d.ts +7 -0
- package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionV2EmailType.js +10 -0
- package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionV2EmailType.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionV2Integrations.d.ts +33 -0
- package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionV2Integrations.js +32 -0
- package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionV2Integrations.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionV2Link.d.ts +37 -0
- package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionV2Link.js +39 -0
- package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionV2Link.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionV2LinkType.d.ts +15 -0
- package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionV2LinkType.js +18 -0
- package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionV2LinkType.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionV2Opsgenie.d.ts +33 -0
- package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionV2Opsgenie.js +33 -0
- package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionV2Opsgenie.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionV2OpsgenieRegion.d.ts +8 -0
- package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionV2OpsgenieRegion.js +11 -0
- package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionV2OpsgenieRegion.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionV2Repo.d.ts +36 -0
- package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionV2Repo.js +43 -0
- package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionV2Repo.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionV2Slack.d.ts +37 -0
- package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionV2Slack.js +38 -0
- package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionV2Slack.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionV2SlackType.d.ts +7 -0
- package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionV2SlackType.js +10 -0
- package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionV2SlackType.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionV2Version.d.ts +7 -0
- package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionV2Version.js +10 -0
- package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionV2Version.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionsCreateRequest.d.ts +11 -0
- package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionsCreateRequest.js +3 -0
- package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionsCreateRequest.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionsListResponse.d.ts +29 -0
- package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionsListResponse.js +28 -0
- package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionsListResponse.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/models/SecurityMonitoringRuleQueryCreate.js.map +0 -1
|
@@ -0,0 +1,1064 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __extends = (this && this.__extends) || (function () {
|
|
3
|
+
var extendStatics = function (d, b) {
|
|
4
|
+
extendStatics = Object.setPrototypeOf ||
|
|
5
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
6
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
7
|
+
return extendStatics(d, b);
|
|
8
|
+
};
|
|
9
|
+
return function (d, b) {
|
|
10
|
+
if (typeof b !== "function" && b !== null)
|
|
11
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
12
|
+
extendStatics(d, b);
|
|
13
|
+
function __() { this.constructor = d; }
|
|
14
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
15
|
+
};
|
|
16
|
+
})();
|
|
17
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
18
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
19
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
20
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
21
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
22
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
23
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
24
|
+
});
|
|
25
|
+
};
|
|
26
|
+
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
27
|
+
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
28
|
+
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
29
|
+
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
30
|
+
function step(op) {
|
|
31
|
+
if (f) throw new TypeError("Generator is already executing.");
|
|
32
|
+
while (_) try {
|
|
33
|
+
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
34
|
+
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
35
|
+
switch (op[0]) {
|
|
36
|
+
case 0: case 1: t = op; break;
|
|
37
|
+
case 4: _.label++; return { value: op[1], done: false };
|
|
38
|
+
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
39
|
+
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
40
|
+
default:
|
|
41
|
+
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
42
|
+
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
43
|
+
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
44
|
+
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
45
|
+
if (t[2]) _.ops.pop();
|
|
46
|
+
_.trys.pop(); continue;
|
|
47
|
+
}
|
|
48
|
+
op = body.call(thisArg, _);
|
|
49
|
+
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
50
|
+
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
51
|
+
}
|
|
52
|
+
};
|
|
53
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
54
|
+
exports.ConfluentCloudApi = exports.ConfluentCloudApiResponseProcessor = exports.ConfluentCloudApiRequestFactory = void 0;
|
|
55
|
+
var baseapi_1 = require("../../datadog-api-client-common/baseapi");
|
|
56
|
+
var configuration_1 = require("../../datadog-api-client-common/configuration");
|
|
57
|
+
var http_1 = require("../../datadog-api-client-common/http/http");
|
|
58
|
+
var logger_1 = require("../../../logger");
|
|
59
|
+
var ObjectSerializer_1 = require("../models/ObjectSerializer");
|
|
60
|
+
var exception_1 = require("../../datadog-api-client-common/exception");
|
|
61
|
+
var ConfluentCloudApiRequestFactory = /** @class */ (function (_super) {
|
|
62
|
+
__extends(ConfluentCloudApiRequestFactory, _super);
|
|
63
|
+
function ConfluentCloudApiRequestFactory() {
|
|
64
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
65
|
+
}
|
|
66
|
+
ConfluentCloudApiRequestFactory.prototype.createConfluentAccount = function (body, _options) {
|
|
67
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
68
|
+
var _config, localVarPath, requestContext, contentType, serializedBody;
|
|
69
|
+
return __generator(this, function (_a) {
|
|
70
|
+
_config = _options || this.configuration;
|
|
71
|
+
// verify required parameter 'body' is not null or undefined
|
|
72
|
+
if (body === null || body === undefined) {
|
|
73
|
+
throw new baseapi_1.RequiredError("Required parameter body was null or undefined when calling createConfluentAccount.");
|
|
74
|
+
}
|
|
75
|
+
localVarPath = "/api/v2/integrations/confluent-cloud/accounts";
|
|
76
|
+
requestContext = (0, configuration_1.getServer)(_config, "v2.ConfluentCloudApi.createConfluentAccount").makeRequestContext(localVarPath, http_1.HttpMethod.POST);
|
|
77
|
+
requestContext.setHeaderParam("Accept", "application/json");
|
|
78
|
+
requestContext.setHttpConfig(_config.httpConfig);
|
|
79
|
+
contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([
|
|
80
|
+
"application/json",
|
|
81
|
+
]);
|
|
82
|
+
requestContext.setHeaderParam("Content-Type", contentType);
|
|
83
|
+
serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(body, "ConfluentAccountCreateRequest", ""), contentType);
|
|
84
|
+
requestContext.setBody(serializedBody);
|
|
85
|
+
// Apply auth methods
|
|
86
|
+
(0, configuration_1.applySecurityAuthentication)(_config, requestContext, [
|
|
87
|
+
"apiKeyAuth",
|
|
88
|
+
"appKeyAuth",
|
|
89
|
+
]);
|
|
90
|
+
return [2 /*return*/, requestContext];
|
|
91
|
+
});
|
|
92
|
+
});
|
|
93
|
+
};
|
|
94
|
+
ConfluentCloudApiRequestFactory.prototype.createConfluentResource = function (accountId, body, _options) {
|
|
95
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
96
|
+
var _config, localVarPath, requestContext, contentType, serializedBody;
|
|
97
|
+
return __generator(this, function (_a) {
|
|
98
|
+
_config = _options || this.configuration;
|
|
99
|
+
// verify required parameter 'accountId' is not null or undefined
|
|
100
|
+
if (accountId === null || accountId === undefined) {
|
|
101
|
+
throw new baseapi_1.RequiredError("Required parameter accountId was null or undefined when calling createConfluentResource.");
|
|
102
|
+
}
|
|
103
|
+
// verify required parameter 'body' is not null or undefined
|
|
104
|
+
if (body === null || body === undefined) {
|
|
105
|
+
throw new baseapi_1.RequiredError("Required parameter body was null or undefined when calling createConfluentResource.");
|
|
106
|
+
}
|
|
107
|
+
localVarPath = "/api/v2/integrations/confluent-cloud/accounts/{account_id}/resources".replace("{" + "account_id" + "}", encodeURIComponent(String(accountId)));
|
|
108
|
+
requestContext = (0, configuration_1.getServer)(_config, "v2.ConfluentCloudApi.createConfluentResource").makeRequestContext(localVarPath, http_1.HttpMethod.POST);
|
|
109
|
+
requestContext.setHeaderParam("Accept", "application/json");
|
|
110
|
+
requestContext.setHttpConfig(_config.httpConfig);
|
|
111
|
+
contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([
|
|
112
|
+
"application/json",
|
|
113
|
+
]);
|
|
114
|
+
requestContext.setHeaderParam("Content-Type", contentType);
|
|
115
|
+
serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(body, "ConfluentResourceRequest", ""), contentType);
|
|
116
|
+
requestContext.setBody(serializedBody);
|
|
117
|
+
// Apply auth methods
|
|
118
|
+
(0, configuration_1.applySecurityAuthentication)(_config, requestContext, [
|
|
119
|
+
"apiKeyAuth",
|
|
120
|
+
"appKeyAuth",
|
|
121
|
+
]);
|
|
122
|
+
return [2 /*return*/, requestContext];
|
|
123
|
+
});
|
|
124
|
+
});
|
|
125
|
+
};
|
|
126
|
+
ConfluentCloudApiRequestFactory.prototype.deleteConfluentAccount = function (accountId, _options) {
|
|
127
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
128
|
+
var _config, localVarPath, requestContext;
|
|
129
|
+
return __generator(this, function (_a) {
|
|
130
|
+
_config = _options || this.configuration;
|
|
131
|
+
// verify required parameter 'accountId' is not null or undefined
|
|
132
|
+
if (accountId === null || accountId === undefined) {
|
|
133
|
+
throw new baseapi_1.RequiredError("Required parameter accountId was null or undefined when calling deleteConfluentAccount.");
|
|
134
|
+
}
|
|
135
|
+
localVarPath = "/api/v2/integrations/confluent-cloud/accounts/{account_id}".replace("{" + "account_id" + "}", encodeURIComponent(String(accountId)));
|
|
136
|
+
requestContext = (0, configuration_1.getServer)(_config, "v2.ConfluentCloudApi.deleteConfluentAccount").makeRequestContext(localVarPath, http_1.HttpMethod.DELETE);
|
|
137
|
+
requestContext.setHeaderParam("Accept", "*/*");
|
|
138
|
+
requestContext.setHttpConfig(_config.httpConfig);
|
|
139
|
+
// Apply auth methods
|
|
140
|
+
(0, configuration_1.applySecurityAuthentication)(_config, requestContext, [
|
|
141
|
+
"apiKeyAuth",
|
|
142
|
+
"appKeyAuth",
|
|
143
|
+
]);
|
|
144
|
+
return [2 /*return*/, requestContext];
|
|
145
|
+
});
|
|
146
|
+
});
|
|
147
|
+
};
|
|
148
|
+
ConfluentCloudApiRequestFactory.prototype.deleteConfluentResource = function (accountId, resourceId, _options) {
|
|
149
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
150
|
+
var _config, localVarPath, requestContext;
|
|
151
|
+
return __generator(this, function (_a) {
|
|
152
|
+
_config = _options || this.configuration;
|
|
153
|
+
// verify required parameter 'accountId' is not null or undefined
|
|
154
|
+
if (accountId === null || accountId === undefined) {
|
|
155
|
+
throw new baseapi_1.RequiredError("Required parameter accountId was null or undefined when calling deleteConfluentResource.");
|
|
156
|
+
}
|
|
157
|
+
// verify required parameter 'resourceId' is not null or undefined
|
|
158
|
+
if (resourceId === null || resourceId === undefined) {
|
|
159
|
+
throw new baseapi_1.RequiredError("Required parameter resourceId was null or undefined when calling deleteConfluentResource.");
|
|
160
|
+
}
|
|
161
|
+
localVarPath = "/api/v2/integrations/confluent-cloud/accounts/{account_id}/resources/{resource_id}"
|
|
162
|
+
.replace("{" + "account_id" + "}", encodeURIComponent(String(accountId)))
|
|
163
|
+
.replace("{" + "resource_id" + "}", encodeURIComponent(String(resourceId)));
|
|
164
|
+
requestContext = (0, configuration_1.getServer)(_config, "v2.ConfluentCloudApi.deleteConfluentResource").makeRequestContext(localVarPath, http_1.HttpMethod.DELETE);
|
|
165
|
+
requestContext.setHeaderParam("Accept", "*/*");
|
|
166
|
+
requestContext.setHttpConfig(_config.httpConfig);
|
|
167
|
+
// Apply auth methods
|
|
168
|
+
(0, configuration_1.applySecurityAuthentication)(_config, requestContext, [
|
|
169
|
+
"apiKeyAuth",
|
|
170
|
+
"appKeyAuth",
|
|
171
|
+
]);
|
|
172
|
+
return [2 /*return*/, requestContext];
|
|
173
|
+
});
|
|
174
|
+
});
|
|
175
|
+
};
|
|
176
|
+
ConfluentCloudApiRequestFactory.prototype.getConfluentAccount = function (accountId, _options) {
|
|
177
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
178
|
+
var _config, localVarPath, requestContext;
|
|
179
|
+
return __generator(this, function (_a) {
|
|
180
|
+
_config = _options || this.configuration;
|
|
181
|
+
// verify required parameter 'accountId' is not null or undefined
|
|
182
|
+
if (accountId === null || accountId === undefined) {
|
|
183
|
+
throw new baseapi_1.RequiredError("Required parameter accountId was null or undefined when calling getConfluentAccount.");
|
|
184
|
+
}
|
|
185
|
+
localVarPath = "/api/v2/integrations/confluent-cloud/accounts/{account_id}".replace("{" + "account_id" + "}", encodeURIComponent(String(accountId)));
|
|
186
|
+
requestContext = (0, configuration_1.getServer)(_config, "v2.ConfluentCloudApi.getConfluentAccount").makeRequestContext(localVarPath, http_1.HttpMethod.GET);
|
|
187
|
+
requestContext.setHeaderParam("Accept", "application/json");
|
|
188
|
+
requestContext.setHttpConfig(_config.httpConfig);
|
|
189
|
+
// Apply auth methods
|
|
190
|
+
(0, configuration_1.applySecurityAuthentication)(_config, requestContext, [
|
|
191
|
+
"apiKeyAuth",
|
|
192
|
+
"appKeyAuth",
|
|
193
|
+
]);
|
|
194
|
+
return [2 /*return*/, requestContext];
|
|
195
|
+
});
|
|
196
|
+
});
|
|
197
|
+
};
|
|
198
|
+
ConfluentCloudApiRequestFactory.prototype.getConfluentResource = function (accountId, resourceId, _options) {
|
|
199
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
200
|
+
var _config, localVarPath, requestContext;
|
|
201
|
+
return __generator(this, function (_a) {
|
|
202
|
+
_config = _options || this.configuration;
|
|
203
|
+
// verify required parameter 'accountId' is not null or undefined
|
|
204
|
+
if (accountId === null || accountId === undefined) {
|
|
205
|
+
throw new baseapi_1.RequiredError("Required parameter accountId was null or undefined when calling getConfluentResource.");
|
|
206
|
+
}
|
|
207
|
+
// verify required parameter 'resourceId' is not null or undefined
|
|
208
|
+
if (resourceId === null || resourceId === undefined) {
|
|
209
|
+
throw new baseapi_1.RequiredError("Required parameter resourceId was null or undefined when calling getConfluentResource.");
|
|
210
|
+
}
|
|
211
|
+
localVarPath = "/api/v2/integrations/confluent-cloud/accounts/{account_id}/resources/{resource_id}"
|
|
212
|
+
.replace("{" + "account_id" + "}", encodeURIComponent(String(accountId)))
|
|
213
|
+
.replace("{" + "resource_id" + "}", encodeURIComponent(String(resourceId)));
|
|
214
|
+
requestContext = (0, configuration_1.getServer)(_config, "v2.ConfluentCloudApi.getConfluentResource").makeRequestContext(localVarPath, http_1.HttpMethod.GET);
|
|
215
|
+
requestContext.setHeaderParam("Accept", "application/json");
|
|
216
|
+
requestContext.setHttpConfig(_config.httpConfig);
|
|
217
|
+
// Apply auth methods
|
|
218
|
+
(0, configuration_1.applySecurityAuthentication)(_config, requestContext, [
|
|
219
|
+
"apiKeyAuth",
|
|
220
|
+
"appKeyAuth",
|
|
221
|
+
]);
|
|
222
|
+
return [2 /*return*/, requestContext];
|
|
223
|
+
});
|
|
224
|
+
});
|
|
225
|
+
};
|
|
226
|
+
ConfluentCloudApiRequestFactory.prototype.listConfluentAccount = function (_options) {
|
|
227
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
228
|
+
var _config, localVarPath, requestContext;
|
|
229
|
+
return __generator(this, function (_a) {
|
|
230
|
+
_config = _options || this.configuration;
|
|
231
|
+
localVarPath = "/api/v2/integrations/confluent-cloud/accounts";
|
|
232
|
+
requestContext = (0, configuration_1.getServer)(_config, "v2.ConfluentCloudApi.listConfluentAccount").makeRequestContext(localVarPath, http_1.HttpMethod.GET);
|
|
233
|
+
requestContext.setHeaderParam("Accept", "application/json");
|
|
234
|
+
requestContext.setHttpConfig(_config.httpConfig);
|
|
235
|
+
// Apply auth methods
|
|
236
|
+
(0, configuration_1.applySecurityAuthentication)(_config, requestContext, [
|
|
237
|
+
"apiKeyAuth",
|
|
238
|
+
"appKeyAuth",
|
|
239
|
+
]);
|
|
240
|
+
return [2 /*return*/, requestContext];
|
|
241
|
+
});
|
|
242
|
+
});
|
|
243
|
+
};
|
|
244
|
+
ConfluentCloudApiRequestFactory.prototype.listConfluentResource = function (accountId, _options) {
|
|
245
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
246
|
+
var _config, localVarPath, requestContext;
|
|
247
|
+
return __generator(this, function (_a) {
|
|
248
|
+
_config = _options || this.configuration;
|
|
249
|
+
// verify required parameter 'accountId' is not null or undefined
|
|
250
|
+
if (accountId === null || accountId === undefined) {
|
|
251
|
+
throw new baseapi_1.RequiredError("Required parameter accountId was null or undefined when calling listConfluentResource.");
|
|
252
|
+
}
|
|
253
|
+
localVarPath = "/api/v2/integrations/confluent-cloud/accounts/{account_id}/resources".replace("{" + "account_id" + "}", encodeURIComponent(String(accountId)));
|
|
254
|
+
requestContext = (0, configuration_1.getServer)(_config, "v2.ConfluentCloudApi.listConfluentResource").makeRequestContext(localVarPath, http_1.HttpMethod.GET);
|
|
255
|
+
requestContext.setHeaderParam("Accept", "application/json");
|
|
256
|
+
requestContext.setHttpConfig(_config.httpConfig);
|
|
257
|
+
// Apply auth methods
|
|
258
|
+
(0, configuration_1.applySecurityAuthentication)(_config, requestContext, [
|
|
259
|
+
"apiKeyAuth",
|
|
260
|
+
"appKeyAuth",
|
|
261
|
+
]);
|
|
262
|
+
return [2 /*return*/, requestContext];
|
|
263
|
+
});
|
|
264
|
+
});
|
|
265
|
+
};
|
|
266
|
+
ConfluentCloudApiRequestFactory.prototype.updateConfluentAccount = function (accountId, body, _options) {
|
|
267
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
268
|
+
var _config, localVarPath, requestContext, contentType, serializedBody;
|
|
269
|
+
return __generator(this, function (_a) {
|
|
270
|
+
_config = _options || this.configuration;
|
|
271
|
+
// verify required parameter 'accountId' is not null or undefined
|
|
272
|
+
if (accountId === null || accountId === undefined) {
|
|
273
|
+
throw new baseapi_1.RequiredError("Required parameter accountId was null or undefined when calling updateConfluentAccount.");
|
|
274
|
+
}
|
|
275
|
+
// verify required parameter 'body' is not null or undefined
|
|
276
|
+
if (body === null || body === undefined) {
|
|
277
|
+
throw new baseapi_1.RequiredError("Required parameter body was null or undefined when calling updateConfluentAccount.");
|
|
278
|
+
}
|
|
279
|
+
localVarPath = "/api/v2/integrations/confluent-cloud/accounts/{account_id}".replace("{" + "account_id" + "}", encodeURIComponent(String(accountId)));
|
|
280
|
+
requestContext = (0, configuration_1.getServer)(_config, "v2.ConfluentCloudApi.updateConfluentAccount").makeRequestContext(localVarPath, http_1.HttpMethod.PATCH);
|
|
281
|
+
requestContext.setHeaderParam("Accept", "application/json");
|
|
282
|
+
requestContext.setHttpConfig(_config.httpConfig);
|
|
283
|
+
contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([
|
|
284
|
+
"application/json",
|
|
285
|
+
]);
|
|
286
|
+
requestContext.setHeaderParam("Content-Type", contentType);
|
|
287
|
+
serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(body, "ConfluentAccountUpdateRequest", ""), contentType);
|
|
288
|
+
requestContext.setBody(serializedBody);
|
|
289
|
+
// Apply auth methods
|
|
290
|
+
(0, configuration_1.applySecurityAuthentication)(_config, requestContext, [
|
|
291
|
+
"apiKeyAuth",
|
|
292
|
+
"appKeyAuth",
|
|
293
|
+
]);
|
|
294
|
+
return [2 /*return*/, requestContext];
|
|
295
|
+
});
|
|
296
|
+
});
|
|
297
|
+
};
|
|
298
|
+
ConfluentCloudApiRequestFactory.prototype.updateConfluentResource = function (accountId, resourceId, body, _options) {
|
|
299
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
300
|
+
var _config, localVarPath, requestContext, contentType, serializedBody;
|
|
301
|
+
return __generator(this, function (_a) {
|
|
302
|
+
_config = _options || this.configuration;
|
|
303
|
+
// verify required parameter 'accountId' is not null or undefined
|
|
304
|
+
if (accountId === null || accountId === undefined) {
|
|
305
|
+
throw new baseapi_1.RequiredError("Required parameter accountId was null or undefined when calling updateConfluentResource.");
|
|
306
|
+
}
|
|
307
|
+
// verify required parameter 'resourceId' is not null or undefined
|
|
308
|
+
if (resourceId === null || resourceId === undefined) {
|
|
309
|
+
throw new baseapi_1.RequiredError("Required parameter resourceId was null or undefined when calling updateConfluentResource.");
|
|
310
|
+
}
|
|
311
|
+
// verify required parameter 'body' is not null or undefined
|
|
312
|
+
if (body === null || body === undefined) {
|
|
313
|
+
throw new baseapi_1.RequiredError("Required parameter body was null or undefined when calling updateConfluentResource.");
|
|
314
|
+
}
|
|
315
|
+
localVarPath = "/api/v2/integrations/confluent-cloud/accounts/{account_id}/resources/{resource_id}"
|
|
316
|
+
.replace("{" + "account_id" + "}", encodeURIComponent(String(accountId)))
|
|
317
|
+
.replace("{" + "resource_id" + "}", encodeURIComponent(String(resourceId)));
|
|
318
|
+
requestContext = (0, configuration_1.getServer)(_config, "v2.ConfluentCloudApi.updateConfluentResource").makeRequestContext(localVarPath, http_1.HttpMethod.PATCH);
|
|
319
|
+
requestContext.setHeaderParam("Accept", "application/json");
|
|
320
|
+
requestContext.setHttpConfig(_config.httpConfig);
|
|
321
|
+
contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([
|
|
322
|
+
"application/json",
|
|
323
|
+
]);
|
|
324
|
+
requestContext.setHeaderParam("Content-Type", contentType);
|
|
325
|
+
serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(body, "ConfluentResourceRequest", ""), contentType);
|
|
326
|
+
requestContext.setBody(serializedBody);
|
|
327
|
+
// Apply auth methods
|
|
328
|
+
(0, configuration_1.applySecurityAuthentication)(_config, requestContext, [
|
|
329
|
+
"apiKeyAuth",
|
|
330
|
+
"appKeyAuth",
|
|
331
|
+
]);
|
|
332
|
+
return [2 /*return*/, requestContext];
|
|
333
|
+
});
|
|
334
|
+
});
|
|
335
|
+
};
|
|
336
|
+
return ConfluentCloudApiRequestFactory;
|
|
337
|
+
}(baseapi_1.BaseAPIRequestFactory));
|
|
338
|
+
exports.ConfluentCloudApiRequestFactory = ConfluentCloudApiRequestFactory;
|
|
339
|
+
var ConfluentCloudApiResponseProcessor = /** @class */ (function () {
|
|
340
|
+
function ConfluentCloudApiResponseProcessor() {
|
|
341
|
+
}
|
|
342
|
+
/**
|
|
343
|
+
* Unwraps the actual response sent by the server from the response context and deserializes the response content
|
|
344
|
+
* to the expected objects
|
|
345
|
+
*
|
|
346
|
+
* @params response Response returned by the server for a request to createConfluentAccount
|
|
347
|
+
* @throws ApiException if the response code was not in [200, 299]
|
|
348
|
+
*/
|
|
349
|
+
ConfluentCloudApiResponseProcessor.prototype.createConfluentAccount = function (response) {
|
|
350
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
351
|
+
var contentType, body_1, _a, _b, _c, _d, bodyText, _e, _f, body_2, body_3, _g, _h, _j, _k, body;
|
|
352
|
+
return __generator(this, function (_l) {
|
|
353
|
+
switch (_l.label) {
|
|
354
|
+
case 0:
|
|
355
|
+
contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
356
|
+
if (!(response.httpStatusCode == 201)) return [3 /*break*/, 2];
|
|
357
|
+
_b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
358
|
+
_d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
|
|
359
|
+
return [4 /*yield*/, response.body.text()];
|
|
360
|
+
case 1:
|
|
361
|
+
body_1 = _b.apply(_a, [_d.apply(_c, [_l.sent(), contentType]),
|
|
362
|
+
"ConfluentAccountResponse"]);
|
|
363
|
+
return [2 /*return*/, body_1];
|
|
364
|
+
case 2:
|
|
365
|
+
if (!(response.httpStatusCode == 400 ||
|
|
366
|
+
response.httpStatusCode == 403 ||
|
|
367
|
+
response.httpStatusCode == 404 ||
|
|
368
|
+
response.httpStatusCode == 429)) return [3 /*break*/, 4];
|
|
369
|
+
_f = (_e = ObjectSerializer_1.ObjectSerializer).parse;
|
|
370
|
+
return [4 /*yield*/, response.body.text()];
|
|
371
|
+
case 3:
|
|
372
|
+
bodyText = _f.apply(_e, [_l.sent(), contentType]);
|
|
373
|
+
try {
|
|
374
|
+
body_2 = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse");
|
|
375
|
+
}
|
|
376
|
+
catch (error) {
|
|
377
|
+
logger_1.logger.info("Got error deserializing error: ".concat(error));
|
|
378
|
+
throw new exception_1.ApiException(response.httpStatusCode, bodyText);
|
|
379
|
+
}
|
|
380
|
+
throw new exception_1.ApiException(response.httpStatusCode, body_2);
|
|
381
|
+
case 4:
|
|
382
|
+
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3 /*break*/, 6];
|
|
383
|
+
_h = (_g = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
384
|
+
_k = (_j = ObjectSerializer_1.ObjectSerializer).parse;
|
|
385
|
+
return [4 /*yield*/, response.body.text()];
|
|
386
|
+
case 5:
|
|
387
|
+
body_3 = _h.apply(_g, [_k.apply(_j, [_l.sent(), contentType]),
|
|
388
|
+
"ConfluentAccountResponse",
|
|
389
|
+
""]);
|
|
390
|
+
return [2 /*return*/, body_3];
|
|
391
|
+
case 6: return [4 /*yield*/, response.body.text()];
|
|
392
|
+
case 7:
|
|
393
|
+
body = (_l.sent()) || "";
|
|
394
|
+
throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"');
|
|
395
|
+
}
|
|
396
|
+
});
|
|
397
|
+
});
|
|
398
|
+
};
|
|
399
|
+
/**
|
|
400
|
+
* Unwraps the actual response sent by the server from the response context and deserializes the response content
|
|
401
|
+
* to the expected objects
|
|
402
|
+
*
|
|
403
|
+
* @params response Response returned by the server for a request to createConfluentResource
|
|
404
|
+
* @throws ApiException if the response code was not in [200, 299]
|
|
405
|
+
*/
|
|
406
|
+
ConfluentCloudApiResponseProcessor.prototype.createConfluentResource = function (response) {
|
|
407
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
408
|
+
var contentType, body_4, _a, _b, _c, _d, bodyText, _e, _f, body_5, body_6, _g, _h, _j, _k, body;
|
|
409
|
+
return __generator(this, function (_l) {
|
|
410
|
+
switch (_l.label) {
|
|
411
|
+
case 0:
|
|
412
|
+
contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
413
|
+
if (!(response.httpStatusCode == 201)) return [3 /*break*/, 2];
|
|
414
|
+
_b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
415
|
+
_d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
|
|
416
|
+
return [4 /*yield*/, response.body.text()];
|
|
417
|
+
case 1:
|
|
418
|
+
body_4 = _b.apply(_a, [_d.apply(_c, [_l.sent(), contentType]),
|
|
419
|
+
"ConfluentResourceResponse"]);
|
|
420
|
+
return [2 /*return*/, body_4];
|
|
421
|
+
case 2:
|
|
422
|
+
if (!(response.httpStatusCode == 400 ||
|
|
423
|
+
response.httpStatusCode == 403 ||
|
|
424
|
+
response.httpStatusCode == 404 ||
|
|
425
|
+
response.httpStatusCode == 429)) return [3 /*break*/, 4];
|
|
426
|
+
_f = (_e = ObjectSerializer_1.ObjectSerializer).parse;
|
|
427
|
+
return [4 /*yield*/, response.body.text()];
|
|
428
|
+
case 3:
|
|
429
|
+
bodyText = _f.apply(_e, [_l.sent(), contentType]);
|
|
430
|
+
try {
|
|
431
|
+
body_5 = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse");
|
|
432
|
+
}
|
|
433
|
+
catch (error) {
|
|
434
|
+
logger_1.logger.info("Got error deserializing error: ".concat(error));
|
|
435
|
+
throw new exception_1.ApiException(response.httpStatusCode, bodyText);
|
|
436
|
+
}
|
|
437
|
+
throw new exception_1.ApiException(response.httpStatusCode, body_5);
|
|
438
|
+
case 4:
|
|
439
|
+
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3 /*break*/, 6];
|
|
440
|
+
_h = (_g = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
441
|
+
_k = (_j = ObjectSerializer_1.ObjectSerializer).parse;
|
|
442
|
+
return [4 /*yield*/, response.body.text()];
|
|
443
|
+
case 5:
|
|
444
|
+
body_6 = _h.apply(_g, [_k.apply(_j, [_l.sent(), contentType]),
|
|
445
|
+
"ConfluentResourceResponse",
|
|
446
|
+
""]);
|
|
447
|
+
return [2 /*return*/, body_6];
|
|
448
|
+
case 6: return [4 /*yield*/, response.body.text()];
|
|
449
|
+
case 7:
|
|
450
|
+
body = (_l.sent()) || "";
|
|
451
|
+
throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"');
|
|
452
|
+
}
|
|
453
|
+
});
|
|
454
|
+
});
|
|
455
|
+
};
|
|
456
|
+
/**
|
|
457
|
+
* Unwraps the actual response sent by the server from the response context and deserializes the response content
|
|
458
|
+
* to the expected objects
|
|
459
|
+
*
|
|
460
|
+
* @params response Response returned by the server for a request to deleteConfluentAccount
|
|
461
|
+
* @throws ApiException if the response code was not in [200, 299]
|
|
462
|
+
*/
|
|
463
|
+
ConfluentCloudApiResponseProcessor.prototype.deleteConfluentAccount = function (response) {
|
|
464
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
465
|
+
var contentType, bodyText, _a, _b, body_7, body_8, _c, _d, _e, _f, body;
|
|
466
|
+
return __generator(this, function (_g) {
|
|
467
|
+
switch (_g.label) {
|
|
468
|
+
case 0:
|
|
469
|
+
contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
470
|
+
if (response.httpStatusCode == 204) {
|
|
471
|
+
return [2 /*return*/];
|
|
472
|
+
}
|
|
473
|
+
if (!(response.httpStatusCode == 400 ||
|
|
474
|
+
response.httpStatusCode == 403 ||
|
|
475
|
+
response.httpStatusCode == 404 ||
|
|
476
|
+
response.httpStatusCode == 429)) return [3 /*break*/, 2];
|
|
477
|
+
_b = (_a = ObjectSerializer_1.ObjectSerializer).parse;
|
|
478
|
+
return [4 /*yield*/, response.body.text()];
|
|
479
|
+
case 1:
|
|
480
|
+
bodyText = _b.apply(_a, [_g.sent(), contentType]);
|
|
481
|
+
try {
|
|
482
|
+
body_7 = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse");
|
|
483
|
+
}
|
|
484
|
+
catch (error) {
|
|
485
|
+
logger_1.logger.info("Got error deserializing error: ".concat(error));
|
|
486
|
+
throw new exception_1.ApiException(response.httpStatusCode, bodyText);
|
|
487
|
+
}
|
|
488
|
+
throw new exception_1.ApiException(response.httpStatusCode, body_7);
|
|
489
|
+
case 2:
|
|
490
|
+
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3 /*break*/, 4];
|
|
491
|
+
_d = (_c = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
492
|
+
_f = (_e = ObjectSerializer_1.ObjectSerializer).parse;
|
|
493
|
+
return [4 /*yield*/, response.body.text()];
|
|
494
|
+
case 3:
|
|
495
|
+
body_8 = _d.apply(_c, [_f.apply(_e, [_g.sent(), contentType]),
|
|
496
|
+
"void",
|
|
497
|
+
""]);
|
|
498
|
+
return [2 /*return*/, body_8];
|
|
499
|
+
case 4: return [4 /*yield*/, response.body.text()];
|
|
500
|
+
case 5:
|
|
501
|
+
body = (_g.sent()) || "";
|
|
502
|
+
throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"');
|
|
503
|
+
}
|
|
504
|
+
});
|
|
505
|
+
});
|
|
506
|
+
};
|
|
507
|
+
/**
|
|
508
|
+
* Unwraps the actual response sent by the server from the response context and deserializes the response content
|
|
509
|
+
* to the expected objects
|
|
510
|
+
*
|
|
511
|
+
* @params response Response returned by the server for a request to deleteConfluentResource
|
|
512
|
+
* @throws ApiException if the response code was not in [200, 299]
|
|
513
|
+
*/
|
|
514
|
+
ConfluentCloudApiResponseProcessor.prototype.deleteConfluentResource = function (response) {
|
|
515
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
516
|
+
var contentType, bodyText, _a, _b, body_9, body_10, _c, _d, _e, _f, body;
|
|
517
|
+
return __generator(this, function (_g) {
|
|
518
|
+
switch (_g.label) {
|
|
519
|
+
case 0:
|
|
520
|
+
contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
521
|
+
if (response.httpStatusCode == 204) {
|
|
522
|
+
return [2 /*return*/];
|
|
523
|
+
}
|
|
524
|
+
if (!(response.httpStatusCode == 400 ||
|
|
525
|
+
response.httpStatusCode == 403 ||
|
|
526
|
+
response.httpStatusCode == 404 ||
|
|
527
|
+
response.httpStatusCode == 429)) return [3 /*break*/, 2];
|
|
528
|
+
_b = (_a = ObjectSerializer_1.ObjectSerializer).parse;
|
|
529
|
+
return [4 /*yield*/, response.body.text()];
|
|
530
|
+
case 1:
|
|
531
|
+
bodyText = _b.apply(_a, [_g.sent(), contentType]);
|
|
532
|
+
try {
|
|
533
|
+
body_9 = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse");
|
|
534
|
+
}
|
|
535
|
+
catch (error) {
|
|
536
|
+
logger_1.logger.info("Got error deserializing error: ".concat(error));
|
|
537
|
+
throw new exception_1.ApiException(response.httpStatusCode, bodyText);
|
|
538
|
+
}
|
|
539
|
+
throw new exception_1.ApiException(response.httpStatusCode, body_9);
|
|
540
|
+
case 2:
|
|
541
|
+
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3 /*break*/, 4];
|
|
542
|
+
_d = (_c = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
543
|
+
_f = (_e = ObjectSerializer_1.ObjectSerializer).parse;
|
|
544
|
+
return [4 /*yield*/, response.body.text()];
|
|
545
|
+
case 3:
|
|
546
|
+
body_10 = _d.apply(_c, [_f.apply(_e, [_g.sent(), contentType]),
|
|
547
|
+
"void",
|
|
548
|
+
""]);
|
|
549
|
+
return [2 /*return*/, body_10];
|
|
550
|
+
case 4: return [4 /*yield*/, response.body.text()];
|
|
551
|
+
case 5:
|
|
552
|
+
body = (_g.sent()) || "";
|
|
553
|
+
throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"');
|
|
554
|
+
}
|
|
555
|
+
});
|
|
556
|
+
});
|
|
557
|
+
};
|
|
558
|
+
/**
|
|
559
|
+
* Unwraps the actual response sent by the server from the response context and deserializes the response content
|
|
560
|
+
* to the expected objects
|
|
561
|
+
*
|
|
562
|
+
* @params response Response returned by the server for a request to getConfluentAccount
|
|
563
|
+
* @throws ApiException if the response code was not in [200, 299]
|
|
564
|
+
*/
|
|
565
|
+
ConfluentCloudApiResponseProcessor.prototype.getConfluentAccount = function (response) {
|
|
566
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
567
|
+
var contentType, body_11, _a, _b, _c, _d, bodyText, _e, _f, body_12, body_13, _g, _h, _j, _k, body;
|
|
568
|
+
return __generator(this, function (_l) {
|
|
569
|
+
switch (_l.label) {
|
|
570
|
+
case 0:
|
|
571
|
+
contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
572
|
+
if (!(response.httpStatusCode == 200)) return [3 /*break*/, 2];
|
|
573
|
+
_b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
574
|
+
_d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
|
|
575
|
+
return [4 /*yield*/, response.body.text()];
|
|
576
|
+
case 1:
|
|
577
|
+
body_11 = _b.apply(_a, [_d.apply(_c, [_l.sent(), contentType]),
|
|
578
|
+
"ConfluentAccountResponse"]);
|
|
579
|
+
return [2 /*return*/, body_11];
|
|
580
|
+
case 2:
|
|
581
|
+
if (!(response.httpStatusCode == 400 ||
|
|
582
|
+
response.httpStatusCode == 403 ||
|
|
583
|
+
response.httpStatusCode == 404 ||
|
|
584
|
+
response.httpStatusCode == 429)) return [3 /*break*/, 4];
|
|
585
|
+
_f = (_e = ObjectSerializer_1.ObjectSerializer).parse;
|
|
586
|
+
return [4 /*yield*/, response.body.text()];
|
|
587
|
+
case 3:
|
|
588
|
+
bodyText = _f.apply(_e, [_l.sent(), contentType]);
|
|
589
|
+
try {
|
|
590
|
+
body_12 = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse");
|
|
591
|
+
}
|
|
592
|
+
catch (error) {
|
|
593
|
+
logger_1.logger.info("Got error deserializing error: ".concat(error));
|
|
594
|
+
throw new exception_1.ApiException(response.httpStatusCode, bodyText);
|
|
595
|
+
}
|
|
596
|
+
throw new exception_1.ApiException(response.httpStatusCode, body_12);
|
|
597
|
+
case 4:
|
|
598
|
+
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3 /*break*/, 6];
|
|
599
|
+
_h = (_g = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
600
|
+
_k = (_j = ObjectSerializer_1.ObjectSerializer).parse;
|
|
601
|
+
return [4 /*yield*/, response.body.text()];
|
|
602
|
+
case 5:
|
|
603
|
+
body_13 = _h.apply(_g, [_k.apply(_j, [_l.sent(), contentType]),
|
|
604
|
+
"ConfluentAccountResponse",
|
|
605
|
+
""]);
|
|
606
|
+
return [2 /*return*/, body_13];
|
|
607
|
+
case 6: return [4 /*yield*/, response.body.text()];
|
|
608
|
+
case 7:
|
|
609
|
+
body = (_l.sent()) || "";
|
|
610
|
+
throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"');
|
|
611
|
+
}
|
|
612
|
+
});
|
|
613
|
+
});
|
|
614
|
+
};
|
|
615
|
+
/**
|
|
616
|
+
* Unwraps the actual response sent by the server from the response context and deserializes the response content
|
|
617
|
+
* to the expected objects
|
|
618
|
+
*
|
|
619
|
+
* @params response Response returned by the server for a request to getConfluentResource
|
|
620
|
+
* @throws ApiException if the response code was not in [200, 299]
|
|
621
|
+
*/
|
|
622
|
+
ConfluentCloudApiResponseProcessor.prototype.getConfluentResource = function (response) {
|
|
623
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
624
|
+
var contentType, body_14, _a, _b, _c, _d, bodyText, _e, _f, body_15, body_16, _g, _h, _j, _k, body;
|
|
625
|
+
return __generator(this, function (_l) {
|
|
626
|
+
switch (_l.label) {
|
|
627
|
+
case 0:
|
|
628
|
+
contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
629
|
+
if (!(response.httpStatusCode == 200)) return [3 /*break*/, 2];
|
|
630
|
+
_b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
631
|
+
_d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
|
|
632
|
+
return [4 /*yield*/, response.body.text()];
|
|
633
|
+
case 1:
|
|
634
|
+
body_14 = _b.apply(_a, [_d.apply(_c, [_l.sent(), contentType]),
|
|
635
|
+
"ConfluentResourceResponse"]);
|
|
636
|
+
return [2 /*return*/, body_14];
|
|
637
|
+
case 2:
|
|
638
|
+
if (!(response.httpStatusCode == 400 ||
|
|
639
|
+
response.httpStatusCode == 403 ||
|
|
640
|
+
response.httpStatusCode == 404 ||
|
|
641
|
+
response.httpStatusCode == 429)) return [3 /*break*/, 4];
|
|
642
|
+
_f = (_e = ObjectSerializer_1.ObjectSerializer).parse;
|
|
643
|
+
return [4 /*yield*/, response.body.text()];
|
|
644
|
+
case 3:
|
|
645
|
+
bodyText = _f.apply(_e, [_l.sent(), contentType]);
|
|
646
|
+
try {
|
|
647
|
+
body_15 = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse");
|
|
648
|
+
}
|
|
649
|
+
catch (error) {
|
|
650
|
+
logger_1.logger.info("Got error deserializing error: ".concat(error));
|
|
651
|
+
throw new exception_1.ApiException(response.httpStatusCode, bodyText);
|
|
652
|
+
}
|
|
653
|
+
throw new exception_1.ApiException(response.httpStatusCode, body_15);
|
|
654
|
+
case 4:
|
|
655
|
+
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3 /*break*/, 6];
|
|
656
|
+
_h = (_g = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
657
|
+
_k = (_j = ObjectSerializer_1.ObjectSerializer).parse;
|
|
658
|
+
return [4 /*yield*/, response.body.text()];
|
|
659
|
+
case 5:
|
|
660
|
+
body_16 = _h.apply(_g, [_k.apply(_j, [_l.sent(), contentType]),
|
|
661
|
+
"ConfluentResourceResponse",
|
|
662
|
+
""]);
|
|
663
|
+
return [2 /*return*/, body_16];
|
|
664
|
+
case 6: return [4 /*yield*/, response.body.text()];
|
|
665
|
+
case 7:
|
|
666
|
+
body = (_l.sent()) || "";
|
|
667
|
+
throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"');
|
|
668
|
+
}
|
|
669
|
+
});
|
|
670
|
+
});
|
|
671
|
+
};
|
|
672
|
+
/**
|
|
673
|
+
* Unwraps the actual response sent by the server from the response context and deserializes the response content
|
|
674
|
+
* to the expected objects
|
|
675
|
+
*
|
|
676
|
+
* @params response Response returned by the server for a request to listConfluentAccount
|
|
677
|
+
* @throws ApiException if the response code was not in [200, 299]
|
|
678
|
+
*/
|
|
679
|
+
ConfluentCloudApiResponseProcessor.prototype.listConfluentAccount = function (response) {
|
|
680
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
681
|
+
var contentType, body_17, _a, _b, _c, _d, bodyText, _e, _f, body_18, body_19, _g, _h, _j, _k, body;
|
|
682
|
+
return __generator(this, function (_l) {
|
|
683
|
+
switch (_l.label) {
|
|
684
|
+
case 0:
|
|
685
|
+
contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
686
|
+
if (!(response.httpStatusCode == 200)) return [3 /*break*/, 2];
|
|
687
|
+
_b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
688
|
+
_d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
|
|
689
|
+
return [4 /*yield*/, response.body.text()];
|
|
690
|
+
case 1:
|
|
691
|
+
body_17 = _b.apply(_a, [_d.apply(_c, [_l.sent(), contentType]),
|
|
692
|
+
"ConfluentAccountsResponse"]);
|
|
693
|
+
return [2 /*return*/, body_17];
|
|
694
|
+
case 2:
|
|
695
|
+
if (!(response.httpStatusCode == 400 ||
|
|
696
|
+
response.httpStatusCode == 403 ||
|
|
697
|
+
response.httpStatusCode == 404 ||
|
|
698
|
+
response.httpStatusCode == 429)) return [3 /*break*/, 4];
|
|
699
|
+
_f = (_e = ObjectSerializer_1.ObjectSerializer).parse;
|
|
700
|
+
return [4 /*yield*/, response.body.text()];
|
|
701
|
+
case 3:
|
|
702
|
+
bodyText = _f.apply(_e, [_l.sent(), contentType]);
|
|
703
|
+
try {
|
|
704
|
+
body_18 = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse");
|
|
705
|
+
}
|
|
706
|
+
catch (error) {
|
|
707
|
+
logger_1.logger.info("Got error deserializing error: ".concat(error));
|
|
708
|
+
throw new exception_1.ApiException(response.httpStatusCode, bodyText);
|
|
709
|
+
}
|
|
710
|
+
throw new exception_1.ApiException(response.httpStatusCode, body_18);
|
|
711
|
+
case 4:
|
|
712
|
+
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3 /*break*/, 6];
|
|
713
|
+
_h = (_g = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
714
|
+
_k = (_j = ObjectSerializer_1.ObjectSerializer).parse;
|
|
715
|
+
return [4 /*yield*/, response.body.text()];
|
|
716
|
+
case 5:
|
|
717
|
+
body_19 = _h.apply(_g, [_k.apply(_j, [_l.sent(), contentType]),
|
|
718
|
+
"ConfluentAccountsResponse",
|
|
719
|
+
""]);
|
|
720
|
+
return [2 /*return*/, body_19];
|
|
721
|
+
case 6: return [4 /*yield*/, response.body.text()];
|
|
722
|
+
case 7:
|
|
723
|
+
body = (_l.sent()) || "";
|
|
724
|
+
throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"');
|
|
725
|
+
}
|
|
726
|
+
});
|
|
727
|
+
});
|
|
728
|
+
};
|
|
729
|
+
/**
|
|
730
|
+
* Unwraps the actual response sent by the server from the response context and deserializes the response content
|
|
731
|
+
* to the expected objects
|
|
732
|
+
*
|
|
733
|
+
* @params response Response returned by the server for a request to listConfluentResource
|
|
734
|
+
* @throws ApiException if the response code was not in [200, 299]
|
|
735
|
+
*/
|
|
736
|
+
ConfluentCloudApiResponseProcessor.prototype.listConfluentResource = function (response) {
|
|
737
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
738
|
+
var contentType, body_20, _a, _b, _c, _d, bodyText, _e, _f, body_21, body_22, _g, _h, _j, _k, body;
|
|
739
|
+
return __generator(this, function (_l) {
|
|
740
|
+
switch (_l.label) {
|
|
741
|
+
case 0:
|
|
742
|
+
contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
743
|
+
if (!(response.httpStatusCode == 200)) return [3 /*break*/, 2];
|
|
744
|
+
_b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
745
|
+
_d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
|
|
746
|
+
return [4 /*yield*/, response.body.text()];
|
|
747
|
+
case 1:
|
|
748
|
+
body_20 = _b.apply(_a, [_d.apply(_c, [_l.sent(), contentType]),
|
|
749
|
+
"ConfluentResourcesResponse"]);
|
|
750
|
+
return [2 /*return*/, body_20];
|
|
751
|
+
case 2:
|
|
752
|
+
if (!(response.httpStatusCode == 400 ||
|
|
753
|
+
response.httpStatusCode == 403 ||
|
|
754
|
+
response.httpStatusCode == 404 ||
|
|
755
|
+
response.httpStatusCode == 429)) return [3 /*break*/, 4];
|
|
756
|
+
_f = (_e = ObjectSerializer_1.ObjectSerializer).parse;
|
|
757
|
+
return [4 /*yield*/, response.body.text()];
|
|
758
|
+
case 3:
|
|
759
|
+
bodyText = _f.apply(_e, [_l.sent(), contentType]);
|
|
760
|
+
try {
|
|
761
|
+
body_21 = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse");
|
|
762
|
+
}
|
|
763
|
+
catch (error) {
|
|
764
|
+
logger_1.logger.info("Got error deserializing error: ".concat(error));
|
|
765
|
+
throw new exception_1.ApiException(response.httpStatusCode, bodyText);
|
|
766
|
+
}
|
|
767
|
+
throw new exception_1.ApiException(response.httpStatusCode, body_21);
|
|
768
|
+
case 4:
|
|
769
|
+
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3 /*break*/, 6];
|
|
770
|
+
_h = (_g = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
771
|
+
_k = (_j = ObjectSerializer_1.ObjectSerializer).parse;
|
|
772
|
+
return [4 /*yield*/, response.body.text()];
|
|
773
|
+
case 5:
|
|
774
|
+
body_22 = _h.apply(_g, [_k.apply(_j, [_l.sent(), contentType]),
|
|
775
|
+
"ConfluentResourcesResponse",
|
|
776
|
+
""]);
|
|
777
|
+
return [2 /*return*/, body_22];
|
|
778
|
+
case 6: return [4 /*yield*/, response.body.text()];
|
|
779
|
+
case 7:
|
|
780
|
+
body = (_l.sent()) || "";
|
|
781
|
+
throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"');
|
|
782
|
+
}
|
|
783
|
+
});
|
|
784
|
+
});
|
|
785
|
+
};
|
|
786
|
+
/**
|
|
787
|
+
* Unwraps the actual response sent by the server from the response context and deserializes the response content
|
|
788
|
+
* to the expected objects
|
|
789
|
+
*
|
|
790
|
+
* @params response Response returned by the server for a request to updateConfluentAccount
|
|
791
|
+
* @throws ApiException if the response code was not in [200, 299]
|
|
792
|
+
*/
|
|
793
|
+
ConfluentCloudApiResponseProcessor.prototype.updateConfluentAccount = function (response) {
|
|
794
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
795
|
+
var contentType, body_23, _a, _b, _c, _d, bodyText, _e, _f, body_24, body_25, _g, _h, _j, _k, body;
|
|
796
|
+
return __generator(this, function (_l) {
|
|
797
|
+
switch (_l.label) {
|
|
798
|
+
case 0:
|
|
799
|
+
contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
800
|
+
if (!(response.httpStatusCode == 200)) return [3 /*break*/, 2];
|
|
801
|
+
_b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
802
|
+
_d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
|
|
803
|
+
return [4 /*yield*/, response.body.text()];
|
|
804
|
+
case 1:
|
|
805
|
+
body_23 = _b.apply(_a, [_d.apply(_c, [_l.sent(), contentType]),
|
|
806
|
+
"ConfluentAccountResponse"]);
|
|
807
|
+
return [2 /*return*/, body_23];
|
|
808
|
+
case 2:
|
|
809
|
+
if (!(response.httpStatusCode == 400 ||
|
|
810
|
+
response.httpStatusCode == 403 ||
|
|
811
|
+
response.httpStatusCode == 404 ||
|
|
812
|
+
response.httpStatusCode == 429)) return [3 /*break*/, 4];
|
|
813
|
+
_f = (_e = ObjectSerializer_1.ObjectSerializer).parse;
|
|
814
|
+
return [4 /*yield*/, response.body.text()];
|
|
815
|
+
case 3:
|
|
816
|
+
bodyText = _f.apply(_e, [_l.sent(), contentType]);
|
|
817
|
+
try {
|
|
818
|
+
body_24 = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse");
|
|
819
|
+
}
|
|
820
|
+
catch (error) {
|
|
821
|
+
logger_1.logger.info("Got error deserializing error: ".concat(error));
|
|
822
|
+
throw new exception_1.ApiException(response.httpStatusCode, bodyText);
|
|
823
|
+
}
|
|
824
|
+
throw new exception_1.ApiException(response.httpStatusCode, body_24);
|
|
825
|
+
case 4:
|
|
826
|
+
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3 /*break*/, 6];
|
|
827
|
+
_h = (_g = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
828
|
+
_k = (_j = ObjectSerializer_1.ObjectSerializer).parse;
|
|
829
|
+
return [4 /*yield*/, response.body.text()];
|
|
830
|
+
case 5:
|
|
831
|
+
body_25 = _h.apply(_g, [_k.apply(_j, [_l.sent(), contentType]),
|
|
832
|
+
"ConfluentAccountResponse",
|
|
833
|
+
""]);
|
|
834
|
+
return [2 /*return*/, body_25];
|
|
835
|
+
case 6: return [4 /*yield*/, response.body.text()];
|
|
836
|
+
case 7:
|
|
837
|
+
body = (_l.sent()) || "";
|
|
838
|
+
throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"');
|
|
839
|
+
}
|
|
840
|
+
});
|
|
841
|
+
});
|
|
842
|
+
};
|
|
843
|
+
/**
|
|
844
|
+
* Unwraps the actual response sent by the server from the response context and deserializes the response content
|
|
845
|
+
* to the expected objects
|
|
846
|
+
*
|
|
847
|
+
* @params response Response returned by the server for a request to updateConfluentResource
|
|
848
|
+
* @throws ApiException if the response code was not in [200, 299]
|
|
849
|
+
*/
|
|
850
|
+
ConfluentCloudApiResponseProcessor.prototype.updateConfluentResource = function (response) {
|
|
851
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
852
|
+
var contentType, body_26, _a, _b, _c, _d, bodyText, _e, _f, body_27, body_28, _g, _h, _j, _k, body;
|
|
853
|
+
return __generator(this, function (_l) {
|
|
854
|
+
switch (_l.label) {
|
|
855
|
+
case 0:
|
|
856
|
+
contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
857
|
+
if (!(response.httpStatusCode == 200)) return [3 /*break*/, 2];
|
|
858
|
+
_b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
859
|
+
_d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
|
|
860
|
+
return [4 /*yield*/, response.body.text()];
|
|
861
|
+
case 1:
|
|
862
|
+
body_26 = _b.apply(_a, [_d.apply(_c, [_l.sent(), contentType]),
|
|
863
|
+
"ConfluentResourceResponse"]);
|
|
864
|
+
return [2 /*return*/, body_26];
|
|
865
|
+
case 2:
|
|
866
|
+
if (!(response.httpStatusCode == 400 ||
|
|
867
|
+
response.httpStatusCode == 403 ||
|
|
868
|
+
response.httpStatusCode == 404 ||
|
|
869
|
+
response.httpStatusCode == 429)) return [3 /*break*/, 4];
|
|
870
|
+
_f = (_e = ObjectSerializer_1.ObjectSerializer).parse;
|
|
871
|
+
return [4 /*yield*/, response.body.text()];
|
|
872
|
+
case 3:
|
|
873
|
+
bodyText = _f.apply(_e, [_l.sent(), contentType]);
|
|
874
|
+
try {
|
|
875
|
+
body_27 = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse");
|
|
876
|
+
}
|
|
877
|
+
catch (error) {
|
|
878
|
+
logger_1.logger.info("Got error deserializing error: ".concat(error));
|
|
879
|
+
throw new exception_1.ApiException(response.httpStatusCode, bodyText);
|
|
880
|
+
}
|
|
881
|
+
throw new exception_1.ApiException(response.httpStatusCode, body_27);
|
|
882
|
+
case 4:
|
|
883
|
+
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3 /*break*/, 6];
|
|
884
|
+
_h = (_g = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
885
|
+
_k = (_j = ObjectSerializer_1.ObjectSerializer).parse;
|
|
886
|
+
return [4 /*yield*/, response.body.text()];
|
|
887
|
+
case 5:
|
|
888
|
+
body_28 = _h.apply(_g, [_k.apply(_j, [_l.sent(), contentType]),
|
|
889
|
+
"ConfluentResourceResponse",
|
|
890
|
+
""]);
|
|
891
|
+
return [2 /*return*/, body_28];
|
|
892
|
+
case 6: return [4 /*yield*/, response.body.text()];
|
|
893
|
+
case 7:
|
|
894
|
+
body = (_l.sent()) || "";
|
|
895
|
+
throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"');
|
|
896
|
+
}
|
|
897
|
+
});
|
|
898
|
+
});
|
|
899
|
+
};
|
|
900
|
+
return ConfluentCloudApiResponseProcessor;
|
|
901
|
+
}());
|
|
902
|
+
exports.ConfluentCloudApiResponseProcessor = ConfluentCloudApiResponseProcessor;
|
|
903
|
+
var ConfluentCloudApi = /** @class */ (function () {
|
|
904
|
+
function ConfluentCloudApi(configuration, requestFactory, responseProcessor) {
|
|
905
|
+
this.configuration = configuration;
|
|
906
|
+
this.requestFactory =
|
|
907
|
+
requestFactory || new ConfluentCloudApiRequestFactory(configuration);
|
|
908
|
+
this.responseProcessor =
|
|
909
|
+
responseProcessor || new ConfluentCloudApiResponseProcessor();
|
|
910
|
+
}
|
|
911
|
+
/**
|
|
912
|
+
* Create a Confluent account.
|
|
913
|
+
* @param param The request object
|
|
914
|
+
*/
|
|
915
|
+
ConfluentCloudApi.prototype.createConfluentAccount = function (param, options) {
|
|
916
|
+
var _this = this;
|
|
917
|
+
var requestContextPromise = this.requestFactory.createConfluentAccount(param.body, options);
|
|
918
|
+
return requestContextPromise.then(function (requestContext) {
|
|
919
|
+
return _this.configuration.httpApi
|
|
920
|
+
.send(requestContext)
|
|
921
|
+
.then(function (responseContext) {
|
|
922
|
+
return _this.responseProcessor.createConfluentAccount(responseContext);
|
|
923
|
+
});
|
|
924
|
+
});
|
|
925
|
+
};
|
|
926
|
+
/**
|
|
927
|
+
* Create a Confluent resource for the account associated with the provided ID.
|
|
928
|
+
* @param param The request object
|
|
929
|
+
*/
|
|
930
|
+
ConfluentCloudApi.prototype.createConfluentResource = function (param, options) {
|
|
931
|
+
var _this = this;
|
|
932
|
+
var requestContextPromise = this.requestFactory.createConfluentResource(param.accountId, param.body, options);
|
|
933
|
+
return requestContextPromise.then(function (requestContext) {
|
|
934
|
+
return _this.configuration.httpApi
|
|
935
|
+
.send(requestContext)
|
|
936
|
+
.then(function (responseContext) {
|
|
937
|
+
return _this.responseProcessor.createConfluentResource(responseContext);
|
|
938
|
+
});
|
|
939
|
+
});
|
|
940
|
+
};
|
|
941
|
+
/**
|
|
942
|
+
* Delete a Confluent account with the provided account ID.
|
|
943
|
+
* @param param The request object
|
|
944
|
+
*/
|
|
945
|
+
ConfluentCloudApi.prototype.deleteConfluentAccount = function (param, options) {
|
|
946
|
+
var _this = this;
|
|
947
|
+
var requestContextPromise = this.requestFactory.deleteConfluentAccount(param.accountId, options);
|
|
948
|
+
return requestContextPromise.then(function (requestContext) {
|
|
949
|
+
return _this.configuration.httpApi
|
|
950
|
+
.send(requestContext)
|
|
951
|
+
.then(function (responseContext) {
|
|
952
|
+
return _this.responseProcessor.deleteConfluentAccount(responseContext);
|
|
953
|
+
});
|
|
954
|
+
});
|
|
955
|
+
};
|
|
956
|
+
/**
|
|
957
|
+
* Delete a Confluent resource with the provided resource id for the account associated with the provided account ID.
|
|
958
|
+
* @param param The request object
|
|
959
|
+
*/
|
|
960
|
+
ConfluentCloudApi.prototype.deleteConfluentResource = function (param, options) {
|
|
961
|
+
var _this = this;
|
|
962
|
+
var requestContextPromise = this.requestFactory.deleteConfluentResource(param.accountId, param.resourceId, options);
|
|
963
|
+
return requestContextPromise.then(function (requestContext) {
|
|
964
|
+
return _this.configuration.httpApi
|
|
965
|
+
.send(requestContext)
|
|
966
|
+
.then(function (responseContext) {
|
|
967
|
+
return _this.responseProcessor.deleteConfluentResource(responseContext);
|
|
968
|
+
});
|
|
969
|
+
});
|
|
970
|
+
};
|
|
971
|
+
/**
|
|
972
|
+
* Get the Confluent account with the provided account ID.
|
|
973
|
+
* @param param The request object
|
|
974
|
+
*/
|
|
975
|
+
ConfluentCloudApi.prototype.getConfluentAccount = function (param, options) {
|
|
976
|
+
var _this = this;
|
|
977
|
+
var requestContextPromise = this.requestFactory.getConfluentAccount(param.accountId, options);
|
|
978
|
+
return requestContextPromise.then(function (requestContext) {
|
|
979
|
+
return _this.configuration.httpApi
|
|
980
|
+
.send(requestContext)
|
|
981
|
+
.then(function (responseContext) {
|
|
982
|
+
return _this.responseProcessor.getConfluentAccount(responseContext);
|
|
983
|
+
});
|
|
984
|
+
});
|
|
985
|
+
};
|
|
986
|
+
/**
|
|
987
|
+
* Get a Confluent resource with the provided resource id for the account associated with the provided account ID.
|
|
988
|
+
* @param param The request object
|
|
989
|
+
*/
|
|
990
|
+
ConfluentCloudApi.prototype.getConfluentResource = function (param, options) {
|
|
991
|
+
var _this = this;
|
|
992
|
+
var requestContextPromise = this.requestFactory.getConfluentResource(param.accountId, param.resourceId, options);
|
|
993
|
+
return requestContextPromise.then(function (requestContext) {
|
|
994
|
+
return _this.configuration.httpApi
|
|
995
|
+
.send(requestContext)
|
|
996
|
+
.then(function (responseContext) {
|
|
997
|
+
return _this.responseProcessor.getConfluentResource(responseContext);
|
|
998
|
+
});
|
|
999
|
+
});
|
|
1000
|
+
};
|
|
1001
|
+
/**
|
|
1002
|
+
* List Confluent accounts.
|
|
1003
|
+
* @param param The request object
|
|
1004
|
+
*/
|
|
1005
|
+
ConfluentCloudApi.prototype.listConfluentAccount = function (options) {
|
|
1006
|
+
var _this = this;
|
|
1007
|
+
var requestContextPromise = this.requestFactory.listConfluentAccount(options);
|
|
1008
|
+
return requestContextPromise.then(function (requestContext) {
|
|
1009
|
+
return _this.configuration.httpApi
|
|
1010
|
+
.send(requestContext)
|
|
1011
|
+
.then(function (responseContext) {
|
|
1012
|
+
return _this.responseProcessor.listConfluentAccount(responseContext);
|
|
1013
|
+
});
|
|
1014
|
+
});
|
|
1015
|
+
};
|
|
1016
|
+
/**
|
|
1017
|
+
* Get a Confluent resource for the account associated with the provided ID.
|
|
1018
|
+
* @param param The request object
|
|
1019
|
+
*/
|
|
1020
|
+
ConfluentCloudApi.prototype.listConfluentResource = function (param, options) {
|
|
1021
|
+
var _this = this;
|
|
1022
|
+
var requestContextPromise = this.requestFactory.listConfluentResource(param.accountId, options);
|
|
1023
|
+
return requestContextPromise.then(function (requestContext) {
|
|
1024
|
+
return _this.configuration.httpApi
|
|
1025
|
+
.send(requestContext)
|
|
1026
|
+
.then(function (responseContext) {
|
|
1027
|
+
return _this.responseProcessor.listConfluentResource(responseContext);
|
|
1028
|
+
});
|
|
1029
|
+
});
|
|
1030
|
+
};
|
|
1031
|
+
/**
|
|
1032
|
+
* Update the Confluent account with the provided account ID.
|
|
1033
|
+
* @param param The request object
|
|
1034
|
+
*/
|
|
1035
|
+
ConfluentCloudApi.prototype.updateConfluentAccount = function (param, options) {
|
|
1036
|
+
var _this = this;
|
|
1037
|
+
var requestContextPromise = this.requestFactory.updateConfluentAccount(param.accountId, param.body, options);
|
|
1038
|
+
return requestContextPromise.then(function (requestContext) {
|
|
1039
|
+
return _this.configuration.httpApi
|
|
1040
|
+
.send(requestContext)
|
|
1041
|
+
.then(function (responseContext) {
|
|
1042
|
+
return _this.responseProcessor.updateConfluentAccount(responseContext);
|
|
1043
|
+
});
|
|
1044
|
+
});
|
|
1045
|
+
};
|
|
1046
|
+
/**
|
|
1047
|
+
* Update a Confluent resource with the provided resource id for the account associated with the provided account ID.
|
|
1048
|
+
* @param param The request object
|
|
1049
|
+
*/
|
|
1050
|
+
ConfluentCloudApi.prototype.updateConfluentResource = function (param, options) {
|
|
1051
|
+
var _this = this;
|
|
1052
|
+
var requestContextPromise = this.requestFactory.updateConfluentResource(param.accountId, param.resourceId, param.body, options);
|
|
1053
|
+
return requestContextPromise.then(function (requestContext) {
|
|
1054
|
+
return _this.configuration.httpApi
|
|
1055
|
+
.send(requestContext)
|
|
1056
|
+
.then(function (responseContext) {
|
|
1057
|
+
return _this.responseProcessor.updateConfluentResource(responseContext);
|
|
1058
|
+
});
|
|
1059
|
+
});
|
|
1060
|
+
};
|
|
1061
|
+
return ConfluentCloudApi;
|
|
1062
|
+
}());
|
|
1063
|
+
exports.ConfluentCloudApi = ConfluentCloudApi;
|
|
1064
|
+
//# sourceMappingURL=ConfluentCloudApi.js.map
|