Creates a shield information barrier report for a given barrier.
A base representation of a shield information barrier object
Returns the shield information barrier report information object.
Returns a not_found
error if
the shield information barrier report was not found.
Returns a conflict
error if a
shield information barrier report is currently being created.
An unexpected client error.
await client.shieldInformationBarrierReports.createShieldInformationBarrierReport(
{
shieldInformationBarrier: {
id: barrierId,
type: 'shield_information_barrier' as ShieldInformationBarrierBaseTypeField,
} satisfies ShieldInformationBarrierBase,
} satisfies ShieldInformationBarrierReference,
);
client.shield_information_barrier_reports.create_shield_information_barrier_report(
shield_information_barrier=ShieldInformationBarrierBase(
id=barrier_id,
type=ShieldInformationBarrierBaseTypeField.SHIELD_INFORMATION_BARRIER,
)
)
await client.ShieldInformationBarrierReports.CreateShieldInformationBarrierReportAsync(requestBody: new ShieldInformationBarrierReference() { ShieldInformationBarrier = new ShieldInformationBarrierBase() { Id = barrierId, Type = ShieldInformationBarrierBaseTypeField.ShieldInformationBarrier } });
try await client.shieldInformationBarrierReports.createShieldInformationBarrierReport(requestBody: ShieldInformationBarrierReference(shieldInformationBarrier: ShieldInformationBarrierBase(id: barrierId, type: ShieldInformationBarrierBaseTypeField.shieldInformationBarrier)))
const barrierReport = await client.shieldInformationBarrierReports.create({
shield_information_barrier: {
id: '123',
type: 'shield_information_barrier'
}
});
console.log(`Shield information barrier report with id ${barrierReport.id} was created`);
{
"id": "11446498",
"type": "shield_information_barrier_report",
"created_at": "2020-06-26T18:44:45.869Z",
"created_by": {
"id": "11446498",
"type": "user"
},
"details": {
"details": {
"folder_id": "124235"
}
},
"shield_information_barrier": {
"shield_information_barrier": {
"id": "11446498",
"type": "shield_information_barrier"
}
},
"status": "pending",
"updated_at": "2020-07-26T18:44:45.869Z"
}