create

@JvmStatic
fun create(name: String = "MeshInstancesResource"): MeshInstancesResource

Creates a new MeshInstancesResource with the specified name.

Return

The MeshInstancesResource created.

Parameters

name

The name of the MeshInstancesResource.

Throws

If any error occues during the creation process.


@JvmStatic
fun create(name: String = "MeshInstancesResource", list: List<MeshInstancesResource.Instance>): MeshInstancesResource

Creates a new MeshInstancesResource with the specified name and instances. When there are too many instances that need to be created at one time, using this function will achieve better performance.

Return

The MeshInstancesResource created.

Parameters

name

The name of the MeshInstancesResource.

list

The list of instances to add to the MeshInstancesResource.

Throws

If any error occurs during the creation process.

IllegalArgumentException

If there are duplicate instance IDs in the list.