Label Klass

Representerar en etikett som kan ha flera lokaliserade versioner.

Konstruktor

Label(localized_labels: List[LocalizedLabel], user_localized_label: LocalizedLabel | None = None, additional_properties: Dict[str, Any] | None = None)

Parametrar

Name Description
localized_labels
Obligatorisk

Lista över LocalizedLabel-instanser.

user_localized_label

Valfri användarspecifik lokaliserad etikett.

Standardvärde: None
additional_properties

Valfri diktering av ytterligare egenskaper som ska inkluderas i webb-API-nyttolasten. Dessa sammanfogas sist och kan åsidosätta standardvärden.

Standardvärde: None

Metoder

to_dict

Konvertera till JSON-format för webb-API.

Example:


   >>> label = Label(localized_labels=[LocalizedLabel("Account", 1033)])
   >>> label.to_dict()
   {
       '@odata.type': 'Microsoft.Dynamics.CRM.Label',
       'LocalizedLabels': [
           {'@odata.type': '...', 'Label': 'Account', 'LanguageCode': 1033}
       ],
       'UserLocalizedLabel': {'@odata.type': '...', 'Label': 'Account', ...}
   }

to_dict

Konvertera till JSON-format för webb-API.

Example:


   >>> label = Label(localized_labels=[LocalizedLabel("Account", 1033)])
   >>> label.to_dict()
   {
       '@odata.type': 'Microsoft.Dynamics.CRM.Label',
       'LocalizedLabels': [
           {'@odata.type': '...', 'Label': 'Account', 'LanguageCode': 1033}
       ],
       'UserLocalizedLabel': {'@odata.type': '...', 'Label': 'Account', ...}
   }
to_dict() -> Dict[str, Any]

Attribut

additional_properties

additional_properties: Dict[str, Any] | None = None

localized_labels

localized_labels: List[LocalizedLabel]

user_localized_label

user_localized_label: LocalizedLabel | None = None