class CSERequest:
Structure that holds all the attributes for a Request (or a Response) to a CSE.
| Method | __post |
Post initialization actions. |
| Method | convert |
Remove the Release Version Indicator and the Vendor Information from a request if the request targets a target that only supports release 1. |
| Method | fill |
Create an originalRequest from at least some request attributes. This overwrites the internal originalRequest attribute. |
| Class Variable | coap |
CoAP Accept Option media type. |
| Class Variable | credentials |
Request credentials for HTTP, WebSockets etc. |
| Class Variable | csi |
The CSE-ID of the target's hosting CSI. Might not be present in a request. Based on the value of to. |
| Class Variable | ct |
Content Serialization Type. |
| Class Variable | ec |
Event Category. |
| Class Variable | fc |
Filter Criteria complex structure. |
| Class Variable | http |
http Accept header media type. |
| Class Variable | id |
Target resource ID. Might be structured or unstructured. Based on the value of to. |
| Class Variable | ma |
maxAge |
| Class Variable | oet |
Operation Execution Time in ISO8901 format or as ms (X-M2M-OET). |
| Class Variable | op |
Request Operation. |
| Class Variable | original |
The request's original data. |
| Class Variable | original |
The original originator of the request, as received in the request. This is used to keep track of the original originator, even if the request is forwarded or processed internally. |
| Class Variable | originator |
Request originator (from, X-M2M-Origin). |
| Class Variable | ot |
Originating Timestamp in ISO8901 format. |
| Class Variable | pc |
The request's primitive content as a dictionary. |
| Class Variable | rcn |
Result Content Type. |
| Class Variable | rp |
Result Persistence. |
| Class Variable | rq |
Whether the request is authenticated. See TS-0003, clause 7.1.2. |
| Class Variable | rqet |
Request Expiration Timestamp in ISO8901 format (X-M2M-RET). |
| Class Variable | rqi |
Request Identifier (X-M2M-RI). |
| Class Variable | rset |
Result Expiration Time in ISO8901 format or as ms (X-M2M-RST). |
| Class Variable | rtu |
The notificationURI element of the Response Type parameter(X-M2M-RTU). |
| Class Variable | rvi |
Release Version Identifier (X-M2M-RVI). |
| Class Variable | selected |
Selected attributes that filter the resource attributes in the response. This list refers to the resource attributes, ie. one level below the resource. |
| Class Variable | spid |
The Service Provider ID of the target's hosting CSI. Might not be present in a request. Based on the value of to. |
| Class Variable | sqi |
Semantic Query Indicator |
| Class Variable | srn |
The target's structured resource ID. Might not be present in a request. Based on the value of to. |
| Class Variable | to |
The request's original target. |
| Class Variable | top |
The top element of the request or response. |
| Class Variable | ty |
Resource type. |
| Class Variable | vsi |
Vendor Information (X-M2M-VSI). |
| Instance Variable | original |
The original request after dissection as a dictionary. |
| Class Variable | _attribute |
List of attribute names if this is a partial request. Otherwise not set. |
| Class Variable | _direct |
The direct URL of the request. |
| Class Variable | _ma |
maxAge duration converted |
| Class Variable | _outgoing |
Whether this is a request sent by the CSE. |
| Class Variable | _rpts |
Result Persistence (rp) as a timestamp. |
| Class Variable | _rqet |
Request Expiration Timestamp as UTC-based timestamp (internal). |
| Class Variable | _rset |
Result Expiration Timestamp as UTC-based timestamp (internal). |
| Instance Variable | _ot |
The timestamp when this request object was created. |
Remove the Release Version Indicator and the Vendor Information from a request if the request targets a target that only supports release 1.
| Parameters | |
targetstr | The target's supported release version. |
| Returns | |
CSERequest | A deep copy of the request, with the fields removed or set to None. |
Create an originalRequest from at least some request attributes. This overwrites the internal originalRequest attribute.
The CSE-ID of the target's hosting CSI. Might not be present in a request. Based on the value of to.
The original originator of the request, as received in the request. This is used to keep track of the original originator, even if the request is forwarded or processed internally.
Selected attributes that filter the resource attributes in the response. This list refers to the resource attributes, ie. one level below the resource.
The Service Provider ID of the target's hosting CSI. Might not be present in a request. Based on the value of to.