diff --git a/samples/03_org_administrators/clone_a_group.ipynb b/samples/03_org_administrators/clone_a_group.ipynb index c4965ec9c..c321f2c2b 100644 --- a/samples/03_org_administrators/clone_a_group.ipynb +++ b/samples/03_org_administrators/clone_a_group.ipynb @@ -26,12 +26,13 @@ }, { "cell_type": "code", - "execution_count": 1, + "execution_count": 2, "metadata": {}, "outputs": [], "source": [ "from arcgis.gis import GIS\n", - "from IPython.display import display" + "from IPython.display import display\n", + "from arcgis.gis import ItemProperties" ] }, { @@ -45,7 +46,7 @@ }, { "cell_type": "code", - "execution_count": 2, + "execution_count": 4, "metadata": {}, "outputs": [], "source": [ @@ -53,7 +54,7 @@ "# since we are cloning a public group\n", "source = GIS()\n", "\n", - "target = GIS(\"https://pythonapi.playground.esri.com/portal\")" + "target = GIS(profile=\"your_organization_profile\")" ] }, { @@ -73,6 +74,7 @@ "data": { "text/plain": [ "[,\n", + " ,\n", " ,\n", " ]" ] @@ -89,7 +91,7 @@ }, { "cell_type": "code", - "execution_count": 7, + "execution_count": 6, "metadata": {}, "outputs": [ { @@ -119,13 +121,13 @@ "" ] }, - "execution_count": 7, + "execution_count": 6, "metadata": {}, "output_type": "execute_result" } ], "source": [ - "source_group = source_groups[1]\n", + "source_group = source_groups[2]\n", "source_group" ] }, @@ -138,84 +140,16 @@ }, { "cell_type": "code", - "execution_count": 8, + "execution_count": 9, "metadata": {}, "outputs": [ { "data": { "text/plain": [ - "[,\n", - " ,\n", - " ,\n", - " ,\n", - " ,\n", - " ,\n", - " ,\n", - " ,\n", - " ,\n", - " ,\n", - " ,\n", - " ,\n", - " ,\n", - " ,\n", - " ,\n", - " ,\n", - " ,\n", - " ,\n", - " ,\n", - " ,\n", - " ,\n", - " ,\n", - " ,\n", - " ,\n", - " ,\n", - " ,\n", - " ,\n", - " ,\n", - " ,\n", - " ,\n", - " ,\n", - " ,\n", - " ,\n", - " ,\n", - " ,\n", - " ,\n", - " ,\n", - " ,\n", - " ,\n", - " ,\n", - " ,\n", - " ,\n", - " ,\n", - " ,\n", - " ,\n", - " ,\n", - " ,\n", - " ,\n", - " ,\n", - " ,\n", - " ,\n", - " ,\n", - " ,\n", - " ,\n", - " ,\n", - " ,\n", - " ,\n", - " ,\n", - " ,\n", - " ,\n", - " ,\n", - " ,\n", - " ,\n", - " ,\n", - " ,\n", - " ,\n", - " ,\n", - " ,\n", - " ]" + "[]" ] }, - "execution_count": 8, + "execution_count": 9, "metadata": {}, "output_type": "execute_result" } @@ -236,7 +170,7 @@ }, { "cell_type": "code", - "execution_count": 9, + "execution_count": 10, "metadata": {}, "outputs": [ { @@ -244,26 +178,26 @@ "text/html": [ "
\n", "
\n", - " \n", + " \n", " \n", " \n", "
\n", "\n", "
\n", - " Vector Basemaps\n", + " Vector Basemaps\n", " \n", "
\n", "
Summary: This group contains a set of Esri vector basemaps that are available for use in ArcGIS Online. The group contains both web maps and tile layers. \n", - "
Description:
For several years, Esri has made available a suite of basemaps that can be used through ArcGIS Online and other apps to create maps and apps. These multi-scale basemaps have been delivered as pre-rendered image tiles (JPG or PNG format) to optimize performance. These basemaps have proven to be very useful and popular, with several billion tiles served each month, but they have some limitations (e.g. users can not customize map, low-res image tiles not optimal for display on high-res devices, etc.).

To provide additional options for users, Esri has introduced a new set of vector basemaps. These basemaps are delivered as vector tiles (PBF format) that are rendered client-side based on a style file that is delivered with the vector tiles. Vector basemaps are available in Map Viewer and Scene Viewer, as well as in ArcGIS Pro, configurable apps that include a basemap gallery, Workforce for ArcGIS, Explorer for ArcGIS, and apps created using Web AppBuilder. To find out whether vector basemaps are available in a specific ArcGIS app, refer to the app documentation. Users are able to customize the look and feel of the vector basemaps by creating custom styles that are used to render the vector tiles.

Available Vector Basemaps

This group includes vector basemaps in multiple styles, some that closely resemble existing Esri basemaps (e.g. Streets, Topographic, Light and Dark Gray Canvas, Terrain with Labels), and others that are new (e.g. Streets at Night, Navigation, and Imagery Hybrid).  The group also includes several more 'creative' styles (e.g. Colored Pencil, Charted Territory, Mid-Century, Modern Antique) that are optimized for specific uses.  It also includes a new OpenStreetMap vector basemap created and hosted by Esri.  The vector basemaps are available as both web maps, which can be used as a basemap for adding other layers, and as tile layers, which can be added to existing maps either as a basemap or overlay layer.

Learn More

To learn more, including how you can customize the Esri vector basemaps, you can refer to the blog posts tagged with "vector basemaps".  You can also use the new Vector Tile Style Editor app to quickly create your own custom map.  The Vector Tile Style Editor app has now been integrated with ArcGIS Online so it is accessible from vector tile layer items in the ArcGIS.com Map Viewer.
\n", - "
Owner: arcgis_python\n", - "
Created: August 08, 2019\n", + "
Description:
For several years, Esri has made available a suite of basemaps that can be used through ArcGIS Online and other apps to create maps and apps. These multi-scale basemaps have been delivered as pre-rendered image tiles (JPG or PNG format) to optimize performance. These basemaps have proven to be very useful and popular, with several billion tiles served each month, but they have some limitations (e.g. users can not customize map, low-res image tiles not optimal for display on high-res devices, etc.).

To provide additional options for users, Esri has introduced a new set of vector basemaps. These basemaps are delivered as vector tiles (PBF format) that are rendered client-side based on a style file that is delivered with the vector tiles. Vector basemaps are available in Map Viewer and Scene Viewer, as well as in ArcGIS Pro, configurable apps that include a basemap gallery, Workforce for ArcGIS, Explorer for ArcGIS, and apps created using Web AppBuilder. To find out whether vector basemaps are available in a specific ArcGIS app, refer to the app documentation. Users are able to customize the look and feel of the vector basemaps by creating custom styles that are used to render the vector tiles.

Available Vector Basemaps

This group includes vector basemaps in multiple styles, some that closely resemble existing Esri basemaps (e.g. Streets, Topographic, Light and Dark Gray Canvas, Terrain with Labels), and others that are new (e.g. Streets at Night, Navigation, and Imagery Hybrid).  The group also includes several more 'creative' styles (e.g. Colored Pencil, Charted Territory, Mid-Century, Modern Antique) that are optimized for specific uses.  It also includes a new OpenStreetMap vector basemap created and hosted by Esri.  The vector basemaps are available as both web maps, which can be used as a basemap for adding other layers, and as tile layers, which can be added to existing maps either as a basemap or overlay layer.

Learn More

To learn more, including how you can customize the Esri vector basemaps, you can refer to the blog posts tagged with "vector basemaps".  You can also use the new Vector Tile Style Editor app to quickly create your own custom map.  The Vector Tile Style Editor app has now been integrated with ArcGIS Online so it is accessible from vector tile layer items in the ArcGIS.com Map Viewer.
\n", + "
Owner: tar12555@AVWORLD\n", + "
Created: July 08, 2025\n", "\n", "
\n", "
\n", " " ], "text/plain": [ - "" + "" ] }, "metadata": {}, @@ -309,7 +243,7 @@ }, { "cell_type": "code", - "execution_count": 10, + "execution_count": 11, "metadata": {}, "outputs": [], "source": [ @@ -327,7 +261,7 @@ " #if an item is not a part of the group in the target portal then share it \n", " if s_item not in target_group.content():\n", " s_item.sharing.groups.add(\n", - " group= target_group\n", + " group=target_group\n", " )\n", " \n", " #remove the already existing item from the list of items to be cloned\n", @@ -348,7 +282,7 @@ }, { "cell_type": "code", - "execution_count": 11, + "execution_count": 21, "metadata": {}, "outputs": [ { @@ -356,1859 +290,23 @@ "text/html": [ "
\n", "
\n", - " \n", - " \n", - " \n", - "
\n", - "\n", - "
\n", - " ArcGIS Vector Tile Style Editor\n", - " \n", - "
Web Mapping Application by arcgis_python\n", - "
Last Modified: August 08, 2019\n", - "
0 comments, 0 views\n", - "
\n", - "
\n", - " " - ], - "text/plain": [ - "" - ] - }, - "metadata": {}, - "output_type": "display_data" - }, - { - "data": { - "text/html": [ - "
\n", - "
\n", - " \n", - " \n", - " \n", - "
\n", - "\n", - "
\n", - " Charted Territory\n", - " \n", - "
Vector Tile Layer by arcgis_python\n", - "
Last Modified: August 08, 2019\n", - "
0 comments, 0 views\n", - "
\n", - "
\n", - " " - ], - "text/plain": [ - "" - ] - }, - "metadata": {}, - "output_type": "display_data" - }, - { - "data": { - "text/html": [ - "
\n", - "
\n", - " \n", - " \n", - " \n", - "
\n", - "\n", - "
\n", - " Charted Territory Map\n", - " \n", - "
Web Map by arcgis_python\n", - "
Last Modified: August 08, 2019\n", - "
0 comments, 0 views\n", - "
\n", - "
\n", - " " - ], - "text/plain": [ - "" - ] - }, - "metadata": {}, - "output_type": "display_data" - }, - { - "data": { - "text/html": [ - "
\n", - "
\n", - " \n", - " \n", - " \n", - "
\n", - "\n", - "
\n", - " Colored Pencil\n", - " \n", - "
Vector Tile Layer by arcgis_python\n", - "
Last Modified: August 08, 2019\n", - "
0 comments, 0 views\n", - "
\n", - "
\n", - " " - ], - "text/plain": [ - "" - ] - }, - "metadata": {}, - "output_type": "display_data" - }, - { - "data": { - "text/html": [ - "
\n", - "
\n", - " \n", - " \n", - " \n", - "
\n", - "\n", - "
\n", - " Colored Pencil Map\n", - " \n", - "
Web Map by arcgis_python\n", - "
Last Modified: August 08, 2019\n", - "
0 comments, 0 views\n", - "
\n", - "
\n", - " " - ], - "text/plain": [ - "" - ] - }, - "metadata": {}, - "output_type": "display_data" - }, - { - "data": { - "text/html": [ - "
\n", - "
\n", - " \n", - " \n", - " \n", - "
\n", - "\n", - "
\n", - " Community\n", - " \n", - "
Vector Tile Layer by arcgis_python\n", - "
Last Modified: August 08, 2019\n", - "
0 comments, 0 views\n", - "
\n", - "
\n", - " " - ], - "text/plain": [ - "" - ] - }, - "metadata": {}, - "output_type": "display_data" - }, - { - "data": { - "text/html": [ - "
\n", - "
\n", - " \n", - " \n", - " \n", - "
\n", - "\n", - "
\n", - " Community Map\n", - " \n", - "
Web Map by arcgis_python\n", - "
Last Modified: August 08, 2019\n", - "
0 comments, 0 views\n", - "
\n", - "
\n", - " " - ], - "text/plain": [ - "" - ] - }, - "metadata": {}, - "output_type": "display_data" - }, - { - "data": { - "text/html": [ - "
\n", - "
\n", - " \n", - " \n", - " \n", - "
\n", - "\n", - "
\n", - " Dark Gray Canvas\n", - " \n", - "
Web Map by arcgis_python\n", - "
Last Modified: August 08, 2019\n", - "
0 comments, 0 views\n", - "
\n", - "
\n", - " " - ], - "text/plain": [ - "" - ] - }, - "metadata": {}, - "output_type": "display_data" - }, - { - "data": { - "text/html": [ - "
\n", - "
\n", - " \n", - " \n", - " \n", - "
\n", - "\n", - "
\n", - " Dark Gray Canvas\n", - " \n", - "
Vector Tile Layer by arcgis_python\n", - "
Last Modified: August 08, 2019\n", - "
0 comments, 0 views\n", - "
\n", - "
\n", - " " - ], - "text/plain": [ - "" - ] - }, - "metadata": {}, - "output_type": "display_data" - }, - { - "data": { - "text/html": [ - "
\n", - "
\n", - " \n", - " \n", - " \n", - "
\n", - "\n", - "
\n", - " Dark Gray Canvas (Local Language)\n", - " \n", - "
Web Map by arcgis_python\n", - "
Last Modified: August 08, 2019\n", - "
0 comments, 0 views\n", - "
\n", - "
\n", - " " - ], - "text/plain": [ - "" - ] - }, - "metadata": {}, - "output_type": "display_data" - }, - { - "data": { - "text/html": [ - "
\n", - "
\n", - " \n", - " \n", - " \n", - "
\n", - "\n", - "
\n", - " Dark Gray Canvas Base\n", - " \n", - "
Vector Tile Layer by arcgis_python\n", - "
Last Modified: August 08, 2019\n", - "
0 comments, 0 views\n", - "
\n", - "
\n", - " " - ], - "text/plain": [ - "" - ] - }, - "metadata": {}, - "output_type": "display_data" - }, - { - "data": { - "text/html": [ - "
\n", - "
\n", - " \n", - " \n", - " \n", - "
\n", - "\n", - "
\n", - " Dark Gray Canvas Reference\n", - " \n", - "
Vector Tile Layer by arcgis_python\n", - "
Last Modified: August 08, 2019\n", - "
0 comments, 0 views\n", - "
\n", - "
\n", - " " - ], - "text/plain": [ - "" - ] - }, - "metadata": {}, - "output_type": "display_data" - }, - { - "data": { - "text/html": [ - "
\n", - " \n", "\n", "
\n", - " Dark Gray Canvas Reference (Local Language)\n", + " Colored Pencil Map\n", " \n", - "
Vector Tile Layer by arcgis_python\n", - "
Last Modified: August 08, 2019\n", + "
This world basemap features symbolized with the appearance of being hand-drawn by colored pencils. (World Edition)
Web Map by tar12555@AVWORLD\n", + "
Last Modified: July 08, 2025\n", "
0 comments, 0 views\n", "
\n", "
\n", " " ], "text/plain": [ - "" - ] - }, - "metadata": {}, - "output_type": "display_data" - }, - { - "data": { - "text/html": [ - "
\n", - "
\n", - " \n", - " \n", - " \n", - "
\n", - "\n", - "
\n", - " Human Geography Base\n", - " \n", - "
Vector Tile Layer by arcgis_python\n", - "
Last Modified: August 08, 2019\n", - "
0 comments, 0 views\n", - "
\n", - "
\n", - " " - ], - "text/plain": [ - "" - ] - }, - "metadata": {}, - "output_type": "display_data" - }, - { - "data": { - "text/html": [ - "
\n", - "
\n", - " \n", - " \n", - " \n", - "
\n", - "\n", - "
\n", - " Human Geography Dark Base\n", - " \n", - "
Vector Tile Layer by arcgis_python\n", - "
Last Modified: August 08, 2019\n", - "
0 comments, 0 views\n", - "
\n", - "
\n", - " " - ], - "text/plain": [ - "" - ] - }, - "metadata": {}, - "output_type": "display_data" - }, - { - "data": { - "text/html": [ - "
\n", - "
\n", - " \n", - " \n", - " \n", - "
\n", - "\n", - "
\n", - " Human Geography Dark Detail\n", - " \n", - "
Vector Tile Layer by arcgis_python\n", - "
Last Modified: August 08, 2019\n", - "
0 comments, 0 views\n", - "
\n", - "
\n", - " " - ], - "text/plain": [ - "" - ] - }, - "metadata": {}, - "output_type": "display_data" - }, - { - "data": { - "text/html": [ - "
\n", - "
\n", - " \n", - " \n", - " \n", - "
\n", - "\n", - "
\n", - " Human Geography Dark Label\n", - " \n", - "
Vector Tile Layer by arcgis_python\n", - "
Last Modified: August 08, 2019\n", - "
0 comments, 0 views\n", - "
\n", - "
\n", - " " - ], - "text/plain": [ - "" - ] - }, - "metadata": {}, - "output_type": "display_data" - }, - { - "data": { - "text/html": [ - "
\n", - "
\n", - " \n", - " \n", - " \n", - "
\n", - "\n", - "
\n", - " Human Geography Dark Map\n", - " \n", - "
Web Map by arcgis_python\n", - "
Last Modified: August 08, 2019\n", - "
0 comments, 0 views\n", - "
\n", - "
\n", - " " - ], - "text/plain": [ - "" - ] - }, - "metadata": {}, - "output_type": "display_data" - }, - { - "data": { - "text/html": [ - "
\n", - "
\n", - " \n", - " \n", - " \n", - "
\n", - "\n", - "
\n", - " Human Geography Detail\n", - " \n", - "
Vector Tile Layer by arcgis_python\n", - "
Last Modified: August 08, 2019\n", - "
0 comments, 0 views\n", - "
\n", - "
\n", - " " - ], - "text/plain": [ - "" - ] - }, - "metadata": {}, - "output_type": "display_data" - }, - { - "data": { - "text/html": [ - "
\n", - "
\n", - " \n", - " \n", - " \n", - "
\n", - "\n", - "
\n", - " Human Geography Label\n", - " \n", - "
Vector Tile Layer by arcgis_python\n", - "
Last Modified: August 08, 2019\n", - "
0 comments, 0 views\n", - "
\n", - "
\n", - " " - ], - "text/plain": [ - "" - ] - }, - "metadata": {}, - "output_type": "display_data" - }, - { - "data": { - "text/html": [ - "
\n", - "
\n", - " \n", - " \n", - " \n", - "
\n", - "\n", - "
\n", - " Human Geography Map\n", - " \n", - "
Web Map by arcgis_python\n", - "
Last Modified: August 08, 2019\n", - "
0 comments, 0 views\n", - "
\n", - "
\n", - " " - ], - "text/plain": [ - "" - ] - }, - "metadata": {}, - "output_type": "display_data" - }, - { - "data": { - "text/html": [ - "
\n", - "
\n", - " \n", - " \n", - " \n", - "
\n", - "\n", - "
\n", - " Hybrid Reference Layer\n", - " \n", - "
Vector Tile Layer by arcgis_python\n", - "
Last Modified: August 08, 2019\n", - "
0 comments, 0 views\n", - "
\n", - "
\n", - " " - ], - "text/plain": [ - "" - ] - }, - "metadata": {}, - "output_type": "display_data" - }, - { - "data": { - "text/html": [ - "
\n", - "
\n", - " \n", - " \n", - " \n", - "
\n", - "\n", - "
\n", - " Hybrid Reference Layer (Local Language)\n", - " \n", - "
Vector Tile Layer by arcgis_python\n", - "
Last Modified: August 08, 2019\n", - "
0 comments, 0 views\n", - "
\n", - "
\n", - " " - ], - "text/plain": [ - "" - ] - }, - "metadata": {}, - "output_type": "display_data" - }, - { - "data": { - "text/html": [ - "
\n", - "
\n", - " \n", - " \n", - " \n", - "
\n", - "\n", - "
\n", - " Imagery Hybrid\n", - " \n", - "
Web Map by arcgis_python\n", - "
Last Modified: August 08, 2019\n", - "
0 comments, 0 views\n", - "
\n", - "
\n", - " " - ], - "text/plain": [ - "" - ] - }, - "metadata": {}, - "output_type": "display_data" - }, - { - "data": { - "text/html": [ - "
\n", - "
\n", - " \n", - " \n", - " \n", - "
\n", - "\n", - "
\n", - " Imagery Hybrid (Local Language)\n", - " \n", - "
Web Map by arcgis_python\n", - "
Last Modified: August 08, 2019\n", - "
0 comments, 0 views\n", - "
\n", - "
\n", - " " - ], - "text/plain": [ - "" - ] - }, - "metadata": {}, - "output_type": "display_data" - }, - { - "data": { - "text/html": [ - "
\n", - "
\n", - " \n", - " \n", - " \n", - "
\n", - "\n", - "
\n", - " Light Gray Canvas\n", - " \n", - "
Web Map by arcgis_python\n", - "
Last Modified: August 08, 2019\n", - "
0 comments, 0 views\n", - "
\n", - "
\n", - " " - ], - "text/plain": [ - "" - ] - }, - "metadata": {}, - "output_type": "display_data" - }, - { - "data": { - "text/html": [ - "
\n", - "
\n", - " \n", - " \n", - " \n", - "
\n", - "\n", - "
\n", - " Light Gray Canvas\n", - " \n", - "
Vector Tile Layer by arcgis_python\n", - "
Last Modified: August 08, 2019\n", - "
0 comments, 0 views\n", - "
\n", - "
\n", - " " - ], - "text/plain": [ - "" - ] - }, - "metadata": {}, - "output_type": "display_data" - }, - { - "data": { - "text/html": [ - "
\n", - "
\n", - " \n", - " \n", - " \n", - "
\n", - "\n", - "
\n", - " Light Gray Canvas (Local Language)\n", - " \n", - "
Web Map by arcgis_python\n", - "
Last Modified: August 08, 2019\n", - "
0 comments, 0 views\n", - "
\n", - "
\n", - " " - ], - "text/plain": [ - "" - ] - }, - "metadata": {}, - "output_type": "display_data" - }, - { - "data": { - "text/html": [ - "
\n", - "
\n", - " \n", - " \n", - " \n", - "
\n", - "\n", - "
\n", - " Light Gray Canvas Base\n", - " \n", - "
Vector Tile Layer by arcgis_python\n", - "
Last Modified: August 08, 2019\n", - "
0 comments, 0 views\n", - "
\n", - "
\n", - " " - ], - "text/plain": [ - "" - ] - }, - "metadata": {}, - "output_type": "display_data" - }, - { - "data": { - "text/html": [ - "
\n", - "
\n", - " \n", - " \n", - " \n", - "
\n", - "\n", - "
\n", - " Light Gray Canvas Reference\n", - " \n", - "
Vector Tile Layer by arcgis_python\n", - "
Last Modified: August 08, 2019\n", - "
0 comments, 0 views\n", - "
\n", - "
\n", - " " - ], - "text/plain": [ - "" - ] - }, - "metadata": {}, - "output_type": "display_data" - }, - { - "data": { - "text/html": [ - "
\n", - "
\n", - " \n", - " \n", - " \n", - "
\n", - "\n", - "
\n", - " Light Gray Canvas Reference (Local Language)\n", - " \n", - "
Vector Tile Layer by arcgis_python\n", - "
Last Modified: August 08, 2019\n", - "
0 comments, 0 views\n", - "
\n", - "
\n", - " " - ], - "text/plain": [ - "" - ] - }, - "metadata": {}, - "output_type": "display_data" - }, - { - "data": { - "text/html": [ - "
\n", - "
\n", - " \n", - " \n", - " \n", - "
\n", - "\n", - "
\n", - " Mid-Century\n", - " \n", - "
Vector Tile Layer by arcgis_python\n", - "
Last Modified: August 08, 2019\n", - "
0 comments, 0 views\n", - "
\n", - "
\n", - " " - ], - "text/plain": [ - "" - ] - }, - "metadata": {}, - "output_type": "display_data" - }, - { - "data": { - "text/html": [ - "
\n", - "
\n", - " \n", - " \n", - " \n", - "
\n", - "\n", - "
\n", - " Mid-Century Map\n", - " \n", - "
Web Map by arcgis_python\n", - "
Last Modified: August 08, 2019\n", - "
0 comments, 0 views\n", - "
\n", - "
\n", - " " - ], - "text/plain": [ - "" - ] - }, - "metadata": {}, - "output_type": "display_data" - }, - { - "data": { - "text/html": [ - "
\n", - "
\n", - " \n", - " \n", - " \n", - "
\n", - "\n", - "
\n", - " Modern Antique\n", - " \n", - "
Vector Tile Layer by arcgis_python\n", - "
Last Modified: August 08, 2019\n", - "
0 comments, 0 views\n", - "
\n", - "
\n", - " " - ], - "text/plain": [ - "" - ] - }, - "metadata": {}, - "output_type": "display_data" - }, - { - "data": { - "text/html": [ - "
\n", - "
\n", - " \n", - " \n", - " \n", - "
\n", - "\n", - "
\n", - " Modern Antique Map\n", - " \n", - "
Web Map by arcgis_python\n", - "
Last Modified: August 08, 2019\n", - "
0 comments, 0 views\n", - "
\n", - "
\n", - " " - ], - "text/plain": [ - "" - ] - }, - "metadata": {}, - "output_type": "display_data" - }, - { - "data": { - "text/html": [ - "
\n", - "
\n", - " \n", - " \n", - " \n", - "
\n", - "\n", - "
\n", - " National Geographic Style\n", - " \n", - "
Vector Tile Layer by arcgis_python\n", - "
Last Modified: August 08, 2019\n", - "
0 comments, 0 views\n", - "
\n", - "
\n", - " " - ], - "text/plain": [ - "" - ] - }, - "metadata": {}, - "output_type": "display_data" - }, - { - "data": { - "text/html": [ - "
\n", - "
\n", - " \n", - " \n", - " \n", - "
\n", - "\n", - "
\n", - " National Geographic Style Map\n", - " \n", - "
Web Map by arcgis_python\n", - "
Last Modified: August 08, 2019\n", - "
0 comments, 0 views\n", - "
\n", - "
\n", - " " - ], - "text/plain": [ - "" - ] - }, - "metadata": {}, - "output_type": "display_data" - }, - { - "data": { - "text/html": [ - "
\n", - "
\n", - " \n", - " \n", - " \n", - "
\n", - "\n", - "
\n", - " Navigation\n", - " \n", - "
Web Map by arcgis_python\n", - "
Last Modified: August 08, 2019\n", - "
0 comments, 0 views\n", - "
\n", - "
\n", - " " - ], - "text/plain": [ - "" - ] - }, - "metadata": {}, - "output_type": "display_data" - }, - { - "data": { - "text/html": [ - "
\n", - "
\n", - " \n", - " \n", - " \n", - "
\n", - "\n", - "
\n", - " Navigation (Local Language)\n", - " \n", - "
Web Map by arcgis_python\n", - "
Last Modified: August 08, 2019\n", - "
0 comments, 0 views\n", - "
\n", - "
\n", - " " - ], - "text/plain": [ - "" - ] - }, - "metadata": {}, - "output_type": "display_data" - }, - { - "data": { - "text/html": [ - "
\n", - "
\n", - " \n", - " \n", - " \n", - "
\n", - "\n", - "
\n", - " Newspaper\n", - " \n", - "
Vector Tile Layer by arcgis_python\n", - "
Last Modified: August 08, 2019\n", - "
0 comments, 0 views\n", - "
\n", - "
\n", - " " - ], - "text/plain": [ - "" - ] - }, - "metadata": {}, - "output_type": "display_data" - }, - { - "data": { - "text/html": [ - "
\n", - "
\n", - " \n", - " \n", - " \n", - "
\n", - "\n", - "
\n", - " Newspaper Map\n", - " \n", - "
Web Map by arcgis_python\n", - "
Last Modified: August 08, 2019\n", - "
0 comments, 0 views\n", - "
\n", - "
\n", - " " - ], - "text/plain": [ - "" - ] - }, - "metadata": {}, - "output_type": "display_data" - }, - { - "data": { - "text/html": [ - "
\n", - "
\n", - " \n", - " \n", - " \n", - "
\n", - "\n", - "
\n", - " Nova\n", - " \n", - "
Vector Tile Layer by arcgis_python\n", - "
Last Modified: August 08, 2019\n", - "
0 comments, 0 views\n", - "
\n", - "
\n", - " " - ], - "text/plain": [ - "" - ] - }, - "metadata": {}, - "output_type": "display_data" - }, - { - "data": { - "text/html": [ - "
\n", - "
\n", - " \n", - " \n", - " \n", - "
\n", - "\n", - "
\n", - " Nova Map\n", - " \n", - "
Web Map by arcgis_python\n", - "
Last Modified: August 08, 2019\n", - "
0 comments, 0 views\n", - "
\n", - "
\n", - " " - ], - "text/plain": [ - "" - ] - }, - "metadata": {}, - "output_type": "display_data" - }, - { - "data": { - "text/html": [ - "
\n", - "
\n", - " \n", - " \n", - " \n", - "
\n", - "\n", - "
\n", - " Ocean Basemap\n", - " \n", - "
Web Map by arcgis_python\n", - "
Last Modified: August 08, 2019\n", - "
0 comments, 0 views\n", - "
\n", - "
\n", - " " - ], - "text/plain": [ - "" - ] - }, - "metadata": {}, - "output_type": "display_data" - }, - { - "data": { - "text/html": [ - "
\n", - "
\n", - " \n", - " \n", - " \n", - "
\n", - "\n", - "
\n", - " OpenStreetMap\n", - " \n", - "
Vector Tile Layer by arcgis_python\n", - "
Last Modified: August 08, 2019\n", - "
0 comments, 0 views\n", - "
\n", - "
\n", - " " - ], - "text/plain": [ - "" - ] - }, - "metadata": {}, - "output_type": "display_data" - }, - { - "data": { - "text/html": [ - "
\n", - "
\n", - " \n", - " \n", - " \n", - "
\n", - "\n", - "
\n", - " OpenStreetMap Vector Basemap\n", - " \n", - "
Web Map by arcgis_python\n", - "
Last Modified: August 08, 2019\n", - "
0 comments, 0 views\n", - "
\n", - "
\n", - " " - ], - "text/plain": [ - "" - ] - }, - "metadata": {}, - "output_type": "display_data" - }, - { - "data": { - "text/html": [ - "
\n", - "
\n", - " \n", - " \n", - " \n", - "
\n", - "\n", - "
\n", - " Streets\n", - " \n", - "
Web Map by arcgis_python\n", - "
Last Modified: August 08, 2019\n", - "
0 comments, 0 views\n", - "
\n", - "
\n", - " " - ], - "text/plain": [ - "" - ] - }, - "metadata": {}, - "output_type": "display_data" - }, - { - "data": { - "text/html": [ - "
\n", - "
\n", - " \n", - " \n", - " \n", - "
\n", - "\n", - "
\n", - " Streets (Local Language)\n", - " \n", - "
Web Map by arcgis_python\n", - "
Last Modified: August 08, 2019\n", - "
0 comments, 0 views\n", - "
\n", - "
\n", - " " - ], - "text/plain": [ - "" - ] - }, - "metadata": {}, - "output_type": "display_data" - }, - { - "data": { - "text/html": [ - "
\n", - "
\n", - " \n", - " \n", - " \n", - "
\n", - "\n", - "
\n", - " Streets (Night - Local Language)\n", - " \n", - "
Web Map by arcgis_python\n", - "
Last Modified: August 08, 2019\n", - "
0 comments, 0 views\n", - "
\n", - "
\n", - " " - ], - "text/plain": [ - "" - ] - }, - "metadata": {}, - "output_type": "display_data" - }, - { - "data": { - "text/html": [ - "
\n", - "
\n", - " \n", - " \n", - " \n", - "
\n", - "\n", - "
\n", - " Streets (Night)\n", - " \n", - "
Web Map by arcgis_python\n", - "
Last Modified: August 08, 2019\n", - "
0 comments, 0 views\n", - "
\n", - "
\n", - " " - ], - "text/plain": [ - "" - ] - }, - "metadata": {}, - "output_type": "display_data" - }, - { - "data": { - "text/html": [ - "
\n", - "
\n", - " \n", - " \n", - " \n", - "
\n", - "\n", - "
\n", - " Streets (with Relief)\n", - " \n", - "
Web Map by arcgis_python\n", - "
Last Modified: August 08, 2019\n", - "
0 comments, 0 views\n", - "
\n", - "
\n", - " " - ], - "text/plain": [ - "" - ] - }, - "metadata": {}, - "output_type": "display_data" - }, - { - "data": { - "text/html": [ - "
\n", - "
\n", - " \n", - " \n", - " \n", - "
\n", - "\n", - "
\n", - " Terrain with Labels\n", - " \n", - "
Web Map by arcgis_python\n", - "
Last Modified: August 08, 2019\n", - "
0 comments, 0 views\n", - "
\n", - "
\n", - " " - ], - "text/plain": [ - "" - ] - }, - "metadata": {}, - "output_type": "display_data" - }, - { - "data": { - "text/html": [ - "
\n", - "
\n", - " \n", - " \n", - " \n", - "
\n", - "\n", - "
\n", - " Terrain with Labels (Local Language)\n", - " \n", - "
Web Map by arcgis_python\n", - "
Last Modified: August 08, 2019\n", - "
0 comments, 0 views\n", - "
\n", - "
\n", - " " - ], - "text/plain": [ - "" - ] - }, - "metadata": {}, - "output_type": "display_data" - }, - { - "data": { - "text/html": [ - "
\n", - "
\n", - " \n", - " \n", - " \n", - "
\n", - "\n", - "
\n", - " Topographic\n", - " \n", - "
Web Map by arcgis_python\n", - "
Last Modified: August 08, 2019\n", - "
0 comments, 0 views\n", - "
\n", - "
\n", - " " - ], - "text/plain": [ - "" - ] - }, - "metadata": {}, - "output_type": "display_data" - }, - { - "data": { - "text/html": [ - "
\n", - "
\n", - " \n", - " \n", - " \n", - "
\n", - "\n", - "
\n", - " Topographic (Local Language)\n", - " \n", - "
Web Map by arcgis_python\n", - "
Last Modified: August 08, 2019\n", - "
0 comments, 0 views\n", - "
\n", - "
\n", - " " - ], - "text/plain": [ - "" - ] - }, - "metadata": {}, - "output_type": "display_data" - }, - { - "data": { - "text/html": [ - "
\n", - "
\n", - " \n", - " \n", - " \n", - "
\n", - "\n", - "
\n", - " World Navigation Map\n", - " \n", - "
Vector Tile Layer by arcgis_python\n", - "
Last Modified: August 08, 2019\n", - "
0 comments, 0 views\n", - "
\n", - "
\n", - " " - ], - "text/plain": [ - "" - ] - }, - "metadata": {}, - "output_type": "display_data" - }, - { - "data": { - "text/html": [ - "
\n", - "
\n", - " \n", - " \n", - " \n", - "
\n", - "\n", - "
\n", - " World Navigation Map (Local Language)\n", - " \n", - "
Vector Tile Layer by arcgis_python\n", - "
Last Modified: August 08, 2019\n", - "
0 comments, 0 views\n", - "
\n", - "
\n", - " " - ], - "text/plain": [ - "" - ] - }, - "metadata": {}, - "output_type": "display_data" - }, - { - "data": { - "text/html": [ - "
\n", - "
\n", - " \n", - " \n", - " \n", - "
\n", - "\n", - "
\n", - " World Ocean Reference\n", - " \n", - "
Vector Tile Layer by arcgis_python\n", - "
Last Modified: August 08, 2019\n", - "
0 comments, 0 views\n", - "
\n", - "
\n", - " " - ], - "text/plain": [ - "" - ] - }, - "metadata": {}, - "output_type": "display_data" - }, - { - "data": { - "text/html": [ - "
\n", - "
\n", - " \n", - " \n", - " \n", - "
\n", - "\n", - "
\n", - " World Street Map\n", - " \n", - "
Vector Tile Layer by arcgis_python\n", - "
Last Modified: August 08, 2019\n", - "
0 comments, 0 views\n", - "
\n", - "
\n", - " " - ], - "text/plain": [ - "" - ] - }, - "metadata": {}, - "output_type": "display_data" - }, - { - "data": { - "text/html": [ - "
\n", - "
\n", - " \n", - " \n", - " \n", - "
\n", - "\n", - "
\n", - " World Street Map (Local Language)\n", - " \n", - "
Vector Tile Layer by arcgis_python\n", - "
Last Modified: August 08, 2019\n", - "
0 comments, 0 views\n", - "
\n", - "
\n", - " " - ], - "text/plain": [ - "" - ] - }, - "metadata": {}, - "output_type": "display_data" - }, - { - "data": { - "text/html": [ - "
\n", - "
\n", - " \n", - " \n", - " \n", - "
\n", - "\n", - "
\n", - " World Street Map (Night - Local Language)\n", - " \n", - "
Vector Tile Layer by arcgis_python\n", - "
Last Modified: August 08, 2019\n", - "
0 comments, 0 views\n", - "
\n", - "
\n", - " " - ], - "text/plain": [ - "" - ] - }, - "metadata": {}, - "output_type": "display_data" - }, - { - "data": { - "text/html": [ - "
\n", - "
\n", - " \n", - " \n", - " \n", - "
\n", - "\n", - "
\n", - " World Street Map (Night)\n", - " \n", - "
Vector Tile Layer by arcgis_python\n", - "
Last Modified: August 08, 2019\n", - "
0 comments, 0 views\n", - "
\n", - "
\n", - " " - ], - "text/plain": [ - "" - ] - }, - "metadata": {}, - "output_type": "display_data" - }, - { - "data": { - "text/html": [ - "
\n", - "
\n", - " \n", - " \n", - " \n", - "
\n", - "\n", - "
\n", - " World Street Map (with Relief)\n", - " \n", - "
Vector Tile Layer by arcgis_python\n", - "
Last Modified: August 08, 2019\n", - "
0 comments, 0 views\n", - "
\n", - "
\n", - " " - ], - "text/plain": [ - "" - ] - }, - "metadata": {}, - "output_type": "display_data" - }, - { - "data": { - "text/html": [ - "
\n", - "
\n", - " \n", - " \n", - " \n", - "
\n", - "\n", - "
\n", - " World Terrain Base\n", - " \n", - "
Vector Tile Layer by arcgis_python\n", - "
Last Modified: August 08, 2019\n", - "
0 comments, 0 views\n", - "
\n", - "
\n", - " " - ], - "text/plain": [ - "" - ] - }, - "metadata": {}, - "output_type": "display_data" - }, - { - "data": { - "text/html": [ - "
\n", - "
\n", - " \n", - " \n", - " \n", - "
\n", - "\n", - "
\n", - " World Terrain Reference\n", - " \n", - "
Vector Tile Layer by arcgis_python\n", - "
Last Modified: August 08, 2019\n", - "
0 comments, 0 views\n", - "
\n", - "
\n", - " " - ], - "text/plain": [ - "" - ] - }, - "metadata": {}, - "output_type": "display_data" - }, - { - "data": { - "text/html": [ - "
\n", - "
\n", - " \n", - " \n", - " \n", - "
\n", - "\n", - "
\n", - " World Terrain Reference (Local Language)\n", - " \n", - "
Vector Tile Layer by arcgis_python\n", - "
Last Modified: August 08, 2019\n", - "
0 comments, 0 views\n", - "
\n", - "
\n", - " " - ], - "text/plain": [ - "" - ] - }, - "metadata": {}, - "output_type": "display_data" - }, - { - "data": { - "text/html": [ - "
\n", - "
\n", - " \n", - " \n", - " \n", - "
\n", - "\n", - "
\n", - " World Terrain with Labels\n", - " \n", - "
Vector Tile Layer by arcgis_python\n", - "
Last Modified: August 08, 2019\n", - "
0 comments, 0 views\n", - "
\n", - "
\n", - " " - ], - "text/plain": [ - "" - ] - }, - "metadata": {}, - "output_type": "display_data" - }, - { - "data": { - "text/html": [ - "
\n", - "
\n", - " \n", - " \n", - " \n", - "
\n", - "\n", - "
\n", - " World Topographic Map\n", - " \n", - "
Vector Tile Layer by arcgis_python\n", - "
Last Modified: August 08, 2019\n", - "
0 comments, 0 views\n", - "
\n", - "
\n", - " " - ], - "text/plain": [ - "" - ] - }, - "metadata": {}, - "output_type": "display_data" - }, - { - "data": { - "text/html": [ - "
\n", - "
\n", - " \n", - " \n", - " \n", - "
\n", - "\n", - "
\n", - " World Topographic Map (Local Language)\n", - " \n", - "
Vector Tile Layer by arcgis_python\n", - "
Last Modified: August 08, 2019\n", - "
0 comments, 0 views\n", - "
\n", - "
\n", - " " - ], - "text/plain": [ - "" + "" ] }, "metadata": {}, @@ -2219,26 +317,23 @@ "#cloning all items that were not present on the portal before\n", "for item in items_to_be_cloned: \n", " try:\n", - " with tempfile.TemporaryDirectory() as temp_dir:\n", - " thumbnail_file = item.download_thumbnail(temp_dir)\n", - " metadata_file = item.download_metadata(temp_dir)\n", - " target_item_properties = {'title': item.title,\n", - " 'tags': item.tags,\n", - " 'text':item.get_data(True),\n", - " 'type':item.type,\n", - " 'url':item.url\n", - " } \n", - " #create an item\n", - " root_folder = target.content.folders.get()\n", - " target_item = root_folder.add(target_item_properties, thumbnail=thumbnail_file)\n", - " \n", - " #share that item with the group on the target portal\n", - " target_item.sharing.groups.add(\n", - " group=target_group\n", - " )\n", - " \n", - " #display the item\n", - " display(target_item)\n", + " target_item_properties = ItemProperties(title=item.title,\n", + " tags=item.tags,\n", + " text=item.get_data(try_json=True),\n", + " item_type=item.type,\n", + " snippet=item.snippet,\n", + " description=item.description) \n", + " #create an item\n", + " root_folder = target.content.folders.get()\n", + " job = root_folder.add(item_properties=target_item_properties, item_id=item.id)\n", + " target_item = job.result()\n", + " #share that item with the group on the target portal\n", + " target_item.sharing.groups.add(\n", + " group=target_group\n", + " )\n", + " \n", + " #display the item\n", + " display(target_item)\n", " \n", " except Exception as e:\n", " print('Item {} could not be created in the target portal'.format(item.title))\n", @@ -2262,7 +357,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.11.0" + "version": "3.11.11" }, "toc": { "base_numbering": 1,