@alicloud/cms20240330 2.3.0 → 3.1.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/dist/client.d.ts +522 -0
- package/dist/client.js +1648 -95
- package/dist/client.js.map +1 -1
- package/dist/models/AlertRuleCondition.d.ts +2 -0
- package/dist/models/AlertRuleCondition.js +4 -0
- package/dist/models/AlertRuleCondition.js.map +1 -1
- package/dist/models/AlertRuleQuery.d.ts +1 -0
- package/dist/models/AlertRuleQuery.js +5 -0
- package/dist/models/AlertRuleQuery.js.map +1 -1
- package/dist/models/CreateAddonReleaseRequest.d.ts +66 -0
- package/dist/models/CreateAddonReleaseRequest.js +80 -0
- package/dist/models/CreateAddonReleaseRequest.js.map +1 -0
- package/dist/models/CreateAddonReleaseResponse.d.ts +19 -0
- package/dist/models/CreateAddonReleaseResponse.js +69 -0
- package/dist/models/CreateAddonReleaseResponse.js.map +1 -0
- package/dist/models/CreateAddonReleaseResponseBody.d.ts +186 -0
- package/dist/models/CreateAddonReleaseResponseBody.js +164 -0
- package/dist/models/CreateAddonReleaseResponseBody.js.map +1 -0
- package/dist/models/CreateAggTaskGroupRequest.d.ts +131 -0
- package/dist/models/CreateAggTaskGroupRequest.js +114 -0
- package/dist/models/CreateAggTaskGroupRequest.js.map +1 -0
- package/dist/models/CreateAggTaskGroupResponse.d.ts +19 -0
- package/dist/models/CreateAggTaskGroupResponse.js +69 -0
- package/dist/models/CreateAggTaskGroupResponse.js.map +1 -0
- package/dist/models/CreateAggTaskGroupResponseBody.d.ts +43 -0
- package/dist/models/CreateAggTaskGroupResponseBody.js +68 -0
- package/dist/models/CreateAggTaskGroupResponseBody.js.map +1 -0
- package/dist/models/CreateIntegrationPolicyRequest.d.ts +92 -0
- package/dist/models/CreateIntegrationPolicyRequest.js +120 -0
- package/dist/models/CreateIntegrationPolicyRequest.js.map +1 -0
- package/dist/models/CreateIntegrationPolicyResponse.d.ts +19 -0
- package/dist/models/CreateIntegrationPolicyResponse.js +69 -0
- package/dist/models/CreateIntegrationPolicyResponse.js.map +1 -0
- package/dist/models/CreateIntegrationPolicyResponseBody.d.ts +67 -0
- package/dist/models/CreateIntegrationPolicyResponseBody.js +96 -0
- package/dist/models/CreateIntegrationPolicyResponseBody.js.map +1 -0
- package/dist/models/CreatePrometheusViewRequest.d.ts +114 -0
- package/dist/models/CreatePrometheusViewRequest.js +126 -0
- package/dist/models/CreatePrometheusViewRequest.js.map +1 -0
- package/dist/models/CreatePrometheusViewResponse.d.ts +19 -0
- package/dist/models/CreatePrometheusViewResponse.js +69 -0
- package/dist/models/CreatePrometheusViewResponse.js.map +1 -0
- package/dist/models/CreatePrometheusViewResponseBody.d.ts +26 -0
- package/dist/models/CreatePrometheusViewResponseBody.js +60 -0
- package/dist/models/CreatePrometheusViewResponseBody.js.map +1 -0
- package/dist/models/CreatePrometheusVirtualInstanceRequest.d.ts +21 -0
- package/dist/models/CreatePrometheusVirtualInstanceRequest.js +58 -0
- package/dist/models/CreatePrometheusVirtualInstanceRequest.js.map +1 -0
- package/dist/models/CreatePrometheusVirtualInstanceResponse.d.ts +19 -0
- package/dist/models/CreatePrometheusVirtualInstanceResponse.js +69 -0
- package/dist/models/CreatePrometheusVirtualInstanceResponse.js.map +1 -0
- package/dist/models/CreatePrometheusVirtualInstanceResponseBody.d.ts +64 -0
- package/dist/models/CreatePrometheusVirtualInstanceResponseBody.js +92 -0
- package/dist/models/CreatePrometheusVirtualInstanceResponseBody.js.map +1 -0
- package/dist/models/CreateUmodelRequest.d.ts +0 -24
- package/dist/models/CreateUmodelRequest.js +1 -32
- package/dist/models/CreateUmodelRequest.js.map +1 -1
- package/dist/models/DeleteAddonReleaseRequest.d.ts +28 -0
- package/dist/models/DeleteAddonReleaseRequest.js +62 -0
- package/dist/models/DeleteAddonReleaseRequest.js.map +1 -0
- package/dist/models/DeleteAddonReleaseResponse.d.ts +19 -0
- package/dist/models/DeleteAddonReleaseResponse.js +69 -0
- package/dist/models/DeleteAddonReleaseResponse.js.map +1 -0
- package/dist/models/DeleteAddonReleaseResponseBody.d.ts +18 -0
- package/dist/models/DeleteAddonReleaseResponseBody.js +58 -0
- package/dist/models/DeleteAddonReleaseResponseBody.js.map +1 -0
- package/dist/models/DeleteAggTaskGroupResponse.d.ts +19 -0
- package/dist/models/DeleteAggTaskGroupResponse.js +69 -0
- package/dist/models/DeleteAggTaskGroupResponse.js.map +1 -0
- package/dist/models/DeleteAggTaskGroupResponseBody.d.ts +18 -0
- package/dist/models/DeleteAggTaskGroupResponseBody.js +58 -0
- package/dist/models/DeleteAggTaskGroupResponseBody.js.map +1 -0
- package/dist/models/DeleteIntegrationPolicyRequest.d.ts +18 -0
- package/dist/models/DeleteIntegrationPolicyRequest.js +58 -0
- package/dist/models/DeleteIntegrationPolicyRequest.js.map +1 -0
- package/dist/models/DeleteIntegrationPolicyResponse.d.ts +19 -0
- package/dist/models/DeleteIntegrationPolicyResponse.js +69 -0
- package/dist/models/DeleteIntegrationPolicyResponse.js.map +1 -0
- package/dist/models/DeleteIntegrationPolicyResponseBody.d.ts +21 -0
- package/dist/models/DeleteIntegrationPolicyResponseBody.js +58 -0
- package/dist/models/DeleteIntegrationPolicyResponseBody.js.map +1 -0
- package/dist/models/DeletePrometheusInstanceResponse.d.ts +19 -0
- package/dist/models/DeletePrometheusInstanceResponse.js +69 -0
- package/dist/models/DeletePrometheusInstanceResponse.js.map +1 -0
- package/dist/models/DeletePrometheusInstanceResponseBody.d.ts +21 -0
- package/dist/models/DeletePrometheusInstanceResponseBody.js +58 -0
- package/dist/models/DeletePrometheusInstanceResponseBody.js.map +1 -0
- package/dist/models/DeletePrometheusViewResponse.d.ts +19 -0
- package/dist/models/DeletePrometheusViewResponse.js +69 -0
- package/dist/models/DeletePrometheusViewResponse.js.map +1 -0
- package/dist/models/DeletePrometheusViewResponseBody.d.ts +21 -0
- package/dist/models/DeletePrometheusViewResponseBody.js +58 -0
- package/dist/models/DeletePrometheusViewResponseBody.js.map +1 -0
- package/dist/models/GetAddonReleaseResponse.d.ts +19 -0
- package/dist/models/GetAddonReleaseResponse.js +69 -0
- package/dist/models/GetAddonReleaseResponse.js.map +1 -0
- package/dist/models/GetAddonReleaseResponseBody.d.ts +194 -0
- package/dist/models/GetAddonReleaseResponseBody.js +166 -0
- package/dist/models/GetAddonReleaseResponseBody.js.map +1 -0
- package/dist/models/GetAggTaskGroupResponse.d.ts +19 -0
- package/dist/models/GetAggTaskGroupResponse.js +69 -0
- package/dist/models/GetAggTaskGroupResponse.js.map +1 -0
- package/dist/models/GetAggTaskGroupResponseBody.d.ts +165 -0
- package/dist/models/GetAggTaskGroupResponseBody.js +148 -0
- package/dist/models/GetAggTaskGroupResponseBody.js.map +1 -0
- package/dist/models/GetEntityStoreDataResponseBody.d.ts +34 -0
- package/dist/models/GetEntityStoreDataResponseBody.js +61 -1
- package/dist/models/GetEntityStoreDataResponseBody.js.map +1 -1
- package/dist/models/GetIntegrationPolicyResponse.d.ts +19 -0
- package/dist/models/GetIntegrationPolicyResponse.js +69 -0
- package/dist/models/GetIntegrationPolicyResponse.js.map +1 -0
- package/dist/models/GetIntegrationPolicyResponseBody.d.ts +336 -0
- package/dist/models/GetIntegrationPolicyResponseBody.js +401 -0
- package/dist/models/GetIntegrationPolicyResponseBody.js.map +1 -0
- package/dist/models/GetPrometheusInstanceRequest.d.ts +23 -0
- package/dist/models/GetPrometheusInstanceRequest.js +60 -0
- package/dist/models/GetPrometheusInstanceRequest.js.map +1 -0
- package/dist/models/GetPrometheusInstanceResponse.d.ts +19 -0
- package/dist/models/GetPrometheusInstanceResponse.js +69 -0
- package/dist/models/GetPrometheusInstanceResponse.js.map +1 -0
- package/dist/models/GetPrometheusInstanceResponseBody.d.ts +230 -0
- package/dist/models/GetPrometheusInstanceResponseBody.js +184 -0
- package/dist/models/GetPrometheusInstanceResponseBody.js.map +1 -0
- package/dist/models/GetPrometheusViewRequest.d.ts +23 -0
- package/dist/models/GetPrometheusViewRequest.js +60 -0
- package/dist/models/GetPrometheusViewRequest.js.map +1 -0
- package/dist/models/GetPrometheusViewResponse.d.ts +19 -0
- package/dist/models/GetPrometheusViewResponse.js +69 -0
- package/dist/models/GetPrometheusViewResponse.js.map +1 -0
- package/dist/models/GetPrometheusViewResponseBody.d.ts +206 -0
- package/dist/models/GetPrometheusViewResponseBody.js +187 -0
- package/dist/models/GetPrometheusViewResponseBody.js.map +1 -0
- package/dist/models/GetUmodelResponseBody.d.ts +0 -1
- package/dist/models/GetUmodelResponseBody.js +0 -5
- package/dist/models/GetUmodelResponseBody.js.map +1 -1
- package/dist/models/ListAddonReleasesRequest.d.ts +23 -0
- package/dist/models/ListAddonReleasesRequest.js +60 -0
- package/dist/models/ListAddonReleasesRequest.js.map +1 -0
- package/dist/models/ListAddonReleasesResponse.d.ts +19 -0
- package/dist/models/ListAddonReleasesResponse.js +69 -0
- package/dist/models/ListAddonReleasesResponse.js.map +1 -0
- package/dist/models/ListAddonReleasesResponseBody.d.ts +211 -0
- package/dist/models/ListAddonReleasesResponseBody.js +196 -0
- package/dist/models/ListAddonReleasesResponseBody.js.map +1 -0
- package/dist/models/ListAggTaskGroupsRequest.d.ts +71 -0
- package/dist/models/ListAggTaskGroupsRequest.js +96 -0
- package/dist/models/ListAggTaskGroupsRequest.js.map +1 -0
- package/dist/models/ListAggTaskGroupsResponse.d.ts +19 -0
- package/dist/models/ListAggTaskGroupsResponse.js +69 -0
- package/dist/models/ListAggTaskGroupsResponse.js.map +1 -0
- package/dist/models/ListAggTaskGroupsResponseBody.d.ts +159 -0
- package/dist/models/ListAggTaskGroupsResponseBody.js +148 -0
- package/dist/models/ListAggTaskGroupsResponseBody.js.map +1 -0
- package/dist/models/ListAggTaskGroupsShrinkRequest.d.ts +49 -0
- package/dist/models/ListAggTaskGroupsShrinkRequest.js +72 -0
- package/dist/models/ListAggTaskGroupsShrinkRequest.js.map +1 -0
- package/dist/models/ListIntegrationPolicyCustomScrapeJobRulesRequest.d.ts +24 -0
- package/dist/models/ListIntegrationPolicyCustomScrapeJobRulesRequest.js +62 -0
- package/dist/models/ListIntegrationPolicyCustomScrapeJobRulesRequest.js.map +1 -0
- package/dist/models/ListIntegrationPolicyCustomScrapeJobRulesResponse.d.ts +19 -0
- package/dist/models/ListIntegrationPolicyCustomScrapeJobRulesResponse.js +69 -0
- package/dist/models/ListIntegrationPolicyCustomScrapeJobRulesResponse.js.map +1 -0
- package/dist/models/ListIntegrationPolicyCustomScrapeJobRulesResponseBody.d.ts +139 -0
- package/dist/models/ListIntegrationPolicyCustomScrapeJobRulesResponseBody.js +143 -0
- package/dist/models/ListIntegrationPolicyCustomScrapeJobRulesResponseBody.js.map +1 -0
- package/dist/models/ListIntegrationPolicyPodMonitorsRequest.d.ts +28 -0
- package/dist/models/ListIntegrationPolicyPodMonitorsRequest.js +62 -0
- package/dist/models/ListIntegrationPolicyPodMonitorsRequest.js.map +1 -0
- package/dist/models/ListIntegrationPolicyPodMonitorsResponse.d.ts +19 -0
- package/dist/models/ListIntegrationPolicyPodMonitorsResponse.js +69 -0
- package/dist/models/ListIntegrationPolicyPodMonitorsResponse.js.map +1 -0
- package/dist/models/ListIntegrationPolicyPodMonitorsResponseBody.d.ts +123 -0
- package/dist/models/ListIntegrationPolicyPodMonitorsResponseBody.js +134 -0
- package/dist/models/ListIntegrationPolicyPodMonitorsResponseBody.js.map +1 -0
- package/dist/models/ListIntegrationPolicyStorageRequirementsRequest.d.ts +24 -0
- package/dist/models/ListIntegrationPolicyStorageRequirementsRequest.js +62 -0
- package/dist/models/ListIntegrationPolicyStorageRequirementsRequest.js.map +1 -0
- package/dist/models/ListIntegrationPolicyStorageRequirementsResponse.d.ts +19 -0
- package/dist/models/ListIntegrationPolicyStorageRequirementsResponse.js +69 -0
- package/dist/models/ListIntegrationPolicyStorageRequirementsResponse.js.map +1 -0
- package/dist/models/ListIntegrationPolicyStorageRequirementsResponseBody.d.ts +196 -0
- package/dist/models/ListIntegrationPolicyStorageRequirementsResponseBody.js +215 -0
- package/dist/models/ListIntegrationPolicyStorageRequirementsResponseBody.js.map +1 -0
- package/dist/models/ListPrometheusDashboardsRequest.d.ts +23 -0
- package/dist/models/ListPrometheusDashboardsRequest.js +60 -0
- package/dist/models/ListPrometheusDashboardsRequest.js.map +1 -0
- package/dist/models/ListPrometheusDashboardsResponse.d.ts +19 -0
- package/dist/models/ListPrometheusDashboardsResponse.js +69 -0
- package/dist/models/ListPrometheusDashboardsResponse.js.map +1 -0
- package/dist/models/ListPrometheusDashboardsResponseBody.d.ts +65 -0
- package/dist/models/ListPrometheusDashboardsResponseBody.js +97 -0
- package/dist/models/ListPrometheusDashboardsResponseBody.js.map +1 -0
- package/dist/models/ListPrometheusInstancesRequest.d.ts +97 -0
- package/dist/models/ListPrometheusInstancesRequest.js +98 -0
- package/dist/models/ListPrometheusInstancesRequest.js.map +1 -0
- package/dist/models/ListPrometheusInstancesResponse.d.ts +19 -0
- package/dist/models/ListPrometheusInstancesResponse.js +69 -0
- package/dist/models/ListPrometheusInstancesResponse.js.map +1 -0
- package/dist/models/ListPrometheusInstancesResponseBody.d.ts +146 -0
- package/dist/models/ListPrometheusInstancesResponseBody.js +145 -0
- package/dist/models/ListPrometheusInstancesResponseBody.js.map +1 -0
- package/dist/models/ListPrometheusInstancesShrinkRequest.d.ts +75 -0
- package/dist/models/ListPrometheusInstancesShrinkRequest.js +74 -0
- package/dist/models/ListPrometheusInstancesShrinkRequest.js.map +1 -0
- package/dist/models/ListPrometheusViewsRequest.d.ts +87 -0
- package/dist/models/ListPrometheusViewsRequest.js +100 -0
- package/dist/models/ListPrometheusViewsRequest.js.map +1 -0
- package/dist/models/ListPrometheusViewsResponse.d.ts +19 -0
- package/dist/models/ListPrometheusViewsResponse.js +69 -0
- package/dist/models/ListPrometheusViewsResponse.js.map +1 -0
- package/dist/models/ListPrometheusViewsResponseBody.d.ts +145 -0
- package/dist/models/ListPrometheusViewsResponseBody.js +140 -0
- package/dist/models/ListPrometheusViewsResponseBody.js.map +1 -0
- package/dist/models/ListPrometheusViewsShrinkRequest.d.ts +65 -0
- package/dist/models/ListPrometheusViewsShrinkRequest.js +76 -0
- package/dist/models/ListPrometheusViewsShrinkRequest.js.map +1 -0
- package/dist/models/ListPrometheusVirtualInstancesRequest.d.ts +18 -0
- package/dist/models/ListPrometheusVirtualInstancesRequest.js +58 -0
- package/dist/models/ListPrometheusVirtualInstancesRequest.js.map +1 -0
- package/dist/models/ListPrometheusVirtualInstancesResponse.d.ts +19 -0
- package/dist/models/ListPrometheusVirtualInstancesResponse.js +69 -0
- package/dist/models/ListPrometheusVirtualInstancesResponse.js.map +1 -0
- package/dist/models/ListPrometheusVirtualInstancesResponseBody.d.ts +64 -0
- package/dist/models/ListPrometheusVirtualInstancesResponseBody.js +92 -0
- package/dist/models/ListPrometheusVirtualInstancesResponseBody.js.map +1 -0
- package/dist/models/UpdateAddonReleaseRequest.d.ts +30 -0
- package/dist/models/UpdateAddonReleaseRequest.js +68 -0
- package/dist/models/UpdateAddonReleaseRequest.js.map +1 -0
- package/dist/models/UpdateAddonReleaseResponse.d.ts +19 -0
- package/dist/models/UpdateAddonReleaseResponse.js +69 -0
- package/dist/models/UpdateAddonReleaseResponse.js.map +1 -0
- package/dist/models/UpdateAddonReleaseResponseBody.d.ts +18 -0
- package/dist/models/UpdateAddonReleaseResponseBody.js +58 -0
- package/dist/models/UpdateAddonReleaseResponseBody.js.map +1 -0
- package/dist/models/UpdateAggTaskGroupRequest.d.ts +123 -0
- package/dist/models/UpdateAggTaskGroupRequest.js +112 -0
- package/dist/models/UpdateAggTaskGroupRequest.js.map +1 -0
- package/dist/models/UpdateAggTaskGroupResponse.d.ts +19 -0
- package/dist/models/UpdateAggTaskGroupResponse.js +69 -0
- package/dist/models/UpdateAggTaskGroupResponse.js.map +1 -0
- package/dist/models/UpdateAggTaskGroupResponseBody.d.ts +43 -0
- package/dist/models/UpdateAggTaskGroupResponseBody.js +68 -0
- package/dist/models/UpdateAggTaskGroupResponseBody.js.map +1 -0
- package/dist/models/UpdateAggTaskGroupStatusRequest.d.ts +21 -0
- package/dist/models/UpdateAggTaskGroupStatusRequest.js +58 -0
- package/dist/models/UpdateAggTaskGroupStatusRequest.js.map +1 -0
- package/dist/models/UpdateAggTaskGroupStatusResponse.d.ts +19 -0
- package/dist/models/UpdateAggTaskGroupStatusResponse.js +69 -0
- package/dist/models/UpdateAggTaskGroupStatusResponse.js.map +1 -0
- package/dist/models/UpdateAggTaskGroupStatusResponseBody.d.ts +43 -0
- package/dist/models/UpdateAggTaskGroupStatusResponseBody.js +68 -0
- package/dist/models/UpdateAggTaskGroupStatusResponseBody.js.map +1 -0
- package/dist/models/UpdateIntegrationPolicyRequest.d.ts +51 -0
- package/dist/models/UpdateIntegrationPolicyRequest.js +88 -0
- package/dist/models/UpdateIntegrationPolicyRequest.js.map +1 -0
- package/dist/models/UpdateIntegrationPolicyResponse.d.ts +19 -0
- package/dist/models/UpdateIntegrationPolicyResponse.js +69 -0
- package/dist/models/UpdateIntegrationPolicyResponse.js.map +1 -0
- package/dist/models/UpdateIntegrationPolicyResponseBody.d.ts +21 -0
- package/dist/models/UpdateIntegrationPolicyResponseBody.js +58 -0
- package/dist/models/UpdateIntegrationPolicyResponseBody.js.map +1 -0
- package/dist/models/UpdatePrometheusInstanceRequest.d.ts +71 -0
- package/dist/models/UpdatePrometheusInstanceRequest.js +78 -0
- package/dist/models/UpdatePrometheusInstanceRequest.js.map +1 -0
- package/dist/models/UpdatePrometheusInstanceResponse.d.ts +19 -0
- package/dist/models/UpdatePrometheusInstanceResponse.js +69 -0
- package/dist/models/UpdatePrometheusInstanceResponse.js.map +1 -0
- package/dist/models/UpdatePrometheusInstanceResponseBody.d.ts +26 -0
- package/dist/models/UpdatePrometheusInstanceResponseBody.js +60 -0
- package/dist/models/UpdatePrometheusInstanceResponseBody.js.map +1 -0
- package/dist/models/UpdatePrometheusViewRequest.d.ts +71 -0
- package/dist/models/UpdatePrometheusViewRequest.js +96 -0
- package/dist/models/UpdatePrometheusViewRequest.js.map +1 -0
- package/dist/models/UpdatePrometheusViewResponse.d.ts +19 -0
- package/dist/models/UpdatePrometheusViewResponse.js +69 -0
- package/dist/models/UpdatePrometheusViewResponse.js.map +1 -0
- package/dist/models/UpdatePrometheusViewResponseBody.d.ts +26 -0
- package/dist/models/UpdatePrometheusViewResponseBody.js +60 -0
- package/dist/models/UpdatePrometheusViewResponseBody.js.map +1 -0
- package/dist/models/UpdateUmodelRequest.d.ts +0 -24
- package/dist/models/UpdateUmodelRequest.js +1 -32
- package/dist/models/UpdateUmodelRequest.js.map +1 -1
- package/dist/models/model.d.ts +143 -2
- package/dist/models/model.js +299 -14
- package/dist/models/model.js.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +2120 -370
- package/src/models/AlertRuleCondition.ts +6 -0
- package/src/models/AlertRuleQuery.ts +6 -0
- package/src/models/CreateAddonReleaseRequest.ts +100 -0
- package/src/models/CreateAddonReleaseResponse.ts +40 -0
- package/src/models/CreateAddonReleaseResponseBody.ts +286 -0
- package/src/models/CreateAggTaskGroupRequest.ts +191 -0
- package/src/models/CreateAggTaskGroupResponse.ts +40 -0
- package/src/models/CreateAggTaskGroupResponseBody.ts +66 -0
- package/src/models/CreateIntegrationPolicyRequest.ts +149 -0
- package/src/models/CreateIntegrationPolicyResponse.ts +40 -0
- package/src/models/CreateIntegrationPolicyResponseBody.ts +109 -0
- package/src/models/CreatePrometheusViewRequest.ts +177 -0
- package/src/models/CreatePrometheusViewResponse.ts +40 -0
- package/src/models/CreatePrometheusViewResponseBody.ts +41 -0
- package/src/models/CreatePrometheusVirtualInstanceRequest.ts +34 -0
- package/src/models/CreatePrometheusVirtualInstanceResponse.ts +40 -0
- package/src/models/CreatePrometheusVirtualInstanceResponseBody.ts +102 -0
- package/src/models/CreateUmodelRequest.ts +0 -46
- package/src/models/DeleteAddonReleaseRequest.ts +45 -0
- package/src/models/DeleteAddonReleaseResponse.ts +40 -0
- package/src/models/DeleteAddonReleaseResponseBody.ts +31 -0
- package/src/models/DeleteAggTaskGroupResponse.ts +40 -0
- package/src/models/DeleteAggTaskGroupResponseBody.ts +31 -0
- package/src/models/DeleteIntegrationPolicyRequest.ts +31 -0
- package/src/models/DeleteIntegrationPolicyResponse.ts +40 -0
- package/src/models/DeleteIntegrationPolicyResponseBody.ts +34 -0
- package/src/models/DeletePrometheusInstanceResponse.ts +40 -0
- package/src/models/DeletePrometheusInstanceResponseBody.ts +34 -0
- package/src/models/DeletePrometheusViewResponse.ts +40 -0
- package/src/models/DeletePrometheusViewResponseBody.ts +34 -0
- package/src/models/GetAddonReleaseResponse.ts +40 -0
- package/src/models/GetAddonReleaseResponseBody.ts +296 -0
- package/src/models/GetAggTaskGroupResponse.ts +40 -0
- package/src/models/GetAggTaskGroupResponseBody.ts +250 -0
- package/src/models/GetEntityStoreDataResponseBody.ts +76 -0
- package/src/models/GetIntegrationPolicyResponse.ts +40 -0
- package/src/models/GetIntegrationPolicyResponseBody.ts +593 -0
- package/src/models/GetPrometheusInstanceRequest.ts +38 -0
- package/src/models/GetPrometheusInstanceResponse.ts +40 -0
- package/src/models/GetPrometheusInstanceResponseBody.ts +349 -0
- package/src/models/GetPrometheusViewRequest.ts +38 -0
- package/src/models/GetPrometheusViewResponse.ts +40 -0
- package/src/models/GetPrometheusViewResponseBody.ts +321 -0
- package/src/models/GetUmodelResponseBody.ts +0 -6
- package/src/models/ListAddonReleasesRequest.ts +38 -0
- package/src/models/ListAddonReleasesResponse.ts +40 -0
- package/src/models/ListAddonReleasesResponseBody.ts +334 -0
- package/src/models/ListAggTaskGroupsRequest.ts +113 -0
- package/src/models/ListAggTaskGroupsResponse.ts +40 -0
- package/src/models/ListAggTaskGroupsResponseBody.ts +244 -0
- package/src/models/ListAggTaskGroupsShrinkRequest.ts +76 -0
- package/src/models/ListIntegrationPolicyCustomScrapeJobRulesRequest.ts +41 -0
- package/src/models/ListIntegrationPolicyCustomScrapeJobRulesResponse.ts +40 -0
- package/src/models/ListIntegrationPolicyCustomScrapeJobRulesResponseBody.ts +219 -0
- package/src/models/ListIntegrationPolicyPodMonitorsRequest.ts +45 -0
- package/src/models/ListIntegrationPolicyPodMonitorsResponse.ts +40 -0
- package/src/models/ListIntegrationPolicyPodMonitorsResponseBody.ts +194 -0
- package/src/models/ListIntegrationPolicyStorageRequirementsRequest.ts +41 -0
- package/src/models/ListIntegrationPolicyStorageRequirementsResponse.ts +40 -0
- package/src/models/ListIntegrationPolicyStorageRequirementsResponseBody.ts +322 -0
- package/src/models/ListPrometheusDashboardsRequest.ts +38 -0
- package/src/models/ListPrometheusDashboardsResponse.ts +40 -0
- package/src/models/ListPrometheusDashboardsResponseBody.ts +108 -0
- package/src/models/ListPrometheusInstancesRequest.ts +141 -0
- package/src/models/ListPrometheusInstancesResponse.ts +40 -0
- package/src/models/ListPrometheusInstancesResponseBody.ts +228 -0
- package/src/models/ListPrometheusInstancesShrinkRequest.ts +104 -0
- package/src/models/ListPrometheusViewsRequest.ts +133 -0
- package/src/models/ListPrometheusViewsResponse.ts +40 -0
- package/src/models/ListPrometheusViewsResponseBody.ts +222 -0
- package/src/models/ListPrometheusViewsShrinkRequest.ts +96 -0
- package/src/models/ListPrometheusVirtualInstancesRequest.ts +31 -0
- package/src/models/ListPrometheusVirtualInstancesResponse.ts +40 -0
- package/src/models/ListPrometheusVirtualInstancesResponseBody.ts +102 -0
- package/src/models/UpdateAddonReleaseRequest.ts +52 -0
- package/src/models/UpdateAddonReleaseResponse.ts +40 -0
- package/src/models/UpdateAddonReleaseResponseBody.ts +31 -0
- package/src/models/UpdateAggTaskGroupRequest.ts +181 -0
- package/src/models/UpdateAggTaskGroupResponse.ts +40 -0
- package/src/models/UpdateAggTaskGroupResponseBody.ts +66 -0
- package/src/models/UpdateAggTaskGroupStatusRequest.ts +34 -0
- package/src/models/UpdateAggTaskGroupStatusResponse.ts +40 -0
- package/src/models/UpdateAggTaskGroupStatusResponseBody.ts +66 -0
- package/src/models/UpdateIntegrationPolicyRequest.ts +85 -0
- package/src/models/UpdateIntegrationPolicyResponse.ts +40 -0
- package/src/models/UpdateIntegrationPolicyResponseBody.ts +34 -0
- package/src/models/UpdatePrometheusInstanceRequest.ts +104 -0
- package/src/models/UpdatePrometheusInstanceResponse.ts +40 -0
- package/src/models/UpdatePrometheusInstanceResponseBody.ts +41 -0
- package/src/models/UpdatePrometheusViewRequest.ts +113 -0
- package/src/models/UpdatePrometheusViewResponse.ts +40 -0
- package/src/models/UpdatePrometheusViewResponseBody.ts +41 -0
- package/src/models/UpdateUmodelRequest.ts +0 -46
- package/src/models/model.ts +143 -2
package/src/client.ts
CHANGED
|
@@ -29,6 +29,198 @@ export default class Client extends OpenApi {
|
|
|
29
29
|
return OpenApiUtil.getEndpointRules(productId, regionId, endpointRule, network, suffix);
|
|
30
30
|
}
|
|
31
31
|
|
|
32
|
+
/**
|
|
33
|
+
* 安装接入组件,代表进行一次接入
|
|
34
|
+
*
|
|
35
|
+
* @param request - CreateAddonReleaseRequest
|
|
36
|
+
* @param headers - map
|
|
37
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
38
|
+
* @returns CreateAddonReleaseResponse
|
|
39
|
+
*/
|
|
40
|
+
async createAddonReleaseWithOptions(policyId: string, request: $_model.CreateAddonReleaseRequest, headers: {[key: string ]: string}, runtime: $dara.RuntimeOptions): Promise<$_model.CreateAddonReleaseResponse> {
|
|
41
|
+
request.validate();
|
|
42
|
+
let body : {[key: string ]: any} = { };
|
|
43
|
+
if (!$dara.isNull(request.addonName)) {
|
|
44
|
+
body["addonName"] = request.addonName;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
if (!$dara.isNull(request.aliyunLang)) {
|
|
48
|
+
body["aliyunLang"] = request.aliyunLang;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
if (!$dara.isNull(request.dryRun)) {
|
|
52
|
+
body["dryRun"] = request.dryRun;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
if (!$dara.isNull(request.entityRules)) {
|
|
56
|
+
body["entityRules"] = request.entityRules;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
if (!$dara.isNull(request.envType)) {
|
|
60
|
+
body["envType"] = request.envType;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
if (!$dara.isNull(request.parentAddonReleaseId)) {
|
|
64
|
+
body["parentAddonReleaseId"] = request.parentAddonReleaseId;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
if (!$dara.isNull(request.releaseName)) {
|
|
68
|
+
body["releaseName"] = request.releaseName;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
if (!$dara.isNull(request.values)) {
|
|
72
|
+
body["values"] = request.values;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
if (!$dara.isNull(request.version)) {
|
|
76
|
+
body["version"] = request.version;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
if (!$dara.isNull(request.workspace)) {
|
|
80
|
+
body["workspace"] = request.workspace;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
let req = new $OpenApiUtil.OpenApiRequest({
|
|
84
|
+
headers: headers,
|
|
85
|
+
body: OpenApiUtil.parseToMap(body),
|
|
86
|
+
});
|
|
87
|
+
let params = new $OpenApiUtil.Params({
|
|
88
|
+
action: "CreateAddonRelease",
|
|
89
|
+
version: "2024-03-30",
|
|
90
|
+
protocol: "HTTPS",
|
|
91
|
+
pathname: `/integration-policies/${$dara.URL.percentEncode(policyId)}/addon-releases`,
|
|
92
|
+
method: "POST",
|
|
93
|
+
authType: "AK",
|
|
94
|
+
style: "ROA",
|
|
95
|
+
reqBodyType: "json",
|
|
96
|
+
bodyType: "json",
|
|
97
|
+
});
|
|
98
|
+
return $dara.cast<$_model.CreateAddonReleaseResponse>(await this.callApi(params, req, runtime), new $_model.CreateAddonReleaseResponse({}));
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
/**
|
|
102
|
+
* 安装接入组件,代表进行一次接入
|
|
103
|
+
*
|
|
104
|
+
* @param request - CreateAddonReleaseRequest
|
|
105
|
+
* @returns CreateAddonReleaseResponse
|
|
106
|
+
*/
|
|
107
|
+
async createAddonRelease(policyId: string, request: $_model.CreateAddonReleaseRequest): Promise<$_model.CreateAddonReleaseResponse> {
|
|
108
|
+
let runtime = new $dara.RuntimeOptions({ });
|
|
109
|
+
let headers : {[key: string ]: string} = { };
|
|
110
|
+
return await this.createAddonReleaseWithOptions(policyId, request, headers, runtime);
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
/**
|
|
114
|
+
* 创建聚合任务组
|
|
115
|
+
*
|
|
116
|
+
* @param request - CreateAggTaskGroupRequest
|
|
117
|
+
* @param headers - map
|
|
118
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
119
|
+
* @returns CreateAggTaskGroupResponse
|
|
120
|
+
*/
|
|
121
|
+
async createAggTaskGroupWithOptions(instanceId: string, request: $_model.CreateAggTaskGroupRequest, headers: {[key: string ]: string}, runtime: $dara.RuntimeOptions): Promise<$_model.CreateAggTaskGroupResponse> {
|
|
122
|
+
request.validate();
|
|
123
|
+
let query : {[key: string ]: any} = { };
|
|
124
|
+
if (!$dara.isNull(request.overrideIfExists)) {
|
|
125
|
+
query["overrideIfExists"] = request.overrideIfExists;
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
let body : {[key: string ]: any} = { };
|
|
129
|
+
if (!$dara.isNull(request.aggTaskGroupConfig)) {
|
|
130
|
+
body["aggTaskGroupConfig"] = request.aggTaskGroupConfig;
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
if (!$dara.isNull(request.aggTaskGroupConfigType)) {
|
|
134
|
+
body["aggTaskGroupConfigType"] = request.aggTaskGroupConfigType;
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
if (!$dara.isNull(request.aggTaskGroupName)) {
|
|
138
|
+
body["aggTaskGroupName"] = request.aggTaskGroupName;
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
if (!$dara.isNull(request.cronExpr)) {
|
|
142
|
+
body["cronExpr"] = request.cronExpr;
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
if (!$dara.isNull(request.delay)) {
|
|
146
|
+
body["delay"] = request.delay;
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
if (!$dara.isNull(request.description)) {
|
|
150
|
+
body["description"] = request.description;
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
if (!$dara.isNull(request.fromTime)) {
|
|
154
|
+
body["fromTime"] = request.fromTime;
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
if (!$dara.isNull(request.maxRetries)) {
|
|
158
|
+
body["maxRetries"] = request.maxRetries;
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
if (!$dara.isNull(request.maxRunTimeInSeconds)) {
|
|
162
|
+
body["maxRunTimeInSeconds"] = request.maxRunTimeInSeconds;
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
if (!$dara.isNull(request.precheckString)) {
|
|
166
|
+
body["precheckString"] = request.precheckString;
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
if (!$dara.isNull(request.scheduleMode)) {
|
|
170
|
+
body["scheduleMode"] = request.scheduleMode;
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
if (!$dara.isNull(request.scheduleTimeExpr)) {
|
|
174
|
+
body["scheduleTimeExpr"] = request.scheduleTimeExpr;
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
if (!$dara.isNull(request.status)) {
|
|
178
|
+
body["status"] = request.status;
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
if (!$dara.isNull(request.tags)) {
|
|
182
|
+
body["tags"] = request.tags;
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
if (!$dara.isNull(request.targetPrometheusId)) {
|
|
186
|
+
body["targetPrometheusId"] = request.targetPrometheusId;
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
if (!$dara.isNull(request.toTime)) {
|
|
190
|
+
body["toTime"] = request.toTime;
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
let req = new $OpenApiUtil.OpenApiRequest({
|
|
194
|
+
headers: headers,
|
|
195
|
+
query: OpenApiUtil.query(query),
|
|
196
|
+
body: OpenApiUtil.parseToMap(body),
|
|
197
|
+
});
|
|
198
|
+
let params = new $OpenApiUtil.Params({
|
|
199
|
+
action: "CreateAggTaskGroup",
|
|
200
|
+
version: "2024-03-30",
|
|
201
|
+
protocol: "HTTPS",
|
|
202
|
+
pathname: `/prometheus-instances/${$dara.URL.percentEncode(instanceId)}/agg-task-groups`,
|
|
203
|
+
method: "POST",
|
|
204
|
+
authType: "AK",
|
|
205
|
+
style: "ROA",
|
|
206
|
+
reqBodyType: "json",
|
|
207
|
+
bodyType: "json",
|
|
208
|
+
});
|
|
209
|
+
return $dara.cast<$_model.CreateAggTaskGroupResponse>(await this.callApi(params, req, runtime), new $_model.CreateAggTaskGroupResponse({}));
|
|
210
|
+
}
|
|
211
|
+
|
|
212
|
+
/**
|
|
213
|
+
* 创建聚合任务组
|
|
214
|
+
*
|
|
215
|
+
* @param request - CreateAggTaskGroupRequest
|
|
216
|
+
* @returns CreateAggTaskGroupResponse
|
|
217
|
+
*/
|
|
218
|
+
async createAggTaskGroup(instanceId: string, request: $_model.CreateAggTaskGroupRequest): Promise<$_model.CreateAggTaskGroupResponse> {
|
|
219
|
+
let runtime = new $dara.RuntimeOptions({ });
|
|
220
|
+
let headers : {[key: string ]: string} = { };
|
|
221
|
+
return await this.createAggTaskGroupWithOptions(instanceId, request, headers, runtime);
|
|
222
|
+
}
|
|
223
|
+
|
|
32
224
|
/**
|
|
33
225
|
* 创建EntityStore相关存储
|
|
34
226
|
*
|
|
@@ -64,6 +256,71 @@ export default class Client extends OpenApi {
|
|
|
64
256
|
return await this.createEntityStoreWithOptions(workspaceName, headers, runtime);
|
|
65
257
|
}
|
|
66
258
|
|
|
259
|
+
/**
|
|
260
|
+
* 创建接入中心策略
|
|
261
|
+
*
|
|
262
|
+
* @param request - CreateIntegrationPolicyRequest
|
|
263
|
+
* @param headers - map
|
|
264
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
265
|
+
* @returns CreateIntegrationPolicyResponse
|
|
266
|
+
*/
|
|
267
|
+
async createIntegrationPolicyWithOptions(request: $_model.CreateIntegrationPolicyRequest, headers: {[key: string ]: string}, runtime: $dara.RuntimeOptions): Promise<$_model.CreateIntegrationPolicyResponse> {
|
|
268
|
+
request.validate();
|
|
269
|
+
let body : {[key: string ]: any} = { };
|
|
270
|
+
if (!$dara.isNull(request.entityGroup)) {
|
|
271
|
+
body["entityGroup"] = request.entityGroup;
|
|
272
|
+
}
|
|
273
|
+
|
|
274
|
+
if (!$dara.isNull(request.policyName)) {
|
|
275
|
+
body["policyName"] = request.policyName;
|
|
276
|
+
}
|
|
277
|
+
|
|
278
|
+
if (!$dara.isNull(request.policyType)) {
|
|
279
|
+
body["policyType"] = request.policyType;
|
|
280
|
+
}
|
|
281
|
+
|
|
282
|
+
if (!$dara.isNull(request.resourceGroupId)) {
|
|
283
|
+
body["resourceGroupId"] = request.resourceGroupId;
|
|
284
|
+
}
|
|
285
|
+
|
|
286
|
+
if (!$dara.isNull(request.tags)) {
|
|
287
|
+
body["tags"] = request.tags;
|
|
288
|
+
}
|
|
289
|
+
|
|
290
|
+
if (!$dara.isNull(request.workspace)) {
|
|
291
|
+
body["workspace"] = request.workspace;
|
|
292
|
+
}
|
|
293
|
+
|
|
294
|
+
let req = new $OpenApiUtil.OpenApiRequest({
|
|
295
|
+
headers: headers,
|
|
296
|
+
body: OpenApiUtil.parseToMap(body),
|
|
297
|
+
});
|
|
298
|
+
let params = new $OpenApiUtil.Params({
|
|
299
|
+
action: "CreateIntegrationPolicy",
|
|
300
|
+
version: "2024-03-30",
|
|
301
|
+
protocol: "HTTPS",
|
|
302
|
+
pathname: `/integration-policies`,
|
|
303
|
+
method: "POST",
|
|
304
|
+
authType: "AK",
|
|
305
|
+
style: "ROA",
|
|
306
|
+
reqBodyType: "json",
|
|
307
|
+
bodyType: "json",
|
|
308
|
+
});
|
|
309
|
+
return $dara.cast<$_model.CreateIntegrationPolicyResponse>(await this.callApi(params, req, runtime), new $_model.CreateIntegrationPolicyResponse({}));
|
|
310
|
+
}
|
|
311
|
+
|
|
312
|
+
/**
|
|
313
|
+
* 创建接入中心策略
|
|
314
|
+
*
|
|
315
|
+
* @param request - CreateIntegrationPolicyRequest
|
|
316
|
+
* @returns CreateIntegrationPolicyResponse
|
|
317
|
+
*/
|
|
318
|
+
async createIntegrationPolicy(request: $_model.CreateIntegrationPolicyRequest): Promise<$_model.CreateIntegrationPolicyResponse> {
|
|
319
|
+
let runtime = new $dara.RuntimeOptions({ });
|
|
320
|
+
let headers : {[key: string ]: string} = { };
|
|
321
|
+
return await this.createIntegrationPolicyWithOptions(request, headers, runtime);
|
|
322
|
+
}
|
|
323
|
+
|
|
67
324
|
/**
|
|
68
325
|
* 创建Prometheus监控实例
|
|
69
326
|
*
|
|
@@ -154,42 +411,54 @@ export default class Client extends OpenApi {
|
|
|
154
411
|
}
|
|
155
412
|
|
|
156
413
|
/**
|
|
157
|
-
* 创建
|
|
414
|
+
* 创建prometheus视图
|
|
158
415
|
*
|
|
159
|
-
* @param request -
|
|
416
|
+
* @param request - CreatePrometheusViewRequest
|
|
160
417
|
* @param headers - map
|
|
161
418
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
162
|
-
* @returns
|
|
419
|
+
* @returns CreatePrometheusViewResponse
|
|
163
420
|
*/
|
|
164
|
-
async
|
|
421
|
+
async createPrometheusViewWithOptions(request: $_model.CreatePrometheusViewRequest, headers: {[key: string ]: string}, runtime: $dara.RuntimeOptions): Promise<$_model.CreatePrometheusViewResponse> {
|
|
165
422
|
request.validate();
|
|
166
423
|
let body : {[key: string ]: any} = { };
|
|
167
|
-
if (!$dara.isNull(request.
|
|
168
|
-
body["
|
|
424
|
+
if (!$dara.isNull(request.authFreeReadPolicy)) {
|
|
425
|
+
body["authFreeReadPolicy"] = request.authFreeReadPolicy;
|
|
169
426
|
}
|
|
170
427
|
|
|
171
|
-
if (!$dara.isNull(request.
|
|
172
|
-
body["
|
|
428
|
+
if (!$dara.isNull(request.enableAuthFreeRead)) {
|
|
429
|
+
body["enableAuthFreeRead"] = request.enableAuthFreeRead;
|
|
173
430
|
}
|
|
174
431
|
|
|
175
|
-
if (!$dara.isNull(request.
|
|
176
|
-
body["
|
|
432
|
+
if (!$dara.isNull(request.enableAuthToken)) {
|
|
433
|
+
body["enableAuthToken"] = request.enableAuthToken;
|
|
177
434
|
}
|
|
178
435
|
|
|
179
|
-
if (!$dara.isNull(request.
|
|
180
|
-
body["
|
|
436
|
+
if (!$dara.isNull(request.prometheusInstances)) {
|
|
437
|
+
body["prometheusInstances"] = request.prometheusInstances;
|
|
181
438
|
}
|
|
182
439
|
|
|
183
|
-
if (!$dara.isNull(request.
|
|
184
|
-
body["
|
|
440
|
+
if (!$dara.isNull(request.prometheusViewName)) {
|
|
441
|
+
body["prometheusViewName"] = request.prometheusViewName;
|
|
185
442
|
}
|
|
186
443
|
|
|
187
|
-
if (!$dara.isNull(request.
|
|
188
|
-
body["
|
|
444
|
+
if (!$dara.isNull(request.resourceGroupId)) {
|
|
445
|
+
body["resourceGroupId"] = request.resourceGroupId;
|
|
189
446
|
}
|
|
190
447
|
|
|
191
|
-
if (!$dara.isNull(request.
|
|
192
|
-
body["
|
|
448
|
+
if (!$dara.isNull(request.status)) {
|
|
449
|
+
body["status"] = request.status;
|
|
450
|
+
}
|
|
451
|
+
|
|
452
|
+
if (!$dara.isNull(request.tags)) {
|
|
453
|
+
body["tags"] = request.tags;
|
|
454
|
+
}
|
|
455
|
+
|
|
456
|
+
if (!$dara.isNull(request.version)) {
|
|
457
|
+
body["version"] = request.version;
|
|
458
|
+
}
|
|
459
|
+
|
|
460
|
+
if (!$dara.isNull(request.workspace)) {
|
|
461
|
+
body["workspace"] = request.workspace;
|
|
193
462
|
}
|
|
194
463
|
|
|
195
464
|
let req = new $OpenApiUtil.OpenApiRequest({
|
|
@@ -197,255 +466,260 @@ export default class Client extends OpenApi {
|
|
|
197
466
|
body: OpenApiUtil.parseToMap(body),
|
|
198
467
|
});
|
|
199
468
|
let params = new $OpenApiUtil.Params({
|
|
200
|
-
action: "
|
|
469
|
+
action: "CreatePrometheusView",
|
|
201
470
|
version: "2024-03-30",
|
|
202
471
|
protocol: "HTTPS",
|
|
203
|
-
pathname: `/
|
|
472
|
+
pathname: `/prometheus-views`,
|
|
204
473
|
method: "POST",
|
|
205
474
|
authType: "AK",
|
|
206
475
|
style: "ROA",
|
|
207
476
|
reqBodyType: "json",
|
|
208
477
|
bodyType: "json",
|
|
209
478
|
});
|
|
210
|
-
return $dara.cast<$_model.
|
|
479
|
+
return $dara.cast<$_model.CreatePrometheusViewResponse>(await this.callApi(params, req, runtime), new $_model.CreatePrometheusViewResponse({}));
|
|
211
480
|
}
|
|
212
481
|
|
|
213
482
|
/**
|
|
214
|
-
* 创建
|
|
483
|
+
* 创建prometheus视图
|
|
215
484
|
*
|
|
216
|
-
* @param request -
|
|
217
|
-
* @returns
|
|
485
|
+
* @param request - CreatePrometheusViewRequest
|
|
486
|
+
* @returns CreatePrometheusViewResponse
|
|
218
487
|
*/
|
|
219
|
-
async
|
|
488
|
+
async createPrometheusView(request: $_model.CreatePrometheusViewRequest): Promise<$_model.CreatePrometheusViewResponse> {
|
|
220
489
|
let runtime = new $dara.RuntimeOptions({ });
|
|
221
490
|
let headers : {[key: string ]: string} = { };
|
|
222
|
-
return await this.
|
|
491
|
+
return await this.createPrometheusViewWithOptions(request, headers, runtime);
|
|
223
492
|
}
|
|
224
493
|
|
|
225
494
|
/**
|
|
226
|
-
*
|
|
495
|
+
* 创建Prometheus监控实例
|
|
227
496
|
*
|
|
228
|
-
* @param request -
|
|
497
|
+
* @param request - CreatePrometheusVirtualInstanceRequest
|
|
229
498
|
* @param headers - map
|
|
230
499
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
231
|
-
* @returns
|
|
500
|
+
* @returns CreatePrometheusVirtualInstanceResponse
|
|
232
501
|
*/
|
|
233
|
-
async
|
|
502
|
+
async createPrometheusVirtualInstanceWithOptions(request: $_model.CreatePrometheusVirtualInstanceRequest, headers: {[key: string ]: string}, runtime: $dara.RuntimeOptions): Promise<$_model.CreatePrometheusVirtualInstanceResponse> {
|
|
234
503
|
request.validate();
|
|
235
|
-
let
|
|
236
|
-
if (!$dara.isNull(request.
|
|
237
|
-
|
|
238
|
-
}
|
|
239
|
-
|
|
240
|
-
if (!$dara.isNull(request.expirationTime)) {
|
|
241
|
-
query["expirationTime"] = request.expirationTime;
|
|
504
|
+
let body : {[key: string ]: any} = { };
|
|
505
|
+
if (!$dara.isNull(request.namespace)) {
|
|
506
|
+
body["namespace"] = request.namespace;
|
|
242
507
|
}
|
|
243
508
|
|
|
244
509
|
let req = new $OpenApiUtil.OpenApiRequest({
|
|
245
510
|
headers: headers,
|
|
246
|
-
|
|
511
|
+
body: OpenApiUtil.parseToMap(body),
|
|
247
512
|
});
|
|
248
513
|
let params = new $OpenApiUtil.Params({
|
|
249
|
-
action: "
|
|
514
|
+
action: "CreatePrometheusVirtualInstance",
|
|
250
515
|
version: "2024-03-30",
|
|
251
516
|
protocol: "HTTPS",
|
|
252
|
-
pathname: `/
|
|
517
|
+
pathname: `/virtual-instances`,
|
|
253
518
|
method: "POST",
|
|
254
519
|
authType: "AK",
|
|
255
520
|
style: "ROA",
|
|
256
521
|
reqBodyType: "json",
|
|
257
522
|
bodyType: "json",
|
|
258
523
|
});
|
|
259
|
-
return $dara.cast<$_model.
|
|
524
|
+
return $dara.cast<$_model.CreatePrometheusVirtualInstanceResponse>(await this.callApi(params, req, runtime), new $_model.CreatePrometheusVirtualInstanceResponse({}));
|
|
260
525
|
}
|
|
261
526
|
|
|
262
527
|
/**
|
|
263
|
-
*
|
|
528
|
+
* 创建Prometheus监控实例
|
|
264
529
|
*
|
|
265
|
-
* @param request -
|
|
266
|
-
* @returns
|
|
530
|
+
* @param request - CreatePrometheusVirtualInstanceRequest
|
|
531
|
+
* @returns CreatePrometheusVirtualInstanceResponse
|
|
267
532
|
*/
|
|
268
|
-
async
|
|
533
|
+
async createPrometheusVirtualInstance(request: $_model.CreatePrometheusVirtualInstanceRequest): Promise<$_model.CreatePrometheusVirtualInstanceResponse> {
|
|
269
534
|
let runtime = new $dara.RuntimeOptions({ });
|
|
270
535
|
let headers : {[key: string ]: string} = { };
|
|
271
|
-
return await this.
|
|
536
|
+
return await this.createPrometheusVirtualInstanceWithOptions(request, headers, runtime);
|
|
272
537
|
}
|
|
273
538
|
|
|
274
539
|
/**
|
|
275
|
-
* 创建
|
|
540
|
+
* 创建Service
|
|
276
541
|
*
|
|
277
|
-
* @param request -
|
|
542
|
+
* @param request - CreateServiceRequest
|
|
278
543
|
* @param headers - map
|
|
279
544
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
280
|
-
* @returns
|
|
545
|
+
* @returns CreateServiceResponse
|
|
281
546
|
*/
|
|
282
|
-
async
|
|
547
|
+
async createServiceWithOptions(workspace: string, request: $_model.CreateServiceRequest, headers: {[key: string ]: string}, runtime: $dara.RuntimeOptions): Promise<$_model.CreateServiceResponse> {
|
|
283
548
|
request.validate();
|
|
284
549
|
let body : {[key: string ]: any} = { };
|
|
285
|
-
if (!$dara.isNull(request.
|
|
286
|
-
body["
|
|
550
|
+
if (!$dara.isNull(request.attributes)) {
|
|
551
|
+
body["attributes"] = request.attributes;
|
|
287
552
|
}
|
|
288
553
|
|
|
289
554
|
if (!$dara.isNull(request.description)) {
|
|
290
555
|
body["description"] = request.description;
|
|
291
556
|
}
|
|
292
557
|
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
});
|
|
297
|
-
let params = new $OpenApiUtil.Params({
|
|
298
|
-
action: "CreateUmodel",
|
|
299
|
-
version: "2024-03-30",
|
|
300
|
-
protocol: "HTTPS",
|
|
301
|
-
pathname: `/workspace/${$dara.URL.percentEncode(workspace)}/umodel`,
|
|
302
|
-
method: "POST",
|
|
303
|
-
authType: "AK",
|
|
304
|
-
style: "ROA",
|
|
305
|
-
reqBodyType: "json",
|
|
306
|
-
bodyType: "json",
|
|
307
|
-
});
|
|
308
|
-
return $dara.cast<$_model.CreateUmodelResponse>(await this.callApi(params, req, runtime), new $_model.CreateUmodelResponse({}));
|
|
309
|
-
}
|
|
558
|
+
if (!$dara.isNull(request.displayName)) {
|
|
559
|
+
body["displayName"] = request.displayName;
|
|
560
|
+
}
|
|
310
561
|
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
562
|
+
if (!$dara.isNull(request.pid)) {
|
|
563
|
+
body["pid"] = request.pid;
|
|
564
|
+
}
|
|
565
|
+
|
|
566
|
+
if (!$dara.isNull(request.serviceName)) {
|
|
567
|
+
body["serviceName"] = request.serviceName;
|
|
568
|
+
}
|
|
569
|
+
|
|
570
|
+
if (!$dara.isNull(request.serviceStatus)) {
|
|
571
|
+
body["serviceStatus"] = request.serviceStatus;
|
|
572
|
+
}
|
|
573
|
+
|
|
574
|
+
if (!$dara.isNull(request.serviceType)) {
|
|
575
|
+
body["serviceType"] = request.serviceType;
|
|
576
|
+
}
|
|
322
577
|
|
|
323
|
-
/**
|
|
324
|
-
* 删除EntityStore相关存储
|
|
325
|
-
*
|
|
326
|
-
* @param headers - map
|
|
327
|
-
* @param runtime - runtime options for this request RuntimeOptions
|
|
328
|
-
* @returns DeleteEntityStoreResponse
|
|
329
|
-
*/
|
|
330
|
-
async deleteEntityStoreWithOptions(workspaceName: string, headers: {[key: string ]: string}, runtime: $dara.RuntimeOptions): Promise<$_model.DeleteEntityStoreResponse> {
|
|
331
578
|
let req = new $OpenApiUtil.OpenApiRequest({
|
|
332
579
|
headers: headers,
|
|
580
|
+
body: OpenApiUtil.parseToMap(body),
|
|
333
581
|
});
|
|
334
582
|
let params = new $OpenApiUtil.Params({
|
|
335
|
-
action: "
|
|
583
|
+
action: "CreateService",
|
|
336
584
|
version: "2024-03-30",
|
|
337
585
|
protocol: "HTTPS",
|
|
338
|
-
pathname: `/workspace/${$dara.URL.percentEncode(
|
|
339
|
-
method: "
|
|
586
|
+
pathname: `/workspace/${$dara.URL.percentEncode(workspace)}/service`,
|
|
587
|
+
method: "POST",
|
|
340
588
|
authType: "AK",
|
|
341
589
|
style: "ROA",
|
|
342
590
|
reqBodyType: "json",
|
|
343
591
|
bodyType: "json",
|
|
344
592
|
});
|
|
345
|
-
return $dara.cast<$_model.
|
|
593
|
+
return $dara.cast<$_model.CreateServiceResponse>(await this.callApi(params, req, runtime), new $_model.CreateServiceResponse({}));
|
|
346
594
|
}
|
|
347
595
|
|
|
348
596
|
/**
|
|
349
|
-
*
|
|
350
|
-
*
|
|
597
|
+
* 创建Service
|
|
598
|
+
*
|
|
599
|
+
* @param request - CreateServiceRequest
|
|
600
|
+
* @returns CreateServiceResponse
|
|
351
601
|
*/
|
|
352
|
-
async
|
|
602
|
+
async createService(workspace: string, request: $_model.CreateServiceRequest): Promise<$_model.CreateServiceResponse> {
|
|
353
603
|
let runtime = new $dara.RuntimeOptions({ });
|
|
354
604
|
let headers : {[key: string ]: string} = { };
|
|
355
|
-
return await this.
|
|
605
|
+
return await this.createServiceWithOptions(workspace, request, headers, runtime);
|
|
356
606
|
}
|
|
357
607
|
|
|
358
608
|
/**
|
|
359
|
-
*
|
|
609
|
+
* 创建票据
|
|
360
610
|
*
|
|
611
|
+
* @param request - CreateTicketRequest
|
|
361
612
|
* @param headers - map
|
|
362
613
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
363
|
-
* @returns
|
|
614
|
+
* @returns CreateTicketResponse
|
|
364
615
|
*/
|
|
365
|
-
async
|
|
616
|
+
async createTicketWithOptions(request: $_model.CreateTicketRequest, headers: {[key: string ]: string}, runtime: $dara.RuntimeOptions): Promise<$_model.CreateTicketResponse> {
|
|
617
|
+
request.validate();
|
|
618
|
+
let query : {[key: string ]: any} = { };
|
|
619
|
+
if (!$dara.isNull(request.accessTokenExpirationTime)) {
|
|
620
|
+
query["accessTokenExpirationTime"] = request.accessTokenExpirationTime;
|
|
621
|
+
}
|
|
622
|
+
|
|
623
|
+
if (!$dara.isNull(request.expirationTime)) {
|
|
624
|
+
query["expirationTime"] = request.expirationTime;
|
|
625
|
+
}
|
|
626
|
+
|
|
366
627
|
let req = new $OpenApiUtil.OpenApiRequest({
|
|
367
628
|
headers: headers,
|
|
629
|
+
query: OpenApiUtil.query(query),
|
|
368
630
|
});
|
|
369
631
|
let params = new $OpenApiUtil.Params({
|
|
370
|
-
action: "
|
|
632
|
+
action: "CreateTicket",
|
|
371
633
|
version: "2024-03-30",
|
|
372
634
|
protocol: "HTTPS",
|
|
373
|
-
pathname: `/
|
|
374
|
-
method: "
|
|
635
|
+
pathname: `/tickets`,
|
|
636
|
+
method: "POST",
|
|
375
637
|
authType: "AK",
|
|
376
638
|
style: "ROA",
|
|
377
639
|
reqBodyType: "json",
|
|
378
640
|
bodyType: "json",
|
|
379
641
|
});
|
|
380
|
-
return $dara.cast<$_model.
|
|
642
|
+
return $dara.cast<$_model.CreateTicketResponse>(await this.callApi(params, req, runtime), new $_model.CreateTicketResponse({}));
|
|
381
643
|
}
|
|
382
644
|
|
|
383
645
|
/**
|
|
384
|
-
*
|
|
385
|
-
*
|
|
646
|
+
* 创建票据
|
|
647
|
+
*
|
|
648
|
+
* @param request - CreateTicketRequest
|
|
649
|
+
* @returns CreateTicketResponse
|
|
386
650
|
*/
|
|
387
|
-
async
|
|
651
|
+
async createTicket(request: $_model.CreateTicketRequest): Promise<$_model.CreateTicketResponse> {
|
|
388
652
|
let runtime = new $dara.RuntimeOptions({ });
|
|
389
653
|
let headers : {[key: string ]: string} = { };
|
|
390
|
-
return await this.
|
|
654
|
+
return await this.createTicketWithOptions(request, headers, runtime);
|
|
391
655
|
}
|
|
392
656
|
|
|
393
657
|
/**
|
|
394
|
-
*
|
|
658
|
+
* 创建Umodel配置
|
|
395
659
|
*
|
|
660
|
+
* @param request - CreateUmodelRequest
|
|
396
661
|
* @param headers - map
|
|
397
662
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
398
|
-
* @returns
|
|
663
|
+
* @returns CreateUmodelResponse
|
|
399
664
|
*/
|
|
400
|
-
async
|
|
665
|
+
async createUmodelWithOptions(workspace: string, request: $_model.CreateUmodelRequest, headers: {[key: string ]: string}, runtime: $dara.RuntimeOptions): Promise<$_model.CreateUmodelResponse> {
|
|
666
|
+
request.validate();
|
|
667
|
+
let body : {[key: string ]: any} = { };
|
|
668
|
+
if (!$dara.isNull(request.description)) {
|
|
669
|
+
body["description"] = request.description;
|
|
670
|
+
}
|
|
671
|
+
|
|
401
672
|
let req = new $OpenApiUtil.OpenApiRequest({
|
|
402
673
|
headers: headers,
|
|
674
|
+
body: OpenApiUtil.parseToMap(body),
|
|
403
675
|
});
|
|
404
676
|
let params = new $OpenApiUtil.Params({
|
|
405
|
-
action: "
|
|
677
|
+
action: "CreateUmodel",
|
|
406
678
|
version: "2024-03-30",
|
|
407
679
|
protocol: "HTTPS",
|
|
408
680
|
pathname: `/workspace/${$dara.URL.percentEncode(workspace)}/umodel`,
|
|
409
|
-
method: "
|
|
681
|
+
method: "POST",
|
|
410
682
|
authType: "AK",
|
|
411
683
|
style: "ROA",
|
|
412
684
|
reqBodyType: "json",
|
|
413
685
|
bodyType: "json",
|
|
414
686
|
});
|
|
415
|
-
return $dara.cast<$_model.
|
|
687
|
+
return $dara.cast<$_model.CreateUmodelResponse>(await this.callApi(params, req, runtime), new $_model.CreateUmodelResponse({}));
|
|
416
688
|
}
|
|
417
689
|
|
|
418
690
|
/**
|
|
419
|
-
*
|
|
420
|
-
*
|
|
691
|
+
* 创建Umodel配置
|
|
692
|
+
*
|
|
693
|
+
* @param request - CreateUmodelRequest
|
|
694
|
+
* @returns CreateUmodelResponse
|
|
421
695
|
*/
|
|
422
|
-
async
|
|
696
|
+
async createUmodel(workspace: string, request: $_model.CreateUmodelRequest): Promise<$_model.CreateUmodelResponse> {
|
|
423
697
|
let runtime = new $dara.RuntimeOptions({ });
|
|
424
698
|
let headers : {[key: string ]: string} = { };
|
|
425
|
-
return await this.
|
|
699
|
+
return await this.createUmodelWithOptions(workspace, request, headers, runtime);
|
|
426
700
|
}
|
|
427
701
|
|
|
428
702
|
/**
|
|
429
|
-
* 删除
|
|
703
|
+
* 删除addon release信息
|
|
430
704
|
*
|
|
431
|
-
* @param request -
|
|
705
|
+
* @param request - DeleteAddonReleaseRequest
|
|
432
706
|
* @param headers - map
|
|
433
707
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
434
|
-
* @returns
|
|
708
|
+
* @returns DeleteAddonReleaseResponse
|
|
435
709
|
*/
|
|
436
|
-
async
|
|
710
|
+
async deleteAddonReleaseWithOptions(policyId: string, request: $_model.DeleteAddonReleaseRequest, headers: {[key: string ]: string}, runtime: $dara.RuntimeOptions): Promise<$_model.DeleteAddonReleaseResponse> {
|
|
437
711
|
request.validate();
|
|
438
712
|
let query : {[key: string ]: any} = { };
|
|
439
|
-
if (!$dara.isNull(request.
|
|
440
|
-
query["
|
|
713
|
+
if (!$dara.isNull(request.addonName)) {
|
|
714
|
+
query["addonName"] = request.addonName;
|
|
441
715
|
}
|
|
442
716
|
|
|
443
|
-
if (!$dara.isNull(request.
|
|
444
|
-
query["
|
|
717
|
+
if (!$dara.isNull(request.force)) {
|
|
718
|
+
query["force"] = request.force;
|
|
445
719
|
}
|
|
446
720
|
|
|
447
|
-
if (!$dara.isNull(request.
|
|
448
|
-
query["
|
|
721
|
+
if (!$dara.isNull(request.releaseName)) {
|
|
722
|
+
query["releaseName"] = request.releaseName;
|
|
449
723
|
}
|
|
450
724
|
|
|
451
725
|
let req = new $OpenApiUtil.OpenApiRequest({
|
|
@@ -453,562 +727,2042 @@ export default class Client extends OpenApi {
|
|
|
453
727
|
query: OpenApiUtil.query(query),
|
|
454
728
|
});
|
|
455
729
|
let params = new $OpenApiUtil.Params({
|
|
456
|
-
action: "
|
|
730
|
+
action: "DeleteAddonRelease",
|
|
457
731
|
version: "2024-03-30",
|
|
458
732
|
protocol: "HTTPS",
|
|
459
|
-
pathname: `/
|
|
733
|
+
pathname: `/integration-policies/${$dara.URL.percentEncode(policyId)}/addon-releases`,
|
|
460
734
|
method: "DELETE",
|
|
461
735
|
authType: "AK",
|
|
462
736
|
style: "ROA",
|
|
463
737
|
reqBodyType: "json",
|
|
464
738
|
bodyType: "json",
|
|
465
739
|
});
|
|
466
|
-
return $dara.cast<$_model.
|
|
740
|
+
return $dara.cast<$_model.DeleteAddonReleaseResponse>(await this.callApi(params, req, runtime), new $_model.DeleteAddonReleaseResponse({}));
|
|
467
741
|
}
|
|
468
742
|
|
|
469
743
|
/**
|
|
470
|
-
* 删除
|
|
744
|
+
* 删除addon release信息
|
|
471
745
|
*
|
|
472
|
-
* @param request -
|
|
473
|
-
* @returns
|
|
746
|
+
* @param request - DeleteAddonReleaseRequest
|
|
747
|
+
* @returns DeleteAddonReleaseResponse
|
|
474
748
|
*/
|
|
475
|
-
async
|
|
749
|
+
async deleteAddonRelease(policyId: string, request: $_model.DeleteAddonReleaseRequest): Promise<$_model.DeleteAddonReleaseResponse> {
|
|
476
750
|
let runtime = new $dara.RuntimeOptions({ });
|
|
477
751
|
let headers : {[key: string ]: string} = { };
|
|
478
|
-
return await this.
|
|
752
|
+
return await this.deleteAddonReleaseWithOptions(policyId, request, headers, runtime);
|
|
479
753
|
}
|
|
480
754
|
|
|
481
755
|
/**
|
|
482
|
-
*
|
|
756
|
+
* 删除聚合任务组
|
|
483
757
|
*
|
|
484
758
|
* @param headers - map
|
|
485
759
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
486
|
-
* @returns
|
|
760
|
+
* @returns DeleteAggTaskGroupResponse
|
|
487
761
|
*/
|
|
488
|
-
async
|
|
762
|
+
async deleteAggTaskGroupWithOptions(instanceId: string, groupId: string, headers: {[key: string ]: string}, runtime: $dara.RuntimeOptions): Promise<$_model.DeleteAggTaskGroupResponse> {
|
|
489
763
|
let req = new $OpenApiUtil.OpenApiRequest({
|
|
490
764
|
headers: headers,
|
|
491
765
|
});
|
|
492
766
|
let params = new $OpenApiUtil.Params({
|
|
493
|
-
action: "
|
|
767
|
+
action: "DeleteAggTaskGroup",
|
|
494
768
|
version: "2024-03-30",
|
|
495
769
|
protocol: "HTTPS",
|
|
496
|
-
pathname: `/
|
|
770
|
+
pathname: `/prometheus-instances/${$dara.URL.percentEncode(instanceId)}/agg-task-groups/${$dara.URL.percentEncode(groupId)}`,
|
|
497
771
|
method: "DELETE",
|
|
498
772
|
authType: "AK",
|
|
499
773
|
style: "ROA",
|
|
500
774
|
reqBodyType: "json",
|
|
501
775
|
bodyType: "json",
|
|
502
776
|
});
|
|
503
|
-
return $dara.cast<$_model.
|
|
777
|
+
return $dara.cast<$_model.DeleteAggTaskGroupResponse>(await this.callApi(params, req, runtime), new $_model.DeleteAggTaskGroupResponse({}));
|
|
504
778
|
}
|
|
505
779
|
|
|
506
780
|
/**
|
|
507
|
-
*
|
|
508
|
-
* @returns
|
|
781
|
+
* 删除聚合任务组
|
|
782
|
+
* @returns DeleteAggTaskGroupResponse
|
|
509
783
|
*/
|
|
510
|
-
async
|
|
784
|
+
async deleteAggTaskGroup(instanceId: string, groupId: string): Promise<$_model.DeleteAggTaskGroupResponse> {
|
|
511
785
|
let runtime = new $dara.RuntimeOptions({ });
|
|
512
786
|
let headers : {[key: string ]: string} = { };
|
|
513
|
-
return await this.
|
|
787
|
+
return await this.deleteAggTaskGroupWithOptions(instanceId, groupId, headers, runtime);
|
|
514
788
|
}
|
|
515
789
|
|
|
516
790
|
/**
|
|
517
|
-
*
|
|
791
|
+
* 删除EntityStore相关存储
|
|
518
792
|
*
|
|
519
793
|
* @param headers - map
|
|
520
794
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
521
|
-
* @returns
|
|
795
|
+
* @returns DeleteEntityStoreResponse
|
|
522
796
|
*/
|
|
523
|
-
async
|
|
797
|
+
async deleteEntityStoreWithOptions(workspaceName: string, headers: {[key: string ]: string}, runtime: $dara.RuntimeOptions): Promise<$_model.DeleteEntityStoreResponse> {
|
|
524
798
|
let req = new $OpenApiUtil.OpenApiRequest({
|
|
525
799
|
headers: headers,
|
|
526
800
|
});
|
|
527
801
|
let params = new $OpenApiUtil.Params({
|
|
528
|
-
action: "
|
|
802
|
+
action: "DeleteEntityStore",
|
|
529
803
|
version: "2024-03-30",
|
|
530
804
|
protocol: "HTTPS",
|
|
531
805
|
pathname: `/workspace/${$dara.URL.percentEncode(workspaceName)}/entitystore`,
|
|
532
|
-
method: "
|
|
806
|
+
method: "DELETE",
|
|
533
807
|
authType: "AK",
|
|
534
808
|
style: "ROA",
|
|
535
809
|
reqBodyType: "json",
|
|
536
810
|
bodyType: "json",
|
|
537
811
|
});
|
|
538
|
-
return $dara.cast<$_model.
|
|
812
|
+
return $dara.cast<$_model.DeleteEntityStoreResponse>(await this.callApi(params, req, runtime), new $_model.DeleteEntityStoreResponse({}));
|
|
539
813
|
}
|
|
540
814
|
|
|
541
815
|
/**
|
|
542
|
-
*
|
|
543
|
-
* @returns
|
|
816
|
+
* 删除EntityStore相关存储
|
|
817
|
+
* @returns DeleteEntityStoreResponse
|
|
544
818
|
*/
|
|
545
|
-
async
|
|
819
|
+
async deleteEntityStore(workspaceName: string): Promise<$_model.DeleteEntityStoreResponse> {
|
|
546
820
|
let runtime = new $dara.RuntimeOptions({ });
|
|
547
821
|
let headers : {[key: string ]: string} = { };
|
|
548
|
-
return await this.
|
|
822
|
+
return await this.deleteEntityStoreWithOptions(workspaceName, headers, runtime);
|
|
549
823
|
}
|
|
550
824
|
|
|
551
825
|
/**
|
|
552
|
-
*
|
|
826
|
+
* 删除接入中心策略
|
|
553
827
|
*
|
|
554
|
-
* @param request -
|
|
555
|
-
* @param headers -
|
|
828
|
+
* @param request - DeleteIntegrationPolicyRequest
|
|
829
|
+
* @param headers - map
|
|
556
830
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
557
|
-
* @returns
|
|
831
|
+
* @returns DeleteIntegrationPolicyResponse
|
|
558
832
|
*/
|
|
559
|
-
async
|
|
833
|
+
async deleteIntegrationPolicyWithOptions(policyId: string, request: $_model.DeleteIntegrationPolicyRequest, headers: {[key: string ]: string}, runtime: $dara.RuntimeOptions): Promise<$_model.DeleteIntegrationPolicyResponse> {
|
|
560
834
|
request.validate();
|
|
561
|
-
let
|
|
562
|
-
if (!$dara.isNull(request.
|
|
563
|
-
|
|
564
|
-
}
|
|
565
|
-
|
|
566
|
-
if (!$dara.isNull(request.query)) {
|
|
567
|
-
body["query"] = request.query;
|
|
568
|
-
}
|
|
569
|
-
|
|
570
|
-
if (!$dara.isNull(request.to)) {
|
|
571
|
-
body["to"] = request.to;
|
|
572
|
-
}
|
|
573
|
-
|
|
574
|
-
let realHeaders : {[key: string ]: string} = { };
|
|
575
|
-
if (!$dara.isNull(headers.commonHeaders)) {
|
|
576
|
-
realHeaders = headers.commonHeaders;
|
|
577
|
-
}
|
|
578
|
-
|
|
579
|
-
if (!$dara.isNull(headers.acceptEncoding)) {
|
|
580
|
-
realHeaders["acceptEncoding"] = String(headers.acceptEncoding);
|
|
835
|
+
let query : {[key: string ]: any} = { };
|
|
836
|
+
if (!$dara.isNull(request.force)) {
|
|
837
|
+
query["force"] = request.force;
|
|
581
838
|
}
|
|
582
839
|
|
|
583
840
|
let req = new $OpenApiUtil.OpenApiRequest({
|
|
584
|
-
headers:
|
|
585
|
-
|
|
841
|
+
headers: headers,
|
|
842
|
+
query: OpenApiUtil.query(query),
|
|
586
843
|
});
|
|
587
844
|
let params = new $OpenApiUtil.Params({
|
|
588
|
-
action: "
|
|
845
|
+
action: "DeleteIntegrationPolicy",
|
|
589
846
|
version: "2024-03-30",
|
|
590
847
|
protocol: "HTTPS",
|
|
591
|
-
pathname: `/
|
|
592
|
-
method: "
|
|
848
|
+
pathname: `/integration-policies/${$dara.URL.percentEncode(policyId)}`,
|
|
849
|
+
method: "DELETE",
|
|
593
850
|
authType: "AK",
|
|
594
851
|
style: "ROA",
|
|
595
852
|
reqBodyType: "json",
|
|
596
853
|
bodyType: "json",
|
|
597
854
|
});
|
|
598
|
-
return $dara.cast<$_model.
|
|
855
|
+
return $dara.cast<$_model.DeleteIntegrationPolicyResponse>(await this.callApi(params, req, runtime), new $_model.DeleteIntegrationPolicyResponse({}));
|
|
599
856
|
}
|
|
600
857
|
|
|
601
858
|
/**
|
|
602
|
-
*
|
|
859
|
+
* 删除接入中心策略
|
|
603
860
|
*
|
|
604
|
-
* @param request -
|
|
605
|
-
* @returns
|
|
861
|
+
* @param request - DeleteIntegrationPolicyRequest
|
|
862
|
+
* @returns DeleteIntegrationPolicyResponse
|
|
606
863
|
*/
|
|
607
|
-
async
|
|
864
|
+
async deleteIntegrationPolicy(policyId: string, request: $_model.DeleteIntegrationPolicyRequest): Promise<$_model.DeleteIntegrationPolicyResponse> {
|
|
608
865
|
let runtime = new $dara.RuntimeOptions({ });
|
|
609
|
-
let headers =
|
|
610
|
-
return await this.
|
|
866
|
+
let headers : {[key: string ]: string} = { };
|
|
867
|
+
return await this.deleteIntegrationPolicyWithOptions(policyId, request, headers, runtime);
|
|
611
868
|
}
|
|
612
869
|
|
|
613
870
|
/**
|
|
614
|
-
*
|
|
871
|
+
* 删除prom实例
|
|
615
872
|
*
|
|
616
873
|
* @param headers - map
|
|
617
874
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
618
|
-
* @returns
|
|
875
|
+
* @returns DeletePrometheusInstanceResponse
|
|
619
876
|
*/
|
|
620
|
-
async
|
|
877
|
+
async deletePrometheusInstanceWithOptions(prometheusInstanceId: string, headers: {[key: string ]: string}, runtime: $dara.RuntimeOptions): Promise<$_model.DeletePrometheusInstanceResponse> {
|
|
621
878
|
let req = new $OpenApiUtil.OpenApiRequest({
|
|
622
879
|
headers: headers,
|
|
623
880
|
});
|
|
624
881
|
let params = new $OpenApiUtil.Params({
|
|
625
|
-
action: "
|
|
882
|
+
action: "DeletePrometheusInstance",
|
|
626
883
|
version: "2024-03-30",
|
|
627
884
|
protocol: "HTTPS",
|
|
628
|
-
pathname: `/
|
|
629
|
-
method: "
|
|
885
|
+
pathname: `/prometheus-instances/${$dara.URL.percentEncode(prometheusInstanceId)}`,
|
|
886
|
+
method: "DELETE",
|
|
630
887
|
authType: "AK",
|
|
631
888
|
style: "ROA",
|
|
632
889
|
reqBodyType: "json",
|
|
633
890
|
bodyType: "json",
|
|
634
891
|
});
|
|
635
|
-
return $dara.cast<$_model.
|
|
892
|
+
return $dara.cast<$_model.DeletePrometheusInstanceResponse>(await this.callApi(params, req, runtime), new $_model.DeletePrometheusInstanceResponse({}));
|
|
636
893
|
}
|
|
637
894
|
|
|
638
895
|
/**
|
|
639
|
-
*
|
|
640
|
-
* @returns
|
|
896
|
+
* 删除prom实例
|
|
897
|
+
* @returns DeletePrometheusInstanceResponse
|
|
641
898
|
*/
|
|
642
|
-
async
|
|
899
|
+
async deletePrometheusInstance(prometheusInstanceId: string): Promise<$_model.DeletePrometheusInstanceResponse> {
|
|
643
900
|
let runtime = new $dara.RuntimeOptions({ });
|
|
644
901
|
let headers : {[key: string ]: string} = { };
|
|
645
|
-
return await this.
|
|
902
|
+
return await this.deletePrometheusInstanceWithOptions(prometheusInstanceId, headers, runtime);
|
|
646
903
|
}
|
|
647
904
|
|
|
648
905
|
/**
|
|
649
|
-
*
|
|
906
|
+
* 删除prometheus视图实例
|
|
650
907
|
*
|
|
651
908
|
* @param headers - map
|
|
652
909
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
653
|
-
* @returns
|
|
910
|
+
* @returns DeletePrometheusViewResponse
|
|
654
911
|
*/
|
|
655
|
-
async
|
|
912
|
+
async deletePrometheusViewWithOptions(prometheusViewId: string, headers: {[key: string ]: string}, runtime: $dara.RuntimeOptions): Promise<$_model.DeletePrometheusViewResponse> {
|
|
656
913
|
let req = new $OpenApiUtil.OpenApiRequest({
|
|
657
914
|
headers: headers,
|
|
658
915
|
});
|
|
659
916
|
let params = new $OpenApiUtil.Params({
|
|
660
|
-
action: "
|
|
917
|
+
action: "DeletePrometheusView",
|
|
661
918
|
version: "2024-03-30",
|
|
662
919
|
protocol: "HTTPS",
|
|
663
|
-
pathname: `/
|
|
664
|
-
method: "
|
|
920
|
+
pathname: `/prometheus-views/${$dara.URL.percentEncode(prometheusViewId)}`,
|
|
921
|
+
method: "DELETE",
|
|
665
922
|
authType: "AK",
|
|
666
923
|
style: "ROA",
|
|
667
924
|
reqBodyType: "json",
|
|
668
925
|
bodyType: "json",
|
|
669
926
|
});
|
|
670
|
-
return $dara.cast<$_model.
|
|
927
|
+
return $dara.cast<$_model.DeletePrometheusViewResponse>(await this.callApi(params, req, runtime), new $_model.DeletePrometheusViewResponse({}));
|
|
671
928
|
}
|
|
672
929
|
|
|
673
930
|
/**
|
|
674
|
-
*
|
|
675
|
-
* @returns
|
|
931
|
+
* 删除prometheus视图实例
|
|
932
|
+
* @returns DeletePrometheusViewResponse
|
|
676
933
|
*/
|
|
677
|
-
async
|
|
934
|
+
async deletePrometheusView(prometheusViewId: string): Promise<$_model.DeletePrometheusViewResponse> {
|
|
678
935
|
let runtime = new $dara.RuntimeOptions({ });
|
|
679
936
|
let headers : {[key: string ]: string} = { };
|
|
680
|
-
return await this.
|
|
937
|
+
return await this.deletePrometheusViewWithOptions(prometheusViewId, headers, runtime);
|
|
681
938
|
}
|
|
682
939
|
|
|
683
940
|
/**
|
|
684
|
-
*
|
|
941
|
+
* 删除Service
|
|
685
942
|
*
|
|
686
943
|
* @param headers - map
|
|
687
944
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
688
|
-
* @returns
|
|
945
|
+
* @returns DeleteServiceResponse
|
|
689
946
|
*/
|
|
690
|
-
async
|
|
947
|
+
async deleteServiceWithOptions(workspace: string, serviceId: string, headers: {[key: string ]: string}, runtime: $dara.RuntimeOptions): Promise<$_model.DeleteServiceResponse> {
|
|
691
948
|
let req = new $OpenApiUtil.OpenApiRequest({
|
|
692
949
|
headers: headers,
|
|
693
950
|
});
|
|
694
951
|
let params = new $OpenApiUtil.Params({
|
|
695
|
-
action: "
|
|
952
|
+
action: "DeleteService",
|
|
696
953
|
version: "2024-03-30",
|
|
697
954
|
protocol: "HTTPS",
|
|
698
|
-
pathname: `/workspace/${$dara.URL.percentEncode(workspace)}/
|
|
699
|
-
method: "
|
|
955
|
+
pathname: `/workspace/${$dara.URL.percentEncode(workspace)}/service/${$dara.URL.percentEncode(serviceId)}`,
|
|
956
|
+
method: "DELETE",
|
|
700
957
|
authType: "AK",
|
|
701
958
|
style: "ROA",
|
|
702
959
|
reqBodyType: "json",
|
|
703
960
|
bodyType: "json",
|
|
704
961
|
});
|
|
705
|
-
return $dara.cast<$_model.
|
|
962
|
+
return $dara.cast<$_model.DeleteServiceResponse>(await this.callApi(params, req, runtime), new $_model.DeleteServiceResponse({}));
|
|
963
|
+
}
|
|
964
|
+
|
|
965
|
+
/**
|
|
966
|
+
* 删除Service
|
|
967
|
+
* @returns DeleteServiceResponse
|
|
968
|
+
*/
|
|
969
|
+
async deleteService(workspace: string, serviceId: string): Promise<$_model.DeleteServiceResponse> {
|
|
970
|
+
let runtime = new $dara.RuntimeOptions({ });
|
|
971
|
+
let headers : {[key: string ]: string} = { };
|
|
972
|
+
return await this.deleteServiceWithOptions(workspace, serviceId, headers, runtime);
|
|
973
|
+
}
|
|
974
|
+
|
|
975
|
+
/**
|
|
976
|
+
* 删除Umodel配置信息
|
|
977
|
+
*
|
|
978
|
+
* @param headers - map
|
|
979
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
980
|
+
* @returns DeleteUmodelResponse
|
|
981
|
+
*/
|
|
982
|
+
async deleteUmodelWithOptions(workspace: string, headers: {[key: string ]: string}, runtime: $dara.RuntimeOptions): Promise<$_model.DeleteUmodelResponse> {
|
|
983
|
+
let req = new $OpenApiUtil.OpenApiRequest({
|
|
984
|
+
headers: headers,
|
|
985
|
+
});
|
|
986
|
+
let params = new $OpenApiUtil.Params({
|
|
987
|
+
action: "DeleteUmodel",
|
|
988
|
+
version: "2024-03-30",
|
|
989
|
+
protocol: "HTTPS",
|
|
990
|
+
pathname: `/workspace/${$dara.URL.percentEncode(workspace)}/umodel`,
|
|
991
|
+
method: "DELETE",
|
|
992
|
+
authType: "AK",
|
|
993
|
+
style: "ROA",
|
|
994
|
+
reqBodyType: "json",
|
|
995
|
+
bodyType: "json",
|
|
996
|
+
});
|
|
997
|
+
return $dara.cast<$_model.DeleteUmodelResponse>(await this.callApi(params, req, runtime), new $_model.DeleteUmodelResponse({}));
|
|
998
|
+
}
|
|
999
|
+
|
|
1000
|
+
/**
|
|
1001
|
+
* 删除Umodel配置信息
|
|
1002
|
+
* @returns DeleteUmodelResponse
|
|
1003
|
+
*/
|
|
1004
|
+
async deleteUmodel(workspace: string): Promise<$_model.DeleteUmodelResponse> {
|
|
1005
|
+
let runtime = new $dara.RuntimeOptions({ });
|
|
1006
|
+
let headers : {[key: string ]: string} = { };
|
|
1007
|
+
return await this.deleteUmodelWithOptions(workspace, headers, runtime);
|
|
1008
|
+
}
|
|
1009
|
+
|
|
1010
|
+
/**
|
|
1011
|
+
* 删除 Umodel Elements
|
|
1012
|
+
*
|
|
1013
|
+
* @param request - DeleteUmodelDataRequest
|
|
1014
|
+
* @param headers - map
|
|
1015
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
1016
|
+
* @returns DeleteUmodelDataResponse
|
|
1017
|
+
*/
|
|
1018
|
+
async deleteUmodelDataWithOptions(workspace: string, request: $_model.DeleteUmodelDataRequest, headers: {[key: string ]: string}, runtime: $dara.RuntimeOptions): Promise<$_model.DeleteUmodelDataResponse> {
|
|
1019
|
+
request.validate();
|
|
1020
|
+
let query : {[key: string ]: any} = { };
|
|
1021
|
+
if (!$dara.isNull(request.domain)) {
|
|
1022
|
+
query["domain"] = request.domain;
|
|
1023
|
+
}
|
|
1024
|
+
|
|
1025
|
+
if (!$dara.isNull(request.kind)) {
|
|
1026
|
+
query["kind"] = request.kind;
|
|
1027
|
+
}
|
|
1028
|
+
|
|
1029
|
+
if (!$dara.isNull(request.name)) {
|
|
1030
|
+
query["name"] = request.name;
|
|
1031
|
+
}
|
|
1032
|
+
|
|
1033
|
+
let req = new $OpenApiUtil.OpenApiRequest({
|
|
1034
|
+
headers: headers,
|
|
1035
|
+
query: OpenApiUtil.query(query),
|
|
1036
|
+
});
|
|
1037
|
+
let params = new $OpenApiUtil.Params({
|
|
1038
|
+
action: "DeleteUmodelData",
|
|
1039
|
+
version: "2024-03-30",
|
|
1040
|
+
protocol: "HTTPS",
|
|
1041
|
+
pathname: `/workspace/${$dara.URL.percentEncode(workspace)}/umodel/data`,
|
|
1042
|
+
method: "DELETE",
|
|
1043
|
+
authType: "AK",
|
|
1044
|
+
style: "ROA",
|
|
1045
|
+
reqBodyType: "json",
|
|
1046
|
+
bodyType: "json",
|
|
1047
|
+
});
|
|
1048
|
+
return $dara.cast<$_model.DeleteUmodelDataResponse>(await this.callApi(params, req, runtime), new $_model.DeleteUmodelDataResponse({}));
|
|
1049
|
+
}
|
|
1050
|
+
|
|
1051
|
+
/**
|
|
1052
|
+
* 删除 Umodel Elements
|
|
1053
|
+
*
|
|
1054
|
+
* @param request - DeleteUmodelDataRequest
|
|
1055
|
+
* @returns DeleteUmodelDataResponse
|
|
1056
|
+
*/
|
|
1057
|
+
async deleteUmodelData(workspace: string, request: $_model.DeleteUmodelDataRequest): Promise<$_model.DeleteUmodelDataResponse> {
|
|
1058
|
+
let runtime = new $dara.RuntimeOptions({ });
|
|
1059
|
+
let headers : {[key: string ]: string} = { };
|
|
1060
|
+
return await this.deleteUmodelDataWithOptions(workspace, request, headers, runtime);
|
|
1061
|
+
}
|
|
1062
|
+
|
|
1063
|
+
/**
|
|
1064
|
+
* 删除工作空间
|
|
1065
|
+
*
|
|
1066
|
+
* @param headers - map
|
|
1067
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
1068
|
+
* @returns DeleteWorkspaceResponse
|
|
1069
|
+
*/
|
|
1070
|
+
async deleteWorkspaceWithOptions(workspaceName: string, headers: {[key: string ]: string}, runtime: $dara.RuntimeOptions): Promise<$_model.DeleteWorkspaceResponse> {
|
|
1071
|
+
let req = new $OpenApiUtil.OpenApiRequest({
|
|
1072
|
+
headers: headers,
|
|
1073
|
+
});
|
|
1074
|
+
let params = new $OpenApiUtil.Params({
|
|
1075
|
+
action: "DeleteWorkspace",
|
|
1076
|
+
version: "2024-03-30",
|
|
1077
|
+
protocol: "HTTPS",
|
|
1078
|
+
pathname: `/workspace/${$dara.URL.percentEncode(workspaceName)}`,
|
|
1079
|
+
method: "DELETE",
|
|
1080
|
+
authType: "AK",
|
|
1081
|
+
style: "ROA",
|
|
1082
|
+
reqBodyType: "json",
|
|
1083
|
+
bodyType: "json",
|
|
1084
|
+
});
|
|
1085
|
+
return $dara.cast<$_model.DeleteWorkspaceResponse>(await this.callApi(params, req, runtime), new $_model.DeleteWorkspaceResponse({}));
|
|
1086
|
+
}
|
|
1087
|
+
|
|
1088
|
+
/**
|
|
1089
|
+
* 删除工作空间
|
|
1090
|
+
* @returns DeleteWorkspaceResponse
|
|
1091
|
+
*/
|
|
1092
|
+
async deleteWorkspace(workspaceName: string): Promise<$_model.DeleteWorkspaceResponse> {
|
|
1093
|
+
let runtime = new $dara.RuntimeOptions({ });
|
|
1094
|
+
let headers : {[key: string ]: string} = { };
|
|
1095
|
+
return await this.deleteWorkspaceWithOptions(workspaceName, headers, runtime);
|
|
1096
|
+
}
|
|
1097
|
+
|
|
1098
|
+
/**
|
|
1099
|
+
* 查看addon release(查看接入状态)
|
|
1100
|
+
*
|
|
1101
|
+
* @param headers - map
|
|
1102
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
1103
|
+
* @returns GetAddonReleaseResponse
|
|
1104
|
+
*/
|
|
1105
|
+
async getAddonReleaseWithOptions(releaseName: string, policyId: string, headers: {[key: string ]: string}, runtime: $dara.RuntimeOptions): Promise<$_model.GetAddonReleaseResponse> {
|
|
1106
|
+
let req = new $OpenApiUtil.OpenApiRequest({
|
|
1107
|
+
headers: headers,
|
|
1108
|
+
});
|
|
1109
|
+
let params = new $OpenApiUtil.Params({
|
|
1110
|
+
action: "GetAddonRelease",
|
|
1111
|
+
version: "2024-03-30",
|
|
1112
|
+
protocol: "HTTPS",
|
|
1113
|
+
pathname: `/integration-policies/${$dara.URL.percentEncode(policyId)}/addon-releases/${$dara.URL.percentEncode(releaseName)}`,
|
|
1114
|
+
method: "GET",
|
|
1115
|
+
authType: "AK",
|
|
1116
|
+
style: "ROA",
|
|
1117
|
+
reqBodyType: "json",
|
|
1118
|
+
bodyType: "json",
|
|
1119
|
+
});
|
|
1120
|
+
return $dara.cast<$_model.GetAddonReleaseResponse>(await this.callApi(params, req, runtime), new $_model.GetAddonReleaseResponse({}));
|
|
1121
|
+
}
|
|
1122
|
+
|
|
1123
|
+
/**
|
|
1124
|
+
* 查看addon release(查看接入状态)
|
|
1125
|
+
* @returns GetAddonReleaseResponse
|
|
1126
|
+
*/
|
|
1127
|
+
async getAddonRelease(releaseName: string, policyId: string): Promise<$_model.GetAddonReleaseResponse> {
|
|
1128
|
+
let runtime = new $dara.RuntimeOptions({ });
|
|
1129
|
+
let headers : {[key: string ]: string} = { };
|
|
1130
|
+
return await this.getAddonReleaseWithOptions(releaseName, policyId, headers, runtime);
|
|
1131
|
+
}
|
|
1132
|
+
|
|
1133
|
+
/**
|
|
1134
|
+
* 描述聚合任务组
|
|
1135
|
+
*
|
|
1136
|
+
* @param headers - map
|
|
1137
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
1138
|
+
* @returns GetAggTaskGroupResponse
|
|
1139
|
+
*/
|
|
1140
|
+
async getAggTaskGroupWithOptions(instanceId: string, groupId: string, headers: {[key: string ]: string}, runtime: $dara.RuntimeOptions): Promise<$_model.GetAggTaskGroupResponse> {
|
|
1141
|
+
let req = new $OpenApiUtil.OpenApiRequest({
|
|
1142
|
+
headers: headers,
|
|
1143
|
+
});
|
|
1144
|
+
let params = new $OpenApiUtil.Params({
|
|
1145
|
+
action: "GetAggTaskGroup",
|
|
1146
|
+
version: "2024-03-30",
|
|
1147
|
+
protocol: "HTTPS",
|
|
1148
|
+
pathname: `/prometheus-instances/${$dara.URL.percentEncode(instanceId)}/agg-task-groups/${$dara.URL.percentEncode(groupId)}`,
|
|
1149
|
+
method: "GET",
|
|
1150
|
+
authType: "AK",
|
|
1151
|
+
style: "ROA",
|
|
1152
|
+
reqBodyType: "json",
|
|
1153
|
+
bodyType: "json",
|
|
1154
|
+
});
|
|
1155
|
+
return $dara.cast<$_model.GetAggTaskGroupResponse>(await this.callApi(params, req, runtime), new $_model.GetAggTaskGroupResponse({}));
|
|
1156
|
+
}
|
|
1157
|
+
|
|
1158
|
+
/**
|
|
1159
|
+
* 描述聚合任务组
|
|
1160
|
+
* @returns GetAggTaskGroupResponse
|
|
1161
|
+
*/
|
|
1162
|
+
async getAggTaskGroup(instanceId: string, groupId: string): Promise<$_model.GetAggTaskGroupResponse> {
|
|
1163
|
+
let runtime = new $dara.RuntimeOptions({ });
|
|
1164
|
+
let headers : {[key: string ]: string} = { };
|
|
1165
|
+
return await this.getAggTaskGroupWithOptions(instanceId, groupId, headers, runtime);
|
|
1166
|
+
}
|
|
1167
|
+
|
|
1168
|
+
/**
|
|
1169
|
+
* 获取EntityStore相关存储信息
|
|
1170
|
+
*
|
|
1171
|
+
* @param headers - map
|
|
1172
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
1173
|
+
* @returns GetEntityStoreResponse
|
|
1174
|
+
*/
|
|
1175
|
+
async getEntityStoreWithOptions(workspaceName: string, headers: {[key: string ]: string}, runtime: $dara.RuntimeOptions): Promise<$_model.GetEntityStoreResponse> {
|
|
1176
|
+
let req = new $OpenApiUtil.OpenApiRequest({
|
|
1177
|
+
headers: headers,
|
|
1178
|
+
});
|
|
1179
|
+
let params = new $OpenApiUtil.Params({
|
|
1180
|
+
action: "GetEntityStore",
|
|
1181
|
+
version: "2024-03-30",
|
|
1182
|
+
protocol: "HTTPS",
|
|
1183
|
+
pathname: `/workspace/${$dara.URL.percentEncode(workspaceName)}/entitystore`,
|
|
1184
|
+
method: "GET",
|
|
1185
|
+
authType: "AK",
|
|
1186
|
+
style: "ROA",
|
|
1187
|
+
reqBodyType: "json",
|
|
1188
|
+
bodyType: "json",
|
|
1189
|
+
});
|
|
1190
|
+
return $dara.cast<$_model.GetEntityStoreResponse>(await this.callApi(params, req, runtime), new $_model.GetEntityStoreResponse({}));
|
|
1191
|
+
}
|
|
1192
|
+
|
|
1193
|
+
/**
|
|
1194
|
+
* 获取EntityStore相关存储信息
|
|
1195
|
+
* @returns GetEntityStoreResponse
|
|
1196
|
+
*/
|
|
1197
|
+
async getEntityStore(workspaceName: string): Promise<$_model.GetEntityStoreResponse> {
|
|
1198
|
+
let runtime = new $dara.RuntimeOptions({ });
|
|
1199
|
+
let headers : {[key: string ]: string} = { };
|
|
1200
|
+
return await this.getEntityStoreWithOptions(workspaceName, headers, runtime);
|
|
1201
|
+
}
|
|
1202
|
+
|
|
1203
|
+
/**
|
|
1204
|
+
* 查询指定Workspace下的实体和关系数据,返回结果显示某时间区间中的实体数据(返回结果压缩后传输)。
|
|
1205
|
+
*
|
|
1206
|
+
* @param request - GetEntityStoreDataRequest
|
|
1207
|
+
* @param headers - GetEntityStoreDataHeaders
|
|
1208
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
1209
|
+
* @returns GetEntityStoreDataResponse
|
|
1210
|
+
*/
|
|
1211
|
+
async getEntityStoreDataWithOptions(workspace: string, request: $_model.GetEntityStoreDataRequest, headers: $_model.GetEntityStoreDataHeaders, runtime: $dara.RuntimeOptions): Promise<$_model.GetEntityStoreDataResponse> {
|
|
1212
|
+
request.validate();
|
|
1213
|
+
let body : {[key: string ]: any} = { };
|
|
1214
|
+
if (!$dara.isNull(request.from)) {
|
|
1215
|
+
body["from"] = request.from;
|
|
1216
|
+
}
|
|
1217
|
+
|
|
1218
|
+
if (!$dara.isNull(request.query)) {
|
|
1219
|
+
body["query"] = request.query;
|
|
1220
|
+
}
|
|
1221
|
+
|
|
1222
|
+
if (!$dara.isNull(request.to)) {
|
|
1223
|
+
body["to"] = request.to;
|
|
1224
|
+
}
|
|
1225
|
+
|
|
1226
|
+
let realHeaders : {[key: string ]: string} = { };
|
|
1227
|
+
if (!$dara.isNull(headers.commonHeaders)) {
|
|
1228
|
+
realHeaders = headers.commonHeaders;
|
|
1229
|
+
}
|
|
1230
|
+
|
|
1231
|
+
if (!$dara.isNull(headers.acceptEncoding)) {
|
|
1232
|
+
realHeaders["acceptEncoding"] = String(headers.acceptEncoding);
|
|
1233
|
+
}
|
|
1234
|
+
|
|
1235
|
+
let req = new $OpenApiUtil.OpenApiRequest({
|
|
1236
|
+
headers: realHeaders,
|
|
1237
|
+
body: OpenApiUtil.parseToMap(body),
|
|
1238
|
+
});
|
|
1239
|
+
let params = new $OpenApiUtil.Params({
|
|
1240
|
+
action: "GetEntityStoreData",
|
|
1241
|
+
version: "2024-03-30",
|
|
1242
|
+
protocol: "HTTPS",
|
|
1243
|
+
pathname: `/workspace/${$dara.URL.percentEncode(workspace)}/entitiesAndRelations`,
|
|
1244
|
+
method: "POST",
|
|
1245
|
+
authType: "AK",
|
|
1246
|
+
style: "ROA",
|
|
1247
|
+
reqBodyType: "json",
|
|
1248
|
+
bodyType: "json",
|
|
1249
|
+
});
|
|
1250
|
+
return $dara.cast<$_model.GetEntityStoreDataResponse>(await this.callApi(params, req, runtime), new $_model.GetEntityStoreDataResponse({}));
|
|
1251
|
+
}
|
|
1252
|
+
|
|
1253
|
+
/**
|
|
1254
|
+
* 查询指定Workspace下的实体和关系数据,返回结果显示某时间区间中的实体数据(返回结果压缩后传输)。
|
|
1255
|
+
*
|
|
1256
|
+
* @param request - GetEntityStoreDataRequest
|
|
1257
|
+
* @returns GetEntityStoreDataResponse
|
|
1258
|
+
*/
|
|
1259
|
+
async getEntityStoreData(workspace: string, request: $_model.GetEntityStoreDataRequest): Promise<$_model.GetEntityStoreDataResponse> {
|
|
1260
|
+
let runtime = new $dara.RuntimeOptions({ });
|
|
1261
|
+
let headers = new $_model.GetEntityStoreDataHeaders({ });
|
|
1262
|
+
return await this.getEntityStoreDataWithOptions(workspace, request, headers, runtime);
|
|
1263
|
+
}
|
|
1264
|
+
|
|
1265
|
+
/**
|
|
1266
|
+
* 查询接入中心策略列表信息
|
|
1267
|
+
*
|
|
1268
|
+
* @param headers - map
|
|
1269
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
1270
|
+
* @returns GetIntegrationPolicyResponse
|
|
1271
|
+
*/
|
|
1272
|
+
async getIntegrationPolicyWithOptions(policyId: string, headers: {[key: string ]: string}, runtime: $dara.RuntimeOptions): Promise<$_model.GetIntegrationPolicyResponse> {
|
|
1273
|
+
let req = new $OpenApiUtil.OpenApiRequest({
|
|
1274
|
+
headers: headers,
|
|
1275
|
+
});
|
|
1276
|
+
let params = new $OpenApiUtil.Params({
|
|
1277
|
+
action: "GetIntegrationPolicy",
|
|
1278
|
+
version: "2024-03-30",
|
|
1279
|
+
protocol: "HTTPS",
|
|
1280
|
+
pathname: `/integration-policies/${$dara.URL.percentEncode(policyId)}`,
|
|
1281
|
+
method: "GET",
|
|
1282
|
+
authType: "AK",
|
|
1283
|
+
style: "ROA",
|
|
1284
|
+
reqBodyType: "json",
|
|
1285
|
+
bodyType: "json",
|
|
1286
|
+
});
|
|
1287
|
+
return $dara.cast<$_model.GetIntegrationPolicyResponse>(await this.callApi(params, req, runtime), new $_model.GetIntegrationPolicyResponse({}));
|
|
1288
|
+
}
|
|
1289
|
+
|
|
1290
|
+
/**
|
|
1291
|
+
* 查询接入中心策略列表信息
|
|
1292
|
+
* @returns GetIntegrationPolicyResponse
|
|
1293
|
+
*/
|
|
1294
|
+
async getIntegrationPolicy(policyId: string): Promise<$_model.GetIntegrationPolicyResponse> {
|
|
1295
|
+
let runtime = new $dara.RuntimeOptions({ });
|
|
1296
|
+
let headers : {[key: string ]: string} = { };
|
|
1297
|
+
return await this.getIntegrationPolicyWithOptions(policyId, headers, runtime);
|
|
1298
|
+
}
|
|
1299
|
+
|
|
1300
|
+
/**
|
|
1301
|
+
* 查询指定环境实例
|
|
1302
|
+
*
|
|
1303
|
+
* @param request - GetPrometheusInstanceRequest
|
|
1304
|
+
* @param headers - map
|
|
1305
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
1306
|
+
* @returns GetPrometheusInstanceResponse
|
|
1307
|
+
*/
|
|
1308
|
+
async getPrometheusInstanceWithOptions(prometheusInstanceId: string, request: $_model.GetPrometheusInstanceRequest, headers: {[key: string ]: string}, runtime: $dara.RuntimeOptions): Promise<$_model.GetPrometheusInstanceResponse> {
|
|
1309
|
+
request.validate();
|
|
1310
|
+
let query : {[key: string ]: any} = { };
|
|
1311
|
+
if (!$dara.isNull(request.aliyunLang)) {
|
|
1312
|
+
query["aliyunLang"] = request.aliyunLang;
|
|
1313
|
+
}
|
|
1314
|
+
|
|
1315
|
+
if (!$dara.isNull(request.resourceGroupId)) {
|
|
1316
|
+
query["resourceGroupId"] = request.resourceGroupId;
|
|
1317
|
+
}
|
|
1318
|
+
|
|
1319
|
+
let req = new $OpenApiUtil.OpenApiRequest({
|
|
1320
|
+
headers: headers,
|
|
1321
|
+
query: OpenApiUtil.query(query),
|
|
1322
|
+
});
|
|
1323
|
+
let params = new $OpenApiUtil.Params({
|
|
1324
|
+
action: "GetPrometheusInstance",
|
|
1325
|
+
version: "2024-03-30",
|
|
1326
|
+
protocol: "HTTPS",
|
|
1327
|
+
pathname: `/prometheus-instances/${$dara.URL.percentEncode(prometheusInstanceId)}`,
|
|
1328
|
+
method: "GET",
|
|
1329
|
+
authType: "AK",
|
|
1330
|
+
style: "ROA",
|
|
1331
|
+
reqBodyType: "json",
|
|
1332
|
+
bodyType: "json",
|
|
1333
|
+
});
|
|
1334
|
+
return $dara.cast<$_model.GetPrometheusInstanceResponse>(await this.callApi(params, req, runtime), new $_model.GetPrometheusInstanceResponse({}));
|
|
1335
|
+
}
|
|
1336
|
+
|
|
1337
|
+
/**
|
|
1338
|
+
* 查询指定环境实例
|
|
1339
|
+
*
|
|
1340
|
+
* @param request - GetPrometheusInstanceRequest
|
|
1341
|
+
* @returns GetPrometheusInstanceResponse
|
|
1342
|
+
*/
|
|
1343
|
+
async getPrometheusInstance(prometheusInstanceId: string, request: $_model.GetPrometheusInstanceRequest): Promise<$_model.GetPrometheusInstanceResponse> {
|
|
1344
|
+
let runtime = new $dara.RuntimeOptions({ });
|
|
1345
|
+
let headers : {[key: string ]: string} = { };
|
|
1346
|
+
return await this.getPrometheusInstanceWithOptions(prometheusInstanceId, request, headers, runtime);
|
|
1347
|
+
}
|
|
1348
|
+
|
|
1349
|
+
/**
|
|
1350
|
+
* 查询指定Prometheus视图实例
|
|
1351
|
+
*
|
|
1352
|
+
* @param request - GetPrometheusViewRequest
|
|
1353
|
+
* @param headers - map
|
|
1354
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
1355
|
+
* @returns GetPrometheusViewResponse
|
|
1356
|
+
*/
|
|
1357
|
+
async getPrometheusViewWithOptions(prometheusViewId: string, request: $_model.GetPrometheusViewRequest, headers: {[key: string ]: string}, runtime: $dara.RuntimeOptions): Promise<$_model.GetPrometheusViewResponse> {
|
|
1358
|
+
request.validate();
|
|
1359
|
+
let query : {[key: string ]: any} = { };
|
|
1360
|
+
if (!$dara.isNull(request.aliyunLang)) {
|
|
1361
|
+
query["aliyunLang"] = request.aliyunLang;
|
|
1362
|
+
}
|
|
1363
|
+
|
|
1364
|
+
if (!$dara.isNull(request.resourceGroupId)) {
|
|
1365
|
+
query["resourceGroupId"] = request.resourceGroupId;
|
|
1366
|
+
}
|
|
1367
|
+
|
|
1368
|
+
let req = new $OpenApiUtil.OpenApiRequest({
|
|
1369
|
+
headers: headers,
|
|
1370
|
+
query: OpenApiUtil.query(query),
|
|
1371
|
+
});
|
|
1372
|
+
let params = new $OpenApiUtil.Params({
|
|
1373
|
+
action: "GetPrometheusView",
|
|
1374
|
+
version: "2024-03-30",
|
|
1375
|
+
protocol: "HTTPS",
|
|
1376
|
+
pathname: `/prometheus-views/${$dara.URL.percentEncode(prometheusViewId)}`,
|
|
1377
|
+
method: "GET",
|
|
1378
|
+
authType: "AK",
|
|
1379
|
+
style: "ROA",
|
|
1380
|
+
reqBodyType: "json",
|
|
1381
|
+
bodyType: "json",
|
|
1382
|
+
});
|
|
1383
|
+
return $dara.cast<$_model.GetPrometheusViewResponse>(await this.callApi(params, req, runtime), new $_model.GetPrometheusViewResponse({}));
|
|
1384
|
+
}
|
|
1385
|
+
|
|
1386
|
+
/**
|
|
1387
|
+
* 查询指定Prometheus视图实例
|
|
1388
|
+
*
|
|
1389
|
+
* @param request - GetPrometheusViewRequest
|
|
1390
|
+
* @returns GetPrometheusViewResponse
|
|
1391
|
+
*/
|
|
1392
|
+
async getPrometheusView(prometheusViewId: string, request: $_model.GetPrometheusViewRequest): Promise<$_model.GetPrometheusViewResponse> {
|
|
1393
|
+
let runtime = new $dara.RuntimeOptions({ });
|
|
1394
|
+
let headers : {[key: string ]: string} = { };
|
|
1395
|
+
return await this.getPrometheusViewWithOptions(prometheusViewId, request, headers, runtime);
|
|
1396
|
+
}
|
|
1397
|
+
|
|
1398
|
+
/**
|
|
1399
|
+
* 查询 Service
|
|
1400
|
+
*
|
|
1401
|
+
* @param headers - map
|
|
1402
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
1403
|
+
* @returns GetServiceResponse
|
|
1404
|
+
*/
|
|
1405
|
+
async getServiceWithOptions(workspace: string, serviceId: string, headers: {[key: string ]: string}, runtime: $dara.RuntimeOptions): Promise<$_model.GetServiceResponse> {
|
|
1406
|
+
let req = new $OpenApiUtil.OpenApiRequest({
|
|
1407
|
+
headers: headers,
|
|
1408
|
+
});
|
|
1409
|
+
let params = new $OpenApiUtil.Params({
|
|
1410
|
+
action: "GetService",
|
|
1411
|
+
version: "2024-03-30",
|
|
1412
|
+
protocol: "HTTPS",
|
|
1413
|
+
pathname: `/workspace/${$dara.URL.percentEncode(workspace)}/service/${$dara.URL.percentEncode(serviceId)}`,
|
|
1414
|
+
method: "GET",
|
|
1415
|
+
authType: "AK",
|
|
1416
|
+
style: "ROA",
|
|
1417
|
+
reqBodyType: "json",
|
|
1418
|
+
bodyType: "json",
|
|
1419
|
+
});
|
|
1420
|
+
return $dara.cast<$_model.GetServiceResponse>(await this.callApi(params, req, runtime), new $_model.GetServiceResponse({}));
|
|
1421
|
+
}
|
|
1422
|
+
|
|
1423
|
+
/**
|
|
1424
|
+
* 查询 Service
|
|
1425
|
+
* @returns GetServiceResponse
|
|
1426
|
+
*/
|
|
1427
|
+
async getService(workspace: string, serviceId: string): Promise<$_model.GetServiceResponse> {
|
|
1428
|
+
let runtime = new $dara.RuntimeOptions({ });
|
|
1429
|
+
let headers : {[key: string ]: string} = { };
|
|
1430
|
+
return await this.getServiceWithOptions(workspace, serviceId, headers, runtime);
|
|
1431
|
+
}
|
|
1432
|
+
|
|
1433
|
+
/**
|
|
1434
|
+
* 获取应用可观测实例
|
|
1435
|
+
*
|
|
1436
|
+
* @param headers - map
|
|
1437
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
1438
|
+
* @returns GetServiceObservabilityResponse
|
|
1439
|
+
*/
|
|
1440
|
+
async getServiceObservabilityWithOptions(workspace: string, type: string, headers: {[key: string ]: string}, runtime: $dara.RuntimeOptions): Promise<$_model.GetServiceObservabilityResponse> {
|
|
1441
|
+
let req = new $OpenApiUtil.OpenApiRequest({
|
|
1442
|
+
headers: headers,
|
|
1443
|
+
});
|
|
1444
|
+
let params = new $OpenApiUtil.Params({
|
|
1445
|
+
action: "GetServiceObservability",
|
|
1446
|
+
version: "2024-03-30",
|
|
1447
|
+
protocol: "HTTPS",
|
|
1448
|
+
pathname: `/workspace/${$dara.URL.percentEncode(workspace)}/service-observability/${$dara.URL.percentEncode(type)}`,
|
|
1449
|
+
method: "GET",
|
|
1450
|
+
authType: "AK",
|
|
1451
|
+
style: "ROA",
|
|
1452
|
+
reqBodyType: "json",
|
|
1453
|
+
bodyType: "json",
|
|
1454
|
+
});
|
|
1455
|
+
return $dara.cast<$_model.GetServiceObservabilityResponse>(await this.callApi(params, req, runtime), new $_model.GetServiceObservabilityResponse({}));
|
|
1456
|
+
}
|
|
1457
|
+
|
|
1458
|
+
/**
|
|
1459
|
+
* 获取应用可观测实例
|
|
1460
|
+
* @returns GetServiceObservabilityResponse
|
|
1461
|
+
*/
|
|
1462
|
+
async getServiceObservability(workspace: string, type: string): Promise<$_model.GetServiceObservabilityResponse> {
|
|
1463
|
+
let runtime = new $dara.RuntimeOptions({ });
|
|
1464
|
+
let headers : {[key: string ]: string} = { };
|
|
1465
|
+
return await this.getServiceObservabilityWithOptions(workspace, type, headers, runtime);
|
|
1466
|
+
}
|
|
1467
|
+
|
|
1468
|
+
/**
|
|
1469
|
+
* 获取Umodel配置信息
|
|
1470
|
+
*
|
|
1471
|
+
* @param headers - map
|
|
1472
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
1473
|
+
* @returns GetUmodelResponse
|
|
1474
|
+
*/
|
|
1475
|
+
async getUmodelWithOptions(workspace: string, headers: {[key: string ]: string}, runtime: $dara.RuntimeOptions): Promise<$_model.GetUmodelResponse> {
|
|
1476
|
+
let req = new $OpenApiUtil.OpenApiRequest({
|
|
1477
|
+
headers: headers,
|
|
1478
|
+
});
|
|
1479
|
+
let params = new $OpenApiUtil.Params({
|
|
1480
|
+
action: "GetUmodel",
|
|
1481
|
+
version: "2024-03-30",
|
|
1482
|
+
protocol: "HTTPS",
|
|
1483
|
+
pathname: `/workspace/${$dara.URL.percentEncode(workspace)}/umodel`,
|
|
1484
|
+
method: "GET",
|
|
1485
|
+
authType: "AK",
|
|
1486
|
+
style: "ROA",
|
|
1487
|
+
reqBodyType: "json",
|
|
1488
|
+
bodyType: "json",
|
|
1489
|
+
});
|
|
1490
|
+
return $dara.cast<$_model.GetUmodelResponse>(await this.callApi(params, req, runtime), new $_model.GetUmodelResponse({}));
|
|
1491
|
+
}
|
|
1492
|
+
|
|
1493
|
+
/**
|
|
1494
|
+
* 获取Umodel配置信息
|
|
1495
|
+
* @returns GetUmodelResponse
|
|
1496
|
+
*/
|
|
1497
|
+
async getUmodel(workspace: string): Promise<$_model.GetUmodelResponse> {
|
|
1498
|
+
let runtime = new $dara.RuntimeOptions({ });
|
|
1499
|
+
let headers : {[key: string ]: string} = { };
|
|
1500
|
+
return await this.getUmodelWithOptions(workspace, headers, runtime);
|
|
1501
|
+
}
|
|
1502
|
+
|
|
1503
|
+
/**
|
|
1504
|
+
* 获取相关联的 Umodel 图数据
|
|
1505
|
+
*
|
|
1506
|
+
* @param request - GetUmodelDataRequest
|
|
1507
|
+
* @param headers - map
|
|
1508
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
1509
|
+
* @returns GetUmodelDataResponse
|
|
1510
|
+
*/
|
|
1511
|
+
async getUmodelDataWithOptions(workspace: string, request: $_model.GetUmodelDataRequest, headers: {[key: string ]: string}, runtime: $dara.RuntimeOptions): Promise<$_model.GetUmodelDataResponse> {
|
|
1512
|
+
request.validate();
|
|
1513
|
+
let query : {[key: string ]: any} = { };
|
|
1514
|
+
if (!$dara.isNull(request.method)) {
|
|
1515
|
+
query["method"] = request.method;
|
|
1516
|
+
}
|
|
1517
|
+
|
|
1518
|
+
let body : {[key: string ]: any} = { };
|
|
1519
|
+
if (!$dara.isNull(request.content)) {
|
|
1520
|
+
body["content"] = request.content;
|
|
1521
|
+
}
|
|
1522
|
+
|
|
1523
|
+
let req = new $OpenApiUtil.OpenApiRequest({
|
|
1524
|
+
headers: headers,
|
|
1525
|
+
query: OpenApiUtil.query(query),
|
|
1526
|
+
body: OpenApiUtil.parseToMap(body),
|
|
1527
|
+
});
|
|
1528
|
+
let params = new $OpenApiUtil.Params({
|
|
1529
|
+
action: "GetUmodelData",
|
|
1530
|
+
version: "2024-03-30",
|
|
1531
|
+
protocol: "HTTPS",
|
|
1532
|
+
pathname: `/workspace/${$dara.URL.percentEncode(workspace)}/umodel/graph`,
|
|
1533
|
+
method: "POST",
|
|
1534
|
+
authType: "AK",
|
|
1535
|
+
style: "ROA",
|
|
1536
|
+
reqBodyType: "json",
|
|
1537
|
+
bodyType: "json",
|
|
1538
|
+
});
|
|
1539
|
+
return $dara.cast<$_model.GetUmodelDataResponse>(await this.callApi(params, req, runtime), new $_model.GetUmodelDataResponse({}));
|
|
1540
|
+
}
|
|
1541
|
+
|
|
1542
|
+
/**
|
|
1543
|
+
* 获取相关联的 Umodel 图数据
|
|
1544
|
+
*
|
|
1545
|
+
* @param request - GetUmodelDataRequest
|
|
1546
|
+
* @returns GetUmodelDataResponse
|
|
1547
|
+
*/
|
|
1548
|
+
async getUmodelData(workspace: string, request: $_model.GetUmodelDataRequest): Promise<$_model.GetUmodelDataResponse> {
|
|
1549
|
+
let runtime = new $dara.RuntimeOptions({ });
|
|
1550
|
+
let headers : {[key: string ]: string} = { };
|
|
1551
|
+
return await this.getUmodelDataWithOptions(workspace, request, headers, runtime);
|
|
1552
|
+
}
|
|
1553
|
+
|
|
1554
|
+
/**
|
|
1555
|
+
* 获取工作空间
|
|
1556
|
+
*
|
|
1557
|
+
* @param headers - map
|
|
1558
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
1559
|
+
* @returns GetWorkspaceResponse
|
|
1560
|
+
*/
|
|
1561
|
+
async getWorkspaceWithOptions(workspaceName: string, headers: {[key: string ]: string}, runtime: $dara.RuntimeOptions): Promise<$_model.GetWorkspaceResponse> {
|
|
1562
|
+
let req = new $OpenApiUtil.OpenApiRequest({
|
|
1563
|
+
headers: headers,
|
|
1564
|
+
});
|
|
1565
|
+
let params = new $OpenApiUtil.Params({
|
|
1566
|
+
action: "GetWorkspace",
|
|
1567
|
+
version: "2024-03-30",
|
|
1568
|
+
protocol: "HTTPS",
|
|
1569
|
+
pathname: `/workspace/${$dara.URL.percentEncode(workspaceName)}`,
|
|
1570
|
+
method: "GET",
|
|
1571
|
+
authType: "AK",
|
|
1572
|
+
style: "ROA",
|
|
1573
|
+
reqBodyType: "json",
|
|
1574
|
+
bodyType: "json",
|
|
1575
|
+
});
|
|
1576
|
+
return $dara.cast<$_model.GetWorkspaceResponse>(await this.callApi(params, req, runtime), new $_model.GetWorkspaceResponse({}));
|
|
1577
|
+
}
|
|
1578
|
+
|
|
1579
|
+
/**
|
|
1580
|
+
* 获取工作空间
|
|
1581
|
+
* @returns GetWorkspaceResponse
|
|
1582
|
+
*/
|
|
1583
|
+
async getWorkspace(workspaceName: string): Promise<$_model.GetWorkspaceResponse> {
|
|
1584
|
+
let runtime = new $dara.RuntimeOptions({ });
|
|
1585
|
+
let headers : {[key: string ]: string} = { };
|
|
1586
|
+
return await this.getWorkspaceWithOptions(workspaceName, headers, runtime);
|
|
1587
|
+
}
|
|
1588
|
+
|
|
1589
|
+
/**
|
|
1590
|
+
* addon的release列表
|
|
1591
|
+
*
|
|
1592
|
+
* @param request - ListAddonReleasesRequest
|
|
1593
|
+
* @param headers - map
|
|
1594
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
1595
|
+
* @returns ListAddonReleasesResponse
|
|
1596
|
+
*/
|
|
1597
|
+
async listAddonReleasesWithOptions(policyId: string, request: $_model.ListAddonReleasesRequest, headers: {[key: string ]: string}, runtime: $dara.RuntimeOptions): Promise<$_model.ListAddonReleasesResponse> {
|
|
1598
|
+
request.validate();
|
|
1599
|
+
let query : {[key: string ]: any} = { };
|
|
1600
|
+
if (!$dara.isNull(request.addonName)) {
|
|
1601
|
+
query["addonName"] = request.addonName;
|
|
1602
|
+
}
|
|
1603
|
+
|
|
1604
|
+
if (!$dara.isNull(request.parentAddonReleaseId)) {
|
|
1605
|
+
query["parentAddonReleaseId"] = request.parentAddonReleaseId;
|
|
1606
|
+
}
|
|
1607
|
+
|
|
1608
|
+
let req = new $OpenApiUtil.OpenApiRequest({
|
|
1609
|
+
headers: headers,
|
|
1610
|
+
query: OpenApiUtil.query(query),
|
|
1611
|
+
});
|
|
1612
|
+
let params = new $OpenApiUtil.Params({
|
|
1613
|
+
action: "ListAddonReleases",
|
|
1614
|
+
version: "2024-03-30",
|
|
1615
|
+
protocol: "HTTPS",
|
|
1616
|
+
pathname: `/integration-policies/${$dara.URL.percentEncode(policyId)}/addon-releases`,
|
|
1617
|
+
method: "GET",
|
|
1618
|
+
authType: "AK",
|
|
1619
|
+
style: "ROA",
|
|
1620
|
+
reqBodyType: "json",
|
|
1621
|
+
bodyType: "json",
|
|
1622
|
+
});
|
|
1623
|
+
return $dara.cast<$_model.ListAddonReleasesResponse>(await this.callApi(params, req, runtime), new $_model.ListAddonReleasesResponse({}));
|
|
1624
|
+
}
|
|
1625
|
+
|
|
1626
|
+
/**
|
|
1627
|
+
* addon的release列表
|
|
1628
|
+
*
|
|
1629
|
+
* @param request - ListAddonReleasesRequest
|
|
1630
|
+
* @returns ListAddonReleasesResponse
|
|
1631
|
+
*/
|
|
1632
|
+
async listAddonReleases(policyId: string, request: $_model.ListAddonReleasesRequest): Promise<$_model.ListAddonReleasesResponse> {
|
|
1633
|
+
let runtime = new $dara.RuntimeOptions({ });
|
|
1634
|
+
let headers : {[key: string ]: string} = { };
|
|
1635
|
+
return await this.listAddonReleasesWithOptions(policyId, request, headers, runtime);
|
|
1636
|
+
}
|
|
1637
|
+
|
|
1638
|
+
/**
|
|
1639
|
+
* 列举聚合任务组
|
|
1640
|
+
*
|
|
1641
|
+
* @param tmpReq - ListAggTaskGroupsRequest
|
|
1642
|
+
* @param headers - map
|
|
1643
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
1644
|
+
* @returns ListAggTaskGroupsResponse
|
|
1645
|
+
*/
|
|
1646
|
+
async listAggTaskGroupsWithOptions(instanceId: string, tmpReq: $_model.ListAggTaskGroupsRequest, headers: {[key: string ]: string}, runtime: $dara.RuntimeOptions): Promise<$_model.ListAggTaskGroupsResponse> {
|
|
1647
|
+
tmpReq.validate();
|
|
1648
|
+
let request = new $_model.ListAggTaskGroupsShrinkRequest({ });
|
|
1649
|
+
OpenApiUtil.convert(tmpReq, request);
|
|
1650
|
+
if (!$dara.isNull(tmpReq.tags)) {
|
|
1651
|
+
request.tagsShrink = OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.tags, "tags", "json");
|
|
1652
|
+
}
|
|
1653
|
+
|
|
1654
|
+
let query : {[key: string ]: any} = { };
|
|
1655
|
+
if (!$dara.isNull(request.filterAggTaskGroupIds)) {
|
|
1656
|
+
query["filterAggTaskGroupIds"] = request.filterAggTaskGroupIds;
|
|
1657
|
+
}
|
|
1658
|
+
|
|
1659
|
+
if (!$dara.isNull(request.filterAggTaskGroupNames)) {
|
|
1660
|
+
query["filterAggTaskGroupNames"] = request.filterAggTaskGroupNames;
|
|
1661
|
+
}
|
|
1662
|
+
|
|
1663
|
+
if (!$dara.isNull(request.maxResults)) {
|
|
1664
|
+
query["maxResults"] = request.maxResults;
|
|
1665
|
+
}
|
|
1666
|
+
|
|
1667
|
+
if (!$dara.isNull(request.nextToken)) {
|
|
1668
|
+
query["nextToken"] = request.nextToken;
|
|
1669
|
+
}
|
|
1670
|
+
|
|
1671
|
+
if (!$dara.isNull(request.query)) {
|
|
1672
|
+
query["query"] = request.query;
|
|
1673
|
+
}
|
|
1674
|
+
|
|
1675
|
+
if (!$dara.isNull(request.status)) {
|
|
1676
|
+
query["status"] = request.status;
|
|
1677
|
+
}
|
|
1678
|
+
|
|
1679
|
+
if (!$dara.isNull(request.tagsShrink)) {
|
|
1680
|
+
query["tags"] = request.tagsShrink;
|
|
1681
|
+
}
|
|
1682
|
+
|
|
1683
|
+
if (!$dara.isNull(request.targetPrometheusId)) {
|
|
1684
|
+
query["targetPrometheusId"] = request.targetPrometheusId;
|
|
1685
|
+
}
|
|
1686
|
+
|
|
1687
|
+
let req = new $OpenApiUtil.OpenApiRequest({
|
|
1688
|
+
headers: headers,
|
|
1689
|
+
query: OpenApiUtil.query(query),
|
|
1690
|
+
});
|
|
1691
|
+
let params = new $OpenApiUtil.Params({
|
|
1692
|
+
action: "ListAggTaskGroups",
|
|
1693
|
+
version: "2024-03-30",
|
|
1694
|
+
protocol: "HTTPS",
|
|
1695
|
+
pathname: `/prometheus-instances/${$dara.URL.percentEncode(instanceId)}/agg-task-groups`,
|
|
1696
|
+
method: "GET",
|
|
1697
|
+
authType: "AK",
|
|
1698
|
+
style: "ROA",
|
|
1699
|
+
reqBodyType: "json",
|
|
1700
|
+
bodyType: "json",
|
|
1701
|
+
});
|
|
1702
|
+
return $dara.cast<$_model.ListAggTaskGroupsResponse>(await this.callApi(params, req, runtime), new $_model.ListAggTaskGroupsResponse({}));
|
|
1703
|
+
}
|
|
1704
|
+
|
|
1705
|
+
/**
|
|
1706
|
+
* 列举聚合任务组
|
|
1707
|
+
*
|
|
1708
|
+
* @param request - ListAggTaskGroupsRequest
|
|
1709
|
+
* @returns ListAggTaskGroupsResponse
|
|
1710
|
+
*/
|
|
1711
|
+
async listAggTaskGroups(instanceId: string, request: $_model.ListAggTaskGroupsRequest): Promise<$_model.ListAggTaskGroupsResponse> {
|
|
1712
|
+
let runtime = new $dara.RuntimeOptions({ });
|
|
1713
|
+
let headers : {[key: string ]: string} = { };
|
|
1714
|
+
return await this.listAggTaskGroupsWithOptions(instanceId, request, headers, runtime);
|
|
1715
|
+
}
|
|
1716
|
+
|
|
1717
|
+
/**
|
|
1718
|
+
* 查询告警动作
|
|
1719
|
+
*
|
|
1720
|
+
* @param tmpReq - ListAlertActionsRequest
|
|
1721
|
+
* @param headers - map
|
|
1722
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
1723
|
+
* @returns ListAlertActionsResponse
|
|
1724
|
+
*/
|
|
1725
|
+
async listAlertActionsWithOptions(tmpReq: $_model.ListAlertActionsRequest, headers: {[key: string ]: string}, runtime: $dara.RuntimeOptions): Promise<$_model.ListAlertActionsResponse> {
|
|
1726
|
+
tmpReq.validate();
|
|
1727
|
+
let request = new $_model.ListAlertActionsShrinkRequest({ });
|
|
1728
|
+
OpenApiUtil.convert(tmpReq, request);
|
|
1729
|
+
if (!$dara.isNull(tmpReq.alertActionIds)) {
|
|
1730
|
+
request.alertActionIdsShrink = OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.alertActionIds, "alertActionIds", "json");
|
|
1731
|
+
}
|
|
1732
|
+
|
|
1733
|
+
let query : {[key: string ]: any} = { };
|
|
1734
|
+
if (!$dara.isNull(request.alertActionIdsShrink)) {
|
|
1735
|
+
query["alertActionIds"] = request.alertActionIdsShrink;
|
|
1736
|
+
}
|
|
1737
|
+
|
|
1738
|
+
if (!$dara.isNull(request.alertActionName)) {
|
|
1739
|
+
query["alertActionName"] = request.alertActionName;
|
|
1740
|
+
}
|
|
1741
|
+
|
|
1742
|
+
if (!$dara.isNull(request.pageNumber)) {
|
|
1743
|
+
query["pageNumber"] = request.pageNumber;
|
|
1744
|
+
}
|
|
1745
|
+
|
|
1746
|
+
if (!$dara.isNull(request.pageSize)) {
|
|
1747
|
+
query["pageSize"] = request.pageSize;
|
|
1748
|
+
}
|
|
1749
|
+
|
|
1750
|
+
if (!$dara.isNull(request.type)) {
|
|
1751
|
+
query["type"] = request.type;
|
|
1752
|
+
}
|
|
1753
|
+
|
|
1754
|
+
let req = new $OpenApiUtil.OpenApiRequest({
|
|
1755
|
+
headers: headers,
|
|
1756
|
+
query: OpenApiUtil.query(query),
|
|
1757
|
+
});
|
|
1758
|
+
let params = new $OpenApiUtil.Params({
|
|
1759
|
+
action: "ListAlertActions",
|
|
1760
|
+
version: "2024-03-30",
|
|
1761
|
+
protocol: "HTTPS",
|
|
1762
|
+
pathname: `/alertActions`,
|
|
1763
|
+
method: "GET",
|
|
1764
|
+
authType: "AK",
|
|
1765
|
+
style: "ROA",
|
|
1766
|
+
reqBodyType: "json",
|
|
1767
|
+
bodyType: "json",
|
|
1768
|
+
});
|
|
1769
|
+
return $dara.cast<$_model.ListAlertActionsResponse>(await this.callApi(params, req, runtime), new $_model.ListAlertActionsResponse({}));
|
|
1770
|
+
}
|
|
1771
|
+
|
|
1772
|
+
/**
|
|
1773
|
+
* 查询告警动作
|
|
1774
|
+
*
|
|
1775
|
+
* @param request - ListAlertActionsRequest
|
|
1776
|
+
* @returns ListAlertActionsResponse
|
|
1777
|
+
*/
|
|
1778
|
+
async listAlertActions(request: $_model.ListAlertActionsRequest): Promise<$_model.ListAlertActionsResponse> {
|
|
1779
|
+
let runtime = new $dara.RuntimeOptions({ });
|
|
1780
|
+
let headers : {[key: string ]: string} = { };
|
|
1781
|
+
return await this.listAlertActionsWithOptions(request, headers, runtime);
|
|
1782
|
+
}
|
|
1783
|
+
|
|
1784
|
+
/**
|
|
1785
|
+
* 获取接入中心策略的存储要求信息
|
|
1786
|
+
*
|
|
1787
|
+
* @param request - ListIntegrationPolicyCustomScrapeJobRulesRequest
|
|
1788
|
+
* @param headers - map
|
|
1789
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
1790
|
+
* @returns ListIntegrationPolicyCustomScrapeJobRulesResponse
|
|
1791
|
+
*/
|
|
1792
|
+
async listIntegrationPolicyCustomScrapeJobRulesWithOptions(policyId: string, request: $_model.ListIntegrationPolicyCustomScrapeJobRulesRequest, headers: {[key: string ]: string}, runtime: $dara.RuntimeOptions): Promise<$_model.ListIntegrationPolicyCustomScrapeJobRulesResponse> {
|
|
1793
|
+
request.validate();
|
|
1794
|
+
let query : {[key: string ]: any} = { };
|
|
1795
|
+
if (!$dara.isNull(request.addonReleaseName)) {
|
|
1796
|
+
query["addonReleaseName"] = request.addonReleaseName;
|
|
1797
|
+
}
|
|
1798
|
+
|
|
1799
|
+
if (!$dara.isNull(request.encryptYaml)) {
|
|
1800
|
+
query["encryptYaml"] = request.encryptYaml;
|
|
1801
|
+
}
|
|
1802
|
+
|
|
1803
|
+
if (!$dara.isNull(request.namespace)) {
|
|
1804
|
+
query["namespace"] = request.namespace;
|
|
1805
|
+
}
|
|
1806
|
+
|
|
1807
|
+
let req = new $OpenApiUtil.OpenApiRequest({
|
|
1808
|
+
headers: headers,
|
|
1809
|
+
query: OpenApiUtil.query(query),
|
|
1810
|
+
});
|
|
1811
|
+
let params = new $OpenApiUtil.Params({
|
|
1812
|
+
action: "ListIntegrationPolicyCustomScrapeJobRules",
|
|
1813
|
+
version: "2024-03-30",
|
|
1814
|
+
protocol: "HTTPS",
|
|
1815
|
+
pathname: `/integration-policies/${$dara.URL.percentEncode(policyId)}/custom-scrape-job-rules`,
|
|
1816
|
+
method: "GET",
|
|
1817
|
+
authType: "AK",
|
|
1818
|
+
style: "ROA",
|
|
1819
|
+
reqBodyType: "json",
|
|
1820
|
+
bodyType: "json",
|
|
1821
|
+
});
|
|
1822
|
+
return $dara.cast<$_model.ListIntegrationPolicyCustomScrapeJobRulesResponse>(await this.callApi(params, req, runtime), new $_model.ListIntegrationPolicyCustomScrapeJobRulesResponse({}));
|
|
1823
|
+
}
|
|
1824
|
+
|
|
1825
|
+
/**
|
|
1826
|
+
* 获取接入中心策略的存储要求信息
|
|
1827
|
+
*
|
|
1828
|
+
* @param request - ListIntegrationPolicyCustomScrapeJobRulesRequest
|
|
1829
|
+
* @returns ListIntegrationPolicyCustomScrapeJobRulesResponse
|
|
1830
|
+
*/
|
|
1831
|
+
async listIntegrationPolicyCustomScrapeJobRules(policyId: string, request: $_model.ListIntegrationPolicyCustomScrapeJobRulesRequest): Promise<$_model.ListIntegrationPolicyCustomScrapeJobRulesResponse> {
|
|
1832
|
+
let runtime = new $dara.RuntimeOptions({ });
|
|
1833
|
+
let headers : {[key: string ]: string} = { };
|
|
1834
|
+
return await this.listIntegrationPolicyCustomScrapeJobRulesWithOptions(policyId, request, headers, runtime);
|
|
1835
|
+
}
|
|
1836
|
+
|
|
1837
|
+
/**
|
|
1838
|
+
* 获取接入中心策略的PodMonitor资源
|
|
1839
|
+
*
|
|
1840
|
+
* @param request - ListIntegrationPolicyPodMonitorsRequest
|
|
1841
|
+
* @param headers - map
|
|
1842
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
1843
|
+
* @returns ListIntegrationPolicyPodMonitorsResponse
|
|
1844
|
+
*/
|
|
1845
|
+
async listIntegrationPolicyPodMonitorsWithOptions(policyId: string, request: $_model.ListIntegrationPolicyPodMonitorsRequest, headers: {[key: string ]: string}, runtime: $dara.RuntimeOptions): Promise<$_model.ListIntegrationPolicyPodMonitorsResponse> {
|
|
1846
|
+
request.validate();
|
|
1847
|
+
let query : {[key: string ]: any} = { };
|
|
1848
|
+
if (!$dara.isNull(request.addonReleaseName)) {
|
|
1849
|
+
query["addonReleaseName"] = request.addonReleaseName;
|
|
1850
|
+
}
|
|
1851
|
+
|
|
1852
|
+
if (!$dara.isNull(request.encryptYaml)) {
|
|
1853
|
+
query["encryptYaml"] = request.encryptYaml;
|
|
1854
|
+
}
|
|
1855
|
+
|
|
1856
|
+
if (!$dara.isNull(request.namespace)) {
|
|
1857
|
+
query["namespace"] = request.namespace;
|
|
1858
|
+
}
|
|
1859
|
+
|
|
1860
|
+
let req = new $OpenApiUtil.OpenApiRequest({
|
|
1861
|
+
headers: headers,
|
|
1862
|
+
query: OpenApiUtil.query(query),
|
|
1863
|
+
});
|
|
1864
|
+
let params = new $OpenApiUtil.Params({
|
|
1865
|
+
action: "ListIntegrationPolicyPodMonitors",
|
|
1866
|
+
version: "2024-03-30",
|
|
1867
|
+
protocol: "HTTPS",
|
|
1868
|
+
pathname: `/integration-policies/${$dara.URL.percentEncode(policyId)}/pod-monitors`,
|
|
1869
|
+
method: "GET",
|
|
1870
|
+
authType: "AK",
|
|
1871
|
+
style: "ROA",
|
|
1872
|
+
reqBodyType: "json",
|
|
1873
|
+
bodyType: "json",
|
|
1874
|
+
});
|
|
1875
|
+
return $dara.cast<$_model.ListIntegrationPolicyPodMonitorsResponse>(await this.callApi(params, req, runtime), new $_model.ListIntegrationPolicyPodMonitorsResponse({}));
|
|
1876
|
+
}
|
|
1877
|
+
|
|
1878
|
+
/**
|
|
1879
|
+
* 获取接入中心策略的PodMonitor资源
|
|
1880
|
+
*
|
|
1881
|
+
* @param request - ListIntegrationPolicyPodMonitorsRequest
|
|
1882
|
+
* @returns ListIntegrationPolicyPodMonitorsResponse
|
|
1883
|
+
*/
|
|
1884
|
+
async listIntegrationPolicyPodMonitors(policyId: string, request: $_model.ListIntegrationPolicyPodMonitorsRequest): Promise<$_model.ListIntegrationPolicyPodMonitorsResponse> {
|
|
1885
|
+
let runtime = new $dara.RuntimeOptions({ });
|
|
1886
|
+
let headers : {[key: string ]: string} = { };
|
|
1887
|
+
return await this.listIntegrationPolicyPodMonitorsWithOptions(policyId, request, headers, runtime);
|
|
1888
|
+
}
|
|
1889
|
+
|
|
1890
|
+
/**
|
|
1891
|
+
* 获取接入中心策略的存储要求信息
|
|
1892
|
+
*
|
|
1893
|
+
* @param request - ListIntegrationPolicyStorageRequirementsRequest
|
|
1894
|
+
* @param headers - map
|
|
1895
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
1896
|
+
* @returns ListIntegrationPolicyStorageRequirementsResponse
|
|
1897
|
+
*/
|
|
1898
|
+
async listIntegrationPolicyStorageRequirementsWithOptions(policyId: string, request: $_model.ListIntegrationPolicyStorageRequirementsRequest, headers: {[key: string ]: string}, runtime: $dara.RuntimeOptions): Promise<$_model.ListIntegrationPolicyStorageRequirementsResponse> {
|
|
1899
|
+
request.validate();
|
|
1900
|
+
let query : {[key: string ]: any} = { };
|
|
1901
|
+
if (!$dara.isNull(request.addonName)) {
|
|
1902
|
+
query["addonName"] = request.addonName;
|
|
1903
|
+
}
|
|
1904
|
+
|
|
1905
|
+
if (!$dara.isNull(request.addonReleaseName)) {
|
|
1906
|
+
query["addonReleaseName"] = request.addonReleaseName;
|
|
1907
|
+
}
|
|
1908
|
+
|
|
1909
|
+
if (!$dara.isNull(request.storageType)) {
|
|
1910
|
+
query["storageType"] = request.storageType;
|
|
1911
|
+
}
|
|
1912
|
+
|
|
1913
|
+
let req = new $OpenApiUtil.OpenApiRequest({
|
|
1914
|
+
headers: headers,
|
|
1915
|
+
query: OpenApiUtil.query(query),
|
|
1916
|
+
});
|
|
1917
|
+
let params = new $OpenApiUtil.Params({
|
|
1918
|
+
action: "ListIntegrationPolicyStorageRequirements",
|
|
1919
|
+
version: "2024-03-30",
|
|
1920
|
+
protocol: "HTTPS",
|
|
1921
|
+
pathname: `/integration-policies/${$dara.URL.percentEncode(policyId)}/storage-requirements`,
|
|
1922
|
+
method: "GET",
|
|
1923
|
+
authType: "AK",
|
|
1924
|
+
style: "ROA",
|
|
1925
|
+
reqBodyType: "json",
|
|
1926
|
+
bodyType: "json",
|
|
1927
|
+
});
|
|
1928
|
+
return $dara.cast<$_model.ListIntegrationPolicyStorageRequirementsResponse>(await this.callApi(params, req, runtime), new $_model.ListIntegrationPolicyStorageRequirementsResponse({}));
|
|
1929
|
+
}
|
|
1930
|
+
|
|
1931
|
+
/**
|
|
1932
|
+
* 获取接入中心策略的存储要求信息
|
|
1933
|
+
*
|
|
1934
|
+
* @param request - ListIntegrationPolicyStorageRequirementsRequest
|
|
1935
|
+
* @returns ListIntegrationPolicyStorageRequirementsResponse
|
|
1936
|
+
*/
|
|
1937
|
+
async listIntegrationPolicyStorageRequirements(policyId: string, request: $_model.ListIntegrationPolicyStorageRequirementsRequest): Promise<$_model.ListIntegrationPolicyStorageRequirementsResponse> {
|
|
1938
|
+
let runtime = new $dara.RuntimeOptions({ });
|
|
1939
|
+
let headers : {[key: string ]: string} = { };
|
|
1940
|
+
return await this.listIntegrationPolicyStorageRequirementsWithOptions(policyId, request, headers, runtime);
|
|
1941
|
+
}
|
|
1942
|
+
|
|
1943
|
+
/**
|
|
1944
|
+
* 获取Prometheus实例大盘列表
|
|
1945
|
+
*
|
|
1946
|
+
* @param request - ListPrometheusDashboardsRequest
|
|
1947
|
+
* @param headers - map
|
|
1948
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
1949
|
+
* @returns ListPrometheusDashboardsResponse
|
|
1950
|
+
*/
|
|
1951
|
+
async listPrometheusDashboardsWithOptions(prometheusInstanceId: string, request: $_model.ListPrometheusDashboardsRequest, headers: {[key: string ]: string}, runtime: $dara.RuntimeOptions): Promise<$_model.ListPrometheusDashboardsResponse> {
|
|
1952
|
+
request.validate();
|
|
1953
|
+
let query : {[key: string ]: any} = { };
|
|
1954
|
+
if (!$dara.isNull(request.aliyunLang)) {
|
|
1955
|
+
query["aliyunLang"] = request.aliyunLang;
|
|
1956
|
+
}
|
|
1957
|
+
|
|
1958
|
+
if (!$dara.isNull(request.resourceGroupId)) {
|
|
1959
|
+
query["resourceGroupId"] = request.resourceGroupId;
|
|
1960
|
+
}
|
|
1961
|
+
|
|
1962
|
+
let req = new $OpenApiUtil.OpenApiRequest({
|
|
1963
|
+
headers: headers,
|
|
1964
|
+
query: OpenApiUtil.query(query),
|
|
1965
|
+
});
|
|
1966
|
+
let params = new $OpenApiUtil.Params({
|
|
1967
|
+
action: "ListPrometheusDashboards",
|
|
1968
|
+
version: "2024-03-30",
|
|
1969
|
+
protocol: "HTTPS",
|
|
1970
|
+
pathname: `/prometheus-instances/${$dara.URL.percentEncode(prometheusInstanceId)}/dashboards`,
|
|
1971
|
+
method: "GET",
|
|
1972
|
+
authType: "AK",
|
|
1973
|
+
style: "ROA",
|
|
1974
|
+
reqBodyType: "json",
|
|
1975
|
+
bodyType: "json",
|
|
1976
|
+
});
|
|
1977
|
+
return $dara.cast<$_model.ListPrometheusDashboardsResponse>(await this.callApi(params, req, runtime), new $_model.ListPrometheusDashboardsResponse({}));
|
|
1978
|
+
}
|
|
1979
|
+
|
|
1980
|
+
/**
|
|
1981
|
+
* 获取Prometheus实例大盘列表
|
|
1982
|
+
*
|
|
1983
|
+
* @param request - ListPrometheusDashboardsRequest
|
|
1984
|
+
* @returns ListPrometheusDashboardsResponse
|
|
1985
|
+
*/
|
|
1986
|
+
async listPrometheusDashboards(prometheusInstanceId: string, request: $_model.ListPrometheusDashboardsRequest): Promise<$_model.ListPrometheusDashboardsResponse> {
|
|
1987
|
+
let runtime = new $dara.RuntimeOptions({ });
|
|
1988
|
+
let headers : {[key: string ]: string} = { };
|
|
1989
|
+
return await this.listPrometheusDashboardsWithOptions(prometheusInstanceId, request, headers, runtime);
|
|
1990
|
+
}
|
|
1991
|
+
|
|
1992
|
+
/**
|
|
1993
|
+
* 获取Prometheus实例信息列表
|
|
1994
|
+
*
|
|
1995
|
+
* @param tmpReq - ListPrometheusInstancesRequest
|
|
1996
|
+
* @param headers - map
|
|
1997
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
1998
|
+
* @returns ListPrometheusInstancesResponse
|
|
1999
|
+
*/
|
|
2000
|
+
async listPrometheusInstancesWithOptions(tmpReq: $_model.ListPrometheusInstancesRequest, headers: {[key: string ]: string}, runtime: $dara.RuntimeOptions): Promise<$_model.ListPrometheusInstancesResponse> {
|
|
2001
|
+
tmpReq.validate();
|
|
2002
|
+
let request = new $_model.ListPrometheusInstancesShrinkRequest({ });
|
|
2003
|
+
OpenApiUtil.convert(tmpReq, request);
|
|
2004
|
+
if (!$dara.isNull(tmpReq.tag)) {
|
|
2005
|
+
request.tagShrink = OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.tag, "tag", "json");
|
|
2006
|
+
}
|
|
2007
|
+
|
|
2008
|
+
let query : {[key: string ]: any} = { };
|
|
2009
|
+
if (!$dara.isNull(request.filterRegionIds)) {
|
|
2010
|
+
query["filterRegionIds"] = request.filterRegionIds;
|
|
2011
|
+
}
|
|
2012
|
+
|
|
2013
|
+
if (!$dara.isNull(request.maxResults)) {
|
|
2014
|
+
query["maxResults"] = request.maxResults;
|
|
2015
|
+
}
|
|
2016
|
+
|
|
2017
|
+
if (!$dara.isNull(request.nextToken)) {
|
|
2018
|
+
query["nextToken"] = request.nextToken;
|
|
2019
|
+
}
|
|
2020
|
+
|
|
2021
|
+
if (!$dara.isNull(request.prometheusInstanceIds)) {
|
|
2022
|
+
query["prometheusInstanceIds"] = request.prometheusInstanceIds;
|
|
2023
|
+
}
|
|
2024
|
+
|
|
2025
|
+
if (!$dara.isNull(request.prometheusInstanceName)) {
|
|
2026
|
+
query["prometheusInstanceName"] = request.prometheusInstanceName;
|
|
2027
|
+
}
|
|
2028
|
+
|
|
2029
|
+
if (!$dara.isNull(request.resourceGroupId)) {
|
|
2030
|
+
query["resourceGroupId"] = request.resourceGroupId;
|
|
2031
|
+
}
|
|
2032
|
+
|
|
2033
|
+
if (!$dara.isNull(request.resourceType)) {
|
|
2034
|
+
query["resourceType"] = request.resourceType;
|
|
2035
|
+
}
|
|
2036
|
+
|
|
2037
|
+
if (!$dara.isNull(request.tagShrink)) {
|
|
2038
|
+
query["tag"] = request.tagShrink;
|
|
2039
|
+
}
|
|
2040
|
+
|
|
2041
|
+
if (!$dara.isNull(request.version)) {
|
|
2042
|
+
query["version"] = request.version;
|
|
2043
|
+
}
|
|
2044
|
+
|
|
2045
|
+
let req = new $OpenApiUtil.OpenApiRequest({
|
|
2046
|
+
headers: headers,
|
|
2047
|
+
query: OpenApiUtil.query(query),
|
|
2048
|
+
});
|
|
2049
|
+
let params = new $OpenApiUtil.Params({
|
|
2050
|
+
action: "ListPrometheusInstances",
|
|
2051
|
+
version: "2024-03-30",
|
|
2052
|
+
protocol: "HTTPS",
|
|
2053
|
+
pathname: `/prometheus-instances`,
|
|
2054
|
+
method: "GET",
|
|
2055
|
+
authType: "AK",
|
|
2056
|
+
style: "ROA",
|
|
2057
|
+
reqBodyType: "json",
|
|
2058
|
+
bodyType: "json",
|
|
2059
|
+
});
|
|
2060
|
+
return $dara.cast<$_model.ListPrometheusInstancesResponse>(await this.callApi(params, req, runtime), new $_model.ListPrometheusInstancesResponse({}));
|
|
2061
|
+
}
|
|
2062
|
+
|
|
2063
|
+
/**
|
|
2064
|
+
* 获取Prometheus实例信息列表
|
|
2065
|
+
*
|
|
2066
|
+
* @param request - ListPrometheusInstancesRequest
|
|
2067
|
+
* @returns ListPrometheusInstancesResponse
|
|
2068
|
+
*/
|
|
2069
|
+
async listPrometheusInstances(request: $_model.ListPrometheusInstancesRequest): Promise<$_model.ListPrometheusInstancesResponse> {
|
|
2070
|
+
let runtime = new $dara.RuntimeOptions({ });
|
|
2071
|
+
let headers : {[key: string ]: string} = { };
|
|
2072
|
+
return await this.listPrometheusInstancesWithOptions(request, headers, runtime);
|
|
2073
|
+
}
|
|
2074
|
+
|
|
2075
|
+
/**
|
|
2076
|
+
* 获取Prometheus视图实例信息列表
|
|
2077
|
+
*
|
|
2078
|
+
* @param tmpReq - ListPrometheusViewsRequest
|
|
2079
|
+
* @param headers - map
|
|
2080
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
2081
|
+
* @returns ListPrometheusViewsResponse
|
|
2082
|
+
*/
|
|
2083
|
+
async listPrometheusViewsWithOptions(tmpReq: $_model.ListPrometheusViewsRequest, headers: {[key: string ]: string}, runtime: $dara.RuntimeOptions): Promise<$_model.ListPrometheusViewsResponse> {
|
|
2084
|
+
tmpReq.validate();
|
|
2085
|
+
let request = new $_model.ListPrometheusViewsShrinkRequest({ });
|
|
2086
|
+
OpenApiUtil.convert(tmpReq, request);
|
|
2087
|
+
if (!$dara.isNull(tmpReq.tag)) {
|
|
2088
|
+
request.tagShrink = OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.tag, "tag", "json");
|
|
2089
|
+
}
|
|
2090
|
+
|
|
2091
|
+
let query : {[key: string ]: any} = { };
|
|
2092
|
+
if (!$dara.isNull(request.filterRegionIds)) {
|
|
2093
|
+
query["filterRegionIds"] = request.filterRegionIds;
|
|
2094
|
+
}
|
|
2095
|
+
|
|
2096
|
+
if (!$dara.isNull(request.maxResults)) {
|
|
2097
|
+
query["maxResults"] = request.maxResults;
|
|
2098
|
+
}
|
|
2099
|
+
|
|
2100
|
+
if (!$dara.isNull(request.nextToken)) {
|
|
2101
|
+
query["nextToken"] = request.nextToken;
|
|
2102
|
+
}
|
|
2103
|
+
|
|
2104
|
+
if (!$dara.isNull(request.prometheusViewIds)) {
|
|
2105
|
+
query["prometheusViewIds"] = request.prometheusViewIds;
|
|
2106
|
+
}
|
|
2107
|
+
|
|
2108
|
+
if (!$dara.isNull(request.prometheusViewName)) {
|
|
2109
|
+
query["prometheusViewName"] = request.prometheusViewName;
|
|
2110
|
+
}
|
|
2111
|
+
|
|
2112
|
+
if (!$dara.isNull(request.resourceGroupId)) {
|
|
2113
|
+
query["resourceGroupId"] = request.resourceGroupId;
|
|
2114
|
+
}
|
|
2115
|
+
|
|
2116
|
+
if (!$dara.isNull(request.resourceType)) {
|
|
2117
|
+
query["resourceType"] = request.resourceType;
|
|
2118
|
+
}
|
|
2119
|
+
|
|
2120
|
+
if (!$dara.isNull(request.tagShrink)) {
|
|
2121
|
+
query["tag"] = request.tagShrink;
|
|
2122
|
+
}
|
|
2123
|
+
|
|
2124
|
+
if (!$dara.isNull(request.version)) {
|
|
2125
|
+
query["version"] = request.version;
|
|
2126
|
+
}
|
|
2127
|
+
|
|
2128
|
+
if (!$dara.isNull(request.workspace)) {
|
|
2129
|
+
query["workspace"] = request.workspace;
|
|
2130
|
+
}
|
|
2131
|
+
|
|
2132
|
+
let req = new $OpenApiUtil.OpenApiRequest({
|
|
2133
|
+
headers: headers,
|
|
2134
|
+
query: OpenApiUtil.query(query),
|
|
2135
|
+
});
|
|
2136
|
+
let params = new $OpenApiUtil.Params({
|
|
2137
|
+
action: "ListPrometheusViews",
|
|
2138
|
+
version: "2024-03-30",
|
|
2139
|
+
protocol: "HTTPS",
|
|
2140
|
+
pathname: `/prometheus-views`,
|
|
2141
|
+
method: "GET",
|
|
2142
|
+
authType: "AK",
|
|
2143
|
+
style: "ROA",
|
|
2144
|
+
reqBodyType: "json",
|
|
2145
|
+
bodyType: "json",
|
|
2146
|
+
});
|
|
2147
|
+
return $dara.cast<$_model.ListPrometheusViewsResponse>(await this.callApi(params, req, runtime), new $_model.ListPrometheusViewsResponse({}));
|
|
706
2148
|
}
|
|
707
2149
|
|
|
708
2150
|
/**
|
|
709
|
-
* 获取
|
|
710
|
-
*
|
|
2151
|
+
* 获取Prometheus视图实例信息列表
|
|
2152
|
+
*
|
|
2153
|
+
* @param request - ListPrometheusViewsRequest
|
|
2154
|
+
* @returns ListPrometheusViewsResponse
|
|
711
2155
|
*/
|
|
712
|
-
async
|
|
2156
|
+
async listPrometheusViews(request: $_model.ListPrometheusViewsRequest): Promise<$_model.ListPrometheusViewsResponse> {
|
|
713
2157
|
let runtime = new $dara.RuntimeOptions({ });
|
|
714
2158
|
let headers : {[key: string ]: string} = { };
|
|
715
|
-
return await this.
|
|
2159
|
+
return await this.listPrometheusViewsWithOptions(request, headers, runtime);
|
|
716
2160
|
}
|
|
717
2161
|
|
|
718
2162
|
/**
|
|
719
|
-
*
|
|
2163
|
+
* 获取Prometheus虚拟实例
|
|
720
2164
|
*
|
|
721
|
-
* @param request -
|
|
2165
|
+
* @param request - ListPrometheusVirtualInstancesRequest
|
|
722
2166
|
* @param headers - map
|
|
723
2167
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
724
|
-
* @returns
|
|
2168
|
+
* @returns ListPrometheusVirtualInstancesResponse
|
|
725
2169
|
*/
|
|
726
|
-
async
|
|
2170
|
+
async listPrometheusVirtualInstancesWithOptions(request: $_model.ListPrometheusVirtualInstancesRequest, headers: {[key: string ]: string}, runtime: $dara.RuntimeOptions): Promise<$_model.ListPrometheusVirtualInstancesResponse> {
|
|
2171
|
+
request.validate();
|
|
2172
|
+
let query : {[key: string ]: any} = { };
|
|
2173
|
+
if (!$dara.isNull(request.namespace)) {
|
|
2174
|
+
query["namespace"] = request.namespace;
|
|
2175
|
+
}
|
|
2176
|
+
|
|
2177
|
+
let req = new $OpenApiUtil.OpenApiRequest({
|
|
2178
|
+
headers: headers,
|
|
2179
|
+
query: OpenApiUtil.query(query),
|
|
2180
|
+
});
|
|
2181
|
+
let params = new $OpenApiUtil.Params({
|
|
2182
|
+
action: "ListPrometheusVirtualInstances",
|
|
2183
|
+
version: "2024-03-30",
|
|
2184
|
+
protocol: "HTTPS",
|
|
2185
|
+
pathname: `/virtual-instances`,
|
|
2186
|
+
method: "GET",
|
|
2187
|
+
authType: "AK",
|
|
2188
|
+
style: "ROA",
|
|
2189
|
+
reqBodyType: "json",
|
|
2190
|
+
bodyType: "json",
|
|
2191
|
+
});
|
|
2192
|
+
return $dara.cast<$_model.ListPrometheusVirtualInstancesResponse>(await this.callApi(params, req, runtime), new $_model.ListPrometheusVirtualInstancesResponse({}));
|
|
2193
|
+
}
|
|
2194
|
+
|
|
2195
|
+
/**
|
|
2196
|
+
* 获取Prometheus虚拟实例
|
|
2197
|
+
*
|
|
2198
|
+
* @param request - ListPrometheusVirtualInstancesRequest
|
|
2199
|
+
* @returns ListPrometheusVirtualInstancesResponse
|
|
2200
|
+
*/
|
|
2201
|
+
async listPrometheusVirtualInstances(request: $_model.ListPrometheusVirtualInstancesRequest): Promise<$_model.ListPrometheusVirtualInstancesResponse> {
|
|
2202
|
+
let runtime = new $dara.RuntimeOptions({ });
|
|
2203
|
+
let headers : {[key: string ]: string} = { };
|
|
2204
|
+
return await this.listPrometheusVirtualInstancesWithOptions(request, headers, runtime);
|
|
2205
|
+
}
|
|
2206
|
+
|
|
2207
|
+
/**
|
|
2208
|
+
* 列出资源Service
|
|
2209
|
+
*
|
|
2210
|
+
* @param request - ListServicesRequest
|
|
2211
|
+
* @param headers - map
|
|
2212
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
2213
|
+
* @returns ListServicesResponse
|
|
2214
|
+
*/
|
|
2215
|
+
async listServicesWithOptions(workspace: string, request: $_model.ListServicesRequest, headers: {[key: string ]: string}, runtime: $dara.RuntimeOptions): Promise<$_model.ListServicesResponse> {
|
|
2216
|
+
request.validate();
|
|
2217
|
+
let query : {[key: string ]: any} = { };
|
|
2218
|
+
if (!$dara.isNull(request.maxResults)) {
|
|
2219
|
+
query["maxResults"] = request.maxResults;
|
|
2220
|
+
}
|
|
2221
|
+
|
|
2222
|
+
if (!$dara.isNull(request.nextToken)) {
|
|
2223
|
+
query["nextToken"] = request.nextToken;
|
|
2224
|
+
}
|
|
2225
|
+
|
|
2226
|
+
if (!$dara.isNull(request.serviceType)) {
|
|
2227
|
+
query["serviceType"] = request.serviceType;
|
|
2228
|
+
}
|
|
2229
|
+
|
|
2230
|
+
let req = new $OpenApiUtil.OpenApiRequest({
|
|
2231
|
+
headers: headers,
|
|
2232
|
+
query: OpenApiUtil.query(query),
|
|
2233
|
+
});
|
|
2234
|
+
let params = new $OpenApiUtil.Params({
|
|
2235
|
+
action: "ListServices",
|
|
2236
|
+
version: "2024-03-30",
|
|
2237
|
+
protocol: "HTTPS",
|
|
2238
|
+
pathname: `/workspace/${$dara.URL.percentEncode(workspace)}/services`,
|
|
2239
|
+
method: "GET",
|
|
2240
|
+
authType: "AK",
|
|
2241
|
+
style: "ROA",
|
|
2242
|
+
reqBodyType: "json",
|
|
2243
|
+
bodyType: "json",
|
|
2244
|
+
});
|
|
2245
|
+
return $dara.cast<$_model.ListServicesResponse>(await this.callApi(params, req, runtime), new $_model.ListServicesResponse({}));
|
|
2246
|
+
}
|
|
2247
|
+
|
|
2248
|
+
/**
|
|
2249
|
+
* 列出资源Service
|
|
2250
|
+
*
|
|
2251
|
+
* @param request - ListServicesRequest
|
|
2252
|
+
* @returns ListServicesResponse
|
|
2253
|
+
*/
|
|
2254
|
+
async listServices(workspace: string, request: $_model.ListServicesRequest): Promise<$_model.ListServicesResponse> {
|
|
2255
|
+
let runtime = new $dara.RuntimeOptions({ });
|
|
2256
|
+
let headers : {[key: string ]: string} = { };
|
|
2257
|
+
return await this.listServicesWithOptions(workspace, request, headers, runtime);
|
|
2258
|
+
}
|
|
2259
|
+
|
|
2260
|
+
/**
|
|
2261
|
+
* 获取工作空间列表
|
|
2262
|
+
*
|
|
2263
|
+
* @param tmpReq - ListWorkspacesRequest
|
|
2264
|
+
* @param headers - map
|
|
2265
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
2266
|
+
* @returns ListWorkspacesResponse
|
|
2267
|
+
*/
|
|
2268
|
+
async listWorkspacesWithOptions(tmpReq: $_model.ListWorkspacesRequest, headers: {[key: string ]: string}, runtime: $dara.RuntimeOptions): Promise<$_model.ListWorkspacesResponse> {
|
|
2269
|
+
tmpReq.validate();
|
|
2270
|
+
let request = new $_model.ListWorkspacesShrinkRequest({ });
|
|
2271
|
+
OpenApiUtil.convert(tmpReq, request);
|
|
2272
|
+
if (!$dara.isNull(tmpReq.workspaceNameList)) {
|
|
2273
|
+
request.workspaceNameListShrink = OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.workspaceNameList, "workspaceNameList", "simple");
|
|
2274
|
+
}
|
|
2275
|
+
|
|
2276
|
+
let query : {[key: string ]: any} = { };
|
|
2277
|
+
if (!$dara.isNull(request.maxResults)) {
|
|
2278
|
+
query["maxResults"] = request.maxResults;
|
|
2279
|
+
}
|
|
2280
|
+
|
|
2281
|
+
if (!$dara.isNull(request.nextToken)) {
|
|
2282
|
+
query["nextToken"] = request.nextToken;
|
|
2283
|
+
}
|
|
2284
|
+
|
|
2285
|
+
if (!$dara.isNull(request.region)) {
|
|
2286
|
+
query["region"] = request.region;
|
|
2287
|
+
}
|
|
2288
|
+
|
|
2289
|
+
if (!$dara.isNull(request.workspaceName)) {
|
|
2290
|
+
query["workspaceName"] = request.workspaceName;
|
|
2291
|
+
}
|
|
2292
|
+
|
|
2293
|
+
if (!$dara.isNull(request.workspaceNameListShrink)) {
|
|
2294
|
+
query["workspaceNameList"] = request.workspaceNameListShrink;
|
|
2295
|
+
}
|
|
2296
|
+
|
|
2297
|
+
let req = new $OpenApiUtil.OpenApiRequest({
|
|
2298
|
+
headers: headers,
|
|
2299
|
+
query: OpenApiUtil.query(query),
|
|
2300
|
+
});
|
|
2301
|
+
let params = new $OpenApiUtil.Params({
|
|
2302
|
+
action: "ListWorkspaces",
|
|
2303
|
+
version: "2024-03-30",
|
|
2304
|
+
protocol: "HTTPS",
|
|
2305
|
+
pathname: `/workspace`,
|
|
2306
|
+
method: "GET",
|
|
2307
|
+
authType: "AK",
|
|
2308
|
+
style: "ROA",
|
|
2309
|
+
reqBodyType: "json",
|
|
2310
|
+
bodyType: "json",
|
|
2311
|
+
});
|
|
2312
|
+
return $dara.cast<$_model.ListWorkspacesResponse>(await this.callApi(params, req, runtime), new $_model.ListWorkspacesResponse({}));
|
|
2313
|
+
}
|
|
2314
|
+
|
|
2315
|
+
/**
|
|
2316
|
+
* 获取工作空间列表
|
|
2317
|
+
*
|
|
2318
|
+
* @param request - ListWorkspacesRequest
|
|
2319
|
+
* @returns ListWorkspacesResponse
|
|
2320
|
+
*/
|
|
2321
|
+
async listWorkspaces(request: $_model.ListWorkspacesRequest): Promise<$_model.ListWorkspacesResponse> {
|
|
2322
|
+
let runtime = new $dara.RuntimeOptions({ });
|
|
2323
|
+
let headers : {[key: string ]: string} = { };
|
|
2324
|
+
return await this.listWorkspacesWithOptions(request, headers, runtime);
|
|
2325
|
+
}
|
|
2326
|
+
|
|
2327
|
+
/**
|
|
2328
|
+
* 创建工作空间
|
|
2329
|
+
*
|
|
2330
|
+
* @param request - PutWorkspaceRequest
|
|
2331
|
+
* @param headers - map
|
|
2332
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
2333
|
+
* @returns PutWorkspaceResponse
|
|
2334
|
+
*/
|
|
2335
|
+
async putWorkspaceWithOptions(workspaceName: string, request: $_model.PutWorkspaceRequest, headers: {[key: string ]: string}, runtime: $dara.RuntimeOptions): Promise<$_model.PutWorkspaceResponse> {
|
|
2336
|
+
request.validate();
|
|
2337
|
+
let body : {[key: string ]: any} = { };
|
|
2338
|
+
if (!$dara.isNull(request.description)) {
|
|
2339
|
+
body["description"] = request.description;
|
|
2340
|
+
}
|
|
2341
|
+
|
|
2342
|
+
if (!$dara.isNull(request.displayName)) {
|
|
2343
|
+
body["displayName"] = request.displayName;
|
|
2344
|
+
}
|
|
2345
|
+
|
|
2346
|
+
if (!$dara.isNull(request.slsProject)) {
|
|
2347
|
+
body["slsProject"] = request.slsProject;
|
|
2348
|
+
}
|
|
2349
|
+
|
|
2350
|
+
let req = new $OpenApiUtil.OpenApiRequest({
|
|
2351
|
+
headers: headers,
|
|
2352
|
+
body: OpenApiUtil.parseToMap(body),
|
|
2353
|
+
});
|
|
2354
|
+
let params = new $OpenApiUtil.Params({
|
|
2355
|
+
action: "PutWorkspace",
|
|
2356
|
+
version: "2024-03-30",
|
|
2357
|
+
protocol: "HTTPS",
|
|
2358
|
+
pathname: `/workspace/${$dara.URL.percentEncode(workspaceName)}`,
|
|
2359
|
+
method: "POST",
|
|
2360
|
+
authType: "AK",
|
|
2361
|
+
style: "ROA",
|
|
2362
|
+
reqBodyType: "json",
|
|
2363
|
+
bodyType: "json",
|
|
2364
|
+
});
|
|
2365
|
+
return $dara.cast<$_model.PutWorkspaceResponse>(await this.callApi(params, req, runtime), new $_model.PutWorkspaceResponse({}));
|
|
2366
|
+
}
|
|
2367
|
+
|
|
2368
|
+
/**
|
|
2369
|
+
* 创建工作空间
|
|
2370
|
+
*
|
|
2371
|
+
* @param request - PutWorkspaceRequest
|
|
2372
|
+
* @returns PutWorkspaceResponse
|
|
2373
|
+
*/
|
|
2374
|
+
async putWorkspace(workspaceName: string, request: $_model.PutWorkspaceRequest): Promise<$_model.PutWorkspaceResponse> {
|
|
2375
|
+
let runtime = new $dara.RuntimeOptions({ });
|
|
2376
|
+
let headers : {[key: string ]: string} = { };
|
|
2377
|
+
return await this.putWorkspaceWithOptions(workspaceName, request, headers, runtime);
|
|
2378
|
+
}
|
|
2379
|
+
|
|
2380
|
+
/**
|
|
2381
|
+
* 升级接入组件
|
|
2382
|
+
*
|
|
2383
|
+
* @param request - UpdateAddonReleaseRequest
|
|
2384
|
+
* @param headers - map
|
|
2385
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
2386
|
+
* @returns UpdateAddonReleaseResponse
|
|
2387
|
+
*/
|
|
2388
|
+
async updateAddonReleaseWithOptions(releaseName: string, policyId: string, request: $_model.UpdateAddonReleaseRequest, headers: {[key: string ]: string}, runtime: $dara.RuntimeOptions): Promise<$_model.UpdateAddonReleaseResponse> {
|
|
727
2389
|
request.validate();
|
|
728
|
-
let
|
|
729
|
-
if (!$dara.isNull(request.
|
|
730
|
-
|
|
2390
|
+
let body : {[key: string ]: any} = { };
|
|
2391
|
+
if (!$dara.isNull(request.addonVersion)) {
|
|
2392
|
+
body["addonVersion"] = request.addonVersion;
|
|
731
2393
|
}
|
|
732
2394
|
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
2395
|
+
if (!$dara.isNull(request.dryRun)) {
|
|
2396
|
+
body["dryRun"] = request.dryRun;
|
|
2397
|
+
}
|
|
2398
|
+
|
|
2399
|
+
if (!$dara.isNull(request.entityRules)) {
|
|
2400
|
+
body["entityRules"] = request.entityRules;
|
|
2401
|
+
}
|
|
2402
|
+
|
|
2403
|
+
if (!$dara.isNull(request.values)) {
|
|
2404
|
+
body["values"] = request.values;
|
|
736
2405
|
}
|
|
737
2406
|
|
|
738
2407
|
let req = new $OpenApiUtil.OpenApiRequest({
|
|
739
2408
|
headers: headers,
|
|
740
|
-
query: OpenApiUtil.query(query),
|
|
741
2409
|
body: OpenApiUtil.parseToMap(body),
|
|
742
2410
|
});
|
|
743
2411
|
let params = new $OpenApiUtil.Params({
|
|
744
|
-
action: "
|
|
2412
|
+
action: "UpdateAddonRelease",
|
|
745
2413
|
version: "2024-03-30",
|
|
746
2414
|
protocol: "HTTPS",
|
|
747
|
-
pathname: `/
|
|
748
|
-
method: "
|
|
2415
|
+
pathname: `/integration-policies/${$dara.URL.percentEncode(policyId)}/addon-releases/${$dara.URL.percentEncode(releaseName)}`,
|
|
2416
|
+
method: "PUT",
|
|
749
2417
|
authType: "AK",
|
|
750
2418
|
style: "ROA",
|
|
751
2419
|
reqBodyType: "json",
|
|
752
2420
|
bodyType: "json",
|
|
753
2421
|
});
|
|
754
|
-
return $dara.cast<$_model.
|
|
2422
|
+
return $dara.cast<$_model.UpdateAddonReleaseResponse>(await this.callApi(params, req, runtime), new $_model.UpdateAddonReleaseResponse({}));
|
|
755
2423
|
}
|
|
756
2424
|
|
|
757
2425
|
/**
|
|
758
|
-
*
|
|
2426
|
+
* 升级接入组件
|
|
759
2427
|
*
|
|
760
|
-
* @param request -
|
|
761
|
-
* @returns
|
|
2428
|
+
* @param request - UpdateAddonReleaseRequest
|
|
2429
|
+
* @returns UpdateAddonReleaseResponse
|
|
762
2430
|
*/
|
|
763
|
-
async
|
|
2431
|
+
async updateAddonRelease(releaseName: string, policyId: string, request: $_model.UpdateAddonReleaseRequest): Promise<$_model.UpdateAddonReleaseResponse> {
|
|
764
2432
|
let runtime = new $dara.RuntimeOptions({ });
|
|
765
2433
|
let headers : {[key: string ]: string} = { };
|
|
766
|
-
return await this.
|
|
2434
|
+
return await this.updateAddonReleaseWithOptions(releaseName, policyId, request, headers, runtime);
|
|
767
2435
|
}
|
|
768
2436
|
|
|
769
2437
|
/**
|
|
770
|
-
*
|
|
2438
|
+
* 应用聚合任务组
|
|
771
2439
|
*
|
|
2440
|
+
* @param request - UpdateAggTaskGroupRequest
|
|
772
2441
|
* @param headers - map
|
|
773
2442
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
774
|
-
* @returns
|
|
2443
|
+
* @returns UpdateAggTaskGroupResponse
|
|
775
2444
|
*/
|
|
776
|
-
async
|
|
2445
|
+
async updateAggTaskGroupWithOptions(instanceId: string, groupId: string, request: $_model.UpdateAggTaskGroupRequest, headers: {[key: string ]: string}, runtime: $dara.RuntimeOptions): Promise<$_model.UpdateAggTaskGroupResponse> {
|
|
2446
|
+
request.validate();
|
|
2447
|
+
let body : {[key: string ]: any} = { };
|
|
2448
|
+
if (!$dara.isNull(request.aggTaskGroupConfig)) {
|
|
2449
|
+
body["aggTaskGroupConfig"] = request.aggTaskGroupConfig;
|
|
2450
|
+
}
|
|
2451
|
+
|
|
2452
|
+
if (!$dara.isNull(request.aggTaskGroupConfigType)) {
|
|
2453
|
+
body["aggTaskGroupConfigType"] = request.aggTaskGroupConfigType;
|
|
2454
|
+
}
|
|
2455
|
+
|
|
2456
|
+
if (!$dara.isNull(request.aggTaskGroupName)) {
|
|
2457
|
+
body["aggTaskGroupName"] = request.aggTaskGroupName;
|
|
2458
|
+
}
|
|
2459
|
+
|
|
2460
|
+
if (!$dara.isNull(request.cronExpr)) {
|
|
2461
|
+
body["cronExpr"] = request.cronExpr;
|
|
2462
|
+
}
|
|
2463
|
+
|
|
2464
|
+
if (!$dara.isNull(request.delay)) {
|
|
2465
|
+
body["delay"] = request.delay;
|
|
2466
|
+
}
|
|
2467
|
+
|
|
2468
|
+
if (!$dara.isNull(request.description)) {
|
|
2469
|
+
body["description"] = request.description;
|
|
2470
|
+
}
|
|
2471
|
+
|
|
2472
|
+
if (!$dara.isNull(request.fromTime)) {
|
|
2473
|
+
body["fromTime"] = request.fromTime;
|
|
2474
|
+
}
|
|
2475
|
+
|
|
2476
|
+
if (!$dara.isNull(request.maxRetries)) {
|
|
2477
|
+
body["maxRetries"] = request.maxRetries;
|
|
2478
|
+
}
|
|
2479
|
+
|
|
2480
|
+
if (!$dara.isNull(request.maxRunTimeInSeconds)) {
|
|
2481
|
+
body["maxRunTimeInSeconds"] = request.maxRunTimeInSeconds;
|
|
2482
|
+
}
|
|
2483
|
+
|
|
2484
|
+
if (!$dara.isNull(request.precheckString)) {
|
|
2485
|
+
body["precheckString"] = request.precheckString;
|
|
2486
|
+
}
|
|
2487
|
+
|
|
2488
|
+
if (!$dara.isNull(request.scheduleMode)) {
|
|
2489
|
+
body["scheduleMode"] = request.scheduleMode;
|
|
2490
|
+
}
|
|
2491
|
+
|
|
2492
|
+
if (!$dara.isNull(request.scheduleTimeExpr)) {
|
|
2493
|
+
body["scheduleTimeExpr"] = request.scheduleTimeExpr;
|
|
2494
|
+
}
|
|
2495
|
+
|
|
2496
|
+
if (!$dara.isNull(request.status)) {
|
|
2497
|
+
body["status"] = request.status;
|
|
2498
|
+
}
|
|
2499
|
+
|
|
2500
|
+
if (!$dara.isNull(request.tags)) {
|
|
2501
|
+
body["tags"] = request.tags;
|
|
2502
|
+
}
|
|
2503
|
+
|
|
2504
|
+
if (!$dara.isNull(request.targetPrometheusId)) {
|
|
2505
|
+
body["targetPrometheusId"] = request.targetPrometheusId;
|
|
2506
|
+
}
|
|
2507
|
+
|
|
2508
|
+
if (!$dara.isNull(request.toTime)) {
|
|
2509
|
+
body["toTime"] = request.toTime;
|
|
2510
|
+
}
|
|
2511
|
+
|
|
777
2512
|
let req = new $OpenApiUtil.OpenApiRequest({
|
|
778
2513
|
headers: headers,
|
|
2514
|
+
body: OpenApiUtil.parseToMap(body),
|
|
779
2515
|
});
|
|
780
2516
|
let params = new $OpenApiUtil.Params({
|
|
781
|
-
action: "
|
|
2517
|
+
action: "UpdateAggTaskGroup",
|
|
782
2518
|
version: "2024-03-30",
|
|
783
2519
|
protocol: "HTTPS",
|
|
784
|
-
pathname: `/
|
|
785
|
-
method: "
|
|
2520
|
+
pathname: `/prometheus-instances/${$dara.URL.percentEncode(instanceId)}/agg-task-groups/${$dara.URL.percentEncode(groupId)}`,
|
|
2521
|
+
method: "PUT",
|
|
786
2522
|
authType: "AK",
|
|
787
2523
|
style: "ROA",
|
|
788
2524
|
reqBodyType: "json",
|
|
789
2525
|
bodyType: "json",
|
|
790
2526
|
});
|
|
791
|
-
return $dara.cast<$_model.
|
|
2527
|
+
return $dara.cast<$_model.UpdateAggTaskGroupResponse>(await this.callApi(params, req, runtime), new $_model.UpdateAggTaskGroupResponse({}));
|
|
792
2528
|
}
|
|
793
2529
|
|
|
794
2530
|
/**
|
|
795
|
-
*
|
|
796
|
-
*
|
|
2531
|
+
* 应用聚合任务组
|
|
2532
|
+
*
|
|
2533
|
+
* @param request - UpdateAggTaskGroupRequest
|
|
2534
|
+
* @returns UpdateAggTaskGroupResponse
|
|
797
2535
|
*/
|
|
798
|
-
async
|
|
2536
|
+
async updateAggTaskGroup(instanceId: string, groupId: string, request: $_model.UpdateAggTaskGroupRequest): Promise<$_model.UpdateAggTaskGroupResponse> {
|
|
799
2537
|
let runtime = new $dara.RuntimeOptions({ });
|
|
800
2538
|
let headers : {[key: string ]: string} = { };
|
|
801
|
-
return await this.
|
|
2539
|
+
return await this.updateAggTaskGroupWithOptions(instanceId, groupId, request, headers, runtime);
|
|
802
2540
|
}
|
|
803
2541
|
|
|
804
2542
|
/**
|
|
805
|
-
*
|
|
2543
|
+
* 更新聚合任务组状态
|
|
806
2544
|
*
|
|
807
|
-
* @param
|
|
2545
|
+
* @param request - UpdateAggTaskGroupStatusRequest
|
|
808
2546
|
* @param headers - map
|
|
809
2547
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
810
|
-
* @returns
|
|
2548
|
+
* @returns UpdateAggTaskGroupStatusResponse
|
|
811
2549
|
*/
|
|
812
|
-
async
|
|
813
|
-
|
|
814
|
-
let
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
request.alertActionIdsShrink = OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.alertActionIds, "alertActionIds", "json");
|
|
818
|
-
}
|
|
819
|
-
|
|
820
|
-
let query : {[key: string ]: any} = { };
|
|
821
|
-
if (!$dara.isNull(request.alertActionIdsShrink)) {
|
|
822
|
-
query["alertActionIds"] = request.alertActionIdsShrink;
|
|
823
|
-
}
|
|
824
|
-
|
|
825
|
-
if (!$dara.isNull(request.alertActionName)) {
|
|
826
|
-
query["alertActionName"] = request.alertActionName;
|
|
827
|
-
}
|
|
828
|
-
|
|
829
|
-
if (!$dara.isNull(request.pageNumber)) {
|
|
830
|
-
query["pageNumber"] = request.pageNumber;
|
|
831
|
-
}
|
|
832
|
-
|
|
833
|
-
if (!$dara.isNull(request.pageSize)) {
|
|
834
|
-
query["pageSize"] = request.pageSize;
|
|
835
|
-
}
|
|
836
|
-
|
|
837
|
-
if (!$dara.isNull(request.type)) {
|
|
838
|
-
query["type"] = request.type;
|
|
2550
|
+
async updateAggTaskGroupStatusWithOptions(instanceId: string, groupId: string, request: $_model.UpdateAggTaskGroupStatusRequest, headers: {[key: string ]: string}, runtime: $dara.RuntimeOptions): Promise<$_model.UpdateAggTaskGroupStatusResponse> {
|
|
2551
|
+
request.validate();
|
|
2552
|
+
let body : {[key: string ]: any} = { };
|
|
2553
|
+
if (!$dara.isNull(request.status)) {
|
|
2554
|
+
body["status"] = request.status;
|
|
839
2555
|
}
|
|
840
2556
|
|
|
841
2557
|
let req = new $OpenApiUtil.OpenApiRequest({
|
|
842
2558
|
headers: headers,
|
|
843
|
-
|
|
2559
|
+
body: OpenApiUtil.parseToMap(body),
|
|
844
2560
|
});
|
|
845
2561
|
let params = new $OpenApiUtil.Params({
|
|
846
|
-
action: "
|
|
2562
|
+
action: "UpdateAggTaskGroupStatus",
|
|
847
2563
|
version: "2024-03-30",
|
|
848
2564
|
protocol: "HTTPS",
|
|
849
|
-
pathname: `/
|
|
850
|
-
method: "
|
|
2565
|
+
pathname: `/prometheus-instances/${$dara.URL.percentEncode(instanceId)}/agg-task-groups/${$dara.URL.percentEncode(groupId)}/status`,
|
|
2566
|
+
method: "PUT",
|
|
851
2567
|
authType: "AK",
|
|
852
2568
|
style: "ROA",
|
|
853
2569
|
reqBodyType: "json",
|
|
854
2570
|
bodyType: "json",
|
|
855
2571
|
});
|
|
856
|
-
return $dara.cast<$_model.
|
|
2572
|
+
return $dara.cast<$_model.UpdateAggTaskGroupStatusResponse>(await this.callApi(params, req, runtime), new $_model.UpdateAggTaskGroupStatusResponse({}));
|
|
857
2573
|
}
|
|
858
2574
|
|
|
859
2575
|
/**
|
|
860
|
-
*
|
|
2576
|
+
* 更新聚合任务组状态
|
|
861
2577
|
*
|
|
862
|
-
* @param request -
|
|
863
|
-
* @returns
|
|
2578
|
+
* @param request - UpdateAggTaskGroupStatusRequest
|
|
2579
|
+
* @returns UpdateAggTaskGroupStatusResponse
|
|
864
2580
|
*/
|
|
865
|
-
async
|
|
2581
|
+
async updateAggTaskGroupStatus(instanceId: string, groupId: string, request: $_model.UpdateAggTaskGroupStatusRequest): Promise<$_model.UpdateAggTaskGroupStatusResponse> {
|
|
866
2582
|
let runtime = new $dara.RuntimeOptions({ });
|
|
867
2583
|
let headers : {[key: string ]: string} = { };
|
|
868
|
-
return await this.
|
|
2584
|
+
return await this.updateAggTaskGroupStatusWithOptions(instanceId, groupId, request, headers, runtime);
|
|
869
2585
|
}
|
|
870
2586
|
|
|
871
2587
|
/**
|
|
872
|
-
*
|
|
2588
|
+
* 更新指定策略
|
|
873
2589
|
*
|
|
874
|
-
* @param request -
|
|
2590
|
+
* @param request - UpdateIntegrationPolicyRequest
|
|
875
2591
|
* @param headers - map
|
|
876
2592
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
877
|
-
* @returns
|
|
2593
|
+
* @returns UpdateIntegrationPolicyResponse
|
|
878
2594
|
*/
|
|
879
|
-
async
|
|
2595
|
+
async updateIntegrationPolicyWithOptions(integrationPolicyId: string, request: $_model.UpdateIntegrationPolicyRequest, headers: {[key: string ]: string}, runtime: $dara.RuntimeOptions): Promise<$_model.UpdateIntegrationPolicyResponse> {
|
|
880
2596
|
request.validate();
|
|
881
|
-
let
|
|
882
|
-
if (!$dara.isNull(request.
|
|
883
|
-
|
|
2597
|
+
let body : {[key: string ]: any} = { };
|
|
2598
|
+
if (!$dara.isNull(request.feePackage)) {
|
|
2599
|
+
body["feePackage"] = request.feePackage;
|
|
884
2600
|
}
|
|
885
2601
|
|
|
886
|
-
if (!$dara.isNull(request.
|
|
887
|
-
|
|
2602
|
+
if (!$dara.isNull(request.policyName)) {
|
|
2603
|
+
body["policyName"] = request.policyName;
|
|
888
2604
|
}
|
|
889
2605
|
|
|
890
|
-
if (!$dara.isNull(request.
|
|
891
|
-
|
|
2606
|
+
if (!$dara.isNull(request.resourceGroupId)) {
|
|
2607
|
+
body["resourceGroupId"] = request.resourceGroupId;
|
|
2608
|
+
}
|
|
2609
|
+
|
|
2610
|
+
if (!$dara.isNull(request.tags)) {
|
|
2611
|
+
body["tags"] = request.tags;
|
|
892
2612
|
}
|
|
893
2613
|
|
|
894
2614
|
let req = new $OpenApiUtil.OpenApiRequest({
|
|
895
2615
|
headers: headers,
|
|
896
|
-
|
|
2616
|
+
body: OpenApiUtil.parseToMap(body),
|
|
897
2617
|
});
|
|
898
2618
|
let params = new $OpenApiUtil.Params({
|
|
899
|
-
action: "
|
|
2619
|
+
action: "UpdateIntegrationPolicy",
|
|
900
2620
|
version: "2024-03-30",
|
|
901
2621
|
protocol: "HTTPS",
|
|
902
|
-
pathname: `/
|
|
903
|
-
method: "
|
|
2622
|
+
pathname: `/integration-policies/${$dara.URL.percentEncode(integrationPolicyId)}`,
|
|
2623
|
+
method: "PUT",
|
|
904
2624
|
authType: "AK",
|
|
905
2625
|
style: "ROA",
|
|
906
2626
|
reqBodyType: "json",
|
|
907
2627
|
bodyType: "json",
|
|
908
2628
|
});
|
|
909
|
-
return $dara.cast<$_model.
|
|
2629
|
+
return $dara.cast<$_model.UpdateIntegrationPolicyResponse>(await this.callApi(params, req, runtime), new $_model.UpdateIntegrationPolicyResponse({}));
|
|
910
2630
|
}
|
|
911
2631
|
|
|
912
2632
|
/**
|
|
913
|
-
*
|
|
2633
|
+
* 更新指定策略
|
|
914
2634
|
*
|
|
915
|
-
* @param request -
|
|
916
|
-
* @returns
|
|
2635
|
+
* @param request - UpdateIntegrationPolicyRequest
|
|
2636
|
+
* @returns UpdateIntegrationPolicyResponse
|
|
917
2637
|
*/
|
|
918
|
-
async
|
|
2638
|
+
async updateIntegrationPolicy(integrationPolicyId: string, request: $_model.UpdateIntegrationPolicyRequest): Promise<$_model.UpdateIntegrationPolicyResponse> {
|
|
919
2639
|
let runtime = new $dara.RuntimeOptions({ });
|
|
920
2640
|
let headers : {[key: string ]: string} = { };
|
|
921
|
-
return await this.
|
|
2641
|
+
return await this.updateIntegrationPolicyWithOptions(integrationPolicyId, request, headers, runtime);
|
|
922
2642
|
}
|
|
923
2643
|
|
|
924
2644
|
/**
|
|
925
|
-
*
|
|
2645
|
+
* 更新Prom实例信息
|
|
926
2646
|
*
|
|
927
|
-
* @param
|
|
2647
|
+
* @param request - UpdatePrometheusInstanceRequest
|
|
928
2648
|
* @param headers - map
|
|
929
2649
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
930
|
-
* @returns
|
|
2650
|
+
* @returns UpdatePrometheusInstanceResponse
|
|
931
2651
|
*/
|
|
932
|
-
async
|
|
933
|
-
|
|
934
|
-
let
|
|
935
|
-
|
|
936
|
-
|
|
937
|
-
request.workspaceNameListShrink = OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.workspaceNameList, "workspaceNameList", "simple");
|
|
2652
|
+
async updatePrometheusInstanceWithOptions(prometheusInstanceId: string, request: $_model.UpdatePrometheusInstanceRequest, headers: {[key: string ]: string}, runtime: $dara.RuntimeOptions): Promise<$_model.UpdatePrometheusInstanceResponse> {
|
|
2653
|
+
request.validate();
|
|
2654
|
+
let body : {[key: string ]: any} = { };
|
|
2655
|
+
if (!$dara.isNull(request.archiveDuration)) {
|
|
2656
|
+
body["archiveDuration"] = request.archiveDuration;
|
|
938
2657
|
}
|
|
939
2658
|
|
|
940
|
-
|
|
941
|
-
|
|
942
|
-
query["maxResults"] = request.maxResults;
|
|
2659
|
+
if (!$dara.isNull(request.authFreeReadPolicy)) {
|
|
2660
|
+
body["authFreeReadPolicy"] = request.authFreeReadPolicy;
|
|
943
2661
|
}
|
|
944
2662
|
|
|
945
|
-
if (!$dara.isNull(request.
|
|
946
|
-
|
|
2663
|
+
if (!$dara.isNull(request.authFreeWritePolicy)) {
|
|
2664
|
+
body["authFreeWritePolicy"] = request.authFreeWritePolicy;
|
|
947
2665
|
}
|
|
948
2666
|
|
|
949
|
-
if (!$dara.isNull(request.
|
|
950
|
-
|
|
2667
|
+
if (!$dara.isNull(request.enableAuthFreeRead)) {
|
|
2668
|
+
body["enableAuthFreeRead"] = request.enableAuthFreeRead;
|
|
951
2669
|
}
|
|
952
2670
|
|
|
953
|
-
if (!$dara.isNull(request.
|
|
954
|
-
|
|
2671
|
+
if (!$dara.isNull(request.enableAuthFreeWrite)) {
|
|
2672
|
+
body["enableAuthFreeWrite"] = request.enableAuthFreeWrite;
|
|
955
2673
|
}
|
|
956
2674
|
|
|
957
|
-
if (!$dara.isNull(request.
|
|
958
|
-
|
|
2675
|
+
if (!$dara.isNull(request.enableAuthToken)) {
|
|
2676
|
+
body["enableAuthToken"] = request.enableAuthToken;
|
|
2677
|
+
}
|
|
2678
|
+
|
|
2679
|
+
if (!$dara.isNull(request.paymentType)) {
|
|
2680
|
+
body["paymentType"] = request.paymentType;
|
|
2681
|
+
}
|
|
2682
|
+
|
|
2683
|
+
if (!$dara.isNull(request.prometheusInstanceName)) {
|
|
2684
|
+
body["prometheusInstanceName"] = request.prometheusInstanceName;
|
|
2685
|
+
}
|
|
2686
|
+
|
|
2687
|
+
if (!$dara.isNull(request.status)) {
|
|
2688
|
+
body["status"] = request.status;
|
|
2689
|
+
}
|
|
2690
|
+
|
|
2691
|
+
if (!$dara.isNull(request.storageDuration)) {
|
|
2692
|
+
body["storageDuration"] = request.storageDuration;
|
|
2693
|
+
}
|
|
2694
|
+
|
|
2695
|
+
if (!$dara.isNull(request.workspace)) {
|
|
2696
|
+
body["workspace"] = request.workspace;
|
|
959
2697
|
}
|
|
960
2698
|
|
|
961
2699
|
let req = new $OpenApiUtil.OpenApiRequest({
|
|
962
2700
|
headers: headers,
|
|
963
|
-
|
|
2701
|
+
body: OpenApiUtil.parseToMap(body),
|
|
964
2702
|
});
|
|
965
2703
|
let params = new $OpenApiUtil.Params({
|
|
966
|
-
action: "
|
|
2704
|
+
action: "UpdatePrometheusInstance",
|
|
967
2705
|
version: "2024-03-30",
|
|
968
2706
|
protocol: "HTTPS",
|
|
969
|
-
pathname: `/
|
|
970
|
-
method: "
|
|
2707
|
+
pathname: `/prometheus-instances/${$dara.URL.percentEncode(prometheusInstanceId)}`,
|
|
2708
|
+
method: "PUT",
|
|
971
2709
|
authType: "AK",
|
|
972
2710
|
style: "ROA",
|
|
973
2711
|
reqBodyType: "json",
|
|
974
2712
|
bodyType: "json",
|
|
975
2713
|
});
|
|
976
|
-
return $dara.cast<$_model.
|
|
2714
|
+
return $dara.cast<$_model.UpdatePrometheusInstanceResponse>(await this.callApi(params, req, runtime), new $_model.UpdatePrometheusInstanceResponse({}));
|
|
977
2715
|
}
|
|
978
2716
|
|
|
979
2717
|
/**
|
|
980
|
-
*
|
|
2718
|
+
* 更新Prom实例信息
|
|
981
2719
|
*
|
|
982
|
-
* @param request -
|
|
983
|
-
* @returns
|
|
2720
|
+
* @param request - UpdatePrometheusInstanceRequest
|
|
2721
|
+
* @returns UpdatePrometheusInstanceResponse
|
|
984
2722
|
*/
|
|
985
|
-
async
|
|
2723
|
+
async updatePrometheusInstance(prometheusInstanceId: string, request: $_model.UpdatePrometheusInstanceRequest): Promise<$_model.UpdatePrometheusInstanceResponse> {
|
|
986
2724
|
let runtime = new $dara.RuntimeOptions({ });
|
|
987
2725
|
let headers : {[key: string ]: string} = { };
|
|
988
|
-
return await this.
|
|
2726
|
+
return await this.updatePrometheusInstanceWithOptions(prometheusInstanceId, request, headers, runtime);
|
|
989
2727
|
}
|
|
990
2728
|
|
|
991
2729
|
/**
|
|
992
|
-
*
|
|
2730
|
+
* 更新Prom视图实例信息
|
|
993
2731
|
*
|
|
994
|
-
* @param request -
|
|
2732
|
+
* @param request - UpdatePrometheusViewRequest
|
|
995
2733
|
* @param headers - map
|
|
996
2734
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
997
|
-
* @returns
|
|
2735
|
+
* @returns UpdatePrometheusViewResponse
|
|
998
2736
|
*/
|
|
999
|
-
async
|
|
2737
|
+
async updatePrometheusViewWithOptions(prometheusViewId: string, request: $_model.UpdatePrometheusViewRequest, headers: {[key: string ]: string}, runtime: $dara.RuntimeOptions): Promise<$_model.UpdatePrometheusViewResponse> {
|
|
1000
2738
|
request.validate();
|
|
1001
2739
|
let body : {[key: string ]: any} = { };
|
|
1002
|
-
if (!$dara.isNull(request.
|
|
1003
|
-
body["
|
|
2740
|
+
if (!$dara.isNull(request.authFreeReadPolicy)) {
|
|
2741
|
+
body["authFreeReadPolicy"] = request.authFreeReadPolicy;
|
|
1004
2742
|
}
|
|
1005
2743
|
|
|
1006
|
-
if (!$dara.isNull(request.
|
|
1007
|
-
body["
|
|
2744
|
+
if (!$dara.isNull(request.enableAuthFreeRead)) {
|
|
2745
|
+
body["enableAuthFreeRead"] = request.enableAuthFreeRead;
|
|
1008
2746
|
}
|
|
1009
2747
|
|
|
1010
|
-
if (!$dara.isNull(request.
|
|
1011
|
-
body["
|
|
2748
|
+
if (!$dara.isNull(request.enableAuthToken)) {
|
|
2749
|
+
body["enableAuthToken"] = request.enableAuthToken;
|
|
2750
|
+
}
|
|
2751
|
+
|
|
2752
|
+
if (!$dara.isNull(request.prometheusInstances)) {
|
|
2753
|
+
body["prometheusInstances"] = request.prometheusInstances;
|
|
2754
|
+
}
|
|
2755
|
+
|
|
2756
|
+
if (!$dara.isNull(request.prometheusViewName)) {
|
|
2757
|
+
body["prometheusViewName"] = request.prometheusViewName;
|
|
2758
|
+
}
|
|
2759
|
+
|
|
2760
|
+
if (!$dara.isNull(request.status)) {
|
|
2761
|
+
body["status"] = request.status;
|
|
2762
|
+
}
|
|
2763
|
+
|
|
2764
|
+
if (!$dara.isNull(request.workspace)) {
|
|
2765
|
+
body["workspace"] = request.workspace;
|
|
1012
2766
|
}
|
|
1013
2767
|
|
|
1014
2768
|
let req = new $OpenApiUtil.OpenApiRequest({
|
|
@@ -1016,29 +2770,29 @@ export default class Client extends OpenApi {
|
|
|
1016
2770
|
body: OpenApiUtil.parseToMap(body),
|
|
1017
2771
|
});
|
|
1018
2772
|
let params = new $OpenApiUtil.Params({
|
|
1019
|
-
action: "
|
|
2773
|
+
action: "UpdatePrometheusView",
|
|
1020
2774
|
version: "2024-03-30",
|
|
1021
2775
|
protocol: "HTTPS",
|
|
1022
|
-
pathname: `/
|
|
1023
|
-
method: "
|
|
2776
|
+
pathname: `/prometheus-views/${$dara.URL.percentEncode(prometheusViewId)}`,
|
|
2777
|
+
method: "PUT",
|
|
1024
2778
|
authType: "AK",
|
|
1025
2779
|
style: "ROA",
|
|
1026
2780
|
reqBodyType: "json",
|
|
1027
2781
|
bodyType: "json",
|
|
1028
2782
|
});
|
|
1029
|
-
return $dara.cast<$_model.
|
|
2783
|
+
return $dara.cast<$_model.UpdatePrometheusViewResponse>(await this.callApi(params, req, runtime), new $_model.UpdatePrometheusViewResponse({}));
|
|
1030
2784
|
}
|
|
1031
2785
|
|
|
1032
2786
|
/**
|
|
1033
|
-
*
|
|
2787
|
+
* 更新Prom视图实例信息
|
|
1034
2788
|
*
|
|
1035
|
-
* @param request -
|
|
1036
|
-
* @returns
|
|
2789
|
+
* @param request - UpdatePrometheusViewRequest
|
|
2790
|
+
* @returns UpdatePrometheusViewResponse
|
|
1037
2791
|
*/
|
|
1038
|
-
async
|
|
2792
|
+
async updatePrometheusView(prometheusViewId: string, request: $_model.UpdatePrometheusViewRequest): Promise<$_model.UpdatePrometheusViewResponse> {
|
|
1039
2793
|
let runtime = new $dara.RuntimeOptions({ });
|
|
1040
2794
|
let headers : {[key: string ]: string} = { };
|
|
1041
|
-
return await this.
|
|
2795
|
+
return await this.updatePrometheusViewWithOptions(prometheusViewId, request, headers, runtime);
|
|
1042
2796
|
}
|
|
1043
2797
|
|
|
1044
2798
|
/**
|
|
@@ -1109,10 +2863,6 @@ export default class Client extends OpenApi {
|
|
|
1109
2863
|
async updateUmodelWithOptions(workspace: string, request: $_model.UpdateUmodelRequest, headers: {[key: string ]: string}, runtime: $dara.RuntimeOptions): Promise<$_model.UpdateUmodelResponse> {
|
|
1110
2864
|
request.validate();
|
|
1111
2865
|
let body : {[key: string ]: any} = { };
|
|
1112
|
-
if (!$dara.isNull(request.commonSchemaRef)) {
|
|
1113
|
-
body["commonSchemaRef"] = request.commonSchemaRef;
|
|
1114
|
-
}
|
|
1115
|
-
|
|
1116
2866
|
if (!$dara.isNull(request.description)) {
|
|
1117
2867
|
body["description"] = request.description;
|
|
1118
2868
|
}
|