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.AccessRulestructure 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.AccessRulewith 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:editedproperty. If the property is unset, -1 will be returned.New in version 0.7.0.
- get_key()¶
-
Gets the
GData.AccessRule:keyproperty.New in version 0.16.0.
- get_role()¶
-
Gets the
GData.AccessRule:roleproperty.New in version 0.3.0.
- get_scope()¶
- Returns:
- Return type:
Gets the
GData.AccessRule:scope-typeandGData.AccessRule:scope-valueproperties.New in version 0.3.0.
- set_role(role)¶
-
Sets the
GData.AccessRule:roleproperty to role. role must be a non-empty string, such asGData.ACCESS_ROLE_NONE.Set role to
Noneto unset the property in the access rule.New in version 0.3.0.
- set_scope(type, value)¶
-
Sets the
GData.AccessRule:scope-typeproperty to type and theGData.AccessRule:scope-valueproperty to value.Set scope_value to
Noneto unset theGData.AccessRule:scope-valueproperty in the access rule. type cannot beNone. scope_value must beNoneif type isdefault, and non-Noneotherwise.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_USERorGData.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
Noneif and only ifGData.AccessRule:scope-typeisGData.ACCESS_SCOPE_DEFAULT.New in version 0.3.0.