GData.DocumentsProperty¶
- Subclasses:
None
Methods¶
- Inherited:
GData.Parsable (5), GObject.Object (37), GData.Comparable (1)
- Structs:
class |
|
|
|
|
|
|
|
|
|
|
Virtual Methods¶
- Inherited:
GData.Parsable (9), GObject.Object (7), GData.Comparable (1)
Properties¶
- Inherited:
Name |
Type |
Flags |
Short Description |
---|---|---|---|
r/w/co |
ETag of the property. |
||
r/w |
The key of this property. |
||
r/w |
The value of this property. |
||
r/w |
The visibility of this property. |
Signals¶
- Inherited:
Fields¶
- Inherited:
Name |
Type |
Access |
Description |
---|---|---|---|
parent |
r |
Class Details¶
- class GData.DocumentsProperty(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
All the fields in the
GData.DocumentsProperty
structure are private and should never be accessed directly.New in version 0.17.11.
- classmethod new(key)¶
- Parameters:
key (
str
) – the property’s key- Returns:
a new
GData.DocumentsProperty
; unref withGObject.Object.unref
()- Return type:
Creates a new
GData.Entry
with the given ID and default properties.New in version 0.17.11.
- get_etag()¶
- Returns:
the property’s ETag. The ETag will never be empty; it’s either
None
or a valid ETag.- Return type:
Returns the ETag of the property.
New in version 0.17.11.
- get_key()¶
- Returns:
the property’s key
- Return type:
Returns the key of the property. This will never be
None
or an empty string (“”).New in version 0.17.11.
- get_value()¶
-
Returns the value of the property.
In the case that this value is
None
, the Property Resource corresponding to self will be deleted from the properties array on a file’s metadata, whereas in the case that it’s empty string (“”), it will be set as it is.New in version 0.17.11.
- get_visibility()¶
- Returns:
GData.DOCUMENTS_PROPERTY_VISIBILITY_PUBLIC
if theGData.DocumentsProperty
is publicly visible to other apps,GData.DOCUMENTS_PROPERTY_VISIBILITY_PRIVATE
if theGData.DocumentsProperty
is restricted to the application which created it.- Return type:
Returns the visibility status of the property.
New in version 0.17.11.
- set_value(value)¶
-
Sets
GData.DocumentsProperty
:value
to value, corresponding to the key.In the case that value is
None
, the Property Resource corresponding to self will be deleted from the properties array on a file’s metadata, whereas in the case that it’s empty string (“”), it will be set as it is.New in version 0.17.11.
- set_visibility(visibility)¶
- Parameters:
visibility (
str
) – the new visibility status of the property
Sets
GData.DocumentsProperty
:visibility
toGData.DOCUMENTS_PROPERTY_VISIBILITY_PUBLIC
for public properties andGData.DOCUMENTS_PROPERTY_VISIBILITY_PRIVATE
for private properties (default).New in version 0.17.11.
Property Details¶
- GData.DocumentsProperty.props.etag¶
- Name:
etag
- Type:
- Default Value:
- Flags:
ETag of the property.
For more information, see the Properties Resource
New in version 0.17.11.
- GData.DocumentsProperty.props.key¶
-
The key of this property.
For more information, see the Properties Resource
New in version 0.17.11.
- GData.DocumentsProperty.props.value¶
-
The value of this property. By default, it takes the an empty string (“”).
For more information, see the Properties Resource
New in version 0.17.11.
- GData.DocumentsProperty.props.visibility¶
-
The visibility status of this property. The default value of visibility is PRIVATE on a Drive Properties Resource object, hence
GData.DocumentsProperty
:visibility
isGData.DOCUMENTS_PROPERTY_VISIBILITY_PRIVATE
by default. A private property restricts its visibility to only the app which created it.For more information, see the Properties Resource
New in version 0.17.11.