repo
stringlengths
7
55
path
stringlengths
4
127
func_name
stringlengths
1
88
original_string
stringlengths
75
19.8k
language
stringclasses
1 value
code
stringlengths
75
19.8k
code_tokens
list
docstring
stringlengths
3
17.3k
docstring_tokens
list
sha
stringlengths
40
40
url
stringlengths
87
242
partition
stringclasses
1 value
Esri/ArcREST
src/arcrest/manageorg/_portals.py
Portal.featureServers
def featureServers(self): """gets the hosting feature AGS Server""" if self.urls == {}: return {} featuresUrls = self.urls['urls']['features'] if 'https' in featuresUrls: res = featuresUrls['https'] elif 'http' in featuresUrls: res = featuresU...
python
def featureServers(self): """gets the hosting feature AGS Server""" if self.urls == {}: return {} featuresUrls = self.urls['urls']['features'] if 'https' in featuresUrls: res = featuresUrls['https'] elif 'http' in featuresUrls: res = featuresU...
[ "def", "featureServers", "(", "self", ")", ":", "if", "self", ".", "urls", "==", "{", "}", ":", "return", "{", "}", "featuresUrls", "=", "self", ".", "urls", "[", "'urls'", "]", "[", "'features'", "]", "if", "'https'", "in", "featuresUrls", ":", "res...
gets the hosting feature AGS Server
[ "gets", "the", "hosting", "feature", "AGS", "Server" ]
ab240fde2b0200f61d4a5f6df033516e53f2f416
https://github.com/Esri/ArcREST/blob/ab240fde2b0200f61d4a5f6df033516e53f2f416/src/arcrest/manageorg/_portals.py#L1000-L1028
train
Esri/ArcREST
src/arcrest/manageorg/_portals.py
Portal.update
def update(self, updatePortalParameters, clearEmptyFields=False): """ The Update operation allows administrators only to update the organization information such as name, description, thumbnail, and featured groups. Inputs: updatePortalPa...
python
def update(self, updatePortalParameters, clearEmptyFields=False): """ The Update operation allows administrators only to update the organization information such as name, description, thumbnail, and featured groups. Inputs: updatePortalPa...
[ "def", "update", "(", "self", ",", "updatePortalParameters", ",", "clearEmptyFields", "=", "False", ")", ":", "url", "=", "self", ".", "root", "+", "\"/update\"", "params", "=", "{", "\"f\"", ":", "\"json\"", ",", "\"clearEmptyFields\"", ":", "clearEmptyFields...
The Update operation allows administrators only to update the organization information such as name, description, thumbnail, and featured groups. Inputs: updatePortalParamters - parameter.PortalParameters object that holds information to update clearEmptyFields - boolean t...
[ "The", "Update", "operation", "allows", "administrators", "only", "to", "update", "the", "organization", "information", "such", "as", "name", "description", "thumbnail", "and", "featured", "groups", "." ]
ab240fde2b0200f61d4a5f6df033516e53f2f416
https://github.com/Esri/ArcREST/blob/ab240fde2b0200f61d4a5f6df033516e53f2f416/src/arcrest/manageorg/_portals.py#L1118-L1146
train
Esri/ArcREST
src/arcrest/manageorg/_portals.py
Portal.updateUserRole
def updateUserRole(self, user, role): """ The Update User Role operation allows the administrator of an org anization to update the role of a user within a portal. Inputs: role - Sets the user's role. Roles are t...
python
def updateUserRole(self, user, role): """ The Update User Role operation allows the administrator of an org anization to update the role of a user within a portal. Inputs: role - Sets the user's role. Roles are t...
[ "def", "updateUserRole", "(", "self", ",", "user", ",", "role", ")", ":", "url", "=", "self", ".", "_url", "+", "\"/updateuserrole\"", "params", "=", "{", "\"f\"", ":", "\"json\"", ",", "\"user\"", ":", "user", ",", "\"role\"", ":", "role", "}", "retur...
The Update User Role operation allows the administrator of an org anization to update the role of a user within a portal. Inputs: role - Sets the user's role. Roles are the following: org_user - Ability to add items, create groups, and ...
[ "The", "Update", "User", "Role", "operation", "allows", "the", "administrator", "of", "an", "org", "anization", "to", "update", "the", "role", "of", "a", "user", "within", "a", "portal", "." ]
ab240fde2b0200f61d4a5f6df033516e53f2f416
https://github.com/Esri/ArcREST/blob/ab240fde2b0200f61d4a5f6df033516e53f2f416/src/arcrest/manageorg/_portals.py#L1148-L1180
train
Esri/ArcREST
src/arcrest/manageorg/_portals.py
Portal.isServiceNameAvailable
def isServiceNameAvailable(self, name, serviceType): """ Checks to see if a given service name and type are available for publishing a new service. true indicates that the name and type is not found in the organization's servi...
python
def isServiceNameAvailable(self, name, serviceType): """ Checks to see if a given service name and type are available for publishing a new service. true indicates that the name and type is not found in the organization's servi...
[ "def", "isServiceNameAvailable", "(", "self", ",", "name", ",", "serviceType", ")", ":", "_allowedTypes", "=", "[", "'Feature Service'", ",", "\"Map Service\"", "]", "url", "=", "self", ".", "_url", "+", "\"/isServiceNameAvailable\"", "params", "=", "{", "\"f\""...
Checks to see if a given service name and type are available for publishing a new service. true indicates that the name and type is not found in the organization's services and is available for publishing. false means the requested name and type are not available. Inputs: nam...
[ "Checks", "to", "see", "if", "a", "given", "service", "name", "and", "type", "are", "available", "for", "publishing", "a", "new", "service", ".", "true", "indicates", "that", "the", "name", "and", "type", "is", "not", "found", "in", "the", "organization", ...
ab240fde2b0200f61d4a5f6df033516e53f2f416
https://github.com/Esri/ArcREST/blob/ab240fde2b0200f61d4a5f6df033516e53f2f416/src/arcrest/manageorg/_portals.py#L1201-L1226
train
Esri/ArcREST
src/arcrest/manageorg/_portals.py
Portal.servers
def servers(self): """gets the federated or registered servers for Portal""" url = "%s/servers" % self.root return Servers(url=url, securityHandler=self._securityHandler, proxy_url=self._proxy_url, proxy_port=self._proxy_port)
python
def servers(self): """gets the federated or registered servers for Portal""" url = "%s/servers" % self.root return Servers(url=url, securityHandler=self._securityHandler, proxy_url=self._proxy_url, proxy_port=self._proxy_port)
[ "def", "servers", "(", "self", ")", ":", "url", "=", "\"%s/servers\"", "%", "self", ".", "root", "return", "Servers", "(", "url", "=", "url", ",", "securityHandler", "=", "self", ".", "_securityHandler", ",", "proxy_url", "=", "self", ".", "_proxy_url", ...
gets the federated or registered servers for Portal
[ "gets", "the", "federated", "or", "registered", "servers", "for", "Portal" ]
ab240fde2b0200f61d4a5f6df033516e53f2f416
https://github.com/Esri/ArcREST/blob/ab240fde2b0200f61d4a5f6df033516e53f2f416/src/arcrest/manageorg/_portals.py#L1229-L1235
train
Esri/ArcREST
src/arcrest/manageorg/_portals.py
Portal.users
def users(self, start=1, num=10, sortField="fullName", sortOrder="asc", role=None): """ Lists all the members of the organization. The start and num paging parameters are supported. Inputs: start - The numb...
python
def users(self, start=1, num=10, sortField="fullName", sortOrder="asc", role=None): """ Lists all the members of the organization. The start and num paging parameters are supported. Inputs: start - The numb...
[ "def", "users", "(", "self", ",", "start", "=", "1", ",", "num", "=", "10", ",", "sortField", "=", "\"fullName\"", ",", "sortOrder", "=", "\"asc\"", ",", "role", "=", "None", ")", ":", "users", "=", "[", "]", "url", "=", "self", ".", "_url", "+",...
Lists all the members of the organization. The start and num paging parameters are supported. Inputs: start - The number of the first entry in the result set response. The index number is 1-based. The default value of start is 1 (that is, the first ...
[ "Lists", "all", "the", "members", "of", "the", "organization", ".", "The", "start", "and", "num", "paging", "parameters", "are", "supported", "." ]
ab240fde2b0200f61d4a5f6df033516e53f2f416
https://github.com/Esri/ArcREST/blob/ab240fde2b0200f61d4a5f6df033516e53f2f416/src/arcrest/manageorg/_portals.py#L1267-L1334
train
Esri/ArcREST
src/arcrest/manageorg/_portals.py
Portal.roles
def roles(self): """gets the roles class that allows admins to manage custom roles on portal""" return Roles(url="%s/roles" % self.root, securityHandler=self._securityHandler, proxy_url=self._proxy_url, proxy_port=self._proxy_port)
python
def roles(self): """gets the roles class that allows admins to manage custom roles on portal""" return Roles(url="%s/roles" % self.root, securityHandler=self._securityHandler, proxy_url=self._proxy_url, proxy_port=self._proxy_port)
[ "def", "roles", "(", "self", ")", ":", "return", "Roles", "(", "url", "=", "\"%s/roles\"", "%", "self", ".", "root", ",", "securityHandler", "=", "self", ".", "_securityHandler", ",", "proxy_url", "=", "self", ".", "_proxy_url", ",", "proxy_port", "=", "...
gets the roles class that allows admins to manage custom roles on portal
[ "gets", "the", "roles", "class", "that", "allows", "admins", "to", "manage", "custom", "roles", "on", "portal" ]
ab240fde2b0200f61d4a5f6df033516e53f2f416
https://github.com/Esri/ArcREST/blob/ab240fde2b0200f61d4a5f6df033516e53f2f416/src/arcrest/manageorg/_portals.py#L1359-L1365
train
Esri/ArcREST
src/arcrest/manageorg/_portals.py
Portal.resources
def resources(self, start=1, num=10): """ Resources lists all file resources for the organization. The start and num paging parameters are supported. Inputs: start - the number of the first entry in the result set response ...
python
def resources(self, start=1, num=10): """ Resources lists all file resources for the organization. The start and num paging parameters are supported. Inputs: start - the number of the first entry in the result set response ...
[ "def", "resources", "(", "self", ",", "start", "=", "1", ",", "num", "=", "10", ")", ":", "url", "=", "self", ".", "_url", "+", "\"/resources\"", "params", "=", "{", "\"f\"", ":", "\"json\"", ",", "\"start\"", ":", "start", ",", "\"num\"", ":", "nu...
Resources lists all file resources for the organization. The start and num paging parameters are supported. Inputs: start - the number of the first entry in the result set response The index number is 1-based and the default is 1 num - the maximum number of resu...
[ "Resources", "lists", "all", "file", "resources", "for", "the", "organization", ".", "The", "start", "and", "num", "paging", "parameters", "are", "supported", "." ]
ab240fde2b0200f61d4a5f6df033516e53f2f416
https://github.com/Esri/ArcREST/blob/ab240fde2b0200f61d4a5f6df033516e53f2f416/src/arcrest/manageorg/_portals.py#L1410-L1432
train
Esri/ArcREST
src/arcrest/manageorg/_portals.py
Portal.addResource
def addResource(self, key, filePath, text): """ The add resource operation allows the administrator to add a file resource, for example, the organization's logo or custom banner. The resource can be used by any member of the organization. File resources use storage space from you...
python
def addResource(self, key, filePath, text): """ The add resource operation allows the administrator to add a file resource, for example, the organization's logo or custom banner. The resource can be used by any member of the organization. File resources use storage space from you...
[ "def", "addResource", "(", "self", ",", "key", ",", "filePath", ",", "text", ")", ":", "url", "=", "self", ".", "root", "+", "\"/addresource\"", "params", "=", "{", "\"f\"", ":", "\"json\"", ",", "\"token\"", ":", "self", ".", "_securityHandler", ".", ...
The add resource operation allows the administrator to add a file resource, for example, the organization's logo or custom banner. The resource can be used by any member of the organization. File resources use storage space from your quota and are scanned for viruses. Inputs: ...
[ "The", "add", "resource", "operation", "allows", "the", "administrator", "to", "add", "a", "file", "resource", "for", "example", "the", "organization", "s", "logo", "or", "custom", "banner", ".", "The", "resource", "can", "be", "used", "by", "any", "member",...
ab240fde2b0200f61d4a5f6df033516e53f2f416
https://github.com/Esri/ArcREST/blob/ab240fde2b0200f61d4a5f6df033516e53f2f416/src/arcrest/manageorg/_portals.py#L1434-L1464
train
Esri/ArcREST
src/arcrest/manageorg/_portals.py
Portal.updateSecurityPolicy
def updateSecurityPolicy(self, minLength=8, minUpper=None, minLower=None, minLetter=None, minDigit=None, minOther=None, ...
python
def updateSecurityPolicy(self, minLength=8, minUpper=None, minLower=None, minLetter=None, minDigit=None, minOther=None, ...
[ "def", "updateSecurityPolicy", "(", "self", ",", "minLength", "=", "8", ",", "minUpper", "=", "None", ",", "minLower", "=", "None", ",", "minLetter", "=", "None", ",", "minDigit", "=", "None", ",", "minOther", "=", "None", ",", "expirationInDays", "=", "...
updates the Portals security policy
[ "updates", "the", "Portals", "security", "policy" ]
ab240fde2b0200f61d4a5f6df033516e53f2f416
https://github.com/Esri/ArcREST/blob/ab240fde2b0200f61d4a5f6df033516e53f2f416/src/arcrest/manageorg/_portals.py#L1506-L1532
train
Esri/ArcREST
src/arcrest/manageorg/_portals.py
Portal.portalAdmin
def portalAdmin(self): """gets a reference to a portal administration class""" from ..manageportal import PortalAdministration return PortalAdministration(admin_url="https://%s/portaladmin" % self.portalHostname, securityHandler=self._securityHandler, ...
python
def portalAdmin(self): """gets a reference to a portal administration class""" from ..manageportal import PortalAdministration return PortalAdministration(admin_url="https://%s/portaladmin" % self.portalHostname, securityHandler=self._securityHandler, ...
[ "def", "portalAdmin", "(", "self", ")", ":", "from", ".", ".", "manageportal", "import", "PortalAdministration", "return", "PortalAdministration", "(", "admin_url", "=", "\"https://%s/portaladmin\"", "%", "self", ".", "portalHostname", ",", "securityHandler", "=", "...
gets a reference to a portal administration class
[ "gets", "a", "reference", "to", "a", "portal", "administration", "class" ]
ab240fde2b0200f61d4a5f6df033516e53f2f416
https://github.com/Esri/ArcREST/blob/ab240fde2b0200f61d4a5f6df033516e53f2f416/src/arcrest/manageorg/_portals.py#L1536-L1543
train
Esri/ArcREST
src/arcrest/manageorg/_portals.py
Portal.addUser
def addUser(self, invitationList, subject, html): """ adds a user without sending an invitation email Inputs: invitationList - InvitationList class used to add users without sending an email subject - email subject html - email messag...
python
def addUser(self, invitationList, subject, html): """ adds a user without sending an invitation email Inputs: invitationList - InvitationList class used to add users without sending an email subject - email subject html - email messag...
[ "def", "addUser", "(", "self", ",", "invitationList", ",", "subject", ",", "html", ")", ":", "url", "=", "self", ".", "_url", "+", "\"/invite\"", "params", "=", "{", "\"f\"", ":", "\"json\"", "}", "if", "isinstance", "(", "invitationList", ",", "paramete...
adds a user without sending an invitation email Inputs: invitationList - InvitationList class used to add users without sending an email subject - email subject html - email message sent to users in invitation list object
[ "adds", "a", "user", "without", "sending", "an", "invitation", "email" ]
ab240fde2b0200f61d4a5f6df033516e53f2f416
https://github.com/Esri/ArcREST/blob/ab240fde2b0200f61d4a5f6df033516e53f2f416/src/arcrest/manageorg/_portals.py#L1545-L1566
train
Esri/ArcREST
src/arcrest/manageorg/_portals.py
Portal.inviteByEmail
def inviteByEmail(self, emails, subject, text, html, role="org_user", mustApprove=True, expiration=1440): """Invites a user or users to a site. Inputs: emails ...
python
def inviteByEmail(self, emails, subject, text, html, role="org_user", mustApprove=True, expiration=1440): """Invites a user or users to a site. Inputs: emails ...
[ "def", "inviteByEmail", "(", "self", ",", "emails", ",", "subject", ",", "text", ",", "html", ",", "role", "=", "\"org_user\"", ",", "mustApprove", "=", "True", ",", "expiration", "=", "1440", ")", ":", "url", "=", "self", ".", "root", "+", "\"/inviteB...
Invites a user or users to a site. Inputs: emails - comma seperated list of emails subject - title of email text - email text html - email text in html role - site role (can't be administrator) mustApprove - verifies if user that is join must be...
[ "Invites", "a", "user", "or", "users", "to", "a", "site", "." ]
ab240fde2b0200f61d4a5f6df033516e53f2f416
https://github.com/Esri/ArcREST/blob/ab240fde2b0200f61d4a5f6df033516e53f2f416/src/arcrest/manageorg/_portals.py#L1568-L1602
train
Esri/ArcREST
src/arcrest/manageorg/_portals.py
Portal.usage
def usage(self, startTime, endTime, vars=None, period=None, groupby=None, name=None, stype=None, etype=None, appId=None, deviceId=None, username=None, appOrgId=None, userOrgId=None, hostOrgId=None): """ returns the usage statistics value """ url...
python
def usage(self, startTime, endTime, vars=None, period=None, groupby=None, name=None, stype=None, etype=None, appId=None, deviceId=None, username=None, appOrgId=None, userOrgId=None, hostOrgId=None): """ returns the usage statistics value """ url...
[ "def", "usage", "(", "self", ",", "startTime", ",", "endTime", ",", "vars", "=", "None", ",", "period", "=", "None", ",", "groupby", "=", "None", ",", "name", "=", "None", ",", "stype", "=", "None", ",", "etype", "=", "None", ",", "appId", "=", "...
returns the usage statistics value
[ "returns", "the", "usage", "statistics", "value" ]
ab240fde2b0200f61d4a5f6df033516e53f2f416
https://github.com/Esri/ArcREST/blob/ab240fde2b0200f61d4a5f6df033516e53f2f416/src/arcrest/manageorg/_portals.py#L1615-L1650
train
Esri/ArcREST
src/arcrest/manageorg/_portals.py
Servers.servers
def servers(self): """gets all the server resources""" self.__init() items = [] for k,v in self._json_dict.items(): if k == "servers": for s in v: if 'id' in s: url = "%s/%s" % (self.root, s['id']) ...
python
def servers(self): """gets all the server resources""" self.__init() items = [] for k,v in self._json_dict.items(): if k == "servers": for s in v: if 'id' in s: url = "%s/%s" % (self.root, s['id']) ...
[ "def", "servers", "(", "self", ")", ":", "self", ".", "__init", "(", ")", "items", "=", "[", "]", "for", "k", ",", "v", "in", "self", ".", "_json_dict", ".", "items", "(", ")", ":", "if", "k", "==", "\"servers\"", ":", "for", "s", "in", "v", ...
gets all the server resources
[ "gets", "all", "the", "server", "resources" ]
ab240fde2b0200f61d4a5f6df033516e53f2f416
https://github.com/Esri/ArcREST/blob/ab240fde2b0200f61d4a5f6df033516e53f2f416/src/arcrest/manageorg/_portals.py#L1976-L1991
train
Esri/ArcREST
src/arcrest/manageorg/_portals.py
Roles.deleteRole
def deleteRole(self, roleID): """ deletes a role by ID """ url = self._url + "/%s/delete" % roleID params = { "f" : "json" } return self._post(url=url, param_dict=params, proxy_url=self._proxy_...
python
def deleteRole(self, roleID): """ deletes a role by ID """ url = self._url + "/%s/delete" % roleID params = { "f" : "json" } return self._post(url=url, param_dict=params, proxy_url=self._proxy_...
[ "def", "deleteRole", "(", "self", ",", "roleID", ")", ":", "url", "=", "self", ".", "_url", "+", "\"/%s/delete\"", "%", "roleID", "params", "=", "{", "\"f\"", ":", "\"json\"", "}", "return", "self", ".", "_post", "(", "url", "=", "url", ",", "param_d...
deletes a role by ID
[ "deletes", "a", "role", "by", "ID" ]
ab240fde2b0200f61d4a5f6df033516e53f2f416
https://github.com/Esri/ArcREST/blob/ab240fde2b0200f61d4a5f6df033516e53f2f416/src/arcrest/manageorg/_portals.py#L2059-L2071
train
Esri/ArcREST
src/arcrest/manageorg/_portals.py
Roles.updateRole
def updateRole(self, roleID, name, description): """allows for the role name or description to be modified""" params = { "name" : name, "description" : description, "f" : "json" } url = self._url + "/%s/update" return self._post(url=url, ...
python
def updateRole(self, roleID, name, description): """allows for the role name or description to be modified""" params = { "name" : name, "description" : description, "f" : "json" } url = self._url + "/%s/update" return self._post(url=url, ...
[ "def", "updateRole", "(", "self", ",", "roleID", ",", "name", ",", "description", ")", ":", "params", "=", "{", "\"name\"", ":", "name", ",", "\"description\"", ":", "description", ",", "\"f\"", ":", "\"json\"", "}", "url", "=", "self", ".", "_url", "+...
allows for the role name or description to be modified
[ "allows", "for", "the", "role", "name", "or", "description", "to", "be", "modified" ]
ab240fde2b0200f61d4a5f6df033516e53f2f416
https://github.com/Esri/ArcREST/blob/ab240fde2b0200f61d4a5f6df033516e53f2f416/src/arcrest/manageorg/_portals.py#L2073-L2084
train
Esri/ArcREST
src/arcrest/manageorg/_portals.py
Roles.findRoleID
def findRoleID(self, name): """searches the roles by name and returns the role's ID""" for r in self: if r['name'].lower() == name.lower(): return r['id'] del r return None
python
def findRoleID(self, name): """searches the roles by name and returns the role's ID""" for r in self: if r['name'].lower() == name.lower(): return r['id'] del r return None
[ "def", "findRoleID", "(", "self", ",", "name", ")", ":", "for", "r", "in", "self", ":", "if", "r", "[", "'name'", "]", ".", "lower", "(", ")", "==", "name", ".", "lower", "(", ")", ":", "return", "r", "[", "'id'", "]", "del", "r", "return", "...
searches the roles by name and returns the role's ID
[ "searches", "the", "roles", "by", "name", "and", "returns", "the", "role", "s", "ID" ]
ab240fde2b0200f61d4a5f6df033516e53f2f416
https://github.com/Esri/ArcREST/blob/ab240fde2b0200f61d4a5f6df033516e53f2f416/src/arcrest/manageorg/_portals.py#L2096-L2102
train
Esri/ArcREST
tools/src/addUser.py
get_config_value
def get_config_value(config_file, section, variable): """ extracts a config file value """ try: parser = ConfigParser.SafeConfigParser() parser.read(config_file) return parser.get(section, variable) except: return None
python
def get_config_value(config_file, section, variable): """ extracts a config file value """ try: parser = ConfigParser.SafeConfigParser() parser.read(config_file) return parser.get(section, variable) except: return None
[ "def", "get_config_value", "(", "config_file", ",", "section", ",", "variable", ")", ":", "try", ":", "parser", "=", "ConfigParser", ".", "SafeConfigParser", "(", ")", "parser", ".", "read", "(", "config_file", ")", "return", "parser", ".", "get", "(", "se...
extracts a config file value
[ "extracts", "a", "config", "file", "value" ]
ab240fde2b0200f61d4a5f6df033516e53f2f416
https://github.com/Esri/ArcREST/blob/ab240fde2b0200f61d4a5f6df033516e53f2f416/tools/src/addUser.py#L38-L45
train
Esri/ArcREST
src/arcrest/manageorg/_content.py
Content.users
def users(self): """ Provides access to all user resources """ return Users(url="%s/users" % self.root, securityHandler=self._securityHandler, proxy_url=self._proxy_url, proxy_port=self._proxy_port)
python
def users(self): """ Provides access to all user resources """ return Users(url="%s/users" % self.root, securityHandler=self._securityHandler, proxy_url=self._proxy_url, proxy_port=self._proxy_port)
[ "def", "users", "(", "self", ")", ":", "return", "Users", "(", "url", "=", "\"%s/users\"", "%", "self", ".", "root", ",", "securityHandler", "=", "self", ".", "_securityHandler", ",", "proxy_url", "=", "self", ".", "_proxy_url", ",", "proxy_port", "=", "...
Provides access to all user resources
[ "Provides", "access", "to", "all", "user", "resources" ]
ab240fde2b0200f61d4a5f6df033516e53f2f416
https://github.com/Esri/ArcREST/blob/ab240fde2b0200f61d4a5f6df033516e53f2f416/src/arcrest/manageorg/_content.py#L62-L69
train
Esri/ArcREST
src/arcrest/manageorg/_content.py
Content.getItem
def getItem(self, itemId): """gets the refernce to the Items class which manages content on a given AGOL or Portal site. """ url = "%s/items/%s" % (self.root, itemId) return Item(url=url, securityHandler=self._securityHandler, proxy_url=sel...
python
def getItem(self, itemId): """gets the refernce to the Items class which manages content on a given AGOL or Portal site. """ url = "%s/items/%s" % (self.root, itemId) return Item(url=url, securityHandler=self._securityHandler, proxy_url=sel...
[ "def", "getItem", "(", "self", ",", "itemId", ")", ":", "url", "=", "\"%s/items/%s\"", "%", "(", "self", ".", "root", ",", "itemId", ")", "return", "Item", "(", "url", "=", "url", ",", "securityHandler", "=", "self", ".", "_securityHandler", ",", "prox...
gets the refernce to the Items class which manages content on a given AGOL or Portal site.
[ "gets", "the", "refernce", "to", "the", "Items", "class", "which", "manages", "content", "on", "a", "given", "AGOL", "or", "Portal", "site", "." ]
ab240fde2b0200f61d4a5f6df033516e53f2f416
https://github.com/Esri/ArcREST/blob/ab240fde2b0200f61d4a5f6df033516e53f2f416/src/arcrest/manageorg/_content.py#L71-L79
train
Esri/ArcREST
src/arcrest/manageorg/_content.py
Content.FeatureContent
def FeatureContent(self): """Feature Content class id the parent resource for feature operations such as Analyze and Generate.""" return FeatureContent(url="%s/%s" % (self.root, "features"), securityHandler=self._securityHandler, proxy_...
python
def FeatureContent(self): """Feature Content class id the parent resource for feature operations such as Analyze and Generate.""" return FeatureContent(url="%s/%s" % (self.root, "features"), securityHandler=self._securityHandler, proxy_...
[ "def", "FeatureContent", "(", "self", ")", ":", "return", "FeatureContent", "(", "url", "=", "\"%s/%s\"", "%", "(", "self", ".", "root", ",", "\"features\"", ")", ",", "securityHandler", "=", "self", ".", "_securityHandler", ",", "proxy_url", "=", "self", ...
Feature Content class id the parent resource for feature operations such as Analyze and Generate.
[ "Feature", "Content", "class", "id", "the", "parent", "resource", "for", "feature", "operations", "such", "as", "Analyze", "and", "Generate", "." ]
ab240fde2b0200f61d4a5f6df033516e53f2f416
https://github.com/Esri/ArcREST/blob/ab240fde2b0200f61d4a5f6df033516e53f2f416/src/arcrest/manageorg/_content.py#L82-L88
train
Esri/ArcREST
src/arcrest/manageorg/_content.py
Users.user
def user(self, username=None): """gets the user's content. If None is passed, the current user is used. Input: username - name of the login for a given user on a site. """ if username is None: username = self.__getUsername() url = "%s/%s" % (self.r...
python
def user(self, username=None): """gets the user's content. If None is passed, the current user is used. Input: username - name of the login for a given user on a site. """ if username is None: username = self.__getUsername() url = "%s/%s" % (self.r...
[ "def", "user", "(", "self", ",", "username", "=", "None", ")", ":", "if", "username", "is", "None", ":", "username", "=", "self", ".", "__getUsername", "(", ")", "url", "=", "\"%s/%s\"", "%", "(", "self", ".", "root", ",", "username", ")", "return", ...
gets the user's content. If None is passed, the current user is used. Input: username - name of the login for a given user on a site.
[ "gets", "the", "user", "s", "content", ".", "If", "None", "is", "passed", "the", "current", "user", "is", "used", "." ]
ab240fde2b0200f61d4a5f6df033516e53f2f416
https://github.com/Esri/ArcREST/blob/ab240fde2b0200f61d4a5f6df033516e53f2f416/src/arcrest/manageorg/_content.py#L182-L197
train
Esri/ArcREST
src/arcrest/manageorg/_content.py
Item.saveThumbnail
def saveThumbnail(self,fileName,filePath): """ URL to the thumbnail used for the item """ if self._thumbnail is None: self.__init() param_dict = {} if self._thumbnail is not None: imgUrl = self.root + "/info/" + self._thumbnail onlineFileName, file_ex...
python
def saveThumbnail(self,fileName,filePath): """ URL to the thumbnail used for the item """ if self._thumbnail is None: self.__init() param_dict = {} if self._thumbnail is not None: imgUrl = self.root + "/info/" + self._thumbnail onlineFileName, file_ex...
[ "def", "saveThumbnail", "(", "self", ",", "fileName", ",", "filePath", ")", ":", "if", "self", ".", "_thumbnail", "is", "None", ":", "self", ".", "__init", "(", ")", "param_dict", "=", "{", "}", "if", "self", ".", "_thumbnail", "is", "not", "None", "...
URL to the thumbnail used for the item
[ "URL", "to", "the", "thumbnail", "used", "for", "the", "item" ]
ab240fde2b0200f61d4a5f6df033516e53f2f416
https://github.com/Esri/ArcREST/blob/ab240fde2b0200f61d4a5f6df033516e53f2f416/src/arcrest/manageorg/_content.py#L501-L519
train
Esri/ArcREST
src/arcrest/manageorg/_content.py
Item.userItem
def userItem(self): """returns a reference to the UserItem class""" if self.ownerFolder is not None: url = "%s/users/%s/%s/items/%s" % (self.root.split('/items/')[0], self.owner,self.ownerFolder, self.id) else: url = "%s/users/%s/items/%s" % (self.root.split('/items/')[0]...
python
def userItem(self): """returns a reference to the UserItem class""" if self.ownerFolder is not None: url = "%s/users/%s/%s/items/%s" % (self.root.split('/items/')[0], self.owner,self.ownerFolder, self.id) else: url = "%s/users/%s/items/%s" % (self.root.split('/items/')[0]...
[ "def", "userItem", "(", "self", ")", ":", "if", "self", ".", "ownerFolder", "is", "not", "None", ":", "url", "=", "\"%s/users/%s/%s/items/%s\"", "%", "(", "self", ".", "root", ".", "split", "(", "'/items/'", ")", "[", "0", "]", ",", "self", ".", "own...
returns a reference to the UserItem class
[ "returns", "a", "reference", "to", "the", "UserItem", "class" ]
ab240fde2b0200f61d4a5f6df033516e53f2f416
https://github.com/Esri/ArcREST/blob/ab240fde2b0200f61d4a5f6df033516e53f2f416/src/arcrest/manageorg/_content.py#L675-L684
train
Esri/ArcREST
src/arcrest/manageorg/_content.py
Item.addRating
def addRating(self, rating=5.0): """Adds a rating to an item between 1.0 and 5.0""" if rating > 5.0: rating = 5.0 elif rating < 1.0: rating = 1.0 url = "%s/addRating" % self.root params = { "f": "json", "rating" : "%s" % rating ...
python
def addRating(self, rating=5.0): """Adds a rating to an item between 1.0 and 5.0""" if rating > 5.0: rating = 5.0 elif rating < 1.0: rating = 1.0 url = "%s/addRating" % self.root params = { "f": "json", "rating" : "%s" % rating ...
[ "def", "addRating", "(", "self", ",", "rating", "=", "5.0", ")", ":", "if", "rating", ">", "5.0", ":", "rating", "=", "5.0", "elif", "rating", "<", "1.0", ":", "rating", "=", "1.0", "url", "=", "\"%s/addRating\"", "%", "self", ".", "root", "params", ...
Adds a rating to an item between 1.0 and 5.0
[ "Adds", "a", "rating", "to", "an", "item", "between", "1", ".", "0", "and", "5", ".", "0" ]
ab240fde2b0200f61d4a5f6df033516e53f2f416
https://github.com/Esri/ArcREST/blob/ab240fde2b0200f61d4a5f6df033516e53f2f416/src/arcrest/manageorg/_content.py#L781-L796
train
Esri/ArcREST
src/arcrest/manageorg/_content.py
Item.addComment
def addComment(self, comment): """ adds a comment to a given item. Must be authenticated """ url = "%s/addComment" % self.root params = { "f" : "json", "comment" : comment } return self._post(url, params, proxy_port=self._proxy_port, ...
python
def addComment(self, comment): """ adds a comment to a given item. Must be authenticated """ url = "%s/addComment" % self.root params = { "f" : "json", "comment" : comment } return self._post(url, params, proxy_port=self._proxy_port, ...
[ "def", "addComment", "(", "self", ",", "comment", ")", ":", "url", "=", "\"%s/addComment\"", "%", "self", ".", "root", "params", "=", "{", "\"f\"", ":", "\"json\"", ",", "\"comment\"", ":", "comment", "}", "return", "self", ".", "_post", "(", "url", ",...
adds a comment to a given item. Must be authenticated
[ "adds", "a", "comment", "to", "a", "given", "item", ".", "Must", "be", "authenticated" ]
ab240fde2b0200f61d4a5f6df033516e53f2f416
https://github.com/Esri/ArcREST/blob/ab240fde2b0200f61d4a5f6df033516e53f2f416/src/arcrest/manageorg/_content.py#L811-L820
train
Esri/ArcREST
src/arcrest/manageorg/_content.py
Item.itemComment
def itemComment(self, commentId): """ returns details of a single comment """ url = "%s/comments/%s" % (self.root, commentId) params = { "f": "json" } return self._get(url, params, securityHandler=self._securityH...
python
def itemComment(self, commentId): """ returns details of a single comment """ url = "%s/comments/%s" % (self.root, commentId) params = { "f": "json" } return self._get(url, params, securityHandler=self._securityH...
[ "def", "itemComment", "(", "self", ",", "commentId", ")", ":", "url", "=", "\"%s/comments/%s\"", "%", "(", "self", ".", "root", ",", "commentId", ")", "params", "=", "{", "\"f\"", ":", "\"json\"", "}", "return", "self", ".", "_get", "(", "url", ",", ...
returns details of a single comment
[ "returns", "details", "of", "a", "single", "comment" ]
ab240fde2b0200f61d4a5f6df033516e53f2f416
https://github.com/Esri/ArcREST/blob/ab240fde2b0200f61d4a5f6df033516e53f2f416/src/arcrest/manageorg/_content.py#L822-L832
train
Esri/ArcREST
src/arcrest/manageorg/_content.py
Item.itemComments
def itemComments(self): """ returns all comments for a given item """ url = "%s/comments/" % self.root params = { "f": "json" } return self._get(url, params, securityHandler=self._securityHandler, ...
python
def itemComments(self): """ returns all comments for a given item """ url = "%s/comments/" % self.root params = { "f": "json" } return self._get(url, params, securityHandler=self._securityHandler, ...
[ "def", "itemComments", "(", "self", ")", ":", "url", "=", "\"%s/comments/\"", "%", "self", ".", "root", "params", "=", "{", "\"f\"", ":", "\"json\"", "}", "return", "self", ".", "_get", "(", "url", ",", "params", ",", "securityHandler", "=", "self", "....
returns all comments for a given item
[ "returns", "all", "comments", "for", "a", "given", "item" ]
ab240fde2b0200f61d4a5f6df033516e53f2f416
https://github.com/Esri/ArcREST/blob/ab240fde2b0200f61d4a5f6df033516e53f2f416/src/arcrest/manageorg/_content.py#L835-L845
train
Esri/ArcREST
src/arcrest/manageorg/_content.py
Item.deleteComment
def deleteComment(self, commentId): """ removes a comment from an Item Inputs: commentId - unique id of comment to remove """ url = "%s/comments/%s/delete" % (self.root, commentId) params = { "f": "json", } return self._post(url, ...
python
def deleteComment(self, commentId): """ removes a comment from an Item Inputs: commentId - unique id of comment to remove """ url = "%s/comments/%s/delete" % (self.root, commentId) params = { "f": "json", } return self._post(url, ...
[ "def", "deleteComment", "(", "self", ",", "commentId", ")", ":", "url", "=", "\"%s/comments/%s/delete\"", "%", "(", "self", ".", "root", ",", "commentId", ")", "params", "=", "{", "\"f\"", ":", "\"json\"", ",", "}", "return", "self", ".", "_post", "(", ...
removes a comment from an Item Inputs: commentId - unique id of comment to remove
[ "removes", "a", "comment", "from", "an", "Item" ]
ab240fde2b0200f61d4a5f6df033516e53f2f416
https://github.com/Esri/ArcREST/blob/ab240fde2b0200f61d4a5f6df033516e53f2f416/src/arcrest/manageorg/_content.py#L847-L861
train
Esri/ArcREST
src/arcrest/manageorg/_content.py
Item.packageInfo
def packageInfo(self): """gets the item's package information file""" url = "%s/item.pkinfo" % self.root params = {'f' : 'json'} result = self._get(url=url, param_dict=params, securityHandler=self._securityHandler, ...
python
def packageInfo(self): """gets the item's package information file""" url = "%s/item.pkinfo" % self.root params = {'f' : 'json'} result = self._get(url=url, param_dict=params, securityHandler=self._securityHandler, ...
[ "def", "packageInfo", "(", "self", ")", ":", "url", "=", "\"%s/item.pkinfo\"", "%", "self", ".", "root", "params", "=", "{", "'f'", ":", "'json'", "}", "result", "=", "self", ".", "_get", "(", "url", "=", "url", ",", "param_dict", "=", "params", ",",...
gets the item's package information file
[ "gets", "the", "item", "s", "package", "information", "file" ]
ab240fde2b0200f61d4a5f6df033516e53f2f416
https://github.com/Esri/ArcREST/blob/ab240fde2b0200f61d4a5f6df033516e53f2f416/src/arcrest/manageorg/_content.py#L936-L946
train
Esri/ArcREST
src/arcrest/manageorg/_content.py
UserItem.item
def item(self): """returns the Item class of an Item""" url = self._contentURL return Item(url=self._contentURL, securityHandler=self._securityHandler, proxy_url=self._proxy_url, proxy_port=self._proxy_port, initaliz...
python
def item(self): """returns the Item class of an Item""" url = self._contentURL return Item(url=self._contentURL, securityHandler=self._securityHandler, proxy_url=self._proxy_url, proxy_port=self._proxy_port, initaliz...
[ "def", "item", "(", "self", ")", ":", "url", "=", "self", ".", "_contentURL", "return", "Item", "(", "url", "=", "self", ".", "_contentURL", ",", "securityHandler", "=", "self", ".", "_securityHandler", ",", "proxy_url", "=", "self", ".", "_proxy_url", "...
returns the Item class of an Item
[ "returns", "the", "Item", "class", "of", "an", "Item" ]
ab240fde2b0200f61d4a5f6df033516e53f2f416
https://github.com/Esri/ArcREST/blob/ab240fde2b0200f61d4a5f6df033516e53f2f416/src/arcrest/manageorg/_content.py#L1478-L1485
train
Esri/ArcREST
src/arcrest/manageorg/_content.py
UserItem.reassignItem
def reassignItem(self, targetUsername, targetFoldername): """ The Reassign Item operation allows the administrator of an organization to reassign a member's item to another member of the organization. Inputs: targetUsername - ...
python
def reassignItem(self, targetUsername, targetFoldername): """ The Reassign Item operation allows the administrator of an organization to reassign a member's item to another member of the organization. Inputs: targetUsername - ...
[ "def", "reassignItem", "(", "self", ",", "targetUsername", ",", "targetFoldername", ")", ":", "params", "=", "{", "\"f\"", ":", "\"json\"", ",", "\"targetUsername\"", ":", "targetUsername", ",", "\"targetFoldername\"", ":", "targetFoldername", "}", "url", "=", "...
The Reassign Item operation allows the administrator of an organization to reassign a member's item to another member of the organization. Inputs: targetUsername - The target username of the new owner of the item targetFoldername - The destinati...
[ "The", "Reassign", "Item", "operation", "allows", "the", "administrator", "of", "an", "organization", "to", "reassign", "a", "member", "s", "item", "to", "another", "member", "of", "the", "organization", "." ]
ab240fde2b0200f61d4a5f6df033516e53f2f416
https://github.com/Esri/ArcREST/blob/ab240fde2b0200f61d4a5f6df033516e53f2f416/src/arcrest/manageorg/_content.py#L1576-L1604
train
Esri/ArcREST
src/arcrest/manageorg/_content.py
UserItem.updateItem
def updateItem(self, itemParameters, clearEmptyFields=False, data=None, metadata=None, text=None, serviceUrl=None, multipart=False): """ updates an item's properties using...
python
def updateItem(self, itemParameters, clearEmptyFields=False, data=None, metadata=None, text=None, serviceUrl=None, multipart=False): """ updates an item's properties using...
[ "def", "updateItem", "(", "self", ",", "itemParameters", ",", "clearEmptyFields", "=", "False", ",", "data", "=", "None", ",", "metadata", "=", "None", ",", "text", "=", "None", ",", "serviceUrl", "=", "None", ",", "multipart", "=", "False", ")", ":", ...
updates an item's properties using the ItemParameter class. Inputs: itemParameters - property class to update clearEmptyFields - boolean, cleans up empty values data - updates the file property of the service like a .sd file metadata - this is an xml file that contai...
[ "updates", "an", "item", "s", "properties", "using", "the", "ItemParameter", "class", "." ]
ab240fde2b0200f61d4a5f6df033516e53f2f416
https://github.com/Esri/ArcREST/blob/ab240fde2b0200f61d4a5f6df033516e53f2f416/src/arcrest/manageorg/_content.py#L1674-L1763
train
Esri/ArcREST
src/arcrest/manageorg/_content.py
UserItem.status
def status(self, jobId=None, jobType=None): """ Inquire about status when publishing an item, adding an item in async mode, or adding with a multipart upload. "Partial" is available for Add Item Multipart, when only a part is uploaded and the item is not committed. ...
python
def status(self, jobId=None, jobType=None): """ Inquire about status when publishing an item, adding an item in async mode, or adding with a multipart upload. "Partial" is available for Add Item Multipart, when only a part is uploaded and the item is not committed. ...
[ "def", "status", "(", "self", ",", "jobId", "=", "None", ",", "jobType", "=", "None", ")", ":", "params", "=", "{", "\"f\"", ":", "\"json\"", "}", "if", "jobType", "is", "not", "None", ":", "params", "[", "'jobType'", "]", "=", "jobType", "if", "jo...
Inquire about status when publishing an item, adding an item in async mode, or adding with a multipart upload. "Partial" is available for Add Item Multipart, when only a part is uploaded and the item is not committed. Input: jobType The type of asynchronous job...
[ "Inquire", "about", "status", "when", "publishing", "an", "item", "adding", "an", "item", "in", "async", "mode", "or", "adding", "with", "a", "multipart", "upload", ".", "Partial", "is", "available", "for", "Add", "Item", "Multipart", "when", "only", "a", ...
ab240fde2b0200f61d4a5f6df033516e53f2f416
https://github.com/Esri/ArcREST/blob/ab240fde2b0200f61d4a5f6df033516e53f2f416/src/arcrest/manageorg/_content.py#L1784-L1813
train
Esri/ArcREST
src/arcrest/manageorg/_content.py
UserItem.commit
def commit(self, wait=False, additionalParams={}): """ Commit is called once all parts are uploaded during a multipart Add Item or Update Item operation. The parts are combined into a file, and the original file is overwritten during an Update Item operation. This is an asynchron...
python
def commit(self, wait=False, additionalParams={}): """ Commit is called once all parts are uploaded during a multipart Add Item or Update Item operation. The parts are combined into a file, and the original file is overwritten during an Update Item operation. This is an asynchron...
[ "def", "commit", "(", "self", ",", "wait", "=", "False", ",", "additionalParams", "=", "{", "}", ")", ":", "url", "=", "\"%s/commit\"", "%", "self", ".", "root", "params", "=", "{", "\"f\"", ":", "\"json\"", ",", "}", "for", "key", ",", "value", "i...
Commit is called once all parts are uploaded during a multipart Add Item or Update Item operation. The parts are combined into a file, and the original file is overwritten during an Update Item operation. This is an asynchronous call and returns immediately. Status can be used to check t...
[ "Commit", "is", "called", "once", "all", "parts", "are", "uploaded", "during", "a", "multipart", "Add", "Item", "or", "Update", "Item", "operation", ".", "The", "parts", "are", "combined", "into", "a", "file", "and", "the", "original", "file", "is", "overw...
ab240fde2b0200f61d4a5f6df033516e53f2f416
https://github.com/Esri/ArcREST/blob/ab240fde2b0200f61d4a5f6df033516e53f2f416/src/arcrest/manageorg/_content.py#L1827-L1868
train
Esri/ArcREST
src/arcrest/manageorg/_content.py
User.folders
def folders(self): '''gets the property value for folders''' if self._folders is None : self.__init() if self._folders is not None and isinstance(self._folders, list): if len(self._folders) == 0: self._loadFolders() return self._folders
python
def folders(self): '''gets the property value for folders''' if self._folders is None : self.__init() if self._folders is not None and isinstance(self._folders, list): if len(self._folders) == 0: self._loadFolders() return self._folders
[ "def", "folders", "(", "self", ")", ":", "if", "self", ".", "_folders", "is", "None", ":", "self", ".", "__init", "(", ")", "if", "self", ".", "_folders", "is", "not", "None", "and", "isinstance", "(", "self", ".", "_folders", ",", "list", ")", ":"...
gets the property value for folders
[ "gets", "the", "property", "value", "for", "folders" ]
ab240fde2b0200f61d4a5f6df033516e53f2f416
https://github.com/Esri/ArcREST/blob/ab240fde2b0200f61d4a5f6df033516e53f2f416/src/arcrest/manageorg/_content.py#L2146-L2153
train
Esri/ArcREST
src/arcrest/manageorg/_content.py
User.items
def items(self): '''gets the property value for items''' self.__init() items = [] for item in self._items: items.append( UserItem(url="%s/items/%s" % (self.location, item['id']), securityHandler=self._securityHandler, ...
python
def items(self): '''gets the property value for items''' self.__init() items = [] for item in self._items: items.append( UserItem(url="%s/items/%s" % (self.location, item['id']), securityHandler=self._securityHandler, ...
[ "def", "items", "(", "self", ")", ":", "self", ".", "__init", "(", ")", "items", "=", "[", "]", "for", "item", "in", "self", ".", "_items", ":", "items", ".", "append", "(", "UserItem", "(", "url", "=", "\"%s/items/%s\"", "%", "(", "self", ".", "...
gets the property value for items
[ "gets", "the", "property", "value", "for", "items" ]
ab240fde2b0200f61d4a5f6df033516e53f2f416
https://github.com/Esri/ArcREST/blob/ab240fde2b0200f61d4a5f6df033516e53f2f416/src/arcrest/manageorg/_content.py#L2202-L2214
train
Esri/ArcREST
src/arcrest/manageorg/_content.py
User.addRelationship
def addRelationship(self, originItemId, destinationItemId, relationshipType): """ Adds a relationship of a certain type between two items. Inputs: originItemId - The item ID of the origin item of the ...
python
def addRelationship(self, originItemId, destinationItemId, relationshipType): """ Adds a relationship of a certain type between two items. Inputs: originItemId - The item ID of the origin item of the ...
[ "def", "addRelationship", "(", "self", ",", "originItemId", ",", "destinationItemId", ",", "relationshipType", ")", ":", "url", "=", "\"%s/addRelationship\"", "%", "self", ".", "root", "params", "=", "{", "\"originItemId\"", ":", "originItemId", ",", "\"destinatio...
Adds a relationship of a certain type between two items. Inputs: originItemId - The item ID of the origin item of the relationship destinationItemId - The item ID of the destination item of the relationship. relationshipT...
[ "Adds", "a", "relationship", "of", "a", "certain", "type", "between", "two", "items", "." ]
ab240fde2b0200f61d4a5f6df033516e53f2f416
https://github.com/Esri/ArcREST/blob/ab240fde2b0200f61d4a5f6df033516e53f2f416/src/arcrest/manageorg/_content.py#L2266-L2292
train
Esri/ArcREST
src/arcrest/manageorg/_content.py
User.createService
def createService(self, createServiceParameter, description=None, tags="Feature Service", snippet=None): """ The Create Service operation allows users to create a hosted feature service. You can use the API to create an empty host...
python
def createService(self, createServiceParameter, description=None, tags="Feature Service", snippet=None): """ The Create Service operation allows users to create a hosted feature service. You can use the API to create an empty host...
[ "def", "createService", "(", "self", ",", "createServiceParameter", ",", "description", "=", "None", ",", "tags", "=", "\"Feature Service\"", ",", "snippet", "=", "None", ")", ":", "url", "=", "\"%s/createService\"", "%", "self", ".", "location", "val", "=", ...
The Create Service operation allows users to create a hosted feature service. You can use the API to create an empty hosted feaure service from feature service metadata JSON. Inputs: createServiceParameter - create service object
[ "The", "Create", "Service", "operation", "allows", "users", "to", "create", "a", "hosted", "feature", "service", ".", "You", "can", "use", "the", "API", "to", "create", "an", "empty", "hosted", "feaure", "service", "from", "feature", "service", "metadata", "...
ab240fde2b0200f61d4a5f6df033516e53f2f416
https://github.com/Esri/ArcREST/blob/ab240fde2b0200f61d4a5f6df033516e53f2f416/src/arcrest/manageorg/_content.py#L2515-L2554
train
Esri/ArcREST
src/arcrest/manageorg/_content.py
User.shareItems
def shareItems(self, items, groups="", everyone=False, org=False): """ Shares a batch of items with the specified list of groups. Users can only share items with groups to which they belong. This operation also allows a user to share items with everyone, in which ...
python
def shareItems(self, items, groups="", everyone=False, org=False): """ Shares a batch of items with the specified list of groups. Users can only share items with groups to which they belong. This operation also allows a user to share items with everyone, in which ...
[ "def", "shareItems", "(", "self", ",", "items", ",", "groups", "=", "\"\"", ",", "everyone", "=", "False", ",", "org", "=", "False", ")", ":", "url", "=", "\"%s/shareItems\"", "%", "self", ".", "root", "params", "=", "{", "\"f\"", ":", "\"json\"", ",...
Shares a batch of items with the specified list of groups. Users can only share items with groups to which they belong. This operation also allows a user to share items with everyone, in which case the items are publicly accessible, or with everyone in their organization. Inputs...
[ "Shares", "a", "batch", "of", "items", "with", "the", "specified", "list", "of", "groups", ".", "Users", "can", "only", "share", "items", "with", "groups", "to", "which", "they", "belong", ".", "This", "operation", "also", "allows", "a", "user", "to", "s...
ab240fde2b0200f61d4a5f6df033516e53f2f416
https://github.com/Esri/ArcREST/blob/ab240fde2b0200f61d4a5f6df033516e53f2f416/src/arcrest/manageorg/_content.py#L2585-L2612
train
Esri/ArcREST
src/arcrest/manageorg/_content.py
User.createFolder
def createFolder(self, name): """ Creates a folder in which items can be placed. Folders are only visible to a user and solely used for organizing content within that user's content space. """ url = "%s/createFolder" % self.root params = { "f" : "json"...
python
def createFolder(self, name): """ Creates a folder in which items can be placed. Folders are only visible to a user and solely used for organizing content within that user's content space. """ url = "%s/createFolder" % self.root params = { "f" : "json"...
[ "def", "createFolder", "(", "self", ",", "name", ")", ":", "url", "=", "\"%s/createFolder\"", "%", "self", ".", "root", "params", "=", "{", "\"f\"", ":", "\"json\"", ",", "\"title\"", ":", "name", "}", "self", ".", "_folders", "=", "None", "return", "s...
Creates a folder in which items can be placed. Folders are only visible to a user and solely used for organizing content within that user's content space.
[ "Creates", "a", "folder", "in", "which", "items", "can", "be", "placed", ".", "Folders", "are", "only", "visible", "to", "a", "user", "and", "solely", "used", "for", "organizing", "content", "within", "that", "user", "s", "content", "space", "." ]
ab240fde2b0200f61d4a5f6df033516e53f2f416
https://github.com/Esri/ArcREST/blob/ab240fde2b0200f61d4a5f6df033516e53f2f416/src/arcrest/manageorg/_content.py#L2674-L2690
train
Esri/ArcREST
src/arcrest/manageorg/_content.py
FeatureContent.analyze
def analyze(self, itemId=None, filePath=None, text=None, fileType="csv", analyzeParameters=None): """ The Analyze call helps a client analyze a CSV file prior to publishing or generating features using the Publish or...
python
def analyze(self, itemId=None, filePath=None, text=None, fileType="csv", analyzeParameters=None): """ The Analyze call helps a client analyze a CSV file prior to publishing or generating features using the Publish or...
[ "def", "analyze", "(", "self", ",", "itemId", "=", "None", ",", "filePath", "=", "None", ",", "text", "=", "None", ",", "fileType", "=", "\"csv\"", ",", "analyzeParameters", "=", "None", ")", ":", "files", "=", "[", "]", "url", "=", "self", ".", "_...
The Analyze call helps a client analyze a CSV file prior to publishing or generating features using the Publish or Generate operation, respectively. Analyze returns information about the file including the fields present as well as sample records. Analyze attempts to detect the p...
[ "The", "Analyze", "call", "helps", "a", "client", "analyze", "a", "CSV", "file", "prior", "to", "publishing", "or", "generating", "features", "using", "the", "Publish", "or", "Generate", "operation", "respectively", ".", "Analyze", "returns", "information", "abo...
ab240fde2b0200f61d4a5f6df033516e53f2f416
https://github.com/Esri/ArcREST/blob/ab240fde2b0200f61d4a5f6df033516e53f2f416/src/arcrest/manageorg/_content.py#L2905-L2969
train
Esri/ArcREST
src/arcrest/manageorg/_content.py
Group.__assembleURL
def __assembleURL(self, url, groupId): """private function that assembles the URL for the community.Group class""" from ..packages.six.moves.urllib_parse import urlparse parsed = urlparse(url) communityURL = "%s://%s%s/sharing/rest/community/groups/%s" % (parsed.scheme, parsed.ne...
python
def __assembleURL(self, url, groupId): """private function that assembles the URL for the community.Group class""" from ..packages.six.moves.urllib_parse import urlparse parsed = urlparse(url) communityURL = "%s://%s%s/sharing/rest/community/groups/%s" % (parsed.scheme, parsed.ne...
[ "def", "__assembleURL", "(", "self", ",", "url", ",", "groupId", ")", ":", "from", ".", ".", "packages", ".", "six", ".", "moves", ".", "urllib_parse", "import", "urlparse", "parsed", "=", "urlparse", "(", "url", ")", "communityURL", "=", "\"%s://%s%s/shar...
private function that assembles the URL for the community.Group class
[ "private", "function", "that", "assembles", "the", "URL", "for", "the", "community", ".", "Group", "class" ]
ab240fde2b0200f61d4a5f6df033516e53f2f416
https://github.com/Esri/ArcREST/blob/ab240fde2b0200f61d4a5f6df033516e53f2f416/src/arcrest/manageorg/_content.py#L3137-L3145
train
Esri/ArcREST
src/arcrest/manageorg/_content.py
Group.group
def group(self): """returns the community.Group class for the current group""" split_count = self._url.lower().find("/content/") len_count = len('/content/') gURL = self._url[:self._url.lower().find("/content/")] + \ "/community/" + self._url[split_count+ len_count:]#self.__a...
python
def group(self): """returns the community.Group class for the current group""" split_count = self._url.lower().find("/content/") len_count = len('/content/') gURL = self._url[:self._url.lower().find("/content/")] + \ "/community/" + self._url[split_count+ len_count:]#self.__a...
[ "def", "group", "(", "self", ")", ":", "split_count", "=", "self", ".", "_url", ".", "lower", "(", ")", ".", "find", "(", "\"/content/\"", ")", "len_count", "=", "len", "(", "'/content/'", ")", "gURL", "=", "self", ".", "_url", "[", ":", "self", "....
returns the community.Group class for the current group
[ "returns", "the", "community", ".", "Group", "class", "for", "the", "current", "group" ]
ab240fde2b0200f61d4a5f6df033516e53f2f416
https://github.com/Esri/ArcREST/blob/ab240fde2b0200f61d4a5f6df033516e53f2f416/src/arcrest/manageorg/_content.py#L3149-L3159
train
Esri/ArcREST
src/arcrest/common/renderer.py
UniqueValueRenderer.addUniqueValue
def addUniqueValue(self, value, label, description, symbol): """ adds a unique value to the renderer """ if self._uniqueValueInfos is None: self._uniqueValueInfos = [] self._uniqueValueInfos.append( { "value" : value, "label...
python
def addUniqueValue(self, value, label, description, symbol): """ adds a unique value to the renderer """ if self._uniqueValueInfos is None: self._uniqueValueInfos = [] self._uniqueValueInfos.append( { "value" : value, "label...
[ "def", "addUniqueValue", "(", "self", ",", "value", ",", "label", ",", "description", ",", "symbol", ")", ":", "if", "self", ".", "_uniqueValueInfos", "is", "None", ":", "self", ".", "_uniqueValueInfos", "=", "[", "]", "self", ".", "_uniqueValueInfos", "."...
adds a unique value to the renderer
[ "adds", "a", "unique", "value", "to", "the", "renderer" ]
ab240fde2b0200f61d4a5f6df033516e53f2f416
https://github.com/Esri/ArcREST/blob/ab240fde2b0200f61d4a5f6df033516e53f2f416/src/arcrest/common/renderer.py#L249-L262
train
Esri/ArcREST
src/arcrest/common/renderer.py
UniqueValueRenderer.removeUniqueValue
def removeUniqueValue(self, value): """removes a unique value in unique Value Info""" for v in self._uniqueValueInfos: if v['value'] == value: self._uniqueValueInfos.remove(v) return True del v return False
python
def removeUniqueValue(self, value): """removes a unique value in unique Value Info""" for v in self._uniqueValueInfos: if v['value'] == value: self._uniqueValueInfos.remove(v) return True del v return False
[ "def", "removeUniqueValue", "(", "self", ",", "value", ")", ":", "for", "v", "in", "self", ".", "_uniqueValueInfos", ":", "if", "v", "[", "'value'", "]", "==", "value", ":", "self", ".", "_uniqueValueInfos", ".", "remove", "(", "v", ")", "return", "Tru...
removes a unique value in unique Value Info
[ "removes", "a", "unique", "value", "in", "unique", "Value", "Info" ]
ab240fde2b0200f61d4a5f6df033516e53f2f416
https://github.com/Esri/ArcREST/blob/ab240fde2b0200f61d4a5f6df033516e53f2f416/src/arcrest/common/renderer.py#L264-L271
train
Esri/ArcREST
src/arcrest/common/renderer.py
ClassBreakRenderer.addClassBreak
def addClassBreak(self, classMinValue, classMaxValue, label, description, symbol): """ adds a classification break value to the renderer """ if self._classBreakInfos is None: self._classBreakInfos = [] self._classBreakInfos.append( { "class...
python
def addClassBreak(self, classMinValue, classMaxValue, label, description, symbol): """ adds a classification break value to the renderer """ if self._classBreakInfos is None: self._classBreakInfos = [] self._classBreakInfos.append( { "class...
[ "def", "addClassBreak", "(", "self", ",", "classMinValue", ",", "classMaxValue", ",", "label", ",", "description", ",", "symbol", ")", ":", "if", "self", ".", "_classBreakInfos", "is", "None", ":", "self", ".", "_classBreakInfos", "=", "[", "]", "self", "....
adds a classification break value to the renderer
[ "adds", "a", "classification", "break", "value", "to", "the", "renderer" ]
ab240fde2b0200f61d4a5f6df033516e53f2f416
https://github.com/Esri/ArcREST/blob/ab240fde2b0200f61d4a5f6df033516e53f2f416/src/arcrest/common/renderer.py#L400-L414
train
Esri/ArcREST
src/arcrest/common/renderer.py
ClassBreakRenderer.removeClassBreak
def removeClassBreak(self, label): """removes a classification break value to the renderer""" for v in self._classBreakInfos: if v['label'] == label: self._classBreakInfos.remove(v) return True del v return False
python
def removeClassBreak(self, label): """removes a classification break value to the renderer""" for v in self._classBreakInfos: if v['label'] == label: self._classBreakInfos.remove(v) return True del v return False
[ "def", "removeClassBreak", "(", "self", ",", "label", ")", ":", "for", "v", "in", "self", ".", "_classBreakInfos", ":", "if", "v", "[", "'label'", "]", "==", "label", ":", "self", ".", "_classBreakInfos", ".", "remove", "(", "v", ")", "return", "True",...
removes a classification break value to the renderer
[ "removes", "a", "classification", "break", "value", "to", "the", "renderer" ]
ab240fde2b0200f61d4a5f6df033516e53f2f416
https://github.com/Esri/ArcREST/blob/ab240fde2b0200f61d4a5f6df033516e53f2f416/src/arcrest/common/renderer.py#L416-L423
train
Esri/ArcREST
src/arcrest/ags/mapservice.py
MapService.downloadThumbnail
def downloadThumbnail(self, outPath): """downloads the items's thumbnail""" url = self._url + "/info/thumbnail" params = { } return self._get(url=url, out_folder=outPath, file_name=None, param_di...
python
def downloadThumbnail(self, outPath): """downloads the items's thumbnail""" url = self._url + "/info/thumbnail" params = { } return self._get(url=url, out_folder=outPath, file_name=None, param_di...
[ "def", "downloadThumbnail", "(", "self", ",", "outPath", ")", ":", "url", "=", "self", ".", "_url", "+", "\"/info/thumbnail\"", "params", "=", "{", "}", "return", "self", ".", "_get", "(", "url", "=", "url", ",", "out_folder", "=", "outPath", ",", "fil...
downloads the items's thumbnail
[ "downloads", "the", "items", "s", "thumbnail" ]
ab240fde2b0200f61d4a5f6df033516e53f2f416
https://github.com/Esri/ArcREST/blob/ab240fde2b0200f61d4a5f6df033516e53f2f416/src/arcrest/ags/mapservice.py#L92-L104
train
Esri/ArcREST
src/arcrest/ags/mapservice.py
MapService.__init
def __init(self): """ populates all the properties for the map service """ params = {"f": "json"} json_dict = self._get(self._url, params, securityHandler=self._securityHandler, proxy_port=self._proxy_port, ...
python
def __init(self): """ populates all the properties for the map service """ params = {"f": "json"} json_dict = self._get(self._url, params, securityHandler=self._securityHandler, proxy_port=self._proxy_port, ...
[ "def", "__init", "(", "self", ")", ":", "params", "=", "{", "\"f\"", ":", "\"json\"", "}", "json_dict", "=", "self", ".", "_get", "(", "self", ".", "_url", ",", "params", ",", "securityHandler", "=", "self", ".", "_securityHandler", ",", "proxy_port", ...
populates all the properties for the map service
[ "populates", "all", "the", "properties", "for", "the", "map", "service" ]
ab240fde2b0200f61d4a5f6df033516e53f2f416
https://github.com/Esri/ArcREST/blob/ab240fde2b0200f61d4a5f6df033516e53f2f416/src/arcrest/ags/mapservice.py#L132-L195
train
Esri/ArcREST
src/arcrest/ags/mapservice.py
MapService.getExtensions
def getExtensions(self): """returns objects for all map service extensions""" extensions = [] if isinstance(self.supportedExtensions, list): for ext in self.supportedExtensions: extensionURL = self._url + "/exts/%s" % ext if ext == "SchematicsServer": ...
python
def getExtensions(self): """returns objects for all map service extensions""" extensions = [] if isinstance(self.supportedExtensions, list): for ext in self.supportedExtensions: extensionURL = self._url + "/exts/%s" % ext if ext == "SchematicsServer": ...
[ "def", "getExtensions", "(", "self", ")", ":", "extensions", "=", "[", "]", "if", "isinstance", "(", "self", ".", "supportedExtensions", ",", "list", ")", ":", "for", "ext", "in", "self", ".", "supportedExtensions", ":", "extensionURL", "=", "self", ".", ...
returns objects for all map service extensions
[ "returns", "objects", "for", "all", "map", "service", "extensions" ]
ab240fde2b0200f61d4a5f6df033516e53f2f416
https://github.com/Esri/ArcREST/blob/ab240fde2b0200f61d4a5f6df033516e53f2f416/src/arcrest/ags/mapservice.py#L423-L442
train
Esri/ArcREST
src/arcrest/ags/mapservice.py
MapService.allLayers
def allLayers(self): """ returns all layers for the service """ url = self._url + "/layers" params = { "f" : "json" } res = self._get(url, param_dict=params, securityHandler=self._securityHandler, proxy_url=self._p...
python
def allLayers(self): """ returns all layers for the service """ url = self._url + "/layers" params = { "f" : "json" } res = self._get(url, param_dict=params, securityHandler=self._securityHandler, proxy_url=self._p...
[ "def", "allLayers", "(", "self", ")", ":", "url", "=", "self", ".", "_url", "+", "\"/layers\"", "params", "=", "{", "\"f\"", ":", "\"json\"", "}", "res", "=", "self", ".", "_get", "(", "url", ",", "param_dict", "=", "params", ",", "securityHandler", ...
returns all layers for the service
[ "returns", "all", "layers", "for", "the", "service" ]
ab240fde2b0200f61d4a5f6df033516e53f2f416
https://github.com/Esri/ArcREST/blob/ab240fde2b0200f61d4a5f6df033516e53f2f416/src/arcrest/ags/mapservice.py#L445-L477
train
Esri/ArcREST
src/arcrest/ags/mapservice.py
MapService.find
def find(self, searchText, layers, contains=True, searchFields="", sr="", layerDefs="", returnGeometry=True, maxAllowableOffset="", geometryPrecision="", dynamicLayers="", returnZ=False, returnM=False, gdbVersion=""): """ performs the map service ...
python
def find(self, searchText, layers, contains=True, searchFields="", sr="", layerDefs="", returnGeometry=True, maxAllowableOffset="", geometryPrecision="", dynamicLayers="", returnZ=False, returnM=False, gdbVersion=""): """ performs the map service ...
[ "def", "find", "(", "self", ",", "searchText", ",", "layers", ",", "contains", "=", "True", ",", "searchFields", "=", "\"\"", ",", "sr", "=", "\"\"", ",", "layerDefs", "=", "\"\"", ",", "returnGeometry", "=", "True", ",", "maxAllowableOffset", "=", "\"\"...
performs the map service find operation
[ "performs", "the", "map", "service", "find", "operation" ]
ab240fde2b0200f61d4a5f6df033516e53f2f416
https://github.com/Esri/ArcREST/blob/ab240fde2b0200f61d4a5f6df033516e53f2f416/src/arcrest/ags/mapservice.py#L479-L511
train
Esri/ArcREST
src/arcrest/ags/mapservice.py
MapService.getFeatureDynamicLayer
def getFeatureDynamicLayer(self, oid, dynamicLayer, returnZ=False, returnM=False): """ The feature resource represents a single feature in a dynamic layer in a map service """ url = self._url + "/dynamicLayer/%s" % oid params = { "f"...
python
def getFeatureDynamicLayer(self, oid, dynamicLayer, returnZ=False, returnM=False): """ The feature resource represents a single feature in a dynamic layer in a map service """ url = self._url + "/dynamicLayer/%s" % oid params = { "f"...
[ "def", "getFeatureDynamicLayer", "(", "self", ",", "oid", ",", "dynamicLayer", ",", "returnZ", "=", "False", ",", "returnM", "=", "False", ")", ":", "url", "=", "self", ".", "_url", "+", "\"/dynamicLayer/%s\"", "%", "oid", "params", "=", "{", "\"f\"", ":...
The feature resource represents a single feature in a dynamic layer in a map service
[ "The", "feature", "resource", "represents", "a", "single", "feature", "in", "a", "dynamic", "layer", "in", "a", "map", "service" ]
ab240fde2b0200f61d4a5f6df033516e53f2f416
https://github.com/Esri/ArcREST/blob/ab240fde2b0200f61d4a5f6df033516e53f2f416/src/arcrest/ags/mapservice.py#L524-L545
train
Esri/ArcREST
src/arcrest/ags/mapservice.py
MapService.identify
def identify(self, geometry, mapExtent, imageDisplay, tolerance, geometryType="esriGeometryPoint", sr=None, layerDefs=None, time=None, layerTimeOptions=None, ...
python
def identify(self, geometry, mapExtent, imageDisplay, tolerance, geometryType="esriGeometryPoint", sr=None, layerDefs=None, time=None, layerTimeOptions=None, ...
[ "def", "identify", "(", "self", ",", "geometry", ",", "mapExtent", ",", "imageDisplay", ",", "tolerance", ",", "geometryType", "=", "\"esriGeometryPoint\"", ",", "sr", "=", "None", ",", "layerDefs", "=", "None", ",", "time", "=", "None", ",", "layerTimeOptio...
The identify operation is performed on a map service resource to discover features at a geographic location. The result of this operation is an identify results resource. Each identified result includes its name, layer ID, layer name, geometry and geometry type, and other...
[ "The", "identify", "operation", "is", "performed", "on", "a", "map", "service", "resource", "to", "discover", "features", "at", "a", "geographic", "location", ".", "The", "result", "of", "this", "operation", "is", "an", "identify", "results", "resource", ".", ...
ab240fde2b0200f61d4a5f6df033516e53f2f416
https://github.com/Esri/ArcREST/blob/ab240fde2b0200f61d4a5f6df033516e53f2f416/src/arcrest/ags/mapservice.py#L547-L708
train
Esri/ArcREST
src/arcrest/manageags/parameters.py
Extension.fromJSON
def fromJSON(value): """returns the object from json string or dictionary""" if isinstance(value, str): value = json.loads(value) elif isinstance(value, dict): pass else: raise AttributeError("Invalid input") return Extension(typeName=value['typeName'], ...
python
def fromJSON(value): """returns the object from json string or dictionary""" if isinstance(value, str): value = json.loads(value) elif isinstance(value, dict): pass else: raise AttributeError("Invalid input") return Extension(typeName=value['typeName'], ...
[ "def", "fromJSON", "(", "value", ")", ":", "if", "isinstance", "(", "value", ",", "str", ")", ":", "value", "=", "json", ".", "loads", "(", "value", ")", "elif", "isinstance", "(", "value", ",", "dict", ")", ":", "pass", "else", ":", "raise", "Attr...
returns the object from json string or dictionary
[ "returns", "the", "object", "from", "json", "string", "or", "dictionary" ]
ab240fde2b0200f61d4a5f6df033516e53f2f416
https://github.com/Esri/ArcREST/blob/ab240fde2b0200f61d4a5f6df033516e53f2f416/src/arcrest/manageags/parameters.py#L110-L122
train
Esri/ArcREST
src/arcrest/webmap/symbols.py
Color.asList
def asList(self): """ returns the value as the list object""" return [self._red, self._green, self._blue, self._alpha]
python
def asList(self): """ returns the value as the list object""" return [self._red, self._green, self._blue, self._alpha]
[ "def", "asList", "(", "self", ")", ":", "return", "[", "self", ".", "_red", ",", "self", ".", "_green", ",", "self", ".", "_blue", ",", "self", ".", "_alpha", "]" ]
returns the value as the list object
[ "returns", "the", "value", "as", "the", "list", "object" ]
ab240fde2b0200f61d4a5f6df033516e53f2f416
https://github.com/Esri/ArcREST/blob/ab240fde2b0200f61d4a5f6df033516e53f2f416/src/arcrest/webmap/symbols.py#L77-L79
train
Esri/ArcREST
src/arcrest/webmap/symbols.py
SimpleMarkerSymbol.color
def color(self, value): """ sets the color """ if isinstance(value, (list, Color)): if value is list: self._color = value else: self._color = value.asList
python
def color(self, value): """ sets the color """ if isinstance(value, (list, Color)): if value is list: self._color = value else: self._color = value.asList
[ "def", "color", "(", "self", ",", "value", ")", ":", "if", "isinstance", "(", "value", ",", "(", "list", ",", "Color", ")", ")", ":", "if", "value", "is", "list", ":", "self", ".", "_color", "=", "value", "else", ":", "self", ".", "_color", "=", ...
sets the color
[ "sets", "the", "color" ]
ab240fde2b0200f61d4a5f6df033516e53f2f416
https://github.com/Esri/ArcREST/blob/ab240fde2b0200f61d4a5f6df033516e53f2f416/src/arcrest/webmap/symbols.py#L157-L163
train
Esri/ArcREST
src/arcrest/webmap/symbols.py
SimpleMarkerSymbol.outlineColor
def outlineColor(self, value): """ sets the outline color """ if isinstance(value, (list, Color)): if value is list: self._outlineColor = value else: self._outlineColor = value.asList
python
def outlineColor(self, value): """ sets the outline color """ if isinstance(value, (list, Color)): if value is list: self._outlineColor = value else: self._outlineColor = value.asList
[ "def", "outlineColor", "(", "self", ",", "value", ")", ":", "if", "isinstance", "(", "value", ",", "(", "list", ",", "Color", ")", ")", ":", "if", "value", "is", "list", ":", "self", ".", "_outlineColor", "=", "value", "else", ":", "self", ".", "_o...
sets the outline color
[ "sets", "the", "outline", "color" ]
ab240fde2b0200f61d4a5f6df033516e53f2f416
https://github.com/Esri/ArcREST/blob/ab240fde2b0200f61d4a5f6df033516e53f2f416/src/arcrest/webmap/symbols.py#L229-L235
train
Esri/ArcREST
src/arcrest/webmap/symbols.py
SimpleFillSymbol.outline
def outline(self, value): """ sets the outline """ if isinstance(value, SimpleLineSymbol): self._outline = value.asDictionary
python
def outline(self, value): """ sets the outline """ if isinstance(value, SimpleLineSymbol): self._outline = value.asDictionary
[ "def", "outline", "(", "self", ",", "value", ")", ":", "if", "isinstance", "(", "value", ",", "SimpleLineSymbol", ")", ":", "self", ".", "_outline", "=", "value", ".", "asDictionary" ]
sets the outline
[ "sets", "the", "outline" ]
ab240fde2b0200f61d4a5f6df033516e53f2f416
https://github.com/Esri/ArcREST/blob/ab240fde2b0200f61d4a5f6df033516e53f2f416/src/arcrest/webmap/symbols.py#L389-L392
train
Esri/ArcREST
src/arcrest/webmap/symbols.py
PictureMarkerSymbol.base64ToImage
def base64ToImage(imgData, out_path, out_file): """ converts a base64 string to a file """ fh = open(os.path.join(out_path, out_file), "wb") fh.write(imgData.decode('base64')) fh.close() del fh return os.path.join(out_path, out_file)
python
def base64ToImage(imgData, out_path, out_file): """ converts a base64 string to a file """ fh = open(os.path.join(out_path, out_file), "wb") fh.write(imgData.decode('base64')) fh.close() del fh return os.path.join(out_path, out_file)
[ "def", "base64ToImage", "(", "imgData", ",", "out_path", ",", "out_file", ")", ":", "fh", "=", "open", "(", "os", ".", "path", ".", "join", "(", "out_path", ",", "out_file", ")", ",", "\"wb\"", ")", "fh", ".", "write", "(", "imgData", ".", "decode", ...
converts a base64 string to a file
[ "converts", "a", "base64", "string", "to", "a", "file" ]
ab240fde2b0200f61d4a5f6df033516e53f2f416
https://github.com/Esri/ArcREST/blob/ab240fde2b0200f61d4a5f6df033516e53f2f416/src/arcrest/webmap/symbols.py#L448-L454
train
Esri/ArcREST
src/arcrest/ags/_geocodeservice.py
GeocodeService.find
def find(self, text, magicKey=None, sourceCountry=None, bbox=None, location=None, distance=3218.69, outSR=102100, category=None, outFields="*", maxLocations=20, forStorage=False...
python
def find(self, text, magicKey=None, sourceCountry=None, bbox=None, location=None, distance=3218.69, outSR=102100, category=None, outFields="*", maxLocations=20, forStorage=False...
[ "def", "find", "(", "self", ",", "text", ",", "magicKey", "=", "None", ",", "sourceCountry", "=", "None", ",", "bbox", "=", "None", ",", "location", "=", "None", ",", "distance", "=", "3218.69", ",", "outSR", "=", "102100", ",", "category", "=", "Non...
The find operation geocodes one location per request; the input address is specified in a single parameter. Inputs: text - Specifies the location to be geocoded. This can be a street address, place name, postal code, or POI. magicKey - The find operation retrieves resu...
[ "The", "find", "operation", "geocodes", "one", "location", "per", "request", ";", "the", "input", "address", "is", "specified", "in", "a", "single", "parameter", "." ]
ab240fde2b0200f61d4a5f6df033516e53f2f416
https://github.com/Esri/ArcREST/blob/ab240fde2b0200f61d4a5f6df033516e53f2f416/src/arcrest/ags/_geocodeservice.py#L160-L261
train
Esri/ArcREST
src/arcrest/ags/_geocodeservice.py
GeocodeService.geocodeAddresses
def geocodeAddresses(self, addresses, outSR=4326, sourceCountry=None, category=None): """ The geocodeAddresses operation is performed on a Geocode Service resource. The result of this operation is...
python
def geocodeAddresses(self, addresses, outSR=4326, sourceCountry=None, category=None): """ The geocodeAddresses operation is performed on a Geocode Service resource. The result of this operation is...
[ "def", "geocodeAddresses", "(", "self", ",", "addresses", ",", "outSR", "=", "4326", ",", "sourceCountry", "=", "None", ",", "category", "=", "None", ")", ":", "params", "=", "{", "\"f\"", ":", "\"json\"", "}", "url", "=", "self", ".", "_url", "+", "...
The geocodeAddresses operation is performed on a Geocode Service resource. The result of this operation is a resource representing the list of geocoded addresses. This resource provides information about the addresses including the address, location, score, and other geocode service-spec...
[ "The", "geocodeAddresses", "operation", "is", "performed", "on", "a", "Geocode", "Service", "resource", ".", "The", "result", "of", "this", "operation", "is", "a", "resource", "representing", "the", "list", "of", "geocoded", "addresses", ".", "This", "resource",...
ab240fde2b0200f61d4a5f6df033516e53f2f416
https://github.com/Esri/ArcREST/blob/ab240fde2b0200f61d4a5f6df033516e53f2f416/src/arcrest/ags/_geocodeservice.py#L422-L491
train
Esri/ArcREST
src/arcrest/ags/_networkservice.py
NetworkService.__init
def __init(self): """ initializes the properties """ params = { "f" : "json", } json_dict = self._get(self._url, params, securityHandler=self._securityHandler, proxy_url=self._proxy_url, ...
python
def __init(self): """ initializes the properties """ params = { "f" : "json", } json_dict = self._get(self._url, params, securityHandler=self._securityHandler, proxy_url=self._proxy_url, ...
[ "def", "__init", "(", "self", ")", ":", "params", "=", "{", "\"f\"", ":", "\"json\"", ",", "}", "json_dict", "=", "self", ".", "_get", "(", "self", ".", "_url", ",", "params", ",", "securityHandler", "=", "self", ".", "_securityHandler", ",", "proxy_ur...
initializes the properties
[ "initializes", "the", "properties" ]
ab240fde2b0200f61d4a5f6df033516e53f2f416
https://github.com/Esri/ArcREST/blob/ab240fde2b0200f61d4a5f6df033516e53f2f416/src/arcrest/ags/_networkservice.py#L47-L96
train
Esri/ArcREST
src/arcrest/ags/_networkservice.py
RouteNetworkLayer.__init
def __init(self): """ initializes all the properties """ params = { "f" : "json" } json_dict = self._get(url=self._url, param_dict=params, securityHandler=self._securityHandler, proxy_url=self._proxy_url, ...
python
def __init(self): """ initializes all the properties """ params = { "f" : "json" } json_dict = self._get(url=self._url, param_dict=params, securityHandler=self._securityHandler, proxy_url=self._proxy_url, ...
[ "def", "__init", "(", "self", ")", ":", "params", "=", "{", "\"f\"", ":", "\"json\"", "}", "json_dict", "=", "self", ".", "_get", "(", "url", "=", "self", ".", "_url", ",", "param_dict", "=", "params", ",", "securityHandler", "=", "self", ".", "_secu...
initializes all the properties
[ "initializes", "all", "the", "properties" ]
ab240fde2b0200f61d4a5f6df033516e53f2f416
https://github.com/Esri/ArcREST/blob/ab240fde2b0200f61d4a5f6df033516e53f2f416/src/arcrest/ags/_networkservice.py#L440-L457
train
Esri/ArcREST
src/arcrest/ags/_uploads.py
Uploads.download
def download(self, itemID, savePath): """ downloads an item to local disk Inputs: itemID - unique id of item to download savePath - folder to save the file in """ if os.path.isdir(savePath) == False: os.makedirs(savePath) url = self._url...
python
def download(self, itemID, savePath): """ downloads an item to local disk Inputs: itemID - unique id of item to download savePath - folder to save the file in """ if os.path.isdir(savePath) == False: os.makedirs(savePath) url = self._url...
[ "def", "download", "(", "self", ",", "itemID", ",", "savePath", ")", ":", "if", "os", ".", "path", ".", "isdir", "(", "savePath", ")", "==", "False", ":", "os", ".", "makedirs", "(", "savePath", ")", "url", "=", "self", ".", "_url", "+", "\"/%s/dow...
downloads an item to local disk Inputs: itemID - unique id of item to download savePath - folder to save the file in
[ "downloads", "an", "item", "to", "local", "disk" ]
ab240fde2b0200f61d4a5f6df033516e53f2f416
https://github.com/Esri/ArcREST/blob/ab240fde2b0200f61d4a5f6df033516e53f2f416/src/arcrest/ags/_uploads.py#L109-L129
train
Esri/ArcREST
src/arcrest/manageags/_usagereports.py
UsageReports.reports
def reports(self): """returns a list of reports on the server""" if self._metrics is None: self.__init() self._reports = [] for r in self._metrics: url = self._url + "/%s" % six.moves.urllib.parse.quote_plus(r['reportname']) self._reports.append(UsageR...
python
def reports(self): """returns a list of reports on the server""" if self._metrics is None: self.__init() self._reports = [] for r in self._metrics: url = self._url + "/%s" % six.moves.urllib.parse.quote_plus(r['reportname']) self._reports.append(UsageR...
[ "def", "reports", "(", "self", ")", ":", "if", "self", ".", "_metrics", "is", "None", ":", "self", ".", "__init", "(", ")", "self", ".", "_reports", "=", "[", "]", "for", "r", "in", "self", ".", "_metrics", ":", "url", "=", "self", ".", "_url", ...
returns a list of reports on the server
[ "returns", "a", "list", "of", "reports", "on", "the", "server" ]
ab240fde2b0200f61d4a5f6df033516e53f2f416
https://github.com/Esri/ArcREST/blob/ab240fde2b0200f61d4a5f6df033516e53f2f416/src/arcrest/manageags/_usagereports.py#L70-L83
train
Esri/ArcREST
src/arcrest/manageags/_usagereports.py
UsageReports.editUsageReportSettings
def editUsageReportSettings(self, samplingInterval, enabled=True, maxHistory=0): """ The usage reports settings are applied to the entire site. A POST request updates the usage reports settings. Inputs: samplingInterval - Defines the duration (...
python
def editUsageReportSettings(self, samplingInterval, enabled=True, maxHistory=0): """ The usage reports settings are applied to the entire site. A POST request updates the usage reports settings. Inputs: samplingInterval - Defines the duration (...
[ "def", "editUsageReportSettings", "(", "self", ",", "samplingInterval", ",", "enabled", "=", "True", ",", "maxHistory", "=", "0", ")", ":", "params", "=", "{", "\"f\"", ":", "\"json\"", ",", "\"maxHistory\"", ":", "maxHistory", ",", "\"enabled\"", ":", "enab...
The usage reports settings are applied to the entire site. A POST request updates the usage reports settings. Inputs: samplingInterval - Defines the duration (in minutes) for which the usage statistics are aggregated or sampled, in-memory, before being written out t...
[ "The", "usage", "reports", "settings", "are", "applied", "to", "the", "entire", "site", ".", "A", "POST", "request", "updates", "the", "usage", "reports", "settings", "." ]
ab240fde2b0200f61d4a5f6df033516e53f2f416
https://github.com/Esri/ArcREST/blob/ab240fde2b0200f61d4a5f6df033516e53f2f416/src/arcrest/manageags/_usagereports.py#L110-L140
train
Esri/ArcREST
src/arcrest/manageags/_usagereports.py
UsageReports.createUsageReport
def createUsageReport(self, reportname, queries, metadata, since="LAST_DAY", fromValue=None, toValue=None, aggregationInterval=None ...
python
def createUsageReport(self, reportname, queries, metadata, since="LAST_DAY", fromValue=None, toValue=None, aggregationInterval=None ...
[ "def", "createUsageReport", "(", "self", ",", "reportname", ",", "queries", ",", "metadata", ",", "since", "=", "\"LAST_DAY\"", ",", "fromValue", "=", "None", ",", "toValue", "=", "None", ",", "aggregationInterval", "=", "None", ")", ":", "url", "=", "self...
Creates a new usage report. A usage report is created by submitting a JSON representation of the usage report to this operation. Inputs: reportname - the unique name of the report since - the time duration of the report. The supported values are: LAST_DAY, LAST_WEEK,...
[ "Creates", "a", "new", "usage", "report", ".", "A", "usage", "report", "is", "created", "by", "submitting", "a", "JSON", "representation", "of", "the", "usage", "report", "to", "this", "operation", "." ]
ab240fde2b0200f61d4a5f6df033516e53f2f416
https://github.com/Esri/ArcREST/blob/ab240fde2b0200f61d4a5f6df033516e53f2f416/src/arcrest/manageags/_usagereports.py#L142-L273
train
Esri/ArcREST
src/arcrest/manageags/_usagereports.py
UsageReport.edit
def edit(self): """ Edits the usage report. To edit a usage report, you need to submit the complete JSON representation of the usage report which includes updates to the usage report properties. The name of the report cannot be changed when editing the usage report. Valu...
python
def edit(self): """ Edits the usage report. To edit a usage report, you need to submit the complete JSON representation of the usage report which includes updates to the usage report properties. The name of the report cannot be changed when editing the usage report. Valu...
[ "def", "edit", "(", "self", ")", ":", "usagereport_dict", "=", "{", "\"reportname\"", ":", "self", ".", "reportname", ",", "\"queries\"", ":", "self", ".", "_queries", ",", "\"since\"", ":", "self", ".", "since", ",", "\"metadata\"", ":", "self", ".", "_...
Edits the usage report. To edit a usage report, you need to submit the complete JSON representation of the usage report which includes updates to the usage report properties. The name of the report cannot be changed when editing the usage report. Values are changed in the class, to edit...
[ "Edits", "the", "usage", "report", ".", "To", "edit", "a", "usage", "report", "you", "need", "to", "submit", "the", "complete", "JSON", "representation", "of", "the", "usage", "report", "which", "includes", "updates", "to", "the", "usage", "report", "propert...
ab240fde2b0200f61d4a5f6df033516e53f2f416
https://github.com/Esri/ArcREST/blob/ab240fde2b0200f61d4a5f6df033516e53f2f416/src/arcrest/manageags/_usagereports.py#L419-L452
train
Esri/ArcREST
src/arcrest/ags/_geodataservice.py
GeoDataService.__init
def __init(self): """ inializes the properties """ params = { "f" : "json", } json_dict = self._get(self._url, params, securityHandler=self._securityHandler, proxy_url=self._proxy_url, ...
python
def __init(self): """ inializes the properties """ params = { "f" : "json", } json_dict = self._get(self._url, params, securityHandler=self._securityHandler, proxy_url=self._proxy_url, ...
[ "def", "__init", "(", "self", ")", ":", "params", "=", "{", "\"f\"", ":", "\"json\"", ",", "}", "json_dict", "=", "self", ".", "_get", "(", "self", ".", "_url", ",", "params", ",", "securityHandler", "=", "self", ".", "_securityHandler", ",", "proxy_ur...
inializes the properties
[ "inializes", "the", "properties" ]
ab240fde2b0200f61d4a5f6df033516e53f2f416
https://github.com/Esri/ArcREST/blob/ab240fde2b0200f61d4a5f6df033516e53f2f416/src/arcrest/ags/_geodataservice.py#L36-L73
train
Esri/ArcREST
src/arcrest/ags/_geodataservice.py
GeoDataService.replicasResource
def replicasResource(self): """returns a list of replices""" if self._replicasResource is None: self._replicasResource = {} for replica in self.replicas: self._replicasResource["replicaName"] = replica.name self._replicasResource["replicaID"] = rep...
python
def replicasResource(self): """returns a list of replices""" if self._replicasResource is None: self._replicasResource = {} for replica in self.replicas: self._replicasResource["replicaName"] = replica.name self._replicasResource["replicaID"] = rep...
[ "def", "replicasResource", "(", "self", ")", ":", "if", "self", ".", "_replicasResource", "is", "None", ":", "self", ".", "_replicasResource", "=", "{", "}", "for", "replica", "in", "self", ".", "replicas", ":", "self", ".", "_replicasResource", "[", "\"re...
returns a list of replices
[ "returns", "a", "list", "of", "replices" ]
ab240fde2b0200f61d4a5f6df033516e53f2f416
https://github.com/Esri/ArcREST/blob/ab240fde2b0200f61d4a5f6df033516e53f2f416/src/arcrest/ags/_geodataservice.py#L111-L118
train
Esri/ArcREST
src/arcrest/hostedservice/service.py
Services.services
def services(self): """ returns all the service objects in the admin service's page """ self._services = [] params = {"f": "json"} if not self._url.endswith('/services'): uURL = self._url + "/services" else: uURL = self._url res = self._get(url=uUR...
python
def services(self): """ returns all the service objects in the admin service's page """ self._services = [] params = {"f": "json"} if not self._url.endswith('/services'): uURL = self._url + "/services" else: uURL = self._url res = self._get(url=uUR...
[ "def", "services", "(", "self", ")", ":", "self", ".", "_services", "=", "[", "]", "params", "=", "{", "\"f\"", ":", "\"json\"", "}", "if", "not", "self", ".", "_url", ".", "endswith", "(", "'/services'", ")", ":", "uURL", "=", "self", ".", "_url",...
returns all the service objects in the admin service's page
[ "returns", "all", "the", "service", "objects", "in", "the", "admin", "service", "s", "page" ]
ab240fde2b0200f61d4a5f6df033516e53f2f416
https://github.com/Esri/ArcREST/blob/ab240fde2b0200f61d4a5f6df033516e53f2f416/src/arcrest/hostedservice/service.py#L144-L170
train
Esri/ArcREST
src/arcrest/hostedservice/service.py
AdminMapService.refresh
def refresh(self, serviceDefinition=True): """ The refresh operation refreshes a service, which clears the web server cache for the service. """ url = self._url + "/MapServer/refresh" params = { "f" : "json", "serviceDefinition" : serviceDefinition...
python
def refresh(self, serviceDefinition=True): """ The refresh operation refreshes a service, which clears the web server cache for the service. """ url = self._url + "/MapServer/refresh" params = { "f" : "json", "serviceDefinition" : serviceDefinition...
[ "def", "refresh", "(", "self", ",", "serviceDefinition", "=", "True", ")", ":", "url", "=", "self", ".", "_url", "+", "\"/MapServer/refresh\"", "params", "=", "{", "\"f\"", ":", "\"json\"", ",", "\"serviceDefinition\"", ":", "serviceDefinition", "}", "res", ...
The refresh operation refreshes a service, which clears the web server cache for the service.
[ "The", "refresh", "operation", "refreshes", "a", "service", "which", "clears", "the", "web", "server", "cache", "for", "the", "service", "." ]
ab240fde2b0200f61d4a5f6df033516e53f2f416
https://github.com/Esri/ArcREST/blob/ab240fde2b0200f61d4a5f6df033516e53f2f416/src/arcrest/hostedservice/service.py#L535-L552
train
Esri/ArcREST
src/arcrest/hostedservice/service.py
AdminMapService.editTileService
def editTileService(self, serviceDefinition=None, minScale=None, maxScale=None, sourceItemId=None, exportTilesAllowed=False, maxExportTileCount=100000): """ Thi...
python
def editTileService(self, serviceDefinition=None, minScale=None, maxScale=None, sourceItemId=None, exportTilesAllowed=False, maxExportTileCount=100000): """ Thi...
[ "def", "editTileService", "(", "self", ",", "serviceDefinition", "=", "None", ",", "minScale", "=", "None", ",", "maxScale", "=", "None", ",", "sourceItemId", "=", "None", ",", "exportTilesAllowed", "=", "False", ",", "maxExportTileCount", "=", "100000", ")", ...
This post operation updates a Tile Service's properties Inputs: serviceDefinition - updates a service definition minScale - sets the services minimum scale for caching maxScale - sets the service's maximum scale for caching sourceItemId - The Source Item ID is the Ge...
[ "This", "post", "operation", "updates", "a", "Tile", "Service", "s", "properties" ]
ab240fde2b0200f61d4a5f6df033516e53f2f416
https://github.com/Esri/ArcREST/blob/ab240fde2b0200f61d4a5f6df033516e53f2f416/src/arcrest/hostedservice/service.py#L591-L630
train
Esri/ArcREST
src/arcrest/hostedservice/service.py
AdminFeatureService.refresh
def refresh(self): """ refreshes a service """ params = {"f": "json"} uURL = self._url + "/refresh" res = self._get(url=uURL, param_dict=params, securityHandler=self._securityHandler, proxy_port=self._proxy_port, ...
python
def refresh(self): """ refreshes a service """ params = {"f": "json"} uURL = self._url + "/refresh" res = self._get(url=uURL, param_dict=params, securityHandler=self._securityHandler, proxy_port=self._proxy_port, ...
[ "def", "refresh", "(", "self", ")", ":", "params", "=", "{", "\"f\"", ":", "\"json\"", "}", "uURL", "=", "self", ".", "_url", "+", "\"/refresh\"", "res", "=", "self", ".", "_get", "(", "url", "=", "uURL", ",", "param_dict", "=", "params", ",", "sec...
refreshes a service
[ "refreshes", "a", "service" ]
ab240fde2b0200f61d4a5f6df033516e53f2f416
https://github.com/Esri/ArcREST/blob/ab240fde2b0200f61d4a5f6df033516e53f2f416/src/arcrest/hostedservice/service.py#L822-L831
train
Esri/ArcREST
src/arcrest/hostedservice/service.py
AdminFeatureService.addToDefinition
def addToDefinition(self, json_dict): """ The addToDefinition operation supports adding a definition property to a hosted feature service. The result of this operation is a response indicating success or failure with error code and description. This functi...
python
def addToDefinition(self, json_dict): """ The addToDefinition operation supports adding a definition property to a hosted feature service. The result of this operation is a response indicating success or failure with error code and description. This functi...
[ "def", "addToDefinition", "(", "self", ",", "json_dict", ")", ":", "params", "=", "{", "\"f\"", ":", "\"json\"", ",", "\"addToDefinition\"", ":", "json", ".", "dumps", "(", "json_dict", ")", ",", "\"async\"", ":", "False", "}", "uURL", "=", "self", ".", ...
The addToDefinition operation supports adding a definition property to a hosted feature service. The result of this operation is a response indicating success or failure with error code and description. This function will allow users to change add additional values ...
[ "The", "addToDefinition", "operation", "supports", "adding", "a", "definition", "property", "to", "a", "hosted", "feature", "service", ".", "The", "result", "of", "this", "operation", "is", "a", "response", "indicating", "success", "or", "failure", "with", "erro...
ab240fde2b0200f61d4a5f6df033516e53f2f416
https://github.com/Esri/ArcREST/blob/ab240fde2b0200f61d4a5f6df033516e53f2f416/src/arcrest/hostedservice/service.py#L1025-L1054
train
Esri/ArcREST
src/arcrest/hostedservice/service.py
AdminFeatureService.updateDefinition
def updateDefinition(self, json_dict): """ The updateDefinition operation supports updating a definition property in a hosted feature service. The result of this operation is a response indicating success or failure with error code and description. Input: ...
python
def updateDefinition(self, json_dict): """ The updateDefinition operation supports updating a definition property in a hosted feature service. The result of this operation is a response indicating success or failure with error code and description. Input: ...
[ "def", "updateDefinition", "(", "self", ",", "json_dict", ")", ":", "definition", "=", "None", "if", "json_dict", "is", "not", "None", ":", "if", "isinstance", "(", "json_dict", ",", "collections", ".", "OrderedDict", ")", "==", "True", ":", "definition", ...
The updateDefinition operation supports updating a definition property in a hosted feature service. The result of this operation is a response indicating success or failure with error code and description. Input: json_dict - part to add to host service. The pa...
[ "The", "updateDefinition", "operation", "supports", "updating", "a", "definition", "property", "in", "a", "hosted", "feature", "service", ".", "The", "result", "of", "this", "operation", "is", "a", "response", "indicating", "success", "or", "failure", "with", "e...
ab240fde2b0200f61d4a5f6df033516e53f2f416
https://github.com/Esri/ArcREST/blob/ab240fde2b0200f61d4a5f6df033516e53f2f416/src/arcrest/hostedservice/service.py#L1056-L1120
train
Esri/ArcREST
src/arcrest/packages/ntlm3/ntlm.py
calc_resp
def calc_resp(password_hash, server_challenge): """calc_resp generates the LM response given a 16-byte password hash and the challenge from the Type-2 message. @param password_hash 16-byte password hash @param server_challenge 8-byte challenge from Type-2 message ...
python
def calc_resp(password_hash, server_challenge): """calc_resp generates the LM response given a 16-byte password hash and the challenge from the Type-2 message. @param password_hash 16-byte password hash @param server_challenge 8-byte challenge from Type-2 message ...
[ "def", "calc_resp", "(", "password_hash", ",", "server_challenge", ")", ":", "# padding with zeros to make the hash 21 bytes long", "password_hash", "+=", "b'\\0'", "*", "(", "21", "-", "len", "(", "password_hash", ")", ")", "res", "=", "b''", "dobj", "=", "des", ...
calc_resp generates the LM response given a 16-byte password hash and the challenge from the Type-2 message. @param password_hash 16-byte password hash @param server_challenge 8-byte challenge from Type-2 message returns 24-byte buffer to contain the L...
[ "calc_resp", "generates", "the", "LM", "response", "given", "a", "16", "-", "byte", "password", "hash", "and", "the", "challenge", "from", "the", "Type", "-", "2", "message", "." ]
ab240fde2b0200f61d4a5f6df033516e53f2f416
https://github.com/Esri/ArcREST/blob/ab240fde2b0200f61d4a5f6df033516e53f2f416/src/arcrest/packages/ntlm3/ntlm.py#L323-L345
train
Esri/ArcREST
src/arcrest/packages/ntlm3/ntlm.py
create_LM_hashed_password_v1
def create_LM_hashed_password_v1(passwd): """create LanManager hashed password""" # if the passwd provided is already a hash, we just return the first half if re.match(r'^[\w]{32}:[\w]{32}$', passwd): return binascii.unhexlify(passwd.split(':')[0]) # fix the password length to 14 bytes pas...
python
def create_LM_hashed_password_v1(passwd): """create LanManager hashed password""" # if the passwd provided is already a hash, we just return the first half if re.match(r'^[\w]{32}:[\w]{32}$', passwd): return binascii.unhexlify(passwd.split(':')[0]) # fix the password length to 14 bytes pas...
[ "def", "create_LM_hashed_password_v1", "(", "passwd", ")", ":", "# if the passwd provided is already a hash, we just return the first half", "if", "re", ".", "match", "(", "r'^[\\w]{32}:[\\w]{32}$'", ",", "passwd", ")", ":", "return", "binascii", ".", "unhexlify", "(", "p...
create LanManager hashed password
[ "create", "LanManager", "hashed", "password" ]
ab240fde2b0200f61d4a5f6df033516e53f2f416
https://github.com/Esri/ArcREST/blob/ab240fde2b0200f61d4a5f6df033516e53f2f416/src/arcrest/packages/ntlm3/ntlm.py#L372-L394
train
Esri/ArcREST
src/arcrest/enrichment/_geoenrichment.py
GeoEnrichment._readcsv
def _readcsv(self, path_to_csv): """reads a csv column""" return np.genfromtxt(path_to_csv, dtype=None, delimiter=',', names=True)
python
def _readcsv(self, path_to_csv): """reads a csv column""" return np.genfromtxt(path_to_csv, dtype=None, delimiter=',', names=True)
[ "def", "_readcsv", "(", "self", ",", "path_to_csv", ")", ":", "return", "np", ".", "genfromtxt", "(", "path_to_csv", ",", "dtype", "=", "None", ",", "delimiter", "=", "','", ",", "names", "=", "True", ")" ]
reads a csv column
[ "reads", "a", "csv", "column" ]
ab240fde2b0200f61d4a5f6df033516e53f2f416
https://github.com/Esri/ArcREST/blob/ab240fde2b0200f61d4a5f6df033516e53f2f416/src/arcrest/enrichment/_geoenrichment.py#L56-L61
train
Esri/ArcREST
src/arcrest/enrichment/_geoenrichment.py
GeoEnrichment.queryDataCollectionByName
def queryDataCollectionByName(self, countryName): """ returns a list of available data collections for a given country name. Inputs: countryName - name of the country to file the data collection. Output: list or None. None implies could not find the country...
python
def queryDataCollectionByName(self, countryName): """ returns a list of available data collections for a given country name. Inputs: countryName - name of the country to file the data collection. Output: list or None. None implies could not find the country...
[ "def", "queryDataCollectionByName", "(", "self", ",", "countryName", ")", ":", "var", "=", "self", ".", "_dataCollectionCodes", "try", ":", "return", "[", "x", "[", "0", "]", "for", "x", "in", "var", "[", "var", "[", "'Countries'", "]", "==", "countryNam...
returns a list of available data collections for a given country name. Inputs: countryName - name of the country to file the data collection. Output: list or None. None implies could not find the countryName
[ "returns", "a", "list", "of", "available", "data", "collections", "for", "a", "given", "country", "name", "." ]
ab240fde2b0200f61d4a5f6df033516e53f2f416
https://github.com/Esri/ArcREST/blob/ab240fde2b0200f61d4a5f6df033516e53f2f416/src/arcrest/enrichment/_geoenrichment.py#L83-L97
train
Esri/ArcREST
src/arcrest/enrichment/_geoenrichment.py
GeoEnrichment.__geometryToDict
def __geometryToDict(self, geom): """converts a geometry object to a dictionary""" if isinstance(geom, dict): return geom elif isinstance(geom, Point): pt = geom.asDictionary return {"geometry": {"x" : pt['x'], "y" : pt['y']}} elif isinstance(geom, Pol...
python
def __geometryToDict(self, geom): """converts a geometry object to a dictionary""" if isinstance(geom, dict): return geom elif isinstance(geom, Point): pt = geom.asDictionary return {"geometry": {"x" : pt['x'], "y" : pt['y']}} elif isinstance(geom, Pol...
[ "def", "__geometryToDict", "(", "self", ",", "geom", ")", ":", "if", "isinstance", "(", "geom", ",", "dict", ")", ":", "return", "geom", "elif", "isinstance", "(", "geom", ",", "Point", ")", ":", "pt", "=", "geom", ".", "asDictionary", "return", "{", ...
converts a geometry object to a dictionary
[ "converts", "a", "geometry", "object", "to", "a", "dictionary" ]
ab240fde2b0200f61d4a5f6df033516e53f2f416
https://github.com/Esri/ArcREST/blob/ab240fde2b0200f61d4a5f6df033516e53f2f416/src/arcrest/enrichment/_geoenrichment.py#L129-L145
train
Esri/ArcREST
src/arcrest/enrichment/_geoenrichment.py
GeoEnrichment.lookUpReportsByCountry
def lookUpReportsByCountry(self, countryName): """ looks up a country by it's name Inputs countryName - name of the country to get reports list. """ code = self.findCountryTwoDigitCode(countryName) if code is None: raise Exception("Invalid country...
python
def lookUpReportsByCountry(self, countryName): """ looks up a country by it's name Inputs countryName - name of the country to get reports list. """ code = self.findCountryTwoDigitCode(countryName) if code is None: raise Exception("Invalid country...
[ "def", "lookUpReportsByCountry", "(", "self", ",", "countryName", ")", ":", "code", "=", "self", ".", "findCountryTwoDigitCode", "(", "countryName", ")", "if", "code", "is", "None", ":", "raise", "Exception", "(", "\"Invalid country name.\"", ")", "url", "=", ...
looks up a country by it's name Inputs countryName - name of the country to get reports list.
[ "looks", "up", "a", "country", "by", "it", "s", "name", "Inputs", "countryName", "-", "name", "of", "the", "country", "to", "get", "reports", "list", "." ]
ab240fde2b0200f61d4a5f6df033516e53f2f416
https://github.com/Esri/ArcREST/blob/ab240fde2b0200f61d4a5f6df033516e53f2f416/src/arcrest/enrichment/_geoenrichment.py#L147-L166
train
Esri/ArcREST
src/arcrest/enrichment/_geoenrichment.py
GeoEnrichment.createReport
def createReport(self, out_file_path, studyAreas, report=None, format="PDF", reportFields=None, studyAreasOptions=None, useData=None, inSR=4326, ...
python
def createReport(self, out_file_path, studyAreas, report=None, format="PDF", reportFields=None, studyAreasOptions=None, useData=None, inSR=4326, ...
[ "def", "createReport", "(", "self", ",", "out_file_path", ",", "studyAreas", ",", "report", "=", "None", ",", "format", "=", "\"PDF\"", ",", "reportFields", "=", "None", ",", "studyAreasOptions", "=", "None", ",", "useData", "=", "None", ",", "inSR", "=", ...
The GeoEnrichment Create Report method uses the concept of a study area to define the location of the point or area that you want to enrich with generated reports. This method allows you to create many types of high-quality reports for a variety of use cases describing the input area. If...
[ "The", "GeoEnrichment", "Create", "Report", "method", "uses", "the", "concept", "of", "a", "study", "area", "to", "define", "the", "location", "of", "the", "point", "or", "area", "that", "you", "want", "to", "enrich", "with", "generated", "reports", ".", "...
ab240fde2b0200f61d4a5f6df033516e53f2f416
https://github.com/Esri/ArcREST/blob/ab240fde2b0200f61d4a5f6df033516e53f2f416/src/arcrest/enrichment/_geoenrichment.py#L293-L380
train
Esri/ArcREST
src/arcrest/enrichment/_geoenrichment.py
GeoEnrichment.getVariables
def getVariables(self, sourceCountry, optionalCountryDataset=None, searchText=None): r""" The GeoEnrichment GetVariables helper method allows you to search the data collections for variables that contain specific keywords. T...
python
def getVariables(self, sourceCountry, optionalCountryDataset=None, searchText=None): r""" The GeoEnrichment GetVariables helper method allows you to search the data collections for variables that contain specific keywords. T...
[ "def", "getVariables", "(", "self", ",", "sourceCountry", ",", "optionalCountryDataset", "=", "None", ",", "searchText", "=", "None", ")", ":", "url", "=", "self", ".", "_base_url", "+", "self", ".", "_url_getVariables", "params", "=", "{", "\"f\"", ":", "...
r""" The GeoEnrichment GetVariables helper method allows you to search the data collections for variables that contain specific keywords. To see the comprehensive set of global Esri Demographics data that are available, use the interactive data browser: http://resources.arcgis.c...
[ "r", "The", "GeoEnrichment", "GetVariables", "helper", "method", "allows", "you", "to", "search", "the", "data", "collections", "for", "variables", "that", "contain", "specific", "keywords", "." ]
ab240fde2b0200f61d4a5f6df033516e53f2f416
https://github.com/Esri/ArcREST/blob/ab240fde2b0200f61d4a5f6df033516e53f2f416/src/arcrest/enrichment/_geoenrichment.py#L445-L546
train
Esri/ArcREST
src/arcrest/manageags/_services.py
Services.folders
def folders(self): """ returns a list of all folders """ if self._folders is None: self.__init() if "/" not in self._folders: self._folders.append("/") return self._folders
python
def folders(self): """ returns a list of all folders """ if self._folders is None: self.__init() if "/" not in self._folders: self._folders.append("/") return self._folders
[ "def", "folders", "(", "self", ")", ":", "if", "self", ".", "_folders", "is", "None", ":", "self", ".", "__init", "(", ")", "if", "\"/\"", "not", "in", "self", ".", "_folders", ":", "self", ".", "_folders", ".", "append", "(", "\"/\"", ")", "return...
returns a list of all folders
[ "returns", "a", "list", "of", "all", "folders" ]
ab240fde2b0200f61d4a5f6df033516e53f2f416
https://github.com/Esri/ArcREST/blob/ab240fde2b0200f61d4a5f6df033516e53f2f416/src/arcrest/manageags/_services.py#L109-L115
train
Esri/ArcREST
src/arcrest/manageags/_services.py
Services.services
def services(self): """ returns the services in the current folder """ self._services = [] params = { "f" : "json" } json_dict = self._get(url=self._currentURL, param_dict=params, securi...
python
def services(self): """ returns the services in the current folder """ self._services = [] params = { "f" : "json" } json_dict = self._get(url=self._currentURL, param_dict=params, securi...
[ "def", "services", "(", "self", ")", ":", "self", ".", "_services", "=", "[", "]", "params", "=", "{", "\"f\"", ":", "\"json\"", "}", "json_dict", "=", "self", ".", "_get", "(", "url", "=", "self", ".", "_currentURL", ",", "param_dict", "=", "params"...
returns the services in the current folder
[ "returns", "the", "services", "in", "the", "current", "folder" ]
ab240fde2b0200f61d4a5f6df033516e53f2f416
https://github.com/Esri/ArcREST/blob/ab240fde2b0200f61d4a5f6df033516e53f2f416/src/arcrest/manageags/_services.py#L139-L159
train
Esri/ArcREST
src/arcrest/manageags/_services.py
Services.createService
def createService(self, service): """ Creates a new GIS service in the folder. A service is created by submitting a JSON representation of the service to this operation. """ url = self._url + "/createService" params = { "f" : "json" } if isinst...
python
def createService(self, service): """ Creates a new GIS service in the folder. A service is created by submitting a JSON representation of the service to this operation. """ url = self._url + "/createService" params = { "f" : "json" } if isinst...
[ "def", "createService", "(", "self", ",", "service", ")", ":", "url", "=", "self", ".", "_url", "+", "\"/createService\"", "params", "=", "{", "\"f\"", ":", "\"json\"", "}", "if", "isinstance", "(", "service", ",", "str", ")", ":", "params", "[", "'ser...
Creates a new GIS service in the folder. A service is created by submitting a JSON representation of the service to this operation.
[ "Creates", "a", "new", "GIS", "service", "in", "the", "folder", ".", "A", "service", "is", "created", "by", "submitting", "a", "JSON", "representation", "of", "the", "service", "to", "this", "operation", "." ]
ab240fde2b0200f61d4a5f6df033516e53f2f416
https://github.com/Esri/ArcREST/blob/ab240fde2b0200f61d4a5f6df033516e53f2f416/src/arcrest/manageags/_services.py#L401-L418
train
Esri/ArcREST
src/arcrest/manageags/_services.py
Services.exists
def exists(self, folderName, serviceName=None, serviceType=None): """ This operation allows you to check whether a folder or a service exists. To test if a folder exists, supply only a folderName. To test if a service exists in a root folder, supply both serviceName and serviceTy...
python
def exists(self, folderName, serviceName=None, serviceType=None): """ This operation allows you to check whether a folder or a service exists. To test if a folder exists, supply only a folderName. To test if a service exists in a root folder, supply both serviceName and serviceTy...
[ "def", "exists", "(", "self", ",", "folderName", ",", "serviceName", "=", "None", ",", "serviceType", "=", "None", ")", ":", "url", "=", "self", ".", "_url", "+", "\"/exists\"", "params", "=", "{", "\"f\"", ":", "\"json\"", ",", "\"folderName\"", ":", ...
This operation allows you to check whether a folder or a service exists. To test if a folder exists, supply only a folderName. To test if a service exists in a root folder, supply both serviceName and serviceType with folderName=None. To test if a service exists in a folder, supply all t...
[ "This", "operation", "allows", "you", "to", "check", "whether", "a", "folder", "or", "a", "service", "exists", ".", "To", "test", "if", "a", "folder", "exists", "supply", "only", "a", "folderName", ".", "To", "test", "if", "a", "service", "exists", "in",...
ab240fde2b0200f61d4a5f6df033516e53f2f416
https://github.com/Esri/ArcREST/blob/ab240fde2b0200f61d4a5f6df033516e53f2f416/src/arcrest/manageags/_services.py#L524-L552
train
Esri/ArcREST
src/arcrest/manageags/_services.py
AGSService.__init
def __init(self): """ populates server admin information """ params = { "f" : "json" } json_dict = self._get(url=self._currentURL, param_dict=params, securityHandler=self._securityHandler, ...
python
def __init(self): """ populates server admin information """ params = { "f" : "json" } json_dict = self._get(url=self._currentURL, param_dict=params, securityHandler=self._securityHandler, ...
[ "def", "__init", "(", "self", ")", ":", "params", "=", "{", "\"f\"", ":", "\"json\"", "}", "json_dict", "=", "self", ".", "_get", "(", "url", "=", "self", ".", "_currentURL", ",", "param_dict", "=", "params", ",", "securityHandler", "=", "self", ".", ...
populates server admin information
[ "populates", "server", "admin", "information" ]
ab240fde2b0200f61d4a5f6df033516e53f2f416
https://github.com/Esri/ArcREST/blob/ab240fde2b0200f61d4a5f6df033516e53f2f416/src/arcrest/manageags/_services.py#L615-L641
train
Esri/ArcREST
src/arcrest/manageags/_services.py
AGSService.serviceManifest
def serviceManifest(self, fileType="json"): """ The service manifest resource documents the data and other resources that define the service origins and power the service. This resource will tell you underlying databases and their location along with other supplementary files tha...
python
def serviceManifest(self, fileType="json"): """ The service manifest resource documents the data and other resources that define the service origins and power the service. This resource will tell you underlying databases and their location along with other supplementary files tha...
[ "def", "serviceManifest", "(", "self", ",", "fileType", "=", "\"json\"", ")", ":", "url", "=", "self", ".", "_url", "+", "\"/iteminfo/manifest/manifest.%s\"", "%", "fileType", "params", "=", "{", "}", "f", "=", "self", ".", "_get", "(", "url", "=", "url"...
The service manifest resource documents the data and other resources that define the service origins and power the service. This resource will tell you underlying databases and their location along with other supplementary files that make up the service. Inputs: fileType - th...
[ "The", "service", "manifest", "resource", "documents", "the", "data", "and", "other", "resources", "that", "define", "the", "service", "origins", "and", "power", "the", "service", ".", "This", "resource", "will", "tell", "you", "underlying", "databases", "and", ...
ab240fde2b0200f61d4a5f6df033516e53f2f416
https://github.com/Esri/ArcREST/blob/ab240fde2b0200f61d4a5f6df033516e53f2f416/src/arcrest/manageags/_services.py#L1023-L1053
train
Esri/ArcREST
src/arcrest/manageags/_data.py
Data.startDataStoreMachine
def startDataStoreMachine(self, dataStoreItemName, machineName): """ Starts the database instance running on the Data Store machine. Inputs: dataStoreItemName - name of the item to start machineName - name of the machine to start on """ url = self._url + "/...
python
def startDataStoreMachine(self, dataStoreItemName, machineName): """ Starts the database instance running on the Data Store machine. Inputs: dataStoreItemName - name of the item to start machineName - name of the machine to start on """ url = self._url + "/...
[ "def", "startDataStoreMachine", "(", "self", ",", "dataStoreItemName", ",", "machineName", ")", ":", "url", "=", "self", ".", "_url", "+", "\"/items/enterpriseDatabases/%s/machines/%s/start\"", "%", "(", "dataStoreItemName", ",", "machineName", ")", "params", "=", "...
Starts the database instance running on the Data Store machine. Inputs: dataStoreItemName - name of the item to start machineName - name of the machine to start on
[ "Starts", "the", "database", "instance", "running", "on", "the", "Data", "Store", "machine", "." ]
ab240fde2b0200f61d4a5f6df033516e53f2f416
https://github.com/Esri/ArcREST/blob/ab240fde2b0200f61d4a5f6df033516e53f2f416/src/arcrest/manageags/_data.py#L236-L251
train
Esri/ArcREST
src/arcrest/manageags/_data.py
Data.unregisterDataItem
def unregisterDataItem(self, path): """ Unregisters a data item that has been previously registered with the server's data store. Inputs: path - path to share folder Example: path = r"/fileShares/folder_share" print data.unregisterDataItem(path)...
python
def unregisterDataItem(self, path): """ Unregisters a data item that has been previously registered with the server's data store. Inputs: path - path to share folder Example: path = r"/fileShares/folder_share" print data.unregisterDataItem(path)...
[ "def", "unregisterDataItem", "(", "self", ",", "path", ")", ":", "url", "=", "self", ".", "_url", "+", "\"/unregisterItem\"", "params", "=", "{", "\"f\"", ":", "\"json\"", ",", "\"itempath\"", ":", "path", ",", "\"force\"", ":", "\"true\"", "}", "return", ...
Unregisters a data item that has been previously registered with the server's data store. Inputs: path - path to share folder Example: path = r"/fileShares/folder_share" print data.unregisterDataItem(path)
[ "Unregisters", "a", "data", "item", "that", "has", "been", "previously", "registered", "with", "the", "server", "s", "data", "store", "." ]
ab240fde2b0200f61d4a5f6df033516e53f2f416
https://github.com/Esri/ArcREST/blob/ab240fde2b0200f61d4a5f6df033516e53f2f416/src/arcrest/manageags/_data.py#L270-L291
train
Esri/ArcREST
src/arcrest/manageags/_data.py
Data.validateDataStore
def validateDataStore(self, dataStoreName, machineName): """ Checks the status of ArcGIS Data Store and provides a health check response. Inputs: dataStoreName - name of the datastore machineName - name of the machine """ url = self._url + "/items/e...
python
def validateDataStore(self, dataStoreName, machineName): """ Checks the status of ArcGIS Data Store and provides a health check response. Inputs: dataStoreName - name of the datastore machineName - name of the machine """ url = self._url + "/items/e...
[ "def", "validateDataStore", "(", "self", ",", "dataStoreName", ",", "machineName", ")", ":", "url", "=", "self", ".", "_url", "+", "\"/items/enterpriseDatabases/%s/machines/%s/validate\"", "%", "(", "dataStoreName", ",", "machineName", ")", "params", "=", "{", "\"...
Checks the status of ArcGIS Data Store and provides a health check response. Inputs: dataStoreName - name of the datastore machineName - name of the machine
[ "Checks", "the", "status", "of", "ArcGIS", "Data", "Store", "and", "provides", "a", "health", "check", "response", "." ]
ab240fde2b0200f61d4a5f6df033516e53f2f416
https://github.com/Esri/ArcREST/blob/ab240fde2b0200f61d4a5f6df033516e53f2f416/src/arcrest/manageags/_data.py#L293-L310
train
Esri/ArcREST
src/arcrest/ags/_globeservice.py
GlobeService.layers
def layers(self): """gets the globe service layers""" if self._layers is None: self.__init() lyrs = [] for lyr in self._layers: lyr['object'] = GlobeServiceLayer(url=self._url + "/%s" % lyr['id'], securityHandler=self....
python
def layers(self): """gets the globe service layers""" if self._layers is None: self.__init() lyrs = [] for lyr in self._layers: lyr['object'] = GlobeServiceLayer(url=self._url + "/%s" % lyr['id'], securityHandler=self....
[ "def", "layers", "(", "self", ")", ":", "if", "self", ".", "_layers", "is", "None", ":", "self", ".", "__init", "(", ")", "lyrs", "=", "[", "]", "for", "lyr", "in", "self", ".", "_layers", ":", "lyr", "[", "'object'", "]", "=", "GlobeServiceLayer",...
gets the globe service layers
[ "gets", "the", "globe", "service", "layers" ]
ab240fde2b0200f61d4a5f6df033516e53f2f416
https://github.com/Esri/ArcREST/blob/ab240fde2b0200f61d4a5f6df033516e53f2f416/src/arcrest/ags/_globeservice.py#L288-L300
train
Esri/ArcREST
src/arcrest/ags/_gpobjects.py
GPFeatureRecordSetLayer.loadFeatures
def loadFeatures(self, path_to_fc): """ loads a feature class features to the object """ from ..common.spatial import featureclass_to_json v = json.loads(featureclass_to_json(path_to_fc)) self.value = v
python
def loadFeatures(self, path_to_fc): """ loads a feature class features to the object """ from ..common.spatial import featureclass_to_json v = json.loads(featureclass_to_json(path_to_fc)) self.value = v
[ "def", "loadFeatures", "(", "self", ",", "path_to_fc", ")", ":", "from", ".", ".", "common", ".", "spatial", "import", "featureclass_to_json", "v", "=", "json", ".", "loads", "(", "featureclass_to_json", "(", "path_to_fc", ")", ")", "self", ".", "value", "...
loads a feature class features to the object
[ "loads", "a", "feature", "class", "features", "to", "the", "object" ]
ab240fde2b0200f61d4a5f6df033516e53f2f416
https://github.com/Esri/ArcREST/blob/ab240fde2b0200f61d4a5f6df033516e53f2f416/src/arcrest/ags/_gpobjects.py#L184-L190
train
Esri/ArcREST
src/arcrest/ags/_gpobjects.py
GPFeatureRecordSetLayer.fromFeatureClass
def fromFeatureClass(fc, paramName): """ returns a GPFeatureRecordSetLayer object from a feature class Input: fc - path to a feature class paramName - name of the parameter """ from ..common.spatial import featureclass_to_json val = json.loads(featu...
python
def fromFeatureClass(fc, paramName): """ returns a GPFeatureRecordSetLayer object from a feature class Input: fc - path to a feature class paramName - name of the parameter """ from ..common.spatial import featureclass_to_json val = json.loads(featu...
[ "def", "fromFeatureClass", "(", "fc", ",", "paramName", ")", ":", "from", ".", ".", "common", ".", "spatial", "import", "featureclass_to_json", "val", "=", "json", ".", "loads", "(", "featureclass_to_json", "(", "fc", ")", ")", "v", "=", "GPFeatureRecordSetL...
returns a GPFeatureRecordSetLayer object from a feature class Input: fc - path to a feature class paramName - name of the parameter
[ "returns", "a", "GPFeatureRecordSetLayer", "object", "from", "a", "feature", "class" ]
ab240fde2b0200f61d4a5f6df033516e53f2f416
https://github.com/Esri/ArcREST/blob/ab240fde2b0200f61d4a5f6df033516e53f2f416/src/arcrest/ags/_gpobjects.py#L207-L220
train
Esri/ArcREST
src/arcrest/webmap/renderer.py
SimpleRenderer.asDictionary
def asDictionary(self): """ provides a dictionary representation of the object """ template = { "type" : "simple", "symbol" : self._symbol.asDictionary, "label" : self._label, "description" : self._description, "rotationType": self._rotationTy...
python
def asDictionary(self): """ provides a dictionary representation of the object """ template = { "type" : "simple", "symbol" : self._symbol.asDictionary, "label" : self._label, "description" : self._description, "rotationType": self._rotationTy...
[ "def", "asDictionary", "(", "self", ")", ":", "template", "=", "{", "\"type\"", ":", "\"simple\"", ",", "\"symbol\"", ":", "self", ".", "_symbol", ".", "asDictionary", ",", "\"label\"", ":", "self", ".", "_label", ",", "\"description\"", ":", "self", ".", ...
provides a dictionary representation of the object
[ "provides", "a", "dictionary", "representation", "of", "the", "object" ]
ab240fde2b0200f61d4a5f6df033516e53f2f416
https://github.com/Esri/ArcREST/blob/ab240fde2b0200f61d4a5f6df033516e53f2f416/src/arcrest/webmap/renderer.py#L32-L42
train