@huaweicloud/huaweicloud-sdk-cbh 3.1.69 → 3.1.71
Sign up to get free protection for your applications and to get access to all the features.
- package/huaweicloud-sdk-cbh.d.ts +1 -0
- package/huaweicloud-sdk-cbh.d.ts.map +1 -1
- package/huaweicloud-sdk-cbh.js +2 -1
- package/huaweicloud-sdk-cbh.js.map +1 -1
- package/package.json +2 -2
- package/v1/CbhClient.d.ts +12 -12
- package/v1/CbhClient.d.ts.map +1 -1
- package/v1/CbhClient.js +30 -30
- package/v1/CbhClient.js.map +1 -1
- package/v1/CbhRegion.d.ts +4 -0
- package/v1/CbhRegion.d.ts.map +1 -1
- package/v1/CbhRegion.js +9 -1
- package/v1/CbhRegion.js.map +1 -1
- package/v1/model/CreateCbhRequest.d.ts +7 -0
- package/v1/model/CreateCbhRequest.d.ts.map +1 -0
- package/v1/model/CreateCbhRequest.js +13 -0
- package/v1/model/CreateCbhRequest.js.map +1 -0
- package/v1/model/{CreateInstanceResponse.d.ts → CreateCbhResponse.d.ts} +6 -6
- package/v1/model/CreateCbhResponse.d.ts.map +1 -0
- package/v1/model/{CreateInstanceResponse.js → CreateCbhResponse.js} +4 -4
- package/v1/model/CreateCbhResponse.js.map +1 -0
- package/v1/model/InstallCbhEipRequest.d.ts +11 -0
- package/v1/model/InstallCbhEipRequest.d.ts.map +1 -0
- package/v1/model/InstallCbhEipRequest.js +24 -0
- package/v1/model/InstallCbhEipRequest.js.map +1 -0
- package/v1/model/InstallCbhEipResponse.d.ts +5 -0
- package/v1/model/InstallCbhEipResponse.d.ts.map +1 -0
- package/v1/model/InstallCbhEipResponse.js +11 -0
- package/v1/model/InstallCbhEipResponse.js.map +1 -0
- package/v1/model/UninstallCbhEipRequest.d.ts +11 -0
- package/v1/model/UninstallCbhEipRequest.d.ts.map +1 -0
- package/v1/model/UninstallCbhEipRequest.js +24 -0
- package/v1/model/UninstallCbhEipRequest.js.map +1 -0
- package/v1/model/UninstallCbhEipResponse.d.ts +5 -0
- package/v1/model/UninstallCbhEipResponse.d.ts.map +1 -0
- package/v1/model/UninstallCbhEipResponse.js +11 -0
- package/v1/model/UninstallCbhEipResponse.js.map +1 -0
- package/v1/public-api.d.ts +6 -6
- package/v1/public-api.d.ts.map +1 -1
- package/v1/public-api.js +6 -6
- package/v1/public-api.js.map +1 -1
- package/v2/CbhClient.d.ts +773 -0
- package/v2/CbhClient.d.ts.map +1 -0
- package/v2/CbhClient.js +1454 -0
- package/v2/CbhClient.js.map +1 -0
- package/v2/CbhRegion.d.ts +16 -0
- package/v2/CbhRegion.d.ts.map +1 -0
- package/v2/CbhRegion.js +40 -0
- package/v2/CbhRegion.js.map +1 -0
- package/v2/model/AuthorizeCsmsAndKmsRequestBody.d.ts +6 -0
- package/v2/model/AuthorizeCsmsAndKmsRequestBody.d.ts.map +1 -0
- package/v2/model/AuthorizeCsmsAndKmsRequestBody.js +14 -0
- package/v2/model/AuthorizeCsmsAndKmsRequestBody.js.map +1 -0
- package/v2/model/AvailabilityZones.d.ts +18 -0
- package/v2/model/AvailabilityZones.d.ts.map +1 -0
- package/v2/model/AvailabilityZones.js +45 -0
- package/v2/model/AvailabilityZones.js.map +1 -0
- package/v2/model/BatchCreateInstanceTagRequest.d.ts +11 -0
- package/v2/model/BatchCreateInstanceTagRequest.d.ts.map +1 -0
- package/v2/model/BatchCreateInstanceTagRequest.js +24 -0
- package/v2/model/BatchCreateInstanceTagRequest.js.map +1 -0
- package/v2/model/BatchCreateInstanceTagResponse.d.ts +5 -0
- package/v2/model/BatchCreateInstanceTagResponse.d.ts.map +1 -0
- package/v2/model/BatchCreateInstanceTagResponse.js +11 -0
- package/v2/model/BatchCreateInstanceTagResponse.js.map +1 -0
- package/v2/model/CBHInstances.d.ts +59 -0
- package/v2/model/CBHInstances.d.ts.map +1 -0
- package/v2/model/CBHInstances.js +146 -0
- package/v2/model/CBHInstances.js.map +1 -0
- package/v2/model/CbsGetResourceIdTags.d.ts +13 -0
- package/v2/model/CbsGetResourceIdTags.d.ts.map +1 -0
- package/v2/model/CbsGetResourceIdTags.js +30 -0
- package/v2/model/CbsGetResourceIdTags.js.map +1 -0
- package/v2/model/CbsGetSpecInfo.d.ts +26 -0
- package/v2/model/CbsGetSpecInfo.d.ts.map +1 -0
- package/v2/model/CbsGetSpecInfo.js +67 -0
- package/v2/model/CbsGetSpecInfo.js.map +1 -0
- package/v2/model/ChangeInstanceRequestBody.d.ts +20 -0
- package/v2/model/ChangeInstanceRequestBody.d.ts.map +1 -0
- package/v2/model/ChangeInstanceRequestBody.js +50 -0
- package/v2/model/ChangeInstanceRequestBody.js.map +1 -0
- package/v2/model/ChangeInstanceSecurityGroups.d.ts +8 -0
- package/v2/model/ChangeInstanceSecurityGroups.d.ts.map +1 -0
- package/v2/model/ChangeInstanceSecurityGroups.js +20 -0
- package/v2/model/ChangeInstanceSecurityGroups.js.map +1 -0
- package/v2/model/CommonCbhRequestBody.d.ts +8 -0
- package/v2/model/CommonCbhRequestBody.d.ts.map +1 -0
- package/v2/model/CommonCbhRequestBody.js +20 -0
- package/v2/model/CommonCbhRequestBody.js.map +1 -0
- package/v2/model/CountInstancesByTagRequest.d.ts +7 -0
- package/v2/model/CountInstancesByTagRequest.d.ts.map +1 -0
- package/v2/model/CountInstancesByTagRequest.js +13 -0
- package/v2/model/CountInstancesByTagRequest.js.map +1 -0
- package/v2/model/CountInstancesByTagResponse.d.ts +9 -0
- package/v2/model/CountInstancesByTagResponse.d.ts.map +1 -0
- package/v2/model/CountInstancesByTagResponse.js +21 -0
- package/v2/model/CountInstancesByTagResponse.js.map +1 -0
- package/v2/model/CreateInstanceBody.d.ts +7 -0
- package/v2/model/CreateInstanceBody.d.ts.map +1 -0
- package/v2/model/CreateInstanceBody.js +14 -0
- package/v2/model/CreateInstanceBody.js.map +1 -0
- package/{v1 → v2}/model/CreateInstanceRequest.d.ts.map +1 -1
- package/{v1 → v2}/model/CreateInstanceRequest.js.map +1 -1
- package/v2/model/CreateInstanceResponse.d.ts +9 -0
- package/v2/model/CreateInstanceResponse.d.ts.map +1 -0
- package/v2/model/CreateInstanceResponse.js +21 -0
- package/v2/model/CreateInstanceResponse.js.map +1 -0
- package/v2/model/DeleteInstanceRequest.d.ts +8 -0
- package/v2/model/DeleteInstanceRequest.d.ts.map +1 -0
- package/v2/model/DeleteInstanceRequest.js +19 -0
- package/v2/model/DeleteInstanceRequest.js.map +1 -0
- package/v2/model/DeleteInstanceResponse.d.ts +5 -0
- package/v2/model/DeleteInstanceResponse.d.ts.map +1 -0
- package/v2/model/DeleteInstanceResponse.js +11 -0
- package/v2/model/DeleteInstanceResponse.js.map +1 -0
- package/{v1 → v2}/model/InstallInstanceEipRequest.d.ts.map +1 -1
- package/{v1 → v2}/model/InstallInstanceEipRequest.js.map +1 -1
- package/{v1 → v2}/model/InstallInstanceEipResponse.d.ts.map +1 -1
- package/{v1 → v2}/model/InstallInstanceEipResponse.js.map +1 -1
- package/v2/model/InstanceDetail.d.ts +81 -0
- package/v2/model/InstanceDetail.d.ts.map +1 -0
- package/v2/model/InstanceDetail.js +187 -0
- package/v2/model/InstanceDetail.js.map +1 -0
- package/v2/model/InstanceDetailAzInfo.d.ts +20 -0
- package/v2/model/InstanceDetailAzInfo.d.ts.map +1 -0
- package/v2/model/InstanceDetailAzInfo.js +50 -0
- package/v2/model/InstanceDetailAzInfo.js.map +1 -0
- package/v2/model/InstanceDetailHaInfo.d.ts +12 -0
- package/v2/model/InstanceDetailHaInfo.d.ts.map +1 -0
- package/v2/model/InstanceDetailHaInfo.js +31 -0
- package/v2/model/InstanceDetailHaInfo.js.map +1 -0
- package/v2/model/InstanceDetailNetwork.d.ts +34 -0
- package/v2/model/InstanceDetailNetwork.d.ts.map +1 -0
- package/v2/model/InstanceDetailNetwork.js +90 -0
- package/v2/model/InstanceDetailNetwork.js.map +1 -0
- package/v2/model/InstanceDetailResourceInfo.d.ts +22 -0
- package/v2/model/InstanceDetailResourceInfo.d.ts.map +1 -0
- package/v2/model/InstanceDetailResourceInfo.js +58 -0
- package/v2/model/InstanceDetailResourceInfo.js.map +1 -0
- package/v2/model/InstanceDetailStatusInfo.d.ts +26 -0
- package/v2/model/InstanceDetailStatusInfo.d.ts.map +1 -0
- package/v2/model/InstanceDetailStatusInfo.js +69 -0
- package/v2/model/InstanceDetailStatusInfo.js.map +1 -0
- package/v2/model/IsAutoPay.d.ts +4 -0
- package/v2/model/IsAutoPay.d.ts.map +1 -0
- package/v2/model/IsAutoPay.js +9 -0
- package/v2/model/IsAutoPay.js.map +1 -0
- package/v2/model/ListAvailableZonesRequest.d.ts +4 -0
- package/v2/model/ListAvailableZonesRequest.d.ts.map +1 -0
- package/v2/model/ListAvailableZonesRequest.js +9 -0
- package/v2/model/ListAvailableZonesRequest.js.map +1 -0
- package/v2/model/ListAvailableZonesResponse.d.ts +10 -0
- package/v2/model/ListAvailableZonesResponse.d.ts.map +1 -0
- package/v2/model/ListAvailableZonesResponse.js +21 -0
- package/v2/model/ListAvailableZonesResponse.js.map +1 -0
- package/v2/model/ListCBHByTagsRequestBody.d.ts +30 -0
- package/v2/model/ListCBHByTagsRequestBody.d.ts.map +1 -0
- package/v2/model/ListCBHByTagsRequestBody.js +67 -0
- package/v2/model/ListCBHByTagsRequestBody.js.map +1 -0
- package/v2/model/ListInstancesByTagRequest.d.ts +11 -0
- package/v2/model/ListInstancesByTagRequest.d.ts.map +1 -0
- package/v2/model/ListInstancesByTagRequest.js +21 -0
- package/v2/model/ListInstancesByTagRequest.js.map +1 -0
- package/v2/model/ListInstancesByTagResponse.d.ts +12 -0
- package/v2/model/ListInstancesByTagResponse.d.ts.map +1 -0
- package/v2/model/ListInstancesByTagResponse.js +25 -0
- package/v2/model/ListInstancesByTagResponse.js.map +1 -0
- package/v2/model/ListInstancesRequest.d.ts +8 -0
- package/v2/model/ListInstancesRequest.d.ts.map +1 -0
- package/v2/model/ListInstancesRequest.js +19 -0
- package/v2/model/ListInstancesRequest.js.map +1 -0
- package/v2/model/ListInstancesResponse.d.ts +10 -0
- package/v2/model/ListInstancesResponse.d.ts.map +1 -0
- package/v2/model/ListInstancesResponse.js +19 -0
- package/v2/model/ListInstancesResponse.js.map +1 -0
- package/v2/model/ListSpecificationsRequest.d.ts +10 -0
- package/v2/model/ListSpecificationsRequest.d.ts.map +1 -0
- package/v2/model/ListSpecificationsRequest.js +24 -0
- package/v2/model/ListSpecificationsRequest.js.map +1 -0
- package/v2/model/ListSpecificationsResponse.d.ts +8 -0
- package/v2/model/ListSpecificationsResponse.d.ts.map +1 -0
- package/v2/model/ListSpecificationsResponse.js +15 -0
- package/v2/model/ListSpecificationsResponse.js.map +1 -0
- package/v2/model/ListTagsRequest.d.ts +4 -0
- package/v2/model/ListTagsRequest.d.ts.map +1 -0
- package/v2/model/ListTagsRequest.js +9 -0
- package/v2/model/ListTagsRequest.js.map +1 -0
- package/v2/model/ListTagsResponse.d.ts +8 -0
- package/v2/model/ListTagsResponse.d.ts.map +1 -0
- package/v2/model/ListTagsResponse.js +15 -0
- package/v2/model/ListTagsResponse.js.map +1 -0
- package/v2/model/LoginInstanceRequest.d.ts +7 -0
- package/v2/model/LoginInstanceRequest.d.ts.map +1 -0
- package/v2/model/LoginInstanceRequest.js +13 -0
- package/v2/model/LoginInstanceRequest.js.map +1 -0
- package/v2/model/LoginInstanceResponse.d.ts +9 -0
- package/v2/model/LoginInstanceResponse.d.ts.map +1 -0
- package/v2/model/LoginInstanceResponse.js +21 -0
- package/v2/model/LoginInstanceResponse.js.map +1 -0
- package/v2/model/Match.d.ts +8 -0
- package/v2/model/Match.d.ts.map +1 -0
- package/v2/model/Match.js +19 -0
- package/v2/model/Match.js.map +1 -0
- package/v2/model/OperateEipRequestBody.d.ts +8 -0
- package/v2/model/OperateEipRequestBody.d.ts.map +1 -0
- package/v2/model/OperateEipRequestBody.js +20 -0
- package/v2/model/OperateEipRequestBody.js.map +1 -0
- package/v2/model/RebootCbhRequestBody.d.ts +12 -0
- package/v2/model/RebootCbhRequestBody.d.ts.map +1 -0
- package/v2/model/RebootCbhRequestBody.js +31 -0
- package/v2/model/RebootCbhRequestBody.js.map +1 -0
- package/v2/model/RebootInstanceRequest.d.ts +7 -0
- package/v2/model/RebootInstanceRequest.d.ts.map +1 -0
- package/v2/model/RebootInstanceRequest.js +13 -0
- package/v2/model/RebootInstanceRequest.js.map +1 -0
- package/v2/model/RebootInstanceResponse.d.ts +5 -0
- package/v2/model/RebootInstanceResponse.d.ts.map +1 -0
- package/v2/model/RebootInstanceResponse.js +11 -0
- package/v2/model/RebootInstanceResponse.js.map +1 -0
- package/v2/model/RegisterAuthorizationRequest.d.ts +7 -0
- package/v2/model/RegisterAuthorizationRequest.d.ts.map +1 -0
- package/v2/model/RegisterAuthorizationRequest.js +13 -0
- package/v2/model/RegisterAuthorizationRequest.js.map +1 -0
- package/v2/model/RegisterAuthorizationResponse.d.ts +5 -0
- package/v2/model/RegisterAuthorizationResponse.d.ts.map +1 -0
- package/v2/model/RegisterAuthorizationResponse.js +11 -0
- package/v2/model/RegisterAuthorizationResponse.js.map +1 -0
- package/v2/model/ResetInstanceLoginMethodRequest.d.ts +7 -0
- package/v2/model/ResetInstanceLoginMethodRequest.d.ts.map +1 -0
- package/v2/model/ResetInstanceLoginMethodRequest.js +13 -0
- package/v2/model/ResetInstanceLoginMethodRequest.js.map +1 -0
- package/v2/model/ResetInstanceLoginMethodResponse.d.ts +5 -0
- package/v2/model/ResetInstanceLoginMethodResponse.d.ts.map +1 -0
- package/v2/model/ResetInstanceLoginMethodResponse.js +11 -0
- package/v2/model/ResetInstanceLoginMethodResponse.js.map +1 -0
- package/v2/model/ResetInstancePasswordRequest.d.ts +7 -0
- package/v2/model/ResetInstancePasswordRequest.d.ts.map +1 -0
- package/v2/model/ResetInstancePasswordRequest.js +13 -0
- package/v2/model/ResetInstancePasswordRequest.js.map +1 -0
- package/v2/model/ResetInstancePasswordResponse.d.ts +5 -0
- package/v2/model/ResetInstancePasswordResponse.d.ts.map +1 -0
- package/v2/model/ResetInstancePasswordResponse.js +11 -0
- package/v2/model/ResetInstancePasswordResponse.js.map +1 -0
- package/v2/model/ResetPassword.d.ts +12 -0
- package/v2/model/ResetPassword.d.ts.map +1 -0
- package/v2/model/ResetPassword.js +31 -0
- package/v2/model/ResetPassword.js.map +1 -0
- package/v2/model/ResizeInstanceRequest.d.ts +7 -0
- package/v2/model/ResizeInstanceRequest.d.ts.map +1 -0
- package/v2/model/ResizeInstanceRequest.js +13 -0
- package/v2/model/ResizeInstanceRequest.js.map +1 -0
- package/v2/model/ResizeInstanceResponse.d.ts +9 -0
- package/v2/model/ResizeInstanceResponse.d.ts.map +1 -0
- package/v2/model/ResizeInstanceResponse.js +21 -0
- package/v2/model/ResizeInstanceResponse.js.map +1 -0
- package/v2/model/ResourceTag.d.ts +8 -0
- package/v2/model/ResourceTag.d.ts.map +1 -0
- package/v2/model/ResourceTag.js +19 -0
- package/v2/model/ResourceTag.js.map +1 -0
- package/v2/model/Resources.d.ts +23 -0
- package/v2/model/Resources.d.ts.map +1 -0
- package/v2/model/Resources.js +58 -0
- package/v2/model/Resources.js.map +1 -0
- package/v2/model/RollbackInstanceRequest.d.ts +7 -0
- package/v2/model/RollbackInstanceRequest.d.ts.map +1 -0
- package/v2/model/RollbackInstanceRequest.js +13 -0
- package/v2/model/RollbackInstanceRequest.js.map +1 -0
- package/v2/model/RollbackInstanceRequestBody.d.ts +8 -0
- package/v2/model/RollbackInstanceRequestBody.d.ts.map +1 -0
- package/v2/model/RollbackInstanceRequestBody.js +20 -0
- package/v2/model/RollbackInstanceRequestBody.js.map +1 -0
- package/v2/model/RollbackInstanceResponse.d.ts +5 -0
- package/v2/model/RollbackInstanceResponse.d.ts.map +1 -0
- package/v2/model/RollbackInstanceResponse.js +11 -0
- package/v2/model/RollbackInstanceResponse.js.map +1 -0
- package/v2/model/ShowAuthorizationRequest.d.ts +4 -0
- package/v2/model/ShowAuthorizationRequest.d.ts.map +1 -0
- package/v2/model/ShowAuthorizationRequest.js +9 -0
- package/v2/model/ShowAuthorizationRequest.js.map +1 -0
- package/v2/model/ShowAuthorizationResponse.d.ts +7 -0
- package/v2/model/ShowAuthorizationResponse.d.ts.map +1 -0
- package/v2/model/ShowAuthorizationResponse.js +15 -0
- package/v2/model/ShowAuthorizationResponse.js.map +1 -0
- package/v2/model/ShowEcsQuotaRequest.d.ts +12 -0
- package/v2/model/ShowEcsQuotaRequest.d.ts.map +1 -0
- package/v2/model/ShowEcsQuotaRequest.js +31 -0
- package/v2/model/ShowEcsQuotaRequest.js.map +1 -0
- package/v2/model/ShowEcsQuotaResponse.d.ts +11 -0
- package/v2/model/ShowEcsQuotaResponse.d.ts.map +1 -0
- package/v2/model/ShowEcsQuotaResponse.js +25 -0
- package/v2/model/ShowEcsQuotaResponse.js.map +1 -0
- package/v2/model/ShowInstanceStatusRequest.d.ts +8 -0
- package/v2/model/ShowInstanceStatusRequest.d.ts.map +1 -0
- package/v2/model/ShowInstanceStatusRequest.js +20 -0
- package/v2/model/ShowInstanceStatusRequest.js.map +1 -0
- package/v2/model/ShowInstanceStatusResponse.d.ts +13 -0
- package/v2/model/ShowInstanceStatusResponse.d.ts.map +1 -0
- package/v2/model/ShowInstanceStatusResponse.js +29 -0
- package/v2/model/ShowInstanceStatusResponse.js.map +1 -0
- package/v2/model/ShowInstanceTagsRequest.d.ts +8 -0
- package/v2/model/ShowInstanceTagsRequest.d.ts.map +1 -0
- package/v2/model/ShowInstanceTagsRequest.js +20 -0
- package/v2/model/ShowInstanceTagsRequest.js.map +1 -0
- package/v2/model/ShowInstanceTagsResponse.d.ts +8 -0
- package/v2/model/ShowInstanceTagsResponse.d.ts.map +1 -0
- package/v2/model/ShowInstanceTagsResponse.js +15 -0
- package/v2/model/ShowInstanceTagsResponse.js.map +1 -0
- package/v2/model/ShowOmUrlRequest.d.ts +16 -0
- package/v2/model/ShowOmUrlRequest.d.ts.map +1 -0
- package/v2/model/ShowOmUrlRequest.js +42 -0
- package/v2/model/ShowOmUrlRequest.js.map +1 -0
- package/v2/model/ShowOmUrlResponse.d.ts +27 -0
- package/v2/model/ShowOmUrlResponse.d.ts.map +1 -0
- package/v2/model/ShowOmUrlResponse.js +44 -0
- package/v2/model/ShowOmUrlResponse.js.map +1 -0
- package/v2/model/ShowQuotaRequest.d.ts +4 -0
- package/v2/model/ShowQuotaRequest.d.ts.map +1 -0
- package/v2/model/ShowQuotaRequest.js +9 -0
- package/v2/model/ShowQuotaRequest.js.map +1 -0
- package/v2/model/ShowQuotaResponse.d.ts +11 -0
- package/v2/model/ShowQuotaResponse.d.ts.map +1 -0
- package/v2/model/ShowQuotaResponse.js +25 -0
- package/v2/model/ShowQuotaResponse.js.map +1 -0
- package/v2/model/StartInstanceRequest.d.ts +7 -0
- package/v2/model/StartInstanceRequest.d.ts.map +1 -0
- package/v2/model/StartInstanceRequest.js +13 -0
- package/v2/model/StartInstanceRequest.js.map +1 -0
- package/v2/model/StartInstanceResponse.d.ts +5 -0
- package/v2/model/StartInstanceResponse.d.ts.map +1 -0
- package/v2/model/StartInstanceResponse.js +11 -0
- package/v2/model/StartInstanceResponse.js.map +1 -0
- package/v2/model/StopInstanceRequest.d.ts +7 -0
- package/v2/model/StopInstanceRequest.d.ts.map +1 -0
- package/v2/model/StopInstanceRequest.js +13 -0
- package/v2/model/StopInstanceRequest.js.map +1 -0
- package/v2/model/StopInstanceResponse.d.ts +5 -0
- package/v2/model/StopInstanceResponse.d.ts.map +1 -0
- package/v2/model/StopInstanceResponse.js +11 -0
- package/v2/model/StopInstanceResponse.js.map +1 -0
- package/v2/model/Tags.d.ts +8 -0
- package/v2/model/Tags.d.ts.map +1 -0
- package/v2/model/Tags.js +19 -0
- package/v2/model/Tags.js.map +1 -0
- package/{v1 → v2}/model/UninstallInstanceEipRequest.d.ts.map +1 -1
- package/{v1 → v2}/model/UninstallInstanceEipRequest.js.map +1 -1
- package/{v1 → v2}/model/UninstallInstanceEipResponse.d.ts.map +1 -1
- package/{v1 → v2}/model/UninstallInstanceEipResponse.js.map +1 -1
- package/v2/model/UpdateInstanceSecurityGroupRequest.d.ts +11 -0
- package/v2/model/UpdateInstanceSecurityGroupRequest.d.ts.map +1 -0
- package/v2/model/UpdateInstanceSecurityGroupRequest.js +24 -0
- package/v2/model/UpdateInstanceSecurityGroupRequest.js.map +1 -0
- package/v2/model/UpdateInstanceSecurityGroupResponse.d.ts +5 -0
- package/v2/model/UpdateInstanceSecurityGroupResponse.d.ts.map +1 -0
- package/v2/model/UpdateInstanceSecurityGroupResponse.js +11 -0
- package/v2/model/UpdateInstanceSecurityGroupResponse.js.map +1 -0
- package/v2/model/UpgradeCbhRequestBody.d.ts +14 -0
- package/v2/model/UpgradeCbhRequestBody.d.ts.map +1 -0
- package/v2/model/UpgradeCbhRequestBody.js +35 -0
- package/v2/model/UpgradeCbhRequestBody.js.map +1 -0
- package/v2/model/UpgradeInstanceRequest.d.ts +7 -0
- package/v2/model/UpgradeInstanceRequest.d.ts.map +1 -0
- package/v2/model/UpgradeInstanceRequest.js +13 -0
- package/v2/model/UpgradeInstanceRequest.js.map +1 -0
- package/v2/model/UpgradeInstanceResponse.d.ts +5 -0
- package/v2/model/UpgradeInstanceResponse.d.ts.map +1 -0
- package/v2/model/UpgradeInstanceResponse.js +11 -0
- package/v2/model/UpgradeInstanceResponse.js.map +1 -0
- package/v2/public-api.d.ts +85 -0
- package/v2/public-api.d.ts.map +1 -0
- package/v2/public-api.js +101 -0
- package/v2/public-api.js.map +1 -0
- package/v1/model/CreateInstanceResponse.d.ts.map +0 -1
- package/v1/model/CreateInstanceResponse.js.map +0 -1
- /package/{v1 → v2}/model/CreateInstanceRequest.d.ts +0 -0
- /package/{v1 → v2}/model/CreateInstanceRequest.js +0 -0
- /package/{v1 → v2}/model/InstallInstanceEipRequest.d.ts +0 -0
- /package/{v1 → v2}/model/InstallInstanceEipRequest.js +0 -0
- /package/{v1 → v2}/model/InstallInstanceEipResponse.d.ts +0 -0
- /package/{v1 → v2}/model/InstallInstanceEipResponse.js +0 -0
- /package/{v1 → v2}/model/UninstallInstanceEipRequest.d.ts +0 -0
- /package/{v1 → v2}/model/UninstallInstanceEipRequest.js +0 -0
- /package/{v1 → v2}/model/UninstallInstanceEipResponse.d.ts +0 -0
- /package/{v1 → v2}/model/UninstallInstanceEipResponse.js +0 -0
package/v2/CbhClient.js
ADDED
@@ -0,0 +1,1454 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.RequiredError = exports.ParamCreater = exports.CbhClient = void 0;
|
4
|
+
const ClientBuilder_1 = require("@huaweicloud/huaweicloud-sdk-core/ClientBuilder");
|
5
|
+
const BatchCreateInstanceTagRequest_1 = require("./model/BatchCreateInstanceTagRequest");
|
6
|
+
const CountInstancesByTagRequest_1 = require("./model/CountInstancesByTagRequest");
|
7
|
+
const CreateInstanceRequest_1 = require("./model/CreateInstanceRequest");
|
8
|
+
const DeleteInstanceRequest_1 = require("./model/DeleteInstanceRequest");
|
9
|
+
const InstallInstanceEipRequest_1 = require("./model/InstallInstanceEipRequest");
|
10
|
+
const ListInstancesByTagRequest_1 = require("./model/ListInstancesByTagRequest");
|
11
|
+
const ListInstancesRequest_1 = require("./model/ListInstancesRequest");
|
12
|
+
const ListSpecificationsRequest_1 = require("./model/ListSpecificationsRequest");
|
13
|
+
const LoginInstanceRequest_1 = require("./model/LoginInstanceRequest");
|
14
|
+
const RebootInstanceRequest_1 = require("./model/RebootInstanceRequest");
|
15
|
+
const RegisterAuthorizationRequest_1 = require("./model/RegisterAuthorizationRequest");
|
16
|
+
const ResetInstanceLoginMethodRequest_1 = require("./model/ResetInstanceLoginMethodRequest");
|
17
|
+
const ResetInstancePasswordRequest_1 = require("./model/ResetInstancePasswordRequest");
|
18
|
+
const ResizeInstanceRequest_1 = require("./model/ResizeInstanceRequest");
|
19
|
+
const RollbackInstanceRequest_1 = require("./model/RollbackInstanceRequest");
|
20
|
+
const ShowEcsQuotaRequest_1 = require("./model/ShowEcsQuotaRequest");
|
21
|
+
const ShowInstanceStatusRequest_1 = require("./model/ShowInstanceStatusRequest");
|
22
|
+
const ShowInstanceTagsRequest_1 = require("./model/ShowInstanceTagsRequest");
|
23
|
+
const ShowOmUrlRequest_1 = require("./model/ShowOmUrlRequest");
|
24
|
+
const StartInstanceRequest_1 = require("./model/StartInstanceRequest");
|
25
|
+
const StopInstanceRequest_1 = require("./model/StopInstanceRequest");
|
26
|
+
const UninstallInstanceEipRequest_1 = require("./model/UninstallInstanceEipRequest");
|
27
|
+
const UpdateInstanceSecurityGroupRequest_1 = require("./model/UpdateInstanceSecurityGroupRequest");
|
28
|
+
const UpgradeInstanceRequest_1 = require("./model/UpgradeInstanceRequest");
|
29
|
+
class CbhClient {
|
30
|
+
static newBuilder() {
|
31
|
+
return new ClientBuilder_1.ClientBuilder(newClient);
|
32
|
+
}
|
33
|
+
constructor(client) {
|
34
|
+
this.hcClient = client;
|
35
|
+
}
|
36
|
+
getPath() {
|
37
|
+
return __dirname;
|
38
|
+
}
|
39
|
+
/**
|
40
|
+
* 操作堡垒机实例资源标签。
|
41
|
+
*
|
42
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
43
|
+
*
|
44
|
+
* @summary 操作堡垒机实例资源标签
|
45
|
+
* @param {string} resourceId 资源ID。(list接口获取)
|
46
|
+
* @param {CbsGetResourceIdTags} batchCreateInstanceTagRequestBody BatchCreateInstanceTagRequestBody
|
47
|
+
* @param {*} [options] Override http request option.
|
48
|
+
* @throws {RequiredError}
|
49
|
+
*/
|
50
|
+
batchCreateInstanceTag(batchCreateInstanceTagRequest) {
|
51
|
+
const options = (0, exports.ParamCreater)().batchCreateInstanceTag(batchCreateInstanceTagRequest);
|
52
|
+
// @ts-ignore
|
53
|
+
options['responseHeaders'] = [''];
|
54
|
+
return this.hcClient.sendRequest(options);
|
55
|
+
}
|
56
|
+
/**
|
57
|
+
* 统计符合标签条件的实例数量。
|
58
|
+
*
|
59
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
60
|
+
*
|
61
|
+
* @summary 统计符合标签条件的实例数量
|
62
|
+
* @param {ListCBHByTagsRequestBody} countInstancesByTagRequestBody CountInstancesByTagRequestBody
|
63
|
+
* @param {*} [options] Override http request option.
|
64
|
+
* @throws {RequiredError}
|
65
|
+
*/
|
66
|
+
countInstancesByTag(countInstancesByTagRequest) {
|
67
|
+
const options = (0, exports.ParamCreater)().countInstancesByTag(countInstancesByTagRequest);
|
68
|
+
// @ts-ignore
|
69
|
+
options['responseHeaders'] = [''];
|
70
|
+
return this.hcClient.sendRequest(options);
|
71
|
+
}
|
72
|
+
/**
|
73
|
+
* 创建云堡垒机实例。
|
74
|
+
*
|
75
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
76
|
+
*
|
77
|
+
* @summary 创建堡垒机实例
|
78
|
+
* @param {CreateInstanceBody} createInstanceRequestBody CreateInstanceBody
|
79
|
+
* @param {*} [options] Override http request option.
|
80
|
+
* @throws {RequiredError}
|
81
|
+
*/
|
82
|
+
createInstance(createInstanceRequest) {
|
83
|
+
const options = (0, exports.ParamCreater)().createInstance(createInstanceRequest);
|
84
|
+
// @ts-ignore
|
85
|
+
options['responseHeaders'] = [''];
|
86
|
+
return this.hcClient.sendRequest(options);
|
87
|
+
}
|
88
|
+
/**
|
89
|
+
* 删除云堡垒机故障实例。
|
90
|
+
*
|
91
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
92
|
+
*
|
93
|
+
* @summary 删除故障和按需云堡垒机实例
|
94
|
+
* @param {number} [instanceId] 删除故障云堡垒机实例id。
|
95
|
+
* @param {*} [options] Override http request option.
|
96
|
+
* @throws {RequiredError}
|
97
|
+
*/
|
98
|
+
deleteInstance(deleteInstanceRequest) {
|
99
|
+
const options = (0, exports.ParamCreater)().deleteInstance(deleteInstanceRequest);
|
100
|
+
// @ts-ignore
|
101
|
+
options['responseHeaders'] = [''];
|
102
|
+
return this.hcClient.sendRequest(options);
|
103
|
+
}
|
104
|
+
/**
|
105
|
+
* 云堡垒机实例绑定弹性公网IP。
|
106
|
+
*
|
107
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
108
|
+
*
|
109
|
+
* @summary 堡垒机实例绑定弹性公网IP
|
110
|
+
* @param {string} serverId 云堡垒机实例ID,使用UUID格式表示。 [实例ID获取方式](https://support.huaweicloud.com/usermanual-cbh/cbh_02_1003.html)。
|
111
|
+
* @param {OperateEipRequestBody} installInstanceEipRequestBody InstallInstanceEipRequestBody
|
112
|
+
* @param {*} [options] Override http request option.
|
113
|
+
* @throws {RequiredError}
|
114
|
+
*/
|
115
|
+
installInstanceEip(installInstanceEipRequest) {
|
116
|
+
const options = (0, exports.ParamCreater)().installInstanceEip(installInstanceEipRequest);
|
117
|
+
// @ts-ignore
|
118
|
+
options['responseHeaders'] = [''];
|
119
|
+
return this.hcClient.sendRequest(options);
|
120
|
+
}
|
121
|
+
/**
|
122
|
+
* 获取云堡垒机服务可用区信息。
|
123
|
+
*
|
124
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
125
|
+
*
|
126
|
+
* @summary 获取服务可用区信息
|
127
|
+
* @param {*} [options] Override http request option.
|
128
|
+
* @throws {RequiredError}
|
129
|
+
*/
|
130
|
+
listAvailableZones(listAvailableZonesRequest) {
|
131
|
+
const options = (0, exports.ParamCreater)().listAvailableZones();
|
132
|
+
// @ts-ignore
|
133
|
+
options['responseHeaders'] = [''];
|
134
|
+
return this.hcClient.sendRequest(options);
|
135
|
+
}
|
136
|
+
/**
|
137
|
+
* 获取当前租户下的堡垒机实例列表。
|
138
|
+
*
|
139
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
140
|
+
*
|
141
|
+
* @summary 获取堡垒机实例列表
|
142
|
+
* @param {number} [instanceId] 云堡垒机实例ID。(非必传,需要查询单个实例详情时传入)
|
143
|
+
* @param {*} [options] Override http request option.
|
144
|
+
* @throws {RequiredError}
|
145
|
+
*/
|
146
|
+
listInstances(listInstancesRequest) {
|
147
|
+
const options = (0, exports.ParamCreater)().listInstances(listInstancesRequest);
|
148
|
+
// @ts-ignore
|
149
|
+
options['responseHeaders'] = [''];
|
150
|
+
return this.hcClient.sendRequest(options);
|
151
|
+
}
|
152
|
+
/**
|
153
|
+
* 使用标签过滤实例。
|
154
|
+
*
|
155
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
156
|
+
*
|
157
|
+
* @summary 使用标签过滤实例
|
158
|
+
* @param {ListCBHByTagsRequestBody} listInstancesByTagRequestBody ListInstancesByTagRequestBody
|
159
|
+
* @param {string} [limit] 查询记录数(action为count时无此参数)如果action为filter默认为1000,limit最多为1000,不能为负数,最小值为1。
|
160
|
+
* @param {string} [offset] 索引位置,偏移量(action为count时无此参数)从第一条数据偏移offset条数据后开始查询,如果action为filter默认为0(偏移0条数据,表示从第一条数据开始查询),必须为数字,不能为负数。
|
161
|
+
* @param {*} [options] Override http request option.
|
162
|
+
* @throws {RequiredError}
|
163
|
+
*/
|
164
|
+
listInstancesByTag(listInstancesByTagRequest) {
|
165
|
+
const options = (0, exports.ParamCreater)().listInstancesByTag(listInstancesByTagRequest);
|
166
|
+
// @ts-ignore
|
167
|
+
options['responseHeaders'] = [''];
|
168
|
+
return this.hcClient.sendRequest(options);
|
169
|
+
}
|
170
|
+
/**
|
171
|
+
* 查询云堡垒机规格信息。
|
172
|
+
*
|
173
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
174
|
+
*
|
175
|
+
* @summary 查询云堡垒机规格信息
|
176
|
+
* @param {string} action 查询云堡垒机规格当前动作。 - create:查询可创建云堡垒机规格信息 - update:查询可变更云堡垒机规格信息
|
177
|
+
* @param {string} [specCode] 云堡垒机规格信息,当action为update时此字段必填。
|
178
|
+
* @param {*} [options] Override http request option.
|
179
|
+
* @throws {RequiredError}
|
180
|
+
*/
|
181
|
+
listSpecifications(listSpecificationsRequest) {
|
182
|
+
const options = (0, exports.ParamCreater)().listSpecifications(listSpecificationsRequest);
|
183
|
+
// @ts-ignore
|
184
|
+
options['responseHeaders'] = [''];
|
185
|
+
return this.hcClient.sendRequest(options);
|
186
|
+
}
|
187
|
+
/**
|
188
|
+
* 查询租户在项目中的资源标签集合。
|
189
|
+
*
|
190
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
191
|
+
*
|
192
|
+
* @summary 查询租户在项目中的资源标签集合
|
193
|
+
* @param {*} [options] Override http request option.
|
194
|
+
* @throws {RequiredError}
|
195
|
+
*/
|
196
|
+
listTags(listTagsRequest) {
|
197
|
+
const options = (0, exports.ParamCreater)().listTags();
|
198
|
+
// @ts-ignore
|
199
|
+
options['responseHeaders'] = [''];
|
200
|
+
return this.hcClient.sendRequest(options);
|
201
|
+
}
|
202
|
+
/**
|
203
|
+
* IAM用户登录堡垒机实例console。
|
204
|
+
*
|
205
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
206
|
+
*
|
207
|
+
* @summary IAM用户登录堡垒机实例console
|
208
|
+
* @param {CommonCbhRequestBody} loginInstanceRequestBody LoginInstanceRequestBody
|
209
|
+
* @param {*} [options] Override http request option.
|
210
|
+
* @throws {RequiredError}
|
211
|
+
*/
|
212
|
+
loginInstance(loginInstanceRequest) {
|
213
|
+
const options = (0, exports.ParamCreater)().loginInstance(loginInstanceRequest);
|
214
|
+
// @ts-ignore
|
215
|
+
options['responseHeaders'] = [''];
|
216
|
+
return this.hcClient.sendRequest(options);
|
217
|
+
}
|
218
|
+
/**
|
219
|
+
* 重启云堡垒机实例。
|
220
|
+
*
|
221
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
222
|
+
*
|
223
|
+
* @summary 重启堡垒机实例
|
224
|
+
* @param {RebootCbhRequestBody} rebootInstanceRequestBody RestartInstanceRequestBody
|
225
|
+
* @param {*} [options] Override http request option.
|
226
|
+
* @throws {RequiredError}
|
227
|
+
*/
|
228
|
+
rebootInstance(rebootInstanceRequest) {
|
229
|
+
const options = (0, exports.ParamCreater)().rebootInstance(rebootInstanceRequest);
|
230
|
+
// @ts-ignore
|
231
|
+
options['responseHeaders'] = [''];
|
232
|
+
return this.hcClient.sendRequest(options);
|
233
|
+
}
|
234
|
+
/**
|
235
|
+
* 租户创建或取消云堡垒机服务的委托授权。
|
236
|
+
*
|
237
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
238
|
+
*
|
239
|
+
* @summary 租户创建或取消云堡垒机服务的委托授权
|
240
|
+
* @param {AuthorizeCsmsAndKmsRequestBody} registerAuthorizationRequestBody RegisterAuthorizationRequestBody
|
241
|
+
* @param {*} [options] Override http request option.
|
242
|
+
* @throws {RequiredError}
|
243
|
+
*/
|
244
|
+
registerAuthorization(registerAuthorizationRequest) {
|
245
|
+
const options = (0, exports.ParamCreater)().registerAuthorization(registerAuthorizationRequest);
|
246
|
+
// @ts-ignore
|
247
|
+
options['responseHeaders'] = [''];
|
248
|
+
return this.hcClient.sendRequest(options);
|
249
|
+
}
|
250
|
+
/**
|
251
|
+
* 重置堡垒机实例admin用户登录方式。
|
252
|
+
*
|
253
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
254
|
+
*
|
255
|
+
* @summary 重置堡垒机实例admin登录方式
|
256
|
+
* @param {CommonCbhRequestBody} resetInstanceLoginMethodRequestBody ResetInstanceLoginMethodRequestBody
|
257
|
+
* @param {*} [options] Override http request option.
|
258
|
+
* @throws {RequiredError}
|
259
|
+
*/
|
260
|
+
resetInstanceLoginMethod(resetInstanceLoginMethodRequest) {
|
261
|
+
const options = (0, exports.ParamCreater)().resetInstanceLoginMethod(resetInstanceLoginMethodRequest);
|
262
|
+
// @ts-ignore
|
263
|
+
options['responseHeaders'] = [''];
|
264
|
+
return this.hcClient.sendRequest(options);
|
265
|
+
}
|
266
|
+
/**
|
267
|
+
* 重置云堡垒机实例web登录admin用户密码。
|
268
|
+
*
|
269
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
270
|
+
*
|
271
|
+
* @summary 重置堡垒机实例admin密码
|
272
|
+
* @param {ResetPassword} resetInstancePasswordRequestBody ResetInstancePasswordRequestBody
|
273
|
+
* @param {*} [options] Override http request option.
|
274
|
+
* @throws {RequiredError}
|
275
|
+
*/
|
276
|
+
resetInstancePassword(resetInstancePasswordRequest) {
|
277
|
+
const options = (0, exports.ParamCreater)().resetInstancePassword(resetInstancePasswordRequest);
|
278
|
+
// @ts-ignore
|
279
|
+
options['responseHeaders'] = [''];
|
280
|
+
return this.hcClient.sendRequest(options);
|
281
|
+
}
|
282
|
+
/**
|
283
|
+
* 变更云堡垒机实例。
|
284
|
+
*
|
285
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
286
|
+
*
|
287
|
+
* @summary 变更堡垒机实例
|
288
|
+
* @param {ChangeInstanceRequestBody} resizeInstanceRequestBody ResizeInstanceRequestBody
|
289
|
+
* @param {*} [options] Override http request option.
|
290
|
+
* @throws {RequiredError}
|
291
|
+
*/
|
292
|
+
resizeInstance(resizeInstanceRequest) {
|
293
|
+
const options = (0, exports.ParamCreater)().resizeInstance(resizeInstanceRequest);
|
294
|
+
// @ts-ignore
|
295
|
+
options['responseHeaders'] = [''];
|
296
|
+
return this.hcClient.sendRequest(options);
|
297
|
+
}
|
298
|
+
/**
|
299
|
+
* 回退升级的云堡垒机实例。
|
300
|
+
*
|
301
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
302
|
+
*
|
303
|
+
* @summary 回退升级的堡垒机实例
|
304
|
+
* @param {RollbackInstanceRequestBody} rollbackInstanceRequestBody 升级回退的请求体
|
305
|
+
* @param {*} [options] Override http request option.
|
306
|
+
* @throws {RequiredError}
|
307
|
+
*/
|
308
|
+
rollbackInstance(rollbackInstanceRequest) {
|
309
|
+
const options = (0, exports.ParamCreater)().rollbackInstance(rollbackInstanceRequest);
|
310
|
+
// @ts-ignore
|
311
|
+
options['responseHeaders'] = [''];
|
312
|
+
return this.hcClient.sendRequest(options);
|
313
|
+
}
|
314
|
+
/**
|
315
|
+
* 获取租户给云堡垒机服务委托授权信息。
|
316
|
+
*
|
317
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
318
|
+
*
|
319
|
+
* @summary 获取租户给云堡垒机服务委托授权信息
|
320
|
+
* @param {*} [options] Override http request option.
|
321
|
+
* @throws {RequiredError}
|
322
|
+
*/
|
323
|
+
showAuthorization(showAuthorizationRequest) {
|
324
|
+
const options = (0, exports.ParamCreater)().showAuthorization();
|
325
|
+
// @ts-ignore
|
326
|
+
options['responseHeaders'] = [''];
|
327
|
+
return this.hcClient.sendRequest(options);
|
328
|
+
}
|
329
|
+
/**
|
330
|
+
* 获取当前租户所选择的可用分区里的堡垒机ECS规格是否可用。
|
331
|
+
*
|
332
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
333
|
+
*
|
334
|
+
* @summary 获取创建堡垒机实例所需ECS资源配额
|
335
|
+
* @param {string} availabilityZone 可用分区名称。 可参考[地区和终端节点](https://developer.huaweicloud.com/endpoint)获取
|
336
|
+
* @param {string} resourceSpecCode 待创建云堡垒机规格ID,例如: - cbh.basic.10 10资产标准版 - cbh.enhance.10 10资产专业版 已上线的规格详情请参见《云堡垒机常见问题》的购买,[云堡垒机实例有哪些规格](https://support.huaweicloud.com/cbh_faq/cbh_03_0025.html)章节或调用接口[查询云堡垒机规格信息](https://support.huaweicloud.com/api-cbh/ShowSpecInfo.html)获取。
|
337
|
+
* @param {*} [options] Override http request option.
|
338
|
+
* @throws {RequiredError}
|
339
|
+
*/
|
340
|
+
showEcsQuota(showEcsQuotaRequest) {
|
341
|
+
const options = (0, exports.ParamCreater)().showEcsQuota(showEcsQuotaRequest);
|
342
|
+
// @ts-ignore
|
343
|
+
options['responseHeaders'] = [''];
|
344
|
+
return this.hcClient.sendRequest(options);
|
345
|
+
}
|
346
|
+
/**
|
347
|
+
* 获取堡垒机实例状态信息(未删除实例)。
|
348
|
+
*
|
349
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
350
|
+
*
|
351
|
+
* @summary 获取堡垒机实例状态信息
|
352
|
+
* @param {string} serverId 云堡垒机实例ID,使用UUID格式表示。 [实例ID获取方式](https://support.huaweicloud.com/usermanual-cbh/cbh_02_1003.html)。
|
353
|
+
* @param {*} [options] Override http request option.
|
354
|
+
* @throws {RequiredError}
|
355
|
+
*/
|
356
|
+
showInstanceStatus(showInstanceStatusRequest) {
|
357
|
+
const options = (0, exports.ParamCreater)().showInstanceStatus(showInstanceStatusRequest);
|
358
|
+
// @ts-ignore
|
359
|
+
options['responseHeaders'] = [''];
|
360
|
+
return this.hcClient.sendRequest(options);
|
361
|
+
}
|
362
|
+
/**
|
363
|
+
* 查询堡垒机实例资源的标签信息。
|
364
|
+
*
|
365
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
366
|
+
*
|
367
|
+
* @summary 查询堡垒机实例资源的标签信息
|
368
|
+
* @param {string} resourceId 资源ID。(list接口获取)
|
369
|
+
* @param {*} [options] Override http request option.
|
370
|
+
* @throws {RequiredError}
|
371
|
+
*/
|
372
|
+
showInstanceTags(showInstanceTagsRequest) {
|
373
|
+
const options = (0, exports.ParamCreater)().showInstanceTags(showInstanceTagsRequest);
|
374
|
+
// @ts-ignore
|
375
|
+
options['responseHeaders'] = [''];
|
376
|
+
return this.hcClient.sendRequest(options);
|
377
|
+
}
|
378
|
+
/**
|
379
|
+
* 获取运维链接
|
380
|
+
*
|
381
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
382
|
+
*
|
383
|
+
* @summary 获取运维链接
|
384
|
+
* @param {string} serverId 云堡垒机服务器ID
|
385
|
+
* @param {string} ipAddress 被纳管主机IP
|
386
|
+
* @param {string} hostAccountName 被纳管主机的账户
|
387
|
+
* @param {*} [options] Override http request option.
|
388
|
+
* @throws {RequiredError}
|
389
|
+
*/
|
390
|
+
showOmUrl(showOmUrlRequest) {
|
391
|
+
const options = (0, exports.ParamCreater)().showOmUrl(showOmUrlRequest);
|
392
|
+
// @ts-ignore
|
393
|
+
options['responseHeaders'] = [''];
|
394
|
+
return this.hcClient.sendRequest(options);
|
395
|
+
}
|
396
|
+
/**
|
397
|
+
* 获取堡垒机实例配额信息。
|
398
|
+
*
|
399
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
400
|
+
*
|
401
|
+
* @summary 获取堡垒机实例配额
|
402
|
+
* @param {*} [options] Override http request option.
|
403
|
+
* @throws {RequiredError}
|
404
|
+
*/
|
405
|
+
showQuota(showQuotaRequest) {
|
406
|
+
const options = (0, exports.ParamCreater)().showQuota();
|
407
|
+
// @ts-ignore
|
408
|
+
options['responseHeaders'] = [''];
|
409
|
+
return this.hcClient.sendRequest(options);
|
410
|
+
}
|
411
|
+
/**
|
412
|
+
* 启动云堡垒机实例。
|
413
|
+
*
|
414
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
415
|
+
*
|
416
|
+
* @summary 启动堡垒机实例
|
417
|
+
* @param {CommonCbhRequestBody} startInstanceRequestBody StarInstanceRequestBody
|
418
|
+
* @param {*} [options] Override http request option.
|
419
|
+
* @throws {RequiredError}
|
420
|
+
*/
|
421
|
+
startInstance(startInstanceRequest) {
|
422
|
+
const options = (0, exports.ParamCreater)().startInstance(startInstanceRequest);
|
423
|
+
// @ts-ignore
|
424
|
+
options['responseHeaders'] = [''];
|
425
|
+
return this.hcClient.sendRequest(options);
|
426
|
+
}
|
427
|
+
/**
|
428
|
+
* 关闭云堡垒机实例。
|
429
|
+
*
|
430
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
431
|
+
*
|
432
|
+
* @summary 关闭堡垒机实例
|
433
|
+
* @param {CommonCbhRequestBody} stopInstanceRequestBody StopInstanceRequestBody
|
434
|
+
* @param {*} [options] Override http request option.
|
435
|
+
* @throws {RequiredError}
|
436
|
+
*/
|
437
|
+
stopInstance(stopInstanceRequest) {
|
438
|
+
const options = (0, exports.ParamCreater)().stopInstance(stopInstanceRequest);
|
439
|
+
// @ts-ignore
|
440
|
+
options['responseHeaders'] = [''];
|
441
|
+
return this.hcClient.sendRequest(options);
|
442
|
+
}
|
443
|
+
/**
|
444
|
+
* 为云堡垒机实例解绑弹性公网IP。
|
445
|
+
*
|
446
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
447
|
+
*
|
448
|
+
* @summary 堡垒机实例解绑弹性公网IP
|
449
|
+
* @param {string} serverId 云堡垒机实例ID,使用UUID格式表示。 [实例ID获取方式](https://support.huaweicloud.com/usermanual-cbh/cbh_02_1003.html)。
|
450
|
+
* @param {OperateEipRequestBody} uninstallInstanceEipRequestBody UninstallInstanceEipRequestBody
|
451
|
+
* @param {*} [options] Override http request option.
|
452
|
+
* @throws {RequiredError}
|
453
|
+
*/
|
454
|
+
uninstallInstanceEip(uninstallInstanceEipRequest) {
|
455
|
+
const options = (0, exports.ParamCreater)().uninstallInstanceEip(uninstallInstanceEipRequest);
|
456
|
+
// @ts-ignore
|
457
|
+
options['responseHeaders'] = [''];
|
458
|
+
return this.hcClient.sendRequest(options);
|
459
|
+
}
|
460
|
+
/**
|
461
|
+
* 修改堡垒机实例安全组。
|
462
|
+
*
|
463
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
464
|
+
*
|
465
|
+
* @summary 修改堡垒机实例安全组
|
466
|
+
* @param {string} serverId 云堡垒机实例ID,使用UUID格式表示。 [实例ID获取方式](https://support.huaweicloud.com/usermanual-cbh/cbh_02_1003.html)。
|
467
|
+
* @param {ChangeInstanceSecurityGroups} updateInstanceSecurityGroupRequestBody UpdateInstanceSecurityGroupRequestBody
|
468
|
+
* @param {*} [options] Override http request option.
|
469
|
+
* @throws {RequiredError}
|
470
|
+
*/
|
471
|
+
updateInstanceSecurityGroup(updateInstanceSecurityGroupRequest) {
|
472
|
+
const options = (0, exports.ParamCreater)().updateInstanceSecurityGroup(updateInstanceSecurityGroupRequest);
|
473
|
+
// @ts-ignore
|
474
|
+
options['responseHeaders'] = [''];
|
475
|
+
return this.hcClient.sendRequest(options);
|
476
|
+
}
|
477
|
+
/**
|
478
|
+
* 升级云堡垒机实例。
|
479
|
+
*
|
480
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
481
|
+
*
|
482
|
+
* @summary 升级堡垒机实例
|
483
|
+
* @param {UpgradeCbhRequestBody} upgradeInstanceRequestBody UpgradeInstanceRequestBody
|
484
|
+
* @param {*} [options] Override http request option.
|
485
|
+
* @throws {RequiredError}
|
486
|
+
*/
|
487
|
+
upgradeInstance(upgradeInstanceRequest) {
|
488
|
+
const options = (0, exports.ParamCreater)().upgradeInstance(upgradeInstanceRequest);
|
489
|
+
// @ts-ignore
|
490
|
+
options['responseHeaders'] = [''];
|
491
|
+
return this.hcClient.sendRequest(options);
|
492
|
+
}
|
493
|
+
}
|
494
|
+
exports.CbhClient = CbhClient;
|
495
|
+
const ParamCreater = function () {
|
496
|
+
return {
|
497
|
+
/**
|
498
|
+
* 操作堡垒机实例资源标签。
|
499
|
+
*
|
500
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
501
|
+
*/
|
502
|
+
batchCreateInstanceTag(batchCreateInstanceTagRequest) {
|
503
|
+
const options = {
|
504
|
+
method: "POST",
|
505
|
+
url: "/v2/{project_id}/cbs/instance/{resource_id}/tags/action",
|
506
|
+
contentType: "application/json",
|
507
|
+
queryParams: {},
|
508
|
+
pathParams: {},
|
509
|
+
headers: {},
|
510
|
+
data: {}
|
511
|
+
};
|
512
|
+
const localVarHeaderParameter = {};
|
513
|
+
let body;
|
514
|
+
let resourceId;
|
515
|
+
if (batchCreateInstanceTagRequest !== null && batchCreateInstanceTagRequest !== undefined) {
|
516
|
+
if (batchCreateInstanceTagRequest instanceof BatchCreateInstanceTagRequest_1.BatchCreateInstanceTagRequest) {
|
517
|
+
resourceId = batchCreateInstanceTagRequest.resourceId;
|
518
|
+
body = batchCreateInstanceTagRequest.body;
|
519
|
+
}
|
520
|
+
else {
|
521
|
+
resourceId = batchCreateInstanceTagRequest['resource_id'];
|
522
|
+
body = batchCreateInstanceTagRequest['body'];
|
523
|
+
}
|
524
|
+
}
|
525
|
+
if (resourceId === null || resourceId === undefined) {
|
526
|
+
throw new RequiredError('resourceId', 'Required parameter resourceId was null or undefined when calling batchCreateInstanceTag.');
|
527
|
+
}
|
528
|
+
if (body === null || body === undefined) {
|
529
|
+
throw new RequiredError('body', 'Required parameter body was null or undefined when calling body.');
|
530
|
+
}
|
531
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
532
|
+
options.data = body !== undefined ? body : {};
|
533
|
+
options.pathParams = { 'resource_id': resourceId, };
|
534
|
+
options.headers = localVarHeaderParameter;
|
535
|
+
return options;
|
536
|
+
},
|
537
|
+
/**
|
538
|
+
* 统计符合标签条件的实例数量。
|
539
|
+
*
|
540
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
541
|
+
*/
|
542
|
+
countInstancesByTag(countInstancesByTagRequest) {
|
543
|
+
const options = {
|
544
|
+
method: "POST",
|
545
|
+
url: "/v2/{project_id}/cbs/instance/count",
|
546
|
+
contentType: "application/json",
|
547
|
+
queryParams: {},
|
548
|
+
pathParams: {},
|
549
|
+
headers: {},
|
550
|
+
data: {}
|
551
|
+
};
|
552
|
+
const localVarHeaderParameter = {};
|
553
|
+
let body;
|
554
|
+
if (countInstancesByTagRequest !== null && countInstancesByTagRequest !== undefined) {
|
555
|
+
if (countInstancesByTagRequest instanceof CountInstancesByTagRequest_1.CountInstancesByTagRequest) {
|
556
|
+
body = countInstancesByTagRequest.body;
|
557
|
+
}
|
558
|
+
else {
|
559
|
+
body = countInstancesByTagRequest['body'];
|
560
|
+
}
|
561
|
+
}
|
562
|
+
if (body === null || body === undefined) {
|
563
|
+
throw new RequiredError('body', 'Required parameter body was null or undefined when calling body.');
|
564
|
+
}
|
565
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
566
|
+
options.data = body !== undefined ? body : {};
|
567
|
+
options.headers = localVarHeaderParameter;
|
568
|
+
return options;
|
569
|
+
},
|
570
|
+
/**
|
571
|
+
* 创建云堡垒机实例。
|
572
|
+
*
|
573
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
574
|
+
*/
|
575
|
+
createInstance(createInstanceRequest) {
|
576
|
+
const options = {
|
577
|
+
method: "POST",
|
578
|
+
url: "/v2/{project_id}/cbs/instance",
|
579
|
+
contentType: "application/json",
|
580
|
+
queryParams: {},
|
581
|
+
pathParams: {},
|
582
|
+
headers: {},
|
583
|
+
data: {}
|
584
|
+
};
|
585
|
+
const localVarHeaderParameter = {};
|
586
|
+
let body;
|
587
|
+
if (createInstanceRequest !== null && createInstanceRequest !== undefined) {
|
588
|
+
if (createInstanceRequest instanceof CreateInstanceRequest_1.CreateInstanceRequest) {
|
589
|
+
body = createInstanceRequest.body;
|
590
|
+
}
|
591
|
+
else {
|
592
|
+
body = createInstanceRequest['body'];
|
593
|
+
}
|
594
|
+
}
|
595
|
+
if (body === null || body === undefined) {
|
596
|
+
throw new RequiredError('body', 'Required parameter body was null or undefined when calling body.');
|
597
|
+
}
|
598
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
599
|
+
options.data = body !== undefined ? body : {};
|
600
|
+
options.headers = localVarHeaderParameter;
|
601
|
+
return options;
|
602
|
+
},
|
603
|
+
/**
|
604
|
+
* 删除云堡垒机故障实例。
|
605
|
+
*
|
606
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
607
|
+
*/
|
608
|
+
deleteInstance(deleteInstanceRequest) {
|
609
|
+
const options = {
|
610
|
+
method: "DELETE",
|
611
|
+
url: "/v2/{project_id}/cbs/instance",
|
612
|
+
contentType: "application/json",
|
613
|
+
queryParams: {},
|
614
|
+
pathParams: {},
|
615
|
+
headers: {}
|
616
|
+
};
|
617
|
+
const localVarHeaderParameter = {};
|
618
|
+
const localVarQueryParameter = {};
|
619
|
+
let instanceId;
|
620
|
+
if (deleteInstanceRequest !== null && deleteInstanceRequest !== undefined) {
|
621
|
+
if (deleteInstanceRequest instanceof DeleteInstanceRequest_1.DeleteInstanceRequest) {
|
622
|
+
instanceId = deleteInstanceRequest.instanceId;
|
623
|
+
}
|
624
|
+
else {
|
625
|
+
instanceId = deleteInstanceRequest['instance_id'];
|
626
|
+
}
|
627
|
+
}
|
628
|
+
if (instanceId !== null && instanceId !== undefined) {
|
629
|
+
localVarQueryParameter['instance_id'] = instanceId;
|
630
|
+
}
|
631
|
+
options.queryParams = localVarQueryParameter;
|
632
|
+
options.headers = localVarHeaderParameter;
|
633
|
+
return options;
|
634
|
+
},
|
635
|
+
/**
|
636
|
+
* 云堡垒机实例绑定弹性公网IP。
|
637
|
+
*
|
638
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
639
|
+
*/
|
640
|
+
installInstanceEip(installInstanceEipRequest) {
|
641
|
+
const options = {
|
642
|
+
method: "POST",
|
643
|
+
url: "/v2/{project_id}/cbs/instance/{server_id}/eip/bind",
|
644
|
+
contentType: "application/json",
|
645
|
+
queryParams: {},
|
646
|
+
pathParams: {},
|
647
|
+
headers: {},
|
648
|
+
data: {}
|
649
|
+
};
|
650
|
+
const localVarHeaderParameter = {};
|
651
|
+
let body;
|
652
|
+
let serverId;
|
653
|
+
if (installInstanceEipRequest !== null && installInstanceEipRequest !== undefined) {
|
654
|
+
if (installInstanceEipRequest instanceof InstallInstanceEipRequest_1.InstallInstanceEipRequest) {
|
655
|
+
serverId = installInstanceEipRequest.serverId;
|
656
|
+
body = installInstanceEipRequest.body;
|
657
|
+
}
|
658
|
+
else {
|
659
|
+
serverId = installInstanceEipRequest['server_id'];
|
660
|
+
body = installInstanceEipRequest['body'];
|
661
|
+
}
|
662
|
+
}
|
663
|
+
if (serverId === null || serverId === undefined) {
|
664
|
+
throw new RequiredError('serverId', 'Required parameter serverId was null or undefined when calling installInstanceEip.');
|
665
|
+
}
|
666
|
+
if (body === null || body === undefined) {
|
667
|
+
throw new RequiredError('body', 'Required parameter body was null or undefined when calling body.');
|
668
|
+
}
|
669
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
670
|
+
options.data = body !== undefined ? body : {};
|
671
|
+
options.pathParams = { 'server_id': serverId, };
|
672
|
+
options.headers = localVarHeaderParameter;
|
673
|
+
return options;
|
674
|
+
},
|
675
|
+
/**
|
676
|
+
* 获取云堡垒机服务可用区信息。
|
677
|
+
*
|
678
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
679
|
+
*/
|
680
|
+
listAvailableZones() {
|
681
|
+
const options = {
|
682
|
+
method: "GET",
|
683
|
+
url: "/v2/{project_id}/cbs/available-zone",
|
684
|
+
contentType: "application/json",
|
685
|
+
queryParams: {},
|
686
|
+
pathParams: {},
|
687
|
+
headers: {}
|
688
|
+
};
|
689
|
+
const localVarHeaderParameter = {};
|
690
|
+
options.headers = localVarHeaderParameter;
|
691
|
+
return options;
|
692
|
+
},
|
693
|
+
/**
|
694
|
+
* 获取当前租户下的堡垒机实例列表。
|
695
|
+
*
|
696
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
697
|
+
*/
|
698
|
+
listInstances(listInstancesRequest) {
|
699
|
+
const options = {
|
700
|
+
method: "GET",
|
701
|
+
url: "/v2/{project_id}/cbs/instance/list",
|
702
|
+
contentType: "application/json",
|
703
|
+
queryParams: {},
|
704
|
+
pathParams: {},
|
705
|
+
headers: {}
|
706
|
+
};
|
707
|
+
const localVarHeaderParameter = {};
|
708
|
+
const localVarQueryParameter = {};
|
709
|
+
let instanceId;
|
710
|
+
if (listInstancesRequest !== null && listInstancesRequest !== undefined) {
|
711
|
+
if (listInstancesRequest instanceof ListInstancesRequest_1.ListInstancesRequest) {
|
712
|
+
instanceId = listInstancesRequest.instanceId;
|
713
|
+
}
|
714
|
+
else {
|
715
|
+
instanceId = listInstancesRequest['instance_id'];
|
716
|
+
}
|
717
|
+
}
|
718
|
+
if (instanceId !== null && instanceId !== undefined) {
|
719
|
+
localVarQueryParameter['instance_id'] = instanceId;
|
720
|
+
}
|
721
|
+
options.queryParams = localVarQueryParameter;
|
722
|
+
options.headers = localVarHeaderParameter;
|
723
|
+
return options;
|
724
|
+
},
|
725
|
+
/**
|
726
|
+
* 使用标签过滤实例。
|
727
|
+
*
|
728
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
729
|
+
*/
|
730
|
+
listInstancesByTag(listInstancesByTagRequest) {
|
731
|
+
const options = {
|
732
|
+
method: "POST",
|
733
|
+
url: "/v2/{project_id}/cbs/instance/filter",
|
734
|
+
contentType: "application/json",
|
735
|
+
queryParams: {},
|
736
|
+
pathParams: {},
|
737
|
+
headers: {},
|
738
|
+
data: {}
|
739
|
+
};
|
740
|
+
const localVarHeaderParameter = {};
|
741
|
+
let body;
|
742
|
+
let limit;
|
743
|
+
let offset;
|
744
|
+
if (listInstancesByTagRequest !== null && listInstancesByTagRequest !== undefined) {
|
745
|
+
if (listInstancesByTagRequest instanceof ListInstancesByTagRequest_1.ListInstancesByTagRequest) {
|
746
|
+
body = listInstancesByTagRequest.body;
|
747
|
+
limit = listInstancesByTagRequest.limit;
|
748
|
+
offset = listInstancesByTagRequest.offset;
|
749
|
+
}
|
750
|
+
else {
|
751
|
+
body = listInstancesByTagRequest['body'];
|
752
|
+
limit = listInstancesByTagRequest['limit'];
|
753
|
+
offset = listInstancesByTagRequest['offset'];
|
754
|
+
}
|
755
|
+
}
|
756
|
+
if (body === null || body === undefined) {
|
757
|
+
throw new RequiredError('body', 'Required parameter body was null or undefined when calling body.');
|
758
|
+
}
|
759
|
+
if (limit !== undefined && limit !== null) {
|
760
|
+
localVarHeaderParameter['limit'] = String(limit);
|
761
|
+
}
|
762
|
+
if (offset !== undefined && offset !== null) {
|
763
|
+
localVarHeaderParameter['offset'] = String(offset);
|
764
|
+
}
|
765
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
766
|
+
options.data = body !== undefined ? body : {};
|
767
|
+
options.headers = localVarHeaderParameter;
|
768
|
+
return options;
|
769
|
+
},
|
770
|
+
/**
|
771
|
+
* 查询云堡垒机规格信息。
|
772
|
+
*
|
773
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
774
|
+
*/
|
775
|
+
listSpecifications(listSpecificationsRequest) {
|
776
|
+
const options = {
|
777
|
+
method: "GET",
|
778
|
+
url: "/v2/{project_id}/cbs/instance/specification",
|
779
|
+
contentType: "application/json",
|
780
|
+
queryParams: {},
|
781
|
+
pathParams: {},
|
782
|
+
headers: {}
|
783
|
+
};
|
784
|
+
const localVarHeaderParameter = {};
|
785
|
+
const localVarQueryParameter = {};
|
786
|
+
let action;
|
787
|
+
let specCode;
|
788
|
+
if (listSpecificationsRequest !== null && listSpecificationsRequest !== undefined) {
|
789
|
+
if (listSpecificationsRequest instanceof ListSpecificationsRequest_1.ListSpecificationsRequest) {
|
790
|
+
action = listSpecificationsRequest.action;
|
791
|
+
specCode = listSpecificationsRequest.specCode;
|
792
|
+
}
|
793
|
+
else {
|
794
|
+
action = listSpecificationsRequest['action'];
|
795
|
+
specCode = listSpecificationsRequest['spec_code'];
|
796
|
+
}
|
797
|
+
}
|
798
|
+
if (action === null || action === undefined) {
|
799
|
+
throw new RequiredError('action', 'Required parameter action was null or undefined when calling listSpecifications.');
|
800
|
+
}
|
801
|
+
if (action !== null && action !== undefined) {
|
802
|
+
localVarQueryParameter['action'] = action;
|
803
|
+
}
|
804
|
+
if (specCode !== null && specCode !== undefined) {
|
805
|
+
localVarQueryParameter['spec_code'] = specCode;
|
806
|
+
}
|
807
|
+
options.queryParams = localVarQueryParameter;
|
808
|
+
options.headers = localVarHeaderParameter;
|
809
|
+
return options;
|
810
|
+
},
|
811
|
+
/**
|
812
|
+
* 查询租户在项目中的资源标签集合。
|
813
|
+
*
|
814
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
815
|
+
*/
|
816
|
+
listTags() {
|
817
|
+
const options = {
|
818
|
+
method: "GET",
|
819
|
+
url: "/v2/{project_id}/cbs/instance/tags",
|
820
|
+
contentType: "application/json",
|
821
|
+
queryParams: {},
|
822
|
+
pathParams: {},
|
823
|
+
headers: {}
|
824
|
+
};
|
825
|
+
const localVarHeaderParameter = {};
|
826
|
+
options.headers = localVarHeaderParameter;
|
827
|
+
return options;
|
828
|
+
},
|
829
|
+
/**
|
830
|
+
* IAM用户登录堡垒机实例console。
|
831
|
+
*
|
832
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
833
|
+
*/
|
834
|
+
loginInstance(loginInstanceRequest) {
|
835
|
+
const options = {
|
836
|
+
method: "POST",
|
837
|
+
url: "/v2/{project_id}/cbs/instance/login",
|
838
|
+
contentType: "application/json",
|
839
|
+
queryParams: {},
|
840
|
+
pathParams: {},
|
841
|
+
headers: {},
|
842
|
+
data: {}
|
843
|
+
};
|
844
|
+
const localVarHeaderParameter = {};
|
845
|
+
let body;
|
846
|
+
if (loginInstanceRequest !== null && loginInstanceRequest !== undefined) {
|
847
|
+
if (loginInstanceRequest instanceof LoginInstanceRequest_1.LoginInstanceRequest) {
|
848
|
+
body = loginInstanceRequest.body;
|
849
|
+
}
|
850
|
+
else {
|
851
|
+
body = loginInstanceRequest['body'];
|
852
|
+
}
|
853
|
+
}
|
854
|
+
if (body === null || body === undefined) {
|
855
|
+
throw new RequiredError('body', 'Required parameter body was null or undefined when calling body.');
|
856
|
+
}
|
857
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
858
|
+
options.data = body !== undefined ? body : {};
|
859
|
+
options.headers = localVarHeaderParameter;
|
860
|
+
return options;
|
861
|
+
},
|
862
|
+
/**
|
863
|
+
* 重启云堡垒机实例。
|
864
|
+
*
|
865
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
866
|
+
*/
|
867
|
+
rebootInstance(rebootInstanceRequest) {
|
868
|
+
const options = {
|
869
|
+
method: "POST",
|
870
|
+
url: "/v2/{project_id}/cbs/instance/reboot",
|
871
|
+
contentType: "application/json",
|
872
|
+
queryParams: {},
|
873
|
+
pathParams: {},
|
874
|
+
headers: {},
|
875
|
+
data: {}
|
876
|
+
};
|
877
|
+
const localVarHeaderParameter = {};
|
878
|
+
let body;
|
879
|
+
if (rebootInstanceRequest !== null && rebootInstanceRequest !== undefined) {
|
880
|
+
if (rebootInstanceRequest instanceof RebootInstanceRequest_1.RebootInstanceRequest) {
|
881
|
+
body = rebootInstanceRequest.body;
|
882
|
+
}
|
883
|
+
else {
|
884
|
+
body = rebootInstanceRequest['body'];
|
885
|
+
}
|
886
|
+
}
|
887
|
+
if (body === null || body === undefined) {
|
888
|
+
throw new RequiredError('body', 'Required parameter body was null or undefined when calling body.');
|
889
|
+
}
|
890
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
891
|
+
options.data = body !== undefined ? body : {};
|
892
|
+
options.headers = localVarHeaderParameter;
|
893
|
+
return options;
|
894
|
+
},
|
895
|
+
/**
|
896
|
+
* 租户创建或取消云堡垒机服务的委托授权。
|
897
|
+
*
|
898
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
899
|
+
*/
|
900
|
+
registerAuthorization(registerAuthorizationRequest) {
|
901
|
+
const options = {
|
902
|
+
method: "POST",
|
903
|
+
url: "/v2/{project_id}/cbs/agency/authorization",
|
904
|
+
contentType: "application/json",
|
905
|
+
queryParams: {},
|
906
|
+
pathParams: {},
|
907
|
+
headers: {},
|
908
|
+
data: {}
|
909
|
+
};
|
910
|
+
const localVarHeaderParameter = {};
|
911
|
+
let body;
|
912
|
+
if (registerAuthorizationRequest !== null && registerAuthorizationRequest !== undefined) {
|
913
|
+
if (registerAuthorizationRequest instanceof RegisterAuthorizationRequest_1.RegisterAuthorizationRequest) {
|
914
|
+
body = registerAuthorizationRequest.body;
|
915
|
+
}
|
916
|
+
else {
|
917
|
+
body = registerAuthorizationRequest['body'];
|
918
|
+
}
|
919
|
+
}
|
920
|
+
if (body === null || body === undefined) {
|
921
|
+
throw new RequiredError('body', 'Required parameter body was null or undefined when calling body.');
|
922
|
+
}
|
923
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
924
|
+
options.data = body !== undefined ? body : {};
|
925
|
+
options.headers = localVarHeaderParameter;
|
926
|
+
return options;
|
927
|
+
},
|
928
|
+
/**
|
929
|
+
* 重置堡垒机实例admin用户登录方式。
|
930
|
+
*
|
931
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
932
|
+
*/
|
933
|
+
resetInstanceLoginMethod(resetInstanceLoginMethodRequest) {
|
934
|
+
const options = {
|
935
|
+
method: "PUT",
|
936
|
+
url: "/v2/{project_id}/cbs/instance/login-method",
|
937
|
+
contentType: "application/json",
|
938
|
+
queryParams: {},
|
939
|
+
pathParams: {},
|
940
|
+
headers: {},
|
941
|
+
data: {}
|
942
|
+
};
|
943
|
+
const localVarHeaderParameter = {};
|
944
|
+
let body;
|
945
|
+
if (resetInstanceLoginMethodRequest !== null && resetInstanceLoginMethodRequest !== undefined) {
|
946
|
+
if (resetInstanceLoginMethodRequest instanceof ResetInstanceLoginMethodRequest_1.ResetInstanceLoginMethodRequest) {
|
947
|
+
body = resetInstanceLoginMethodRequest.body;
|
948
|
+
}
|
949
|
+
else {
|
950
|
+
body = resetInstanceLoginMethodRequest['body'];
|
951
|
+
}
|
952
|
+
}
|
953
|
+
if (body === null || body === undefined) {
|
954
|
+
throw new RequiredError('body', 'Required parameter body was null or undefined when calling body.');
|
955
|
+
}
|
956
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
957
|
+
options.data = body !== undefined ? body : {};
|
958
|
+
options.headers = localVarHeaderParameter;
|
959
|
+
return options;
|
960
|
+
},
|
961
|
+
/**
|
962
|
+
* 重置云堡垒机实例web登录admin用户密码。
|
963
|
+
*
|
964
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
965
|
+
*/
|
966
|
+
resetInstancePassword(resetInstancePasswordRequest) {
|
967
|
+
const options = {
|
968
|
+
method: "PUT",
|
969
|
+
url: "/v2/{project_id}/cbs/instance/password",
|
970
|
+
contentType: "application/json",
|
971
|
+
queryParams: {},
|
972
|
+
pathParams: {},
|
973
|
+
headers: {},
|
974
|
+
data: {}
|
975
|
+
};
|
976
|
+
const localVarHeaderParameter = {};
|
977
|
+
let body;
|
978
|
+
if (resetInstancePasswordRequest !== null && resetInstancePasswordRequest !== undefined) {
|
979
|
+
if (resetInstancePasswordRequest instanceof ResetInstancePasswordRequest_1.ResetInstancePasswordRequest) {
|
980
|
+
body = resetInstancePasswordRequest.body;
|
981
|
+
}
|
982
|
+
else {
|
983
|
+
body = resetInstancePasswordRequest['body'];
|
984
|
+
}
|
985
|
+
}
|
986
|
+
if (body === null || body === undefined) {
|
987
|
+
throw new RequiredError('body', 'Required parameter body was null or undefined when calling body.');
|
988
|
+
}
|
989
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
990
|
+
options.data = body !== undefined ? body : {};
|
991
|
+
options.headers = localVarHeaderParameter;
|
992
|
+
return options;
|
993
|
+
},
|
994
|
+
/**
|
995
|
+
* 变更云堡垒机实例。
|
996
|
+
*
|
997
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
998
|
+
*/
|
999
|
+
resizeInstance(resizeInstanceRequest) {
|
1000
|
+
const options = {
|
1001
|
+
method: "PUT",
|
1002
|
+
url: "/v2/{project_id}/cbs/instance",
|
1003
|
+
contentType: "application/json",
|
1004
|
+
queryParams: {},
|
1005
|
+
pathParams: {},
|
1006
|
+
headers: {},
|
1007
|
+
data: {}
|
1008
|
+
};
|
1009
|
+
const localVarHeaderParameter = {};
|
1010
|
+
let body;
|
1011
|
+
if (resizeInstanceRequest !== null && resizeInstanceRequest !== undefined) {
|
1012
|
+
if (resizeInstanceRequest instanceof ResizeInstanceRequest_1.ResizeInstanceRequest) {
|
1013
|
+
body = resizeInstanceRequest.body;
|
1014
|
+
}
|
1015
|
+
else {
|
1016
|
+
body = resizeInstanceRequest['body'];
|
1017
|
+
}
|
1018
|
+
}
|
1019
|
+
if (body === null || body === undefined) {
|
1020
|
+
throw new RequiredError('body', 'Required parameter body was null or undefined when calling body.');
|
1021
|
+
}
|
1022
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
1023
|
+
options.data = body !== undefined ? body : {};
|
1024
|
+
options.headers = localVarHeaderParameter;
|
1025
|
+
return options;
|
1026
|
+
},
|
1027
|
+
/**
|
1028
|
+
* 回退升级的云堡垒机实例。
|
1029
|
+
*
|
1030
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
1031
|
+
*/
|
1032
|
+
rollbackInstance(rollbackInstanceRequest) {
|
1033
|
+
const options = {
|
1034
|
+
method: "POST",
|
1035
|
+
url: "/v2/{project_id}/cbs/instance/rollback",
|
1036
|
+
contentType: "application/json",
|
1037
|
+
queryParams: {},
|
1038
|
+
pathParams: {},
|
1039
|
+
headers: {},
|
1040
|
+
data: {}
|
1041
|
+
};
|
1042
|
+
const localVarHeaderParameter = {};
|
1043
|
+
let body;
|
1044
|
+
if (rollbackInstanceRequest !== null && rollbackInstanceRequest !== undefined) {
|
1045
|
+
if (rollbackInstanceRequest instanceof RollbackInstanceRequest_1.RollbackInstanceRequest) {
|
1046
|
+
body = rollbackInstanceRequest.body;
|
1047
|
+
}
|
1048
|
+
else {
|
1049
|
+
body = rollbackInstanceRequest['body'];
|
1050
|
+
}
|
1051
|
+
}
|
1052
|
+
if (body === null || body === undefined) {
|
1053
|
+
throw new RequiredError('body', 'Required parameter body was null or undefined when calling body.');
|
1054
|
+
}
|
1055
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
1056
|
+
options.data = body !== undefined ? body : {};
|
1057
|
+
options.headers = localVarHeaderParameter;
|
1058
|
+
return options;
|
1059
|
+
},
|
1060
|
+
/**
|
1061
|
+
* 获取租户给云堡垒机服务委托授权信息。
|
1062
|
+
*
|
1063
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
1064
|
+
*/
|
1065
|
+
showAuthorization() {
|
1066
|
+
const options = {
|
1067
|
+
method: "GET",
|
1068
|
+
url: "/v2/{project_id}/cbs/agency/authorization",
|
1069
|
+
contentType: "application/json",
|
1070
|
+
queryParams: {},
|
1071
|
+
pathParams: {},
|
1072
|
+
headers: {}
|
1073
|
+
};
|
1074
|
+
const localVarHeaderParameter = {};
|
1075
|
+
options.headers = localVarHeaderParameter;
|
1076
|
+
return options;
|
1077
|
+
},
|
1078
|
+
/**
|
1079
|
+
* 获取当前租户所选择的可用分区里的堡垒机ECS规格是否可用。
|
1080
|
+
*
|
1081
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
1082
|
+
*/
|
1083
|
+
showEcsQuota(showEcsQuotaRequest) {
|
1084
|
+
const options = {
|
1085
|
+
method: "GET",
|
1086
|
+
url: "/v2/{project_id}/cbs/instance/ecs-quota",
|
1087
|
+
contentType: "application/json",
|
1088
|
+
queryParams: {},
|
1089
|
+
pathParams: {},
|
1090
|
+
headers: {}
|
1091
|
+
};
|
1092
|
+
const localVarHeaderParameter = {};
|
1093
|
+
const localVarQueryParameter = {};
|
1094
|
+
let availabilityZone;
|
1095
|
+
let resourceSpecCode;
|
1096
|
+
if (showEcsQuotaRequest !== null && showEcsQuotaRequest !== undefined) {
|
1097
|
+
if (showEcsQuotaRequest instanceof ShowEcsQuotaRequest_1.ShowEcsQuotaRequest) {
|
1098
|
+
availabilityZone = showEcsQuotaRequest.availabilityZone;
|
1099
|
+
resourceSpecCode = showEcsQuotaRequest.resourceSpecCode;
|
1100
|
+
}
|
1101
|
+
else {
|
1102
|
+
availabilityZone = showEcsQuotaRequest['availability_zone'];
|
1103
|
+
resourceSpecCode = showEcsQuotaRequest['resource_spec_code'];
|
1104
|
+
}
|
1105
|
+
}
|
1106
|
+
if (availabilityZone === null || availabilityZone === undefined) {
|
1107
|
+
throw new RequiredError('availabilityZone', 'Required parameter availabilityZone was null or undefined when calling showEcsQuota.');
|
1108
|
+
}
|
1109
|
+
if (availabilityZone !== null && availabilityZone !== undefined) {
|
1110
|
+
localVarQueryParameter['availability_zone'] = availabilityZone;
|
1111
|
+
}
|
1112
|
+
if (resourceSpecCode === null || resourceSpecCode === undefined) {
|
1113
|
+
throw new RequiredError('resourceSpecCode', 'Required parameter resourceSpecCode was null or undefined when calling showEcsQuota.');
|
1114
|
+
}
|
1115
|
+
if (resourceSpecCode !== null && resourceSpecCode !== undefined) {
|
1116
|
+
localVarQueryParameter['resource_spec_code'] = resourceSpecCode;
|
1117
|
+
}
|
1118
|
+
options.queryParams = localVarQueryParameter;
|
1119
|
+
options.headers = localVarHeaderParameter;
|
1120
|
+
return options;
|
1121
|
+
},
|
1122
|
+
/**
|
1123
|
+
* 获取堡垒机实例状态信息(未删除实例)。
|
1124
|
+
*
|
1125
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
1126
|
+
*/
|
1127
|
+
showInstanceStatus(showInstanceStatusRequest) {
|
1128
|
+
const options = {
|
1129
|
+
method: "GET",
|
1130
|
+
url: "/v2/{project_id}/cbs/instance/{server_id}/status",
|
1131
|
+
contentType: "application/json",
|
1132
|
+
queryParams: {},
|
1133
|
+
pathParams: {},
|
1134
|
+
headers: {}
|
1135
|
+
};
|
1136
|
+
const localVarHeaderParameter = {};
|
1137
|
+
let serverId;
|
1138
|
+
if (showInstanceStatusRequest !== null && showInstanceStatusRequest !== undefined) {
|
1139
|
+
if (showInstanceStatusRequest instanceof ShowInstanceStatusRequest_1.ShowInstanceStatusRequest) {
|
1140
|
+
serverId = showInstanceStatusRequest.serverId;
|
1141
|
+
}
|
1142
|
+
else {
|
1143
|
+
serverId = showInstanceStatusRequest['server_id'];
|
1144
|
+
}
|
1145
|
+
}
|
1146
|
+
if (serverId === null || serverId === undefined) {
|
1147
|
+
throw new RequiredError('serverId', 'Required parameter serverId was null or undefined when calling showInstanceStatus.');
|
1148
|
+
}
|
1149
|
+
options.pathParams = { 'server_id': serverId, };
|
1150
|
+
options.headers = localVarHeaderParameter;
|
1151
|
+
return options;
|
1152
|
+
},
|
1153
|
+
/**
|
1154
|
+
* 查询堡垒机实例资源的标签信息。
|
1155
|
+
*
|
1156
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
1157
|
+
*/
|
1158
|
+
showInstanceTags(showInstanceTagsRequest) {
|
1159
|
+
const options = {
|
1160
|
+
method: "GET",
|
1161
|
+
url: "/v2/{project_id}/cbs/instance/{resource_id}/tags",
|
1162
|
+
contentType: "application/json",
|
1163
|
+
queryParams: {},
|
1164
|
+
pathParams: {},
|
1165
|
+
headers: {}
|
1166
|
+
};
|
1167
|
+
const localVarHeaderParameter = {};
|
1168
|
+
let resourceId;
|
1169
|
+
if (showInstanceTagsRequest !== null && showInstanceTagsRequest !== undefined) {
|
1170
|
+
if (showInstanceTagsRequest instanceof ShowInstanceTagsRequest_1.ShowInstanceTagsRequest) {
|
1171
|
+
resourceId = showInstanceTagsRequest.resourceId;
|
1172
|
+
}
|
1173
|
+
else {
|
1174
|
+
resourceId = showInstanceTagsRequest['resource_id'];
|
1175
|
+
}
|
1176
|
+
}
|
1177
|
+
if (resourceId === null || resourceId === undefined) {
|
1178
|
+
throw new RequiredError('resourceId', 'Required parameter resourceId was null or undefined when calling showInstanceTags.');
|
1179
|
+
}
|
1180
|
+
options.pathParams = { 'resource_id': resourceId, };
|
1181
|
+
options.headers = localVarHeaderParameter;
|
1182
|
+
return options;
|
1183
|
+
},
|
1184
|
+
/**
|
1185
|
+
* 获取运维链接
|
1186
|
+
*
|
1187
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
1188
|
+
*/
|
1189
|
+
showOmUrl(showOmUrlRequest) {
|
1190
|
+
const options = {
|
1191
|
+
method: "GET",
|
1192
|
+
url: "/v2/{project_id}/cbs/instance/get-om-url",
|
1193
|
+
contentType: "application/json",
|
1194
|
+
queryParams: {},
|
1195
|
+
pathParams: {},
|
1196
|
+
headers: {}
|
1197
|
+
};
|
1198
|
+
const localVarHeaderParameter = {};
|
1199
|
+
const localVarQueryParameter = {};
|
1200
|
+
let serverId;
|
1201
|
+
let ipAddress;
|
1202
|
+
let hostAccountName;
|
1203
|
+
if (showOmUrlRequest !== null && showOmUrlRequest !== undefined) {
|
1204
|
+
if (showOmUrlRequest instanceof ShowOmUrlRequest_1.ShowOmUrlRequest) {
|
1205
|
+
serverId = showOmUrlRequest.serverId;
|
1206
|
+
ipAddress = showOmUrlRequest.ipAddress;
|
1207
|
+
hostAccountName = showOmUrlRequest.hostAccountName;
|
1208
|
+
}
|
1209
|
+
else {
|
1210
|
+
serverId = showOmUrlRequest['server_id'];
|
1211
|
+
ipAddress = showOmUrlRequest['ip_address'];
|
1212
|
+
hostAccountName = showOmUrlRequest['host_account_name'];
|
1213
|
+
}
|
1214
|
+
}
|
1215
|
+
if (serverId === null || serverId === undefined) {
|
1216
|
+
throw new RequiredError('serverId', 'Required parameter serverId was null or undefined when calling showOmUrl.');
|
1217
|
+
}
|
1218
|
+
if (serverId !== null && serverId !== undefined) {
|
1219
|
+
localVarQueryParameter['server_id'] = serverId;
|
1220
|
+
}
|
1221
|
+
if (ipAddress === null || ipAddress === undefined) {
|
1222
|
+
throw new RequiredError('ipAddress', 'Required parameter ipAddress was null or undefined when calling showOmUrl.');
|
1223
|
+
}
|
1224
|
+
if (ipAddress !== null && ipAddress !== undefined) {
|
1225
|
+
localVarQueryParameter['ip_address'] = ipAddress;
|
1226
|
+
}
|
1227
|
+
if (hostAccountName === null || hostAccountName === undefined) {
|
1228
|
+
throw new RequiredError('hostAccountName', 'Required parameter hostAccountName was null or undefined when calling showOmUrl.');
|
1229
|
+
}
|
1230
|
+
if (hostAccountName !== null && hostAccountName !== undefined) {
|
1231
|
+
localVarQueryParameter['host_account_name'] = hostAccountName;
|
1232
|
+
}
|
1233
|
+
options.queryParams = localVarQueryParameter;
|
1234
|
+
options.headers = localVarHeaderParameter;
|
1235
|
+
return options;
|
1236
|
+
},
|
1237
|
+
/**
|
1238
|
+
* 获取堡垒机实例配额信息。
|
1239
|
+
*
|
1240
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
1241
|
+
*/
|
1242
|
+
showQuota() {
|
1243
|
+
const options = {
|
1244
|
+
method: "GET",
|
1245
|
+
url: "/v2/{project_id}/cbs/instance/quota",
|
1246
|
+
contentType: "application/json",
|
1247
|
+
queryParams: {},
|
1248
|
+
pathParams: {},
|
1249
|
+
headers: {}
|
1250
|
+
};
|
1251
|
+
const localVarHeaderParameter = {};
|
1252
|
+
options.headers = localVarHeaderParameter;
|
1253
|
+
return options;
|
1254
|
+
},
|
1255
|
+
/**
|
1256
|
+
* 启动云堡垒机实例。
|
1257
|
+
*
|
1258
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
1259
|
+
*/
|
1260
|
+
startInstance(startInstanceRequest) {
|
1261
|
+
const options = {
|
1262
|
+
method: "POST",
|
1263
|
+
url: "/v2/{project_id}/cbs/instance/start",
|
1264
|
+
contentType: "application/json",
|
1265
|
+
queryParams: {},
|
1266
|
+
pathParams: {},
|
1267
|
+
headers: {},
|
1268
|
+
data: {}
|
1269
|
+
};
|
1270
|
+
const localVarHeaderParameter = {};
|
1271
|
+
let body;
|
1272
|
+
if (startInstanceRequest !== null && startInstanceRequest !== undefined) {
|
1273
|
+
if (startInstanceRequest instanceof StartInstanceRequest_1.StartInstanceRequest) {
|
1274
|
+
body = startInstanceRequest.body;
|
1275
|
+
}
|
1276
|
+
else {
|
1277
|
+
body = startInstanceRequest['body'];
|
1278
|
+
}
|
1279
|
+
}
|
1280
|
+
if (body === null || body === undefined) {
|
1281
|
+
throw new RequiredError('body', 'Required parameter body was null or undefined when calling body.');
|
1282
|
+
}
|
1283
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
1284
|
+
options.data = body !== undefined ? body : {};
|
1285
|
+
options.headers = localVarHeaderParameter;
|
1286
|
+
return options;
|
1287
|
+
},
|
1288
|
+
/**
|
1289
|
+
* 关闭云堡垒机实例。
|
1290
|
+
*
|
1291
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
1292
|
+
*/
|
1293
|
+
stopInstance(stopInstanceRequest) {
|
1294
|
+
const options = {
|
1295
|
+
method: "POST",
|
1296
|
+
url: "/v2/{project_id}/cbs/instance/stop",
|
1297
|
+
contentType: "application/json",
|
1298
|
+
queryParams: {},
|
1299
|
+
pathParams: {},
|
1300
|
+
headers: {},
|
1301
|
+
data: {}
|
1302
|
+
};
|
1303
|
+
const localVarHeaderParameter = {};
|
1304
|
+
let body;
|
1305
|
+
if (stopInstanceRequest !== null && stopInstanceRequest !== undefined) {
|
1306
|
+
if (stopInstanceRequest instanceof StopInstanceRequest_1.StopInstanceRequest) {
|
1307
|
+
body = stopInstanceRequest.body;
|
1308
|
+
}
|
1309
|
+
else {
|
1310
|
+
body = stopInstanceRequest['body'];
|
1311
|
+
}
|
1312
|
+
}
|
1313
|
+
if (body === null || body === undefined) {
|
1314
|
+
throw new RequiredError('body', 'Required parameter body was null or undefined when calling body.');
|
1315
|
+
}
|
1316
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
1317
|
+
options.data = body !== undefined ? body : {};
|
1318
|
+
options.headers = localVarHeaderParameter;
|
1319
|
+
return options;
|
1320
|
+
},
|
1321
|
+
/**
|
1322
|
+
* 为云堡垒机实例解绑弹性公网IP。
|
1323
|
+
*
|
1324
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
1325
|
+
*/
|
1326
|
+
uninstallInstanceEip(uninstallInstanceEipRequest) {
|
1327
|
+
const options = {
|
1328
|
+
method: "POST",
|
1329
|
+
url: "/v2/{project_id}/cbs/instance/{server_id}/eip/unbind",
|
1330
|
+
contentType: "application/json",
|
1331
|
+
queryParams: {},
|
1332
|
+
pathParams: {},
|
1333
|
+
headers: {},
|
1334
|
+
data: {}
|
1335
|
+
};
|
1336
|
+
const localVarHeaderParameter = {};
|
1337
|
+
let body;
|
1338
|
+
let serverId;
|
1339
|
+
if (uninstallInstanceEipRequest !== null && uninstallInstanceEipRequest !== undefined) {
|
1340
|
+
if (uninstallInstanceEipRequest instanceof UninstallInstanceEipRequest_1.UninstallInstanceEipRequest) {
|
1341
|
+
serverId = uninstallInstanceEipRequest.serverId;
|
1342
|
+
body = uninstallInstanceEipRequest.body;
|
1343
|
+
}
|
1344
|
+
else {
|
1345
|
+
serverId = uninstallInstanceEipRequest['server_id'];
|
1346
|
+
body = uninstallInstanceEipRequest['body'];
|
1347
|
+
}
|
1348
|
+
}
|
1349
|
+
if (serverId === null || serverId === undefined) {
|
1350
|
+
throw new RequiredError('serverId', 'Required parameter serverId was null or undefined when calling uninstallInstanceEip.');
|
1351
|
+
}
|
1352
|
+
if (body === null || body === undefined) {
|
1353
|
+
throw new RequiredError('body', 'Required parameter body was null or undefined when calling body.');
|
1354
|
+
}
|
1355
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
1356
|
+
options.data = body !== undefined ? body : {};
|
1357
|
+
options.pathParams = { 'server_id': serverId, };
|
1358
|
+
options.headers = localVarHeaderParameter;
|
1359
|
+
return options;
|
1360
|
+
},
|
1361
|
+
/**
|
1362
|
+
* 修改堡垒机实例安全组。
|
1363
|
+
*
|
1364
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
1365
|
+
*/
|
1366
|
+
updateInstanceSecurityGroup(updateInstanceSecurityGroupRequest) {
|
1367
|
+
const options = {
|
1368
|
+
method: "PUT",
|
1369
|
+
url: "/v2/{project_id}/cbs/instance/{server_id}/security-groups",
|
1370
|
+
contentType: "application/json",
|
1371
|
+
queryParams: {},
|
1372
|
+
pathParams: {},
|
1373
|
+
headers: {},
|
1374
|
+
data: {}
|
1375
|
+
};
|
1376
|
+
const localVarHeaderParameter = {};
|
1377
|
+
let body;
|
1378
|
+
let serverId;
|
1379
|
+
if (updateInstanceSecurityGroupRequest !== null && updateInstanceSecurityGroupRequest !== undefined) {
|
1380
|
+
if (updateInstanceSecurityGroupRequest instanceof UpdateInstanceSecurityGroupRequest_1.UpdateInstanceSecurityGroupRequest) {
|
1381
|
+
serverId = updateInstanceSecurityGroupRequest.serverId;
|
1382
|
+
body = updateInstanceSecurityGroupRequest.body;
|
1383
|
+
}
|
1384
|
+
else {
|
1385
|
+
serverId = updateInstanceSecurityGroupRequest['server_id'];
|
1386
|
+
body = updateInstanceSecurityGroupRequest['body'];
|
1387
|
+
}
|
1388
|
+
}
|
1389
|
+
if (serverId === null || serverId === undefined) {
|
1390
|
+
throw new RequiredError('serverId', 'Required parameter serverId was null or undefined when calling updateInstanceSecurityGroup.');
|
1391
|
+
}
|
1392
|
+
if (body === null || body === undefined) {
|
1393
|
+
throw new RequiredError('body', 'Required parameter body was null or undefined when calling body.');
|
1394
|
+
}
|
1395
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
1396
|
+
options.data = body !== undefined ? body : {};
|
1397
|
+
options.pathParams = { 'server_id': serverId, };
|
1398
|
+
options.headers = localVarHeaderParameter;
|
1399
|
+
return options;
|
1400
|
+
},
|
1401
|
+
/**
|
1402
|
+
* 升级云堡垒机实例。
|
1403
|
+
*
|
1404
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
1405
|
+
*/
|
1406
|
+
upgradeInstance(upgradeInstanceRequest) {
|
1407
|
+
const options = {
|
1408
|
+
method: "POST",
|
1409
|
+
url: "/v2/{project_id}/cbs/instance/upgrade",
|
1410
|
+
contentType: "application/json",
|
1411
|
+
queryParams: {},
|
1412
|
+
pathParams: {},
|
1413
|
+
headers: {},
|
1414
|
+
data: {}
|
1415
|
+
};
|
1416
|
+
const localVarHeaderParameter = {};
|
1417
|
+
let body;
|
1418
|
+
if (upgradeInstanceRequest !== null && upgradeInstanceRequest !== undefined) {
|
1419
|
+
if (upgradeInstanceRequest instanceof UpgradeInstanceRequest_1.UpgradeInstanceRequest) {
|
1420
|
+
body = upgradeInstanceRequest.body;
|
1421
|
+
}
|
1422
|
+
else {
|
1423
|
+
body = upgradeInstanceRequest['body'];
|
1424
|
+
}
|
1425
|
+
}
|
1426
|
+
if (body === null || body === undefined) {
|
1427
|
+
throw new RequiredError('body', 'Required parameter body was null or undefined when calling body.');
|
1428
|
+
}
|
1429
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
1430
|
+
options.data = body !== undefined ? body : {};
|
1431
|
+
options.headers = localVarHeaderParameter;
|
1432
|
+
return options;
|
1433
|
+
},
|
1434
|
+
};
|
1435
|
+
};
|
1436
|
+
exports.ParamCreater = ParamCreater;
|
1437
|
+
function newClient(client) {
|
1438
|
+
return new CbhClient(client);
|
1439
|
+
}
|
1440
|
+
/**
|
1441
|
+
*
|
1442
|
+
* @export
|
1443
|
+
* @class RequiredError
|
1444
|
+
* @extends {Error}
|
1445
|
+
*/
|
1446
|
+
class RequiredError extends Error {
|
1447
|
+
constructor(field, msg) {
|
1448
|
+
super(msg);
|
1449
|
+
this.field = field;
|
1450
|
+
this.name = "RequiredError";
|
1451
|
+
}
|
1452
|
+
}
|
1453
|
+
exports.RequiredError = RequiredError;
|
1454
|
+
//# sourceMappingURL=CbhClient.js.map
|