GData.AccessRule¶
- Subclasses:
Methods¶
- Inherited:
- Structs:
class |
|
|
|
|
|
|
|
|
|
|
|
|
Virtual Methods¶
- Inherited:
Properties¶
- Inherited:
Name |
Type |
Flags |
Short Description |
---|---|---|---|
r |
The last time the access rule was edited. |
||
r |
An optional authorisation key required to access this item. |
||
r/w |
The role of the person concerned by this ACL. |
||
r/w |
Specifies to whom this access rule applies. |
||
r/w |
The scope value for this access rule. |
Signals¶
- Inherited:
Fields¶
- Inherited:
Name |
Type |
Access |
Description |
---|---|---|---|
parent |
r |
Class Details¶
- class GData.AccessRule(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
All the fields in the
GData.AccessRule
structure are private and should never be accessed directly.New in version 0.3.0.
- classmethod new(id)¶
- Parameters:
- Returns:
a new
GData.AccessRule
; unref withGObject.Object.unref
()- Return type:
Creates a new
GData.AccessRule
with the given ID and default properties.New in version 0.3.0.
- get_edited()¶
- Returns:
the UNIX timestamp for the time the access rule was last edited, or -1
- Return type:
Gets the
GData.AccessRule
:edited
property. If the property is unset, -1 will be returned.New in version 0.7.0.
- get_key()¶
-
Gets the
GData.AccessRule
:key
property.New in version 0.16.0.
- get_role()¶
-
Gets the
GData.AccessRule
:role
property.New in version 0.3.0.
- get_scope()¶
- Returns:
- Return type:
Gets the
GData.AccessRule
:scope-type
andGData.AccessRule
:scope-value
properties.New in version 0.3.0.
- set_role(role)¶
-
Sets the
GData.AccessRule
:role
property to role. role must be a non-empty string, such asGData.ACCESS_ROLE_NONE
.Set role to
None
to unset the property in the access rule.New in version 0.3.0.
- set_scope(type, value)¶
-
Sets the
GData.AccessRule
:scope-type
property to type and theGData.AccessRule
:scope-value
property to value.Set scope_value to
None
to unset theGData.AccessRule
:scope-value
property in the access rule. type cannot beNone
. scope_value must beNone
if type isdefault
, and non-None
otherwise.See the
online documentation for more information.
New in version 0.3.0.
Property Details¶
- GData.AccessRule.props.edited¶
-
The last time the access rule was edited. If the rule has not been edited yet, the content indicates the time it was created.
For more information, see the Atom Publishing Protocol specification.
New in version 0.7.0.
- GData.AccessRule.props.key¶
-
An optional authorisation key required to access this item with the given scope. If set, this restricts access to those principals who have a copy of the key. The key is generated server-side and cannot be modified by the client. If no authorisation key is set (and hence none is needed for access to the item), this will be
None
.New in version 0.16.0.
- GData.AccessRule.props.role¶
-
The role of the person concerned by this ACL. By default, this can only be
GData.ACCESS_ROLE_NONE
. Services may extend it with their own namespaced roles.New in version 0.3.0.
- GData.AccessRule.props.scope_type¶
-
Specifies to whom this access rule applies. For example,
GData.ACCESS_SCOPE_USER
orGData.ACCESS_SCOPE_DEFAULT
.New in version 0.3.0.
- GData.AccessRule.props.scope_value¶
-
A value representing the user who is represented by the access rule, such as an e-mail address for users, or a domain name for domains.
This must be
None
if and only ifGData.AccessRule
:scope-type
isGData.ACCESS_SCOPE_DEFAULT
.New in version 0.3.0.