@huaweicloud/huaweicloud-sdk-cbr 3.1.36
Sign up to get free protection for your applications and to get access to all the features.
- package/LICENSE +13 -0
- package/README.md +1 -0
- package/huaweicloud-sdk-cbr.d.ts +2 -0
- package/huaweicloud-sdk-cbr.js +31 -0
- package/package.json +19 -0
- package/v1/CbrClient.d.ts +1175 -0
- package/v1/CbrClient.js +2558 -0
- package/v1/CbrRegion.d.ts +22 -0
- package/v1/CbrRegion.js +57 -0
- package/v1/model/AddMemberRequest.d.ts +10 -0
- package/v1/model/AddMemberRequest.js +28 -0
- package/v1/model/AddMemberResponse.d.ts +9 -0
- package/v1/model/AddMemberResponse.js +35 -0
- package/v1/model/AddMembersReq.d.ts +5 -0
- package/v1/model/AddMembersReq.js +14 -0
- package/v1/model/AddVaultResourceRequest.d.ts +10 -0
- package/v1/model/AddVaultResourceRequest.js +28 -0
- package/v1/model/AddVaultResourceResponse.d.ts +8 -0
- package/v1/model/AddVaultResourceResponse.js +41 -0
- package/v1/model/AssociateVaultPolicyRequest.d.ts +10 -0
- package/v1/model/AssociateVaultPolicyRequest.js +28 -0
- package/v1/model/AssociateVaultPolicyResponse.d.ts +9 -0
- package/v1/model/AssociateVaultPolicyResponse.js +41 -0
- package/v1/model/BackupExtendInfo.d.ts +51 -0
- package/v1/model/BackupExtendInfo.js +143 -0
- package/v1/model/BackupReplicateReq.d.ts +6 -0
- package/v1/model/BackupReplicateReq.js +14 -0
- package/v1/model/BackupReplicateReqBody.d.ts +23 -0
- package/v1/model/BackupReplicateReqBody.js +76 -0
- package/v1/model/BackupReplicateRespBody.d.ts +35 -0
- package/v1/model/BackupReplicateRespBody.js +121 -0
- package/v1/model/BackupResp.d.ts +118 -0
- package/v1/model/BackupResp.js +335 -0
- package/v1/model/BackupRestore.d.ts +22 -0
- package/v1/model/BackupRestore.js +69 -0
- package/v1/model/BackupRestoreReq.d.ts +6 -0
- package/v1/model/BackupRestoreReq.js +14 -0
- package/v1/model/BackupRestoreServerMapping.d.ts +11 -0
- package/v1/model/BackupRestoreServerMapping.js +39 -0
- package/v1/model/BackupSync.d.ts +35 -0
- package/v1/model/BackupSync.js +129 -0
- package/v1/model/BackupSyncReq.d.ts +6 -0
- package/v1/model/BackupSyncReq.js +14 -0
- package/v1/model/BackupSyncRespBody.d.ts +11 -0
- package/v1/model/BackupSyncRespBody.js +39 -0
- package/v1/model/BatchCreateAndDeleteVaultTagsRequest.d.ts +10 -0
- package/v1/model/BatchCreateAndDeleteVaultTagsRequest.js +28 -0
- package/v1/model/BatchCreateAndDeleteVaultTagsResponse.d.ts +4 -0
- package/v1/model/BatchCreateAndDeleteVaultTagsResponse.js +27 -0
- package/v1/model/BillbingCreateExtraInfo.d.ts +11 -0
- package/v1/model/BillbingCreateExtraInfo.js +37 -0
- package/v1/model/Billing.d.ts +119 -0
- package/v1/model/Billing.js +258 -0
- package/v1/model/BillingCreate.d.ts +119 -0
- package/v1/model/BillingCreate.js +286 -0
- package/v1/model/BillingUpdate.d.ts +17 -0
- package/v1/model/BillingUpdate.js +36 -0
- package/v1/model/BindRulesTags.d.ts +7 -0
- package/v1/model/BindRulesTags.js +19 -0
- package/v1/model/BulkCreateAndDeleteVaultTagsReq.d.ts +21 -0
- package/v1/model/BulkCreateAndDeleteVaultTagsReq.js +41 -0
- package/v1/model/CbcOrderResult.d.ts +11 -0
- package/v1/model/CbcOrderResult.js +27 -0
- package/v1/model/CheckpointCreate.d.ts +35 -0
- package/v1/model/CheckpointCreate.js +80 -0
- package/v1/model/CheckpointCreateSkippedResource.d.ts +13 -0
- package/v1/model/CheckpointCreateSkippedResource.js +29 -0
- package/v1/model/CheckpointExtraInfoResp.d.ts +11 -0
- package/v1/model/CheckpointExtraInfoResp.js +31 -0
- package/v1/model/CheckpointParam.d.ts +24 -0
- package/v1/model/CheckpointParam.js +67 -0
- package/v1/model/CheckpointPlanCreate.d.ts +15 -0
- package/v1/model/CheckpointPlanCreate.js +37 -0
- package/v1/model/CheckpointReplicateParam.d.ts +27 -0
- package/v1/model/CheckpointReplicateParam.js +97 -0
- package/v1/model/CheckpointReplicateReq.d.ts +6 -0
- package/v1/model/CheckpointReplicateReq.js +14 -0
- package/v1/model/CheckpointReplicateRespBody.d.ts +34 -0
- package/v1/model/CheckpointReplicateRespBody.js +119 -0
- package/v1/model/CheckpointReplicateRespbackups.d.ts +11 -0
- package/v1/model/CheckpointReplicateRespbackups.js +39 -0
- package/v1/model/CheckpointResourceResp.d.ts +40 -0
- package/v1/model/CheckpointResourceResp.js +106 -0
- package/v1/model/CopyBackupRequest.d.ts +10 -0
- package/v1/model/CopyBackupRequest.js +28 -0
- package/v1/model/CopyBackupResponse.d.ts +7 -0
- package/v1/model/CopyBackupResponse.js +31 -0
- package/v1/model/CopyCheckpointRequest.d.ts +6 -0
- package/v1/model/CopyCheckpointRequest.js +13 -0
- package/v1/model/CopyCheckpointResponse.d.ts +7 -0
- package/v1/model/CopyCheckpointResponse.js +31 -0
- package/v1/model/CreateCheckpointRequest.d.ts +6 -0
- package/v1/model/CreateCheckpointRequest.js +13 -0
- package/v1/model/CreateCheckpointResponse.d.ts +7 -0
- package/v1/model/CreateCheckpointResponse.js +31 -0
- package/v1/model/CreatePolicyRequest.d.ts +6 -0
- package/v1/model/CreatePolicyRequest.js +13 -0
- package/v1/model/CreatePolicyResponse.d.ts +7 -0
- package/v1/model/CreatePolicyResponse.js +31 -0
- package/v1/model/CreateVaultRequest.d.ts +6 -0
- package/v1/model/CreateVaultRequest.js +13 -0
- package/v1/model/CreateVaultResponse.d.ts +7 -0
- package/v1/model/CreateVaultResponse.js +31 -0
- package/v1/model/CreateVaultTagsRequest.d.ts +10 -0
- package/v1/model/CreateVaultTagsRequest.js +28 -0
- package/v1/model/CreateVaultTagsResponse.d.ts +4 -0
- package/v1/model/CreateVaultTagsResponse.js +27 -0
- package/v1/model/DeleteBackupRequest.d.ts +7 -0
- package/v1/model/DeleteBackupRequest.js +24 -0
- package/v1/model/DeleteBackupResponse.d.ts +4 -0
- package/v1/model/DeleteBackupResponse.js +27 -0
- package/v1/model/DeleteMemberRequest.d.ts +11 -0
- package/v1/model/DeleteMemberRequest.js +39 -0
- package/v1/model/DeleteMemberResponse.d.ts +4 -0
- package/v1/model/DeleteMemberResponse.js +27 -0
- package/v1/model/DeletePolicyRequest.d.ts +7 -0
- package/v1/model/DeletePolicyRequest.js +24 -0
- package/v1/model/DeletePolicyResponse.d.ts +4 -0
- package/v1/model/DeletePolicyResponse.js +27 -0
- package/v1/model/DeleteVaultRequest.d.ts +7 -0
- package/v1/model/DeleteVaultRequest.js +24 -0
- package/v1/model/DeleteVaultResponse.d.ts +4 -0
- package/v1/model/DeleteVaultResponse.js +27 -0
- package/v1/model/DeleteVaultTagRequest.d.ts +9 -0
- package/v1/model/DeleteVaultTagRequest.js +29 -0
- package/v1/model/DeleteVaultTagResponse.d.ts +4 -0
- package/v1/model/DeleteVaultTagResponse.js +27 -0
- package/v1/model/DisassociateVaultPolicyRequest.d.ts +10 -0
- package/v1/model/DisassociateVaultPolicyRequest.js +28 -0
- package/v1/model/DisassociateVaultPolicyResponse.d.ts +9 -0
- package/v1/model/DisassociateVaultPolicyResponse.js +41 -0
- package/v1/model/ImageData.d.ts +7 -0
- package/v1/model/ImageData.js +23 -0
- package/v1/model/ImportBackupRequest.d.ts +6 -0
- package/v1/model/ImportBackupRequest.js +13 -0
- package/v1/model/ImportBackupResponse.d.ts +7 -0
- package/v1/model/ImportBackupResponse.js +31 -0
- package/v1/model/ListBackupsRequest.d.ts +128 -0
- package/v1/model/ListBackupsRequest.js +305 -0
- package/v1/model/ListBackupsResponse.d.ts +13 -0
- package/v1/model/ListBackupsResponse.js +43 -0
- package/v1/model/ListOpLogsRequest.d.ts +71 -0
- package/v1/model/ListOpLogsRequest.js +175 -0
- package/v1/model/ListOpLogsResponse.d.ts +15 -0
- package/v1/model/ListOpLogsResponse.js +53 -0
- package/v1/model/ListPoliciesRequest.d.ts +19 -0
- package/v1/model/ListPoliciesRequest.js +46 -0
- package/v1/model/ListPoliciesResponse.d.ts +9 -0
- package/v1/model/ListPoliciesResponse.js +35 -0
- package/v1/model/ListProtectableRequest.d.ts +31 -0
- package/v1/model/ListProtectableRequest.js +71 -0
- package/v1/model/ListProtectableResponse.d.ts +7 -0
- package/v1/model/ListProtectableResponse.js +31 -0
- package/v1/model/ListVaultRequest.d.ts +53 -0
- package/v1/model/ListVaultRequest.js +131 -0
- package/v1/model/ListVaultResponse.d.ts +13 -0
- package/v1/model/ListVaultResponse.js +43 -0
- package/v1/model/Match.d.ts +7 -0
- package/v1/model/Match.js +19 -0
- package/v1/model/Member.d.ts +40 -0
- package/v1/model/Member.js +112 -0
- package/v1/model/MigrateVaultResourceRequest.d.ts +10 -0
- package/v1/model/MigrateVaultResourceRequest.js +28 -0
- package/v1/model/MigrateVaultResourceResponse.d.ts +8 -0
- package/v1/model/MigrateVaultResourceResponse.js +41 -0
- package/v1/model/OpErrorInfo.d.ts +7 -0
- package/v1/model/OpErrorInfo.js +17 -0
- package/v1/model/OpExtendInfoBckup.d.ts +41 -0
- package/v1/model/OpExtendInfoBckup.js +102 -0
- package/v1/model/OpExtendInfoCommon.d.ts +13 -0
- package/v1/model/OpExtendInfoCommon.js +43 -0
- package/v1/model/OpExtendInfoDelete.d.ts +11 -0
- package/v1/model/OpExtendInfoDelete.js +39 -0
- package/v1/model/OpExtendInfoRemoveResources.d.ts +14 -0
- package/v1/model/OpExtendInfoRemoveResources.js +41 -0
- package/v1/model/OpExtendInfoReplication.d.ts +43 -0
- package/v1/model/OpExtendInfoReplication.js +154 -0
- package/v1/model/OpExtendInfoRestore.d.ts +19 -0
- package/v1/model/OpExtendInfoRestore.js +65 -0
- package/v1/model/OpExtendInfoSync.d.ts +15 -0
- package/v1/model/OpExtendInfoSync.js +51 -0
- package/v1/model/OpExtendInfoVaultDelete.d.ts +11 -0
- package/v1/model/OpExtendInfoVaultDelete.js +37 -0
- package/v1/model/OpExtraInfo.d.ts +36 -0
- package/v1/model/OpExtraInfo.js +77 -0
- package/v1/model/OperationLog.d.ts +87 -0
- package/v1/model/OperationLog.js +234 -0
- package/v1/model/Policy.d.ts +34 -0
- package/v1/model/Policy.js +82 -0
- package/v1/model/PolicyAssociateVault.d.ts +11 -0
- package/v1/model/PolicyAssociateVault.js +38 -0
- package/v1/model/PolicyCreate.d.ts +27 -0
- package/v1/model/PolicyCreate.js +62 -0
- package/v1/model/PolicyCreateReq.d.ts +6 -0
- package/v1/model/PolicyCreateReq.js +14 -0
- package/v1/model/PolicyTriggerPropertiesReq.d.ts +5 -0
- package/v1/model/PolicyTriggerPropertiesReq.js +14 -0
- package/v1/model/PolicyTriggerPropertiesResp.d.ts +9 -0
- package/v1/model/PolicyTriggerPropertiesResp.js +28 -0
- package/v1/model/PolicyTriggerReq.d.ts +6 -0
- package/v1/model/PolicyTriggerReq.js +14 -0
- package/v1/model/PolicyTriggerResp.d.ts +19 -0
- package/v1/model/PolicyTriggerResp.js +35 -0
- package/v1/model/PolicyUpdate.d.ts +15 -0
- package/v1/model/PolicyUpdate.js +35 -0
- package/v1/model/PolicyUpdateReq.d.ts +6 -0
- package/v1/model/PolicyUpdateReq.js +14 -0
- package/v1/model/PolicyoODCreate.d.ts +41 -0
- package/v1/model/PolicyoODCreate.js +139 -0
- package/v1/model/ProtectableReplicationCapabilitiesRespRegion.d.ts +9 -0
- package/v1/model/ProtectableReplicationCapabilitiesRespRegion.js +29 -0
- package/v1/model/ProtectableResult.d.ts +14 -0
- package/v1/model/ProtectableResult.js +30 -0
- package/v1/model/ProtectablesResp.d.ts +29 -0
- package/v1/model/ProtectablesResp.js +56 -0
- package/v1/model/RemoveVaultResourceRequest.d.ts +10 -0
- package/v1/model/RemoveVaultResourceRequest.js +28 -0
- package/v1/model/RemoveVaultResourceResponse.d.ts +8 -0
- package/v1/model/RemoveVaultResourceResponse.js +41 -0
- package/v1/model/ReplicationRecordGet.d.ts +67 -0
- package/v1/model/ReplicationRecordGet.js +198 -0
- package/v1/model/ReplicationRecordsExtraInfo.d.ts +21 -0
- package/v1/model/ReplicationRecordsExtraInfo.js +69 -0
- package/v1/model/Resource.d.ts +14 -0
- package/v1/model/Resource.js +37 -0
- package/v1/model/ResourceCreate.d.ts +14 -0
- package/v1/model/ResourceCreate.js +37 -0
- package/v1/model/ResourceExtraInfo.d.ts +12 -0
- package/v1/model/ResourceExtraInfo.js +37 -0
- package/v1/model/ResourceExtraInfoIncludeVolumes.d.ts +9 -0
- package/v1/model/ResourceExtraInfoIncludeVolumes.js +28 -0
- package/v1/model/ResourceResp.d.ts +43 -0
- package/v1/model/ResourceResp.js +110 -0
- package/v1/model/RestoreBackupRequest.d.ts +10 -0
- package/v1/model/RestoreBackupRequest.js +28 -0
- package/v1/model/RestoreBackupResponse.d.ts +4 -0
- package/v1/model/RestoreBackupResponse.js +27 -0
- package/v1/model/ShowBackupRequest.d.ts +7 -0
- package/v1/model/ShowBackupRequest.js +24 -0
- package/v1/model/ShowBackupResponse.d.ts +7 -0
- package/v1/model/ShowBackupResponse.js +31 -0
- package/v1/model/ShowCheckpointRequest.d.ts +7 -0
- package/v1/model/ShowCheckpointRequest.js +24 -0
- package/v1/model/ShowCheckpointResponse.d.ts +7 -0
- package/v1/model/ShowCheckpointResponse.js +31 -0
- package/v1/model/ShowMemberDetailRequest.d.ts +11 -0
- package/v1/model/ShowMemberDetailRequest.js +39 -0
- package/v1/model/ShowMemberDetailResponse.d.ts +7 -0
- package/v1/model/ShowMemberDetailResponse.js +31 -0
- package/v1/model/ShowMembersDetailRequest.d.ts +29 -0
- package/v1/model/ShowMembersDetailRequest.js +86 -0
- package/v1/model/ShowMembersDetailResponse.d.ts +9 -0
- package/v1/model/ShowMembersDetailResponse.js +35 -0
- package/v1/model/ShowOpLogRequest.d.ts +7 -0
- package/v1/model/ShowOpLogRequest.js +24 -0
- package/v1/model/ShowOpLogResponse.d.ts +9 -0
- package/v1/model/ShowOpLogResponse.js +41 -0
- package/v1/model/ShowPolicyRequest.d.ts +7 -0
- package/v1/model/ShowPolicyRequest.js +24 -0
- package/v1/model/ShowPolicyResponse.d.ts +7 -0
- package/v1/model/ShowPolicyResponse.js +31 -0
- package/v1/model/ShowProtectableRequest.d.ts +19 -0
- package/v1/model/ShowProtectableRequest.js +48 -0
- package/v1/model/ShowProtectableResponse.d.ts +7 -0
- package/v1/model/ShowProtectableResponse.js +31 -0
- package/v1/model/ShowReplicationCapabilitiesRequest.d.ts +3 -0
- package/v1/model/ShowReplicationCapabilitiesRequest.js +9 -0
- package/v1/model/ShowReplicationCapabilitiesResponse.d.ts +7 -0
- package/v1/model/ShowReplicationCapabilitiesResponse.js +31 -0
- package/v1/model/ShowVaultProjectTagRequest.d.ts +3 -0
- package/v1/model/ShowVaultProjectTagRequest.js +9 -0
- package/v1/model/ShowVaultProjectTagResponse.d.ts +7 -0
- package/v1/model/ShowVaultProjectTagResponse.js +31 -0
- package/v1/model/ShowVaultRequest.d.ts +7 -0
- package/v1/model/ShowVaultRequest.js +24 -0
- package/v1/model/ShowVaultResourceInstancesRequest.d.ts +6 -0
- package/v1/model/ShowVaultResourceInstancesRequest.js +13 -0
- package/v1/model/ShowVaultResourceInstancesResponse.d.ts +11 -0
- package/v1/model/ShowVaultResourceInstancesResponse.js +45 -0
- package/v1/model/ShowVaultResponse.d.ts +7 -0
- package/v1/model/ShowVaultResponse.js +31 -0
- package/v1/model/ShowVaultTagRequest.d.ts +7 -0
- package/v1/model/ShowVaultTagRequest.js +24 -0
- package/v1/model/ShowVaultTagResponse.d.ts +12 -0
- package/v1/model/ShowVaultTagResponse.js +45 -0
- package/v1/model/SysTag.d.ts +7 -0
- package/v1/model/SysTag.js +19 -0
- package/v1/model/SysTags.d.ts +7 -0
- package/v1/model/SysTags.js +19 -0
- package/v1/model/Tag.d.ts +7 -0
- package/v1/model/Tag.js +18 -0
- package/v1/model/TagResource.d.ts +24 -0
- package/v1/model/TagResource.js +74 -0
- package/v1/model/TagsReq.d.ts +7 -0
- package/v1/model/TagsReq.js +19 -0
- package/v1/model/TagsResp.d.ts +7 -0
- package/v1/model/TagsResp.js +17 -0
- package/v1/model/UpdateMember.d.ts +18 -0
- package/v1/model/UpdateMember.js +38 -0
- package/v1/model/UpdateMemberStatusRequest.d.ts +14 -0
- package/v1/model/UpdateMemberStatusRequest.js +43 -0
- package/v1/model/UpdateMemberStatusResponse.d.ts +7 -0
- package/v1/model/UpdateMemberStatusResponse.js +31 -0
- package/v1/model/UpdatePolicyRequest.d.ts +10 -0
- package/v1/model/UpdatePolicyRequest.js +28 -0
- package/v1/model/UpdatePolicyResponse.d.ts +7 -0
- package/v1/model/UpdatePolicyResponse.js +31 -0
- package/v1/model/UpdateVaultRequest.d.ts +10 -0
- package/v1/model/UpdateVaultRequest.js +28 -0
- package/v1/model/UpdateVaultResponse.d.ts +7 -0
- package/v1/model/UpdateVaultResponse.js +31 -0
- package/v1/model/Vault.d.ts +57 -0
- package/v1/model/Vault.js +169 -0
- package/v1/model/VaultAddResourceReq.d.ts +6 -0
- package/v1/model/VaultAddResourceReq.js +14 -0
- package/v1/model/VaultAssociate.d.ts +15 -0
- package/v1/model/VaultAssociate.js +51 -0
- package/v1/model/VaultBackup.d.ts +10 -0
- package/v1/model/VaultBackup.js +28 -0
- package/v1/model/VaultBackupReq.d.ts +6 -0
- package/v1/model/VaultBackupReq.js +14 -0
- package/v1/model/VaultBindRules.d.ts +6 -0
- package/v1/model/VaultBindRules.js +13 -0
- package/v1/model/VaultCreate.d.ts +37 -0
- package/v1/model/VaultCreate.js +102 -0
- package/v1/model/VaultCreateReq.d.ts +6 -0
- package/v1/model/VaultCreateReq.js +14 -0
- package/v1/model/VaultCreateResource.d.ts +64 -0
- package/v1/model/VaultCreateResource.js +181 -0
- package/v1/model/VaultDissociate.d.ts +7 -0
- package/v1/model/VaultDissociate.js +24 -0
- package/v1/model/VaultGet.d.ts +63 -0
- package/v1/model/VaultGet.js +188 -0
- package/v1/model/VaultMigrateResourceReq.d.ts +11 -0
- package/v1/model/VaultMigrateResourceReq.js +39 -0
- package/v1/model/VaultPolicyResp.d.ts +15 -0
- package/v1/model/VaultPolicyResp.js +53 -0
- package/v1/model/VaultRemoveResourceReq.d.ts +7 -0
- package/v1/model/VaultRemoveResourceReq.js +24 -0
- package/v1/model/VaultResourceInstancesReq.d.ts +60 -0
- package/v1/model/VaultResourceInstancesReq.js +146 -0
- package/v1/model/VaultTagsCreateReq.d.ts +6 -0
- package/v1/model/VaultTagsCreateReq.js +13 -0
- package/v1/model/VaultUpdate.d.ts +27 -0
- package/v1/model/VaultUpdate.js +77 -0
- package/v1/model/VaultUpdateReq.d.ts +6 -0
- package/v1/model/VaultUpdateReq.js +14 -0
- package/v1/public-api.d.ts +171 -0
- package/v1/public-api.js +187 -0
@@ -0,0 +1,258 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.BillingStatusEnum = exports.BillingSpecCodeEnum = exports.BillingProtectTypeEnum = exports.BillingObjectTypeEnum = exports.BillingConsistentLevelEnum = exports.BillingCloudTypeEnum = exports.BillingChargingModeEnum = exports.Billing = void 0;
|
4
|
+
var Billing = /** @class */ (function () {
|
5
|
+
function Billing(allocated, chargingMode, consistentLevel, protectType, size, specCode, status, used) {
|
6
|
+
this['allocated'] = allocated;
|
7
|
+
this['charging_mode'] = chargingMode;
|
8
|
+
this['consistent_level'] = consistentLevel;
|
9
|
+
this['protect_type'] = protectType;
|
10
|
+
this['size'] = size;
|
11
|
+
this['spec_code'] = specCode;
|
12
|
+
this['status'] = status;
|
13
|
+
this['used'] = used;
|
14
|
+
}
|
15
|
+
Billing.prototype.withAllocated = function (allocated) {
|
16
|
+
this['allocated'] = allocated;
|
17
|
+
return this;
|
18
|
+
};
|
19
|
+
Billing.prototype.withChargingMode = function (chargingMode) {
|
20
|
+
this['charging_mode'] = chargingMode;
|
21
|
+
return this;
|
22
|
+
};
|
23
|
+
Object.defineProperty(Billing.prototype, "chargingMode", {
|
24
|
+
get: function () {
|
25
|
+
return this['charging_mode'];
|
26
|
+
},
|
27
|
+
set: function (chargingMode) {
|
28
|
+
this['charging_mode'] = chargingMode;
|
29
|
+
},
|
30
|
+
enumerable: false,
|
31
|
+
configurable: true
|
32
|
+
});
|
33
|
+
Billing.prototype.withCloudType = function (cloudType) {
|
34
|
+
this['cloud_type'] = cloudType;
|
35
|
+
return this;
|
36
|
+
};
|
37
|
+
Object.defineProperty(Billing.prototype, "cloudType", {
|
38
|
+
get: function () {
|
39
|
+
return this['cloud_type'];
|
40
|
+
},
|
41
|
+
set: function (cloudType) {
|
42
|
+
this['cloud_type'] = cloudType;
|
43
|
+
},
|
44
|
+
enumerable: false,
|
45
|
+
configurable: true
|
46
|
+
});
|
47
|
+
Billing.prototype.withConsistentLevel = function (consistentLevel) {
|
48
|
+
this['consistent_level'] = consistentLevel;
|
49
|
+
return this;
|
50
|
+
};
|
51
|
+
Object.defineProperty(Billing.prototype, "consistentLevel", {
|
52
|
+
get: function () {
|
53
|
+
return this['consistent_level'];
|
54
|
+
},
|
55
|
+
set: function (consistentLevel) {
|
56
|
+
this['consistent_level'] = consistentLevel;
|
57
|
+
},
|
58
|
+
enumerable: false,
|
59
|
+
configurable: true
|
60
|
+
});
|
61
|
+
Billing.prototype.withObjectType = function (objectType) {
|
62
|
+
this['object_type'] = objectType;
|
63
|
+
return this;
|
64
|
+
};
|
65
|
+
Object.defineProperty(Billing.prototype, "objectType", {
|
66
|
+
get: function () {
|
67
|
+
return this['object_type'];
|
68
|
+
},
|
69
|
+
set: function (objectType) {
|
70
|
+
this['object_type'] = objectType;
|
71
|
+
},
|
72
|
+
enumerable: false,
|
73
|
+
configurable: true
|
74
|
+
});
|
75
|
+
Billing.prototype.withOrderId = function (orderId) {
|
76
|
+
this['order_id'] = orderId;
|
77
|
+
return this;
|
78
|
+
};
|
79
|
+
Object.defineProperty(Billing.prototype, "orderId", {
|
80
|
+
get: function () {
|
81
|
+
return this['order_id'];
|
82
|
+
},
|
83
|
+
set: function (orderId) {
|
84
|
+
this['order_id'] = orderId;
|
85
|
+
},
|
86
|
+
enumerable: false,
|
87
|
+
configurable: true
|
88
|
+
});
|
89
|
+
Billing.prototype.withProductId = function (productId) {
|
90
|
+
this['product_id'] = productId;
|
91
|
+
return this;
|
92
|
+
};
|
93
|
+
Object.defineProperty(Billing.prototype, "productId", {
|
94
|
+
get: function () {
|
95
|
+
return this['product_id'];
|
96
|
+
},
|
97
|
+
set: function (productId) {
|
98
|
+
this['product_id'] = productId;
|
99
|
+
},
|
100
|
+
enumerable: false,
|
101
|
+
configurable: true
|
102
|
+
});
|
103
|
+
Billing.prototype.withProtectType = function (protectType) {
|
104
|
+
this['protect_type'] = protectType;
|
105
|
+
return this;
|
106
|
+
};
|
107
|
+
Object.defineProperty(Billing.prototype, "protectType", {
|
108
|
+
get: function () {
|
109
|
+
return this['protect_type'];
|
110
|
+
},
|
111
|
+
set: function (protectType) {
|
112
|
+
this['protect_type'] = protectType;
|
113
|
+
},
|
114
|
+
enumerable: false,
|
115
|
+
configurable: true
|
116
|
+
});
|
117
|
+
Billing.prototype.withSize = function (size) {
|
118
|
+
this['size'] = size;
|
119
|
+
return this;
|
120
|
+
};
|
121
|
+
Billing.prototype.withSpecCode = function (specCode) {
|
122
|
+
this['spec_code'] = specCode;
|
123
|
+
return this;
|
124
|
+
};
|
125
|
+
Object.defineProperty(Billing.prototype, "specCode", {
|
126
|
+
get: function () {
|
127
|
+
return this['spec_code'];
|
128
|
+
},
|
129
|
+
set: function (specCode) {
|
130
|
+
this['spec_code'] = specCode;
|
131
|
+
},
|
132
|
+
enumerable: false,
|
133
|
+
configurable: true
|
134
|
+
});
|
135
|
+
Billing.prototype.withStatus = function (status) {
|
136
|
+
this['status'] = status;
|
137
|
+
return this;
|
138
|
+
};
|
139
|
+
Billing.prototype.withStorageUnit = function (storageUnit) {
|
140
|
+
this['storage_unit'] = storageUnit;
|
141
|
+
return this;
|
142
|
+
};
|
143
|
+
Object.defineProperty(Billing.prototype, "storageUnit", {
|
144
|
+
get: function () {
|
145
|
+
return this['storage_unit'];
|
146
|
+
},
|
147
|
+
set: function (storageUnit) {
|
148
|
+
this['storage_unit'] = storageUnit;
|
149
|
+
},
|
150
|
+
enumerable: false,
|
151
|
+
configurable: true
|
152
|
+
});
|
153
|
+
Billing.prototype.withUsed = function (used) {
|
154
|
+
this['used'] = used;
|
155
|
+
return this;
|
156
|
+
};
|
157
|
+
Billing.prototype.withFrozenScene = function (frozenScene) {
|
158
|
+
this['frozen_scene'] = frozenScene;
|
159
|
+
return this;
|
160
|
+
};
|
161
|
+
Object.defineProperty(Billing.prototype, "frozenScene", {
|
162
|
+
get: function () {
|
163
|
+
return this['frozen_scene'];
|
164
|
+
},
|
165
|
+
set: function (frozenScene) {
|
166
|
+
this['frozen_scene'] = frozenScene;
|
167
|
+
},
|
168
|
+
enumerable: false,
|
169
|
+
configurable: true
|
170
|
+
});
|
171
|
+
Billing.prototype.withIsMultiAz = function (isMultiAz) {
|
172
|
+
this['is_multi_az'] = isMultiAz;
|
173
|
+
return this;
|
174
|
+
};
|
175
|
+
Object.defineProperty(Billing.prototype, "isMultiAz", {
|
176
|
+
get: function () {
|
177
|
+
return this['is_multi_az'];
|
178
|
+
},
|
179
|
+
set: function (isMultiAz) {
|
180
|
+
this['is_multi_az'] = isMultiAz;
|
181
|
+
},
|
182
|
+
enumerable: false,
|
183
|
+
configurable: true
|
184
|
+
});
|
185
|
+
return Billing;
|
186
|
+
}());
|
187
|
+
exports.Billing = Billing;
|
188
|
+
/**
|
189
|
+
* @export
|
190
|
+
* @enum {string}
|
191
|
+
*/
|
192
|
+
var BillingChargingModeEnum;
|
193
|
+
(function (BillingChargingModeEnum) {
|
194
|
+
BillingChargingModeEnum["PRE_PAID"] = "pre_paid";
|
195
|
+
BillingChargingModeEnum["POST_PAID"] = "post_paid";
|
196
|
+
})(BillingChargingModeEnum = exports.BillingChargingModeEnum || (exports.BillingChargingModeEnum = {}));
|
197
|
+
/**
|
198
|
+
* @export
|
199
|
+
* @enum {string}
|
200
|
+
*/
|
201
|
+
var BillingCloudTypeEnum;
|
202
|
+
(function (BillingCloudTypeEnum) {
|
203
|
+
BillingCloudTypeEnum["PUBLIC"] = "public";
|
204
|
+
BillingCloudTypeEnum["HYBRID"] = "hybrid";
|
205
|
+
})(BillingCloudTypeEnum = exports.BillingCloudTypeEnum || (exports.BillingCloudTypeEnum = {}));
|
206
|
+
/**
|
207
|
+
* @export
|
208
|
+
* @enum {string}
|
209
|
+
*/
|
210
|
+
var BillingConsistentLevelEnum;
|
211
|
+
(function (BillingConsistentLevelEnum) {
|
212
|
+
BillingConsistentLevelEnum["APP_CONSISTENT"] = "app_consistent";
|
213
|
+
BillingConsistentLevelEnum["CRASH_CONSISTENT"] = "crash_consistent";
|
214
|
+
})(BillingConsistentLevelEnum = exports.BillingConsistentLevelEnum || (exports.BillingConsistentLevelEnum = {}));
|
215
|
+
/**
|
216
|
+
* @export
|
217
|
+
* @enum {string}
|
218
|
+
*/
|
219
|
+
var BillingObjectTypeEnum;
|
220
|
+
(function (BillingObjectTypeEnum) {
|
221
|
+
BillingObjectTypeEnum["SERVER"] = "server";
|
222
|
+
BillingObjectTypeEnum["DISK"] = "disk";
|
223
|
+
BillingObjectTypeEnum["WORKSPACE"] = "workspace";
|
224
|
+
BillingObjectTypeEnum["VMWARE"] = "vmware";
|
225
|
+
BillingObjectTypeEnum["RDS"] = "rds";
|
226
|
+
BillingObjectTypeEnum["FILE"] = "file";
|
227
|
+
})(BillingObjectTypeEnum = exports.BillingObjectTypeEnum || (exports.BillingObjectTypeEnum = {}));
|
228
|
+
/**
|
229
|
+
* @export
|
230
|
+
* @enum {string}
|
231
|
+
*/
|
232
|
+
var BillingProtectTypeEnum;
|
233
|
+
(function (BillingProtectTypeEnum) {
|
234
|
+
BillingProtectTypeEnum["BACKUP"] = "backup";
|
235
|
+
BillingProtectTypeEnum["REPLICATION"] = "replication";
|
236
|
+
BillingProtectTypeEnum["HYBRID"] = "hybrid";
|
237
|
+
})(BillingProtectTypeEnum = exports.BillingProtectTypeEnum || (exports.BillingProtectTypeEnum = {}));
|
238
|
+
/**
|
239
|
+
* @export
|
240
|
+
* @enum {string}
|
241
|
+
*/
|
242
|
+
var BillingSpecCodeEnum;
|
243
|
+
(function (BillingSpecCodeEnum) {
|
244
|
+
BillingSpecCodeEnum["VAULT_BACKUP_SERVER_NORMAL"] = "vault.backup.server.normal";
|
245
|
+
BillingSpecCodeEnum["VAULT_BACKUP_VOLUME_NORMAL"] = "vault.backup.volume.normal";
|
246
|
+
})(BillingSpecCodeEnum = exports.BillingSpecCodeEnum || (exports.BillingSpecCodeEnum = {}));
|
247
|
+
/**
|
248
|
+
* @export
|
249
|
+
* @enum {string}
|
250
|
+
*/
|
251
|
+
var BillingStatusEnum;
|
252
|
+
(function (BillingStatusEnum) {
|
253
|
+
BillingStatusEnum["AVAILABLE"] = "available";
|
254
|
+
BillingStatusEnum["LOCK"] = "lock";
|
255
|
+
BillingStatusEnum["FROZEN"] = "frozen";
|
256
|
+
BillingStatusEnum["DELETING"] = "deleting";
|
257
|
+
BillingStatusEnum["ERROR"] = "error";
|
258
|
+
})(BillingStatusEnum = exports.BillingStatusEnum || (exports.BillingStatusEnum = {}));
|
@@ -0,0 +1,119 @@
|
|
1
|
+
import { BillbingCreateExtraInfo } from './BillbingCreateExtraInfo';
|
2
|
+
export declare class BillingCreate {
|
3
|
+
private 'cloud_type'?;
|
4
|
+
private 'consistent_level';
|
5
|
+
private 'object_type';
|
6
|
+
private 'protect_type';
|
7
|
+
size: number;
|
8
|
+
private 'charging_mode'?;
|
9
|
+
private 'period_type'?;
|
10
|
+
private 'period_num'?;
|
11
|
+
private 'is_auto_renew'?;
|
12
|
+
private 'is_auto_pay'?;
|
13
|
+
private 'console_url'?;
|
14
|
+
private 'extra_info'?;
|
15
|
+
private 'is_multi_az'?;
|
16
|
+
private 'promotion_info'?;
|
17
|
+
private 'purchase_mode'?;
|
18
|
+
private 'order_id'?;
|
19
|
+
constructor(consistentLevel?: any, objectType?: any, protectType?: any, size?: any);
|
20
|
+
withCloudType(cloudType: BillingCreateCloudTypeEnum): BillingCreate;
|
21
|
+
set cloudType(cloudType: BillingCreateCloudTypeEnum | undefined);
|
22
|
+
get cloudType(): BillingCreateCloudTypeEnum | undefined;
|
23
|
+
withConsistentLevel(consistentLevel: BillingCreateConsistentLevelEnum): BillingCreate;
|
24
|
+
set consistentLevel(consistentLevel: BillingCreateConsistentLevelEnum | undefined);
|
25
|
+
get consistentLevel(): BillingCreateConsistentLevelEnum | undefined;
|
26
|
+
withObjectType(objectType: BillingCreateObjectTypeEnum): BillingCreate;
|
27
|
+
set objectType(objectType: BillingCreateObjectTypeEnum | undefined);
|
28
|
+
get objectType(): BillingCreateObjectTypeEnum | undefined;
|
29
|
+
withProtectType(protectType: BillingCreateProtectTypeEnum): BillingCreate;
|
30
|
+
set protectType(protectType: BillingCreateProtectTypeEnum | undefined);
|
31
|
+
get protectType(): BillingCreateProtectTypeEnum | undefined;
|
32
|
+
withSize(size: number): BillingCreate;
|
33
|
+
withChargingMode(chargingMode: BillingCreateChargingModeEnum): BillingCreate;
|
34
|
+
set chargingMode(chargingMode: BillingCreateChargingModeEnum | undefined);
|
35
|
+
get chargingMode(): BillingCreateChargingModeEnum | undefined;
|
36
|
+
withPeriodType(periodType: BillingCreatePeriodTypeEnum): BillingCreate;
|
37
|
+
set periodType(periodType: BillingCreatePeriodTypeEnum | undefined);
|
38
|
+
get periodType(): BillingCreatePeriodTypeEnum | undefined;
|
39
|
+
withPeriodNum(periodNum: number): BillingCreate;
|
40
|
+
set periodNum(periodNum: number | undefined);
|
41
|
+
get periodNum(): number | undefined;
|
42
|
+
withIsAutoRenew(isAutoRenew: boolean): BillingCreate;
|
43
|
+
set isAutoRenew(isAutoRenew: boolean | undefined);
|
44
|
+
get isAutoRenew(): boolean | undefined;
|
45
|
+
withIsAutoPay(isAutoPay: boolean): BillingCreate;
|
46
|
+
set isAutoPay(isAutoPay: boolean | undefined);
|
47
|
+
get isAutoPay(): boolean | undefined;
|
48
|
+
withConsoleUrl(consoleUrl: string): BillingCreate;
|
49
|
+
set consoleUrl(consoleUrl: string | undefined);
|
50
|
+
get consoleUrl(): string | undefined;
|
51
|
+
withExtraInfo(extraInfo: BillbingCreateExtraInfo): BillingCreate;
|
52
|
+
set extraInfo(extraInfo: BillbingCreateExtraInfo | undefined);
|
53
|
+
get extraInfo(): BillbingCreateExtraInfo | undefined;
|
54
|
+
withIsMultiAz(isMultiAz: boolean): BillingCreate;
|
55
|
+
set isMultiAz(isMultiAz: boolean | undefined);
|
56
|
+
get isMultiAz(): boolean | undefined;
|
57
|
+
withPromotionInfo(promotionInfo: string): BillingCreate;
|
58
|
+
set promotionInfo(promotionInfo: string | undefined);
|
59
|
+
get promotionInfo(): string | undefined;
|
60
|
+
withPurchaseMode(purchaseMode: string): BillingCreate;
|
61
|
+
set purchaseMode(purchaseMode: string | undefined);
|
62
|
+
get purchaseMode(): string | undefined;
|
63
|
+
withOrderId(orderId: string): BillingCreate;
|
64
|
+
set orderId(orderId: string | undefined);
|
65
|
+
get orderId(): string | undefined;
|
66
|
+
}
|
67
|
+
/**
|
68
|
+
* @export
|
69
|
+
* @enum {string}
|
70
|
+
*/
|
71
|
+
export declare enum BillingCreateCloudTypeEnum {
|
72
|
+
PUBLIC = "public",
|
73
|
+
HYBRID = "hybrid"
|
74
|
+
}
|
75
|
+
/**
|
76
|
+
* @export
|
77
|
+
* @enum {string}
|
78
|
+
*/
|
79
|
+
export declare enum BillingCreateConsistentLevelEnum {
|
80
|
+
APP_CONSISTENT = "app_consistent",
|
81
|
+
CRASH_CONSISTENT = "crash_consistent"
|
82
|
+
}
|
83
|
+
/**
|
84
|
+
* @export
|
85
|
+
* @enum {string}
|
86
|
+
*/
|
87
|
+
export declare enum BillingCreateObjectTypeEnum {
|
88
|
+
SERVER = "server",
|
89
|
+
DISK = "disk",
|
90
|
+
TURBO = "turbo",
|
91
|
+
WORKSPACE = "workspace",
|
92
|
+
VMWARE = "vmware",
|
93
|
+
RDS = "rds",
|
94
|
+
FILE = "file"
|
95
|
+
}
|
96
|
+
/**
|
97
|
+
* @export
|
98
|
+
* @enum {string}
|
99
|
+
*/
|
100
|
+
export declare enum BillingCreateProtectTypeEnum {
|
101
|
+
BACKUP = "backup",
|
102
|
+
REPLICATION = "replication"
|
103
|
+
}
|
104
|
+
/**
|
105
|
+
* @export
|
106
|
+
* @enum {string}
|
107
|
+
*/
|
108
|
+
export declare enum BillingCreateChargingModeEnum {
|
109
|
+
POST_PAID = "post_paid",
|
110
|
+
PRE_PAID = "pre_paid"
|
111
|
+
}
|
112
|
+
/**
|
113
|
+
* @export
|
114
|
+
* @enum {string}
|
115
|
+
*/
|
116
|
+
export declare enum BillingCreatePeriodTypeEnum {
|
117
|
+
YEAR = "year",
|
118
|
+
MONTH = "month"
|
119
|
+
}
|
@@ -0,0 +1,286 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.BillingCreatePeriodTypeEnum = exports.BillingCreateChargingModeEnum = exports.BillingCreateProtectTypeEnum = exports.BillingCreateObjectTypeEnum = exports.BillingCreateConsistentLevelEnum = exports.BillingCreateCloudTypeEnum = exports.BillingCreate = void 0;
|
4
|
+
var BillingCreate = /** @class */ (function () {
|
5
|
+
function BillingCreate(consistentLevel, objectType, protectType, size) {
|
6
|
+
this['consistent_level'] = consistentLevel;
|
7
|
+
this['object_type'] = objectType;
|
8
|
+
this['protect_type'] = protectType;
|
9
|
+
this['size'] = size;
|
10
|
+
}
|
11
|
+
BillingCreate.prototype.withCloudType = function (cloudType) {
|
12
|
+
this['cloud_type'] = cloudType;
|
13
|
+
return this;
|
14
|
+
};
|
15
|
+
Object.defineProperty(BillingCreate.prototype, "cloudType", {
|
16
|
+
get: function () {
|
17
|
+
return this['cloud_type'];
|
18
|
+
},
|
19
|
+
set: function (cloudType) {
|
20
|
+
this['cloud_type'] = cloudType;
|
21
|
+
},
|
22
|
+
enumerable: false,
|
23
|
+
configurable: true
|
24
|
+
});
|
25
|
+
BillingCreate.prototype.withConsistentLevel = function (consistentLevel) {
|
26
|
+
this['consistent_level'] = consistentLevel;
|
27
|
+
return this;
|
28
|
+
};
|
29
|
+
Object.defineProperty(BillingCreate.prototype, "consistentLevel", {
|
30
|
+
get: function () {
|
31
|
+
return this['consistent_level'];
|
32
|
+
},
|
33
|
+
set: function (consistentLevel) {
|
34
|
+
this['consistent_level'] = consistentLevel;
|
35
|
+
},
|
36
|
+
enumerable: false,
|
37
|
+
configurable: true
|
38
|
+
});
|
39
|
+
BillingCreate.prototype.withObjectType = function (objectType) {
|
40
|
+
this['object_type'] = objectType;
|
41
|
+
return this;
|
42
|
+
};
|
43
|
+
Object.defineProperty(BillingCreate.prototype, "objectType", {
|
44
|
+
get: function () {
|
45
|
+
return this['object_type'];
|
46
|
+
},
|
47
|
+
set: function (objectType) {
|
48
|
+
this['object_type'] = objectType;
|
49
|
+
},
|
50
|
+
enumerable: false,
|
51
|
+
configurable: true
|
52
|
+
});
|
53
|
+
BillingCreate.prototype.withProtectType = function (protectType) {
|
54
|
+
this['protect_type'] = protectType;
|
55
|
+
return this;
|
56
|
+
};
|
57
|
+
Object.defineProperty(BillingCreate.prototype, "protectType", {
|
58
|
+
get: function () {
|
59
|
+
return this['protect_type'];
|
60
|
+
},
|
61
|
+
set: function (protectType) {
|
62
|
+
this['protect_type'] = protectType;
|
63
|
+
},
|
64
|
+
enumerable: false,
|
65
|
+
configurable: true
|
66
|
+
});
|
67
|
+
BillingCreate.prototype.withSize = function (size) {
|
68
|
+
this['size'] = size;
|
69
|
+
return this;
|
70
|
+
};
|
71
|
+
BillingCreate.prototype.withChargingMode = function (chargingMode) {
|
72
|
+
this['charging_mode'] = chargingMode;
|
73
|
+
return this;
|
74
|
+
};
|
75
|
+
Object.defineProperty(BillingCreate.prototype, "chargingMode", {
|
76
|
+
get: function () {
|
77
|
+
return this['charging_mode'];
|
78
|
+
},
|
79
|
+
set: function (chargingMode) {
|
80
|
+
this['charging_mode'] = chargingMode;
|
81
|
+
},
|
82
|
+
enumerable: false,
|
83
|
+
configurable: true
|
84
|
+
});
|
85
|
+
BillingCreate.prototype.withPeriodType = function (periodType) {
|
86
|
+
this['period_type'] = periodType;
|
87
|
+
return this;
|
88
|
+
};
|
89
|
+
Object.defineProperty(BillingCreate.prototype, "periodType", {
|
90
|
+
get: function () {
|
91
|
+
return this['period_type'];
|
92
|
+
},
|
93
|
+
set: function (periodType) {
|
94
|
+
this['period_type'] = periodType;
|
95
|
+
},
|
96
|
+
enumerable: false,
|
97
|
+
configurable: true
|
98
|
+
});
|
99
|
+
BillingCreate.prototype.withPeriodNum = function (periodNum) {
|
100
|
+
this['period_num'] = periodNum;
|
101
|
+
return this;
|
102
|
+
};
|
103
|
+
Object.defineProperty(BillingCreate.prototype, "periodNum", {
|
104
|
+
get: function () {
|
105
|
+
return this['period_num'];
|
106
|
+
},
|
107
|
+
set: function (periodNum) {
|
108
|
+
this['period_num'] = periodNum;
|
109
|
+
},
|
110
|
+
enumerable: false,
|
111
|
+
configurable: true
|
112
|
+
});
|
113
|
+
BillingCreate.prototype.withIsAutoRenew = function (isAutoRenew) {
|
114
|
+
this['is_auto_renew'] = isAutoRenew;
|
115
|
+
return this;
|
116
|
+
};
|
117
|
+
Object.defineProperty(BillingCreate.prototype, "isAutoRenew", {
|
118
|
+
get: function () {
|
119
|
+
return this['is_auto_renew'];
|
120
|
+
},
|
121
|
+
set: function (isAutoRenew) {
|
122
|
+
this['is_auto_renew'] = isAutoRenew;
|
123
|
+
},
|
124
|
+
enumerable: false,
|
125
|
+
configurable: true
|
126
|
+
});
|
127
|
+
BillingCreate.prototype.withIsAutoPay = function (isAutoPay) {
|
128
|
+
this['is_auto_pay'] = isAutoPay;
|
129
|
+
return this;
|
130
|
+
};
|
131
|
+
Object.defineProperty(BillingCreate.prototype, "isAutoPay", {
|
132
|
+
get: function () {
|
133
|
+
return this['is_auto_pay'];
|
134
|
+
},
|
135
|
+
set: function (isAutoPay) {
|
136
|
+
this['is_auto_pay'] = isAutoPay;
|
137
|
+
},
|
138
|
+
enumerable: false,
|
139
|
+
configurable: true
|
140
|
+
});
|
141
|
+
BillingCreate.prototype.withConsoleUrl = function (consoleUrl) {
|
142
|
+
this['console_url'] = consoleUrl;
|
143
|
+
return this;
|
144
|
+
};
|
145
|
+
Object.defineProperty(BillingCreate.prototype, "consoleUrl", {
|
146
|
+
get: function () {
|
147
|
+
return this['console_url'];
|
148
|
+
},
|
149
|
+
set: function (consoleUrl) {
|
150
|
+
this['console_url'] = consoleUrl;
|
151
|
+
},
|
152
|
+
enumerable: false,
|
153
|
+
configurable: true
|
154
|
+
});
|
155
|
+
BillingCreate.prototype.withExtraInfo = function (extraInfo) {
|
156
|
+
this['extra_info'] = extraInfo;
|
157
|
+
return this;
|
158
|
+
};
|
159
|
+
Object.defineProperty(BillingCreate.prototype, "extraInfo", {
|
160
|
+
get: function () {
|
161
|
+
return this['extra_info'];
|
162
|
+
},
|
163
|
+
set: function (extraInfo) {
|
164
|
+
this['extra_info'] = extraInfo;
|
165
|
+
},
|
166
|
+
enumerable: false,
|
167
|
+
configurable: true
|
168
|
+
});
|
169
|
+
BillingCreate.prototype.withIsMultiAz = function (isMultiAz) {
|
170
|
+
this['is_multi_az'] = isMultiAz;
|
171
|
+
return this;
|
172
|
+
};
|
173
|
+
Object.defineProperty(BillingCreate.prototype, "isMultiAz", {
|
174
|
+
get: function () {
|
175
|
+
return this['is_multi_az'];
|
176
|
+
},
|
177
|
+
set: function (isMultiAz) {
|
178
|
+
this['is_multi_az'] = isMultiAz;
|
179
|
+
},
|
180
|
+
enumerable: false,
|
181
|
+
configurable: true
|
182
|
+
});
|
183
|
+
BillingCreate.prototype.withPromotionInfo = function (promotionInfo) {
|
184
|
+
this['promotion_info'] = promotionInfo;
|
185
|
+
return this;
|
186
|
+
};
|
187
|
+
Object.defineProperty(BillingCreate.prototype, "promotionInfo", {
|
188
|
+
get: function () {
|
189
|
+
return this['promotion_info'];
|
190
|
+
},
|
191
|
+
set: function (promotionInfo) {
|
192
|
+
this['promotion_info'] = promotionInfo;
|
193
|
+
},
|
194
|
+
enumerable: false,
|
195
|
+
configurable: true
|
196
|
+
});
|
197
|
+
BillingCreate.prototype.withPurchaseMode = function (purchaseMode) {
|
198
|
+
this['purchase_mode'] = purchaseMode;
|
199
|
+
return this;
|
200
|
+
};
|
201
|
+
Object.defineProperty(BillingCreate.prototype, "purchaseMode", {
|
202
|
+
get: function () {
|
203
|
+
return this['purchase_mode'];
|
204
|
+
},
|
205
|
+
set: function (purchaseMode) {
|
206
|
+
this['purchase_mode'] = purchaseMode;
|
207
|
+
},
|
208
|
+
enumerable: false,
|
209
|
+
configurable: true
|
210
|
+
});
|
211
|
+
BillingCreate.prototype.withOrderId = function (orderId) {
|
212
|
+
this['order_id'] = orderId;
|
213
|
+
return this;
|
214
|
+
};
|
215
|
+
Object.defineProperty(BillingCreate.prototype, "orderId", {
|
216
|
+
get: function () {
|
217
|
+
return this['order_id'];
|
218
|
+
},
|
219
|
+
set: function (orderId) {
|
220
|
+
this['order_id'] = orderId;
|
221
|
+
},
|
222
|
+
enumerable: false,
|
223
|
+
configurable: true
|
224
|
+
});
|
225
|
+
return BillingCreate;
|
226
|
+
}());
|
227
|
+
exports.BillingCreate = BillingCreate;
|
228
|
+
/**
|
229
|
+
* @export
|
230
|
+
* @enum {string}
|
231
|
+
*/
|
232
|
+
var BillingCreateCloudTypeEnum;
|
233
|
+
(function (BillingCreateCloudTypeEnum) {
|
234
|
+
BillingCreateCloudTypeEnum["PUBLIC"] = "public";
|
235
|
+
BillingCreateCloudTypeEnum["HYBRID"] = "hybrid";
|
236
|
+
})(BillingCreateCloudTypeEnum = exports.BillingCreateCloudTypeEnum || (exports.BillingCreateCloudTypeEnum = {}));
|
237
|
+
/**
|
238
|
+
* @export
|
239
|
+
* @enum {string}
|
240
|
+
*/
|
241
|
+
var BillingCreateConsistentLevelEnum;
|
242
|
+
(function (BillingCreateConsistentLevelEnum) {
|
243
|
+
BillingCreateConsistentLevelEnum["APP_CONSISTENT"] = "app_consistent";
|
244
|
+
BillingCreateConsistentLevelEnum["CRASH_CONSISTENT"] = "crash_consistent";
|
245
|
+
})(BillingCreateConsistentLevelEnum = exports.BillingCreateConsistentLevelEnum || (exports.BillingCreateConsistentLevelEnum = {}));
|
246
|
+
/**
|
247
|
+
* @export
|
248
|
+
* @enum {string}
|
249
|
+
*/
|
250
|
+
var BillingCreateObjectTypeEnum;
|
251
|
+
(function (BillingCreateObjectTypeEnum) {
|
252
|
+
BillingCreateObjectTypeEnum["SERVER"] = "server";
|
253
|
+
BillingCreateObjectTypeEnum["DISK"] = "disk";
|
254
|
+
BillingCreateObjectTypeEnum["TURBO"] = "turbo";
|
255
|
+
BillingCreateObjectTypeEnum["WORKSPACE"] = "workspace";
|
256
|
+
BillingCreateObjectTypeEnum["VMWARE"] = "vmware";
|
257
|
+
BillingCreateObjectTypeEnum["RDS"] = "rds";
|
258
|
+
BillingCreateObjectTypeEnum["FILE"] = "file";
|
259
|
+
})(BillingCreateObjectTypeEnum = exports.BillingCreateObjectTypeEnum || (exports.BillingCreateObjectTypeEnum = {}));
|
260
|
+
/**
|
261
|
+
* @export
|
262
|
+
* @enum {string}
|
263
|
+
*/
|
264
|
+
var BillingCreateProtectTypeEnum;
|
265
|
+
(function (BillingCreateProtectTypeEnum) {
|
266
|
+
BillingCreateProtectTypeEnum["BACKUP"] = "backup";
|
267
|
+
BillingCreateProtectTypeEnum["REPLICATION"] = "replication";
|
268
|
+
})(BillingCreateProtectTypeEnum = exports.BillingCreateProtectTypeEnum || (exports.BillingCreateProtectTypeEnum = {}));
|
269
|
+
/**
|
270
|
+
* @export
|
271
|
+
* @enum {string}
|
272
|
+
*/
|
273
|
+
var BillingCreateChargingModeEnum;
|
274
|
+
(function (BillingCreateChargingModeEnum) {
|
275
|
+
BillingCreateChargingModeEnum["POST_PAID"] = "post_paid";
|
276
|
+
BillingCreateChargingModeEnum["PRE_PAID"] = "pre_paid";
|
277
|
+
})(BillingCreateChargingModeEnum = exports.BillingCreateChargingModeEnum || (exports.BillingCreateChargingModeEnum = {}));
|
278
|
+
/**
|
279
|
+
* @export
|
280
|
+
* @enum {string}
|
281
|
+
*/
|
282
|
+
var BillingCreatePeriodTypeEnum;
|
283
|
+
(function (BillingCreatePeriodTypeEnum) {
|
284
|
+
BillingCreatePeriodTypeEnum["YEAR"] = "year";
|
285
|
+
BillingCreatePeriodTypeEnum["MONTH"] = "month";
|
286
|
+
})(BillingCreatePeriodTypeEnum = exports.BillingCreatePeriodTypeEnum || (exports.BillingCreatePeriodTypeEnum = {}));
|
@@ -0,0 +1,17 @@
|
|
1
|
+
export declare class BillingUpdate {
|
2
|
+
private 'consistent_level'?;
|
3
|
+
size?: number;
|
4
|
+
constructor();
|
5
|
+
withConsistentLevel(consistentLevel: BillingUpdateConsistentLevelEnum): BillingUpdate;
|
6
|
+
set consistentLevel(consistentLevel: BillingUpdateConsistentLevelEnum | undefined);
|
7
|
+
get consistentLevel(): BillingUpdateConsistentLevelEnum | undefined;
|
8
|
+
withSize(size: number): BillingUpdate;
|
9
|
+
}
|
10
|
+
/**
|
11
|
+
* @export
|
12
|
+
* @enum {string}
|
13
|
+
*/
|
14
|
+
export declare enum BillingUpdateConsistentLevelEnum {
|
15
|
+
APP_CONSISTENT = "app_consistent",
|
16
|
+
CRASH_CONSISTENT = "crash_consistent"
|
17
|
+
}
|