Seeq Knowledge Base

Deprecation of putAsset(AssetInputV1) Method in Connector SDK

Category

Connector SDK

Update Type

Deprecation

Deprecation Date

What

PutAsset(AssetInputV1 assetDefinition)

is being deprecated in favour of a new method signature.

When

  • Deprecated as of July 12, 2024 

  • Potential removal after July 12, 2025

Who is Affected

Connectors that build an Asset Tree might be using

putAsset(AssetInputV1 assetDefinition)

to create assets. This has been replaced by:

putAsset(PutAssetInputV1 assetDefinition)

How to Address

PutAssetInputV1 and AssetInputV1 have identical methods. To move from AssetInputV1 to PutAssetInputV1 you can modify your code as follows:

AssetInputV1 childAsset = new AssetInputV1();
childAsset.setDataId("someID");
childAsset.setName("someName");
this.connectionService.putAsset(childAsset);

Will become

PutAssetInputV1 childAsset = new PutAssetInputV1();
childAsset.setDataId("someId");
childAsset.setName("someName");
this.connectionService.putAsset(childAsset);