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.GContactExternalID
structure 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
:label
property.New in version 0.7.0.
- get_relation_type()¶
-
Gets the
GData.GContactExternalID
:relation-type
property.New in version 0.7.0.
- get_value()¶
- Returns:
the external ID’s value
- Return type:
Gets the
GData.GContactExternalID
:value
property.New in version 0.7.0.
- set_label(label)¶
-
Sets the
GData.GContactExternalID
:label
property to label.If label is
None
, the label will be unset. When theGData.GContactExternalID
is used in a query, however, exactly one ofGData.GContactExternalID
:relation-type
andGData.GContactExternalID
:label
must beNone
.New in version 0.7.0.
- set_relation_type(relation_type)¶
-
Sets the
GData.GContactExternalID
:relation-type
property to relation_type, such asGData.GCONTACT_EXTERNAL_ID_NETWORK
orGData.GCONTACT_EXTERNAL_ID_ACCOUNT
.If relation_type is
None
, the relation type will be unset. When theGData.GContactExternalID
is used in a query, however, exactly one ofGData.GContactExternalID
:relation-type
andGData.GContactExternalID
:label
must beNone
.New in version 0.7.0.
- set_value(value)¶
- Parameters:
value (
str
) – the new value for the external ID
Sets the
GData.GContactExternalID
:value
property 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_NETWORK
orGData.GCONTACT_EXTERNAL_ID_ACCOUNT
.For more information, see the
New in version 0.7.0.