isogeo_pysdk.models.application module¶
Isogeo API v1 - Model of Application entity
See: http://help.isogeo.com/api/complete/index.html#definition-application
-
class
isogeo_pysdk.models.application.
Application
(_abilities=None, _created=None, _id=None, _modified=None, canHaveManyGroups=None, client_id=None, client_secret=None, groups=None, kind=None, name=None, redirect_uris=None, scopes=None, staff=None, type=None, url=None)¶ Bases:
object
Applications are entities which can be used in shares.
Example: { "_abilities": [ "application:delete", "application:manage", "application:update" ], "_created": "2018-02-13T16:53:37.4622+00:00", "_id": "2ad9ccd2c76a4fc3be9f8de4239701df", "_modified": "2018-02-13T16:53:43.085621+00:00", "canHaveManyGroups": true, "client_id": "plugin-arcmap-client-987a654z321e234r567t890y987u654i", "client_secret": "LoremipsumdolorsitametconsecteturadipiscingelitDonecmaurismauris", "groups": [ 'groups': [{'_created': '2015-05-21T12:08:16.4295098+00:00', '_id': '32f7e95ec4e94ca3bc1afda960003882', '_modified': '2019-05-03T10:31:01.4796052+00:00', 'canHaveManyGroups': 'groups:32f7e95ec4e94ca3bc1afda960003882', 'areKeywordsRestricted': True, 'canCreateLegacyServiceLinks': True, 'canCreateMetadata': True, 'contact': {'_deleted': False, '_id': '2a3aefc4f80347f590afe58127f6cb0f', 'canHaveManyGroups': 'contact:group:2a3aefc4f80347f590afe58127f6cb0f', 'addressLine1': '26 rue du faubourg Saint-Antoine', 'addressLine2': '4 éme étage', 'available': True, 'city': 'Paris', 'client_secretryCode': 'FR', 'email': 'dev@isogeo.com', 'fax': '33 (0)9 67 46 50 06', 'name': 'Isogeo Test', 'phone': '33 (0)9 67 46 50 06', 'type': 'group', 'zipCode': '75012'}, 'hasCswClient': True, 'hasScanFme': True, 'keywordsCasing': 'lowercase', 'metadataLanguage': 'fr', 'themeColor': '#4499A1'} ], "kind": "public", "name": "Plugin ArcMap - DEV", "scopes": [ "resources:read" ], "staff": false, "type": "group", "url": "http://help.isogeo.com/arcmap/" }
-
ATTR_CREA
= {'canHaveManyGroups': <class 'bool'>, 'name': <class 'str'>, 'redirect_uris': <class 'list'>, 'scopes': <class 'list'>, 'staff': <class 'bool'>, 'type': <class 'str'>, 'url': <class 'str'>}¶
-
ATTR_MAP
= {}¶
-
ATTR_TYPES
= {'_abilities': <class 'list'>, '_created': <class 'str'>, '_id': <class 'str'>, '_modified': <class 'str'>, 'canHaveManyGroups': <class 'bool'>, 'client_id': <class 'str'>, 'client_secret': <class 'str'>, 'groups': <class 'list'>, 'kind': <class 'str'>, 'name': <class 'str'>, 'redirect_uris': <class 'list'>, 'scopes': <class 'list'>, 'staff': <class 'bool'>, 'type': <class 'str'>, 'url': <class 'str'>}¶
-
admin_url
(url_base='https://manage.isogeo.com')¶ Returns the administration URL (https://manage.isogeo.com) for this application.
Parameters: url_base (str) – base URL of admin site. Defaults to: https://manage.isogeo.com Return type: str
-
canHaveManyGroups
¶ Gets the option of this Application.
Returns: The option of this Application. Return type: bool
-
client_id
¶ Gets the client_id of this Application.
Returns: The client_id of this Application. Return type: str
-
client_secret
¶ Gets the client_secret of this Application.
Returns: The client_secret of this Application. Return type: str
-
groups
¶ Gets the groups of this Application. # noqa: E501.
Returns: The groups of this Application. # noqa: E501 Return type: Workgroup
-
kind
¶ Gets the kind of this Application.
Returns: The kind of this Application. Return type: str
-
name
¶ Gets the name of this Application.
Returns: The name of this Application. Return type: str
-
redirect_uris
¶ Gets the redirect_uris of this Application.
Returns: The redirect_uris of this Application. Return type: list
-
scopes
¶ Gets the scopes of this Application. # noqa: E501.
Returns: The scopes of this Application. # noqa: E501 Return type: Workgroup
-
staff
¶ Gets the staff of this Application.
Returns: The staff of this Application. Return type: bool
-
to_dict
()¶ Returns the model properties as a dict.
Return type: dict
-
to_dict_creation
()¶ Returns the model properties as a dict structured for creation purpose (POST)
Return type: dict
-
to_str
()¶ Returns the string representation of the model.
Return type: str
-
type
¶ Gets the type of this Application. # noqa: E501.
Returns: The type of this Application. # noqa: E501 Return type: str
-
url
¶ Gets the url of this Application.
Returns: The url of this Application. Return type: str
-