id
int32
0
252k
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
12,900
Esri/ArcREST
src/arcrest/manageportal/administration.py
_Federation.validateAllServers
def validateAllServers(self): """ This operation provides status information about a specific ArcGIS Server federated with Portal for ArcGIS. Parameters: serverId - unique id of the server """ url = self._url + "/servers/validate" params = {"f" : "json...
python
def validateAllServers(self): """ This operation provides status information about a specific ArcGIS Server federated with Portal for ArcGIS. Parameters: serverId - unique id of the server """ url = self._url + "/servers/validate" params = {"f" : "json...
[ "def", "validateAllServers", "(", "self", ")", ":", "url", "=", "self", ".", "_url", "+", "\"/servers/validate\"", "params", "=", "{", "\"f\"", ":", "\"json\"", "}", "return", "self", ".", "_get", "(", "url", "=", "url", ",", "param_dict", "=", "params",...
This operation provides status information about a specific ArcGIS Server federated with Portal for ArcGIS. Parameters: serverId - unique id of the server
[ "This", "operation", "provides", "status", "information", "about", "a", "specific", "ArcGIS", "Server", "federated", "with", "Portal", "for", "ArcGIS", "." ]
ab240fde2b0200f61d4a5f6df033516e53f2f416
https://github.com/Esri/ArcREST/blob/ab240fde2b0200f61d4a5f6df033516e53f2f416/src/arcrest/manageportal/administration.py#L120-L133
12,901
Esri/ArcREST
src/arcrest/manageportal/administration.py
_log.editLogSettings
def editLogSettings(self, logLocation, logLevel="WARNING", maxLogFileAge=90): """ edits the log settings for the portal site Inputs: logLocation - file path to where you want the log files saved on disk logLevel - this is the level of detail save...
python
def editLogSettings(self, logLocation, logLevel="WARNING", maxLogFileAge=90): """ edits the log settings for the portal site Inputs: logLocation - file path to where you want the log files saved on disk logLevel - this is the level of detail save...
[ "def", "editLogSettings", "(", "self", ",", "logLocation", ",", "logLevel", "=", "\"WARNING\"", ",", "maxLogFileAge", "=", "90", ")", ":", "url", "=", "self", ".", "_url", "+", "\"/settings/edit\"", "params", "=", "{", "\"f\"", ":", "\"json\"", ",", "\"log...
edits the log settings for the portal site Inputs: logLocation - file path to where you want the log files saved on disk logLevel - this is the level of detail saved in the log files Levels are: OFF, SEVERE, WARNING, INFO, FINE, VERBOSE, and ...
[ "edits", "the", "log", "settings", "for", "the", "portal", "site" ]
ab240fde2b0200f61d4a5f6df033516e53f2f416
https://github.com/Esri/ArcREST/blob/ab240fde2b0200f61d4a5f6df033516e53f2f416/src/arcrest/manageportal/administration.py#L214-L237
12,902
Esri/ArcREST
src/arcrest/manageportal/administration.py
_log.query
def query(self, logLevel="WARNING", source="ALL", startTime=None, endTime=None, logCodes=None, users=None, messageCount=1000): """ allows users to look at the log files from a the REST endpoint Inputs: logLevel - this is the level of detail saved ...
python
def query(self, logLevel="WARNING", source="ALL", startTime=None, endTime=None, logCodes=None, users=None, messageCount=1000): """ allows users to look at the log files from a the REST endpoint Inputs: logLevel - this is the level of detail saved ...
[ "def", "query", "(", "self", ",", "logLevel", "=", "\"WARNING\"", ",", "source", "=", "\"ALL\"", ",", "startTime", "=", "None", ",", "endTime", "=", "None", ",", "logCodes", "=", "None", ",", "users", "=", "None", ",", "messageCount", "=", "1000", ")",...
allows users to look at the log files from a the REST endpoint Inputs: logLevel - this is the level of detail saved in the log files Levels are: OFF, SEVERE, WARNING, INFO, FINE, VERBOSE, and DEBUG source - the type of information to search. All...
[ "allows", "users", "to", "look", "at", "the", "log", "files", "from", "a", "the", "REST", "endpoint" ]
ab240fde2b0200f61d4a5f6df033516e53f2f416
https://github.com/Esri/ArcREST/blob/ab240fde2b0200f61d4a5f6df033516e53f2f416/src/arcrest/manageportal/administration.py#L239-L290
12,903
Esri/ArcREST
src/arcrest/manageportal/administration.py
_Security.deleteCertificate
def deleteCertificate(self, certName): """ This operation deletes an SSL certificate from the key store. Once a certificate is deleted, it cannot be retrieved or used to enable SSL. Inputs: certName - name of the cert to delete """ params = {"f" : "js...
python
def deleteCertificate(self, certName): """ This operation deletes an SSL certificate from the key store. Once a certificate is deleted, it cannot be retrieved or used to enable SSL. Inputs: certName - name of the cert to delete """ params = {"f" : "js...
[ "def", "deleteCertificate", "(", "self", ",", "certName", ")", ":", "params", "=", "{", "\"f\"", ":", "\"json\"", "}", "url", "=", "self", ".", "_url", "+", "\"/sslCertificates/{cert}/delete\"", ".", "format", "(", "cert", "=", "certName", ")", "return", "...
This operation deletes an SSL certificate from the key store. Once a certificate is deleted, it cannot be retrieved or used to enable SSL. Inputs: certName - name of the cert to delete
[ "This", "operation", "deletes", "an", "SSL", "certificate", "from", "the", "key", "store", ".", "Once", "a", "certificate", "is", "deleted", "it", "cannot", "be", "retrieved", "or", "used", "to", "enable", "SSL", "." ]
ab240fde2b0200f61d4a5f6df033516e53f2f416
https://github.com/Esri/ArcREST/blob/ab240fde2b0200f61d4a5f6df033516e53f2f416/src/arcrest/manageportal/administration.py#L421-L437
12,904
Esri/ArcREST
src/arcrest/manageportal/administration.py
_Security.exportCertificate
def exportCertificate(self, certName, outFolder=None): """ This operation downloads an SSL certificate. The file returned by the server is an X.509 certificate. The downloaded certificate can be imported into a client that is making HTTP requests. Inputs: certName - na...
python
def exportCertificate(self, certName, outFolder=None): """ This operation downloads an SSL certificate. The file returned by the server is an X.509 certificate. The downloaded certificate can be imported into a client that is making HTTP requests. Inputs: certName - na...
[ "def", "exportCertificate", "(", "self", ",", "certName", ",", "outFolder", "=", "None", ")", ":", "params", "=", "{", "\"f\"", ":", "\"json\"", "}", "url", "=", "self", ".", "_url", "+", "\"/sslCertificates/{cert}/export\"", ".", "format", "(", "cert", "=...
This operation downloads an SSL certificate. The file returned by the server is an X.509 certificate. The downloaded certificate can be imported into a client that is making HTTP requests. Inputs: certName - name of the cert to export outFolder - folder on disk to save the c...
[ "This", "operation", "downloads", "an", "SSL", "certificate", ".", "The", "file", "returned", "by", "the", "server", "is", "an", "X", ".", "509", "certificate", ".", "The", "downloaded", "certificate", "can", "be", "imported", "into", "a", "client", "that", ...
ab240fde2b0200f61d4a5f6df033516e53f2f416
https://github.com/Esri/ArcREST/blob/ab240fde2b0200f61d4a5f6df033516e53f2f416/src/arcrest/manageportal/administration.py#L439-L457
12,905
Esri/ArcREST
src/arcrest/manageportal/administration.py
_Security.generateCertificate
def generateCertificate(self, alias, commonName, organizationalUnit, city, state, country, keyalg="RSA", keysize=1024, sigalg="SHA256withRSA", validity=90 ...
python
def generateCertificate(self, alias, commonName, organizationalUnit, city, state, country, keyalg="RSA", keysize=1024, sigalg="SHA256withRSA", validity=90 ...
[ "def", "generateCertificate", "(", "self", ",", "alias", ",", "commonName", ",", "organizationalUnit", ",", "city", ",", "state", ",", "country", ",", "keyalg", "=", "\"RSA\"", ",", "keysize", "=", "1024", ",", "sigalg", "=", "\"SHA256withRSA\"", ",", "valid...
Use this operation to create a self-signed certificate or as a starting point for getting a production-ready CA-signed certificate. The portal will generate a certificate for you and store it in its keystore.
[ "Use", "this", "operation", "to", "create", "a", "self", "-", "signed", "certificate", "or", "as", "a", "starting", "point", "for", "getting", "a", "production", "-", "ready", "CA", "-", "signed", "certificate", ".", "The", "portal", "will", "generate", "a...
ab240fde2b0200f61d4a5f6df033516e53f2f416
https://github.com/Esri/ArcREST/blob/ab240fde2b0200f61d4a5f6df033516e53f2f416/src/arcrest/manageportal/administration.py#L459-L488
12,906
Esri/ArcREST
src/arcrest/manageportal/administration.py
_Security.getAppInfo
def getAppInfo(self, appId): """ Every application registered with Portal for ArcGIS has a unique client ID and a list of redirect URIs that are used for OAuth. This operation returns these OAuth-specific properties of an application. You can use this information to update the re...
python
def getAppInfo(self, appId): """ Every application registered with Portal for ArcGIS has a unique client ID and a list of redirect URIs that are used for OAuth. This operation returns these OAuth-specific properties of an application. You can use this information to update the re...
[ "def", "getAppInfo", "(", "self", ",", "appId", ")", ":", "params", "=", "{", "\"f\"", ":", "\"json\"", ",", "\"appID\"", ":", "appId", "}", "url", "=", "self", ".", "_url", "+", "\"/oauth/getAppInfo\"", "return", "self", ".", "_get", "(", "url", "=", ...
Every application registered with Portal for ArcGIS has a unique client ID and a list of redirect URIs that are used for OAuth. This operation returns these OAuth-specific properties of an application. You can use this information to update the redirect URIs by using the Update App Info ...
[ "Every", "application", "registered", "with", "Portal", "for", "ArcGIS", "has", "a", "unique", "client", "ID", "and", "a", "list", "of", "redirect", "URIs", "that", "are", "used", "for", "OAuth", ".", "This", "operation", "returns", "these", "OAuth", "-", ...
ab240fde2b0200f61d4a5f6df033516e53f2f416
https://github.com/Esri/ArcREST/blob/ab240fde2b0200f61d4a5f6df033516e53f2f416/src/arcrest/manageportal/administration.py#L499-L518
12,907
Esri/ArcREST
src/arcrest/manageportal/administration.py
_Security.getUsersEnterpriseGroups
def getUsersEnterpriseGroups(self, username, searchFilter, maxCount=100): """ This operation lists the groups assigned to a user account in the configured enterprise group store. You can use the filter parameter to narrow down the search results. Inputs: username - na...
python
def getUsersEnterpriseGroups(self, username, searchFilter, maxCount=100): """ This operation lists the groups assigned to a user account in the configured enterprise group store. You can use the filter parameter to narrow down the search results. Inputs: username - na...
[ "def", "getUsersEnterpriseGroups", "(", "self", ",", "username", ",", "searchFilter", ",", "maxCount", "=", "100", ")", ":", "params", "=", "{", "\"f\"", ":", "\"json\"", ",", "\"username\"", ":", "username", ",", "\"filter\"", ":", "searchFilter", ",", "\"m...
This operation lists the groups assigned to a user account in the configured enterprise group store. You can use the filter parameter to narrow down the search results. Inputs: username - name of the user to find searchFilter - helps narrow down results maxCount...
[ "This", "operation", "lists", "the", "groups", "assigned", "to", "a", "user", "account", "in", "the", "configured", "enterprise", "group", "store", ".", "You", "can", "use", "the", "filter", "parameter", "to", "narrow", "down", "the", "search", "results", "....
ab240fde2b0200f61d4a5f6df033516e53f2f416
https://github.com/Esri/ArcREST/blob/ab240fde2b0200f61d4a5f6df033516e53f2f416/src/arcrest/manageportal/administration.py#L520-L541
12,908
Esri/ArcREST
src/arcrest/manageportal/administration.py
_Security.refreshGroupMembership
def refreshGroupMembership(self, groups): """ This operation iterates over every enterprise account configured in the portal and determines if the user account is a part of the input enterprise group. If there are any change in memberships, the database and the indexes are update...
python
def refreshGroupMembership(self, groups): """ This operation iterates over every enterprise account configured in the portal and determines if the user account is a part of the input enterprise group. If there are any change in memberships, the database and the indexes are update...
[ "def", "refreshGroupMembership", "(", "self", ",", "groups", ")", ":", "params", "=", "{", "\"f\"", ":", "\"json\"", ",", "\"groups\"", ":", "groups", "}", "url", "=", "self", ".", "_url", "+", "\"/groups/refreshMembership\"", "return", "self", ".", "_post",...
This operation iterates over every enterprise account configured in the portal and determines if the user account is a part of the input enterprise group. If there are any change in memberships, the database and the indexes are updated for each group. While portal automatically refreshes...
[ "This", "operation", "iterates", "over", "every", "enterprise", "account", "configured", "in", "the", "portal", "and", "determines", "if", "the", "user", "account", "is", "a", "part", "of", "the", "input", "enterprise", "group", ".", "If", "there", "are", "a...
ab240fde2b0200f61d4a5f6df033516e53f2f416
https://github.com/Esri/ArcREST/blob/ab240fde2b0200f61d4a5f6df033516e53f2f416/src/arcrest/manageportal/administration.py#L654-L676
12,909
Esri/ArcREST
src/arcrest/manageportal/administration.py
_Security.searchEnterpriseGroups
def searchEnterpriseGroups(self, searchFilter="", maxCount=100): """ This operation searches groups in the configured enterprise group store. You can narrow down the search using the search filter parameter. Parameters: searchFilter - text value to narrow the search d...
python
def searchEnterpriseGroups(self, searchFilter="", maxCount=100): """ This operation searches groups in the configured enterprise group store. You can narrow down the search using the search filter parameter. Parameters: searchFilter - text value to narrow the search d...
[ "def", "searchEnterpriseGroups", "(", "self", ",", "searchFilter", "=", "\"\"", ",", "maxCount", "=", "100", ")", ":", "params", "=", "{", "\"f\"", ":", "\"json\"", ",", "\"filter\"", ":", "searchFilter", ",", "\"maxCount\"", ":", "maxCount", "}", "url", "...
This operation searches groups in the configured enterprise group store. You can narrow down the search using the search filter parameter. Parameters: searchFilter - text value to narrow the search down maxCount - maximum number of records to return
[ "This", "operation", "searches", "groups", "in", "the", "configured", "enterprise", "group", "store", ".", "You", "can", "narrow", "down", "the", "search", "using", "the", "search", "filter", "parameter", "." ]
ab240fde2b0200f61d4a5f6df033516e53f2f416
https://github.com/Esri/ArcREST/blob/ab240fde2b0200f61d4a5f6df033516e53f2f416/src/arcrest/manageportal/administration.py#L702-L721
12,910
Esri/ArcREST
src/arcrest/manageportal/administration.py
_Security.SSLCertificates
def SSLCertificates(self): """ Lists certificates. """ url = self._url + "/SSLCertificate" params = {"f" : "json"} return self._post(url=url, param_dict=params, proxy_url=self._proxy_url, proxy_...
python
def SSLCertificates(self): """ Lists certificates. """ url = self._url + "/SSLCertificate" params = {"f" : "json"} return self._post(url=url, param_dict=params, proxy_url=self._proxy_url, proxy_...
[ "def", "SSLCertificates", "(", "self", ")", ":", "url", "=", "self", ".", "_url", "+", "\"/SSLCertificate\"", "params", "=", "{", "\"f\"", ":", "\"json\"", "}", "return", "self", ".", "_post", "(", "url", "=", "url", ",", "param_dict", "=", "params", "...
Lists certificates.
[ "Lists", "certificates", "." ]
ab240fde2b0200f61d4a5f6df033516e53f2f416
https://github.com/Esri/ArcREST/blob/ab240fde2b0200f61d4a5f6df033516e53f2f416/src/arcrest/manageportal/administration.py#L745-L754
12,911
Esri/ArcREST
src/arcrest/manageportal/administration.py
_Security.updateAppInfo
def updateAppInfo(self, appInfo): """ This operation allows you to update the OAuth-specific properties associated with an application. Use the Get App Info operation to obtain the existing OAuth properties that can be edited. """ params = {"f" : "json", ...
python
def updateAppInfo(self, appInfo): """ This operation allows you to update the OAuth-specific properties associated with an application. Use the Get App Info operation to obtain the existing OAuth properties that can be edited. """ params = {"f" : "json", ...
[ "def", "updateAppInfo", "(", "self", ",", "appInfo", ")", ":", "params", "=", "{", "\"f\"", ":", "\"json\"", ",", "\"appInfo\"", ":", "appInfo", "}", "url", "=", "self", ".", "_url", "+", "\"/oauth/updateAppInfo\"", "return", "self", ".", "_post", "(", "...
This operation allows you to update the OAuth-specific properties associated with an application. Use the Get App Info operation to obtain the existing OAuth properties that can be edited.
[ "This", "operation", "allows", "you", "to", "update", "the", "OAuth", "-", "specific", "properties", "associated", "with", "an", "application", ".", "Use", "the", "Get", "App", "Info", "operation", "to", "obtain", "the", "existing", "OAuth", "properties", "tha...
ab240fde2b0200f61d4a5f6df033516e53f2f416
https://github.com/Esri/ArcREST/blob/ab240fde2b0200f61d4a5f6df033516e53f2f416/src/arcrest/manageportal/administration.py#L796-L808
12,912
Esri/ArcREST
src/arcrest/manageportal/administration.py
_Security.updateEnterpriseUser
def updateEnterpriseUser(self, username, idpUsername): """ This operation allows an administrator to update the idpUsername for an enterprise user in the portal. This is used when migrating from accounts used with web-tier authentication to SAML authentication. Parameter...
python
def updateEnterpriseUser(self, username, idpUsername): """ This operation allows an administrator to update the idpUsername for an enterprise user in the portal. This is used when migrating from accounts used with web-tier authentication to SAML authentication. Parameter...
[ "def", "updateEnterpriseUser", "(", "self", ",", "username", ",", "idpUsername", ")", ":", "params", "=", "{", "\"f\"", ":", "\"json\"", ",", "\"username\"", ":", "username", ",", "\"idpUsername\"", ":", "idpUsername", "}", "url", "=", "self", ".", "_url", ...
This operation allows an administrator to update the idpUsername for an enterprise user in the portal. This is used when migrating from accounts used with web-tier authentication to SAML authentication. Parameters: username - username of the enterprise account idpU...
[ "This", "operation", "allows", "an", "administrator", "to", "update", "the", "idpUsername", "for", "an", "enterprise", "user", "in", "the", "portal", ".", "This", "is", "used", "when", "migrating", "from", "accounts", "used", "with", "web", "-", "tier", "aut...
ab240fde2b0200f61d4a5f6df033516e53f2f416
https://github.com/Esri/ArcREST/blob/ab240fde2b0200f61d4a5f6df033516e53f2f416/src/arcrest/manageportal/administration.py#L810-L830
12,913
Esri/ArcREST
src/arcrest/manageportal/administration.py
_Security.updateIdenityStore
def updateIdenityStore(self, userPassword, user, userFullnameAttribute, ldapURLForUsers, userEmailAttribute, usernameAttribute, isP...
python
def updateIdenityStore(self, userPassword, user, userFullnameAttribute, ldapURLForUsers, userEmailAttribute, usernameAttribute, isP...
[ "def", "updateIdenityStore", "(", "self", ",", "userPassword", ",", "user", ",", "userFullnameAttribute", ",", "ldapURLForUsers", ",", "userEmailAttribute", ",", "usernameAttribute", ",", "isPasswordEncrypted", "=", "False", ",", "caseSensitive", "=", "True", ")", "...
r""" You can use this operation to change the identity provider configuration in your portal. When Portal for ArcGIS is first installed, it supports token-based authentication using the built-in identity store for accounts. To configure your portal to connect to your enterprise a...
[ "r", "You", "can", "use", "this", "operation", "to", "change", "the", "identity", "provider", "configuration", "in", "your", "portal", ".", "When", "Portal", "for", "ArcGIS", "is", "first", "installed", "it", "supports", "token", "-", "based", "authentication"...
ab240fde2b0200f61d4a5f6df033516e53f2f416
https://github.com/Esri/ArcREST/blob/ab240fde2b0200f61d4a5f6df033516e53f2f416/src/arcrest/manageportal/administration.py#L889-L958
12,914
Esri/ArcREST
src/arcrest/manageportal/administration.py
_System.editDirectory
def editDirectory(self, directoryName, physicalPath, description): """ The edit operation on a directory can be used to change the physical path and description properties of the directory. This is useful when changing the location of a directory from a local path to a network sh...
python
def editDirectory(self, directoryName, physicalPath, description): """ The edit operation on a directory can be used to change the physical path and description properties of the directory. This is useful when changing the location of a directory from a local path to a network sh...
[ "def", "editDirectory", "(", "self", ",", "directoryName", ",", "physicalPath", ",", "description", ")", ":", "url", "=", "self", ".", "_url", "+", "\"/directories/%s/edit\"", "%", "directoryName", "params", "=", "{", "\"f\"", ":", "\"json\"", ",", "\"physical...
The edit operation on a directory can be used to change the physical path and description properties of the directory. This is useful when changing the location of a directory from a local path to a network share. However, the API does not copy your content and data from the old path to ...
[ "The", "edit", "operation", "on", "a", "directory", "can", "be", "used", "to", "change", "the", "physical", "path", "and", "description", "properties", "of", "the", "directory", ".", "This", "is", "useful", "when", "changing", "the", "location", "of", "a", ...
ab240fde2b0200f61d4a5f6df033516e53f2f416
https://github.com/Esri/ArcREST/blob/ab240fde2b0200f61d4a5f6df033516e53f2f416/src/arcrest/manageportal/administration.py#L1233-L1257
12,915
Esri/ArcREST
src/arcrest/manageportal/administration.py
_System.releaseLicense
def releaseLicense(self, username): """ If a user checks out an ArcGIS Pro license for offline or disconnected use, this operation releases the license for the specified account. A license can only be used with a single device running ArcGIS Pro. To check in the license, a valid ...
python
def releaseLicense(self, username): """ If a user checks out an ArcGIS Pro license for offline or disconnected use, this operation releases the license for the specified account. A license can only be used with a single device running ArcGIS Pro. To check in the license, a valid ...
[ "def", "releaseLicense", "(", "self", ",", "username", ")", ":", "url", "=", "self", ".", "_url", "+", "\"/licenses/releaseLicense\"", "params", "=", "{", "\"username\"", ":", "username", ",", "\"f\"", ":", "\"json\"", "}", "return", "self", ".", "_post", ...
If a user checks out an ArcGIS Pro license for offline or disconnected use, this operation releases the license for the specified account. A license can only be used with a single device running ArcGIS Pro. To check in the license, a valid access token and refresh token is required. If t...
[ "If", "a", "user", "checks", "out", "an", "ArcGIS", "Pro", "license", "for", "offline", "or", "disconnected", "use", "this", "operation", "releases", "the", "license", "for", "the", "specified", "account", ".", "A", "license", "can", "only", "be", "used", ...
ab240fde2b0200f61d4a5f6df033516e53f2f416
https://github.com/Esri/ArcREST/blob/ab240fde2b0200f61d4a5f6df033516e53f2f416/src/arcrest/manageportal/administration.py#L1303-L1328
12,916
Esri/ArcREST
src/arcrest/manageportal/administration.py
_System.removeAllEntitlements
def removeAllEntitlements(self, appId): """ This operation removes all entitlements from the portal for ArcGIS Pro or additional products such as Navigator for ArcGIS and revokes all entitlements assigned to users for the specified product. The portal is no longer a licensing por...
python
def removeAllEntitlements(self, appId): """ This operation removes all entitlements from the portal for ArcGIS Pro or additional products such as Navigator for ArcGIS and revokes all entitlements assigned to users for the specified product. The portal is no longer a licensing por...
[ "def", "removeAllEntitlements", "(", "self", ",", "appId", ")", ":", "params", "=", "{", "\"f\"", ":", "\"json\"", ",", "\"appId\"", ":", "appId", "}", "url", "=", "self", ".", "_url", "+", "\"/licenses/removeAllEntitlements\"", "return", "self", ".", "_post...
This operation removes all entitlements from the portal for ArcGIS Pro or additional products such as Navigator for ArcGIS and revokes all entitlements assigned to users for the specified product. The portal is no longer a licensing portal for that product. License assignments are retain...
[ "This", "operation", "removes", "all", "entitlements", "from", "the", "portal", "for", "ArcGIS", "Pro", "or", "additional", "products", "such", "as", "Navigator", "for", "ArcGIS", "and", "revokes", "all", "entitlements", "assigned", "to", "users", "for", "the", ...
ab240fde2b0200f61d4a5f6df033516e53f2f416
https://github.com/Esri/ArcREST/blob/ab240fde2b0200f61d4a5f6df033516e53f2f416/src/arcrest/manageportal/administration.py#L1330-L1353
12,917
Esri/ArcREST
src/arcrest/manageportal/administration.py
_System.updateLanguages
def updateLanguages(self, languages): """ You can use this operation to change which languages will have content displayed in portal search results. Parameters: languages - The JSON object containing all of the possible portal languages and their corresponding st...
python
def updateLanguages(self, languages): """ You can use this operation to change which languages will have content displayed in portal search results. Parameters: languages - The JSON object containing all of the possible portal languages and their corresponding st...
[ "def", "updateLanguages", "(", "self", ",", "languages", ")", ":", "url", "=", "self", ".", "_url", "=", "\"/languages/update\"", "params", "=", "{", "\"f\"", ":", "\"json\"", ",", "\"languages\"", ":", "languages", "}", "return", "self", ".", "_post", "("...
You can use this operation to change which languages will have content displayed in portal search results. Parameters: languages - The JSON object containing all of the possible portal languages and their corresponding status (true or false).
[ "You", "can", "use", "this", "operation", "to", "change", "which", "languages", "will", "have", "content", "displayed", "in", "portal", "search", "results", "." ]
ab240fde2b0200f61d4a5f6df033516e53f2f416
https://github.com/Esri/ArcREST/blob/ab240fde2b0200f61d4a5f6df033516e53f2f416/src/arcrest/manageportal/administration.py#L1368-L1386
12,918
Esri/ArcREST
src/arcrest/manageportal/administration.py
_System.updateLicenseManager
def updateLicenseManager(self, licenseManagerInfo): """ ArcGIS License Server Administrator works with your portal and enforces licenses for ArcGIS Pro. This operation allows you to change the license server connection information for your portal. When you import entitlements int...
python
def updateLicenseManager(self, licenseManagerInfo): """ ArcGIS License Server Administrator works with your portal and enforces licenses for ArcGIS Pro. This operation allows you to change the license server connection information for your portal. When you import entitlements int...
[ "def", "updateLicenseManager", "(", "self", ",", "licenseManagerInfo", ")", ":", "url", "=", "self", ".", "_url", "+", "\"/licenses/updateLicenseManager\"", "params", "=", "{", "\"f\"", ":", "\"json\"", ",", "\"licenseManagerInfo\"", ":", "licenseManagerInfo", "}", ...
ArcGIS License Server Administrator works with your portal and enforces licenses for ArcGIS Pro. This operation allows you to change the license server connection information for your portal. When you import entitlements into portal using the Import Entitlements operation, a license serv...
[ "ArcGIS", "License", "Server", "Administrator", "works", "with", "your", "portal", "and", "enforces", "licenses", "for", "ArcGIS", "Pro", ".", "This", "operation", "allows", "you", "to", "change", "the", "license", "server", "connection", "information", "for", "...
ab240fde2b0200f61d4a5f6df033516e53f2f416
https://github.com/Esri/ArcREST/blob/ab240fde2b0200f61d4a5f6df033516e53f2f416/src/arcrest/manageportal/administration.py#L1388-L1418
12,919
Esri/ArcREST
src/arcrest/manageportal/administration.py
_System.updateIndexConfiguration
def updateIndexConfiguration(self, indexerHost="localhost", indexerPort=7199): """ You can use this operation to change the connection information for the indexing service. By default, Portal for ArcGIS runs an indexing se...
python
def updateIndexConfiguration(self, indexerHost="localhost", indexerPort=7199): """ You can use this operation to change the connection information for the indexing service. By default, Portal for ArcGIS runs an indexing se...
[ "def", "updateIndexConfiguration", "(", "self", ",", "indexerHost", "=", "\"localhost\"", ",", "indexerPort", "=", "7199", ")", ":", "url", "=", "self", ".", "_url", "+", "\"/indexer/update\"", "params", "=", "{", "\"f\"", ":", "\"json\"", ",", "\"indexerHost\...
You can use this operation to change the connection information for the indexing service. By default, Portal for ArcGIS runs an indexing service that runs on port 7199. If you want the sharing API to refer to the indexing service on another instance, you need to provide the host and port...
[ "You", "can", "use", "this", "operation", "to", "change", "the", "connection", "information", "for", "the", "indexing", "service", ".", "By", "default", "Portal", "for", "ArcGIS", "runs", "an", "indexing", "service", "that", "runs", "on", "port", "7199", "."...
ab240fde2b0200f61d4a5f6df033516e53f2f416
https://github.com/Esri/ArcREST/blob/ab240fde2b0200f61d4a5f6df033516e53f2f416/src/arcrest/manageportal/administration.py#L1536-L1562
12,920
Esri/ArcREST
src/arcrest/manageportal/administration.py
PortalAdministration.exportSite
def exportSite(self, location): """ This operation exports the portal site configuration to a location you specify. """ params = { "location" : location, "f" : "json" } url = self._url + "/exportSite" return self._post(url=url, para...
python
def exportSite(self, location): """ This operation exports the portal site configuration to a location you specify. """ params = { "location" : location, "f" : "json" } url = self._url + "/exportSite" return self._post(url=url, para...
[ "def", "exportSite", "(", "self", ",", "location", ")", ":", "params", "=", "{", "\"location\"", ":", "location", ",", "\"f\"", ":", "\"json\"", "}", "url", "=", "self", ".", "_url", "+", "\"/exportSite\"", "return", "self", ".", "_post", "(", "url", "...
This operation exports the portal site configuration to a location you specify.
[ "This", "operation", "exports", "the", "portal", "site", "configuration", "to", "a", "location", "you", "specify", "." ]
ab240fde2b0200f61d4a5f6df033516e53f2f416
https://github.com/Esri/ArcREST/blob/ab240fde2b0200f61d4a5f6df033516e53f2f416/src/arcrest/manageportal/administration.py#L1722-L1732
12,921
Esri/ArcREST
src/arcrest/manageportal/administration.py
PortalAdministration.importSite
def importSite(self, location): """ This operation imports the portal site configuration to a location you specify. """ params = { "location" : location, "f" : "json" } url = self._url + "/importSite" return self._post(url=url, para...
python
def importSite(self, location): """ This operation imports the portal site configuration to a location you specify. """ params = { "location" : location, "f" : "json" } url = self._url + "/importSite" return self._post(url=url, para...
[ "def", "importSite", "(", "self", ",", "location", ")", ":", "params", "=", "{", "\"location\"", ":", "location", ",", "\"f\"", ":", "\"json\"", "}", "url", "=", "self", ".", "_url", "+", "\"/importSite\"", "return", "self", ".", "_post", "(", "url", "...
This operation imports the portal site configuration to a location you specify.
[ "This", "operation", "imports", "the", "portal", "site", "configuration", "to", "a", "location", "you", "specify", "." ]
ab240fde2b0200f61d4a5f6df033516e53f2f416
https://github.com/Esri/ArcREST/blob/ab240fde2b0200f61d4a5f6df033516e53f2f416/src/arcrest/manageportal/administration.py#L1734-L1744
12,922
Esri/ArcREST
src/arcrest/manageportal/administration.py
PortalAdministration.joinSite
def joinSite(self, machineAdminUrl, username, password): """ The joinSite operation connects a portal machine to an existing site. You must provide an account with administrative privileges to the site for the operation to be successful. """ params = { ...
python
def joinSite(self, machineAdminUrl, username, password): """ The joinSite operation connects a portal machine to an existing site. You must provide an account with administrative privileges to the site for the operation to be successful. """ params = { ...
[ "def", "joinSite", "(", "self", ",", "machineAdminUrl", ",", "username", ",", "password", ")", ":", "params", "=", "{", "\"machineAdminUrl\"", ":", "machineAdminUrl", ",", "\"username\"", ":", "username", ",", "\"password\"", ":", "password", ",", "\"f\"", ":"...
The joinSite operation connects a portal machine to an existing site. You must provide an account with administrative privileges to the site for the operation to be successful.
[ "The", "joinSite", "operation", "connects", "a", "portal", "machine", "to", "an", "existing", "site", ".", "You", "must", "provide", "an", "account", "with", "administrative", "privileges", "to", "the", "site", "for", "the", "operation", "to", "be", "successfu...
ab240fde2b0200f61d4a5f6df033516e53f2f416
https://github.com/Esri/ArcREST/blob/ab240fde2b0200f61d4a5f6df033516e53f2f416/src/arcrest/manageportal/administration.py#L1746-L1760
12,923
Esri/ArcREST
src/arcrest/manageportal/administration.py
PortalAdministration.unregisterMachine
def unregisterMachine(self, machineName): """ This operation unregisters a portal machine from a portal site. The operation can only performed when there are two machines participating in a portal site. """ url = self._url + "/machines/unregister" params = { ...
python
def unregisterMachine(self, machineName): """ This operation unregisters a portal machine from a portal site. The operation can only performed when there are two machines participating in a portal site. """ url = self._url + "/machines/unregister" params = { ...
[ "def", "unregisterMachine", "(", "self", ",", "machineName", ")", ":", "url", "=", "self", ".", "_url", "+", "\"/machines/unregister\"", "params", "=", "{", "\"f\"", ":", "\"json\"", ",", "\"machineName\"", ":", "machineName", "}", "return", "self", ".", "_p...
This operation unregisters a portal machine from a portal site. The operation can only performed when there are two machines participating in a portal site.
[ "This", "operation", "unregisters", "a", "portal", "machine", "from", "a", "portal", "site", ".", "The", "operation", "can", "only", "performed", "when", "there", "are", "two", "machines", "participating", "in", "a", "portal", "site", "." ]
ab240fde2b0200f61d4a5f6df033516e53f2f416
https://github.com/Esri/ArcREST/blob/ab240fde2b0200f61d4a5f6df033516e53f2f416/src/arcrest/manageportal/administration.py#L1762-L1776
12,924
Esri/ArcREST
src/arcrest/manageportal/administration.py
PortalAdministration.federation
def federation(self): """returns the class that controls federation""" url = self._url + "/federation" return _Federation(url=url, securityHandler=self._securityHandler, proxy_url=self._proxy_url, proxy_port=self._p...
python
def federation(self): """returns the class that controls federation""" url = self._url + "/federation" return _Federation(url=url, securityHandler=self._securityHandler, proxy_url=self._proxy_url, proxy_port=self._p...
[ "def", "federation", "(", "self", ")", ":", "url", "=", "self", ".", "_url", "+", "\"/federation\"", "return", "_Federation", "(", "url", "=", "url", ",", "securityHandler", "=", "self", ".", "_securityHandler", ",", "proxy_url", "=", "self", ".", "_proxy_...
returns the class that controls federation
[ "returns", "the", "class", "that", "controls", "federation" ]
ab240fde2b0200f61d4a5f6df033516e53f2f416
https://github.com/Esri/ArcREST/blob/ab240fde2b0200f61d4a5f6df033516e53f2f416/src/arcrest/manageportal/administration.py#L1779-L1785
12,925
Esri/ArcREST
src/arcrest/manageportal/administration.py
PortalAdministration.system
def system(self): """ Creates a reference to the System operations for Portal """ url = self._url + "/system" return _System(url=url, securityHandler=self._securityHandler, proxy_url=self._proxy_url, proxy_port=...
python
def system(self): """ Creates a reference to the System operations for Portal """ url = self._url + "/system" return _System(url=url, securityHandler=self._securityHandler, proxy_url=self._proxy_url, proxy_port=...
[ "def", "system", "(", "self", ")", ":", "url", "=", "self", ".", "_url", "+", "\"/system\"", "return", "_System", "(", "url", "=", "url", ",", "securityHandler", "=", "self", ".", "_securityHandler", ",", "proxy_url", "=", "self", ".", "_proxy_url", ",",...
Creates a reference to the System operations for Portal
[ "Creates", "a", "reference", "to", "the", "System", "operations", "for", "Portal" ]
ab240fde2b0200f61d4a5f6df033516e53f2f416
https://github.com/Esri/ArcREST/blob/ab240fde2b0200f61d4a5f6df033516e53f2f416/src/arcrest/manageportal/administration.py#L1788-L1796
12,926
Esri/ArcREST
src/arcrest/manageportal/administration.py
PortalAdministration.security
def security(self): """ Creates a reference to the Security operations for Portal """ url = self._url + "/security" return _Security(url=url, securityHandler=self._securityHandler, proxy_url=self._proxy_url, ...
python
def security(self): """ Creates a reference to the Security operations for Portal """ url = self._url + "/security" return _Security(url=url, securityHandler=self._securityHandler, proxy_url=self._proxy_url, ...
[ "def", "security", "(", "self", ")", ":", "url", "=", "self", ".", "_url", "+", "\"/security\"", "return", "_Security", "(", "url", "=", "url", ",", "securityHandler", "=", "self", ".", "_securityHandler", ",", "proxy_url", "=", "self", ".", "_proxy_url", ...
Creates a reference to the Security operations for Portal
[ "Creates", "a", "reference", "to", "the", "Security", "operations", "for", "Portal" ]
ab240fde2b0200f61d4a5f6df033516e53f2f416
https://github.com/Esri/ArcREST/blob/ab240fde2b0200f61d4a5f6df033516e53f2f416/src/arcrest/manageportal/administration.py#L1799-L1807
12,927
Esri/ArcREST
src/arcrest/manageportal/administration.py
PortalAdministration.logs
def logs(self): """returns the portals log information""" url = self._url + "/logs" return _log(url=url, securityHandler=self._securityHandler, proxy_url=self._proxy_url, proxy_port=self._proxy_port)
python
def logs(self): """returns the portals log information""" url = self._url + "/logs" return _log(url=url, securityHandler=self._securityHandler, proxy_url=self._proxy_url, proxy_port=self._proxy_port)
[ "def", "logs", "(", "self", ")", ":", "url", "=", "self", ".", "_url", "+", "\"/logs\"", "return", "_log", "(", "url", "=", "url", ",", "securityHandler", "=", "self", ".", "_securityHandler", ",", "proxy_url", "=", "self", ".", "_proxy_url", ",", "pro...
returns the portals log information
[ "returns", "the", "portals", "log", "information" ]
ab240fde2b0200f61d4a5f6df033516e53f2f416
https://github.com/Esri/ArcREST/blob/ab240fde2b0200f61d4a5f6df033516e53f2f416/src/arcrest/manageportal/administration.py#L1810-L1816
12,928
Esri/ArcREST
src/arcrest/opendata/opendata.py
OpenData.search
def search(self, q=None, per_page=None, page=None, bbox=None, sort_by="relavance", sort_order="asc"): """ searches the opendata site and returns the dataset results """ url = self._url + "/datasets....
python
def search(self, q=None, per_page=None, page=None, bbox=None, sort_by="relavance", sort_order="asc"): """ searches the opendata site and returns the dataset results """ url = self._url + "/datasets....
[ "def", "search", "(", "self", ",", "q", "=", "None", ",", "per_page", "=", "None", ",", "page", "=", "None", ",", "bbox", "=", "None", ",", "sort_by", "=", "\"relavance\"", ",", "sort_order", "=", "\"asc\"", ")", ":", "url", "=", "self", ".", "_url...
searches the opendata site and returns the dataset results
[ "searches", "the", "opendata", "site", "and", "returns", "the", "dataset", "results" ]
ab240fde2b0200f61d4a5f6df033516e53f2f416
https://github.com/Esri/ArcREST/blob/ab240fde2b0200f61d4a5f6df033516e53f2f416/src/arcrest/opendata/opendata.py#L42-L75
12,929
Esri/ArcREST
src/arcrest/opendata/opendata.py
OpenData.getDataset
def getDataset(self, itemId): """gets a dataset class""" if self._url.lower().find('datasets') > -1: url = self._url else: url = self._url + "/datasets" return OpenDataItem(url=url, itemId=itemId, securityHan...
python
def getDataset(self, itemId): """gets a dataset class""" if self._url.lower().find('datasets') > -1: url = self._url else: url = self._url + "/datasets" return OpenDataItem(url=url, itemId=itemId, securityHan...
[ "def", "getDataset", "(", "self", ",", "itemId", ")", ":", "if", "self", ".", "_url", ".", "lower", "(", ")", ".", "find", "(", "'datasets'", ")", ">", "-", "1", ":", "url", "=", "self", ".", "_url", "else", ":", "url", "=", "self", ".", "_url"...
gets a dataset class
[ "gets", "a", "dataset", "class" ]
ab240fde2b0200f61d4a5f6df033516e53f2f416
https://github.com/Esri/ArcREST/blob/ab240fde2b0200f61d4a5f6df033516e53f2f416/src/arcrest/opendata/opendata.py#L77-L87
12,930
Esri/ArcREST
src/arcrest/opendata/opendata.py
OpenDataItem.__init
def __init(self): """gets the properties for the site""" url = "%s/%s.json" % (self._url, self._itemId) params = {"f": "json"} json_dict = self._get(url, params, securityHandler=self._securityHandler, proxy_port=self._proxy_port, ...
python
def __init(self): """gets the properties for the site""" url = "%s/%s.json" % (self._url, self._itemId) params = {"f": "json"} json_dict = self._get(url, params, securityHandler=self._securityHandler, proxy_port=self._proxy_port, ...
[ "def", "__init", "(", "self", ")", ":", "url", "=", "\"%s/%s.json\"", "%", "(", "self", ".", "_url", ",", "self", ".", "_itemId", ")", "params", "=", "{", "\"f\"", ":", "\"json\"", "}", "json_dict", "=", "self", ".", "_get", "(", "url", ",", "param...
gets the properties for the site
[ "gets", "the", "properties", "for", "the", "site" ]
ab240fde2b0200f61d4a5f6df033516e53f2f416
https://github.com/Esri/ArcREST/blob/ab240fde2b0200f61d4a5f6df033516e53f2f416/src/arcrest/opendata/opendata.py#L125-L139
12,931
Esri/ArcREST
src/arcrest/opendata/opendata.py
OpenDataItem.export
def export(self, outFormat="shp", outFolder=None): """exports a dataset t""" export_formats = {'shp':".zip", 'kml':'.kml', 'geojson':".geojson",'csv': '.csv'} url = "%s/%s%s" % (self._url, self._itemId, export_formats[outFormat]) results = self._get(url=url, security...
python
def export(self, outFormat="shp", outFolder=None): """exports a dataset t""" export_formats = {'shp':".zip", 'kml':'.kml', 'geojson':".geojson",'csv': '.csv'} url = "%s/%s%s" % (self._url, self._itemId, export_formats[outFormat]) results = self._get(url=url, security...
[ "def", "export", "(", "self", ",", "outFormat", "=", "\"shp\"", ",", "outFolder", "=", "None", ")", ":", "export_formats", "=", "{", "'shp'", ":", "\".zip\"", ",", "'kml'", ":", "'.kml'", ",", "'geojson'", ":", "\".geojson\"", ",", "'csv'", ":", "'.csv'"...
exports a dataset t
[ "exports", "a", "dataset", "t" ]
ab240fde2b0200f61d4a5f6df033516e53f2f416
https://github.com/Esri/ArcREST/blob/ab240fde2b0200f61d4a5f6df033516e53f2f416/src/arcrest/opendata/opendata.py#L142-L152
12,932
Esri/ArcREST
src/arcrest/web/_base.py
BaseOperation.error
def error(self): if self._error is None: try: #__init is renamed to the class with an _ init = getattr(self, "_" + self.__class__.__name__ + "__init", None) if init is not None and callable(init): init() except Exception...
python
def error(self): if self._error is None: try: #__init is renamed to the class with an _ init = getattr(self, "_" + self.__class__.__name__ + "__init", None) if init is not None and callable(init): init() except Exception...
[ "def", "error", "(", "self", ")", ":", "if", "self", ".", "_error", "is", "None", ":", "try", ":", "#__init is renamed to the class with an _", "init", "=", "getattr", "(", "self", ",", "\"_\"", "+", "self", ".", "__class__", ".", "__name__", "+", "\"__ini...
gets the error
[ "gets", "the", "error" ]
ab240fde2b0200f61d4a5f6df033516e53f2f416
https://github.com/Esri/ArcREST/blob/ab240fde2b0200f61d4a5f6df033516e53f2f416/src/arcrest/web/_base.py#L39-L49
12,933
Esri/ArcREST
src/arcrest/web/_base.py
MultiPartForm._2
def _2(self): """python 2.x version of formatting body data""" boundary = self.boundary buf = StringIO() for (key, value) in self.form_fields: buf.write('--%s\r\n' % boundary) buf.write('Content-Disposition: form-data; name="%s"' % key) buf.write('\r\n...
python
def _2(self): """python 2.x version of formatting body data""" boundary = self.boundary buf = StringIO() for (key, value) in self.form_fields: buf.write('--%s\r\n' % boundary) buf.write('Content-Disposition: form-data; name="%s"' % key) buf.write('\r\n...
[ "def", "_2", "(", "self", ")", ":", "boundary", "=", "self", ".", "boundary", "buf", "=", "StringIO", "(", ")", "for", "(", "key", ",", "value", ")", "in", "self", ".", "form_fields", ":", "buf", ".", "write", "(", "'--%s\\r\\n'", "%", "boundary", ...
python 2.x version of formatting body data
[ "python", "2", ".", "x", "version", "of", "formatting", "body", "data" ]
ab240fde2b0200f61d4a5f6df033516e53f2f416
https://github.com/Esri/ArcREST/blob/ab240fde2b0200f61d4a5f6df033516e53f2f416/src/arcrest/web/_base.py#L142-L165
12,934
Esri/ArcREST
src/arcrest/web/_base.py
MultiPartForm._3
def _3(self): """ python 3 method""" boundary = self.boundary buf = BytesIO() textwriter = io.TextIOWrapper( buf, 'utf8', newline='', write_through=True) for (key, value) in self.form_fields: textwriter.write( '--{boundary}\r\n' ...
python
def _3(self): """ python 3 method""" boundary = self.boundary buf = BytesIO() textwriter = io.TextIOWrapper( buf, 'utf8', newline='', write_through=True) for (key, value) in self.form_fields: textwriter.write( '--{boundary}\r\n' ...
[ "def", "_3", "(", "self", ")", ":", "boundary", "=", "self", ".", "boundary", "buf", "=", "BytesIO", "(", ")", "textwriter", "=", "io", ".", "TextIOWrapper", "(", "buf", ",", "'utf8'", ",", "newline", "=", "''", ",", "write_through", "=", "True", ")"...
python 3 method
[ "python", "3", "method" ]
ab240fde2b0200f61d4a5f6df033516e53f2f416
https://github.com/Esri/ArcREST/blob/ab240fde2b0200f61d4a5f6df033516e53f2f416/src/arcrest/web/_base.py#L167-L193
12,935
Esri/ArcREST
src/arcrest/web/_base.py
BaseWebOperations._get_file_name
def _get_file_name(self, contentDisposition, url, ext=".unknown"): """ gets the file name from the header or url if possible """ if self.PY2: if contentDisposition is not None: return re.findall(r'filename[^;=\n]*=(([\'"]).*?\2|[^;\n]*)', ...
python
def _get_file_name(self, contentDisposition, url, ext=".unknown"): """ gets the file name from the header or url if possible """ if self.PY2: if contentDisposition is not None: return re.findall(r'filename[^;=\n]*=(([\'"]).*?\2|[^;\n]*)', ...
[ "def", "_get_file_name", "(", "self", ",", "contentDisposition", ",", "url", ",", "ext", "=", "\".unknown\"", ")", ":", "if", "self", ".", "PY2", ":", "if", "contentDisposition", "is", "not", "None", ":", "return", "re", ".", "findall", "(", "r'filename[^;...
gets the file name from the header or url if possible
[ "gets", "the", "file", "name", "from", "the", "header", "or", "url", "if", "possible" ]
ab240fde2b0200f61d4a5f6df033516e53f2f416
https://github.com/Esri/ArcREST/blob/ab240fde2b0200f61d4a5f6df033516e53f2f416/src/arcrest/web/_base.py#L247-L262
12,936
Esri/ArcREST
src/arcrest/web/_base.py
BaseWebOperations._mainType
def _mainType(self, resp): """ gets the main type from the response object""" if self.PY2: return resp.headers.maintype elif self.PY3: return resp.headers.get_content_maintype() else: return None
python
def _mainType(self, resp): """ gets the main type from the response object""" if self.PY2: return resp.headers.maintype elif self.PY3: return resp.headers.get_content_maintype() else: return None
[ "def", "_mainType", "(", "self", ",", "resp", ")", ":", "if", "self", ".", "PY2", ":", "return", "resp", ".", "headers", ".", "maintype", "elif", "self", ".", "PY3", ":", "return", "resp", ".", "headers", ".", "get_content_maintype", "(", ")", "else", ...
gets the main type from the response object
[ "gets", "the", "main", "type", "from", "the", "response", "object" ]
ab240fde2b0200f61d4a5f6df033516e53f2f416
https://github.com/Esri/ArcREST/blob/ab240fde2b0200f61d4a5f6df033516e53f2f416/src/arcrest/web/_base.py#L346-L353
12,937
Esri/ArcREST
src/arcrest/web/_base.py
BaseWebOperations._chunk
def _chunk(self, response, size=4096): """ downloads a web response in pieces """ method = response.headers.get("content-encoding") if method == "gzip": d = zlib.decompressobj(16+zlib.MAX_WBITS) b = response.read(size) while b: data = d.decompr...
python
def _chunk(self, response, size=4096): """ downloads a web response in pieces """ method = response.headers.get("content-encoding") if method == "gzip": d = zlib.decompressobj(16+zlib.MAX_WBITS) b = response.read(size) while b: data = d.decompr...
[ "def", "_chunk", "(", "self", ",", "response", ",", "size", "=", "4096", ")", ":", "method", "=", "response", ".", "headers", ".", "get", "(", "\"content-encoding\"", ")", "if", "method", "==", "\"gzip\"", ":", "d", "=", "zlib", ".", "decompressobj", "...
downloads a web response in pieces
[ "downloads", "a", "web", "response", "in", "pieces" ]
ab240fde2b0200f61d4a5f6df033516e53f2f416
https://github.com/Esri/ArcREST/blob/ab240fde2b0200f61d4a5f6df033516e53f2f416/src/arcrest/web/_base.py#L355-L370
12,938
Esri/ArcREST
src/arcrest/web/_base.py
BaseWebOperations._asString
def _asString(self, value): """converts the value as a string""" if sys.version_info[0] == 3: if isinstance(value, str): return value elif isinstance(value, bytes): return value.decode('utf-8') elif sys.version_info[0] == 2: ret...
python
def _asString(self, value): """converts the value as a string""" if sys.version_info[0] == 3: if isinstance(value, str): return value elif isinstance(value, bytes): return value.decode('utf-8') elif sys.version_info[0] == 2: ret...
[ "def", "_asString", "(", "self", ",", "value", ")", ":", "if", "sys", ".", "version_info", "[", "0", "]", "==", "3", ":", "if", "isinstance", "(", "value", ",", "str", ")", ":", "return", "value", "elif", "isinstance", "(", "value", ",", "bytes", "...
converts the value as a string
[ "converts", "the", "value", "as", "a", "string" ]
ab240fde2b0200f61d4a5f6df033516e53f2f416
https://github.com/Esri/ArcREST/blob/ab240fde2b0200f61d4a5f6df033516e53f2f416/src/arcrest/web/_base.py#L533-L541
12,939
Esri/ArcREST
src/arcrest/manageags/administration.py
AGSAdministration.machines
def machines(self): """gets a reference to the machines object""" if self._resources is None: self.__init() if "machines" in self._resources: url = self._url + "/machines" return _machines.Machines(url, securityHandler=sel...
python
def machines(self): """gets a reference to the machines object""" if self._resources is None: self.__init() if "machines" in self._resources: url = self._url + "/machines" return _machines.Machines(url, securityHandler=sel...
[ "def", "machines", "(", "self", ")", ":", "if", "self", ".", "_resources", "is", "None", ":", "self", ".", "__init", "(", ")", "if", "\"machines\"", "in", "self", ".", "_resources", ":", "url", "=", "self", ".", "_url", "+", "\"/machines\"", "return", ...
gets a reference to the machines object
[ "gets", "a", "reference", "to", "the", "machines", "object" ]
ab240fde2b0200f61d4a5f6df033516e53f2f416
https://github.com/Esri/ArcREST/blob/ab240fde2b0200f61d4a5f6df033516e53f2f416/src/arcrest/manageags/administration.py#L323-L335
12,940
Esri/ArcREST
src/arcrest/manageags/administration.py
AGSAdministration.data
def data(self): """returns the reference to the data functions as a class""" if self._resources is None: self.__init() if "data" in self._resources: url = self._url + "/data" return _data.Data(url=url, securityHandler=self._securi...
python
def data(self): """returns the reference to the data functions as a class""" if self._resources is None: self.__init() if "data" in self._resources: url = self._url + "/data" return _data.Data(url=url, securityHandler=self._securi...
[ "def", "data", "(", "self", ")", ":", "if", "self", ".", "_resources", "is", "None", ":", "self", ".", "__init", "(", ")", "if", "\"data\"", "in", "self", ".", "_resources", ":", "url", "=", "self", ".", "_url", "+", "\"/data\"", "return", "_data", ...
returns the reference to the data functions as a class
[ "returns", "the", "reference", "to", "the", "data", "functions", "as", "a", "class" ]
ab240fde2b0200f61d4a5f6df033516e53f2f416
https://github.com/Esri/ArcREST/blob/ab240fde2b0200f61d4a5f6df033516e53f2f416/src/arcrest/manageags/administration.py#L338-L350
12,941
Esri/ArcREST
src/arcrest/manageags/administration.py
AGSAdministration.info
def info(self): """ A read-only resource that returns meta information about the server """ if self._resources is None: self.__init() url = self._url + "/info" return _info.Info(url=url, securityHandler=self._securityHandler, ...
python
def info(self): """ A read-only resource that returns meta information about the server """ if self._resources is None: self.__init() url = self._url + "/info" return _info.Info(url=url, securityHandler=self._securityHandler, ...
[ "def", "info", "(", "self", ")", ":", "if", "self", ".", "_resources", "is", "None", ":", "self", ".", "__init", "(", ")", "url", "=", "self", ".", "_url", "+", "\"/info\"", "return", "_info", ".", "Info", "(", "url", "=", "url", ",", "securityHand...
A read-only resource that returns meta information about the server
[ "A", "read", "-", "only", "resource", "that", "returns", "meta", "information", "about", "the", "server" ]
ab240fde2b0200f61d4a5f6df033516e53f2f416
https://github.com/Esri/ArcREST/blob/ab240fde2b0200f61d4a5f6df033516e53f2f416/src/arcrest/manageags/administration.py#L353-L364
12,942
Esri/ArcREST
src/arcrest/manageags/administration.py
AGSAdministration.clusters
def clusters(self): """returns the clusters functions if supported in resources""" if self._resources is None: self.__init() if "clusters" in self._resources: url = self._url + "/clusters" return _clusters.Cluster(url=url, ...
python
def clusters(self): """returns the clusters functions if supported in resources""" if self._resources is None: self.__init() if "clusters" in self._resources: url = self._url + "/clusters" return _clusters.Cluster(url=url, ...
[ "def", "clusters", "(", "self", ")", ":", "if", "self", ".", "_resources", "is", "None", ":", "self", ".", "__init", "(", ")", "if", "\"clusters\"", "in", "self", ".", "_resources", ":", "url", "=", "self", ".", "_url", "+", "\"/clusters\"", "return", ...
returns the clusters functions if supported in resources
[ "returns", "the", "clusters", "functions", "if", "supported", "in", "resources" ]
ab240fde2b0200f61d4a5f6df033516e53f2f416
https://github.com/Esri/ArcREST/blob/ab240fde2b0200f61d4a5f6df033516e53f2f416/src/arcrest/manageags/administration.py#L367-L379
12,943
Esri/ArcREST
src/arcrest/manageags/administration.py
AGSAdministration.services
def services(self): """ Gets the services object which will provide the ArcGIS Server's admin information about services and folders. """ if self._resources is None: self.__init() if "services" in self._resources: url = self._url + "/services" ...
python
def services(self): """ Gets the services object which will provide the ArcGIS Server's admin information about services and folders. """ if self._resources is None: self.__init() if "services" in self._resources: url = self._url + "/services" ...
[ "def", "services", "(", "self", ")", ":", "if", "self", ".", "_resources", "is", "None", ":", "self", ".", "__init", "(", ")", "if", "\"services\"", "in", "self", ".", "_resources", ":", "url", "=", "self", ".", "_url", "+", "\"/services\"", "return", ...
Gets the services object which will provide the ArcGIS Server's admin information about services and folders.
[ "Gets", "the", "services", "object", "which", "will", "provide", "the", "ArcGIS", "Server", "s", "admin", "information", "about", "services", "and", "folders", "." ]
ab240fde2b0200f61d4a5f6df033516e53f2f416
https://github.com/Esri/ArcREST/blob/ab240fde2b0200f61d4a5f6df033516e53f2f416/src/arcrest/manageags/administration.py#L382-L397
12,944
Esri/ArcREST
src/arcrest/manageags/administration.py
AGSAdministration.usagereports
def usagereports(self): """ Gets the services object which will provide the ArcGIS Server's admin information about the usagereports. """ if self._resources is None: self.__init() if "usagereports" in self._resources: url = self._url + "/usagerepor...
python
def usagereports(self): """ Gets the services object which will provide the ArcGIS Server's admin information about the usagereports. """ if self._resources is None: self.__init() if "usagereports" in self._resources: url = self._url + "/usagerepor...
[ "def", "usagereports", "(", "self", ")", ":", "if", "self", ".", "_resources", "is", "None", ":", "self", ".", "__init", "(", ")", "if", "\"usagereports\"", "in", "self", ".", "_resources", ":", "url", "=", "self", ".", "_url", "+", "\"/usagereports\"", ...
Gets the services object which will provide the ArcGIS Server's admin information about the usagereports.
[ "Gets", "the", "services", "object", "which", "will", "provide", "the", "ArcGIS", "Server", "s", "admin", "information", "about", "the", "usagereports", "." ]
ab240fde2b0200f61d4a5f6df033516e53f2f416
https://github.com/Esri/ArcREST/blob/ab240fde2b0200f61d4a5f6df033516e53f2f416/src/arcrest/manageags/administration.py#L400-L415
12,945
Esri/ArcREST
src/arcrest/manageags/administration.py
AGSAdministration.kml
def kml(self): """returns the kml functions for server""" url = self._url + "/kml" return _kml.KML(url=url, securityHandler=self._securityHandler, proxy_url=self._proxy_url, proxy_port=self._proxy_port, ...
python
def kml(self): """returns the kml functions for server""" url = self._url + "/kml" return _kml.KML(url=url, securityHandler=self._securityHandler, proxy_url=self._proxy_url, proxy_port=self._proxy_port, ...
[ "def", "kml", "(", "self", ")", ":", "url", "=", "self", ".", "_url", "+", "\"/kml\"", "return", "_kml", ".", "KML", "(", "url", "=", "url", ",", "securityHandler", "=", "self", ".", "_securityHandler", ",", "proxy_url", "=", "self", ".", "_proxy_url",...
returns the kml functions for server
[ "returns", "the", "kml", "functions", "for", "server" ]
ab240fde2b0200f61d4a5f6df033516e53f2f416
https://github.com/Esri/ArcREST/blob/ab240fde2b0200f61d4a5f6df033516e53f2f416/src/arcrest/manageags/administration.py#L418-L425
12,946
Esri/ArcREST
src/arcrest/manageags/administration.py
AGSAdministration.logs
def logs(self): """returns an object to work with the site logs""" if self._resources is None: self.__init() if "logs" in self._resources: url = self._url + "/logs" return _logs.Log(url=url, securityHandler=self._securityHandler, ...
python
def logs(self): """returns an object to work with the site logs""" if self._resources is None: self.__init() if "logs" in self._resources: url = self._url + "/logs" return _logs.Log(url=url, securityHandler=self._securityHandler, ...
[ "def", "logs", "(", "self", ")", ":", "if", "self", ".", "_resources", "is", "None", ":", "self", ".", "__init", "(", ")", "if", "\"logs\"", "in", "self", ".", "_resources", ":", "url", "=", "self", ".", "_url", "+", "\"/logs\"", "return", "_logs", ...
returns an object to work with the site logs
[ "returns", "an", "object", "to", "work", "with", "the", "site", "logs" ]
ab240fde2b0200f61d4a5f6df033516e53f2f416
https://github.com/Esri/ArcREST/blob/ab240fde2b0200f61d4a5f6df033516e53f2f416/src/arcrest/manageags/administration.py#L428-L440
12,947
Esri/ArcREST
src/arcrest/manageags/administration.py
AGSAdministration.mode
def mode(self): """returns an object to work with the site mode""" if self._resources is None: self.__init() if "mode" in self._resources: url = self._url + "/mode" return _mode.Mode(url=url, securityHandler=self._securityHandler,...
python
def mode(self): """returns an object to work with the site mode""" if self._resources is None: self.__init() if "mode" in self._resources: url = self._url + "/mode" return _mode.Mode(url=url, securityHandler=self._securityHandler,...
[ "def", "mode", "(", "self", ")", ":", "if", "self", ".", "_resources", "is", "None", ":", "self", ".", "__init", "(", ")", "if", "\"mode\"", "in", "self", ".", "_resources", ":", "url", "=", "self", ".", "_url", "+", "\"/mode\"", "return", "_mode", ...
returns an object to work with the site mode
[ "returns", "an", "object", "to", "work", "with", "the", "site", "mode" ]
ab240fde2b0200f61d4a5f6df033516e53f2f416
https://github.com/Esri/ArcREST/blob/ab240fde2b0200f61d4a5f6df033516e53f2f416/src/arcrest/manageags/administration.py#L443-L455
12,948
Esri/ArcREST
src/arcrest/manageags/administration.py
AGSAdministration.security
def security(self): """returns an object to work with the site security""" if self._resources is None: self.__init() if "security" in self._resources: url = self._url + "/security" return _security.Security(url=url, securi...
python
def security(self): """returns an object to work with the site security""" if self._resources is None: self.__init() if "security" in self._resources: url = self._url + "/security" return _security.Security(url=url, securi...
[ "def", "security", "(", "self", ")", ":", "if", "self", ".", "_resources", "is", "None", ":", "self", ".", "__init", "(", ")", "if", "\"security\"", "in", "self", ".", "_resources", ":", "url", "=", "self", ".", "_url", "+", "\"/security\"", "return", ...
returns an object to work with the site security
[ "returns", "an", "object", "to", "work", "with", "the", "site", "security" ]
ab240fde2b0200f61d4a5f6df033516e53f2f416
https://github.com/Esri/ArcREST/blob/ab240fde2b0200f61d4a5f6df033516e53f2f416/src/arcrest/manageags/administration.py#L458-L470
12,949
Esri/ArcREST
src/arcrest/manageags/administration.py
AGSAdministration.system
def system(self): """returns an object to work with the site system""" if self._resources is None: self.__init() if "system" in self._resources: url = self._url + "/system" return _system.System(url=url, securityHandler=self._...
python
def system(self): """returns an object to work with the site system""" if self._resources is None: self.__init() if "system" in self._resources: url = self._url + "/system" return _system.System(url=url, securityHandler=self._...
[ "def", "system", "(", "self", ")", ":", "if", "self", ".", "_resources", "is", "None", ":", "self", ".", "__init", "(", ")", "if", "\"system\"", "in", "self", ".", "_resources", ":", "url", "=", "self", ".", "_url", "+", "\"/system\"", "return", "_sy...
returns an object to work with the site system
[ "returns", "an", "object", "to", "work", "with", "the", "site", "system" ]
ab240fde2b0200f61d4a5f6df033516e53f2f416
https://github.com/Esri/ArcREST/blob/ab240fde2b0200f61d4a5f6df033516e53f2f416/src/arcrest/manageags/administration.py#L473-L485
12,950
Esri/ArcREST
src/arcrest/manageags/administration.py
AGSAdministration.uploads
def uploads(self): """returns an object to work with the site uploads""" if self._resources is None: self.__init() if "uploads" in self._resources: url = self._url + "/uploads" return _uploads.Uploads(url=url, securityHandle...
python
def uploads(self): """returns an object to work with the site uploads""" if self._resources is None: self.__init() if "uploads" in self._resources: url = self._url + "/uploads" return _uploads.Uploads(url=url, securityHandle...
[ "def", "uploads", "(", "self", ")", ":", "if", "self", ".", "_resources", "is", "None", ":", "self", ".", "__init", "(", ")", "if", "\"uploads\"", "in", "self", ".", "_resources", ":", "url", "=", "self", ".", "_url", "+", "\"/uploads\"", "return", "...
returns an object to work with the site uploads
[ "returns", "an", "object", "to", "work", "with", "the", "site", "uploads" ]
ab240fde2b0200f61d4a5f6df033516e53f2f416
https://github.com/Esri/ArcREST/blob/ab240fde2b0200f61d4a5f6df033516e53f2f416/src/arcrest/manageags/administration.py#L488-L500
12,951
Esri/ArcREST
src/arcrest/manageorg/_community.py
Community.getGroupIDs
def getGroupIDs(self, groupNames,communityInfo=None): """ This function retrieves the group IDs Inputs: group_names - tuple of group names Output: dict - list of group IDs """ group_ids=[] if communityInfo is None: ...
python
def getGroupIDs(self, groupNames,communityInfo=None): """ This function retrieves the group IDs Inputs: group_names - tuple of group names Output: dict - list of group IDs """ group_ids=[] if communityInfo is None: ...
[ "def", "getGroupIDs", "(", "self", ",", "groupNames", ",", "communityInfo", "=", "None", ")", ":", "group_ids", "=", "[", "]", "if", "communityInfo", "is", "None", ":", "communityInfo", "=", "self", ".", "communitySelf", "if", "isinstance", "(", "groupNames"...
This function retrieves the group IDs Inputs: group_names - tuple of group names Output: dict - list of group IDs
[ "This", "function", "retrieves", "the", "group", "IDs" ]
ab240fde2b0200f61d4a5f6df033516e53f2f416
https://github.com/Esri/ArcREST/blob/ab240fde2b0200f61d4a5f6df033516e53f2f416/src/arcrest/manageorg/_community.py#L119-L143
12,952
Esri/ArcREST
src/arcrest/manageorg/_community.py
Community.groups
def groups(self): """ returns the group object """ return Groups(url="%s/groups" % self.root, securityHandler=self._securityHandler, proxy_url=self._proxy_url, proxy_port=self._proxy_port, initalize=False)
python
def groups(self): """ returns the group object """ return Groups(url="%s/groups" % self.root, securityHandler=self._securityHandler, proxy_url=self._proxy_url, proxy_port=self._proxy_port, initalize=False)
[ "def", "groups", "(", "self", ")", ":", "return", "Groups", "(", "url", "=", "\"%s/groups\"", "%", "self", ".", "root", ",", "securityHandler", "=", "self", ".", "_securityHandler", ",", "proxy_url", "=", "self", ".", "_proxy_url", ",", "proxy_port", "=", ...
returns the group object
[ "returns", "the", "group", "object" ]
ab240fde2b0200f61d4a5f6df033516e53f2f416
https://github.com/Esri/ArcREST/blob/ab240fde2b0200f61d4a5f6df033516e53f2f416/src/arcrest/manageorg/_community.py#L250-L256
12,953
Esri/ArcREST
src/arcrest/manageorg/_community.py
Groups.group
def group(self, groupId): """ gets a group based on it's ID """ url = "%s/%s" % (self.root, groupId) return Group(url=url, securityHandler=self._securityHandler, proxy_url=self._proxy_url, proxy_port=self._proxy_port,...
python
def group(self, groupId): """ gets a group based on it's ID """ url = "%s/%s" % (self.root, groupId) return Group(url=url, securityHandler=self._securityHandler, proxy_url=self._proxy_url, proxy_port=self._proxy_port,...
[ "def", "group", "(", "self", ",", "groupId", ")", ":", "url", "=", "\"%s/%s\"", "%", "(", "self", ".", "root", ",", "groupId", ")", "return", "Group", "(", "url", "=", "url", ",", "securityHandler", "=", "self", ".", "_securityHandler", ",", "proxy_url...
gets a group based on it's ID
[ "gets", "a", "group", "based", "on", "it", "s", "ID" ]
ab240fde2b0200f61d4a5f6df033516e53f2f416
https://github.com/Esri/ArcREST/blob/ab240fde2b0200f61d4a5f6df033516e53f2f416/src/arcrest/manageorg/_community.py#L399-L408
12,954
Esri/ArcREST
src/arcrest/manageorg/_community.py
Group.invite
def invite(self, users, role, expiration=1440): """ A group administrator can invite users to join their group using the Invite to Group operation. This creates a new user invitation, which the users accept or decline. The role of the user and the invitation expiration date can b...
python
def invite(self, users, role, expiration=1440): """ A group administrator can invite users to join their group using the Invite to Group operation. This creates a new user invitation, which the users accept or decline. The role of the user and the invitation expiration date can b...
[ "def", "invite", "(", "self", ",", "users", ",", "role", ",", "expiration", "=", "1440", ")", ":", "params", "=", "{", "\"f\"", ":", "\"json\"", ",", "\"users\"", ":", "users", ",", "\"role\"", ":", "role", ",", "\"expiration\"", ":", "expiration", "}"...
A group administrator can invite users to join their group using the Invite to Group operation. This creates a new user invitation, which the users accept or decline. The role of the user and the invitation expiration date can be set in the invitation. A notification is created for the u...
[ "A", "group", "administrator", "can", "invite", "users", "to", "join", "their", "group", "using", "the", "Invite", "to", "Group", "operation", ".", "This", "creates", "a", "new", "user", "invitation", "which", "the", "users", "accept", "or", "decline", ".", ...
ab240fde2b0200f61d4a5f6df033516e53f2f416
https://github.com/Esri/ArcREST/blob/ab240fde2b0200f61d4a5f6df033516e53f2f416/src/arcrest/manageorg/_community.py#L861-L900
12,955
Esri/ArcREST
src/arcrest/manageorg/_community.py
Group.applications
def applications(self): """returns all the group applications to join""" url = self._url + "/applications" params = {"f" : "json"} res = self._get(url=url, param_dict=params, proxy_url=self._proxy_url, proxy...
python
def applications(self): """returns all the group applications to join""" url = self._url + "/applications" params = {"f" : "json"} res = self._get(url=url, param_dict=params, proxy_url=self._proxy_url, proxy...
[ "def", "applications", "(", "self", ")", ":", "url", "=", "self", ".", "_url", "+", "\"/applications\"", "params", "=", "{", "\"f\"", ":", "\"json\"", "}", "res", "=", "self", ".", "_get", "(", "url", "=", "url", ",", "param_dict", "=", "params", ","...
returns all the group applications to join
[ "returns", "all", "the", "group", "applications", "to", "join" ]
ab240fde2b0200f61d4a5f6df033516e53f2f416
https://github.com/Esri/ArcREST/blob/ab240fde2b0200f61d4a5f6df033516e53f2f416/src/arcrest/manageorg/_community.py#L987-L1004
12,956
Esri/ArcREST
src/arcrest/manageorg/_community.py
Users.search
def search(self, q, start=1, num=10, sortField="username", sortOrder="asc"): """ The User Search operation searches for users in the portal. The search index is updated whenever users are created, updated, or ...
python
def search(self, q, start=1, num=10, sortField="username", sortOrder="asc"): """ The User Search operation searches for users in the portal. The search index is updated whenever users are created, updated, or ...
[ "def", "search", "(", "self", ",", "q", ",", "start", "=", "1", ",", "num", "=", "10", ",", "sortField", "=", "\"username\"", ",", "sortOrder", "=", "\"asc\"", ")", ":", "params", "=", "{", "\"f\"", ":", "\"json\"", ",", "\"q\"", ":", "q", ",", "...
The User Search operation searches for users in the portal. The search index is updated whenever users are created, updated, or deleted. There can be a lag between the time that the user is updated and the time when it's reflected in the search results. The results only contain users tha...
[ "The", "User", "Search", "operation", "searches", "for", "users", "in", "the", "portal", ".", "The", "search", "index", "is", "updated", "whenever", "users", "are", "created", "updated", "or", "deleted", ".", "There", "can", "be", "a", "lag", "between", "t...
ab240fde2b0200f61d4a5f6df033516e53f2f416
https://github.com/Esri/ArcREST/blob/ab240fde2b0200f61d4a5f6df033516e53f2f416/src/arcrest/manageorg/_community.py#L1157-L1206
12,957
Esri/ArcREST
src/arcrest/manageorg/_community.py
Users.__getUsername
def __getUsername(self): """tries to parse the user name from various objects""" if self._securityHandler is not None and \ not self._securityHandler._username is None: return self._securityHandler._username elif self._securityHandler is not None and \ hasa...
python
def __getUsername(self): """tries to parse the user name from various objects""" if self._securityHandler is not None and \ not self._securityHandler._username is None: return self._securityHandler._username elif self._securityHandler is not None and \ hasa...
[ "def", "__getUsername", "(", "self", ")", ":", "if", "self", ".", "_securityHandler", "is", "not", "None", "and", "not", "self", ".", "_securityHandler", ".", "_username", "is", "None", ":", "return", "self", ".", "_securityHandler", ".", "_username", "elif"...
tries to parse the user name from various objects
[ "tries", "to", "parse", "the", "user", "name", "from", "various", "objects" ]
ab240fde2b0200f61d4a5f6df033516e53f2f416
https://github.com/Esri/ArcREST/blob/ab240fde2b0200f61d4a5f6df033516e53f2f416/src/arcrest/manageorg/_community.py#L1208-L1230
12,958
Esri/ArcREST
src/arcrest/manageorg/_community.py
Users.user
def user(self, username=None): """A user resource that represents a registered user in the portal.""" if username is None: username = self.__getUsername() parsedUsername = urlparse.quote(username) url = self.root + "/%s" % parsedUsername return User(url=url, ...
python
def user(self, username=None): """A user resource that represents a registered user in the portal.""" if username is None: username = self.__getUsername() parsedUsername = urlparse.quote(username) url = self.root + "/%s" % parsedUsername return User(url=url, ...
[ "def", "user", "(", "self", ",", "username", "=", "None", ")", ":", "if", "username", "is", "None", ":", "username", "=", "self", ".", "__getUsername", "(", ")", "parsedUsername", "=", "urlparse", ".", "quote", "(", "username", ")", "url", "=", "self",...
A user resource that represents a registered user in the portal.
[ "A", "user", "resource", "that", "represents", "a", "registered", "user", "in", "the", "portal", "." ]
ab240fde2b0200f61d4a5f6df033516e53f2f416
https://github.com/Esri/ArcREST/blob/ab240fde2b0200f61d4a5f6df033516e53f2f416/src/arcrest/manageorg/_community.py#L1233-L1243
12,959
Esri/ArcREST
src/arcrest/manageorg/_community.py
User.userContent
def userContent(self): """allows access into the individual user's content to get at the items owned by the current user""" replace_start = self._url.lower().find("/community/") len_replace = len("/community/") url = self._url.replace(self._url[replace_start:replace_start+len_rep...
python
def userContent(self): """allows access into the individual user's content to get at the items owned by the current user""" replace_start = self._url.lower().find("/community/") len_replace = len("/community/") url = self._url.replace(self._url[replace_start:replace_start+len_rep...
[ "def", "userContent", "(", "self", ")", ":", "replace_start", "=", "self", ".", "_url", ".", "lower", "(", ")", ".", "find", "(", "\"/community/\"", ")", "len_replace", "=", "len", "(", "\"/community/\"", ")", "url", "=", "self", ".", "_url", ".", "rep...
allows access into the individual user's content to get at the items owned by the current user
[ "allows", "access", "into", "the", "individual", "user", "s", "content", "to", "get", "at", "the", "items", "owned", "by", "the", "current", "user" ]
ab240fde2b0200f61d4a5f6df033516e53f2f416
https://github.com/Esri/ArcREST/blob/ab240fde2b0200f61d4a5f6df033516e53f2f416/src/arcrest/manageorg/_community.py#L1348-L1359
12,960
Esri/ArcREST
src/arcrest/manageorg/_community.py
User.invitations
def invitations(self): """returns a class to access the current user's invitations""" url = "%s/invitations" % self.root return Invitations(url=url, securityHandler=self._securityHandler, proxy_url=self._proxy_url, ...
python
def invitations(self): """returns a class to access the current user's invitations""" url = "%s/invitations" % self.root return Invitations(url=url, securityHandler=self._securityHandler, proxy_url=self._proxy_url, ...
[ "def", "invitations", "(", "self", ")", ":", "url", "=", "\"%s/invitations\"", "%", "self", ".", "root", "return", "Invitations", "(", "url", "=", "url", ",", "securityHandler", "=", "self", ".", "_securityHandler", ",", "proxy_url", "=", "self", ".", "_pr...
returns a class to access the current user's invitations
[ "returns", "a", "class", "to", "access", "the", "current", "user", "s", "invitations" ]
ab240fde2b0200f61d4a5f6df033516e53f2f416
https://github.com/Esri/ArcREST/blob/ab240fde2b0200f61d4a5f6df033516e53f2f416/src/arcrest/manageorg/_community.py#L1634-L1640
12,961
Esri/ArcREST
src/arcrest/manageorg/_community.py
User.notifications
def notifications(self): """The notifications that are available for the given user. Notifications are events that need the user's attention-application for joining a group administered by the user, acceptance of a group membership application, and so on. A notification is initially ...
python
def notifications(self): """The notifications that are available for the given user. Notifications are events that need the user's attention-application for joining a group administered by the user, acceptance of a group membership application, and so on. A notification is initially ...
[ "def", "notifications", "(", "self", ")", ":", "params", "=", "{", "\"f\"", ":", "\"json\"", "}", "url", "=", "\"%s/notifications\"", "%", "self", ".", "root", "return", "Notifications", "(", "url", "=", "url", ",", "securityHandler", "=", "self", ".", "...
The notifications that are available for the given user. Notifications are events that need the user's attention-application for joining a group administered by the user, acceptance of a group membership application, and so on. A notification is initially marked as new. The user can mark...
[ "The", "notifications", "that", "are", "available", "for", "the", "given", "user", ".", "Notifications", "are", "events", "that", "need", "the", "user", "s", "attention", "-", "application", "for", "joining", "a", "group", "administered", "by", "the", "user", ...
ab240fde2b0200f61d4a5f6df033516e53f2f416
https://github.com/Esri/ArcREST/blob/ab240fde2b0200f61d4a5f6df033516e53f2f416/src/arcrest/manageorg/_community.py#L1643-L1655
12,962
Esri/ArcREST
src/arcrest/manageorg/_community.py
User.resetPassword
def resetPassword(self, email=True): """ resets a users password for an account. The password will be randomly generated and emailed by the system. Input: email - boolean that an email password will be sent to the user's profile email address. The default...
python
def resetPassword(self, email=True): """ resets a users password for an account. The password will be randomly generated and emailed by the system. Input: email - boolean that an email password will be sent to the user's profile email address. The default...
[ "def", "resetPassword", "(", "self", ",", "email", "=", "True", ")", ":", "url", "=", "self", ".", "root", "+", "\"/reset\"", "params", "=", "{", "\"f\"", ":", "\"json\"", ",", "\"email\"", ":", "email", "}", "return", "self", ".", "_post", "(", "url...
resets a users password for an account. The password will be randomly generated and emailed by the system. Input: email - boolean that an email password will be sent to the user's profile email address. The default is True.
[ "resets", "a", "users", "password", "for", "an", "account", ".", "The", "password", "will", "be", "randomly", "generated", "and", "emailed", "by", "the", "system", "." ]
ab240fde2b0200f61d4a5f6df033516e53f2f416
https://github.com/Esri/ArcREST/blob/ab240fde2b0200f61d4a5f6df033516e53f2f416/src/arcrest/manageorg/_community.py#L1692-L1711
12,963
Esri/ArcREST
src/arcrest/manageorg/_community.py
User.expirePassword
def expirePassword(self, hours="now"): """sets a time when a user must reset their password""" params = { "f" : "json" } expiration = -1 if isinstance(hours, str): if expiration == "now": expiration = -1 ...
python
def expirePassword(self, hours="now"): """sets a time when a user must reset their password""" params = { "f" : "json" } expiration = -1 if isinstance(hours, str): if expiration == "now": expiration = -1 ...
[ "def", "expirePassword", "(", "self", ",", "hours", "=", "\"now\"", ")", ":", "params", "=", "{", "\"f\"", ":", "\"json\"", "}", "expiration", "=", "-", "1", "if", "isinstance", "(", "hours", ",", "str", ")", ":", "if", "expiration", "==", "\"now\"", ...
sets a time when a user must reset their password
[ "sets", "a", "time", "when", "a", "user", "must", "reset", "their", "password" ]
ab240fde2b0200f61d4a5f6df033516e53f2f416
https://github.com/Esri/ArcREST/blob/ab240fde2b0200f61d4a5f6df033516e53f2f416/src/arcrest/manageorg/_community.py#L1713-L1739
12,964
Esri/ArcREST
src/arcrest/manageorg/_community.py
Invitations.userInvitations
def userInvitations(self): """gets all user invitations""" self.__init() items = [] for n in self._userInvitations: if "id" in n: url = "%s/%s" % (self.root, n['id']) items.append(self.Invitation(url=url, ...
python
def userInvitations(self): """gets all user invitations""" self.__init() items = [] for n in self._userInvitations: if "id" in n: url = "%s/%s" % (self.root, n['id']) items.append(self.Invitation(url=url, ...
[ "def", "userInvitations", "(", "self", ")", ":", "self", ".", "__init", "(", ")", "items", "=", "[", "]", "for", "n", "in", "self", ".", "_userInvitations", ":", "if", "\"id\"", "in", "n", ":", "url", "=", "\"%s/%s\"", "%", "(", "self", ".", "root"...
gets all user invitations
[ "gets", "all", "user", "invitations" ]
ab240fde2b0200f61d4a5f6df033516e53f2f416
https://github.com/Esri/ArcREST/blob/ab240fde2b0200f61d4a5f6df033516e53f2f416/src/arcrest/manageorg/_community.py#L2169-L2181
12,965
Esri/ArcREST
src/arcrest/manageorg/_community.py
Notifications.notifications
def notifications(self): """gets the user's notifications""" self.__init() items = [] for n in self._notifications: if "id" in n: url = "%s/%s" % (self.root, n['id']) items.append(self.Notification(url=url, ...
python
def notifications(self): """gets the user's notifications""" self.__init() items = [] for n in self._notifications: if "id" in n: url = "%s/%s" % (self.root, n['id']) items.append(self.Notification(url=url, ...
[ "def", "notifications", "(", "self", ")", ":", "self", ".", "__init", "(", ")", "items", "=", "[", "]", "for", "n", "in", "self", ".", "_notifications", ":", "if", "\"id\"", "in", "n", ":", "url", "=", "\"%s/%s\"", "%", "(", "self", ".", "root", ...
gets the user's notifications
[ "gets", "the", "user", "s", "notifications" ]
ab240fde2b0200f61d4a5f6df033516e53f2f416
https://github.com/Esri/ArcREST/blob/ab240fde2b0200f61d4a5f6df033516e53f2f416/src/arcrest/manageorg/_community.py#L2378-L2389
12,966
Esri/ArcREST
src/arcrest/common/filters.py
StatisticFilter.add
def add(self, statisticType, onStatisticField, outStatisticFieldName=None): """ Adds the statistics group to the filter. outStatistics - is supported on only those layers/tables that indicate supportsStatistics is true. outStatisticFieldName is empty or missing, the map server...
python
def add(self, statisticType, onStatisticField, outStatisticFieldName=None): """ Adds the statistics group to the filter. outStatistics - is supported on only those layers/tables that indicate supportsStatistics is true. outStatisticFieldName is empty or missing, the map server...
[ "def", "add", "(", "self", ",", "statisticType", ",", "onStatisticField", ",", "outStatisticFieldName", "=", "None", ")", ":", "val", "=", "{", "\"statisticType\"", ":", "statisticType", ",", "\"onStatisticField\"", ":", "onStatisticField", ",", "\"outStatisticField...
Adds the statistics group to the filter. outStatistics - is supported on only those layers/tables that indicate supportsStatistics is true. outStatisticFieldName is empty or missing, the map server assigns a field name to the returned statistic field. A valid field name ca...
[ "Adds", "the", "statistics", "group", "to", "the", "filter", "." ]
ab240fde2b0200f61d4a5f6df033516e53f2f416
https://github.com/Esri/ArcREST/blob/ab240fde2b0200f61d4a5f6df033516e53f2f416/src/arcrest/common/filters.py#L24-L46
12,967
Esri/ArcREST
src/arcrest/common/filters.py
LayerDefinitionFilter.addFilter
def addFilter(self, layer_id, where=None, outFields="*"): """ adds a layer definition filter """ import copy f = copy.deepcopy(self._filterTemplate) f['layerId'] = layer_id f['outFields'] = outFields if where is not None: f['where'] = where if f not in...
python
def addFilter(self, layer_id, where=None, outFields="*"): """ adds a layer definition filter """ import copy f = copy.deepcopy(self._filterTemplate) f['layerId'] = layer_id f['outFields'] = outFields if where is not None: f['where'] = where if f not in...
[ "def", "addFilter", "(", "self", ",", "layer_id", ",", "where", "=", "None", ",", "outFields", "=", "\"*\"", ")", ":", "import", "copy", "f", "=", "copy", ".", "deepcopy", "(", "self", ".", "_filterTemplate", ")", "f", "[", "'layerId'", "]", "=", "la...
adds a layer definition filter
[ "adds", "a", "layer", "definition", "filter" ]
ab240fde2b0200f61d4a5f6df033516e53f2f416
https://github.com/Esri/ArcREST/blob/ab240fde2b0200f61d4a5f6df033516e53f2f416/src/arcrest/common/filters.py#L76-L85
12,968
Esri/ArcREST
src/arcrest/common/filters.py
LayerDefinitionFilter.removeFilter
def removeFilter(self, filter_index): """ removes a layer filter based on position in filter list """ f = self._filter[filter_index] self._filter.remove(f)
python
def removeFilter(self, filter_index): """ removes a layer filter based on position in filter list """ f = self._filter[filter_index] self._filter.remove(f)
[ "def", "removeFilter", "(", "self", ",", "filter_index", ")", ":", "f", "=", "self", ".", "_filter", "[", "filter_index", "]", "self", ".", "_filter", ".", "remove", "(", "f", ")" ]
removes a layer filter based on position in filter list
[ "removes", "a", "layer", "filter", "based", "on", "position", "in", "filter", "list" ]
ab240fde2b0200f61d4a5f6df033516e53f2f416
https://github.com/Esri/ArcREST/blob/ab240fde2b0200f61d4a5f6df033516e53f2f416/src/arcrest/common/filters.py#L87-L90
12,969
Esri/ArcREST
src/arcrest/common/filters.py
GeometryFilter.geometry
def geometry(self, geometry): """ sets the geometry value """ if isinstance(geometry, AbstractGeometry): self._geomObject = geometry self._geomType = geometry.type elif arcpyFound : wkid = None wkt = None if (hasattr(geometry, 'sp...
python
def geometry(self, geometry): """ sets the geometry value """ if isinstance(geometry, AbstractGeometry): self._geomObject = geometry self._geomType = geometry.type elif arcpyFound : wkid = None wkt = None if (hasattr(geometry, 'sp...
[ "def", "geometry", "(", "self", ",", "geometry", ")", ":", "if", "isinstance", "(", "geometry", ",", "AbstractGeometry", ")", ":", "self", ".", "_geomObject", "=", "geometry", "self", ".", "_geomType", "=", "geometry", ".", "type", "elif", "arcpyFound", ":...
sets the geometry value
[ "sets", "the", "geometry", "value" ]
ab240fde2b0200f61d4a5f6df033516e53f2f416
https://github.com/Esri/ArcREST/blob/ab240fde2b0200f61d4a5f6df033516e53f2f416/src/arcrest/common/filters.py#L189-L222
12,970
Esri/ArcREST
src/arcrest/ags/_mobileservice.py
MobileService.layers
def layers(self): """gets the service layers""" if self._layers is None: self.__init() lyrs = [] for lyr in self._layers: url = self._url + "/%s" % lyr['id'] lyr['object'] = MobileServiceLayer(url=url, sec...
python
def layers(self): """gets the service layers""" if self._layers is None: self.__init() lyrs = [] for lyr in self._layers: url = self._url + "/%s" % lyr['id'] lyr['object'] = MobileServiceLayer(url=url, sec...
[ "def", "layers", "(", "self", ")", ":", "if", "self", ".", "_layers", "is", "None", ":", "self", ".", "__init", "(", ")", "lyrs", "=", "[", "]", "for", "lyr", "in", "self", ".", "_layers", ":", "url", "=", "self", ".", "_url", "+", "\"/%s\"", "...
gets the service layers
[ "gets", "the", "service", "layers" ]
ab240fde2b0200f61d4a5f6df033516e53f2f416
https://github.com/Esri/ArcREST/blob/ab240fde2b0200f61d4a5f6df033516e53f2f416/src/arcrest/ags/_mobileservice.py#L346-L358
12,971
Esri/ArcREST
src/arcrest/manageags/_clusters.py
Cluster.clusters
def clusters(self): """returns the cluster object for each server""" if self._clusters is not None: self.__init() Cs = [] for c in self._clusters: url = self._url + "/%s" % c['clusterName'] Cs.append(Cluster(url=url, ...
python
def clusters(self): """returns the cluster object for each server""" if self._clusters is not None: self.__init() Cs = [] for c in self._clusters: url = self._url + "/%s" % c['clusterName'] Cs.append(Cluster(url=url, ...
[ "def", "clusters", "(", "self", ")", ":", "if", "self", ".", "_clusters", "is", "not", "None", ":", "self", ".", "__init", "(", ")", "Cs", "=", "[", "]", "for", "c", "in", "self", ".", "_clusters", ":", "url", "=", "self", ".", "_url", "+", "\"...
returns the cluster object for each server
[ "returns", "the", "cluster", "object", "for", "each", "server" ]
ab240fde2b0200f61d4a5f6df033516e53f2f416
https://github.com/Esri/ArcREST/blob/ab240fde2b0200f61d4a5f6df033516e53f2f416/src/arcrest/manageags/_clusters.py#L184-L197
12,972
Esri/ArcREST
src/arcrest/manageags/_clusters.py
Cluster.editProtocol
def editProtocol(self, clusterProtocolObj): """ Updates the Cluster Protocol. This will cause the cluster to be restarted with updated protocol configuration. """ if isinstance(clusterProtocolObj, ClusterProtocol): pass else: raise AttributeError("Invalid Inpu...
python
def editProtocol(self, clusterProtocolObj): """ Updates the Cluster Protocol. This will cause the cluster to be restarted with updated protocol configuration. """ if isinstance(clusterProtocolObj, ClusterProtocol): pass else: raise AttributeError("Invalid Inpu...
[ "def", "editProtocol", "(", "self", ",", "clusterProtocolObj", ")", ":", "if", "isinstance", "(", "clusterProtocolObj", ",", "ClusterProtocol", ")", ":", "pass", "else", ":", "raise", "AttributeError", "(", "\"Invalid Input, must be a ClusterProtocal Object\"", ")", "...
Updates the Cluster Protocol. This will cause the cluster to be restarted with updated protocol configuration.
[ "Updates", "the", "Cluster", "Protocol", ".", "This", "will", "cause", "the", "cluster", "to", "be", "restarted", "with", "updated", "protocol", "configuration", "." ]
ab240fde2b0200f61d4a5f6df033516e53f2f416
https://github.com/Esri/ArcREST/blob/ab240fde2b0200f61d4a5f6df033516e53f2f416/src/arcrest/manageags/_clusters.py#L363-L380
12,973
Esri/ArcREST
src/arcrest/ags/_geoprocessing.py
GPTask.parameters
def parameters(self): """ returns the default parameters """ if self._parameters is None: self.__init() for param in self._parameters: if not isinstance(param['defaultValue'], BaseGPObject): if param['dataType'] == "GPFeatureRecordSetLayer": ...
python
def parameters(self): """ returns the default parameters """ if self._parameters is None: self.__init() for param in self._parameters: if not isinstance(param['defaultValue'], BaseGPObject): if param['dataType'] == "GPFeatureRecordSetLayer": ...
[ "def", "parameters", "(", "self", ")", ":", "if", "self", ".", "_parameters", "is", "None", ":", "self", ".", "__init", "(", ")", "for", "param", "in", "self", ".", "_parameters", ":", "if", "not", "isinstance", "(", "param", "[", "'defaultValue'", "]"...
returns the default parameters
[ "returns", "the", "default", "parameters" ]
ab240fde2b0200f61d4a5f6df033516e53f2f416
https://github.com/Esri/ArcREST/blob/ab240fde2b0200f61d4a5f6df033516e53f2f416/src/arcrest/ags/_geoprocessing.py#L228-L258
12,974
Esri/ArcREST
src/arcrest/ags/_geoprocessing.py
GPTask.getJob
def getJob(self, jobID): """ returns the results or status of a job """ url = self._url + "/jobs/%s" % (jobID) return GPJob(url=url, securityHandler=self._securityHandler, proxy_port=self._proxy_port, proxy_url=self._proxy_url)
python
def getJob(self, jobID): """ returns the results or status of a job """ url = self._url + "/jobs/%s" % (jobID) return GPJob(url=url, securityHandler=self._securityHandler, proxy_port=self._proxy_port, proxy_url=self._proxy_url)
[ "def", "getJob", "(", "self", ",", "jobID", ")", ":", "url", "=", "self", ".", "_url", "+", "\"/jobs/%s\"", "%", "(", "jobID", ")", "return", "GPJob", "(", "url", "=", "url", ",", "securityHandler", "=", "self", ".", "_securityHandler", ",", "proxy_por...
returns the results or status of a job
[ "returns", "the", "results", "or", "status", "of", "a", "job" ]
ab240fde2b0200f61d4a5f6df033516e53f2f416
https://github.com/Esri/ArcREST/blob/ab240fde2b0200f61d4a5f6df033516e53f2f416/src/arcrest/ags/_geoprocessing.py#L281-L287
12,975
Esri/ArcREST
src/arcrest/ags/_geoprocessing.py
GPTask.executeTask
def executeTask(self, inputs, outSR=None, processSR=None, returnZ=False, returnM=False, f="json", method="POST" ): """ performs the execute task...
python
def executeTask(self, inputs, outSR=None, processSR=None, returnZ=False, returnM=False, f="json", method="POST" ): """ performs the execute task...
[ "def", "executeTask", "(", "self", ",", "inputs", ",", "outSR", "=", "None", ",", "processSR", "=", "None", ",", "returnZ", "=", "False", ",", "returnM", "=", "False", ",", "f", "=", "\"json\"", ",", "method", "=", "\"POST\"", ")", ":", "params", "="...
performs the execute task method
[ "performs", "the", "execute", "task", "method" ]
ab240fde2b0200f61d4a5f6df033516e53f2f416
https://github.com/Esri/ArcREST/blob/ab240fde2b0200f61d4a5f6df033516e53f2f416/src/arcrest/ags/_geoprocessing.py#L344-L382
12,976
Esri/ArcREST
src/arcrest/ags/_geoprocessing.py
GPJob._get_json
def _get_json(self, urlpart): """ gets the result object dictionary """ url = self._url + "/%s" % urlpart params = { "f" : "json", } return self._get(url=url, param_dict=params, securityHandler=s...
python
def _get_json(self, urlpart): """ gets the result object dictionary """ url = self._url + "/%s" % urlpart params = { "f" : "json", } return self._get(url=url, param_dict=params, securityHandler=s...
[ "def", "_get_json", "(", "self", ",", "urlpart", ")", ":", "url", "=", "self", ".", "_url", "+", "\"/%s\"", "%", "urlpart", "params", "=", "{", "\"f\"", ":", "\"json\"", ",", "}", "return", "self", ".", "_get", "(", "url", "=", "url", ",", "param_d...
gets the result object dictionary
[ "gets", "the", "result", "object", "dictionary" ]
ab240fde2b0200f61d4a5f6df033516e53f2f416
https://github.com/Esri/ArcREST/blob/ab240fde2b0200f61d4a5f6df033516e53f2f416/src/arcrest/ags/_geoprocessing.py#L451-L464
12,977
Esri/ArcREST
src/arcrest/ags/_geoprocessing.py
GPJob.results
def results(self): """ returns the results """ self.__init() for k,v in self._results.items(): param = self._get_json(v['paramUrl']) if param['dataType'] == "GPFeatureRecordSetLayer": self._results[k] = GPFeatureRecordSetLayer.fromJSON(json.dumps(param)) ...
python
def results(self): """ returns the results """ self.__init() for k,v in self._results.items(): param = self._get_json(v['paramUrl']) if param['dataType'] == "GPFeatureRecordSetLayer": self._results[k] = GPFeatureRecordSetLayer.fromJSON(json.dumps(param)) ...
[ "def", "results", "(", "self", ")", ":", "self", ".", "__init", "(", ")", "for", "k", ",", "v", "in", "self", ".", "_results", ".", "items", "(", ")", ":", "param", "=", "self", ".", "_get_json", "(", "v", "[", "'paramUrl'", "]", ")", "if", "pa...
returns the results
[ "returns", "the", "results" ]
ab240fde2b0200f61d4a5f6df033516e53f2f416
https://github.com/Esri/ArcREST/blob/ab240fde2b0200f61d4a5f6df033516e53f2f416/src/arcrest/ags/_geoprocessing.py#L467-L498
12,978
Esri/ArcREST
src/arcrest/ags/_geoprocessing.py
GPJob.getParameterValue
def getParameterValue(self, parameterName): """ gets a parameter value """ if self._results is None: self.__init() parameter = self._results[parameterName] return parameter
python
def getParameterValue(self, parameterName): """ gets a parameter value """ if self._results is None: self.__init() parameter = self._results[parameterName] return parameter
[ "def", "getParameterValue", "(", "self", ",", "parameterName", ")", ":", "if", "self", ".", "_results", "is", "None", ":", "self", ".", "__init", "(", ")", "parameter", "=", "self", ".", "_results", "[", "parameterName", "]", "return", "parameter" ]
gets a parameter value
[ "gets", "a", "parameter", "value" ]
ab240fde2b0200f61d4a5f6df033516e53f2f416
https://github.com/Esri/ArcREST/blob/ab240fde2b0200f61d4a5f6df033516e53f2f416/src/arcrest/ags/_geoprocessing.py#L519-L524
12,979
Esri/ArcREST
src/arcrest/ags/layer.py
FeatureLayer_Depricated.parentLayer
def parentLayer(self): """ returns information about the parent """ if self._parentLayer is None: from ..agol.services import FeatureService self.__init() url = os.path.dirname(self._url) self._parentLayer = FeatureService(url=url, ...
python
def parentLayer(self): """ returns information about the parent """ if self._parentLayer is None: from ..agol.services import FeatureService self.__init() url = os.path.dirname(self._url) self._parentLayer = FeatureService(url=url, ...
[ "def", "parentLayer", "(", "self", ")", ":", "if", "self", ".", "_parentLayer", "is", "None", ":", "from", ".", ".", "agol", ".", "services", "import", "FeatureService", "self", ".", "__init", "(", ")", "url", "=", "os", ".", "path", ".", "dirname", ...
returns information about the parent
[ "returns", "information", "about", "the", "parent" ]
ab240fde2b0200f61d4a5f6df033516e53f2f416
https://github.com/Esri/ArcREST/blob/ab240fde2b0200f61d4a5f6df033516e53f2f416/src/arcrest/ags/layer.py#L289-L299
12,980
Esri/ArcREST
src/arcrest/ags/layer.py
FeatureLayer_Depricated._chunks
def _chunks(self, l, n): """ Yield n successive chunks from a list l. """ l.sort() newn = int(1.0 * len(l) / n + 0.5) for i in range(0, n-1): yield l[i*newn:i*newn+newn] yield l[n*newn-newn:]
python
def _chunks(self, l, n): """ Yield n successive chunks from a list l. """ l.sort() newn = int(1.0 * len(l) / n + 0.5) for i in range(0, n-1): yield l[i*newn:i*newn+newn] yield l[n*newn-newn:]
[ "def", "_chunks", "(", "self", ",", "l", ",", "n", ")", ":", "l", ".", "sort", "(", ")", "newn", "=", "int", "(", "1.0", "*", "len", "(", "l", ")", "/", "n", "+", "0.5", ")", "for", "i", "in", "range", "(", "0", ",", "n", "-", "1", ")",...
Yield n successive chunks from a list l.
[ "Yield", "n", "successive", "chunks", "from", "a", "list", "l", "." ]
ab240fde2b0200f61d4a5f6df033516e53f2f416
https://github.com/Esri/ArcREST/blob/ab240fde2b0200f61d4a5f6df033516e53f2f416/src/arcrest/ags/layer.py#L512-L519
12,981
Esri/ArcREST
src/arcrest/ags/layer.py
FeatureLayer_Depricated.calculate
def calculate(self, where, calcExpression, sqlFormat="standard"): """ The calculate operation is performed on a feature service layer resource. It updates the values of one or more fields in an existing feature service layer based on SQL expressions or scalar values. The calculat...
python
def calculate(self, where, calcExpression, sqlFormat="standard"): """ The calculate operation is performed on a feature service layer resource. It updates the values of one or more fields in an existing feature service layer based on SQL expressions or scalar values. The calculat...
[ "def", "calculate", "(", "self", ",", "where", ",", "calcExpression", ",", "sqlFormat", "=", "\"standard\"", ")", ":", "url", "=", "self", ".", "_url", "+", "\"/calculate\"", "params", "=", "{", "\"f\"", ":", "\"json\"", ",", "\"where\"", ":", "where", "...
The calculate operation is performed on a feature service layer resource. It updates the values of one or more fields in an existing feature service layer based on SQL expressions or scalar values. The calculate operation can only be used if the supportsCalculate property of the layer is...
[ "The", "calculate", "operation", "is", "performed", "on", "a", "feature", "service", "layer", "resource", ".", "It", "updates", "the", "values", "of", "one", "or", "more", "fields", "in", "an", "existing", "feature", "service", "layer", "based", "on", "SQL",...
ab240fde2b0200f61d4a5f6df033516e53f2f416
https://github.com/Esri/ArcREST/blob/ab240fde2b0200f61d4a5f6df033516e53f2f416/src/arcrest/ags/layer.py#L1034-L1092
12,982
Esri/ArcREST
src/arcrest/ags/layer.py
FeatureLayer_Depricated.validateSQL
def validateSQL(self, sql, sqlType="where"): """ The validateSQL operation validates an SQL-92 expression or WHERE clause. The validateSQL operation ensures that an SQL-92 expression, such as one written by a user through a user interface, is correct before performing ano...
python
def validateSQL(self, sql, sqlType="where"): """ The validateSQL operation validates an SQL-92 expression or WHERE clause. The validateSQL operation ensures that an SQL-92 expression, such as one written by a user through a user interface, is correct before performing ano...
[ "def", "validateSQL", "(", "self", ",", "sql", ",", "sqlType", "=", "\"where\"", ")", ":", "url", "=", "self", ".", "_url", "+", "\"/validateSQL\"", "if", "not", "sqlType", ".", "lower", "(", ")", "in", "[", "'where'", ",", "'expression'", ",", "'state...
The validateSQL operation validates an SQL-92 expression or WHERE clause. The validateSQL operation ensures that an SQL-92 expression, such as one written by a user through a user interface, is correct before performing another operation that uses the expression. For example, val...
[ "The", "validateSQL", "operation", "validates", "an", "SQL", "-", "92", "expression", "or", "WHERE", "clause", ".", "The", "validateSQL", "operation", "ensures", "that", "an", "SQL", "-", "92", "expression", "such", "as", "one", "written", "by", "a", "user",...
ab240fde2b0200f61d4a5f6df033516e53f2f416
https://github.com/Esri/ArcREST/blob/ab240fde2b0200f61d4a5f6df033516e53f2f416/src/arcrest/ags/layer.py#L1094-L1135
12,983
Esri/ArcREST
src/arcrest/ags/layer.py
DynamicMapLayer.asDictionary
def asDictionary(self): """ converts the object to a dictionary """ template = {"type" : self._type, "mapLayerId" : self._mapLayerId} if not self._gdbVersion is None and\ self._gdbVersion != "": template['gdbVersion'] = self._gdbVersion return t...
python
def asDictionary(self): """ converts the object to a dictionary """ template = {"type" : self._type, "mapLayerId" : self._mapLayerId} if not self._gdbVersion is None and\ self._gdbVersion != "": template['gdbVersion'] = self._gdbVersion return t...
[ "def", "asDictionary", "(", "self", ")", ":", "template", "=", "{", "\"type\"", ":", "self", ".", "_type", ",", "\"mapLayerId\"", ":", "self", ".", "_mapLayerId", "}", "if", "not", "self", ".", "_gdbVersion", "is", "None", "and", "self", ".", "_gdbVersio...
converts the object to a dictionary
[ "converts", "the", "object", "to", "a", "dictionary" ]
ab240fde2b0200f61d4a5f6df033516e53f2f416
https://github.com/Esri/ArcREST/blob/ab240fde2b0200f61d4a5f6df033516e53f2f416/src/arcrest/ags/layer.py#L1214-L1221
12,984
Esri/ArcREST
src/arcrest/ags/layer.py
DynamicDataLayer.asDictionary
def asDictionary(self): """ returns the value as a dictionary """ template = { "type": "dataLayer", "dataSource": self._dataSource } if not self._fields is None: template['fields'] = self._fields return template
python
def asDictionary(self): """ returns the value as a dictionary """ template = { "type": "dataLayer", "dataSource": self._dataSource } if not self._fields is None: template['fields'] = self._fields return template
[ "def", "asDictionary", "(", "self", ")", ":", "template", "=", "{", "\"type\"", ":", "\"dataLayer\"", ",", "\"dataSource\"", ":", "self", ".", "_dataSource", "}", "if", "not", "self", ".", "_fields", "is", "None", ":", "template", "[", "'fields'", "]", "...
returns the value as a dictionary
[ "returns", "the", "value", "as", "a", "dictionary" ]
ab240fde2b0200f61d4a5f6df033516e53f2f416
https://github.com/Esri/ArcREST/blob/ab240fde2b0200f61d4a5f6df033516e53f2f416/src/arcrest/ags/layer.py#L1251-L1259
12,985
Esri/ArcREST
src/arcrest/ags/layer.py
DynamicDataLayer.dataSource
def dataSource(self, value): """ sets the datasource object """ if isinstance(value, DataSource): self._dataSource = value else: raise TypeError("value must be a DataSource object")
python
def dataSource(self, value): """ sets the datasource object """ if isinstance(value, DataSource): self._dataSource = value else: raise TypeError("value must be a DataSource object")
[ "def", "dataSource", "(", "self", ",", "value", ")", ":", "if", "isinstance", "(", "value", ",", "DataSource", ")", ":", "self", ".", "_dataSource", "=", "value", "else", ":", "raise", "TypeError", "(", "\"value must be a DataSource object\"", ")" ]
sets the datasource object
[ "sets", "the", "datasource", "object" ]
ab240fde2b0200f61d4a5f6df033516e53f2f416
https://github.com/Esri/ArcREST/blob/ab240fde2b0200f61d4a5f6df033516e53f2f416/src/arcrest/ags/layer.py#L1268-L1273
12,986
Esri/ArcREST
src/arcrest/ags/layer.py
DynamicDataLayer.fields
def fields(self, value): """sets the fields variable""" if type(value) is list: self._fields = value else: raise TypeError("Input must be a list")
python
def fields(self, value): """sets the fields variable""" if type(value) is list: self._fields = value else: raise TypeError("Input must be a list")
[ "def", "fields", "(", "self", ",", "value", ")", ":", "if", "type", "(", "value", ")", "is", "list", ":", "self", ".", "_fields", "=", "value", "else", ":", "raise", "TypeError", "(", "\"Input must be a list\"", ")" ]
sets the fields variable
[ "sets", "the", "fields", "variable" ]
ab240fde2b0200f61d4a5f6df033516e53f2f416
https://github.com/Esri/ArcREST/blob/ab240fde2b0200f61d4a5f6df033516e53f2f416/src/arcrest/ags/layer.py#L1281-L1286
12,987
Esri/ArcREST
src/arcrest/common/domain.py
CodedValueDomain.addCodedValue
def addCodedValue(self, name, code): """ adds a coded value to the domain Inputs: name - name of the domain code - value """ i = {"name" : name, "code" : code} if i not in self._codedValues: self._codedValues.append(i)
python
def addCodedValue(self, name, code): """ adds a coded value to the domain Inputs: name - name of the domain code - value """ i = {"name" : name, "code" : code} if i not in self._codedValues: self._codedValues.append(i)
[ "def", "addCodedValue", "(", "self", ",", "name", ",", "code", ")", ":", "i", "=", "{", "\"name\"", ":", "name", ",", "\"code\"", ":", "code", "}", "if", "i", "not", "in", "self", ".", "_codedValues", ":", "self", ".", "_codedValues", ".", "append", ...
adds a coded value to the domain Inputs: name - name of the domain code - value
[ "adds", "a", "coded", "value", "to", "the", "domain" ]
ab240fde2b0200f61d4a5f6df033516e53f2f416
https://github.com/Esri/ArcREST/blob/ab240fde2b0200f61d4a5f6df033516e53f2f416/src/arcrest/common/domain.py#L59-L69
12,988
Esri/ArcREST
src/arcrest/common/domain.py
CodedValueDomain.removeCodedValue
def removeCodedValue(self, name): """removes a codedValue by name""" for i in self._codedValues: if i['name'] == name: self._codedValues.remove(i) return True return False
python
def removeCodedValue(self, name): """removes a codedValue by name""" for i in self._codedValues: if i['name'] == name: self._codedValues.remove(i) return True return False
[ "def", "removeCodedValue", "(", "self", ",", "name", ")", ":", "for", "i", "in", "self", ".", "_codedValues", ":", "if", "i", "[", "'name'", "]", "==", "name", ":", "self", ".", "_codedValues", ".", "remove", "(", "i", ")", "return", "True", "return"...
removes a codedValue by name
[ "removes", "a", "codedValue", "by", "name" ]
ab240fde2b0200f61d4a5f6df033516e53f2f416
https://github.com/Esri/ArcREST/blob/ab240fde2b0200f61d4a5f6df033516e53f2f416/src/arcrest/common/domain.py#L71-L77
12,989
Esri/ArcREST
src/arcrest/common/domain.py
RangeDomain.value
def value(self): """gets the value as a dictionary""" return { "type" : self._type, "name" : self._name, "range" : [self._rangeMin, self._rangeMax] }
python
def value(self): """gets the value as a dictionary""" return { "type" : self._type, "name" : self._name, "range" : [self._rangeMin, self._rangeMax] }
[ "def", "value", "(", "self", ")", ":", "return", "{", "\"type\"", ":", "self", ".", "_type", ",", "\"name\"", ":", "self", ".", "_name", ",", "\"range\"", ":", "[", "self", ".", "_rangeMin", ",", "self", ".", "_rangeMax", "]", "}" ]
gets the value as a dictionary
[ "gets", "the", "value", "as", "a", "dictionary" ]
ab240fde2b0200f61d4a5f6df033516e53f2f416
https://github.com/Esri/ArcREST/blob/ab240fde2b0200f61d4a5f6df033516e53f2f416/src/arcrest/common/domain.py#L126-L132
12,990
Esri/ArcREST
src/arcrest/ags/_imageservice.py
ImageService.exportImage
def exportImage(self, bbox, imageSR, bboxSR, size=[400,400], time=None, format="jpgpng", pixelType="UNKNOWN", noData=None, noDataInterpretat...
python
def exportImage(self, bbox, imageSR, bboxSR, size=[400,400], time=None, format="jpgpng", pixelType="UNKNOWN", noData=None, noDataInterpretat...
[ "def", "exportImage", "(", "self", ",", "bbox", ",", "imageSR", ",", "bboxSR", ",", "size", "=", "[", "400", ",", "400", "]", ",", "time", "=", "None", ",", "format", "=", "\"jpgpng\"", ",", "pixelType", "=", "\"UNKNOWN\"", ",", "noData", "=", "None"...
The exportImage operation is performed on an image service resource The result of this operation is an image resource. This resource provides information about the exported image, such as its URL, extent, width, and height. In addition to the usual response formats of HTML and JSON, you ...
[ "The", "exportImage", "operation", "is", "performed", "on", "an", "image", "service", "resource", "The", "result", "of", "this", "operation", "is", "an", "image", "resource", ".", "This", "resource", "provides", "information", "about", "the", "exported", "image"...
ab240fde2b0200f61d4a5f6df033516e53f2f416
https://github.com/Esri/ArcREST/blob/ab240fde2b0200f61d4a5f6df033516e53f2f416/src/arcrest/ags/_imageservice.py#L435-L602
12,991
Esri/ArcREST
src/arcrest/ags/_imageservice.py
ImageService.measure
def measure(self,fromGeometry,toGeometry,measureOperation, geometryType="esriGeometryPoint",pixelSize=None,mosaicRule=None, linearUnit=None,angularUnit=None,areaUnit=None): """ The measure operation is performed on an image service resource. It lets a user measure...
python
def measure(self,fromGeometry,toGeometry,measureOperation, geometryType="esriGeometryPoint",pixelSize=None,mosaicRule=None, linearUnit=None,angularUnit=None,areaUnit=None): """ The measure operation is performed on an image service resource. It lets a user measure...
[ "def", "measure", "(", "self", ",", "fromGeometry", ",", "toGeometry", ",", "measureOperation", ",", "geometryType", "=", "\"esriGeometryPoint\"", ",", "pixelSize", "=", "None", ",", "mosaicRule", "=", "None", ",", "linearUnit", "=", "None", ",", "angularUnit", ...
The measure operation is performed on an image service resource. It lets a user measure distance, direction, area, perimeter, and height from an image service. The result of this operation includes the name of the raster dataset being used, sensor name, and measured values. The measure ...
[ "The", "measure", "operation", "is", "performed", "on", "an", "image", "service", "resource", ".", "It", "lets", "a", "user", "measure", "distance", "direction", "area", "perimeter", "and", "height", "from", "an", "image", "service", ".", "The", "result", "o...
ab240fde2b0200f61d4a5f6df033516e53f2f416
https://github.com/Esri/ArcREST/blob/ab240fde2b0200f61d4a5f6df033516e53f2f416/src/arcrest/ags/_imageservice.py#L916-L1030
12,992
Esri/ArcREST
src/arcrest/ags/_imageservice.py
ImageService.computeStatisticsHistograms
def computeStatisticsHistograms(self,geometry,geometryType,mosaicRule=None, renderingRule=None,pixelSize=None): """ The computeStatisticsHistograms operation is performed on an image service resource. This operation is supported by any image service published ...
python
def computeStatisticsHistograms(self,geometry,geometryType,mosaicRule=None, renderingRule=None,pixelSize=None): """ The computeStatisticsHistograms operation is performed on an image service resource. This operation is supported by any image service published ...
[ "def", "computeStatisticsHistograms", "(", "self", ",", "geometry", ",", "geometryType", ",", "mosaicRule", "=", "None", ",", "renderingRule", "=", "None", ",", "pixelSize", "=", "None", ")", ":", "url", "=", "self", ".", "_url", "+", "\"/computeStatisticsHist...
The computeStatisticsHistograms operation is performed on an image service resource. This operation is supported by any image service published with mosaic datasets or a raster dataset. The result of this operation contains both statistics and histograms computed from the given extent. ...
[ "The", "computeStatisticsHistograms", "operation", "is", "performed", "on", "an", "image", "service", "resource", ".", "This", "operation", "is", "supported", "by", "any", "image", "service", "published", "with", "mosaic", "datasets", "or", "a", "raster", "dataset...
ab240fde2b0200f61d4a5f6df033516e53f2f416
https://github.com/Esri/ArcREST/blob/ab240fde2b0200f61d4a5f6df033516e53f2f416/src/arcrest/ags/_imageservice.py#L1089-L1144
12,993
Esri/ArcREST
src/arcrest/agol/_uploads.py
Uploads.uploadByParts
def uploadByParts(self, registerID, filePath, commit=True): """ loads the data by small parts. If commit is set to true, then parts will be merged together. If commit is false, the function will return the registerID so a manual commit can occur. If the user's file is over 10mb...
python
def uploadByParts(self, registerID, filePath, commit=True): """ loads the data by small parts. If commit is set to true, then parts will be merged together. If commit is false, the function will return the registerID so a manual commit can occur. If the user's file is over 10mb...
[ "def", "uploadByParts", "(", "self", ",", "registerID", ",", "filePath", ",", "commit", "=", "True", ")", ":", "url", "=", "self", ".", "_url", "+", "\"/%s/uploadPart\"", "%", "registerID", "params", "=", "{", "\"f\"", ":", "\"json\"", "}", "with", "open...
loads the data by small parts. If commit is set to true, then parts will be merged together. If commit is false, the function will return the registerID so a manual commit can occur. If the user's file is over 10mbs, the uploadByParts should be used. Inputs: registerID - ID o...
[ "loads", "the", "data", "by", "small", "parts", ".", "If", "commit", "is", "set", "to", "true", "then", "parts", "will", "be", "merged", "together", ".", "If", "commit", "is", "false", "the", "function", "will", "return", "the", "registerID", "so", "a", ...
ab240fde2b0200f61d4a5f6df033516e53f2f416
https://github.com/Esri/ArcREST/blob/ab240fde2b0200f61d4a5f6df033516e53f2f416/src/arcrest/agol/_uploads.py#L89-L136
12,994
Esri/ArcREST
src/arcrest/agol/services.py
FeatureService.uploads
def uploads(self): """returns the class to perform the upload function. it will only return the uploads class if syncEnabled is True. """ if self.syncEnabled == True: return Uploads(url=self._url + "/uploads", securityHandler=self._securityHandler,...
python
def uploads(self): """returns the class to perform the upload function. it will only return the uploads class if syncEnabled is True. """ if self.syncEnabled == True: return Uploads(url=self._url + "/uploads", securityHandler=self._securityHandler,...
[ "def", "uploads", "(", "self", ")", ":", "if", "self", ".", "syncEnabled", "==", "True", ":", "return", "Uploads", "(", "url", "=", "self", ".", "_url", "+", "\"/uploads\"", ",", "securityHandler", "=", "self", ".", "_securityHandler", ",", "proxy_url", ...
returns the class to perform the upload function. it will only return the uploads class if syncEnabled is True.
[ "returns", "the", "class", "to", "perform", "the", "upload", "function", ".", "it", "will", "only", "return", "the", "uploads", "class", "if", "syncEnabled", "is", "True", "." ]
ab240fde2b0200f61d4a5f6df033516e53f2f416
https://github.com/Esri/ArcREST/blob/ab240fde2b0200f61d4a5f6df033516e53f2f416/src/arcrest/agol/services.py#L287-L296
12,995
Esri/ArcREST
src/arcrest/agol/services.py
FeatureService.administration
def administration(self): """returns the hostservice object to manage the back-end functions""" url = self._url res = search("/rest/", url).span() addText = "admin/" part1 = url[:res[1]] part2 = url[res[1]:] adminURL = "%s%s%s" % (part1, addText, part2) r...
python
def administration(self): """returns the hostservice object to manage the back-end functions""" url = self._url res = search("/rest/", url).span() addText = "admin/" part1 = url[:res[1]] part2 = url[res[1]:] adminURL = "%s%s%s" % (part1, addText, part2) r...
[ "def", "administration", "(", "self", ")", ":", "url", "=", "self", ".", "_url", "res", "=", "search", "(", "\"/rest/\"", ",", "url", ")", ".", "span", "(", ")", "addText", "=", "\"admin/\"", "part1", "=", "url", "[", ":", "res", "[", "1", "]", "...
returns the hostservice object to manage the back-end functions
[ "returns", "the", "hostservice", "object", "to", "manage", "the", "back", "-", "end", "functions" ]
ab240fde2b0200f61d4a5f6df033516e53f2f416
https://github.com/Esri/ArcREST/blob/ab240fde2b0200f61d4a5f6df033516e53f2f416/src/arcrest/agol/services.py#L405-L419
12,996
Esri/ArcREST
src/arcrest/agol/services.py
FeatureService.replicas
def replicas(self): """ returns all the replicas for a feature service """ params = { "f" : "json", } url = self._url + "/replicas" return self._get(url, params, securityHandler=self._securityHandler, proxy_url=self._...
python
def replicas(self): """ returns all the replicas for a feature service """ params = { "f" : "json", } url = self._url + "/replicas" return self._get(url, params, securityHandler=self._securityHandler, proxy_url=self._...
[ "def", "replicas", "(", "self", ")", ":", "params", "=", "{", "\"f\"", ":", "\"json\"", ",", "}", "url", "=", "self", ".", "_url", "+", "\"/replicas\"", "return", "self", ".", "_get", "(", "url", ",", "params", ",", "securityHandler", "=", "self", "....
returns all the replicas for a feature service
[ "returns", "all", "the", "replicas", "for", "a", "feature", "service" ]
ab240fde2b0200f61d4a5f6df033516e53f2f416
https://github.com/Esri/ArcREST/blob/ab240fde2b0200f61d4a5f6df033516e53f2f416/src/arcrest/agol/services.py#L585-L595
12,997
Esri/ArcREST
src/arcrest/agol/services.py
FeatureService.createReplica
def createReplica(self, replicaName, layers, layerQueries=None, geometryFilter=None, replicaSR=None, transportType="esriTransportTypeUrl", returnAttachments=False, ...
python
def createReplica(self, replicaName, layers, layerQueries=None, geometryFilter=None, replicaSR=None, transportType="esriTransportTypeUrl", returnAttachments=False, ...
[ "def", "createReplica", "(", "self", ",", "replicaName", ",", "layers", ",", "layerQueries", "=", "None", ",", "geometryFilter", "=", "None", ",", "replicaSR", "=", "None", ",", "transportType", "=", "\"esriTransportTypeUrl\"", ",", "returnAttachments", "=", "Fa...
The createReplica operation is performed on a feature service resource. This operation creates the replica between the feature service and a client based on a client-supplied replica definition. It requires the Sync capability. See Sync overview for more information on sync. The response...
[ "The", "createReplica", "operation", "is", "performed", "on", "a", "feature", "service", "resource", ".", "This", "operation", "creates", "the", "replica", "between", "the", "feature", "service", "and", "a", "client", "based", "on", "a", "client", "-", "suppli...
ab240fde2b0200f61d4a5f6df033516e53f2f416
https://github.com/Esri/ArcREST/blob/ab240fde2b0200f61d4a5f6df033516e53f2f416/src/arcrest/agol/services.py#L631-L794
12,998
Esri/ArcREST
src/arcrest/agol/services.py
FeatureService.replicaStatus
def replicaStatus(self, url): """gets the replica status when exported async set to True""" params = {"f" : "json"} url = url + "/status" return self._get(url=url, param_dict=params, securityHandler=self._securityHandler, ...
python
def replicaStatus(self, url): """gets the replica status when exported async set to True""" params = {"f" : "json"} url = url + "/status" return self._get(url=url, param_dict=params, securityHandler=self._securityHandler, ...
[ "def", "replicaStatus", "(", "self", ",", "url", ")", ":", "params", "=", "{", "\"f\"", ":", "\"json\"", "}", "url", "=", "url", "+", "\"/status\"", "return", "self", ".", "_get", "(", "url", "=", "url", ",", "param_dict", "=", "params", ",", "securi...
gets the replica status when exported async set to True
[ "gets", "the", "replica", "status", "when", "exported", "async", "set", "to", "True" ]
ab240fde2b0200f61d4a5f6df033516e53f2f416
https://github.com/Esri/ArcREST/blob/ab240fde2b0200f61d4a5f6df033516e53f2f416/src/arcrest/agol/services.py#L827-L835
12,999
Esri/ArcREST
src/arcrest/agol/services.py
FeatureLayer.listAttachments
def listAttachments(self, oid): """ list attachements for a given OBJECT ID """ url = self._url + "/%s/attachments" % oid params = { "f":"json" } return self._get(url, params, securityHandler=self._securityHandler, ...
python
def listAttachments(self, oid): """ list attachements for a given OBJECT ID """ url = self._url + "/%s/attachments" % oid params = { "f":"json" } return self._get(url, params, securityHandler=self._securityHandler, ...
[ "def", "listAttachments", "(", "self", ",", "oid", ")", ":", "url", "=", "self", ".", "_url", "+", "\"/%s/attachments\"", "%", "oid", "params", "=", "{", "\"f\"", ":", "\"json\"", "}", "return", "self", ".", "_get", "(", "url", ",", "params", ",", "s...
list attachements for a given OBJECT ID
[ "list", "attachements", "for", "a", "given", "OBJECT", "ID" ]
ab240fde2b0200f61d4a5f6df033516e53f2f416
https://github.com/Esri/ArcREST/blob/ab240fde2b0200f61d4a5f6df033516e53f2f416/src/arcrest/agol/services.py#L1539-L1548