MCPcopy Create free account
hub / github.com/dropbox/dropbox-sdk-python / DesktopPlatform

Class DesktopPlatform

dropbox/team.py:1334–1388  ·  view source on GitHub ↗

This class acts as a tagged union. Only one of the ``is_*`` methods will return true. To get the associated value of a tag (if one exists), use the corresponding ``get_*`` method. :ivar team.DesktopPlatform.windows: Official Windows Dropbox desktop client. :ivar team.DesktopPla

Source from the content-addressed store, hash-verified

1332DesktopClientSession_validator = bv.Struct(DesktopClientSession)
1333
1334class DesktopPlatform(bb.Union):
1335 """
1336 This class acts as a tagged union. Only one of the ``is_*`` methods will
1337 return true. To get the associated value of a tag (if one exists), use the
1338 corresponding ``get_*`` method.
1339
1340 :ivar team.DesktopPlatform.windows: Official Windows Dropbox desktop client.
1341 :ivar team.DesktopPlatform.mac: Official Mac Dropbox desktop client.
1342 :ivar team.DesktopPlatform.linux: Official Linux Dropbox desktop client.
1343 """
1344
1345 _catch_all = 'other'
1346 # Attribute is overwritten below the class definition
1347 windows = None
1348 # Attribute is overwritten below the class definition
1349 mac = None
1350 # Attribute is overwritten below the class definition
1351 linux = None
1352 # Attribute is overwritten below the class definition
1353 other = None
1354
1355 def is_windows(self):
1356 """
1357 Check if the union tag is ``windows``.
1358
1359 :rtype: bool
1360 """
1361 return self._tag == 'windows'
1362
1363 def is_mac(self):
1364 """
1365 Check if the union tag is ``mac``.
1366
1367 :rtype: bool
1368 """
1369 return self._tag == 'mac'
1370
1371 def is_linux(self):
1372 """
1373 Check if the union tag is ``linux``.
1374
1375 :rtype: bool
1376 """
1377 return self._tag == 'linux'
1378
1379 def is_other(self):
1380 """
1381 Check if the union tag is ``other``.
1382
1383 :rtype: bool
1384 """
1385 return self._tag == 'other'
1386
1387 def _process_custom_annotations(self, annotation_type, field_path, processor):
1388 super(DesktopPlatform, self)._process_custom_annotations(annotation_type, field_path, processor)
1389
1390DesktopPlatform_validator = bv.Union(DesktopPlatform)
1391

Callers 1

team.pyFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected