EDataServer.WebDAVResource¶
Fields¶
| Name | Type | Access | Description | 
|---|---|---|---|
| color | str | r/w | |
| content_length | int | r/w | |
| content_type | str | r/w | |
| creation_date | int | r/w | |
| description | str | r/w | |
| display_name | str | r/w | |
| etag | str | r/w | |
| href | str | r/w | |
| kind | EDataServer.WebDAVResourceKind | r/w | |
| last_modified | int | r/w | |
| supports | int | r/w | 
Methods¶
| class | free(ptr) | 
| class | new(kind, supports, href, etag, display_name, content_type, content_length, creation_date, last_modified, description, color) | 
| copy() | 
Details¶
- 
class EDataServer.WebDAVResource¶
- 
classmethod free(ptr)¶
- Parameters: - ptr ( - objector- None) – an- EDataServer.WebDAVResource- Frees an - EDataServer.WebDAVResourcepreviously created with- EDataServer.WebDAVResource.new() or- EDataServer.WebDAVResource.copy(). The function does nothing, if ptr is- None.- New in version 3.26. 
 - 
classmethod new(kind, supports, href, etag, display_name, content_type, content_length, creation_date, last_modified, description, color)¶
- Parameters: - kind (EDataServer.WebDAVResourceKind) – anEDataServer.WebDAVResourceKindof the resource
- supports (int) – bit-or ofEDataServer.WebDAVResourceSupportsvalues
- href (str) – href of the resource
- etag (strorNone) – optional ETag of the resource, orNone
- display_name (strorNone) – optional display name of the resource, orNone
- content_type (strorNone) – optional Content-Type of the resource, orNone
- content_length (int) – optional Content-Length of the resource, or 0
- creation_date (int) – optional date of creation of the resource, or 0
- last_modified (int) – optional last modified time of the resource, or 0
- description (strorNone) – optional description of the resource, orNone
- color (strorNone) – optional color of the resource, orNone
 - Returns: - A newly created - EDataServer.WebDAVResource, prefilled with given values. Free it with- EDataServer.WebDAVResource.free(), when no longer needed.- Return type: - Some values of the resource are not always valid, depending on the kind, but also whether server stores such values and whether it had been asked for them to be fetched. - The etag for - EDataServer.WebDAVResourceKind.COLLECTIONcan be a change tag instead.- New in version 3.26. 
- kind (
 - 
copy()¶
- Returns: - A new - EDataServer.WebDAVResourceprefilled with the same values as self, or- None, when self is- None. Free it with- EDataServer.WebDAVResource.free(), when no longer needed.- Return type: - EDataServer.WebDAVResource- New in version 3.26. 
 
- 
classmethod