@@ -1149,11 +1149,9 @@ def stop(self, terminate=True, force_stop=False):
11491149
11501150 This operation is only valid for a managed cluster.
11511151
1152- :param terminate: whether to delete the cluster after stopping it
1153- :type terminate: bool
1154- :param force_stop: whether to try to force stop the cluster,
1152+ :param bool terminate: whether to delete the cluster after stopping it
1153+ :param bool force_stop: whether to try to force stop the cluster,
11551154 useful if DSS expects the cluster to already be stopped
1156- :type force_stop: bool
11571155 """
11581156 resp = self .client ._perform_json (
11591157 "POST" , "/admin/clusters/%s/actions/stop" % (self .cluster_id ),
@@ -1172,9 +1170,8 @@ def kubectl_command(self, args):
11721170
11731171 Note: this call requires an API key with DSS instance admin rights
11741172
1175- :param args: the arguments to pass to kubectl (without the "kubectl")
1176- :type args: str
1177- :return: a dict containing the return value, output, and possible error output of the command
1173+ :param str args: the arguments to pass to kubectl (without the "kubectl")
1174+ :return: a dict containing the return value, standard output, and standard error of the command
11781175 :rtype: dict
11791176 """
11801177 return self .client ._perform_json (
@@ -1187,15 +1184,11 @@ def delete_finished_jobs(self, delete_failed=False, namespace="", label_filter="
11871184
11881185 This operation is only valid for a Kubernetes cluster.
11891186
1190- :param delete_failed: if True, delete both completed and failed jobs, otherwise only delete completed jobs
1191- :type delete_failed: bool
1192- :param namespace: the namespace in which to delete the jobs
1193- :type namespace: str
1194- :param label_filter: delete only jobs matching a label filter
1195- :type label_filter: str
1196- :param dry_run: if True, execute the command as a "dry run"
1197- :type dry_run: bool
1198- :return: a dict containing the return value, output, and possible error output of the command
1187+ :param bool delete_failed: if True, delete both completed and failed jobs, otherwise only delete completed jobs
1188+ :param str namespace: the namespace in which to delete the jobs
1189+ :param str label_filter: delete only jobs matching a label filter
1190+ :param bool dry_run: if True, execute the command as a "dry run"
1191+ :return: a dict containing the return value, standard output, and standard error of the command
11991192 :rtype: dict
12001193 """
12011194 return self .client ._perform_json (
@@ -1208,13 +1201,10 @@ def delete_succeeded_and_failed_pods(self, namespace="", label_filter="", dry_ru
12081201
12091202 This operation is only valid for a Kubernetes cluster.
12101203
1211- :param namespace: the namespace in which to delete the pods
1212- :type namespace: str
1213- :param label_filter: delete only pods matching a label filter
1214- :type label_filter: str
1215- :param dry_run: if True, execute the command as a "dry run"
1216- :type dry_run: bool
1217- :return: a dict containing the return value, output, and possible error output of the command
1204+ :param str namespace: the namespace in which to delete the pods
1205+ :param str label_filter: delete only pods matching a label filter
1206+ :param bool dry_run: if True, execute the command as a "dry run"
1207+ :return: a dict containing the return value, standard output, and standard error of the command
12181208 :rtype: dict
12191209 """
12201210 return self .client ._perform_json (
@@ -1227,13 +1217,10 @@ def delete_all_pods(self, namespace="", label_filter="", dry_run=False):
12271217
12281218 This operation is only valid for a Kubernetes cluster.
12291219
1230- :param namespace: the namespace in which to delete the pods
1231- :type namespace: str
1232- :param label_filter: delete only pods matching a label filter
1233- :type label_filter: str
1234- :param dry_run: if True, execute the command as a "dry run"
1235- :type dry_run: bool
1236- :return: a dict containing the return value, output, and possible error output of the command
1220+ :param str namespace: the namespace in which to delete the pods
1221+ :param str label_filter: delete only pods matching a label filter
1222+ :param bool dry_run: if True, execute the command as a "dry run"
1223+ :return: a dict containing the return value, standard output, and standard error of the command
12371224 :rtype: dict
12381225 """
12391226 return self .client ._perform_json (
0 commit comments