kingsoftcloud-sdk-python 1.5.8.40__py2.py3-none-any.whl → 1.5.8.42__py2.py3-none-any.whl

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.
@@ -2377,3 +2377,26 @@ class EpcClient(AbstractClient):
2377
2377
  raise KsyunSDKException(e.message, e.message)
2378
2378
 
2379
2379
 
2380
+ def DescribeUserData(self, request):
2381
+ """查询自定义脚本
2382
+ :param request: Request instance for DescribeUserData.
2383
+ :type request: :class:`ksyun.client.epc.v20151101.models.DescribeUserDataRequest`
2384
+ """
2385
+ try:
2386
+ params = request._serialize()
2387
+ body = self.call_judge("DescribeUserData", params, "application/x-www-form-urlencoded")
2388
+ response = json.loads(body)
2389
+ if "Error" not in response:
2390
+ return body
2391
+ else:
2392
+ code = response["Error"]["Code"]
2393
+ message = response["Error"]["Message"]
2394
+ req_id = response["RequestId"]
2395
+ raise KsyunSDKException(code, message, req_id)
2396
+ except Exception as e:
2397
+ if isinstance(e, KsyunSDKException):
2398
+ raise
2399
+ else:
2400
+ raise KsyunSDKException(e.message, e.message)
2401
+
2402
+
@@ -4198,3 +4198,19 @@ class DescribeSoUserDataRequest(AbstractModel):
4198
4198
  self.InstanceId = params.get("InstanceId")
4199
4199
 
4200
4200
 
4201
+ class DescribeUserDataRequest(AbstractModel):
4202
+ """DescribeUserData请求参数结构体
4203
+ """
4204
+
4205
+ def __init__(self):
4206
+ r"""查询自定义脚本
4207
+ :param HostId: 实例ID
4208
+ :type PathPrefix: String
4209
+ """
4210
+ self.HostId = None
4211
+
4212
+ def _deserialize(self, params):
4213
+ if params.get("HostId"):
4214
+ self.HostId = params.get("HostId")
4215
+
4216
+