@longvansoftware/service-js-client 2.7.5 → 2.7.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -28,3 +28,4 @@ export declare const GET_COMPUTING_WAIT_REVOKE: (fields?: string[]) => DocumentN
|
|
|
28
28
|
export declare const GET_STOREGE_MAPPING_FOR_DC: DocumentNode;
|
|
29
29
|
export declare const GET_COMPUTINGS_DYNAMIC: (fields?: string[]) => DocumentNode;
|
|
30
30
|
export declare const COMPUTING_DETAIL_DYNAMIC: (fields?: string[]) => DocumentNode;
|
|
31
|
+
export declare const IS_TEMPLATE_SUPPORT_EXTEND_DISK_AUTO: DocumentNode;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.COMPUTING_DETAIL_DYNAMIC = exports.GET_COMPUTINGS_DYNAMIC = exports.GET_STOREGE_MAPPING_FOR_DC = exports.GET_COMPUTING_WAIT_REVOKE = exports.GET_CONSOLE = exports.GET_RESOUCE_POOL_BY_SERVICE = exports.GET_AVAILABLE_STORAGES_FOR_DC = exports.GET_AVAILABLE_SUBNET_IPS_BY_RESOURCEPOLL_ID = exports.GET_TEMPLATE = exports.GET_PORT_NATS_BY_SERVICE_ID = exports.GET_EDGES = exports.GET_COMPUTING_BY_SERVICE = exports.GET_COMPUTING_BY_CLUSTER = exports.GET_CLUSTER = exports.GET_CLUSTERS = exports.GET_LAB_INSTANCE = exports.GET_COMPUTINGS = exports.BACKUP_POINT = exports.DISK_USAGE_DATE_RANGE = exports.NETWORK_USAGE_DATE_RANGE = exports.CPU_USAGE_DATE_RANGE = exports.RAM_USAGE_DATE_RANGE = exports.DISK_USAGE_START_TIME = exports.NETWORK_USAGE_START_TIME = exports.CPU_USAGE_START_TIME = exports.RAM_USAGE_START_TIME = exports.SNAP_SHOTS = exports.PORTNATS = exports.COMPUTING_DETAIL = void 0;
|
|
3
|
+
exports.IS_TEMPLATE_SUPPORT_EXTEND_DISK_AUTO = exports.COMPUTING_DETAIL_DYNAMIC = exports.GET_COMPUTINGS_DYNAMIC = exports.GET_STOREGE_MAPPING_FOR_DC = exports.GET_COMPUTING_WAIT_REVOKE = exports.GET_CONSOLE = exports.GET_RESOUCE_POOL_BY_SERVICE = exports.GET_AVAILABLE_STORAGES_FOR_DC = exports.GET_AVAILABLE_SUBNET_IPS_BY_RESOURCEPOLL_ID = exports.GET_TEMPLATE = exports.GET_PORT_NATS_BY_SERVICE_ID = exports.GET_EDGES = exports.GET_COMPUTING_BY_SERVICE = exports.GET_COMPUTING_BY_CLUSTER = exports.GET_CLUSTER = exports.GET_CLUSTERS = exports.GET_LAB_INSTANCE = exports.GET_COMPUTINGS = exports.BACKUP_POINT = exports.DISK_USAGE_DATE_RANGE = exports.NETWORK_USAGE_DATE_RANGE = exports.CPU_USAGE_DATE_RANGE = exports.RAM_USAGE_DATE_RANGE = exports.DISK_USAGE_START_TIME = exports.NETWORK_USAGE_START_TIME = exports.CPU_USAGE_START_TIME = exports.RAM_USAGE_START_TIME = exports.SNAP_SHOTS = exports.PORTNATS = exports.COMPUTING_DETAIL = void 0;
|
|
4
4
|
const graphql_tag_1 = require("graphql-tag");
|
|
5
5
|
exports.COMPUTING_DETAIL = (0, graphql_tag_1.gql) `
|
|
6
6
|
query ComputingDetail($computingId: String!, $serviceId: String) {
|
|
@@ -602,3 +602,8 @@ const COMPUTING_DETAIL_DYNAMIC = (fields = []) => {
|
|
|
602
602
|
`;
|
|
603
603
|
};
|
|
604
604
|
exports.COMPUTING_DETAIL_DYNAMIC = COMPUTING_DETAIL_DYNAMIC;
|
|
605
|
+
exports.IS_TEMPLATE_SUPPORT_EXTEND_DISK_AUTO = (0, graphql_tag_1.gql) `
|
|
606
|
+
query IsTemplateSupportExtendDiskAuto($templateId: String!, $diskIndex: Int!) {
|
|
607
|
+
isTemplateSupportExtendDiskAuto(templateId: $templateId, diskIndex: $diskIndex)
|
|
608
|
+
}
|
|
609
|
+
`;
|
|
@@ -68,4 +68,5 @@ export declare class ComputingService extends Service {
|
|
|
68
68
|
addDisk(computingId: string, size: number, unit: string, datastoreId: string): Promise<any>;
|
|
69
69
|
extendDisk(computingId: string): Promise<any>;
|
|
70
70
|
resizeDisk(computingId: string, diskIndex: number, size: number, unit: string): Promise<any>;
|
|
71
|
+
isTemplateSupportExtendDiskAuto(templateId: string, diskIndex: number): Promise<any>;
|
|
71
72
|
}
|
|
@@ -1048,5 +1048,22 @@ class ComputingService extends serviceSDK_1.Service {
|
|
|
1048
1048
|
}
|
|
1049
1049
|
});
|
|
1050
1050
|
}
|
|
1051
|
+
isTemplateSupportExtendDiskAuto(templateId, diskIndex) {
|
|
1052
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1053
|
+
const query = queries_1.IS_TEMPLATE_SUPPORT_EXTEND_DISK_AUTO;
|
|
1054
|
+
const variables = {
|
|
1055
|
+
templateId,
|
|
1056
|
+
diskIndex
|
|
1057
|
+
};
|
|
1058
|
+
try {
|
|
1059
|
+
const response = yield this.graphqlQueryV2(query, variables);
|
|
1060
|
+
return response.isTemplateSupportExtendDiskAuto;
|
|
1061
|
+
}
|
|
1062
|
+
catch (error) {
|
|
1063
|
+
console.log(`Error in isTemplateSupportExtendDiskAuto: ${error}`);
|
|
1064
|
+
throw error;
|
|
1065
|
+
}
|
|
1066
|
+
});
|
|
1067
|
+
}
|
|
1051
1068
|
}
|
|
1052
1069
|
exports.ComputingService = ComputingService;
|