diff --git a/ansys/api/additive/VERSION b/ansys/api/additive/VERSION index 85b2c0a..b38f36d 100644 --- a/ansys/api/additive/VERSION +++ b/ansys/api/additive/VERSION @@ -1 +1 @@ -1.7.0-dev4 \ No newline at end of file +1.7.0-dev5 \ No newline at end of file diff --git a/ansys/api/additive/v0/additive_materials.proto b/ansys/api/additive/v0/additive_materials.proto index 7675948..b5d42a1 100644 --- a/ansys/api/additive/v0/additive_materials.proto +++ b/ansys/api/additive/v0/additive_materials.proto @@ -10,6 +10,8 @@ import "google/protobuf/empty.proto"; service MaterialsService { + rpc AddMaterial(AddMaterialRequest) returns (AddMaterialResponse); + rpc GetMaterialsList (google.protobuf.Empty) returns (GetMaterialsListResponse); rpc GetMaterial (GetMaterialRequest) returns (AdditiveMaterial); @@ -17,6 +19,19 @@ service MaterialsService { rpc TuneMaterial (TuneMaterialRequest) returns (stream TuneMaterialResponse); } +message AddMaterialRequest { + string id = 1; + AdditiveMaterial material = 2; +} + +message AddMaterialResponse { + string id = 1; + oneof ResponseType { + string error = 2; + AdditiveMaterial material = 3; + } +} + message GetMaterialRequest { string name = 1; }