import ValidateNetworkTopologyParameters from "@arcgis/core/rest/networks/support/ValidateNetworkTopologyParameters.js";const ValidateNetworkTopologyParameters = await $arcgis.import("@arcgis/core/rest/networks/support/ValidateNetworkTopologyParameters.js");- Inheritance:
- ValidateNetworkTopologyParameters→
Accessor
- Since
- ArcGIS Maps SDK for JavaScript 4.26
ValidateNetworkTopologyParameters describes the optional and required parameters for validating a network topology. Optional parameters include gdbVersion, sessionID, validationType, and validationSet. The only required property is validateArea.
Example
const validationResult = await network.submitTopologyValidationJob( new ValidateNetworkTopologyParameters({ validateArea: extent, gdbVersion: "sde.DEFAULT", validationType: "rebuild", sessionID: "{7865BAA6-ED9C-4346-9F72-894A49E10C73}", validationSet: [ { sourceId: 4134325151, globalIds: ["{7865BAA6-ED9C-4346-9F72-894A49E10C73}"] } ] }));
console.log("result: ", validationResult);Constructors
Constructor
Parameters
| Parameter | Type | Description | Required |
|---|---|---|---|
| properties | | |
Properties
| Property | Type | Class |
|---|---|---|
declaredClass readonly inherited | ||
| | ||
| | ||
| | ||
| | ||
| | ||
| |
outSpatialReference
- Type
- SpatialReference | null | undefined
The spatial reference of the returned geometry. If not specified, the geometry is returned in the spatial reference of the feature service.
validationSet
- Type
- ValidationSetItemJSON[] | null | undefined
Specifies the set of features and objects to validate.
Note
This parameter is available at ArcGIS Enterprise 10.9.
Methods
fromJSON
- Signature
-
fromJSON (json: any): any
Creates a new instance of this class and initializes it with values from a JSON object
generated from an ArcGIS product. The object passed into the input json
parameter often comes from a response to a query operation in the REST API or a
toJSON()
method from another ArcGIS product. See the Using fromJSON()
topic in the Guide for details and examples of when and how to use this function.
Parameters
| Parameter | Type | Description | Required |
|---|---|---|---|
| json | A JSON representation of the instance in the ArcGIS format. See the ArcGIS REST API documentation for examples of the structure of various input JSON objects. | |
- Returns
- any
Returns a new instance of this class.
toJSON
- Signature
-
toJSON (): any
Converts an instance of this class to its ArcGIS portal JSON representation. See the Using fromJSON() guide topic for more information.
- Returns
- any
The ArcGIS portal JSON representation of an instance of this class.