ArcGIS. Portal. Item
(ArcGIS v1.0.2)
View Source
Provides a struct for ArcGIS portal items and functions to query, fetch, create, update, delete, and share them.
Summary
Functions
Deletes one or more portal items
Create an %ArcGIS.Portal.Item{} from a map.
Fetches an item from an ArcGIS portal by global id
Queries an ArcGIS portal for one or more items
Types
@type access() :: :private | :shared | :org | :public
@type counts() :: %{ comments: non_neg_integer(), ratings: non_neg_integer(), views: non_neg_integer() }
@type t() :: %ArcGIS.Portal.Item{ access: access(), accessInformation: String.t(), categories: [String.t()], counts: counts(), culture: String.t(), description: String.t(), documentation: String.t(), extent: ArcGIS.Extent.t(), folder: String.t() | nil, id: ArcGIS.Portal.id(), licenseInfo: String.t(), name: String.t(), owner: String.t(), properties: map(), proxyFilter: map(), scoreCompleteness: integer(), screenshots: [String.t()], size: integer(), snippet: String.t(), spatial_reference: ArcGIS.SpatialReference.t(), tags: [String.t()], thumbnail: String.t(), timestamps: ArcGIS.Timestamps.t(), title: String.t(), type: String.t(), type_keywords: [String.t()], url: String.t() }
Functions
@spec create(ArcGIS.Portal.t(), t(), options :: [ArcGIS.Portal.portal_option()]) :: {:ok, t()} | {:error, reason :: String.t()}
@spec delete( ArcGIS.Portal.t(), t() | [t()], options :: [ArcGIS.Portal.portal_option()] ) :: deletion_results()
Deletes one or more portal items
Create an %ArcGIS.Portal.Item{} from a map.
Used internally to transform maps of data returned by an ArcGIS portal into item structs.
@spec get( ArcGIS.Portal.t(), id :: String.t(), options :: [ArcGIS.Portal.portal_option()] ) :: {:ok, t()} | {:error, reason :: String.t()}
Fetches an item from an ArcGIS portal by global id
@spec query( ArcGIS.Portal.t(), portal_item_search_terms(), options :: [ArcGIS.Portal.portal_option()] ) :: {:ok, ArcGIS.Portal.ResultSet.t()} | {:error, reason :: String.t()}
Queries an ArcGIS portal for one or more items
@spec update(ArcGIS.Portal.t(), t() | [t()], [ArcGIS.Portal.portal_option()]) :: %{ updates: [id :: String.t()], failures: [{id :: String.t(), reason :: String.t()}] }