GData.GContactExternalID¶
- 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 |
A free-form string that identifies the type of external ID. |
||
r/w |
A programmatic value that identifies the type of external ID. |
||
r/w |
The value of the external ID. |
Signals¶
- Inherited:
Fields¶
- Inherited:
Name |
Type |
Access |
Description |
|---|---|---|---|
parent |
r |
Class Details¶
- class GData.GContactExternalID(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
All the fields in the
GData.GContactExternalIDstructure are private and should never be accessed directly.New in version 0.7.0.
- classmethod new(value, relation_type, label)¶
- Parameters:
- Returns:
a new
GData.GContactExternalID; unref withGObject.Object.unref()- Return type:
Creates a new
GData.GContactExternalID. More information is available in the gContact specification.Exactly one of relation_type and label should be provided; the other must be
None.New in version 0.7.0.
- get_label()¶
-
Gets the
GData.GContactExternalID:labelproperty.New in version 0.7.0.
- get_relation_type()¶
-
Gets the
GData.GContactExternalID:relation-typeproperty.New in version 0.7.0.
- get_value()¶
- Returns:
the external ID’s value
- Return type:
Gets the
GData.GContactExternalID:valueproperty.New in version 0.7.0.
- set_label(label)¶
-
Sets the
GData.GContactExternalID:labelproperty to label.If label is
None, the label will be unset. When theGData.GContactExternalIDis used in a query, however, exactly one ofGData.GContactExternalID:relation-typeandGData.GContactExternalID:labelmust beNone.New in version 0.7.0.
- set_relation_type(relation_type)¶
-
Sets the
GData.GContactExternalID:relation-typeproperty to relation_type, such asGData.GCONTACT_EXTERNAL_ID_NETWORKorGData.GCONTACT_EXTERNAL_ID_ACCOUNT.If relation_type is
None, the relation type will be unset. When theGData.GContactExternalIDis used in a query, however, exactly one ofGData.GContactExternalID:relation-typeandGData.GContactExternalID:labelmust beNone.New in version 0.7.0.
- set_value(value)¶
- Parameters:
value (
str) – the new value for the external ID
Sets the
GData.GContactExternalID:valueproperty to value.New in version 0.7.0.
Property Details¶
- GData.GContactExternalID.props.label¶
-
A free-form string that identifies the type of external ID. It is mutually exclusive with
GData.GContactExternalID:relation-type.For more information, see the
New in version 0.7.0.
- GData.GContactExternalID.props.relation_type¶
-
A programmatic value that identifies the type of external ID. It is mutually exclusive with
GData.GContactExternalID:label. Examples areGData.GCONTACT_EXTERNAL_ID_NETWORKorGData.GCONTACT_EXTERNAL_ID_ACCOUNT.For more information, see the
New in version 0.7.0.