MethodResponse Class
Represents a response to a direct method.
Initializer for MethodResponse.
- Inheritance
-
builtins.objectMethodResponse
Constructor
MethodResponse(request_id, status, payload=None)
Parameters
Name | Description |
---|---|
request_id
Required
|
The request id of the MethodRequest being responded to. |
status
Required
|
The status of the execution of the MethodRequest. |
payload
|
The JSON payload to be sent with the response. (OPTIONAL) Default value: None
|
Variables
Name | Description |
---|---|
request_id
|
The request id of the MethodRequest being responded to. |
status
|
The status of the execution of the MethodRequest. |
payload
|
The JSON payload to be sent with the response. |
Methods
create_from_method_request |
Factory method for creating a MethodResponse from a MethodRequest. |
create_from_method_request
Factory method for creating a MethodResponse from a MethodRequest.
create_from_method_request(method_request, status, payload=None)
Parameters
Name | Description |
---|---|
method_request
Required
|
<xref:MethodRequest.>
The MethodRequest object to respond to. |
status
Required
|
The status of the execution of the MethodRequest. |
payload
|
Default value: None
|
GitHub에서 Microsoft와 공동 작업
이 콘텐츠의 원본은 GitHub에서 찾을 수 있으며, 여기서 문제와 끌어오기 요청을 만들고 검토할 수도 있습니다. 자세한 내용은 참여자 가이드를 참조하세요.
Azure SDK for Python