Update _version import
"cell_type": "code",
"execution_count": 14,
"source": [
+ "from arcgis.features._version import VersionManager\r\n",
+ "\r\n",
"version_management_server_url = f\"{base_server_url}/VersionManagementServer\"\r\n",
- "vms = _version.VersionManager(version_management_server_url, gis)\r\n",
+ "vms = VersionManager(version_management_server_url, gis)\r\n",
"vms.properties"
],
"outputs": [
{
"cell_type": "markdown",
"source": [
- "### Branch Versioning Edit Sessions\n",
- "\n",
- "A branch versioning edit session is act of obtaining shared and exclusive locks on the feature class to prevent corruption in the branch version.\n",
- "\n",
- "`version.startReading` will set a shared lock on the version which prevents another session from obtaining an exclusive lock. Other sessions can still access the version as read-only.\n",
- "\n",
- "`version.startEditing` will set the exclusive lock which will prevent write access and write access to the version.\n",
- "\n",
+ "### Branch Versioning Edit Sessions\r\n",
+ "\r\n",
+ "A branch versioning edit session is act of obtaining shared and exclusive locks on the feature class to prevent corruption in the branch version.\r\n",
+ "\r\n",
+ "`version.startReading` will set a shared lock on the version which prevents another session from obtaining an exclusive lock. Other sessions can still access the version as read-only.\r\n",
+ "\r\n",
+ "`version.startEditing` will set the exclusive lock which will prevent write access and write access to the version.\r\n",
+ "\r\n",
"Keeping track of where one is within the edit sessions is made simple with a built in context manager."
],
"metadata": {}
{
"cell_type": "markdown",
"source": [
- "### Documentation\n",
- "\n",
- "[ArcGIS Python API - Version Manager](https://developers.arcgis.com/python/api-reference/arcgis.features.managers.html#versionmanager)\n",
- "\n",
- "[ArcGIS Python API - Parcel Fabric Manager](https://developers.arcgis.com/python/api-reference/arcgis.features.managers.html#parcelfabricmanager)\n",
- "\n",
- "[ArcGIS REST API - VersionManagementServer](https://developers.arcgis.com/rest/services-reference/enterprise/version-management-service.htm)\n",
- "\n",
- "[ArcGIS REST API - ParcelFabricServer](https://developers.arcgis.com/rest/services-reference/enterprise/overview-of-parcel-fabric-sevices.htm)\n",
- "\n",
+ "### Documentation\r\n",
+ "\r\n",
+ "[ArcGIS Python API - Version Manager](https://developers.arcgis.com/python/api-reference/arcgis.features.managers.html#versionmanager)\r\n",
+ "\r\n",
+ "[ArcGIS Python API - Parcel Fabric Manager](https://developers.arcgis.com/python/api-reference/arcgis.features.managers.html#parcelfabricmanager)\r\n",
+ "\r\n",
+ "[ArcGIS REST API - VersionManagementServer](https://developers.arcgis.com/rest/services-reference/enterprise/version-management-service.htm)\r\n",
+ "\r\n",
+ "[ArcGIS REST API - ParcelFabricServer](https://developers.arcgis.com/rest/services-reference/enterprise/overview-of-parcel-fabric-sevices.htm)\r\n",
+ "\r\n",
"[ArcGIS Pro - Branch Versioning Scenarios](https://pro.arcgis.com/en/pro-app/latest/help/data/geodatabases/overview/branch-version-scenarios.htm)"
],
"metadata": {}
