Revision d914c76f lib/rapi/client.py
b/lib/rapi/client.py | ||
---|---|---|
504 | 504 |
def RedistributeConfig(self): |
505 | 505 |
"""Tells the cluster to redistribute its configuration files. |
506 | 506 |
|
507 |
@rtype: string |
|
507 | 508 |
@return: job id |
508 | 509 |
|
509 | 510 |
""" |
... | ... | |
561 | 562 |
@param tags: tags to delete |
562 | 563 |
@type dry_run: bool |
563 | 564 |
@param dry_run: whether to perform a dry run |
565 |
@rtype: string |
|
566 |
@return: job id |
|
564 | 567 |
|
565 | 568 |
""" |
566 | 569 |
query = [("tag", t) for t in tags] |
... | ... | |
794 | 797 |
@param instance: Instance name |
795 | 798 |
@type ignore_size: bool |
796 | 799 |
@param ignore_size: Whether to ignore recorded size |
800 |
@rtype: string |
|
797 | 801 |
@return: job id |
798 | 802 |
|
799 | 803 |
""" |
... | ... | |
810 | 814 |
|
811 | 815 |
@type instance: string |
812 | 816 |
@param instance: Instance name |
817 |
@rtype: string |
|
813 | 818 |
@return: job id |
814 | 819 |
|
815 | 820 |
""" |
... | ... | |
891 | 896 |
@param tags: tags to delete |
892 | 897 |
@type dry_run: bool |
893 | 898 |
@param dry_run: whether to perform a dry run |
899 |
@rtype: string |
|
900 |
@return: job id |
|
894 | 901 |
|
895 | 902 |
""" |
896 | 903 |
query = [("tag", t) for t in tags] |
... | ... | |
914 | 921 |
while re-assembling disks (in hard-reboot mode only) |
915 | 922 |
@type dry_run: bool |
916 | 923 |
@param dry_run: whether to perform a dry run |
924 |
@rtype: string |
|
925 |
@return: job id |
|
917 | 926 |
|
918 | 927 |
""" |
919 | 928 |
query = [] |
... | ... | |
935 | 944 |
@param instance: the instance to shut down |
936 | 945 |
@type dry_run: bool |
937 | 946 |
@param dry_run: whether to perform a dry run |
947 |
@rtype: string |
|
948 |
@return: job id |
|
938 | 949 |
|
939 | 950 |
""" |
940 | 951 |
query = [] |
... | ... | |
952 | 963 |
@param instance: the instance to start up |
953 | 964 |
@type dry_run: bool |
954 | 965 |
@param dry_run: whether to perform a dry run |
966 |
@rtype: string |
|
967 |
@return: job id |
|
955 | 968 |
|
956 | 969 |
""" |
957 | 970 |
query = [] |
... | ... | |
973 | 986 |
current operating system will be installed again |
974 | 987 |
@type no_startup: bool |
975 | 988 |
@param no_startup: Whether to start the instance automatically |
989 |
@rtype: string |
|
990 |
@return: job id |
|
976 | 991 |
|
977 | 992 |
""" |
978 | 993 |
if _INST_REINSTALL_REQV1 in self.GetFeatures(): |
... | ... | |
1103 | 1118 |
@param mode: Migration mode |
1104 | 1119 |
@type cleanup: bool |
1105 | 1120 |
@param cleanup: Whether to clean up a previously failed migration |
1121 |
@rtype: string |
|
1122 |
@return: job id |
|
1106 | 1123 |
|
1107 | 1124 |
""" |
1108 | 1125 |
body = {} |
... | ... | |
1128 | 1145 |
@param ip_check: Whether to ensure instance's IP address is inactive |
1129 | 1146 |
@type name_check: bool |
1130 | 1147 |
@param name_check: Whether to ensure instance's name is resolvable |
1148 |
@rtype: string |
|
1149 |
@return: job id |
|
1131 | 1150 |
|
1132 | 1151 |
""" |
1133 | 1152 |
body = { |
... | ... | |
1149 | 1168 |
|
1150 | 1169 |
@type instance: string |
1151 | 1170 |
@param instance: Instance name |
1171 |
@rtype: dict |
|
1172 |
@return: dictionary containing information about instance's console |
|
1152 | 1173 |
|
1153 | 1174 |
""" |
1154 | 1175 |
return self._SendRequest(HTTP_GET, |
... | ... | |
1223 | 1244 |
|
1224 | 1245 |
@type job_id: string |
1225 | 1246 |
@param job_id: Job ID for which to wait |
1247 |
@return: C{None} if no changes have been detected and a dict with two keys, |
|
1248 |
C{job_info} and C{log_entries} otherwise. |
|
1249 |
@rtype: dict |
|
1226 | 1250 |
|
1227 | 1251 |
""" |
1228 | 1252 |
body = { |
... | ... | |
1242 | 1266 |
@param job_id: id of the job to delete |
1243 | 1267 |
@type dry_run: bool |
1244 | 1268 |
@param dry_run: whether to perform a dry run |
1269 |
@rtype: tuple |
|
1270 |
@return: tuple containing the result, and a message (bool, string) |
|
1245 | 1271 |
|
1246 | 1272 |
""" |
1247 | 1273 |
query = [] |
... | ... | |
1676 | 1702 |
@type fields: list of string |
1677 | 1703 |
@param fields: Requested fields |
1678 | 1704 |
@type filter_: None or list |
1679 |
@param filter_ Query filter |
|
1705 |
@param filter_: Query filter
|
|
1680 | 1706 |
|
1681 | 1707 |
@rtype: string |
1682 | 1708 |
@return: job id |
Also available in: Unified diff