From fb776b3a64feb074d0af83992a14a4053ffc7957 Mon Sep 17 00:00:00 2001 From: Dominik Gresch Date: Thu, 17 Apr 2025 09:58:26 +0200 Subject: [PATCH 1/3] Sync API additions for 25R2 --- src/ansys/api/acp/internal/event.proto | 59 ++++++++++++++++++++++++++ src/ansys/api/acp/internal/tree.proto | 9 ++-- src/ansys/api/acp/v0/model.proto | 2 + 3 files changed, 66 insertions(+), 4 deletions(-) create mode 100644 src/ansys/api/acp/internal/event.proto diff --git a/src/ansys/api/acp/internal/event.proto b/src/ansys/api/acp/internal/event.proto new file mode 100644 index 0000000..659041f --- /dev/null +++ b/src/ansys/api/acp/internal/event.proto @@ -0,0 +1,59 @@ +// Copyright (C) 2022 - 2025 ANSYS, Inc. and/or its affiliates. +// SPDX-License-Identifier: MIT +// +// +// Permission is hereby granted, free of charge, to any person obtaining a copy +// of this software and associated documentation files (the "Software"), to deal +// in the Software without restriction, including without limitation the rights +// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +// copies of the Software, and to permit persons to whom the Software is +// furnished to do so, subject to the following conditions: +// +// The above copyright notice and this permission notice shall be included in all +// copies or substantial portions of the Software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +// SOFTWARE. + +// NOTE: +// This is an internal proto definition and should not be +// used in any public interface. +// Stability and backwards compatibility is not guaranteed. + +syntax = "proto3"; +package ansys.api.acp.internal.event; + +// The package name 'internal' has special meaning in Go: +// other modules cannot import it. +// To avoid this, we use 'unstable' instead of 'internal'. +// This only affects the generated Go code. +option go_package = "github.com/ansys/ansys-api-acp/ansys/api/acp/unstable/event"; + +import "ansys/api/acp/v0/base.proto"; + +enum EventType { + INIT = 0; // signals the start of the stream + CREATE = 1; + PUT = 2; + DELETE = 3; +} + +message CreateEventData { v0.base.BasicInfo info = 1; } +message PutEventData { v0.base.BasicInfo info = 1; } +message DeleteEventData { string uuid = 1; } + +message Event { + EventType type = 1; + oneof data { + CreateEventData create = 2; + PutEventData put = 3; + DeleteEventData delete = 4; + }; +} + +service EventService { rpc EventStream(v0.base.Empty) returns (stream Event); } diff --git a/src/ansys/api/acp/internal/tree.proto b/src/ansys/api/acp/internal/tree.proto index 9151960..fb50261 100644 --- a/src/ansys/api/acp/internal/tree.proto +++ b/src/ansys/api/acp/internal/tree.proto @@ -20,6 +20,11 @@ // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE // SOFTWARE. +// NOTE: +// This is an internal proto definition and should not be +// used in any public interface. +// Stability and backwards compatibility is not guaranteed. + syntax = "proto3"; package ansys.api.acp.internal.tree; @@ -29,10 +34,6 @@ package ansys.api.acp.internal.tree; // This only affects the generated Go code. option go_package = "github.com/ansys/ansys-api-acp/ansys/api/acp/unstable/tree"; -// This is an internal proto definition and should not be -// used in any public interface. -// Stability and backwards compatibility is not guaranteed. - import "ansys/api/acp/v0/base.proto"; message TreeObject { diff --git a/src/ansys/api/acp/v0/model.proto b/src/ansys/api/acp/v0/model.proto index 875ebfb..b393ae3 100644 --- a/src/ansys/api/acp/v0/model.proto +++ b/src/ansys/api/acp/v0/model.proto @@ -43,6 +43,8 @@ message Properties { optional double minimum_analysis_ply_thickness = 6; // when not set, keep the previous value (potentially unit-converted) unit_system.UnitSystemType unit_system = 7; + optional bool force_disable_result_extrapolation = 9; + // read-only double average_element_size = 8; } From aa87893e8f8cafdb1866cba1048e1c7073fa7c59 Mon Sep 17 00:00:00 2001 From: Dominik Gresch Date: Thu, 8 May 2025 08:12:40 +0200 Subject: [PATCH 2/3] Add latest changes from release branch --- src/ansys/api/acp/v0/lookup_table_3d.proto | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/ansys/api/acp/v0/lookup_table_3d.proto b/src/ansys/api/acp/v0/lookup_table_3d.proto index 3d73fa9..c760282 100644 --- a/src/ansys/api/acp/v0/lookup_table_3d.proto +++ b/src/ansys/api/acp/v0/lookup_table_3d.proto @@ -40,6 +40,8 @@ message Properties { bool use_default_search_radius = 3; double search_radius = 4; int64 num_min_neighbors = 5; + optional bool use_global_coordinate_system = 6; + base.ResourcePath rosette = 7; } message ObjectInfo { From 21b4b36fb7b201d003d96116f80ff508cf0cc833 Mon Sep 17 00:00:00 2001 From: Dominik Gresch Date: Thu, 8 May 2025 08:15:51 +0200 Subject: [PATCH 3/3] Bump the version to 0.3.0 --- src/ansys/api/acp/VERSION | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ansys/api/acp/VERSION b/src/ansys/api/acp/VERSION index 13668bb..0d91a54 100644 --- a/src/ansys/api/acp/VERSION +++ b/src/ansys/api/acp/VERSION @@ -1 +1 @@ -0.3.0.dev0 +0.3.0