From 5a6fb47d612722906796927442cd5783cd407ee9 Mon Sep 17 00:00:00 2001 From: m-bini Date: Thu, 2 Mar 2023 11:32:31 +0100 Subject: [PATCH 01/15] Remove old unused protos --- .../discovery/google/api/annotations.proto | 31 - .../discovery/google/api/field_behavior.proto | 78 - ansys/api/discovery/google/api/http.proto | 319 ---- ansys/api/discovery/google/api/httpbody.proto | 78 - ansys/api/discovery/google/rpc/code.proto | 186 --- .../discovery/google/rpc/error_details.proto | 200 --- ansys/api/discovery/google/rpc/status.proto | 92 -- ansys/api/discovery/v1/admin.proto | 83 - ansys/api/discovery/v1/api.proto | 37 - ansys/api/discovery/v1/application.proto | 53 - ansys/api/discovery/v1/commands.proto | 66 - ansys/api/discovery/v1/components.proto | 32 - .../api/discovery/v1/coordinatesystems.proto | 49 - .../discovery/v1/definedvariationstable.proto | 180 -- ansys/api/discovery/v1/designbodies.proto | 48 - ansys/api/discovery/v1/designcurves.proto | 28 - ansys/api/discovery/v1/designedges.proto | 29 - ansys/api/discovery/v1/designfaces.proto | 29 - ansys/api/discovery/v1/designmeshes.proto | 29 - ansys/api/discovery/v1/documents.proto | 112 -- .../api/discovery/v1/drivingdimensions.proto | 37 - ansys/api/discovery/v1/facettools.proto | 45 - .../discovery/v1/historytrackparameters.proto | 46 - ansys/api/discovery/v1/models.proto | 679 -------- ansys/api/discovery/v1/namedselections.proto | 66 - ansys/api/discovery/v1/parts.proto | 46 - ansys/api/discovery/v1/preparetools.proto | 91 - ansys/api/discovery/v1/repairtools.proto | 176 -- ansys/api/discovery/v1/scriptparameters.proto | 50 - ansys/api/discovery/v1/streaming.proto | 20 - ansys/api/discovery/v1/units.proto | 1472 ----------------- ansys/api/discovery/v1/windows.proto | 46 - 32 files changed, 4533 deletions(-) delete mode 100644 ansys/api/discovery/google/api/annotations.proto delete mode 100644 ansys/api/discovery/google/api/field_behavior.proto delete mode 100644 ansys/api/discovery/google/api/http.proto delete mode 100644 ansys/api/discovery/google/api/httpbody.proto delete mode 100644 ansys/api/discovery/google/rpc/code.proto delete mode 100644 ansys/api/discovery/google/rpc/error_details.proto delete mode 100644 ansys/api/discovery/google/rpc/status.proto delete mode 100644 ansys/api/discovery/v1/admin.proto delete mode 100644 ansys/api/discovery/v1/api.proto delete mode 100644 ansys/api/discovery/v1/application.proto delete mode 100644 ansys/api/discovery/v1/commands.proto delete mode 100644 ansys/api/discovery/v1/components.proto delete mode 100644 ansys/api/discovery/v1/coordinatesystems.proto delete mode 100644 ansys/api/discovery/v1/definedvariationstable.proto delete mode 100644 ansys/api/discovery/v1/designbodies.proto delete mode 100644 ansys/api/discovery/v1/designcurves.proto delete mode 100644 ansys/api/discovery/v1/designedges.proto delete mode 100644 ansys/api/discovery/v1/designfaces.proto delete mode 100644 ansys/api/discovery/v1/designmeshes.proto delete mode 100644 ansys/api/discovery/v1/documents.proto delete mode 100644 ansys/api/discovery/v1/drivingdimensions.proto delete mode 100644 ansys/api/discovery/v1/facettools.proto delete mode 100644 ansys/api/discovery/v1/historytrackparameters.proto delete mode 100644 ansys/api/discovery/v1/models.proto delete mode 100644 ansys/api/discovery/v1/namedselections.proto delete mode 100644 ansys/api/discovery/v1/parts.proto delete mode 100644 ansys/api/discovery/v1/preparetools.proto delete mode 100644 ansys/api/discovery/v1/repairtools.proto delete mode 100644 ansys/api/discovery/v1/scriptparameters.proto delete mode 100644 ansys/api/discovery/v1/streaming.proto delete mode 100644 ansys/api/discovery/v1/units.proto delete mode 100644 ansys/api/discovery/v1/windows.proto diff --git a/ansys/api/discovery/google/api/annotations.proto b/ansys/api/discovery/google/api/annotations.proto deleted file mode 100644 index 90d8b4b..0000000 --- a/ansys/api/discovery/google/api/annotations.proto +++ /dev/null @@ -1,31 +0,0 @@ -// Copyright (c) 2015, Google Inc. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.api; - -import "ansys/api/discovery/google/api/http.proto"; -import "google/protobuf/descriptor.proto"; - -option go_package = "google.golang.org/genproto/googleapis/api/annotations;annotations"; -option java_multiple_files = true; -option java_outer_classname = "AnnotationsProto"; -option java_package = "com.google.api"; -option objc_class_prefix = "GAPI"; - -extend google.protobuf.MethodOptions { - // See `HttpRule`. - HttpRule http = 72295728; -} diff --git a/ansys/api/discovery/google/api/field_behavior.proto b/ansys/api/discovery/google/api/field_behavior.proto deleted file mode 100644 index aa7127b..0000000 --- a/ansys/api/discovery/google/api/field_behavior.proto +++ /dev/null @@ -1,78 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.api; - -import "google/protobuf/descriptor.proto"; - -option go_package = "google.golang.org/genproto/googleapis/api/annotations;annotations"; -option java_multiple_files = true; -option java_outer_classname = "FieldBehaviorProto"; -option java_package = "com.google.api"; -option objc_class_prefix = "GAPI"; - -extend google.protobuf.FieldOptions { - // A designation of a specific field behavior (required, output only, etc.) - // in protobuf messages. - // - // Examples: - // - // string name = 1 [(google.api.field_behavior) = REQUIRED]; - // State state = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; - // google.protobuf.Duration ttl = 1 - // [(google.api.field_behavior) = INPUT_ONLY]; - // google.protobuf.Timestamp expire_time = 1 - // [(google.api.field_behavior) = OUTPUT_ONLY, - // (google.api.field_behavior) = IMMUTABLE]; - repeated google.api.FieldBehavior field_behavior = 1052; -} - -// An indicator of the behavior of a given field (for example, that a field -// is required in requests, or given as output but ignored as input). -// This **does not** change the behavior in protocol buffers itself; it only -// denotes the behavior and may affect how API tooling handles the field. -// -// Note: This enum **may** receive new values in the future. -enum FieldBehavior { - // Conventional default for enums. Do not use this. - FIELD_BEHAVIOR_UNSPECIFIED = 0; - - // Specifically denotes a field as optional. - // While all fields in protocol buffers are optional, this may be specified - // for emphasis if appropriate. - OPTIONAL = 1; - - // Denotes a field as required. - // This indicates that the field **must** be provided as part of the request, - // and failure to do so will cause an error (usually `INVALID_ARGUMENT`). - REQUIRED = 2; - - // Denotes a field as output only. - // This indicates that the field is provided in responses, but including the - // field in a request does nothing (the server *must* ignore it and - // *must not* throw an error as a result of the field's presence). - OUTPUT_ONLY = 3; - - // Denotes a field as input only. - // This indicates that the field is provided in requests, and the - // corresponding field is not included in output. - INPUT_ONLY = 4; - - // Denotes a field as immutable. - // This indicates that the field may be set once in a request to create a - // resource, but may not be changed thereafter. - IMMUTABLE = 5; -} diff --git a/ansys/api/discovery/google/api/http.proto b/ansys/api/discovery/google/api/http.proto deleted file mode 100644 index c19acd4..0000000 --- a/ansys/api/discovery/google/api/http.proto +++ /dev/null @@ -1,319 +0,0 @@ -// Copyright 2018 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.api; - -option cc_enable_arenas = true; -option go_package = "google.golang.org/genproto/googleapis/api/annotations;annotations"; -option java_multiple_files = true; -option java_outer_classname = "HttpProto"; -option java_package = "com.google.api"; -option objc_class_prefix = "GAPI"; - - -// Defines the HTTP configuration for an API service. It contains a list of -// [HttpRule][google.api.HttpRule], each specifying the mapping of an RPC method -// to one or more HTTP REST API methods. -message Http { - // A list of HTTP configuration rules that apply to individual API methods. - // - // **NOTE:** All service configuration rules follow "last one wins" order. - repeated HttpRule rules = 1; - - // When set to true, URL path parmeters will be fully URI-decoded except in - // cases of single segment matches in reserved expansion, where "%2F" will be - // left encoded. - // - // The default behavior is to not decode RFC 6570 reserved characters in multi - // segment matches. - bool fully_decode_reserved_expansion = 2; -} - -// `HttpRule` defines the mapping of an RPC method to one or more HTTP -// REST API methods. The mapping specifies how different portions of the RPC -// request message are mapped to URL path, URL query parameters, and -// HTTP request body. The mapping is typically specified as an -// `google.api.http` annotation on the RPC method, -// see "google/api/annotations.proto" for details. -// -// The mapping consists of a field specifying the path template and -// method kind. The path template can refer to fields in the request -// message, as in the example below which describes a REST GET -// operation on a resource collection of messages: -// -// -// service Messaging { -// rpc GetMessage(GetMessageRequest) returns (Message) { -// option (google.api.http).get = "/v1/messages/{message_id}/{sub.subfield}"; -// } -// } -// message GetMessageRequest { -// message SubMessage { -// string subfield = 1; -// } -// string message_id = 1; // mapped to the URL -// SubMessage sub = 2; // `sub.subfield` is url-mapped -// } -// message Message { -// string text = 1; // content of the resource -// } -// -// The same http annotation can alternatively be expressed inside the -// `GRPC API Configuration` YAML file. -// -// http: -// rules: -// - selector: .Messaging.GetMessage -// get: /v1/messages/{message_id}/{sub.subfield} -// -// This definition enables an automatic, bidrectional mapping of HTTP -// JSON to RPC. Example: -// -// HTTP | RPC -// -----|----- -// `GET /v1/messages/123456/foo` | `GetMessage(message_id: "123456" sub: SubMessage(subfield: "foo"))` -// -// In general, not only fields but also field paths can be referenced -// from a path pattern. Fields mapped to the path pattern cannot be -// repeated and must have a primitive (non-message) type. -// -// Any fields in the request message which are not bound by the path -// pattern automatically become (optional) HTTP query -// parameters. Assume the following definition of the request message: -// -// -// service Messaging { -// rpc GetMessage(GetMessageRequest) returns (Message) { -// option (google.api.http).get = "/v1/messages/{message_id}"; -// } -// } -// message GetMessageRequest { -// message SubMessage { -// string subfield = 1; -// } -// string message_id = 1; // mapped to the URL -// int64 revision = 2; // becomes a parameter -// SubMessage sub = 3; // `sub.subfield` becomes a parameter -// } -// -// -// This enables a HTTP JSON to RPC mapping as below: -// -// HTTP | RPC -// -----|----- -// `GET /v1/messages/123456?revision=2&sub.subfield=foo` | -// `GetMessage(message_id: "123456" revision: 2 sub: SubMessage(subfield: "foo"))` -// -// Note that fields which are mapped to HTTP parameters must have a -// primitive type or a repeated primitive type. Message types are not -// allowed. In the case of a repeated type, the parameter can be -// repeated in the URL, as in `...?param=A¶m=B`. -// -// For HTTP method kinds which allow a request body, the `body` field -// specifies the mapping. Consider a REST update method on the -// message resource collection: -// -// -// service Messaging { -// rpc UpdateMessage(UpdateMessageRequest) returns (Message) { -// option (google.api.http) = { -// put: "/v1/messages/{message_id}" -// body: "message" -// }; -// } -// } -// message UpdateMessageRequest { -// string message_id = 1; // mapped to the URL -// Message message = 2; // mapped to the body -// } -// -// -// The following HTTP JSON to RPC mapping is enabled, where the -// representation of the JSON in the request body is determined by -// protos JSON encoding: -// -// HTTP | RPC -// -----|----- -// `PUT /v1/messages/123456 { "text": "Hi!" }` | `UpdateMessage(message_id: "123456" message { text: "Hi!" })` -// -// The special name `*` can be used in the body mapping to define that -// every field not bound by the path template should be mapped to the -// request body. This enables the following alternative definition of -// the update method: -// -// service Messaging { -// rpc UpdateMessage(Message) returns (Message) { -// option (google.api.http) = { -// put: "/v1/messages/{message_id}" -// body: "*" -// }; -// } -// } -// message Message { -// string message_id = 1; -// string text = 2; -// } -// -// -// The following HTTP JSON to RPC mapping is enabled: -// -// HTTP | RPC -// -----|----- -// `PUT /v1/messages/123456 { "text": "Hi!" }` | `UpdateMessage(message_id: "123456" text: "Hi!")` -// -// Note that when using `*` in the body mapping, it is not possible to -// have HTTP parameters, as all fields not bound by the path end in -// the body. This makes this option more rarely used in practice of -// defining REST APIs. The common usage of `*` is in custom methods -// which don't use the URL at all for transferring data. -// -// It is possible to define multiple HTTP methods for one RPC by using -// the `additional_bindings` option. Example: -// -// service Messaging { -// rpc GetMessage(GetMessageRequest) returns (Message) { -// option (google.api.http) = { -// get: "/v1/messages/{message_id}" -// additional_bindings { -// get: "/v1/users/{user_id}/messages/{message_id}" -// } -// }; -// } -// } -// message GetMessageRequest { -// string message_id = 1; -// string user_id = 2; -// } -// -// -// This enables the following two alternative HTTP JSON to RPC -// mappings: -// -// HTTP | RPC -// -----|----- -// `GET /v1/messages/123456` | `GetMessage(message_id: "123456")` -// `GET /v1/users/me/messages/123456` | `GetMessage(user_id: "me" message_id: "123456")` -// -// # Rules for HTTP mapping -// -// The rules for mapping HTTP path, query parameters, and body fields -// to the request message are as follows: -// -// 1. The `body` field specifies either `*` or a field path, or is -// omitted. If omitted, it indicates there is no HTTP request body. -// 2. Leaf fields (recursive expansion of nested messages in the -// request) can be classified into three types: -// (a) Matched in the URL template. -// (b) Covered by body (if body is `*`, everything except (a) fields; -// else everything under the body field) -// (c) All other fields. -// 3. URL query parameters found in the HTTP request are mapped to (c) fields. -// 4. Any body sent with an HTTP request can contain only (b) fields. -// -// The syntax of the path template is as follows: -// -// Template = "/" Segments [ Verb ] ; -// Segments = Segment { "/" Segment } ; -// Segment = "*" | "**" | LITERAL | Variable ; -// Variable = "{" FieldPath [ "=" Segments ] "}" ; -// FieldPath = IDENT { "." IDENT } ; -// Verb = ":" LITERAL ; -// -// The syntax `*` matches a single path segment. The syntax `**` matches zero -// or more path segments, which must be the last part of the path except the -// `Verb`. The syntax `LITERAL` matches literal text in the path. -// -// The syntax `Variable` matches part of the URL path as specified by its -// template. A variable template must not contain other variables. If a variable -// matches a single path segment, its template may be omitted, e.g. `{var}` -// is equivalent to `{var=*}`. -// -// If a variable contains exactly one path segment, such as `"{var}"` or -// `"{var=*}"`, when such a variable is expanded into a URL path, all characters -// except `[-_.~0-9a-zA-Z]` are percent-encoded. Such variables show up in the -// Discovery Document as `{var}`. -// -// If a variable contains one or more path segments, such as `"{var=foo/*}"` -// or `"{var=**}"`, when such a variable is expanded into a URL path, all -// characters except `[-_.~/0-9a-zA-Z]` are percent-encoded. Such variables -// show up in the Discovery Document as `{+var}`. -// -// NOTE: While the single segment variable matches the semantics of -// [RFC 6570](https://tools.ietf.org/html/rfc6570) Section 3.2.2 -// Simple String Expansion, the multi segment variable **does not** match -// RFC 6570 Reserved Expansion. The reason is that the Reserved Expansion -// does not expand special characters like `?` and `#`, which would lead -// to invalid URLs. -// -// NOTE: the field paths in variables and in the `body` must not refer to -// repeated fields or map fields. -message HttpRule { - // Selects methods to which this rule applies. - // - // Refer to [selector][google.api.DocumentationRule.selector] for syntax details. - string selector = 1; - - // Determines the URL pattern is matched by this rules. This pattern can be - // used with any of the {get|put|post|delete|patch} methods. A custom method - // can be defined using the 'custom' field. - oneof pattern { - // Used for listing and getting information about resources. - string get = 2; - - // Used for updating a resource. - string put = 3; - - // Used for creating a resource. - string post = 4; - - // Used for deleting a resource. - string delete = 5; - - // Used for updating a resource. - string patch = 6; - - // The custom pattern is used for specifying an HTTP method that is not - // included in the `pattern` field, such as HEAD, or "*" to leave the - // HTTP method unspecified for this rule. The wild-card rule is useful - // for services that provide content to Web (HTML) clients. - CustomHttpPattern custom = 8; - } - - // The name of the request field whose value is mapped to the HTTP body, or - // `*` for mapping all fields not captured by the path pattern to the HTTP - // body. NOTE: the referred field must not be a repeated field and must be - // present at the top-level of request message type. - string body = 7; - - // Optional. The name of the response field whose value is mapped to the HTTP - // body of response. Other response fields are ignored. When - // not set, the response message will be used as HTTP body of response. - string response_body = 12; - - // Additional HTTP bindings for the selector. Nested bindings must - // not contain an `additional_bindings` field themselves (that is, - // the nesting may only be one level deep). - repeated HttpRule additional_bindings = 11; -} - -// A custom pattern is used for defining custom HTTP verb. -message CustomHttpPattern { - // The name of this custom HTTP verb. - string kind = 1; - - // The path matched by this custom verb. - string path = 2; -} diff --git a/ansys/api/discovery/google/api/httpbody.proto b/ansys/api/discovery/google/api/httpbody.proto deleted file mode 100644 index 07722bd..0000000 --- a/ansys/api/discovery/google/api/httpbody.proto +++ /dev/null @@ -1,78 +0,0 @@ -// Copyright 2018 Google LLC. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// - -syntax = "proto3"; - -package google.api; - -import "google/protobuf/any.proto"; - -// option cc_enable_arenas = true; -option go_package = "google.golang.org/genproto/googleapis/api/httpbody;httpbody"; -option java_multiple_files = true; -option java_outer_classname = "HttpBodyProto"; -option java_package = "com.google.api"; -option objc_class_prefix = "GAPI"; - -// Message that represents an arbitrary HTTP body. It should only be used for -// payload formats that can't be represented as JSON, such as raw binary or -// an HTML page. -// -// -// This message can be used both in streaming and non-streaming API methods in -// the request as well as the response. -// -// It can be used as a top-level request field, which is convenient if one -// wants to extract parameters from either the URL or HTTP template into the -// request fields and also want access to the raw HTTP body. -// -// Example: -// -// message GetResourceRequest { -// // A unique request id. -// string request_id = 1; -// -// // The raw HTTP body is bound to this field. -// google.api.HttpBody http_body = 2; -// } -// -// service ResourceService { -// rpc GetResource(GetResourceRequest) returns (google.api.HttpBody); -// rpc UpdateResource(google.api.HttpBody) returns -// (google.protobuf.Empty); -// } -// -// Example with streaming methods: -// -// service CaldavService { -// rpc GetCalendar(stream google.api.HttpBody) -// returns (stream google.api.HttpBody); -// rpc UpdateCalendar(stream google.api.HttpBody) -// returns (stream google.api.HttpBody); -// } -// -// Use of this type only changes how the request and response bodies are -// handled, all other features will continue to work unchanged. -message HttpBody { - // The HTTP Content-Type header value specifying the content type of the body. - string content_type = 1; - - // The HTTP request/response body as raw binary. - bytes data = 2; - - // Application specific response metadata. Must be set in the first response - // for streaming APIs. - repeated google.protobuf.Any extensions = 3; -} \ No newline at end of file diff --git a/ansys/api/discovery/google/rpc/code.proto b/ansys/api/discovery/google/rpc/code.proto deleted file mode 100644 index 8fef411..0000000 --- a/ansys/api/discovery/google/rpc/code.proto +++ /dev/null @@ -1,186 +0,0 @@ -// Copyright 2017 Google Inc. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.rpc; - -option go_package = "google.golang.org/genproto/googleapis/rpc/code;code"; -option java_multiple_files = true; -option java_outer_classname = "CodeProto"; -option java_package = "com.google.rpc"; -option objc_class_prefix = "RPC"; - - -// The canonical error codes for Google APIs. -// -// -// Sometimes multiple error codes may apply. Services should return -// the most specific error code that applies. For example, prefer -// `OUT_OF_RANGE` over `FAILED_PRECONDITION` if both codes apply. -// Similarly prefer `NOT_FOUND` or `ALREADY_EXISTS` over `FAILED_PRECONDITION`. -enum Code { - // Not an error; returned on success - // - // HTTP Mapping: 200 OK - OK = 0; - - // The operation was cancelled, typically by the caller. - // - // HTTP Mapping: 499 Client Closed Request - CANCELLED = 1; - - // Unknown error. For example, this error may be returned when - // a `Status` value received from another address space belongs to - // an error space that is not known in this address space. Also - // errors raised by APIs that do not return enough error information - // may be converted to this error. - // - // HTTP Mapping: 500 Internal Server Error - UNKNOWN = 2; - - // The client specified an invalid argument. Note that this differs - // from `FAILED_PRECONDITION`. `INVALID_ARGUMENT` indicates arguments - // that are problematic regardless of the state of the system - // (e.g., a malformed file name). - // - // HTTP Mapping: 400 Bad Request - INVALID_ARGUMENT = 3; - - // The deadline expired before the operation could complete. For operations - // that change the state of the system, this error may be returned - // even if the operation has completed successfully. For example, a - // successful response from a server could have been delayed long - // enough for the deadline to expire. - // - // HTTP Mapping: 504 Gateway Timeout - DEADLINE_EXCEEDED = 4; - - // Some requested entity (e.g., file or directory) was not found. - // - // Note to server developers: if a request is denied for an entire class - // of users, such as gradual feature rollout or undocumented whitelist, - // `NOT_FOUND` may be used. If a request is denied for some users within - // a class of users, such as user-based access control, `PERMISSION_DENIED` - // must be used. - // - // HTTP Mapping: 404 Not Found - NOT_FOUND = 5; - - // The entity that a client attempted to create (e.g., file or directory) - // already exists. - // - // HTTP Mapping: 409 Conflict - ALREADY_EXISTS = 6; - - // The caller does not have permission to execute the specified - // operation. `PERMISSION_DENIED` must not be used for rejections - // caused by exhausting some resource (use `RESOURCE_EXHAUSTED` - // instead for those errors). `PERMISSION_DENIED` must not be - // used if the caller can not be identified (use `UNAUTHENTICATED` - // instead for those errors). This error code does not imply the - // request is valid or the requested entity exists or satisfies - // other pre-conditions. - // - // HTTP Mapping: 403 Forbidden - PERMISSION_DENIED = 7; - - // The request does not have valid authentication credentials for the - // operation. - // - // HTTP Mapping: 401 Unauthorized - UNAUTHENTICATED = 16; - - // Some resource has been exhausted, perhaps a per-user quota, or - // perhaps the entire file system is out of space. - // - // HTTP Mapping: 429 Too Many Requests - RESOURCE_EXHAUSTED = 8; - - // The operation was rejected because the system is not in a state - // required for the operation's execution. For example, the directory - // to be deleted is non-empty, an rmdir operation is applied to - // a non-directory, etc. - // - // Service implementors can use the following guidelines to decide - // between `FAILED_PRECONDITION`, `ABORTED`, and `UNAVAILABLE`: - // (a) Use `UNAVAILABLE` if the client can retry just the failing call. - // (b) Use `ABORTED` if the client should retry at a higher level - // (e.g., when a client-specified test-and-set fails, indicating the - // client should restart a read-modify-write sequence). - // (c) Use `FAILED_PRECONDITION` if the client should not retry until - // the system state has been explicitly fixed. E.g., if an "rmdir" - // fails because the directory is non-empty, `FAILED_PRECONDITION` - // should be returned since the client should not retry unless - // the files are deleted from the directory. - // - // HTTP Mapping: 400 Bad Request - FAILED_PRECONDITION = 9; - - // The operation was aborted, typically due to a concurrency issue such as - // a sequencer check failure or transaction abort. - // - // See the guidelines above for deciding between `FAILED_PRECONDITION`, - // `ABORTED`, and `UNAVAILABLE`. - // - // HTTP Mapping: 409 Conflict - ABORTED = 10; - - // The operation was attempted past the valid range. E.g., seeking or - // reading past end-of-file. - // - // Unlike `INVALID_ARGUMENT`, this error indicates a problem that may - // be fixed if the system state changes. For example, a 32-bit file - // system will generate `INVALID_ARGUMENT` if asked to read at an - // offset that is not in the range [0,2^32-1], but it will generate - // `OUT_OF_RANGE` if asked to read from an offset past the current - // file size. - // - // There is a fair bit of overlap between `FAILED_PRECONDITION` and - // `OUT_OF_RANGE`. We recommend using `OUT_OF_RANGE` (the more specific - // error) when it applies so that callers who are iterating through - // a space can easily look for an `OUT_OF_RANGE` error to detect when - // they are done. - // - // HTTP Mapping: 400 Bad Request - OUT_OF_RANGE = 11; - - // The operation is not implemented or is not supported/enabled in this - // service. - // - // HTTP Mapping: 501 Not Implemented - UNIMPLEMENTED = 12; - - // Internal errors. This means that some invariants expected by the - // underlying system have been broken. This error code is reserved - // for serious errors. - // - // HTTP Mapping: 500 Internal Server Error - INTERNAL = 13; - - // The service is currently unavailable. This is most likely a - // transient condition, which can be corrected by retrying with - // a backoff. - // - // See the guidelines above for deciding between `FAILED_PRECONDITION`, - // `ABORTED`, and `UNAVAILABLE`. - // - // HTTP Mapping: 503 Service Unavailable - UNAVAILABLE = 14; - - // Unrecoverable data loss or corruption. - // - // HTTP Mapping: 500 Internal Server Error - DATA_LOSS = 15; -} diff --git a/ansys/api/discovery/google/rpc/error_details.proto b/ansys/api/discovery/google/rpc/error_details.proto deleted file mode 100644 index f24ae00..0000000 --- a/ansys/api/discovery/google/rpc/error_details.proto +++ /dev/null @@ -1,200 +0,0 @@ -// Copyright 2017 Google Inc. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.rpc; - -import "google/protobuf/duration.proto"; - -option go_package = "google.golang.org/genproto/googleapis/rpc/errdetails;errdetails"; -option java_multiple_files = true; -option java_outer_classname = "ErrorDetailsProto"; -option java_package = "com.google.rpc"; -option objc_class_prefix = "RPC"; - - -// Describes when the clients can retry a failed request. Clients could ignore -// the recommendation here or retry when this information is missing from error -// responses. -// -// It's always recommended that clients should use exponential backoff when -// retrying. -// -// Clients should wait until `retry_delay` amount of time has passed since -// receiving the error response before retrying. If retrying requests also -// fail, clients should use an exponential backoff scheme to gradually increase -// the delay between retries based on `retry_delay`, until either a maximum -// number of retires have been reached or a maximum retry delay cap has been -// reached. -message RetryInfo { - // Clients should wait at least this long between retrying the same request. - google.protobuf.Duration retry_delay = 1; -} - -// Describes additional debugging info. -message DebugInfo { - // The stack trace entries indicating where the error occurred. - repeated string stack_entries = 1; - - // Additional debugging information provided by the server. - string detail = 2; -} - -// Describes how a quota check failed. -// -// For example if a daily limit was exceeded for the calling project, -// a service could respond with a QuotaFailure detail containing the project -// id and the description of the quota limit that was exceeded. If the -// calling project hasn't enabled the service in the developer console, then -// a service could respond with the project id and set `service_disabled` -// to true. -// -// Also see RetryDetail and Help types for other details about handling a -// quota failure. -message QuotaFailure { - // A message type used to describe a single quota violation. For example, a - // daily quota or a custom quota that was exceeded. - message Violation { - // The subject on which the quota check failed. - // For example, "clientip:" or "project:". - string subject = 1; - - // A description of how the quota check failed. Clients can use this - // description to find more about the quota configuration in the service's - // public documentation, or find the relevant quota limit to adjust through - // developer console. - // - // For example: "Service disabled" or "Daily Limit for read operations - // exceeded". - string description = 2; - } - - // Describes all quota violations. - repeated Violation violations = 1; -} - -// Describes what preconditions have failed. -// -// For example, if an RPC failed because it required the Terms of Service to be -// acknowledged, it could list the terms of service violation in the -// PreconditionFailure message. -message PreconditionFailure { - // A message type used to describe a single precondition failure. - message Violation { - // The type of PreconditionFailure. We recommend using a service-specific - // enum type to define the supported precondition violation types. For - // example, "TOS" for "Terms of Service violation". - string type = 1; - - // The subject, relative to the type, that failed. - // For example, "google.com/cloud" relative to the "TOS" type would - // indicate which terms of service is being referenced. - string subject = 2; - - // A description of how the precondition failed. Developers can use this - // description to understand how to fix the failure. - // - // For example: "Terms of service not accepted". - string description = 3; - } - - // Describes all precondition violations. - repeated Violation violations = 1; -} - -// Describes violations in a client request. This error type focuses on the -// syntactic aspects of the request. -message BadRequest { - // A message type used to describe a single bad request field. - message FieldViolation { - // A path leading to a field in the request body. The value will be a - // sequence of dot-separated identifiers that identify a protocol buffer - // field. E.g., "field_violations.field" would identify this field. - string field = 1; - - // A description of why the request element is bad. - string description = 2; - } - - // Describes all violations in a client request. - repeated FieldViolation field_violations = 1; -} - -// Contains metadata about the request that clients can attach when filing a bug -// or providing other forms of feedback. -message RequestInfo { - // An opaque string that should only be interpreted by the service generating - // it. For example, it can be used to identify requests in the service's logs. - string request_id = 1; - - // Any data that was used to serve this request. For example, an encrypted - // stack trace that can be sent back to the service provider for debugging. - string serving_data = 2; -} - -// Describes the resource that is being accessed. -message ResourceInfo { - // A name for the type of resource being accessed, e.g. "sql table", - // "cloud storage bucket", "file", "Google calendar"; or the type URL - // of the resource: e.g. "type.googleapis.com/google.pubsub.v1.Topic". - string resource_type = 1; - - // The name of the resource being accessed. For example, a shared calendar - // name: "example.com_4fghdhgsrgh@group.calendar.google.com", if the current - // error is [google.rpc.Code.PERMISSION_DENIED][google.rpc.Code.PERMISSION_DENIED]. - string resource_name = 2; - - // The owner of the resource (optional). - // For example, "user:" or "project:". - string owner = 3; - - // Describes what error is encountered when accessing this resource. - // For example, updating a cloud project may require the `writer` permission - // on the developer console project. - string description = 4; -} - -// Provides links to documentation or for performing an out of band action. -// -// For example, if a quota check failed with an error indicating the calling -// project hasn't enabled the accessed service, this can contain a URL pointing -// directly to the right place in the developer console to flip the bit. -message Help { - // Describes a URL link. - message Link { - // Describes what the link offers. - string description = 1; - - // The URL of the link. - string url = 2; - } - - // URL(s) pointing to additional information on handling the current error. - repeated Link links = 1; -} - -// Provides a localized error message that is safe to return to the user -// which can be attached to an RPC error. -message LocalizedMessage { - // The locale used following the specification defined at - // http://www.rfc-editor.org/rfc/bcp/bcp47.txt. - // Examples are: "en-US", "fr-CH", "es-MX" - string locale = 1; - - // The localized error message in the above locale. - string message = 2; -} diff --git a/ansys/api/discovery/google/rpc/status.proto b/ansys/api/discovery/google/rpc/status.proto deleted file mode 100644 index 0839ee9..0000000 --- a/ansys/api/discovery/google/rpc/status.proto +++ /dev/null @@ -1,92 +0,0 @@ -// Copyright 2017 Google Inc. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.rpc; - -import "google/protobuf/any.proto"; - -option go_package = "google.golang.org/genproto/googleapis/rpc/status;status"; -option java_multiple_files = true; -option java_outer_classname = "StatusProto"; -option java_package = "com.google.rpc"; -option objc_class_prefix = "RPC"; - - -// The `Status` type defines a logical error model that is suitable for different -// programming environments, including REST APIs and RPC APIs. It is used by -// [gRPC](https://github.com/grpc). The error model is designed to be: -// -// - Simple to use and understand for most users -// - Flexible enough to meet unexpected needs -// -// # Overview -// -// The `Status` message contains three pieces of data: error code, error message, -// and error details. The error code should be an enum value of -// [google.rpc.Code][google.rpc.Code], but it may accept additional error codes if needed. The -// error message should be a developer-facing English message that helps -// developers *understand* and *resolve* the error. If a localized user-facing -// error message is needed, put the localized message in the error details or -// localize it in the client. The optional error details may contain arbitrary -// information about the error. There is a predefined set of error detail types -// in the package `google.rpc` that can be used for common error conditions. -// -// # Language mapping -// -// The `Status` message is the logical representation of the error model, but it -// is not necessarily the actual wire format. When the `Status` message is -// exposed in different client libraries and different wire protocols, it can be -// mapped differently. For example, it will likely be mapped to some exceptions -// in Java, but more likely mapped to some error codes in C. -// -// # Other uses -// -// The error model and the `Status` message can be used in a variety of -// environments, either with or without APIs, to provide a -// consistent developer experience across different environments. -// -// Example uses of this error model include: -// -// - Partial errors. If a service needs to return partial errors to the client, -// it may embed the `Status` in the normal response to indicate the partial -// errors. -// -// - Workflow errors. A typical workflow has multiple steps. Each step may -// have a `Status` message for error reporting. -// -// - Batch operations. If a client uses batch request and batch response, the -// `Status` message should be used directly inside batch response, one for -// each error sub-response. -// -// - Asynchronous operations. If an API call embeds asynchronous operation -// results in its response, the status of those operations should be -// represented directly using the `Status` message. -// -// - Logging. If some API errors are stored in logs, the message `Status` could -// be used directly after any stripping needed for security/privacy reasons. -message Status { - // The status code, which should be an enum value of [google.rpc.Code][google.rpc.Code]. - int32 code = 1; - - // A developer-facing error message, which should be in English. Any - // user-facing error message should be localized and sent in the - // [google.rpc.Status.details][google.rpc.Status.details] field, or localized by the client. - string message = 2; - - // A list of messages that carry the error details. There is a common set of - // message types for APIs to use. - repeated google.protobuf.Any details = 3; -} diff --git a/ansys/api/discovery/v1/admin.proto b/ansys/api/discovery/v1/admin.proto deleted file mode 100644 index fa7ab1f..0000000 --- a/ansys/api/discovery/v1/admin.proto +++ /dev/null @@ -1,83 +0,0 @@ -// Copyright 2022, ANSYS Inc. Unauthorized use, distribution or duplication is prohibited. -syntax = "proto3"; -package ansys.api.discovery.v1; -import "ansys/api/discovery/google/api/httpbody.proto"; -import "google/protobuf/struct.proto"; -import "google/protobuf/timestamp.proto"; -option csharp_namespace = "Ansys.Api.Discovery.V1"; -option go_package = "ansys/api/discovery/v1"; - -service Admin{ - - rpc GetLogs(LogsRequest) returns(stream LogsResponse); - - // Gets the health of the service. - rpc Health(HealthRequest) returns(HealthResponse); - - // Shuts down the underlying gRPC server. - rpc Shutdown(ShutdownRequest) returns(ShutdownResponse); - - // Gets a status page suitable for a browser. - rpc Status(StatusRequest) returns(google.api.HttpBody); - - // Gets basic status information. - rpc StatusInfo(StatusInfoRequest) returns(StatusInfoResponse); -} - -enum LogsTarget{ - CLIENT = 0; - PATH = 1; -} - -enum PeriodType{ - CURRENT = 0; - PAST = 1; - ALL = 2; -} - -message LogsRequest{ - - LogsTarget target = 1; - oneof path{ - google.protobuf.NullValue null_path = 2; - string target_path =3; - } - - PeriodType period_type = 4; - - oneof period { - google.protobuf.NullValue null_period = 5; - google.protobuf.Timestamp logs_period = 6; - } -} - -message LogsResponse{ - string relative_path = 1; - string log_name = 2; - bytes log_chunk = 3; -} - -message HealthRequest{ -} - -message HealthResponse{ - string message = 1; -} - -message ShutdownRequest{ -} - -message ShutdownResponse{ -} - -message StatusRequest{ -} - -message StatusInfoRequest{ -} - -message StatusInfoResponse{ - string touch_time = 1 [json_name = "touch_time"]; - string application_version = 2 [json_name = "application_version"]; - string embedded_api_version = 3 [json_name = "embedded_api_version"]; -} diff --git a/ansys/api/discovery/v1/api.proto b/ansys/api/discovery/v1/api.proto deleted file mode 100644 index 89bfeb9..0000000 --- a/ansys/api/discovery/v1/api.proto +++ /dev/null @@ -1,37 +0,0 @@ -// Copyright 2022, ANSYS Inc. Unauthorized use, distribution or duplication is prohibited. -syntax = "proto3"; -package ansys.api.discovery.v1; -option csharp_namespace = "Ansys.Api.Discovery.V1"; -option go_package = "ansys/api/discovery/v1"; - -// Api -// -service Api{ - // Sets the current scripting version. - rpc SetVersion(SetVersionRequest) returns(SetVersionResponse) ; - - // Sets the current scripting version. - rpc GetVersion(GetVersionRequest) returns(GetVersionResponse) ; -} - -message GetVersionRequest{ -} - -message GetVersionResponse{ - string result = 1; -} - -message SetVersionRequest{ - // The set api operation being requested. - ApiVersion version = 1; -} - -message SetVersionResponse{ - string result = 1; -} - -enum ApiVersion { - V_21 = 0; - V_22 = 1; - V_23 = 2; -} diff --git a/ansys/api/discovery/v1/application.proto b/ansys/api/discovery/v1/application.proto deleted file mode 100644 index 2edbfc5..0000000 --- a/ansys/api/discovery/v1/application.proto +++ /dev/null @@ -1,53 +0,0 @@ -// Copyright 2022, ANSYS Inc. Unauthorized use, distribution or duplication is prohibited. -syntax = "proto3"; -package ansys.api.discovery.v1; - -import "ansys/api/discovery/v1/streaming.proto"; - -option csharp_namespace = "Ansys.Api.Discovery.V1"; -option go_package = "ansys/api/discovery/v1"; - - -service Application { - - // Runs a script based on a file. - rpc RunScriptFile(RunScriptFileRequest) returns(stream StreamPackage); - - // Runs a script based on a supplied string. - rpc RunScript(RunScriptRequest) returns(RunScriptResponse); - - // Runs a command. A command can be exposed by Addin. - rpc RunCommand(RunCommandRequest) returns(RunCommandResponse); -} - -message RunScriptFileRequest{ - // Local path to the script to execute. - string script_path = 1 [json_name = "script_path"]; - // map of argument names to values. - map script_args = 2 [json_name = "script_args"]; - // The api version to be used to run the script - int32 api_version = 3; -} - -message RunScriptRequest{ - // Script source to execute. - string script = 1; - // The api version to be used to run the script - int32 api_version = 2; -} -message RunScriptResponse{ - // Result of script execution. True means script executed successfully. - bool script_result = 1 [json_name = "script_result"]; -} - -message RunCommandRequest{ - // Command to execute. - string command = 1; - // Data to pass to command. - string data = 2; -} - -message RunCommandResponse{ - // Data returned from command. - string data = 1; -} diff --git a/ansys/api/discovery/v1/commands.proto b/ansys/api/discovery/v1/commands.proto deleted file mode 100644 index a9dde72..0000000 --- a/ansys/api/discovery/v1/commands.proto +++ /dev/null @@ -1,66 +0,0 @@ -// Copyright 2022, ANSYS Inc. Unauthorized use, distribution or duplication is prohibited. -syntax = "proto3"; -package ansys.api.discovery.v1; -import "ansys/api/discovery/v1/models.proto"; -option csharp_namespace = "Ansys.Api.Discovery.V1"; -option go_package = "ansys/api/discovery/v1"; - -service Commands{ - // Rename many objects command. - rpc RenameMany(RenameManyRequest) returns (RenameManyResponse); - // Rename single object command. - rpc Rename(RenameRequest) returns (RenameResponse); -} - -message RenameManyRequest{ - map monikers_updates = 1; -} - -message RenameManyResponse{ - map results = 1; -} - -message SingleRenamedObject{ - string new_name = 1; - EntityType type = 2; -} - -message RenameRequest{ - string moniker = 1; - EntityType type = 2; - string new_name = 3; -} - -message RenameResponse{ - string result = 1; -} - -message DeleteRequest{ - // The object's monikers - repeated string monikers = 1; -} - -message DeleteResponse{ - // The delete operation result - string result = 1; -} - -message SuppressRequest{ - // The object's monikers - repeated string monikers = 1; -} - -message SuppressResponse{ - // The suppress operation result - string result = 1; -} - -message UnsuppressRequest{ - // The object's monikers - repeated string monikers = 1; -} - -message UnsuppressResponse{ - // The unsuppress operation result - string result = 1; -} diff --git a/ansys/api/discovery/v1/components.proto b/ansys/api/discovery/v1/components.proto deleted file mode 100644 index e53ae93..0000000 --- a/ansys/api/discovery/v1/components.proto +++ /dev/null @@ -1,32 +0,0 @@ -// Copyright 2022, ANSYS Inc. Unauthorized use, distribution or duplication is prohibited. -syntax = "proto3"; -package ansys.api.discovery.v1; -import "ansys/api/discovery/v1/models.proto"; -option csharp_namespace = "Ansys.Api.Discovery.V1"; -option go_package = "ansys/api/discovery/v1"; - -service Components{ - // Gets a component. - rpc GetComponent(GetComponentRequest) returns(Component); - - // Lists all components. - rpc ListComponents(ListComponentsRequest) returns(ListComponentsResponse) ; -} - -message ListComponentsRequest{ - // The parent, which can be empty or "parts/{moniker}" or "components/{moniker}". - string parent = 1; - ComponentView view = 2; - // The filter expression. - string filter = 3; -} - -message ListComponentsResponse{ - // The components on this page. - repeated Component components = 1; -} - -message GetComponentRequest{ - // The moniker. - string moniker = 1; -} diff --git a/ansys/api/discovery/v1/coordinatesystems.proto b/ansys/api/discovery/v1/coordinatesystems.proto deleted file mode 100644 index c4eea0b..0000000 --- a/ansys/api/discovery/v1/coordinatesystems.proto +++ /dev/null @@ -1,49 +0,0 @@ -// Copyright 2022, ANSYS Inc. Unauthorized use, distribution or duplication is prohibited. -syntax = "proto3"; -package ansys.api.discovery.v1; -import "ansys/api/discovery/v1/models.proto"; -option csharp_namespace = "Ansys.Api.Discovery.V1"; -option go_package = "ansys/api/discovery/v1"; - -service CoordinateSystems{ - - // Gets a coordinate system. - rpc GetCoordinateSystem(GetCoordinateSystemRequest) returns(CoordinateSystem); - - // Lists all coordinate systems. - rpc ListCoordinateSystems(ListCoordinateSystemsRequest) returns(ListCoordinateSystemsResponse) ; - - // Creates a coordinate system. - rpc CreateCoordinateSystem(CreateCoordinateSystemRequest) returns(CoordinateSystem); -} - -message GetCoordinateSystemRequest{ - // The moniker of the coordinate system to return. - string moniker = 1; -} - -message ListCoordinateSystemsRequest{ - // The parent, which can be empty , "parts/{moniker}" or "namedselections/{moniker}". - string parent = 1; - // The view. - CoordinateSystemView view = 2; - // The filter. - string filter=3; -} - -message ListCoordinateSystemsResponse{ - // The coordinate systems on this page. - repeated CoordinateSystem coordinate_systems = 1 [json_name = "coordinate_systems"]; -} - -message CreateCoordinateSystemRequest{ - // The parent where the coordinate system is to be created which can be empty or "parts/{moniker}". - string parent = 1; - // The coordinate system to create. - CoordinateSystem coordinate_system = 2 [json_name = "coordinate_system"]; -} - -message CreateCoordinateSystemResponse{ - // The created coordinate system. - CoordinateSystem coordinate_system=1 [json_name = "coordinate_system"]; -} diff --git a/ansys/api/discovery/v1/definedvariationstable.proto b/ansys/api/discovery/v1/definedvariationstable.proto deleted file mode 100644 index 0b13653..0000000 --- a/ansys/api/discovery/v1/definedvariationstable.proto +++ /dev/null @@ -1,180 +0,0 @@ -// Copyright 2022, ANSYS Inc. Unauthorized use, distribution or duplication is prohibited. -syntax = "proto3"; -package ansys.api.discovery.v1; -import "ansys/api/discovery/v1/models.proto"; -option csharp_namespace = "Ansys.Api.Discovery.V1"; -option go_package = "ansys/api/discovery/v1"; - -// Defined variation table definition. -// -service DefinedVariationsTable{ - // Gets a whole row from the defined variations table - // - rpc GetVariation(GetVariationRequest) returns(Variation); - - // Get all the variations (i.e get all the table as rows list) - // - rpc ListVariations(ListVariationsRequest) returns(ListVariationsResponse); - - // Get all the inputs. - // - rpc ListInputs(ListInputsRequest) returns(ListInputsResponse); - - // Get all the outputs. - // - rpc ListOutputs(ListOutputsRequest) returns(ListOutputsResponse); - - // Get an input variation table's cell - // - rpc GetInputParameterForVariation(GetInputParameterForVariationRequest) returns(InputParameter) ; - - // Set an input parameter - // - rpc SetInputValue(SetInputValueRequest) returns(InputParameter) ; - - // Create variation - // - rpc CreateVariation(CreateVariationRequest) returns(CreateVariationResponse); - - // Get an output variation table's cell - // - rpc GetOutputParameterForVariation(GetOutputParameterForVariationRequest) returns(OutputParameter); - - // Get a variation input table's column - // - rpc GetInputColumn(GetInputColumnRequest) returns(GetInputColumnResponse); - - // Get a variation output table's column - // - rpc GetOutputColumn(GetOutputColumnRequest) returns(GetOutputColumnResponse); - - // Set a star status for a variations list. - // - rpc SetStarredStatus(SetStarredStatusRequest) returns(SetStarredStatusResponse) ; - - // Updates outputs for current variation - // - rpc UpdateCurrent(UpdateCurrentRequest) returns(UpdateCurrentResponse); - - // Updates outputs for starred variations - // - rpc UpdateStarred(UpdateStarredRequest) returns(UpdateStarredResponse); - - // Updates outputs for current variation - // - rpc UpdateAll(UpdateAllRequest) returns(UpdateAllResponse) ; -} - -message GetVariationRequest{ - // The moniker to access the variation. - string moniker = 1; -} - -message ListVariationsRequest{ -} - -message ListVariationsResponse{ - // The variations on this page. - repeated Variation defined_variations = 1 ; -} - -message ListInputsRequest{; -} - -message ListInputsResponse{ - // The inputs on this page. - repeated InputColumn inputs = 1 ; -} - -message ListOutputsRequest{ -} - -message ListOutputsResponse{ - // The outputs on this page. - repeated OutputColumn outputs = 1 ; -} - -message GetInputParameterForVariationRequest{ - // The variation's moniker. - string variation_moniker = 1 [json_name = "variation_moniker"]; - // The parameter' moniker. - string input_parameter_moniker = 2 [json_name = "input_parameter_moniker"]; -} - -message SetInputValueRequest{ - // The variation's moniker. - string variation_moniker = 1 [json_name = "variation_moniker"]; - // The input parameter. - InputParameter defined_variation_table_input = 2 [json_name = "defined_variation_table_input"]; -} - -message GetOutputParameterForVariationRequest{ - // The variation's moniker. - string variation_moniker = 1 [json_name = "variation_moniker"]; - // The parameter' moniker. - string output_parameter_moniker = 2 [json_name = "output_parameter_moniker"]; -} - -message GetInputColumnRequest{ - // The parameter' moniker. - string input_parameter_moniker = 1; -} - -message GetInputColumnResponse{ - // The parameter's variations column. - InputColumn column = 1; -} - -message GetOutputColumnRequest{ - // The parameter' moniker. - string output_parameter_moniker = 1; -} - -message GetOutputColumnResponse{ - // The parameter's variations column. - OutputColumn column = 1; -} - -message SetStarredStatusRequest{ - // The variations monikers. - repeated string variations_monikers = 1; - // The starred status - bool starred = 2; -} - -message CreateVariationRequest{ - string name= 1; -} - -message CreateVariationResponse{ - string result = 1; -} - -message SetStarredStatusResponse{ -} - -///UPDATES -// -message UpdateCurrentRequest{ -} - -message UpdateCurrentResponse{ - // The result - bool result = 1; -} - -message UpdateStarredRequest{ -} - -message UpdateStarredResponse{ - // The result - bool result = 1; -} - -message UpdateAllRequest{ -} - -message UpdateAllResponse{ - // The result - bool result = 1; -} diff --git a/ansys/api/discovery/v1/designbodies.proto b/ansys/api/discovery/v1/designbodies.proto deleted file mode 100644 index f81699c..0000000 --- a/ansys/api/discovery/v1/designbodies.proto +++ /dev/null @@ -1,48 +0,0 @@ -// Copyright 2022, ANSYS Inc. Unauthorized use, distribution or duplication is prohibited. -syntax = "proto3"; -package ansys.api.discovery.v1; -import "ansys/api/discovery/v1/models.proto"; -option csharp_namespace = "Ansys.Api.Discovery.V1"; -option go_package = "ansys/api/discovery/v1"; - -service DesignBodies -{ - // Gets a design body. - rpc GetDesignBody(GetDesignBodyRequest) returns(DesignBody); - - // Gets the design body master. - rpc GetDesignBodyMaster(GetDesignBodyRequest) returns(DesignBody); - - // Gets the design body original. - rpc GetDesignBodyOriginal(GetDesignBodyRequest) returns(DesignBody); - - // Gets the design body parent (which is always a part). - rpc GetDesignBodyParent(GetDesignBodyRequest) returns(Part); - - // Lists all design bodies. - rpc ListDesignBodies(ListDesignBodiesRequest) returns(ListDesignBodiesResponse) ; -} - -enum GetBodyType{ - NONE = 0; - MASTER = 1; - ORIGINAL = 2; - PARENT=3; -} - -message GetDesignBodyRequest{ - // The moniker for the item being requested. - string moniker = 1; - // The kind of body - GetBodyType body_type = 2; -} - -message ListDesignBodiesRequest{ - // The parent, which can be empty or "parts/{moniker}" or "components/{moniker}". - string parent = 1; -} - -message ListDesignBodiesResponse{ - // The bodies on this page. - repeated DesignBody design_bodies = 1 [json_name = "design_bodies"]; -} diff --git a/ansys/api/discovery/v1/designcurves.proto b/ansys/api/discovery/v1/designcurves.proto deleted file mode 100644 index 199ada5..0000000 --- a/ansys/api/discovery/v1/designcurves.proto +++ /dev/null @@ -1,28 +0,0 @@ -// Copyright 2022, ANSYS Inc. Unauthorized use, distribution or duplication is prohibited. -syntax = "proto3"; -package ansys.api.discovery.v1; -import "ansys/api/discovery/v1/models.proto"; -option csharp_namespace = "Ansys.Api.Discovery.V1"; -option go_package = "ansys/api/discovery/v1"; - -service DesignCurves{ - // Gets a design curve. - rpc GetDesignCurve(GetDesignCurveRequest) returns(DesignCurve) ; - // Lists all design curves. - rpc ListDesignCurves(ListDesignCurvesRequest) returns(ListDesignCurvesResponse) ; -} - -message GetDesignCurveRequest{ - // The mniker for the item being requested. - string moniker = 1; -} - -message ListDesignCurvesRequest{ - // The parent. - string parent = 1; -} - -message ListDesignCurvesResponse{ - // The curves on this page. - repeated DesignCurve design_curves = 1; -} \ No newline at end of file diff --git a/ansys/api/discovery/v1/designedges.proto b/ansys/api/discovery/v1/designedges.proto deleted file mode 100644 index 5c641f7..0000000 --- a/ansys/api/discovery/v1/designedges.proto +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright 2022, ANSYS Inc. Unauthorized use, distribution or duplication is prohibited. -syntax = "proto3"; -package ansys.api.discovery.v1; -import "ansys/api/discovery/v1/models.proto"; -option csharp_namespace = "Ansys.Api.Discovery.V1"; -option go_package = "ansys/api/discovery/v1"; - -service DesignEdges{ - // Gets a design edge. - rpc GetDesignEdge(GetDesignEdgeRequest) returns(DesignEdge); - - // Lists all design edges. - rpc ListDesignEdges(ListDesignEdgesRequest) returns(ListDesignEdgesResponse); -} - -message GetDesignEdgeRequest{ - // The mniker for the item being requested. - string moniker = 1; -} - -message ListDesignEdgesRequest{ - // The parent, which can be empty, or "designbodies/{moniker}" or "designfaces/{moniker} or "parts/{moniker}". - string parent = 1; -} - -message ListDesignEdgesResponse{ - // The edges on this page. - repeated DesignEdge design_edges = 1 [json_name = "design_edges"]; -} diff --git a/ansys/api/discovery/v1/designfaces.proto b/ansys/api/discovery/v1/designfaces.proto deleted file mode 100644 index 1b9143a..0000000 --- a/ansys/api/discovery/v1/designfaces.proto +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright 2022, ANSYS Inc. Unauthorized use, distribution or duplication is prohibited. -syntax = "proto3"; -package ansys.api.discovery.v1; -import "ansys/api/discovery/v1/models.proto"; -option csharp_namespace = "Ansys.Api.Discovery.V1"; -option go_package = "ansys/api/discovery/v1"; - -service DesignFaces{ - // Gets a design face. - rpc GetDesignFace(GetDesignFaceRequest) returns(DesignFace); - - // Lists all design faces. - rpc ListDesignFaces(ListDesignFacesRequest) returns(ListDesignFacesResponse); -} - -message GetDesignFaceRequest{ - // The moniker for the item being requested. - string moniker = 1; -} - -message ListDesignFacesRequest{ - // The parent, which can be empty or "designbodies/{moniker}" or "parts/{moniker}". - string parent = 1; -} - -message ListDesignFacesResponse{ - // The faces on this page. - repeated DesignFace design_faces = 1 [json_name="design_faces"]; -} diff --git a/ansys/api/discovery/v1/designmeshes.proto b/ansys/api/discovery/v1/designmeshes.proto deleted file mode 100644 index 260b4db..0000000 --- a/ansys/api/discovery/v1/designmeshes.proto +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright 2022, ANSYS Inc. Unauthorized use, distribution or duplication is prohibited. -syntax = "proto3"; -package ansys.api.discovery.v1; -import "ansys/api/discovery/v1/models.proto"; -option csharp_namespace = "Ansys.Api.Discovery.V1"; -option go_package = "ansys/api/discovery/v1"; - -service DesignMeshes{ - // Gets a design mesh. - rpc GetDesignMesh(GetDesignMeshRequest) returns(DesignMesh); - - // Lists all design meshes. - rpc ListDesignMeshes(ListDesignMeshesRequest) returns(ListDesignMeshesResponse); - -} - -message GetDesignMeshRequest{ - // The moniker for the item being requested. - string moniker = 1; -} - -message ListDesignMeshesRequest{ - // The parent, which can be empty or "designbodies/{moniker}" or "parts/{moniker}". - string parent = 1; -} -message ListDesignMeshesResponse{ - // The faces on this page. - repeated DesignMesh design_meshes = 1 [json_name="design_meshes"]; -} \ No newline at end of file diff --git a/ansys/api/discovery/v1/documents.proto b/ansys/api/discovery/v1/documents.proto deleted file mode 100644 index 8731997..0000000 --- a/ansys/api/discovery/v1/documents.proto +++ /dev/null @@ -1,112 +0,0 @@ -// Copyright 2022, ANSYS Inc. Unauthorized use, distribution or duplication is prohibited. -syntax = "proto3"; -package ansys.api.discovery.v1; -import "ansys/api/discovery/v1/models.proto"; -option csharp_namespace = "Ansys.Api.Discovery.V1"; -option go_package = "ansys/api/discovery/v1"; - -service Documents{ - // Gets the document with the specified main part moniker. The document must have been previously loaded using 'Open'. - rpc GetDocument(GetDocumentRequest) returns(Document); - - // Lists all documents. - rpc ListDocuments(ListDocumentsRequest) returns(ListDocumentsResponse) ; - - // Gets the active document (based on the active window). - rpc GetActive(GetActiveDocumentRequest) returns(GetActiveDocumentResponse) ; - - // Puts the active document (sets the active window). - rpc PutActive(PutActiveDocumentRequest) returns(PutActiveDocumentResponse); - - // Opens a document using the supplied file path. - rpc Open(OpenDocumentRequest) returns(OpenDocumentResponse); - - // Creates a new document. - rpc New(NewDocumentRequest) returns(NewDocumentResponse) ; - - // Closes the active document. - rpc Close(CloseDocumentRequest) returns(CloseDocumentResponse); - - // Saves the active document. - rpc Save(SaveDocumentRequest) returns(SaveDocumentResponse) ; - - // Saves the active document using the supplied file path. - rpc SaveAs(SaveAsDocumentRequest) returns(SaveAsDocumentResponse); - - // Inserts a document into the currently active document. - rpc Insert(InsertDocumentRequest) returns(InsertDocumentResponse); -} - -message GetDocumentRequest{ - // The moniker for the item being requested. - string moniker = 1; -} - -message ListDocumentsRequest{ - // The location. - string parent = 1; -} - -message ListDocumentsResponse{ - // The documents on this page. - repeated Document documents = 1; -} - -message GetActiveDocumentRequest{ -} - -message GetActiveDocumentResponse{ - Document document = 1; -} - -message PutActiveDocumentRequest{ - string moniker = 1; -} - -message PutActiveDocumentResponse{ -} - -message NewDocumentRequest{ -} - -message NewDocumentResponse{ - string moniker = 1; -} - -message OpenDocumentRequest{ - string filepath = 1; -} - -message OpenDocumentResponse{ - string moniker = 1; -} - -message CloseDocumentRequest{ - string moniker = 1; -} - -message CloseDocumentResponse{ -} - -message SaveDocumentRequest{ - string moniker = 1; -} - -message SaveDocumentResponse{ -} - -message SaveAsDocumentRequest{ - string filepath = 1; -} - -message SaveAsDocumentResponse{ - string moniker = 1; -} - -message InsertDocumentRequest{ - string filepath = 1; -} - -message InsertDocumentResponse{ - string moniker = 1; -} diff --git a/ansys/api/discovery/v1/drivingdimensions.proto b/ansys/api/discovery/v1/drivingdimensions.proto deleted file mode 100644 index 29dc02f..0000000 --- a/ansys/api/discovery/v1/drivingdimensions.proto +++ /dev/null @@ -1,37 +0,0 @@ -// Copyright 2022, ANSYS Inc. Unauthorized use, distribution or duplication is prohibited. -syntax = "proto3"; -package ansys.api.discovery.v1; -import "ansys/api/discovery/v1/models.proto"; -option csharp_namespace = "Ansys.Api.Discovery.V1"; -option go_package = "ansys/api/discovery/v1"; - -service DrivingDimensions{ - // Gets a driving dimension. - rpc GetDrivingDimension(GetDrivingDimensionRequest) returns(DrivingDimension); - - // Lists all driving dimensions. - rpc ListDrivingDimensions(ListDrivingDimensionsRequest) returns(ListDrivingDimensionsResponse); - - // Upates a driving dimension. - rpc UpdateDrivingDimension(UpdateDrivingDimensionRequest) returns(DrivingDimension); -} - -message GetDrivingDimensionRequest{ - // The moniker to access the dimension. - string moniker = 1; -} - -message ListDrivingDimensionsRequest{ - // The parent, which must be empty. - string parent = 1; -} - -message ListDrivingDimensionsResponse{ - // The driving dimensions on this page. - repeated DrivingDimension driving_dimensions = 1 [json_name = "driving_dimensions"]; -} - -message UpdateDrivingDimensionRequest{ - // The driving dimension to update. - DrivingDimension driving_dimension = 1 [json_name = "driving_dimension"]; -} diff --git a/ansys/api/discovery/v1/facettools.proto b/ansys/api/discovery/v1/facettools.proto deleted file mode 100644 index af6fc38..0000000 --- a/ansys/api/discovery/v1/facettools.proto +++ /dev/null @@ -1,45 +0,0 @@ -// Copyright 2022, ANSYS Inc. Unauthorized use, distribution or duplication is prohibited. -syntax = "proto3"; -package ansys.api.discovery.v1; -import "ansys/api/discovery/v1/models.proto"; -option csharp_namespace = "Ansys.Api.Discovery.V1"; -option go_package = "ansys/api/discovery/v1"; - -service FacetTools{ - // Shrinkwrap bodies. - rpc ShrinkWrapBody(ShrinkWrapBodyRequest) returns (ShrinkWrapBodyResponse); - - // Shrinkwrap meshes. - rpc ShrinkWrapMesh(ShrinkWrapMeshRequest) returns (ShrinkWrapMeshResponse); - - // Find and fix faceted body. - rpc FacetAutoFix(FacetAutoFixRequest) returns (FacetAutoFixResponse); -} - - -message ShrinkWrapBodyRequest{ - // The bodies to be shrinkwrapped - repeated DesignBody selection = 1; - ShrinkWrapOptions options= 2; -} - -message ShrinkWrapBodyResponse{ - bool result = 1; -} - -message ShrinkWrapMeshRequest{ - repeated DesignMesh selection = 1; - ShrinkWrapOptions options= 2; -} - -message ShrinkWrapMeshResponse{ - bool result = 1; -} - -message FacetAutoFixRequest{ - repeated DesignMesh selection = 1; -} - -message FacetAutoFixResponse{ - bool result = 1; -} diff --git a/ansys/api/discovery/v1/historytrackparameters.proto b/ansys/api/discovery/v1/historytrackparameters.proto deleted file mode 100644 index 5c1b15a..0000000 --- a/ansys/api/discovery/v1/historytrackparameters.proto +++ /dev/null @@ -1,46 +0,0 @@ -// Copyright 2022, ANSYS Inc. Unauthorized use, distribution or duplication is prohibited. -syntax = "proto3"; -package ansys.api.discovery.v1; -import "ansys/api/discovery/v1/models.proto"; -option csharp_namespace = "Ansys.Api.Discovery.V1"; -option go_package = "ansys/api/discovery/v1"; - -// History track parameters definition. -// -service HistoryTrackParameters{ - // Gets an history track parameter . - rpc GetHistoryTrackParameter(GetHistoryTrackParameterRequest) returns(HistoryTrackParameter) ; - - // Lists all history track parameters. - rpc ListHistoryTrackParameters(ListHistoryTrackParametersRequest) returns(ListHistoryTrackParametersResponse); - - // Upates a history track parameter. - rpc UpdateHistoryTrackParameter(UpdateHistoryTrackParameterRequest) returns(HistoryTrackParameter); - - // Replays the history block parameters - rpc Replay(ReplayHistoryTrackParameterRequest) returns(ReplayHistoryTrackParameterResponse); -} -message GetHistoryTrackParameterRequest{ - // The moniker to access the dimension. - string moniker = 1; -} - -message ListHistoryTrackParametersRequest{ -} - -message ListHistoryTrackParametersResponse{ - // The history track parameters on this page. - repeated HistoryTrackParameter history_track_parameters = 1 [json_name = "history_track_parameters"]; -} -message UpdateHistoryTrackParameterRequest{ - // The history track parameter to update. - HistoryTrackParameter history_track_parameter = 1 [json_name = "history_track_parameter"]; -} - -message ReplayHistoryTrackParameterRequest{ -} - -message ReplayHistoryTrackParameterResponse{ - // The result - string result = 1; -} diff --git a/ansys/api/discovery/v1/models.proto b/ansys/api/discovery/v1/models.proto deleted file mode 100644 index e102db7..0000000 --- a/ansys/api/discovery/v1/models.proto +++ /dev/null @@ -1,679 +0,0 @@ -// Copyright 2022, ANSYS Inc. Unauthorized use, distribution or duplication is prohibited. -syntax = "proto3"; -package ansys.api.discovery.v1; -import "google/protobuf/struct.proto"; -option csharp_namespace = "Ansys.Api.Discovery.V1"; -option go_package = "ansys/api/discovery/v1"; - -// -// The type of curve. -enum CurveType { - CURVETYPE_UNKNOWN = 0; - CURVETYPE_LINE = 1; - CURVETYPE_CIRCLE = 2; - CURVETYPE_ELLIPSE = 3; - CURVETYPE_NURBS = 4; - CURVETYPE_PROCEDURAL = 5; -} - -// -// The type of surface. -enum SurfaceType { - SURFACETYPE_UNKNOWN = 0; - SURFACETYPE_PLANE = 1; - SURFACETYPE_CYLINDER = 2; - SURFACETYPE_CONE = 3; - SURFACETYPE_TORUS = 4; - SURFACETYPE_SPHERE = 5; - SURFACETYPE_NURBS = 6; - SURFACETYPE_PROCEDURAL = 7; -} - -// -// The type of dimension. -enum DimensionType { - DIMENSIONTYPE_UNKNOWN = 0; - DIMENSIONTYPE_LINEAR = 1; - DIMENSIONTYPE_DIAMETRIC = 2; - DIMENSIONTYPE_RADIAL = 3; - DIMENSIONTYPE_ARC = 4; - DIMENSIONTYPE_AREA = 5; - DIMENSIONTYPE_VOLUME = 6; - DIMENSIONTYPE_MASS = 7; - DIMENSIONTYPE_ANGULAR = 8; - DIMENSIONTYPE_COUNT = 9; - DIMENSIONTYPE_UNITLESS = 10; -} - -// -// A design edge. -message DesignEdge{ - // The moniker. - // Output only. - string moniker = 1; - // The curve type. - // Output only. - CurveType curve_type = 10 [json_name = "curve_type"]; - // The display name of the owning design body. - // Output only. - string owner_display_name = 11 [json_name = "owner_display_name"]; - // The export identifier. - // Output only. - string export_id = 12 [json_name = "export_id"]; - // The length of the design edge. - // Output only. - double length = 13; -} - -// -// DesignEdgeView is used to select which fields to return for Get/List. -enum DesignEdgeView { - // Unspecified. - DESIGNEDGE_VIEW_UNSPECIFIED = 0; - // Returns everything. - DESIGNEDGE_VIEW_FULL = 1; - // Returns the moniker only. - DESIGNEDGE_VIEW_MONIKER = 2; - // Returns basic information. - DESIGNEDGE_VIEW_BASIC = 3; -} - -// -// A design face. -message DesignFace{ - // The moniker. - // Output only. - string moniker = 1; - // The surface type. - // Output only. - SurfaceType surface_type = 10 [json_name = "surface_type"]; - // The display name of the owning design body. - // Output only. - string owner_display_name = 11 [json_name = "owner_display_name"]; - // The export identifier. - // Output only. - string export_id = 12 [json_name = "export_id"]; - // The area of the design face. - // Output only. - double area = 13; -} - -// -// DesignFaceView is used to select which fields to return for Get/List. -enum DesignFaceView { - DESIGNFACE_VIEW_UNSPECIFIED = 0; - DESIGNFACE_VIEW_FULL = 1; - DESIGNFACE_VIEW_MONIKER = 2; - DESIGNFACE_VIEW_BASIC = 3; -} - -// -// A design mesh. -message DesignMesh{ - // The moniker. - // Output only. - string moniker = 1; - // The design mesh display name. - string display_name=2 [json_name = "display_name"]; -} - -// -// A design body. -message DesignBody{ - // The moniker. - // Output only. - string moniker = 1; - // The design body display name. - string display_name = 2 [json_name = "display_name"]; - // Indicates whether this design body can be suppressed. - // Output only. - bool can_suppress = 3 [json_name = "can_suppress"]; - // Indicates whether this design body is deleted. - // Output only. - bool is_deleted = 4 [json_name = "is_deleted"]; - // Indicates whether this design body is suppressed. - // Output only. - bool is_suppressed = 5 [json_name = "is_suppressed"]; - // The transformation to master space. - // Output only. - Matrix transform_to_master = 6 [json_name = "transform_to_master"]; - // Access to design body master properties. - // Output only. - DesignBodyMasterNullable master = 7; -} - -// -// A nullable design body master. -message DesignBodyMasterNullable{ - oneof kind { - // Null if the design body is not a master. - google.protobuf.NullValue null = 1; - // Access to design body master properties. - DesignBodyMaster props = 2; - } -} - -// -// A design body master. -message DesignBodyMaster { - // The update state. - // Output only. - string update_state = 6 [json_name = "update_state"]; - // The map of text attributes. - // Output only. - map< string, string > text_attributes = 7 [json_name = "text_attributes"]; - // The nmp of number attributes. - // Output only. - map< string, double > number_attributes = 8 [json_name = "number_attributes"]; - // The solid material. - // Output only. - Material material = 9; - // The surface material. - // Output only. - Material surface_material = 10 [json_name = "surface_material"]; - // The shape information - // Output only. - Shape shape = 11; - // - // The material. - message Material { - // The material display name. - // Output only. - string display_name=1 [json_name = "display_name"]; - } - // - // The shape. - message Shape { - // Indicates if this is a surface body. - // Output only. - bool is_surface_body = 1 [json_name = "is_surface_body"]; - // The surface area. - // Output only. - double surface_area = 2 [json_name = "surface_area"]; - // The volume. - // Output only. - double volume = 3; - // The bounding box size. - // Output only. - Direction bounding_box_size = 4 [json_name = "bounding_box_size"]; - } -} - -// -// DesignBodyView is used to select which fields to return for Get/List. -enum DesignBodyView { - DESIGNBODY_VIEW_UNSPECIFIED = 0; - DESIGNBODY_VIEW_FULL = 1; - DESIGNBODY_VIEW_MONIKER = 2; - DESIGNBODY_VIEW_BASIC = 3; -} - -// -// A component. -message Component{ - // The moniker. - // Output only. - string moniker = 1; - // The display name. - string display_name = 2 [json_name = "display_name"]; - // The part occurrence for this component. - // Output only. - Part part_occurrence = 3 [json_name = "part_occurrence"]; - // The placement matrix. - // Output only. - Matrix placement =4; -} - -// -// ComponentView is used to select which fields to return for Get/List. -enum ComponentView { - COMPONENT_VIEW_UNSPECIFIED = 0; - COMPONENT_VIEW_FULL = 1; - COMPONENT_VIEW_MONIKER = 2; - COMPONENT_VIEW_BASIC = 3; -} - -// -// A part. -message Part{ - // The moniker. - // Output only. - string moniker = 1; - // The display name. - string display_name = 2 [json_name = "display_name"]; -} - -// -// PartView is used to select which fields to return for Get/List. -enum PartView { - PART_VIEW_UNSPECIFIED = 0; - PART_VIEW_FULL = 1; - PART_VIEW_MONIKER = 2; - PART_VIEW_BASIC = 3; -} - -// -// A named selection. -message NamedSelection { - // The moniker. - // Output only. - string moniker = 1; - // The display name. - string display_name = 2 [json_name = "display_name"]; -} - -// -// NamedSelectionView is used to select which fields to return for Get/List. -enum NamedSelectionView { - NAMEDSELECTION_VIEW_UNSPECIFIED = 0; - NAMEDSELECTION_VIEW_FULL = 1; - NAMEDSELECTION_VIEW_MONIKER = 2; - NAMEDSELECTION_VIEW_BASIC = 3; -} - -// -// A driving dimension. -message DrivingDimension { - // The moniker. - // Output only. - string moniker = 1; - // The display name. - string display_name = 2 [json_name = "display_name"]; - // The type of driving dimension. - // Output only. - DimensionType dimension_type = 3 [json_name = "dimension_type"]; - // The value of the driving dimension. - double dimension_value = 4 [json_name = "dimension_value"]; -} - -// -// DrivingDimensionView is used to select which fields to return for Get/List. -enum DrivingDimensionView { - DRIVINGDIMENSION_VIEW_UNSPECIFIED = 0; - DRIVINGDIMENSION_VIEW_FULL = 1; - DRIVINGDIMENSION_VIEW_MONIKER = 2; - DRIVINGDIMENSION_VIEW_BASIC = 3; -} - -// -// A design document. -message Document{ - string moniker = 1; - bool is_complete=2 [json_name = "is_complete"]; - bool is_locked=3 [json_name = "is_locked"]; - bool is_modified=4 [json_name = "is_modified"]; - bool is_removed = 5 [json_name = "is_removed"]; - Part main_part=6 [json_name = "main_part"]; - bool main_part_displays_file_name=7 [json_name = "main_part_displays_file_name"]; - string path = 10; -} - -// -// DocumentView is used to select which fields to return for Get/List. -enum DocumentView { - DOCUMENT_VIEW_UNSPECIFIED = 0; - DOCUMENT_VIEW_FULL = 1; - DOCUMENT_VIEW_MONIKER = 2; - DOCUMENT_VIEW_BASIC = 3; -} - -// -// A 3D coordinate system. -message CoordinateSystem{ - // The moniker. - // Output only. - string moniker = 1; - // The display name. - string display_name = 10 [json_name = "display_name"]; - // The display name. - Frame frame = 11; -} - -// -// CoordinateSystemView is used to select which fields to return for Get/List. -enum CoordinateSystemView { - COORDINATESYSTEM_VIEW_UNSPECIFIED = 0; - COORDINATESYSTEM_VIEW_FULL = 1; - COORDINATESYSTEM_VIEW_MONIKER = 2; - COORDINATESYSTEM_VIEW_BASIC = 3; -} - -// -// A 3D point. -message Point { - double x = 1; - double y = 2; - double z = 3; -} - -// -// A 3D direction. -message Direction { - double x = 1; - double y = 2; - double z = 3; -} - -// -// A 3D coordinate frame. -message Frame { - Point origin = 1; - Direction dir_x = 2 [json_name = "dir_x"]; - Direction dir_y = 3 [json_name = "dir_y"]; - Direction dir_z = 4 [json_name = "dir_z"]; -} - -// -// A 3D box. -message Box { - Point min = 1; - Point max = 2; -} - -// -// A homogeneous 3D transformation matrix. -// The matrix is a pre-multiplication transformation. -// The rotation is in m00->m22 and contains no scaling in its leading diagonal. -// The translation is m03/m33, m13/m33, m23/m33. -// The uniform scale is 1/m33. -message Matrix{ - double m00 = 1; - double m01 = 2; - double m02 = 3; - double m03 = 4; - double m10 = 5; - double m11 = 6; - double m12 = 7; - double m13 = 8; - double m20 = 9; - double m21 = 10; - double m22 = 11; - double m23 = 12; - double m30 = 13; - double m31 = 14; - double m32 = 15; - double m33 = 16; -} -// -// An history track parameter -message HistoryTrackParameter { - // The moniker. - // Output only. - string moniker = 1; - // The display name. - string display_name = 2 [json_name = "display_name"]; - // The type of history track parameter. - // Output only. - DimensionType dimension_type = 3 [json_name = "dimension_type"]; - // The value of the history track parameter. - double dimension_value = 4 [json_name = "dimension_value"]; -} - -// -// HistoryTrackParameterView is used to select which fields to return for Get/List. -enum HistoryTrackParameterView { - HISTORYTRACKPARAMETER_VIEW_UNSPECIFIED = 0; - HISTORYTRACKPARAMETER_VIEW_FULL = 1; - HISTORYTRACKPARAMETER_VIEW_MONIKER = 2; - HISTORYTRACKPARAMETER_VIEW_BASIC = 3; -} - -// -// An input parameter -message InputParameter { - // The moniker. - // Output only. - string moniker = 1; - // The parent variation's identifier - string parent_moniker = 2 [json_name = "parent_moniker"]; - // The display name. - string display_name = 3 [json_name = "display_name"]; - // The type of physics parameter. - QuantityType quantity_type = 4 [json_name = "quantity_type"]; - // The value of the output physics parameter. - double quantity_value = 5 [json_name = "quantity_value"]; - // The value's unit - int32 unit = 6 [json_name = "unit"]; - // The value unit's abbreviation. - string unit_abbreviation = 7; -} - -// -// InputParameterView is used to select which fields to return for Get/List. -enum InputParameterView { - INPUT_PARAMETER_VIEW_UNSPECIFIED = 0; - INPUT_PARAMETER_VIEW_FULL = 1; - INPUT_PARAMETER_VIEW_MONIKER = 2; - INPUT_PARAMETER_VIEW_BASIC = 3; -} - -// -// An output parameter -message OutputParameter { - // The moniker. - // Output only. - string moniker = 1; - // The parent variation's identifier - string parent_moniker = 2 [json_name = "parent_moniker"]; - // The display name. - string display_name = 3 [json_name = "display_name"]; - // The type of parameter. - QuantityType quantity_type = 4 [json_name = "quantity_type"]; - // The value of the output parameter. - double quantity_value = 5 [json_name = "quantity_value"]; - // The value's unit - int32 unit = 6 [json_name = "unit"]; - // The value unit's abbreviation. - string unit_abbreviation = 7; -} - -// -// OutputParameterView is used to select which fields to return for Get/List. -enum OutputParameterView { - OUTPUT_PARAMETER_VIEW_UNSPECIFIED = 0; - OUTPUT_PARAMETER_VIEW_FULL = 1; - OUTPUT_PARAMETER_VIEW_MONIKER = 2; - OUTPUT_PARAMETER_VIEW_BASIC = 3; -} - -// -// A script parameter -message ScriptParameter { - // The moniker. - // Output only. - string moniker = 1; - // The display name. - string display_name = 2 [json_name = "display_name"]; - // The type of script parameter. - DimensionType dimension_type = 3 [json_name = "dimension_type"]; - // The value of the script parameter. - double dimension_value = 4 [json_name = "dimension_value"]; -} - -// -// ScriptParameterView is used to select which fields to return for Get/List. -enum ScriptParameterView { - SCRIPTPARAMETER_VIEW_UNSPECIFIED = 0; - SCRIPTPARAMETER_VIEW_FULL = 1; - SCRIPTPARAMETER_VIEW_MONIKER = 2; - SCRIPTPARAMETER_VIEW_BASIC = 3; -} - -// -// ShrinkWrapOptions is used to specify ShrinkWrap method in the Facet Tools. -message ShrinkWrapOptions { - // Gets or sets the maximum size of the facet in mm. - double size =2; - //Gets or sets a value indicating whether to keep the original body or not. - bool keep_original_bodies =3; - // Gets or sets a value indicating whether to preserve features. - bool preserve_features =4; - // Gets or sets a value indicating whether to preserve features. - double angle_tolerance =5; - // Gets or sets a value indicating whether to preserve features. - bool secondary_size_enabled =6; - // Get or sets a value indicating secondary size - double secondary_size = 7; - // Gets or sets a value indicating whether to preserve features. - bool max_size_enabled =8; - // Get or sets a value indicating secondary size - double max_size = 9; - // Gets or sets a value indicating whether to preserve features. - double curvature_angle =10; - // Get or sets a value indicating secondary size -} - -// -// A Variation (represents a row into the variation table) -message Variation { - // The moniker. - // Output only. - string moniker = 1; - // The display name. - string display_name = 2 [json_name = "display_name"]; - // Starred status - bool starred = 3 [json_name = "starred"]; - // The type of script parameter. - // Output only. - repeated InputParameter inputs = 4 [json_name = "inputs"]; - // The value of the script parameter. - repeated OutputParameter outputs = 5 [json_name = "outputs"]; -} - -// -// An input column (represents the same input parameter across all the variations ) -message InputColumn { - // The moniker. - // Output only. - string moniker = 1; - // The display name. - string display_name = 2 [json_name = "display_name"]; - // The range - // Output only - string range = 3; - // The parameters - repeated InputParameter parameter_variations= 4; -} - -// -// An output column (represents the same output parameter across all the variations ) -message OutputColumn { - // The moniker. - // Output only. - string moniker = 1; - // The display name. - string display_name = 2 [json_name = "display_name"]; - // The range - // Output only - string range = 3; - // The parameters - repeated OutputParameter parameter_variations= 4; -} - -// -// Represents the quantity type for a physics parameter. -enum QuantityType { - QUANTITY_TYPE_ACCELERATION=0; - QUANTITY_TYPE_ANGLE=1; - QUANTITY_TYPE_AREA=2; - QUANTITY_TYPE_AREA_DENSITY=3; - QUANTITY_TYPE_AREA_MOMENT_OF_INERTIA=4; - QUANTITY_TYPE_CAPACITANCE=5; - QUANTITY_TYPE_COEFFICIENT_OF_THERMAL_EXPANSION=6; - QUANTITY_TYPE_DENSITY=7; - QUANTITY_TYPE_DYNAMIC_VISCOSITY=8; - QUANTITY_TYPE_ELECTRIC_ADMITTANCE=9; - QUANTITY_TYPE_ELECTRIC_CHARGE=10; - QUANTITY_TYPE_ELECTRIC_CHARGE_DENSITY=11; - QUANTITY_TYPE_ELECTRIC_CONDUCTANCE=12; - QUANTITY_TYPE_ELECTRIC_CONDUCTIVITY=13; - QUANTITY_TYPE_ELECTRIC_CURRENT=14; - QUANTITY_TYPE_ELECTRIC_CURRENT_DENSITY=15; - QUANTITY_TYPE_ELECTRIC_CURRENT_GRADIENT=16; - QUANTITY_TYPE_ELECTRIC_FIELD=17; - QUANTITY_TYPE_ELECTRIC_INDUCTANCE=18; - QUANTITY_TYPE_ELECTRIC_POTENTIAL=19; - QUANTITY_TYPE_ELECTRIC_POTENTIAL_AC=20; - QUANTITY_TYPE_ELECTRIC_POTENTIAL_CHANGE_RATE=21; - QUANTITY_TYPE_ELECTRIC_POTENTIAL_DC=22; - QUANTITY_TYPE_ELECTRIC_RESISTANCE=23; - QUANTITY_TYPE_ELECTRIC_RESISTIVITY=24; - QUANTITY_TYPE_ELECTRIC_SURFACE_CHARGE_DENSITY=25; - QUANTITY_TYPE_ENERGY=26; - QUANTITY_TYPE_ENTROPY=27; - QUANTITY_TYPE_FORCE=28; - QUANTITY_TYPE_FORCE_CHANGE_RATE=29; - QUANTITY_TYPE_FORCE_PER_LENGTH=30; - QUANTITY_TYPE_FREQUENCY=31; - QUANTITY_TYPE_HEAT_FLUX=32; - QUANTITY_TYPE_HEAT_TRANSFER_COEFFICIENT=33; - QUANTITY_TYPE_INVERSE_AREA=34; - QUANTITY_TYPE_INVERSE_LENGTH=35; - QUANTITY_TYPE_KINEMATIC_VISCOSITY=36; - QUANTITY_TYPE_LENGTH=37; - QUANTITY_TYPE_MAGNETIC_FIELD=38; - QUANTITY_TYPE_MASS=39; - QUANTITY_TYPE_MASS_CONCENTRATION=40; - QUANTITY_TYPE_MASS_FLOW=41; - QUANTITY_TYPE_MASS_FLUX=42; - QUANTITY_TYPE_MASS_FRACTION=43; - QUANTITY_TYPE_MASS_MOMENT_OF_INERTIA=44; - QUANTITY_TYPE_MOLARITY=45; - QUANTITY_TYPE_MOLAR_MASS=46; - QUANTITY_TYPE_PERMEABILITY=47; - QUANTITY_TYPE_PERMITTIVITY=48; - QUANTITY_TYPE_POWER=49; - QUANTITY_TYPE_POWER_DENSITY=50; - QUANTITY_TYPE_POWER_RATIO=51; - QUANTITY_TYPE_PRESSURE=52; - QUANTITY_TYPE_RATIO=53; - QUANTITY_TYPE_RATIO_CHANGE_RATE=54; - QUANTITY_TYPE_REACTIVE_ENERGY=55; - QUANTITY_TYPE_REACTIVE_POWER=56; - QUANTITY_TYPE_ROTATIONAL_ACCELERATION=57; - QUANTITY_TYPE_ROTATIONAL_SPEED=58; - QUANTITY_TYPE_ROTATIONAL_STIFFNESS=59; - QUANTITY_TYPE_ROTATIONAL_STIFFNESS_PER_LENGTH=60; - QUANTITY_TYPE_SOLID_ANGLE=61; - QUANTITY_TYPE_SPECIFIC_ENERGY=62; - QUANTITY_TYPE_SPECIFIC_ENTROPY=63; - QUANTITY_TYPE_SPECIFIC_VOLUME=64; - QUANTITY_TYPE_SPECIFIC_WEIGHT=65; - QUANTITY_TYPE_SPEED=66; - QUANTITY_TYPE_TEMPERATURE=67; - QUANTITY_TYPE_TEMPERATURE_CHANGE_RATE=68; - QUANTITY_TYPE_TEMPERATURE_DELTA=69; - QUANTITY_TYPE_THERMAL_CONDUCTIVITY=70; - QUANTITY_TYPE_THERMAL_RESISTANCE=71; - QUANTITY_TYPE_TIME=72; - QUANTITY_TYPE_TORQUE=73; - QUANTITY_TYPE_TORQUE_PER_LENGTH=74; - QUANTITY_TYPE_VOLUME=75; - QUANTITY_TYPE_VOLUME_CONCENTRATION=76; - QUANTITY_TYPE_VOLUME_FLOW=77; - QUANTITY_TYPE_VOLUME_PER_LENGTH=78; - QUANTITY_TYPE_WARPING_MOMENT_OF_INERTIA=79; -} - -// -// A design curve. -message DesignCurve{ - // The moniker. - // Output only. - string moniker = 1; - // The display name of the owning design body. - // Output only. - string owner_display_name = 2; - // The length of the design edge. - // Output only. - double length = 3; -} - -// -// Object type descriptor -enum EntityType{ - PART = 0; - COMPONENT = 1; - BODY = 2; - NAMED_SELECTION = 3; -} diff --git a/ansys/api/discovery/v1/namedselections.proto b/ansys/api/discovery/v1/namedselections.proto deleted file mode 100644 index 78fcb12..0000000 --- a/ansys/api/discovery/v1/namedselections.proto +++ /dev/null @@ -1,66 +0,0 @@ -// Copyright 2022, ANSYS Inc. Unauthorized use, distribution or duplication is prohibited. -syntax = "proto3"; -package ansys.api.discovery.v1; -import "ansys/api/discovery/v1/models.proto"; -option csharp_namespace = "Ansys.Api.Discovery.V1"; -option go_package = "ansys/api/discovery/v1"; - -// Named Selections -// -service NamedSelections{ - // Gets a named selection. - rpc GetNamedSelection(GetNamedSelectionRequest) returns(NamedSelection); - - // Creates a named selection. This is a custom method as the signature is non-standard. - rpc CreateNamedSelectionCustom(CreateNamedSelectionCustomRequest) returns(NamedSelection); - - // Lists all named selections. - rpc ListNamedSelections(ListNamedSelectionsRequest) returns(ListNamedSelectionsResponse); -} - -message GetNamedSelectionRequest{ - // Moniker of the named selection. - string moniker = 1; - -} - -message CreateNamedSelectionCustomRequest{ - // Name of the named selection. - string display_name = 1; - // Member monikers to populate the named selection. - repeated string member_monikers = 2 [json_name = "member_monikers"]; -} - -message ListNamedSelectionsRequest { - // The parent, which must be empty. - string parent = 1; -} - -message ListNamedSelectionsResponse{ - // The named selections on this page. - repeated NamedSelection named_selections = 1 [json_name = "named_selections"]; -} - -message AddMembersRequest{ - // Moniker of the named selection. - string moniker = 1; - // Monikers of the entities to add to the named selection. - repeated string member_monikers = 2 [json_name = "member_monikers"]; -} - -message AddMembersResponse{ - // Updated named selection. - NamedSelection named_selection = 1; -} - -message RemoveMembersRequest{ - // Moniker of the named selection. - string moniker = 1; - // Monikers of the entities to remove from the named selection. - repeated string member_monikers = 2 [json_name = "member_monikers"]; -} - -message RemoveMembersResponse{ - // Updated named selection. - NamedSelection named_selection = 1 [json_name = "named_selection"]; -} diff --git a/ansys/api/discovery/v1/parts.proto b/ansys/api/discovery/v1/parts.proto deleted file mode 100644 index 39a40c4..0000000 --- a/ansys/api/discovery/v1/parts.proto +++ /dev/null @@ -1,46 +0,0 @@ -// Copyright 2022, ANSYS Inc. Unauthorized use, distribution or duplication is prohibited. -syntax = "proto3"; -package ansys.api.discovery.v1; -import "ansys/api/discovery/v1/models.proto"; -import "ansys/api/discovery/v1/streaming.proto"; -option csharp_namespace = "Ansys.Api.Discovery.V1"; -option go_package = "ansys/api/discovery/v1"; - -service Parts{ - // Gets a part. - rpc GetPart(GetPartRequest) returns(Part); - // Lists all parts. - rpc ListParts(ListPartsRequest) returns(ListPartsResponse) ; - // Exports the geometry for a part in a supported format. - rpc ExportPart(ExportPartRequest) returns(stream StreamPackage); -} - -message ListPartsRequest{ - // The parent, which can be empty or "documents/{moniker}". - string parent = 1; -} - -message ListPartsResponse{ - // The parts on this page. - repeated Part parts = 1; -} - -message GetPartRequest{ - // The moniker. - string moniker = 1; -} - -message ExportPartRequest{ - // Moniker of the part to export. - string moniker = 1; - // Format to export to. - PartExportFormat format = 2; -} - -enum PartExportFormat { - PARTEXPORTFORMAT_ACIS_TEXT = 0; - PARTEXPORTFORMAT_ACIS_BINARY = 1; - PARTEXPORTFORMAT_PARASOLID_TEXT = 2; - PARTEXPORTFORMAT_PARASOLID_BINARY = 3; - PARTEXPORTFORMAT_STEP = 4; -} diff --git a/ansys/api/discovery/v1/preparetools.proto b/ansys/api/discovery/v1/preparetools.proto deleted file mode 100644 index 9c7a3dd..0000000 --- a/ansys/api/discovery/v1/preparetools.proto +++ /dev/null @@ -1,91 +0,0 @@ -// Copyright 2022, ANSYS Inc. Unauthorized use, distribution or duplication is prohibited. -syntax = "proto3"; -package ansys.api.discovery.v1; -import "ansys/api/discovery/v1/models.proto"; -import "google/protobuf/wrappers.proto"; -option csharp_namespace = "Ansys.Api.Discovery.V1"; -option go_package = "ansys/api/discovery/v1"; - -service PrepareTools{ - // Find and fix Interferences of the bodies. - rpc FixInterference(FixInterferenceRequest) returns (FixInterferenceResponse); - - // Find and fix short edges under certain tolerance. - rpc FixShortEdges(FixShortEdgesRequest) returns (FixShortEdgesResponse); - - // Find and fix shared topology between geometries. - rpc ShareTopology(ShareTopologyRequest) returns (ShareTopologyResponse); - - // Find and ushare existing shared topologies between geometries. - rpc UnshareTopology(UnshareTopologyRequest) returns (UnshareTopologyResponse); - - // Calls the remove rounds face command. - rpc RemoveRounds(RemoveRoundsRequest) returns(RemoveRoundsResponse); - - // Calls the remove face command. - rpc RemoveFaces(RemoveFacesRequest) returns(RemoveFacesResponse); -} - - -message FixInterferenceRequest{ - repeated DesignBody selection = 1; - // True if interfered body is removed from smaller body, false otherwise. - google.protobuf.BoolValue cut_smaller_body=2; -} - -message FixInterferenceResponse{ - bool result = 1; -} - -message FixShortEdgesRequest{ - repeated DesignEdge selection = 1; - // The maximum edge length in mm to remove shorter edges. - google.protobuf.DoubleValue max_edge_length=2; -} - -message FixShortEdgesResponse{ - bool result = 1; -} - -message ShareTopologyRequest{ - repeated DesignBody selection = 1; - // Gets or sets the maximum distance between items to be considered intersecting in mm. - google.protobuf.DoubleValue tolerance=2; - // Gets or sets the option for preserving the instancing. - google.protobuf.BoolValue preserve_instances=3; -} - -message ShareTopologyResponse{ - bool result = 1; -} - -message UnshareTopologyRequest{ - // Gets or sets a value indicating whether to include groups. - google.protobuf.BoolValue include_groups=1; - // Gets or sets a value indicating whether to unshare lower topology. - google.protobuf.BoolValue unshare_lower_topology =2; -} - -message UnshareTopologyResponse{ - bool result = 1; -} - -message RemoveRoundsRequest{ - // The round faces to be removed. - repeated DesignFace selection = 1; - // Auto-shrink fill area - google.protobuf.BoolValue auto_shrink = 2; -} - -message RemoveRoundsResponse{ - bool result = 1; -} - -message RemoveFacesRequest{ - // The faces to be removed. - repeated DesignFace selection = 1; -} - -message RemoveFacesResponse{ - bool result = 1; -} \ No newline at end of file diff --git a/ansys/api/discovery/v1/repairtools.proto b/ansys/api/discovery/v1/repairtools.proto deleted file mode 100644 index b070692..0000000 --- a/ansys/api/discovery/v1/repairtools.proto +++ /dev/null @@ -1,176 +0,0 @@ -// Copyright 2022, ANSYS Inc. Unauthorized use, distribution or duplication is prohibited. -syntax = "proto3"; -package ansys.api.discovery.v1; -import "ansys/api/discovery/v1/models.proto"; -import "google/protobuf/struct.proto"; -import "google/protobuf/wrappers.proto"; -option csharp_namespace = "Ansys.Api.Discovery.V1"; -option go_package = "ansys/api/discovery/v1"; - -service RepairTools{ - // Stitch surfaces into a single body. - rpc SolidifyStitch(SolidifyStitchRequest) returns (SolidifyStitchResponse); - // Detect and fix gaps in a surface body. - rpc SolidifyGaps(SolidifyGapsRequest) returns (SolidifyGapsResponse); - // Detect and fix missing faces on a surface body. - rpc SolidifyMissingFaces(SolidifyMissingFacesRequest) returns (SolidifyMissingFacesResponse); - - // Detect and fix coincident edges that do not mark the boundaries of new faces. - rpc FixSplitEdges(FixSplitEdgesRequest) returns (FixSplitEdgesResponse); - // Detect and remove edges that are not needed to define the shape of the model. - rpc FixExtraEdges(FixExtraEdgesRequest) returns (FixExtraEdgesResponse); - // Detect and fix duplicate faces. - rpc FixDuplicateFaces(FixDuplicateFacesRequest) returns (FixDuplicateFacesResponse); - - // Detect and fix gaps between curves. - rpc FixCurvesGaps(FixCurvesGapsRequest) returns (FixCurvesGapsResponse); - // Detect and remove duplicate curves. - rpc FixCurvesDuplicate(FixCurvesDuplicateRequest) returns (FixCurvesDuplicateResponse); - - // Replace two or more faces with a single face. - rpc AdjustMergeFaces(AdjustMergeFacesRequest) returns (AdjustMergeFacesResponse); - // Detect and remove small or sliver faces from a model. - rpc AdjustSmallFaces(AdjustSmallFacesRequest) returns (AdjustSmallFacesResponse); - // Simplify faces and curves into planes, cones, cylinders, lines, arcs, etc. - rpc AdjustSimplify(AdjustSimplifyRequest) returns (AdjustSimplifyResponse); - // Detect and fix edges that do not precisely lie at the intersection of two faces. - rpc AdjustInexactEdges(AdjustInexactEdgesRequest) returns (AdjustInexactEdgesResponse); -} - - -message SolidifyStitchRequest{ - repeated DesignFace selection = 1; - google.protobuf.DoubleValue maximum_distance =2; // default: 0.0001 - google.protobuf.BoolValue check_for_coincidence=3; // default: false - google.protobuf.BoolValue allow_multiple_bodies =4; // default: false - google.protobuf.BoolValue maintain_components=5; // default: false -} - -message SolidifyStitchResponse{ - bool result = 1; -} - -enum SolidifyFixMethodType{ - FILL = 0; - PATCH_BLEND = 1; - TRY_BOTH = 2; -} - -message SolidifyGapsRequest{ - repeated DesignFace selection = 1; - google.protobuf.DoubleValue angle=2; - google.protobuf.DoubleValue distance = 3; - oneof method - { - google.protobuf.NullValue null = 4; - SolidifyFixMethodType data =5; - } - google.protobuf.BoolValue allow_multi_patch = 6; -} - -message SolidifyGapsResponse{ - bool result = 1; -} - -message SolidifyMissingFacesRequest{ - repeated DesignFace selection = 1; - google.protobuf.DoubleValue angle=2; - google.protobuf.DoubleValue distance = 3; - oneof method - { - google.protobuf.NullValue null = 4; - SolidifyFixMethodType data =5; - } - google.protobuf.BoolValue allow_multi_patch =6; -} - -message SolidifyMissingFacesResponse{ - bool result = 1; -} - - -message FixSplitEdgesRequest{ - repeated DesignEdge selection = 1; - google.protobuf.DoubleValue max_edge_length = 2; - google.protobuf.DoubleValue min_edge_angle = 3; -} - -message FixSplitEdgesResponse{ - bool result = 1; -} - - -message FixExtraEdgesRequest{ - repeated DesignEdge selection = 1; -} - -message FixExtraEdgesResponse{ - bool result = 1; -} - - -message FixDuplicateFacesRequest{ - repeated DesignFace selection = 1; - google.protobuf.DoubleValue max_gap = 2; -} - -message FixDuplicateFacesResponse{ - bool result = 1; -} - -message FixCurvesGapsRequest{ - google.protobuf.DoubleValue distance = 1; -} - -message FixCurvesGapsResponse{ - bool result = 1; -} - -message FixCurvesDuplicateRequest{ - google.protobuf.DoubleValue distance = 1; -} - -message FixCurvesDuplicateResponse{ - bool result = 1; -} - -message AdjustMergeFacesRequest{ - repeated DesignFace selection = 1; - repeated DesignFace tangent_faces = 2; - google.protobuf.BoolValue allow_multi_patch = 3; - google.protobuf.BoolValue fail_if_can_fill = 4; - google.protobuf.BoolValue enforce_closed_loop_check = 5; -} - -message AdjustMergeFacesResponse{ - bool result = 1; -} - - -message AdjustSmallFacesRequest{ - repeated DesignFace selection = 1; - google.protobuf.DoubleValue area = 2; - google.protobuf.DoubleValue width = 3; -} - -message AdjustSmallFacesResponse{ - bool result = 1; -} - - -message AdjustSimplifyRequest{ - repeated DesignFace selection = 1; -} - -message AdjustSimplifyResponse{ - bool result = 1; -} - - -message AdjustInexactEdgesRequest{ - repeated DesignEdge selection = 1; -} - -message AdjustInexactEdgesResponse{ - bool result = 1; -} diff --git a/ansys/api/discovery/v1/scriptparameters.proto b/ansys/api/discovery/v1/scriptparameters.proto deleted file mode 100644 index 1c51658..0000000 --- a/ansys/api/discovery/v1/scriptparameters.proto +++ /dev/null @@ -1,50 +0,0 @@ -// Copyright 2022, ANSYS Inc. Unauthorized use, distribution or duplication is prohibited. -syntax = "proto3"; -package ansys.api.discovery.v1; -import "ansys/api/discovery/v1/models.proto"; -option csharp_namespace = "Ansys.Api.Discovery.V1"; -option go_package = "ansys/api/discovery/v1"; - -// script parameters definition. -// -service ScriptParameters{ - // Gets an script parameter . - rpc GetScriptParameter(GetScriptParameterRequest) returns(ScriptParameter); - - // Lists all script parameters. - rpc ListScriptParameters(ListScriptParametersRequest) returns(ListScriptParametersResponse) ; - - // Upates a script parameter. - rpc UpdateScriptParameter(UpdateScriptParameterRequest) returns(ScriptParameter) ; - - // Replays the script - rpc Replay(ReplayRequest) returns(ReplayResponse) ; -} - -message GetScriptParameterRequest{ - // The moniker to access the dimension. - string moniker = 1; -} - -message ListScriptParametersRequest{ - // The parent, which must be empty. - string parent = 1; -} - -message ListScriptParametersResponse{ - // The script parameters on this page. - repeated ScriptParameter script_parameters = 1 [json_name = "script_parameters"]; -} - -message UpdateScriptParameterRequest{ - // The script parameter to update. - ScriptParameter script_parameter = 1 [json_name = "script_parameter"]; -} - -message ReplayRequest{ -} - -message ReplayResponse{ - // The result - string result = 1; -} diff --git a/ansys/api/discovery/v1/streaming.proto b/ansys/api/discovery/v1/streaming.proto deleted file mode 100644 index 586709a..0000000 --- a/ansys/api/discovery/v1/streaming.proto +++ /dev/null @@ -1,20 +0,0 @@ -// Copyright 2022, ANSYS Inc. Unauthorized use, distribution or duplication is prohibited. -syntax = "proto3"; -package ansys.api.discovery.v1; -option go_package = "ansys/api/discovery/v1"; -option csharp_namespace = "Ansys.Api.Discovery.V1"; - -message StreamPackage{ - // The type of content - string content_type = 1; - // The number of packages - int32 count = 2; - // The package index - int32 index = 3; - // The image total size - int32 total_size = 4; - // This package size - int32 package_size = 5; - // The package data - bytes data =6; -} diff --git a/ansys/api/discovery/v1/units.proto b/ansys/api/discovery/v1/units.proto deleted file mode 100644 index b40df0c..0000000 --- a/ansys/api/discovery/v1/units.proto +++ /dev/null @@ -1,1472 +0,0 @@ -// Copyright 2022, ANSYS Inc. Unauthorized use, distribution or duplication is prohibited. -syntax = "proto3"; -package ansys.api.discovery.v1; -option csharp_namespace = "Ansys.Api.Discovery.V1"; -option go_package = "ansys/api/discovery/v1"; - -// -// Acceleration units. -enum AccelerationUnit { - ACCELERATION_CENTIMETER_PER_SECOND_SQUARED=0; - ACCELERATION_DECIMETER_PER_SECOND_SQUARED=1; - ACCELERATION_FOOT_PER_SECOND_SQUARED=2; - ACCELERATION_INCH_PER_SECOND_SQUARED=3; - ACCELERATION_KILOMETER_PER_SECOND_SQUARED=4; - ACCELERATION_KNOT_PER_HOUR=5; - ACCELERATION_KNOT_PER_MINUTE=6; - ACCELERATION_KNOT_PER_SECOND=7; - ACCELERATION_METER_PER_SECOND_SQUARED=8; - ACCELERATION_MICROMETER_PER_SECOND_SQUARED=9; - ACCELERATION_MILLIMETER_PER_SECOND_SQUARED=10; - ACCELERATION_NANOMETER_PER_SECOND_SQUARED=11; - ACCELERATION_STANDARD_GRAVITY=12; -} - -// -// Angle units. -enum AngleUnit { - ANGLE_ARCMINUTE=0; - ANGLE_ARCSECOND=1; - ANGLE_CENTIRADIAN=2; - ANGLE_DECIRADIAN=3; - ANGLE_DEGREE=4; - ANGLE_GRADIAN=5; - ANGLE_MICRODEGREE=6; - ANGLE_MICRORADIAN=7; - ANGLE_MILLIDEGREE=8; - ANGLE_MILLIRADIAN=9; - ANGLE_NANODEGREE=10; - ANGLE_NANORADIAN=11; - ANGLE_RADIAN=12; - ANGLE_REVOLUTION=13; -} - -// -// Area units. -enum AreaUnit { - AREA_ACRE=0; - AREA_HECTARE=1; - AREA_SQUARE_CENTIMETER=2; - AREA_SQUARE_DECIMETER=3; - AREA_SQUARE_FOOT=4; - AREA_SQUARE_INCH=5; - AREA_SQUARE_KILOMETER=6; - AREA_SQUARE_METER=7; - AREA_SQUARE_MICROMETER=8; - AREA_SQUARE_MILE=9; - AREA_SQUARE_MILLIMETER=10; - AREA_SQUARE_NAUTICAL_MILE=11; - AREA_SQUARE_YARD=12; - AREA_US_SURVEY_SQUARE_FOOT=13; -} - -// -// AreaDensity units. -enum AreaDensityUnit { - AREADENSITY_KILOGRAM_PER_SQUARE_METER=0; -} - -// -// AreaMomentOfInertia units. -enum AreaMomentOfInertiaUnit { - AREAMOMENTOFINERTIA_CENTIMETER_TO_THE_FOURTH=0; - AREAMOMENTOFINERTIA_DECIMETER_TO_THE_FOURTH=1; - AREAMOMENTOFINERTIA_FOOT_TO_THE_FOURTH=2; - AREAMOMENTOFINERTIA_INCH_TO_THE_FOURTH=3; - AREAMOMENTOFINERTIA_METER_TO_THE_FOURTH=4; - AREAMOMENTOFINERTIA_MILLIMETER_TO_THE_FOURTH=5; -} - -// -// Capacitance units. -enum CapacitanceUnit { - CAPACITANCE_FARAD=0; - CAPACITANCE_KILOFARAD=1; - CAPACITANCE_MEGAFARAD=2; - CAPACITANCE_MICROFARAD=3; - CAPACITANCE_MILLIFARAD=4; - CAPACITANCE_NANOFARAD=5; - CAPACITANCE_PICOFARAD=6; -} - -// -// CoefficientOfThermalExpansion units. -enum CoefficientOfThermalExpansionUnit { - COEFFICIENTOFTHERMALEXPANSION_INVERSE_DEGREE_CELSIUS=0; - COEFFICIENTOFTHERMALEXPANSION_INVERSE_DEGREE_FAHRENHEIT=1; - COEFFICIENTOFTHERMALEXPANSION_INVERSE_KELVIN=2; -} - -// -// Density units. -enum DensityUnit { - DENSITY_CENTIGRAM_PER_DECILITER=0; - DENSITY_CENTIGRAM_PER_LITER=1; - DENSITY_CENTIGRAM_PER_MILLILITER=2; - DENSITY_DECIGRAM_PER_DECILITER=3; - DENSITY_DECIGRAM_PER_LITER=4; - DENSITY_DECIGRAM_PER_MILLILITER=5; - DENSITY_GRAM_PER_CUBIC_CENTIMETER=6; - DENSITY_GRAM_PER_CUBIC_METER=7; - DENSITY_GRAM_PER_CUBIC_MILLIMETER=8; - DENSITY_GRAM_PER_DECILITER=9; - DENSITY_GRAM_PER_LITER=10; - DENSITY_GRAM_PER_MILLILITER=11; - DENSITY_KILOGRAM_PER_CUBIC_CENTIMETER=12; - DENSITY_KILOGRAM_PER_CUBIC_METER=13; - DENSITY_KILOGRAM_PER_CUBIC_MILLIMETER=14; - DENSITY_KILOGRAM_PER_LITER=15; - DENSITY_KILOPOUND_PER_CUBIC_FOOT=16; - DENSITY_KILOPOUND_PER_CUBIC_INCH=17; - DENSITY_MICROGRAM_PER_CUBIC_METER=18; - DENSITY_MICROGRAM_PER_DECILITER=19; - DENSITY_MICROGRAM_PER_LITER=20; - DENSITY_MICROGRAM_PER_MILLILITER=21; - DENSITY_MILLIGRAM_PER_CUBIC_METER=22; - DENSITY_MILLIGRAM_PER_DECILITER=23; - DENSITY_MILLIGRAM_PER_LITER=24; - DENSITY_MILLIGRAM_PER_MILLILITER=25; - DENSITY_NANOGRAM_PER_DECILITER=26; - DENSITY_NANOGRAM_PER_LITER=27; - DENSITY_NANOGRAM_PER_MILLILITER=28; - DENSITY_PICOGRAM_PER_DECILITER=29; - DENSITY_PICOGRAM_PER_LITER=30; - DENSITY_PICOGRAM_PER_MILLILITER=31; - DENSITY_POUND_PER_CUBIC_FOOT=32; - DENSITY_POUND_PER_CUBIC_INCH=33; - DENSITY_POUND_PER_IMPERIAL_GALLON=34; - DENSITY_POUND_PER_U_S_GALLON=35; - DENSITY_SLUG_PER_CUBIC_FOOT=36; - DENSITY_TONNE_PER_CUBIC_CENTIMETER=37; - DENSITY_TONNE_PER_CUBIC_METER=38; - DENSITY_TONNE_PER_CUBIC_MILLIMETER=39; -} - -// -// DynamicViscosity units. -enum DynamicViscosityUnit { - DYNAMICVISCOSITY_CENTIPOISE=0; - DYNAMICVISCOSITY_MICROPASCAL_SECOND=1; - DYNAMICVISCOSITY_MILLIPASCAL_SECOND=2; - DYNAMICVISCOSITY_NEWTON_SECOND_PER_METER_SQUARED=3; - DYNAMICVISCOSITY_PASCAL_SECOND=4; - DYNAMICVISCOSITY_POISE=5; - DYNAMICVISCOSITY_POUND_FORCE_SECOND_PER_SQUARE_FOOT=6; - DYNAMICVISCOSITY_POUND_FORCE_SECOND_PER_SQUARE_INCH=7; - DYNAMICVISCOSITY_REYN=8; -} - -// -// ElectricAdmittance units. -enum ElectricAdmittanceUnit { - ELECTRICADMITTANCE_MICROSIEMENS=0; - ELECTRICADMITTANCE_MILLISIEMENS=1; - ELECTRICADMITTANCE_NANOSIEMENS=2; - ELECTRICADMITTANCE_SIEMENS=3; -} - -// -// ElectricCharge units. -enum ElectricChargeUnit { - ELECTRICCHARGE_AMPERE_HOUR=0; - ELECTRICCHARGE_COULOMB=1; - ELECTRICCHARGE_KILOAMPERE_HOUR=2; - ELECTRICCHARGE_MEGAAMPERE_HOUR=3; - ELECTRICCHARGE_MILLIAMPERE_HOUR=4; -} - -// -// ElectricChargeDensity units. -enum ElectricChargeDensityUnit { - ELECTRICCHARGEDENSITY_COULOMB_PER_CUBIC_METER=0; -} - -// -// ElectricConductance units. -enum ElectricConductanceUnit { - ELECTRICCONDUCTANCE_MICROSIEMENS=0; - ELECTRICCONDUCTANCE_MILLISIEMENS=1; - ELECTRICCONDUCTANCE_SIEMENS=2; -} - -// -// ElectricConductivity units. -enum ElectricConductivityUnit { - ELECTRICCONDUCTIVITY_SIEMENS_PER_FOOT=0; - ELECTRICCONDUCTIVITY_SIEMENS_PER_INCH=1; - ELECTRICCONDUCTIVITY_SIEMENS_PER_METER=2; -} - -// -// ElectricCurrent units. -enum ElectricCurrentUnit { - ELECTRICCURRENT_AMPERE=0; - ELECTRICCURRENT_CENTIAMPERE=1; - ELECTRICCURRENT_KILOAMPERE=2; - ELECTRICCURRENT_MEGAAMPERE=3; - ELECTRICCURRENT_MICROAMPERE=4; - ELECTRICCURRENT_MILLIAMPERE=5; - ELECTRICCURRENT_NANOAMPERE=6; - ELECTRICCURRENT_PICOAMPERE=7; -} - -// -// ElectricCurrentDensity units. -enum ElectricCurrentDensityUnit { - ELECTRICCURRENTDENSITY_AMPERE_PER_SQUARE_FOOT=0; - ELECTRICCURRENTDENSITY_AMPERE_PER_SQUARE_INCH=1; - ELECTRICCURRENTDENSITY_AMPERE_PER_SQUARE_METER=2; -} - -// -// ElectricCurrentGradient units. -enum ElectricCurrentGradientUnit { - ELECTRICCURRENTGRADIENT_AMPERE_PER_SECOND=0; -} - -// -// ElectricField units. -enum ElectricFieldUnit { - ELECTRICFIELD_VOLT_PER_METER=0; -} - -// -// ElectricInductance units. -enum ElectricInductanceUnit { - ELECTRICINDUCTANCE_HENRY=0; - ELECTRICINDUCTANCE_MICROHENRY=1; - ELECTRICINDUCTANCE_MILLIHENRY=2; - ELECTRICINDUCTANCE_NANOHENRY=3; -} - -// -// ElectricPotential units. -enum ElectricPotentialUnit { - ELECTRICPOTENTIAL_KILOVOLT=0; - ELECTRICPOTENTIAL_MEGAVOLT=1; - ELECTRICPOTENTIAL_MICROVOLT=2; - ELECTRICPOTENTIAL_MILLIVOLT=3; - ELECTRICPOTENTIAL_VOLT=4; -} - -// -// ElectricPotentialAc units. -enum ElectricPotentialAcUnit { - ELECTRICPOTENTIALAC_KILOVOLT_AC=0; - ELECTRICPOTENTIALAC_MEGAVOLT_AC=1; - ELECTRICPOTENTIALAC_MICROVOLT_AC=2; - ELECTRICPOTENTIALAC_MILLIVOLT_AC=3; - ELECTRICPOTENTIALAC_VOLT_AC=4; -} - -// -// ElectricPotentialChangeRate units. -enum ElectricPotentialChangeRateUnit { - ELECTRICPOTENTIALCHANGERATE_KILOVOLT_PER_HOUR=0; - ELECTRICPOTENTIALCHANGERATE_KILOVOLT_PER_MICROSECOND=1; - ELECTRICPOTENTIALCHANGERATE_KILOVOLT_PER_MINUTE=2; - ELECTRICPOTENTIALCHANGERATE_KILOVOLT_PER_SECOND=3; - ELECTRICPOTENTIALCHANGERATE_MEGAVOLT_PER_HOUR=4; - ELECTRICPOTENTIALCHANGERATE_MEGAVOLT_PER_MICROSECOND=5; - ELECTRICPOTENTIALCHANGERATE_MEGAVOLT_PER_MINUTE=6; - ELECTRICPOTENTIALCHANGERATE_MEGAVOLT_PER_SECOND=7; - ELECTRICPOTENTIALCHANGERATE_MICROVOLT_PER_HOUR=8; - ELECTRICPOTENTIALCHANGERATE_MICROVOLT_PER_MICROSECOND=9; - ELECTRICPOTENTIALCHANGERATE_MICROVOLT_PER_MINUTE=10; - ELECTRICPOTENTIALCHANGERATE_MICROVOLT_PER_SECOND=11; - ELECTRICPOTENTIALCHANGERATE_MILLIVOLT_PER_HOUR=12; - ELECTRICPOTENTIALCHANGERATE_MILLIVOLT_PER_MICROSECOND=13; - ELECTRICPOTENTIALCHANGERATE_MILLIVOLT_PER_MINUTE=14; - ELECTRICPOTENTIALCHANGERATE_MILLIVOLT_PER_SECOND=15; - ELECTRICPOTENTIALCHANGERATE_VOLT_PER_HOUR=16; - ELECTRICPOTENTIALCHANGERATE_VOLT_PER_MICROSECOND=17; - ELECTRICPOTENTIALCHANGERATE_VOLT_PER_MINUTE=18; - ELECTRICPOTENTIALCHANGERATE_VOLT_PER_SECOND=19; -} - -// -// ElectricPotentialDc units. -enum ElectricPotentialDcUnit { - ELECTRICPOTENTIALDC_KILOVOLT_DC=0; - ELECTRICPOTENTIALDC_MEGAVOLT_DC=1; - ELECTRICPOTENTIALDC_MICROVOLT_DC=2; - ELECTRICPOTENTIALDC_MILLIVOLT_DC=3; - ELECTRICPOTENTIALDC_VOLT_DC=4; -} - -// -// ElectricResistance units. -enum ElectricResistanceUnit { - ELECTRICRESISTANCE_GIGAOHM=0; - ELECTRICRESISTANCE_KILOOHM=1; - ELECTRICRESISTANCE_MEGAOHM=2; - ELECTRICRESISTANCE_MICROOHM=3; - ELECTRICRESISTANCE_MILLIOHM=4; - ELECTRICRESISTANCE_OHM=5; -} - -// -// ElectricResistivity units. -enum ElectricResistivityUnit { - ELECTRICRESISTIVITY_KILOOHM_CENTIMETER=0; - ELECTRICRESISTIVITY_KILOOHM_METER=1; - ELECTRICRESISTIVITY_MEGAOHM_CENTIMETER=2; - ELECTRICRESISTIVITY_MEGAOHM_METER=3; - ELECTRICRESISTIVITY_MICROOHM_CENTIMETER=4; - ELECTRICRESISTIVITY_MICROOHM_METER=5; - ELECTRICRESISTIVITY_MILLIOHM_CENTIMETER=6; - ELECTRICRESISTIVITY_MILLIOHM_METER=7; - ELECTRICRESISTIVITY_NANOOHM_CENTIMETER=8; - ELECTRICRESISTIVITY_NANOOHM_METER=9; - ELECTRICRESISTIVITY_OHM_CENTIMETER=10; - ELECTRICRESISTIVITY_OHM_METER=11; - ELECTRICRESISTIVITY_PICOOHM_CENTIMETER=12; - ELECTRICRESISTIVITY_PICOOHM_METER=13; -} - -// -// ElectricSurfaceChargeDensity units. -enum ElectricSurfaceChargeDensityUnit { - ELECTRICSURFACECHARGEDENSITY_COULOMB_PER_SQUARE_CENTIMETER=0; - ELECTRICSURFACECHARGEDENSITY_COULOMB_PER_SQUARE_INCH=1; - ELECTRICSURFACECHARGEDENSITY_COULOMB_PER_SQUARE_METER=2; -} - -// -// Energy units. -enum EnergyUnit { - ENERGY_BRITISH_THERMAL_UNIT=0; - ENERGY_CALORIE=1; - ENERGY_DECATHERM_EC=2; - ENERGY_DECATHERM_IMPERIAL=3; - ENERGY_DECATHERM_US=4; - ENERGY_ELECTRON_VOLT=5; - ENERGY_ERG=6; - ENERGY_FOOT_POUND=7; - ENERGY_GIGABRITISH_THERMAL_UNIT=8; - ENERGY_GIGAELECTRON_VOLT=9; - ENERGY_GIGAJOULE=10; - ENERGY_GIGAWATT_DAY=11; - ENERGY_GIGAWATT_HOUR=12; - ENERGY_HORSEPOWER_HOUR=13; - ENERGY_JOULE=14; - ENERGY_KILOBRITISH_THERMAL_UNIT=15; - ENERGY_KILOCALORIE=16; - ENERGY_KILOELECTRON_VOLT=17; - ENERGY_KILOJOULE=18; - ENERGY_KILOWATT_DAY=19; - ENERGY_KILOWATT_HOUR=20; - ENERGY_MEGABRITISH_THERMAL_UNIT=21; - ENERGY_MEGACALORIE=22; - ENERGY_MEGAELECTRON_VOLT=23; - ENERGY_MEGAJOULE=24; - ENERGY_MEGAWATT_DAY=25; - ENERGY_MEGAWATT_HOUR=26; - ENERGY_MILLIJOULE=27; - ENERGY_TERAELECTRON_VOLT=28; - ENERGY_TERAWATT_DAY=29; - ENERGY_TERAWATT_HOUR=30; - ENERGY_THERM_EC=31; - ENERGY_THERM_IMPERIAL=32; - ENERGY_THERM_US=33; - ENERGY_WATT_DAY=34; - ENERGY_WATT_HOUR=35; -} - -// -// Entropy units. -enum EntropyUnit { - ENTROPY_CALORIE_PER_KELVIN=0; - ENTROPY_JOULE_PER_DEGREE_CELSIUS=1; - ENTROPY_JOULE_PER_KELVIN=2; - ENTROPY_KILOCALORIE_PER_KELVIN=3; - ENTROPY_KILOJOULE_PER_DEGREE_CELSIUS=4; - ENTROPY_KILOJOULE_PER_KELVIN=5; - ENTROPY_MEGAJOULE_PER_KELVIN=6; -} - -// -// Force units. -enum ForceUnit { - FORCE_DECANEWTON=0; - FORCE_DYN=1; - FORCE_KILOGRAM_FORCE=2; - FORCE_KILONEWTON=3; - FORCE_KILO_POND=4; - FORCE_KILOPOUND_FORCE=5; - FORCE_MEGANEWTON=6; - FORCE_MICRONEWTON=7; - FORCE_MILLINEWTON=8; - FORCE_NEWTON=9; - FORCE_OUNCE_FORCE=10; - FORCE_POUNDAL=11; - FORCE_POUND_FORCE=12; - FORCE_TONNE_FORCE=13; -} - -// -// ForceChangeRate units. -enum ForceChangeRateUnit { - FORCECHANGERATE_CENTINEWTON_PER_SECOND=0; - FORCECHANGERATE_DECANEWTON_PER_MINUTE=1; - FORCECHANGERATE_DECANEWTON_PER_SECOND=2; - FORCECHANGERATE_DECINEWTON_PER_SECOND=3; - FORCECHANGERATE_KILONEWTON_PER_MINUTE=4; - FORCECHANGERATE_KILONEWTON_PER_SECOND=5; - FORCECHANGERATE_MICRONEWTON_PER_SECOND=6; - FORCECHANGERATE_MILLINEWTON_PER_SECOND=7; - FORCECHANGERATE_NANONEWTON_PER_SECOND=8; - FORCECHANGERATE_NEWTON_PER_MINUTE=9; - FORCECHANGERATE_NEWTON_PER_SECOND=10; -} - -// -// ForcePerLength units. -enum ForcePerLengthUnit { - FORCEPERLENGTH_CENTINEWTON_PER_CENTIMETER=0; - FORCEPERLENGTH_CENTINEWTON_PER_METER=1; - FORCEPERLENGTH_CENTINEWTON_PER_MILLIMETER=2; - FORCEPERLENGTH_DECANEWTON_PER_CENTIMETER=3; - FORCEPERLENGTH_DECANEWTON_PER_METER=4; - FORCEPERLENGTH_DECANEWTON_PER_MILLIMETER=5; - FORCEPERLENGTH_DECINEWTON_PER_CENTIMETER=6; - FORCEPERLENGTH_DECINEWTON_PER_METER=7; - FORCEPERLENGTH_DECINEWTON_PER_MILLIMETER=8; - FORCEPERLENGTH_KILOGRAM_FORCE_PER_CENTIMETER=9; - FORCEPERLENGTH_KILOGRAM_FORCE_PER_METER=10; - FORCEPERLENGTH_KILOGRAM_FORCE_PER_MILLIMETER=11; - FORCEPERLENGTH_KILONEWTON_PER_CENTIMETER=12; - FORCEPERLENGTH_KILONEWTON_PER_METER=13; - FORCEPERLENGTH_KILONEWTON_PER_MILLIMETER=14; - FORCEPERLENGTH_KILOPOUND_FORCE_PER_FOOT=15; - FORCEPERLENGTH_KILOPOUND_FORCE_PER_INCH=16; - FORCEPERLENGTH_MEGANEWTON_PER_CENTIMETER=17; - FORCEPERLENGTH_MEGANEWTON_PER_METER=18; - FORCEPERLENGTH_MEGANEWTON_PER_MILLIMETER=19; - FORCEPERLENGTH_MICRONEWTON_PER_CENTIMETER=20; - FORCEPERLENGTH_MICRONEWTON_PER_METER=21; - FORCEPERLENGTH_MICRONEWTON_PER_MILLIMETER=22; - FORCEPERLENGTH_MILLINEWTON_PER_CENTIMETER=23; - FORCEPERLENGTH_MILLINEWTON_PER_METER=24; - FORCEPERLENGTH_MILLINEWTON_PER_MILLIMETER=25; - FORCEPERLENGTH_NANONEWTON_PER_CENTIMETER=26; - FORCEPERLENGTH_NANONEWTON_PER_METER=27; - FORCEPERLENGTH_NANONEWTON_PER_MILLIMETER=28; - FORCEPERLENGTH_NEWTON_PER_CENTIMETER=29; - FORCEPERLENGTH_NEWTON_PER_METER=30; - FORCEPERLENGTH_NEWTON_PER_MILLIMETER=31; - FORCEPERLENGTH_POUND_FORCE_PER_FOOT=32; - FORCEPERLENGTH_POUND_FORCE_PER_INCH=33; - FORCEPERLENGTH_POUND_FORCE_PER_YARD=34; - FORCEPERLENGTH_TONNE_FORCE_PER_CENTIMETER=35; - FORCEPERLENGTH_TONNE_FORCE_PER_METER=36; - FORCEPERLENGTH_TONNE_FORCE_PER_MILLIMETER=37; -} - -// -// Frequency units. -enum FrequencyUnit { - FREQUENCY_BEAT_PER_MINUTE=0; - FREQUENCY_CYCLE_PER_HOUR=1; - FREQUENCY_CYCLE_PER_MINUTE=2; - FREQUENCY_GIGAHERTZ=3; - FREQUENCY_HERTZ=4; - FREQUENCY_KILOHERTZ=5; - FREQUENCY_MEGAHERTZ=6; - FREQUENCY_RADIAN_PER_SECOND=7; - FREQUENCY_TERAHERTZ=8; -} - -// -// HeatFlux units. -enum HeatFluxUnit { - HEATFLUX_BTU_PER_HOUR_SQUARE_FOOT=0; - HEATFLUX_BTU_PER_MINUTE_SQUARE_FOOT=1; - HEATFLUX_BTU_PER_SECOND_SQUARE_FOOT=2; - HEATFLUX_BTU_PER_SECOND_SQUARE_INCH=3; - HEATFLUX_CALORIE_PER_SECOND_SQUARE_CENTIMETER=4; - HEATFLUX_CENTIWATT_PER_SQUARE_METER=5; - HEATFLUX_DECIWATT_PER_SQUARE_METER=6; - HEATFLUX_KILOCALORIE_PER_HOUR_SQUARE_METER=7; - HEATFLUX_KILOCALORIE_PER_SECOND_SQUARE_CENTIMETER=8; - HEATFLUX_KILOWATT_PER_SQUARE_METER=9; - HEATFLUX_MICROWATT_PER_SQUARE_METER=10; - HEATFLUX_MILLIWATT_PER_SQUARE_METER=11; - HEATFLUX_NANOWATT_PER_SQUARE_METER=12; - HEATFLUX_POUND_FORCE_PER_FOOT_SECOND=13; - HEATFLUX_POUND_PER_SECOND_CUBED=14; - HEATFLUX_WATT_PER_SQUARE_FOOT=15; - HEATFLUX_WATT_PER_SQUARE_INCH=16; - HEATFLUX_WATT_PER_SQUARE_METER=17; -} - -// -// HeatTransferCoefficient units. -enum HeatTransferCoefficientUnit { - HEATTRANSFERCOEFFICIENT_BTU_PER_SQUARE_FOOT_DEGREE_FAHRENHEIT=0; - HEATTRANSFERCOEFFICIENT_WATT_PER_SQUARE_METER_CELSIUS=1; - HEATTRANSFERCOEFFICIENT_WATT_PER_SQUARE_METER_KELVIN=2; -} - -// -// InverseArea units. -enum InverseAreaUnit { - INVERSEAREA_INVERSE_SQUARE_CENTIMETER=0; - INVERSEAREA_INVERSE_SQUARE_FOOT=1; - INVERSEAREA_INVERSE_SQUARE_INCH=2; - INVERSEAREA_INVERSE_SQUARE_METER=3; - INVERSEAREA_INVERSE_SQUARE_MICROMETER=4; - INVERSEAREA_INVERSE_SQUARE_MILLIMETER=5; -} - -// -// InverseLength units. -enum InverseLengthUnit { - INVERSELENGTH_INVERSE_CENTIMETER=0; - INVERSELENGTH_INVERSE_FOOT=1; - INVERSELENGTH_INVERSE_INCH=2; - INVERSELENGTH_INVERSE_METER=3; - INVERSELENGTH_INVERSE_MICROMETER=4; - INVERSELENGTH_INVERSE_MILLIMETER=5; -} - -// -// KinematicViscosity units. -enum KinematicViscosityUnit { - KINEMATICVISCOSITY_CENTISTOKES=0; - KINEMATICVISCOSITY_DECISTOKES=1; - KINEMATICVISCOSITY_KILOSTOKES=2; - KINEMATICVISCOSITY_MICROSTOKES=3; - KINEMATICVISCOSITY_MILLISTOKES=4; - KINEMATICVISCOSITY_NANOSTOKES=5; - KINEMATICVISCOSITY_SQUARE_METER_PER_SECOND=6; - KINEMATICVISCOSITY_STOKES=7; -} - -// -// Length units. -enum LengthUnit { - LENGTH_ASTRONOMICAL_UNIT=0; - LENGTH_CENTIMETER=1; - LENGTH_DECIMETER=2; - LENGTH_DTP_PICA=3; - LENGTH_DTP_POINT=4; - LENGTH_FATHOM=5; - LENGTH_FOOT=6; - LENGTH_HAND=7; - LENGTH_HECTOMETER=8; - LENGTH_INCH=9; - LENGTH_KILOLIGHT_YEAR=10; - LENGTH_KILOMETER=11; - LENGTH_KILOPARSEC=12; - LENGTH_LIGHT_YEAR=13; - LENGTH_MEGALIGHT_YEAR=14; - LENGTH_MEGAPARSEC=15; - LENGTH_METER=16; - LENGTH_MICROINCH=17; - LENGTH_MICROMETER=18; - LENGTH_MIL=19; - LENGTH_MILE=20; - LENGTH_MILLIMETER=21; - LENGTH_NANOMETER=22; - LENGTH_NAUTICAL_MILE=23; - LENGTH_PARSEC=24; - LENGTH_PRINTER_PICA=25; - LENGTH_PRINTER_POINT=26; - LENGTH_SHACKLE=27; - LENGTH_SOLAR_RADIUS=28; - LENGTH_TWIP=29; - LENGTH_US_SURVEY_FOOT=30; - LENGTH_YARD=31; -} - -// -// MagneticField units. -enum MagneticFieldUnit { - MAGNETICFIELD_GAUSS=0; - MAGNETICFIELD_MICROTESLA=1; - MAGNETICFIELD_MILLITESLA=2; - MAGNETICFIELD_NANOTESLA=3; - MAGNETICFIELD_TESLA=4; -} - -// -// Mass units. -enum MassUnit { - MASS_CENTIGRAM=0; - MASS_DECAGRAM=1; - MASS_DECIGRAM=2; - MASS_EARTH_MASS=3; - MASS_GRAIN=4; - MASS_GRAM=5; - MASS_HECTOGRAM=6; - MASS_KILOGRAM=7; - MASS_KILOPOUND=8; - MASS_KILOTONNE=9; - MASS_LONG_HUNDREDWEIGHT=10; - MASS_LONG_TON=11; - MASS_MEGAPOUND=12; - MASS_MEGATONNE=13; - MASS_MICROGRAM=14; - MASS_MILLIGRAM=15; - MASS_NANOGRAM=16; - MASS_OUNCE=17; - MASS_POUND=18; - MASS_SHORT_HUNDREDWEIGHT=19; - MASS_SHORT_TON=20; - MASS_SLUG=21; - MASS_SOLAR_MASS=22; - MASS_STONE=23; - MASS_TONNE=24; -} - -// -// MassConcentration units. -enum MassConcentrationUnit { - MASSCONCENTRATION_CENTIGRAM_PER_DECILITER=0; - MASSCONCENTRATION_CENTIGRAM_PER_LITER=1; - MASSCONCENTRATION_CENTIGRAM_PER_MICROLITER=2; - MASSCONCENTRATION_CENTIGRAM_PER_MILLILITER=3; - MASSCONCENTRATION_DECIGRAM_PER_DECILITER=4; - MASSCONCENTRATION_DECIGRAM_PER_LITER=5; - MASSCONCENTRATION_DECIGRAM_PER_MICROLITER=6; - MASSCONCENTRATION_DECIGRAM_PER_MILLILITER=7; - MASSCONCENTRATION_GRAM_PER_CUBIC_CENTIMETER=8; - MASSCONCENTRATION_GRAM_PER_CUBIC_METER=9; - MASSCONCENTRATION_GRAM_PER_CUBIC_MILLIMETER=10; - MASSCONCENTRATION_GRAM_PER_DECILITER=11; - MASSCONCENTRATION_GRAM_PER_LITER=12; - MASSCONCENTRATION_GRAM_PER_MICROLITER=13; - MASSCONCENTRATION_GRAM_PER_MILLILITER=14; - MASSCONCENTRATION_KILOGRAM_PER_CUBIC_CENTIMETER=15; - MASSCONCENTRATION_KILOGRAM_PER_CUBIC_METER=16; - MASSCONCENTRATION_KILOGRAM_PER_CUBIC_MILLIMETER=17; - MASSCONCENTRATION_KILOGRAM_PER_LITER=18; - MASSCONCENTRATION_KILOPOUND_PER_CUBIC_FOOT=19; - MASSCONCENTRATION_KILOPOUND_PER_CUBIC_INCH=20; - MASSCONCENTRATION_MICROGRAM_PER_CUBIC_METER=21; - MASSCONCENTRATION_MICROGRAM_PER_DECILITER=22; - MASSCONCENTRATION_MICROGRAM_PER_LITER=23; - MASSCONCENTRATION_MICROGRAM_PER_MICROLITER=24; - MASSCONCENTRATION_MICROGRAM_PER_MILLILITER=25; - MASSCONCENTRATION_MILLIGRAM_PER_CUBIC_METER=26; - MASSCONCENTRATION_MILLIGRAM_PER_DECILITER=27; - MASSCONCENTRATION_MILLIGRAM_PER_LITER=28; - MASSCONCENTRATION_MILLIGRAM_PER_MICROLITER=29; - MASSCONCENTRATION_MILLIGRAM_PER_MILLILITER=30; - MASSCONCENTRATION_NANOGRAM_PER_DECILITER=31; - MASSCONCENTRATION_NANOGRAM_PER_LITER=32; - MASSCONCENTRATION_NANOGRAM_PER_MICROLITER=33; - MASSCONCENTRATION_NANOGRAM_PER_MILLILITER=34; - MASSCONCENTRATION_PICOGRAM_PER_DECILITER=35; - MASSCONCENTRATION_PICOGRAM_PER_LITER=36; - MASSCONCENTRATION_PICOGRAM_PER_MICROLITER=37; - MASSCONCENTRATION_PICOGRAM_PER_MILLILITER=38; - MASSCONCENTRATION_POUND_PER_CUBIC_FOOT=39; - MASSCONCENTRATION_POUND_PER_CUBIC_INCH=40; - MASSCONCENTRATION_POUND_PER_IMPERIAL_GALLON=41; - MASSCONCENTRATION_POUND_PER_U_S_GALLON=42; - MASSCONCENTRATION_SLUG_PER_CUBIC_FOOT=43; - MASSCONCENTRATION_TONNE_PER_CUBIC_CENTIMETER=44; - MASSCONCENTRATION_TONNE_PER_CUBIC_METER=45; - MASSCONCENTRATION_TONNE_PER_CUBIC_MILLIMETER=46; -} - -// -// MassFlow units. -enum MassFlowUnit { - MASSFLOW_CENTIGRAM_PER_DAY=0; - MASSFLOW_CENTIGRAM_PER_SECOND=1; - MASSFLOW_DECAGRAM_PER_DAY=2; - MASSFLOW_DECAGRAM_PER_SECOND=3; - MASSFLOW_DECIGRAM_PER_DAY=4; - MASSFLOW_DECIGRAM_PER_SECOND=5; - MASSFLOW_GRAM_PER_DAY=6; - MASSFLOW_GRAM_PER_HOUR=7; - MASSFLOW_GRAM_PER_SECOND=8; - MASSFLOW_HECTOGRAM_PER_DAY=9; - MASSFLOW_HECTOGRAM_PER_SECOND=10; - MASSFLOW_KILOGRAM_PER_DAY=11; - MASSFLOW_KILOGRAM_PER_HOUR=12; - MASSFLOW_KILOGRAM_PER_MINUTE=13; - MASSFLOW_KILOGRAM_PER_SECOND=14; - MASSFLOW_MEGAGRAM_PER_DAY=15; - MASSFLOW_MEGAPOUND_PER_DAY=16; - MASSFLOW_MEGAPOUND_PER_HOUR=17; - MASSFLOW_MEGAPOUND_PER_MINUTE=18; - MASSFLOW_MEGAPOUND_PER_SECOND=19; - MASSFLOW_MICROGRAM_PER_DAY=20; - MASSFLOW_MICROGRAM_PER_SECOND=21; - MASSFLOW_MILLIGRAM_PER_DAY=22; - MASSFLOW_MILLIGRAM_PER_SECOND=23; - MASSFLOW_NANOGRAM_PER_DAY=24; - MASSFLOW_NANOGRAM_PER_SECOND=25; - MASSFLOW_POUND_PER_DAY=26; - MASSFLOW_POUND_PER_HOUR=27; - MASSFLOW_POUND_PER_MINUTE=28; - MASSFLOW_POUND_PER_SECOND=29; - MASSFLOW_SHORT_TON_PER_HOUR=30; - MASSFLOW_TONNE_PER_DAY=31; - MASSFLOW_TONNE_PER_HOUR=32; -} - -// -// MassFlux units. -enum MassFluxUnit { - MASSFLUX_GRAM_PER_HOUR_PER_SQUARE_CENTIMETER=0; - MASSFLUX_GRAM_PER_HOUR_PER_SQUARE_METER=1; - MASSFLUX_GRAM_PER_HOUR_PER_SQUARE_MILLIMETER=2; - MASSFLUX_GRAM_PER_SECOND_PER_SQUARE_CENTIMETER=3; - MASSFLUX_GRAM_PER_SECOND_PER_SQUARE_METER=4; - MASSFLUX_GRAM_PER_SECOND_PER_SQUARE_MILLIMETER=5; - MASSFLUX_KILOGRAM_PER_HOUR_PER_SQUARE_CENTIMETER=6; - MASSFLUX_KILOGRAM_PER_HOUR_PER_SQUARE_METER=7; - MASSFLUX_KILOGRAM_PER_HOUR_PER_SQUARE_MILLIMETER=8; - MASSFLUX_KILOGRAM_PER_SECOND_PER_SQUARE_CENTIMETER=9; - MASSFLUX_KILOGRAM_PER_SECOND_PER_SQUARE_METER=10; - MASSFLUX_KILOGRAM_PER_SECOND_PER_SQUARE_MILLIMETER=11; -} - -// -// MassFraction units. -enum MassFractionUnit { - MASSFRACTION_CENTIGRAM_PER_GRAM=0; - MASSFRACTION_CENTIGRAM_PER_KILOGRAM=1; - MASSFRACTION_DECAGRAM_PER_GRAM=2; - MASSFRACTION_DECAGRAM_PER_KILOGRAM=3; - MASSFRACTION_DECIGRAM_PER_GRAM=4; - MASSFRACTION_DECIGRAM_PER_KILOGRAM=5; - MASSFRACTION_DECIMAL_FRACTION=6; - MASSFRACTION_GRAM_PER_GRAM=7; - MASSFRACTION_GRAM_PER_KILOGRAM=8; - MASSFRACTION_HECTOGRAM_PER_GRAM=9; - MASSFRACTION_HECTOGRAM_PER_KILOGRAM=10; - MASSFRACTION_KILOGRAM_PER_GRAM=11; - MASSFRACTION_KILOGRAM_PER_KILOGRAM=12; - MASSFRACTION_MICROGRAM_PER_GRAM=13; - MASSFRACTION_MICROGRAM_PER_KILOGRAM=14; - MASSFRACTION_MILLIGRAM_PER_GRAM=15; - MASSFRACTION_MILLIGRAM_PER_KILOGRAM=16; - MASSFRACTION_NANOGRAM_PER_GRAM=17; - MASSFRACTION_NANOGRAM_PER_KILOGRAM=18; - MASSFRACTION_PART_PER_BILLION=19; - MASSFRACTION_PART_PER_MILLION=20; - MASSFRACTION_PART_PER_THOUSAND=21; - MASSFRACTION_PART_PER_TRILLION=22; - MASSFRACTION_PERCENT=23; -} - -// -// MassMomentOfInertia units. -enum MassMomentOfInertiaUnit { - MASSMOMENTOFINERTIA_GRAM_SQUARE_CENTIMETER=0; - MASSMOMENTOFINERTIA_GRAM_SQUARE_DECIMETER=1; - MASSMOMENTOFINERTIA_GRAM_SQUARE_METER=2; - MASSMOMENTOFINERTIA_GRAM_SQUARE_MILLIMETER=3; - MASSMOMENTOFINERTIA_KILOGRAM_SQUARE_CENTIMETER=4; - MASSMOMENTOFINERTIA_KILOGRAM_SQUARE_DECIMETER=5; - MASSMOMENTOFINERTIA_KILOGRAM_SQUARE_METER=6; - MASSMOMENTOFINERTIA_KILOGRAM_SQUARE_MILLIMETER=7; - MASSMOMENTOFINERTIA_KILOTONNE_SQUARE_CENTIMETER=8; - MASSMOMENTOFINERTIA_KILOTONNE_SQUARE_DECIMETER=9; - MASSMOMENTOFINERTIA_KILOTONNE_SQUARE_METER=10; - MASSMOMENTOFINERTIA_KILOTONNE_SQUARE_MILIMETER=11; - MASSMOMENTOFINERTIA_MEGATONNE_SQUARE_CENTIMETER=12; - MASSMOMENTOFINERTIA_MEGATONNE_SQUARE_DECIMETER=13; - MASSMOMENTOFINERTIA_MEGATONNE_SQUARE_METER=14; - MASSMOMENTOFINERTIA_MEGATONNE_SQUARE_MILIMETER=15; - MASSMOMENTOFINERTIA_MILLIGRAM_SQUARE_CENTIMETER=16; - MASSMOMENTOFINERTIA_MILLIGRAM_SQUARE_DECIMETER=17; - MASSMOMENTOFINERTIA_MILLIGRAM_SQUARE_METER=18; - MASSMOMENTOFINERTIA_MILLIGRAM_SQUARE_MILLIMETER=19; - MASSMOMENTOFINERTIA_POUND_SQUARE_FOOT=20; - MASSMOMENTOFINERTIA_POUND_SQUARE_INCH=21; - MASSMOMENTOFINERTIA_SLUG_SQUARE_FOOT=22; - MASSMOMENTOFINERTIA_SLUG_SQUARE_INCH=23; - MASSMOMENTOFINERTIA_TONNE_SQUARE_CENTIMETER=24; - MASSMOMENTOFINERTIA_TONNE_SQUARE_DECIMETER=25; - MASSMOMENTOFINERTIA_TONNE_SQUARE_METER=26; - MASSMOMENTOFINERTIA_TONNE_SQUARE_MILIMETER=27; -} - -// -// Molarity units. -enum MolarityUnit { - MOLARITY_CENTIMOLES_PER_LITER=0; - MOLARITY_DECIMOLES_PER_LITER=1; - MOLARITY_MICROMOLES_PER_LITER=2; - MOLARITY_MILLIMOLES_PER_LITER=3; - MOLARITY_MOLES_PER_CUBIC_METER=4; - MOLARITY_MOLES_PER_LITER=5; - MOLARITY_NANOMOLES_PER_LITER=6; - MOLARITY_PICOMOLES_PER_LITER=7; -} - -// -// MolarMass units. -enum MolarMassUnit { - MOLARMASS_CENTIGRAM_PER_MOLE=0; - MOLARMASS_DECAGRAM_PER_MOLE=1; - MOLARMASS_DECIGRAM_PER_MOLE=2; - MOLARMASS_GRAM_PER_MOLE=3; - MOLARMASS_HECTOGRAM_PER_MOLE=4; - MOLARMASS_KILOGRAM_PER_MOLE=5; - MOLARMASS_KILOPOUND_PER_MOLE=6; - MOLARMASS_MEGAPOUND_PER_MOLE=7; - MOLARMASS_MICROGRAM_PER_MOLE=8; - MOLARMASS_MILLIGRAM_PER_MOLE=9; - MOLARMASS_NANOGRAM_PER_MOLE=10; - MOLARMASS_POUND_PER_MOLE=11; -} - -// -// Permeability units. -enum PermeabilityUnit { - PERMEABILITY_HENRY_PER_METER=0; -} - -// -// Permittivity units. -enum PermittivityUnit { - PERMITTIVITY_FARAD_PER_METER=0; -} - -// -// Power units. -enum PowerUnit { - POWER_BOILER_HORSEPOWER=0; - POWER_BRITISH_THERMAL_UNIT_PER_HOUR=1; - POWER_DECAWATT=2; - POWER_DECIWATT=3; - POWER_ELECTRICAL_HORSEPOWER=4; - POWER_FEMTOWATT=5; - POWER_GIGAJOULE_PER_HOUR=6; - POWER_GIGAWATT=7; - POWER_HYDRAULIC_HORSEPOWER=8; - POWER_JOULE_PER_HOUR=9; - POWER_KILOBRITISH_THERMAL_UNIT_PER_HOUR=10; - POWER_KILOJOULE_PER_HOUR=11; - POWER_KILOWATT=12; - POWER_MECHANICAL_HORSEPOWER=13; - POWER_MEGAJOULE_PER_HOUR=14; - POWER_MEGAWATT=15; - POWER_METRIC_HORSEPOWER=16; - POWER_MICROWATT=17; - POWER_MILLIJOULE_PER_HOUR=18; - POWER_MILLIWATT=19; - POWER_NANOWATT=20; - POWER_PETAWATT=21; - POWER_PICOWATT=22; - POWER_TERAWATT=23; - POWER_WATT=24; -} - -// -// PowerDensity units. -enum PowerDensityUnit { - POWERDENSITY_DECAWATT_PER_CUBIC_FOOT=0; - POWERDENSITY_DECAWATT_PER_CUBIC_INCH=1; - POWERDENSITY_DECAWATT_PER_CUBIC_METER=2; - POWERDENSITY_DECAWATT_PER_LITER=3; - POWERDENSITY_DECIWATT_PER_CUBIC_FOOT=4; - POWERDENSITY_DECIWATT_PER_CUBIC_INCH=5; - POWERDENSITY_DECIWATT_PER_CUBIC_METER=6; - POWERDENSITY_DECIWATT_PER_LITER=7; - POWERDENSITY_GIGAWATT_PER_CUBIC_FOOT=8; - POWERDENSITY_GIGAWATT_PER_CUBIC_INCH=9; - POWERDENSITY_GIGAWATT_PER_CUBIC_METER=10; - POWERDENSITY_GIGAWATT_PER_LITER=11; - POWERDENSITY_KILOWATT_PER_CUBIC_FOOT=12; - POWERDENSITY_KILOWATT_PER_CUBIC_INCH=13; - POWERDENSITY_KILOWATT_PER_CUBIC_METER=14; - POWERDENSITY_KILOWATT_PER_LITER=15; - POWERDENSITY_MEGAWATT_PER_CUBIC_FOOT=16; - POWERDENSITY_MEGAWATT_PER_CUBIC_INCH=17; - POWERDENSITY_MEGAWATT_PER_CUBIC_METER=18; - POWERDENSITY_MEGAWATT_PER_LITER=19; - POWERDENSITY_MICROWATT_PER_CUBIC_FOOT=20; - POWERDENSITY_MICROWATT_PER_CUBIC_INCH=21; - POWERDENSITY_MICROWATT_PER_CUBIC_METER=22; - POWERDENSITY_MICROWATT_PER_LITER=23; - POWERDENSITY_MILLIWATT_PER_CUBIC_FOOT=24; - POWERDENSITY_MILLIWATT_PER_CUBIC_INCH=25; - POWERDENSITY_MILLIWATT_PER_CUBIC_METER=26; - POWERDENSITY_MILLIWATT_PER_LITER=27; - POWERDENSITY_NANOWATT_PER_CUBIC_FOOT=28; - POWERDENSITY_NANOWATT_PER_CUBIC_INCH=29; - POWERDENSITY_NANOWATT_PER_CUBIC_METER=30; - POWERDENSITY_NANOWATT_PER_LITER=31; - POWERDENSITY_PICOWATT_PER_CUBIC_FOOT=32; - POWERDENSITY_PICOWATT_PER_CUBIC_INCH=33; - POWERDENSITY_PICOWATT_PER_CUBIC_METER=34; - POWERDENSITY_PICOWATT_PER_LITER=35; - POWERDENSITY_TERAWATT_PER_CUBIC_FOOT=36; - POWERDENSITY_TERAWATT_PER_CUBIC_INCH=37; - POWERDENSITY_TERAWATT_PER_CUBIC_METER=38; - POWERDENSITY_TERAWATT_PER_LITER=39; - POWERDENSITY_WATT_PER_CUBIC_FOOT=40; - POWERDENSITY_WATT_PER_CUBIC_INCH=41; - POWERDENSITY_WATT_PER_CUBIC_METER=42; - POWERDENSITY_WATT_PER_LITER=43; -} - -// -// PowerRatio units. -enum PowerRatioUnit { - POWERRATIO_DECIBEL_MILLIWATT=0; - POWERRATIO_DECIBEL_WATT=1; -} - -// -// Pressure units. -enum PressureUnit { - PRESSURE_ATMOSPHERE=0; - PRESSURE_BAR=1; - PRESSURE_CENTIBAR=2; - PRESSURE_DECAPASCAL=3; - PRESSURE_DECIBAR=4; - PRESSURE_DYNE_PER_SQUARE_CENTIMETER=5; - PRESSURE_FOOT_OF_HEAD=6; - PRESSURE_GIGAPASCAL=7; - PRESSURE_HECTOPASCAL=8; - PRESSURE_INCH_OF_MERCURY=9; - PRESSURE_INCH_OF_WATER_COLUMN=10; - PRESSURE_KILOBAR=11; - PRESSURE_KILOGRAM_FORCE_PER_SQUARE_CENTIMETER=12; - PRESSURE_KILOGRAM_FORCE_PER_SQUARE_METER=13; - PRESSURE_KILOGRAM_FORCE_PER_SQUARE_MILLIMETER=14; - PRESSURE_KILONEWTON_PER_SQUARE_CENTIMETER=15; - PRESSURE_KILONEWTON_PER_SQUARE_METER=16; - PRESSURE_KILONEWTON_PER_SQUARE_MILLIMETER=17; - PRESSURE_KILOPASCAL=18; - PRESSURE_KILOPOUND_FORCE_PER_SQUARE_FOOT=19; - PRESSURE_KILOPOUND_FORCE_PER_SQUARE_INCH=20; - PRESSURE_MEGABAR=21; - PRESSURE_MEGANEWTON_PER_SQUARE_METER=22; - PRESSURE_MEGAPASCAL=23; - PRESSURE_METER_OF_HEAD=24; - PRESSURE_MICROBAR=25; - PRESSURE_MICROPASCAL=26; - PRESSURE_MILLIBAR=27; - PRESSURE_MILLIMETER_OF_MERCURY=28; - PRESSURE_MILLIPASCAL=29; - PRESSURE_NEWTON_PER_SQUARE_CENTIMETER=30; - PRESSURE_NEWTON_PER_SQUARE_METER=31; - PRESSURE_NEWTON_PER_SQUARE_MILLIMETER=32; - PRESSURE_PASCAL=33; - PRESSURE_POUND_FORCE_PER_SQUARE_FOOT=34; - PRESSURE_POUND_FORCE_PER_SQUARE_INCH=35; - PRESSURE_POUND_PER_INCH_SECOND_SQUARED=36; - PRESSURE_TECHNICAL_ATMOSPHERE=37; - PRESSURE_TONNE_FORCE_PER_SQUARE_CENTIMETER=38; - PRESSURE_TONNE_FORCE_PER_SQUARE_METER=39; - PRESSURE_TONNE_FORCE_PER_SQUARE_MILLIMETER=40; - PRESSURE_TORR=41; -} - -// -// Ratio units. -enum RatioUnit { - RATIO_DECIMAL_FRACTION=0; - RATIO_PART_PER_BILLION=1; - RATIO_PART_PER_MILLION=2; - RATIO_PART_PER_THOUSAND=3; - RATIO_PART_PER_TRILLION=4; - RATIO_PERCENT=5; -} - -// -// RatioChangeRate units. -enum RatioChangeRateUnit { - RATIOCHANGERATE_DECIMAL_FRACTION_PER_SECOND=0; - RATIOCHANGERATE_PERCENT_PER_SECOND=1; -} - -// -// ReactiveEnergy units. -enum ReactiveEnergyUnit { - REACTIVEENERGY_KILOVOLTAMPERE_REACTIVE_HOUR=0; - REACTIVEENERGY_MEGAVOLTAMPERE_REACTIVE_HOUR=1; - REACTIVEENERGY_VOLTAMPERE_REACTIVE_HOUR=2; -} - -// -// ReactivePower units. -enum ReactivePowerUnit { - REACTIVEPOWER_GIGAVOLTAMPERE_REACTIVE=0; - REACTIVEPOWER_KILOVOLTAMPERE_REACTIVE=1; - REACTIVEPOWER_MEGAVOLTAMPERE_REACTIVE=2; - REACTIVEPOWER_VOLTAMPERE_REACTIVE=3; -} - -// -// RotationalAcceleration units. -enum RotationalAccelerationUnit { - ROTATIONALACCELERATION_DEGREE_PER_SECOND_SQUARED=0; - ROTATIONALACCELERATION_RADIAN_PER_SECOND_SQUARED=1; - ROTATIONALACCELERATION_REVOLUTION_PER_MINUTE_PER_SECOND=2; - ROTATIONALACCELERATION_REVOLUTION_PER_SECOND_SQUARED=3; -} - -// -// RotationalSpeed units. -enum RotationalSpeedUnit { - ROTATIONALSPEED_CENTIRADIAN_PER_SECOND=0; - ROTATIONALSPEED_DECIRADIAN_PER_SECOND=1; - ROTATIONALSPEED_DEGREE_PER_MINUTE=2; - ROTATIONALSPEED_DEGREE_PER_SECOND=3; - ROTATIONALSPEED_MICRODEGREE_PER_SECOND=4; - ROTATIONALSPEED_MICRORADIAN_PER_SECOND=5; - ROTATIONALSPEED_MILLIDEGREE_PER_SECOND=6; - ROTATIONALSPEED_MILLIRADIAN_PER_SECOND=7; - ROTATIONALSPEED_NANODEGREE_PER_SECOND=8; - ROTATIONALSPEED_NANORADIAN_PER_SECOND=9; - ROTATIONALSPEED_RADIAN_PER_SECOND=10; - ROTATIONALSPEED_REVOLUTION_PER_MINUTE=11; - ROTATIONALSPEED_REVOLUTION_PER_SECOND=12; -} - -// -// RotationalStiffness units. -enum RotationalStiffnessUnit { - ROTATIONALSTIFFNESS_CENTINEWTON_METER_PER_DEGREE=0; - ROTATIONALSTIFFNESS_CENTINEWTON_MILLIMETER_PER_DEGREE=1; - ROTATIONALSTIFFNESS_CENTINEWTON_MILLIMETER_PER_RADIAN=2; - ROTATIONALSTIFFNESS_DECANEWTON_METER_PER_DEGREE=3; - ROTATIONALSTIFFNESS_DECANEWTON_MILLIMETER_PER_DEGREE=4; - ROTATIONALSTIFFNESS_DECANEWTON_MILLIMETER_PER_RADIAN=5; - ROTATIONALSTIFFNESS_DECINEWTON_METER_PER_DEGREE=6; - ROTATIONALSTIFFNESS_DECINEWTON_MILLIMETER_PER_DEGREE=7; - ROTATIONALSTIFFNESS_DECINEWTON_MILLIMETER_PER_RADIAN=8; - ROTATIONALSTIFFNESS_KILONEWTON_METER_PER_DEGREE=9; - ROTATIONALSTIFFNESS_KILONEWTON_METER_PER_RADIAN=10; - ROTATIONALSTIFFNESS_KILONEWTON_MILLIMETER_PER_DEGREE=11; - ROTATIONALSTIFFNESS_KILONEWTON_MILLIMETER_PER_RADIAN=12; - ROTATIONALSTIFFNESS_KILOPOUND_FORCE_FOOT_PER_DEGREES=13; - ROTATIONALSTIFFNESS_MEGANEWTON_METER_PER_DEGREE=14; - ROTATIONALSTIFFNESS_MEGANEWTON_METER_PER_RADIAN=15; - ROTATIONALSTIFFNESS_MEGANEWTON_MILLIMETER_PER_DEGREE=16; - ROTATIONALSTIFFNESS_MEGANEWTON_MILLIMETER_PER_RADIAN=17; - ROTATIONALSTIFFNESS_MICRONEWTON_METER_PER_DEGREE=18; - ROTATIONALSTIFFNESS_MICRONEWTON_MILLIMETER_PER_DEGREE=19; - ROTATIONALSTIFFNESS_MICRONEWTON_MILLIMETER_PER_RADIAN=20; - ROTATIONALSTIFFNESS_MILLINEWTON_METER_PER_DEGREE=21; - ROTATIONALSTIFFNESS_MILLINEWTON_MILLIMETER_PER_DEGREE=22; - ROTATIONALSTIFFNESS_MILLINEWTON_MILLIMETER_PER_RADIAN=23; - ROTATIONALSTIFFNESS_NANONEWTON_METER_PER_DEGREE=24; - ROTATIONALSTIFFNESS_NANONEWTON_MILLIMETER_PER_DEGREE=25; - ROTATIONALSTIFFNESS_NANONEWTON_MILLIMETER_PER_RADIAN=26; - ROTATIONALSTIFFNESS_NEWTON_METER_PER_DEGREE=27; - ROTATIONALSTIFFNESS_NEWTON_METER_PER_RADIAN=28; - ROTATIONALSTIFFNESS_NEWTON_MILLIMETER_PER_DEGREE=29; - ROTATIONALSTIFFNESS_NEWTON_MILLIMETER_PER_RADIAN=30; - ROTATIONALSTIFFNESS_POUND_FORCE_FEET_PER_RADIAN=31; - ROTATIONALSTIFFNESS_POUND_FORCE_FOOT_PER_DEGREES=32; -} - -// -// RotationalStiffnessPerLength units. -enum RotationalStiffnessPerLengthUnit { - ROTATIONALSTIFFNESSPERLENGTH_KILONEWTON_METER_PER_RADIAN_PER_METER=0; - ROTATIONALSTIFFNESSPERLENGTH_KILOPOUND_FORCE_FOOT_PER_DEGREES_PER_FOOT=1; - ROTATIONALSTIFFNESSPERLENGTH_MEGANEWTON_METER_PER_RADIAN_PER_METER=2; - ROTATIONALSTIFFNESSPERLENGTH_NEWTON_METER_PER_RADIAN_PER_METER=3; - ROTATIONALSTIFFNESSPERLENGTH_POUND_FORCE_FOOT_PER_DEGREES_PER_FOOT=4; -} - -// -// SolidAngle units. -enum SolidAngleUnit { - SOLIDANGLE_STERADIAN=0; -} - -// -// SpecificEnergy units. -enum SpecificEnergyUnit { - SPECIFICENERGY_BTU_PER_POUND=0; - SPECIFICENERGY_CALORIE_PER_GRAM=1; - SPECIFICENERGY_GIGAWATT_DAY_PER_KILOGRAM=2; - SPECIFICENERGY_GIGAWATT_DAY_PER_SHORT_TON=3; - SPECIFICENERGY_GIGAWATT_DAY_PER_TONNE=4; - SPECIFICENERGY_GIGAWATT_HOUR_PER_KILOGRAM=5; - SPECIFICENERGY_JOULE_PER_KILOGRAM=6; - SPECIFICENERGY_KILOCALORIE_PER_GRAM=7; - SPECIFICENERGY_KILOJOULE_PER_KILOGRAM=8; - SPECIFICENERGY_KILOWATT_DAY_PER_KILOGRAM=9; - SPECIFICENERGY_KILOWATT_DAY_PER_SHORT_TON=10; - SPECIFICENERGY_KILOWATT_DAY_PER_TONNE=11; - SPECIFICENERGY_KILOWATT_HOUR_PER_KILOGRAM=12; - SPECIFICENERGY_MEGAJOULE_PER_KILOGRAM=13; - SPECIFICENERGY_MEGAWATT_DAY_PER_KILOGRAM=14; - SPECIFICENERGY_MEGAWATT_DAY_PER_SHORT_TON=15; - SPECIFICENERGY_MEGAWATT_DAY_PER_TONNE=16; - SPECIFICENERGY_MEGAWATT_HOUR_PER_KILOGRAM=17; - SPECIFICENERGY_TERAWATT_DAY_PER_KILOGRAM=18; - SPECIFICENERGY_TERAWATT_DAY_PER_SHORT_TON=19; - SPECIFICENERGY_TERAWATT_DAY_PER_TONNE=20; - SPECIFICENERGY_WATT_DAY_PER_KILOGRAM=21; - SPECIFICENERGY_WATT_DAY_PER_SHORT_TON=22; - SPECIFICENERGY_WATT_DAY_PER_TONNE=23; - SPECIFICENERGY_WATT_HOUR_PER_KILOGRAM=24; -} - -// -// SpecificEntropy units. -enum SpecificEntropyUnit { - SPECIFICENTROPY_BTU_PER_POUND_FAHRENHEIT=0; - SPECIFICENTROPY_CALORIE_PER_GRAM_KELVIN=1; - SPECIFICENTROPY_JOULE_PER_KILOGRAM_DEGREE_CELSIUS=2; - SPECIFICENTROPY_JOULE_PER_KILOGRAM_KELVIN=3; - SPECIFICENTROPY_KILOCALORIE_PER_GRAM_KELVIN=4; - SPECIFICENTROPY_KILOJOULE_PER_KILOGRAM_DEGREE_CELSIUS=5; - SPECIFICENTROPY_KILOJOULE_PER_KILOGRAM_KELVIN=6; - SPECIFICENTROPY_MEGAJOULE_PER_KILOGRAM_DEGREE_CELSIUS=7; - SPECIFICENTROPY_MEGAJOULE_PER_KILOGRAM_KELVIN=8; -} - -// -// SpecificVolume units. -enum SpecificVolumeUnit { - SPECIFICVOLUME_CUBIC_FOOT_PER_POUND=0; - SPECIFICVOLUME_CUBIC_METER_PER_KILOGRAM=1; - SPECIFICVOLUME_MILLICUBIC_METER_PER_KILOGRAM=2; -} - -// -// SpecificWeight units. -enum SpecificWeightUnit { - SPECIFICWEIGHT_KILOGRAM_FORCE_PER_CUBIC_CENTIMETER=0; - SPECIFICWEIGHT_KILOGRAM_FORCE_PER_CUBIC_METER=1; - SPECIFICWEIGHT_KILOGRAM_FORCE_PER_CUBIC_MILLIMETER=2; - SPECIFICWEIGHT_KILONEWTON_PER_CUBIC_CENTIMETER=3; - SPECIFICWEIGHT_KILONEWTON_PER_CUBIC_METER=4; - SPECIFICWEIGHT_KILONEWTON_PER_CUBIC_MILLIMETER=5; - SPECIFICWEIGHT_KILOPOUND_FORCE_PER_CUBIC_FOOT=6; - SPECIFICWEIGHT_KILOPOUND_FORCE_PER_CUBIC_INCH=7; - SPECIFICWEIGHT_MEGANEWTON_PER_CUBIC_METER=8; - SPECIFICWEIGHT_NEWTON_PER_CUBIC_CENTIMETER=9; - SPECIFICWEIGHT_NEWTON_PER_CUBIC_METER=10; - SPECIFICWEIGHT_NEWTON_PER_CUBIC_MILLIMETER=11; - SPECIFICWEIGHT_POUND_FORCE_PER_CUBIC_FOOT=12; - SPECIFICWEIGHT_POUND_FORCE_PER_CUBIC_INCH=13; - SPECIFICWEIGHT_TONNE_FORCE_PER_CUBIC_CENTIMETER=14; - SPECIFICWEIGHT_TONNE_FORCE_PER_CUBIC_METER=15; - SPECIFICWEIGHT_TONNE_FORCE_PER_CUBIC_MILLIMETER=16; -} - -// -// Speed units. -enum SpeedUnit { - SPEED_CENTIMETER_PER_HOUR=0; - SPEED_CENTIMETER_PER_MINUTE=1; - SPEED_CENTIMETER_PER_SECOND=2; - SPEED_DECIMETER_PER_MINUTE=3; - SPEED_DECIMETER_PER_SECOND=4; - SPEED_FOOT_PER_HOUR=5; - SPEED_FOOT_PER_MINUTE=6; - SPEED_FOOT_PER_SECOND=7; - SPEED_INCH_PER_HOUR=8; - SPEED_INCH_PER_MINUTE=9; - SPEED_INCH_PER_SECOND=10; - SPEED_KILOMETER_PER_HOUR=11; - SPEED_KILOMETER_PER_MINUTE=12; - SPEED_KILOMETER_PER_SECOND=13; - SPEED_KNOT=14; - SPEED_METER_PER_HOUR=15; - SPEED_METER_PER_MINUTE=16; - SPEED_METER_PER_SECOND=17; - SPEED_MICROMETER_PER_MINUTE=18; - SPEED_MICROMETER_PER_SECOND=19; - SPEED_MILE_PER_HOUR=20; - SPEED_MILLIMETER_PER_HOUR=21; - SPEED_MILLIMETER_PER_MINUTE=22; - SPEED_MILLIMETER_PER_SECOND=23; - SPEED_NANOMETER_PER_MINUTE=24; - SPEED_NANOMETER_PER_SECOND=25; - SPEED_US_SURVEY_FOOT_PER_HOUR=26; - SPEED_US_SURVEY_FOOT_PER_MINUTE=27; - SPEED_US_SURVEY_FOOT_PER_SECOND=28; - SPEED_YARD_PER_HOUR=29; - SPEED_YARD_PER_MINUTE=30; - SPEED_YARD_PER_SECOND=31; -} - -// -// Temperature units. -enum TemperatureUnit { - TEMPERATURE_DEGREE_CELSIUS=0; - TEMPERATURE_DEGREE_DELISLE=1; - TEMPERATURE_DEGREE_FAHRENHEIT=2; - TEMPERATURE_DEGREE_NEWTON=3; - TEMPERATURE_DEGREE_RANKINE=4; - TEMPERATURE_DEGREE_REAUMUR=5; - TEMPERATURE_DEGREE_ROEMER=6; - TEMPERATURE_KELVIN=7; - TEMPERATURE_SOLAR_TEMPERATURE=8; -} - -// -// TemperatureChangeRate units. -enum TemperatureChangeRateUnit { - TEMPERATURECHANGERATE_CENTIDEGREE_CELSIUS_PER_SECOND=0; - TEMPERATURECHANGERATE_DECADEGREE_CELSIUS_PER_SECOND=1; - TEMPERATURECHANGERATE_DECIDEGREE_CELSIUS_PER_SECOND=2; - TEMPERATURECHANGERATE_DEGREE_CELSIUS_PER_MINUTE=3; - TEMPERATURECHANGERATE_DEGREE_CELSIUS_PER_SECOND=4; - TEMPERATURECHANGERATE_HECTODEGREE_CELSIUS_PER_SECOND=5; - TEMPERATURECHANGERATE_KILODEGREE_CELSIUS_PER_SECOND=6; - TEMPERATURECHANGERATE_MICRODEGREE_CELSIUS_PER_SECOND=7; - TEMPERATURECHANGERATE_MILLIDEGREE_CELSIUS_PER_SECOND=8; - TEMPERATURECHANGERATE_NANODEGREE_CELSIUS_PER_SECOND=9; -} - -// -// TemperatureDelta units. -enum TemperatureDeltaUnit { - TEMPERATUREDELTA_DEGREE_CELSIUS=0; - TEMPERATUREDELTA_DEGREE_DELISLE=1; - TEMPERATUREDELTA_DEGREE_FAHRENHEIT=2; - TEMPERATUREDELTA_DEGREE_NEWTON=3; - TEMPERATUREDELTA_DEGREE_RANKINE=4; - TEMPERATUREDELTA_DEGREE_REAUMUR=5; - TEMPERATUREDELTA_DEGREE_ROEMER=6; - TEMPERATUREDELTA_KELVIN=7; - TEMPERATUREDELTA_MILLIDEGREE_CELSIUS=8; -} - -// -// ThermalConductivity units. -enum ThermalConductivityUnit { - THERMALCONDUCTIVITY_BTU_PER_HOUR_FOOT_FAHRENHEIT=0; - THERMALCONDUCTIVITY_WATT_PER_METER_KELVIN=1; -} - -// -// ThermalResistance units. -enum ThermalResistanceUnit { - THERMALRESISTANCE_HOUR_SQUARE_FEET_DEGREE_FAHRENHEIT_PER_BTU=0; - THERMALRESISTANCE_SQUARE_CENTIMETER_HOUR_DEGREE_CELSIUS_PER_KILOCALORIE=1; - THERMALRESISTANCE_SQUARE_CENTIMETER_KELVIN_PER_WATT=2; - THERMALRESISTANCE_SQUARE_METER_DEGREE_CELSIUS_PER_WATT=3; - THERMALRESISTANCE_SQUARE_METER_KELVIN_PER_KILOWATT=4; -} - -// -// Time units. -enum TimeUnit { - TIME_DAY=0; - TIME_HOUR=1; - TIME_MICROSECOND=2; - TIME_MILLISECOND=3; - TIME_MINUTE=4; - TIME_MONTH=5; - TIME_NANOSECOND=6; - TIME_SECOND=7; - TIME_WEEK=8; - TIME_YEAR=9; -} - -// -// Torque units. -enum TorqueUnit { - TORQUE_KILOGRAM_FORCE_CENTIMETER=0; - TORQUE_KILOGRAM_FORCE_METER=1; - TORQUE_KILOGRAM_FORCE_MILLIMETER=2; - TORQUE_KILONEWTON_CENTIMETER=3; - TORQUE_KILONEWTON_METER=4; - TORQUE_KILONEWTON_MILLIMETER=5; - TORQUE_KILOPOUND_FORCE_FOOT=6; - TORQUE_KILOPOUND_FORCE_INCH=7; - TORQUE_MEGANEWTON_CENTIMETER=8; - TORQUE_MEGANEWTON_METER=9; - TORQUE_MEGANEWTON_MILLIMETER=10; - TORQUE_MEGAPOUND_FORCE_FOOT=11; - TORQUE_MEGAPOUND_FORCE_INCH=12; - TORQUE_NEWTON_CENTIMETER=13; - TORQUE_NEWTON_METER=14; - TORQUE_NEWTON_MILLIMETER=15; - TORQUE_POUND_FORCE_FOOT=16; - TORQUE_POUND_FORCE_INCH=17; - TORQUE_TONNE_FORCE_CENTIMETER=18; - TORQUE_TONNE_FORCE_METER=19; - TORQUE_TONNE_FORCE_MILLIMETER=20; -} - -// -// TorquePerLength units. -enum TorquePerLengthUnit { - TORQUEPERLENGTH_KILOGRAM_FORCE_CENTIMETER_PER_METER=0; - TORQUEPERLENGTH_KILOGRAM_FORCE_METER_PER_METER=1; - TORQUEPERLENGTH_KILOGRAM_FORCE_MILLIMETER_PER_METER=2; - TORQUEPERLENGTH_KILONEWTON_CENTIMETER_PER_METER=3; - TORQUEPERLENGTH_KILONEWTON_METER_PER_METER=4; - TORQUEPERLENGTH_KILONEWTON_MILLIMETER_PER_METER=5; - TORQUEPERLENGTH_KILOPOUND_FORCE_FOOT_PER_FOOT=6; - TORQUEPERLENGTH_KILOPOUND_FORCE_INCH_PER_FOOT=7; - TORQUEPERLENGTH_MEGANEWTON_CENTIMETER_PER_METER=8; - TORQUEPERLENGTH_MEGANEWTON_METER_PER_METER=9; - TORQUEPERLENGTH_MEGANEWTON_MILLIMETER_PER_METER=10; - TORQUEPERLENGTH_MEGAPOUND_FORCE_FOOT_PER_FOOT=11; - TORQUEPERLENGTH_MEGAPOUND_FORCE_INCH_PER_FOOT=12; - TORQUEPERLENGTH_NEWTON_CENTIMETER_PER_METER=13; - TORQUEPERLENGTH_NEWTON_METER_PER_METER=14; - TORQUEPERLENGTH_NEWTON_MILLIMETER_PER_METER=15; - TORQUEPERLENGTH_POUND_FORCE_FOOT_PER_FOOT=16; - TORQUEPERLENGTH_POUND_FORCE_INCH_PER_FOOT=17; - TORQUEPERLENGTH_TONNE_FORCE_CENTIMETER_PER_METER=18; - TORQUEPERLENGTH_TONNE_FORCE_METER_PER_METER=19; - TORQUEPERLENGTH_TONNE_FORCE_MILLIMETER_PER_METER=20; -} - -// -// Volume units. -enum VolumeUnit { - VOLUME_ACRE_FOOT=0; - VOLUME_AU_TABLESPOON=1; - VOLUME_CENTILITER=2; - VOLUME_CUBIC_CENTIMETER=3; - VOLUME_CUBIC_DECIMETER=4; - VOLUME_CUBIC_FOOT=5; - VOLUME_CUBIC_HECTOMETER=6; - VOLUME_CUBIC_INCH=7; - VOLUME_CUBIC_KILOMETER=8; - VOLUME_CUBIC_METER=9; - VOLUME_CUBIC_MICROMETER=10; - VOLUME_CUBIC_MILE=11; - VOLUME_CUBIC_MILLIMETER=12; - VOLUME_CUBIC_YARD=13; - VOLUME_DECILITER=14; - VOLUME_HECTOCUBIC_FOOT=15; - VOLUME_HECTOCUBIC_METER=16; - VOLUME_HECTOLITER=17; - VOLUME_IMPERIAL_BEER_BARREL=18; - VOLUME_IMPERIAL_GALLON=19; - VOLUME_IMPERIAL_OUNCE=20; - VOLUME_IMPERIAL_PINT=21; - VOLUME_KILOCUBIC_FOOT=22; - VOLUME_KILOCUBIC_METER=23; - VOLUME_KILOIMPERIAL_GALLON=24; - VOLUME_KILOLITER=25; - VOLUME_KILOUS_GALLON=26; - VOLUME_LITER=27; - VOLUME_MEGACUBIC_FOOT=28; - VOLUME_MEGAIMPERIAL_GALLON=29; - VOLUME_MEGALITER=30; - VOLUME_MEGAUS_GALLON=31; - VOLUME_METRIC_CUP=32; - VOLUME_METRIC_TEASPOON=33; - VOLUME_MICROLITER=34; - VOLUME_MILLILITER=35; - VOLUME_OIL_BARREL=36; - VOLUME_UK_TABLESPOON=37; - VOLUME_US_BEER_BARREL=38; - VOLUME_US_CUSTOMARY_CUP=39; - VOLUME_US_GALLON=40; - VOLUME_US_LEGAL_CUP=41; - VOLUME_US_OUNCE=42; - VOLUME_US_PINT=43; - VOLUME_US_QUART=44; - VOLUME_US_TABLESPOON=45; - VOLUME_US_TEASPOON=46; -} - -// -// VolumeConcentration units. -enum VolumeConcentrationUnit { - VOLUMECONCENTRATION_CENTILITERS_PER_LITER=0; - VOLUMECONCENTRATION_CENTILITERS_PER_MILILITER=1; - VOLUMECONCENTRATION_DECILITERS_PER_LITER=2; - VOLUMECONCENTRATION_DECILITERS_PER_MILILITER=3; - VOLUMECONCENTRATION_DECIMAL_FRACTION=4; - VOLUMECONCENTRATION_LITERS_PER_LITER=5; - VOLUMECONCENTRATION_LITERS_PER_MILILITER=6; - VOLUMECONCENTRATION_MICROLITERS_PER_LITER=7; - VOLUMECONCENTRATION_MICROLITERS_PER_MILILITER=8; - VOLUMECONCENTRATION_MILLILITERS_PER_LITER=9; - VOLUMECONCENTRATION_MILLILITERS_PER_MILILITER=10; - VOLUMECONCENTRATION_NANOLITERS_PER_LITER=11; - VOLUMECONCENTRATION_NANOLITERS_PER_MILILITER=12; - VOLUMECONCENTRATION_PART_PER_BILLION=13; - VOLUMECONCENTRATION_PART_PER_MILLION=14; - VOLUMECONCENTRATION_PART_PER_THOUSAND=15; - VOLUMECONCENTRATION_PART_PER_TRILLION=16; - VOLUMECONCENTRATION_PERCENT=17; - VOLUMECONCENTRATION_PICOLITERS_PER_LITER=18; - VOLUMECONCENTRATION_PICOLITERS_PER_MILILITER=19; -} - -// -// VolumeFlow units. -enum VolumeFlowUnit { - VOLUMEFLOW_ACRE_FOOT_PER_DAY=0; - VOLUMEFLOW_ACRE_FOOT_PER_HOUR=1; - VOLUMEFLOW_ACRE_FOOT_PER_MINUTE=2; - VOLUMEFLOW_ACRE_FOOT_PER_SECOND=3; - VOLUMEFLOW_CENTILITER_PER_DAY=4; - VOLUMEFLOW_CENTILITER_PER_MINUTE=5; - VOLUMEFLOW_CUBIC_DECIMETER_PER_MINUTE=6; - VOLUMEFLOW_CUBIC_FOOT_PER_HOUR=7; - VOLUMEFLOW_CUBIC_FOOT_PER_MINUTE=8; - VOLUMEFLOW_CUBIC_FOOT_PER_SECOND=9; - VOLUMEFLOW_CUBIC_METER_PER_DAY=10; - VOLUMEFLOW_CUBIC_METER_PER_HOUR=11; - VOLUMEFLOW_CUBIC_METER_PER_MINUTE=12; - VOLUMEFLOW_CUBIC_METER_PER_SECOND=13; - VOLUMEFLOW_CUBIC_MILLIMETER_PER_SECOND=14; - VOLUMEFLOW_CUBIC_YARD_PER_DAY=15; - VOLUMEFLOW_CUBIC_YARD_PER_HOUR=16; - VOLUMEFLOW_CUBIC_YARD_PER_MINUTE=17; - VOLUMEFLOW_CUBIC_YARD_PER_SECOND=18; - VOLUMEFLOW_DECILITER_PER_DAY=19; - VOLUMEFLOW_DECILITER_PER_MINUTE=20; - VOLUMEFLOW_KILOLITER_PER_DAY=21; - VOLUMEFLOW_KILOLITER_PER_MINUTE=22; - VOLUMEFLOW_KILOUS_GALLON_PER_MINUTE=23; - VOLUMEFLOW_LITER_PER_DAY=24; - VOLUMEFLOW_LITER_PER_HOUR=25; - VOLUMEFLOW_LITER_PER_MINUTE=26; - VOLUMEFLOW_LITER_PER_SECOND=27; - VOLUMEFLOW_MEGALITER_PER_DAY=28; - VOLUMEFLOW_MEGAUK_GALLON_PER_SECOND=29; - VOLUMEFLOW_MICROLITER_PER_DAY=30; - VOLUMEFLOW_MICROLITER_PER_MINUTE=31; - VOLUMEFLOW_MILLILITER_PER_DAY=32; - VOLUMEFLOW_MILLILITER_PER_MINUTE=33; - VOLUMEFLOW_MILLION_US_GALLONS_PER_DAY=34; - VOLUMEFLOW_NANOLITER_PER_DAY=35; - VOLUMEFLOW_NANOLITER_PER_MINUTE=36; - VOLUMEFLOW_OIL_BARREL_PER_DAY=37; - VOLUMEFLOW_OIL_BARREL_PER_HOUR=38; - VOLUMEFLOW_OIL_BARREL_PER_MINUTE=39; - VOLUMEFLOW_OIL_BARREL_PER_SECOND=40; - VOLUMEFLOW_UK_GALLON_PER_DAY=41; - VOLUMEFLOW_UK_GALLON_PER_MINUTE=42; - VOLUMEFLOW_UK_GALLON_PER_SECOND=43; - VOLUMEFLOW_US_GALLON_PER_DAY=44; - VOLUMEFLOW_US_GALLON_PER_HOUR=45; - VOLUMEFLOW_US_GALLON_PER_MINUTE=46; - VOLUMEFLOW_US_GALLON_PER_SECOND=47; -} - -// -// VolumePerLength units. -enum VolumePerLengthUnit { - VOLUMEPERLENGTH_CUBIC_METER_PER_METER=0; - VOLUMEPERLENGTH_CUBIC_YARD_PER_FOOT=1; - VOLUMEPERLENGTH_CUBIC_YARD_PER_US_SURVEY_FOOT=2; - VOLUMEPERLENGTH_LITER_PER_KILOMETER=3; - VOLUMEPERLENGTH_LITER_PER_METER=4; - VOLUMEPERLENGTH_LITER_PER_MILLIMETER=5; - VOLUMEPERLENGTH_OIL_BARREL_PER_FOOT=6; -} - -// -// WarpingMomentOfInertia units. -enum WarpingMomentOfInertiaUnit { - WARPINGMOMENTOFINERTIA_CENTIMETER_TO_THE_SIXTH=0; - WARPINGMOMENTOFINERTIA_DECIMETER_TO_THE_SIXTH=1; - WARPINGMOMENTOFINERTIA_FOOT_TO_THE_SIXTH=2; - WARPINGMOMENTOFINERTIA_INCH_TO_THE_SIXTH=3; - WARPINGMOMENTOFINERTIA_METER_TO_THE_SIXTH=4; - WARPINGMOMENTOFINERTIA_MILLIMETER_TO_THE_SIXTH=5; -} diff --git a/ansys/api/discovery/v1/windows.proto b/ansys/api/discovery/v1/windows.proto deleted file mode 100644 index c2855e2..0000000 --- a/ansys/api/discovery/v1/windows.proto +++ /dev/null @@ -1,46 +0,0 @@ -// Copyright 2022, ANSYS Inc. Unauthorized use, distribution or duplication is prohibited. -syntax = "proto3"; -package ansys.api.discovery.v1; -import "ansys/api/discovery/v1/streaming.proto"; -option csharp_namespace = "Ansys.Api.Discovery.V1"; -option go_package = "ansys/api/discovery/v1"; - -// Windows -// -service Windows{ - // Gets an image for the active window. - rpc GetImage(GetImageRequest) returns(stream StreamPackage); - - // Sets the camera view for the active window. - rpc SetView(SetViewRequest) returns(SetViewResponse); -} - -message GetImageRequest{ - // The format of the image being requested. - ImageFormat format = 1; -} - -enum ImageFormat { - IMAGEFORMAT_PNG = 0; - IMAGEFORMAT_JPEG = 1; -} - -message SetViewRequest{ - // The view operation being requested. - WindowView view = 1; -} - -message SetViewResponse{ -} - -enum WindowView { - WINDOWVIEW_TOP = 0; - WINDOWVIEW_BOTTOM = 1; - WINDOWVIEW_LEFT = 2; - WINDOWVIEW_RIGHT = 3; - WINDOWVIEW_FRONT = 4; - WINDOWVIEW_BACK = 5; - WINDOWVIEW_ISOMETRIC = 6; - WINDOWVIEW_TRIMETRIC = 7; - WINDOWVIEW_FIT = 8; -} From 1362a47d5e3cf2e35cfe4c874cd910befe3b5852 Mon Sep 17 00:00:00 2001 From: m-bini Date: Thu, 2 Mar 2023 11:34:08 +0100 Subject: [PATCH 02/15] Remove protos which belongs to geometry repos --- ansys/api/discovery/v0/admin.proto | 97 --- ansys/api/discovery/v0/api.proto | 45 -- ansys/api/discovery/v0/application.proto | 68 -- ansys/api/discovery/v0/commands.proto | 35 - ansys/api/discovery/v0/components.proto | 50 -- .../api/discovery/v0/coordinatesystems.proto | 85 --- ansys/api/discovery/v0/designbodies.proto | 137 ---- ansys/api/discovery/v0/designcurves.proto | 28 - ansys/api/discovery/v0/designedges.proto | 81 --- ansys/api/discovery/v0/designfaces.proto | 97 --- ansys/api/discovery/v0/designmeshes.proto | 30 - ansys/api/discovery/v0/documents.proto | 162 ----- ansys/api/discovery/v0/facettools.proto | 45 -- ansys/api/discovery/v0/greet.proto | 22 - ansys/api/discovery/v0/models.proto | 680 ------------------ ansys/api/discovery/v0/namedselections.proto | 156 ---- ansys/api/discovery/v0/parts.proto | 73 -- ansys/api/discovery/v0/preparetools.proto | 90 --- ansys/api/discovery/v0/repairtools.proto | 175 ----- 19 files changed, 2156 deletions(-) delete mode 100644 ansys/api/discovery/v0/admin.proto delete mode 100644 ansys/api/discovery/v0/api.proto delete mode 100644 ansys/api/discovery/v0/application.proto delete mode 100644 ansys/api/discovery/v0/commands.proto delete mode 100644 ansys/api/discovery/v0/components.proto delete mode 100644 ansys/api/discovery/v0/coordinatesystems.proto delete mode 100644 ansys/api/discovery/v0/designbodies.proto delete mode 100644 ansys/api/discovery/v0/designcurves.proto delete mode 100644 ansys/api/discovery/v0/designedges.proto delete mode 100644 ansys/api/discovery/v0/designfaces.proto delete mode 100644 ansys/api/discovery/v0/designmeshes.proto delete mode 100644 ansys/api/discovery/v0/documents.proto delete mode 100644 ansys/api/discovery/v0/facettools.proto delete mode 100644 ansys/api/discovery/v0/greet.proto delete mode 100644 ansys/api/discovery/v0/models.proto delete mode 100644 ansys/api/discovery/v0/namedselections.proto delete mode 100644 ansys/api/discovery/v0/parts.proto delete mode 100644 ansys/api/discovery/v0/preparetools.proto delete mode 100644 ansys/api/discovery/v0/repairtools.proto diff --git a/ansys/api/discovery/v0/admin.proto b/ansys/api/discovery/v0/admin.proto deleted file mode 100644 index 2394072..0000000 --- a/ansys/api/discovery/v0/admin.proto +++ /dev/null @@ -1,97 +0,0 @@ -// Copyright 2022, ANSYS Inc. Unauthorized use, distribution or duplication is prohibited. -syntax = "proto3"; -package ansys.api.discovery.v0; -import "ansys/api/discovery/google/api/annotations.proto"; -import "ansys/api/discovery/google/api/httpbody.proto"; -import "google/protobuf/struct.proto"; -import "google/protobuf/timestamp.proto"; -option csharp_namespace = "Ansys.Api.Discovery.V0"; -option go_package = "ansys/api/discovery/v0"; - -service Admin{ - - rpc GetLogs(LogsRequest) returns(stream LogsResponse); - - // Gets the health of the service. - rpc Health(HealthRequest) returns(HealthResponse) { - option(google.api.http) = { - get: "/v0/admin:health" - }; - } - // Shuts down the underlying gRPC server. - rpc Shutdown(ShutdownRequest) returns(ShutdownResponse) { - option(google.api.http) = { - post: "/v0/admin:shutdown" - }; - } - // Gets a status page suitable for a browser. - rpc Status(StatusRequest) returns(google.api.HttpBody) { - option(google.api.http) = { - get: "/v0/admin:status" - }; - } - // Gets basic status information. - rpc StatusInfo(StatusInfoRequest) returns(StatusInfoResponse) { - option(google.api.http) = { - get: "/v0/admin:statusinfo" - }; - } -} - -enum LogsTarget{ - CLIENT = 0; - PATH = 1; -} - -enum PeriodType{ - CURRENT = 0; - PAST = 1; - ALL = 2; -} - -message LogsRequest{ - - LogsTarget target = 1; - oneof path{ - google.protobuf.NullValue null_path = 2; - string target_path =3; - } - - PeriodType period_type = 4; - - oneof period { - google.protobuf.NullValue null_period = 5; - google.protobuf.Timestamp logs_period = 6; - } -} - -message LogsResponse{ - string relative_path = 1; - string log_name = 2; - bytes log_chunk = 3; -} - -message HealthRequest{ -} - -message HealthResponse{ - string message = 1; -} - -message ShutdownRequest{ -} - -message ShutdownResponse{ -} - -message StatusRequest{ -} - -message StatusInfoRequest{ -} - -message StatusInfoResponse{ - string touch_time = 1 [json_name = "touch_time"]; - string application_version = 2 [json_name = "application_version"]; - string embedded_api_version = 3 [json_name = "embedded_api_version"]; -} diff --git a/ansys/api/discovery/v0/api.proto b/ansys/api/discovery/v0/api.proto deleted file mode 100644 index f02ae1d..0000000 --- a/ansys/api/discovery/v0/api.proto +++ /dev/null @@ -1,45 +0,0 @@ -// Copyright 2022, ANSYS Inc. Unauthorized use, distribution or duplication is prohibited. -syntax = "proto3"; -package ansys.api.discovery.v0; -import "ansys/api/discovery/google/api/annotations.proto"; -option csharp_namespace = "Ansys.Api.Discovery.V0"; -option go_package = "ansys/api/discovery/v0"; - -// Api -// -service Api{ - // Sets the current scripting version. - rpc SetVersion(SetVersionRequest) returns(SetVersionResponse) { - option(google.api.http) = { - post: "/v0/api/api:version" - body: "*" - }; - } - // Sets the current scripting version. - rpc GetVersion(GetVersionRequest) returns(GetVersionResponse) { - option(google.api.http) = { - get: "/v0/api/api" - }; - } -} - -message GetVersionRequest{ -} - -message GetVersionResponse{ - string result = 1; -} - -message SetVersionRequest{ - // The set api operation being requested. - ApiVersion version = 1; -} - -message SetVersionResponse{ - string result = 1; -} - -enum ApiVersion { - V_21 = 0; - V_22 = 1; -} diff --git a/ansys/api/discovery/v0/application.proto b/ansys/api/discovery/v0/application.proto deleted file mode 100644 index 21d1299..0000000 --- a/ansys/api/discovery/v0/application.proto +++ /dev/null @@ -1,68 +0,0 @@ -// Copyright 2022, ANSYS Inc. Unauthorized use, distribution or duplication is prohibited. -syntax = "proto3"; -package ansys.api.discovery.v0; -import "ansys/api/discovery/google/api/annotations.proto"; -option csharp_namespace = "Ansys.Api.Discovery.V0"; -option go_package = "ansys/api/discovery/v0"; - -service Application { - - // Runs a script based on a file. - rpc RunScriptFile(RunScriptFileRequest) returns(RunScriptFileResponse) { - option(google.api.http) = { - post: "/v0/application:runscriptfile" - body : "*" - }; - } - // Runs a script based on a supplied string. - rpc RunScript(RunScriptRequest) returns(RunScriptResponse) { - option(google.api.http) = { - post: "/v0/application:runscript" - body : "*" - }; - } - // Runs a command. A command can be exposed by Addin. - rpc RunCommand(RunCommandRequest) returns(RunCommandResponse) { - option(google.api.http) = { - post: "/v0/application:runcommand" - body : "*" - }; - } -} - -message RunScriptFileRequest{ - // Local path to the script to execute. - string script_path = 1 [json_name = "script_path"]; - // map of argument names to values. - map script_args = 2 [json_name = "script_args"]; - // The api version to be used to run the script - int32 api_version = 3; -} - -message RunScriptFileResponse{ - // Results returned by script. - string script_output = 1 [json_name = "script_output"]; -} - -message RunScriptRequest{ - // Script source to execute. - string script = 1; - // The api version to be used to run the script - int32 api_version = 2; -} -message RunScriptResponse{ - // Result of script execution. True means script executed successfully. - bool script_result = 1 [json_name = "script_result"]; -} - -message RunCommandRequest{ - // Command to execute. - string command = 1; - // Data to pass to command. - string data = 2; -} - -message RunCommandResponse{ - // Data returned from command. - string data = 1; -} diff --git a/ansys/api/discovery/v0/commands.proto b/ansys/api/discovery/v0/commands.proto deleted file mode 100644 index a288d01..0000000 --- a/ansys/api/discovery/v0/commands.proto +++ /dev/null @@ -1,35 +0,0 @@ -// Copyright 2022, ANSYS Inc. Unauthorized use, distribution or duplication is prohibited. -syntax = "proto3"; -package ansys.api.discovery.v0; -import "ansys/api/discovery/v0/models.proto"; -option csharp_namespace = "Ansys.Api.Discovery.V0"; - -service Commands{ - // Rename many objects command. - rpc RenameMany(RenameManyRequest) returns (RenameManyResponse); - // Rename single object command. - rpc Rename(RenameRequest) returns (RenameResponse); -} - -message RenameManyRequest{ - map monikers_updates = 1; -} - -message RenameManyResponse{ - map results = 1; -} - -message SingleRenamedObject{ - string new_name = 1; - EntityType type = 2; -} - -message RenameRequest{ - string moniker = 1; - EntityType type = 2; - string new_name = 3; -} - -message RenameResponse{ - string result = 1; -} diff --git a/ansys/api/discovery/v0/components.proto b/ansys/api/discovery/v0/components.proto deleted file mode 100644 index e0e474e..0000000 --- a/ansys/api/discovery/v0/components.proto +++ /dev/null @@ -1,50 +0,0 @@ -// Copyright 2022, ANSYS Inc. Unauthorized use, distribution or duplication is prohibited. -syntax = "proto3"; -package ansys.api.discovery.v0; -import "ansys/api/discovery/google/api/annotations.proto"; -import "ansys/api/discovery/v0/models.proto"; -import "google/protobuf/field_mask.proto"; -option csharp_namespace = "Ansys.Api.Discovery.V0"; -option go_package = "ansys/api/discovery/v0"; - -service Components{ - // Gets a component. - rpc GetComponent(GetComponentRequest) returns(Component) { - option(google.api.http) = { - get: "/v0/components/{moniker}" - }; - } - // Lists all components. - rpc ListComponents(ListComponentsRequest) returns(ListComponentsResponse) { - option(google.api.http) = { - get: "/v0/components" - }; - } -} - -message ListComponentsRequest{ - // The parent, which can be empty or "parts/{moniker}" or "components/{moniker}". - string parent = 1; - // The maximum number of items to return. - int32 page_size = 2; - // The next_page_token value returned from a previous List request, if any. - string page_token = 3; - // The view to use for populating the return fields. - ComponentView view = 4; - // The filter expression. - string filter = 5; -} - -message ListComponentsResponse{ - // The components on this page. - repeated Component components = 1; - // The next page token, or empty if there are no more results in the list. - string next_page_token = 2; -} - -message GetComponentRequest{ - // The moniker. - string moniker = 1; - // The field mask. - google.protobuf.FieldMask fields = 4; -} diff --git a/ansys/api/discovery/v0/coordinatesystems.proto b/ansys/api/discovery/v0/coordinatesystems.proto deleted file mode 100644 index bc47b72..0000000 --- a/ansys/api/discovery/v0/coordinatesystems.proto +++ /dev/null @@ -1,85 +0,0 @@ -// Copyright 2022, ANSYS Inc. Unauthorized use, distribution or duplication is prohibited. -syntax = "proto3"; -package ansys.api.discovery.v0; -import "ansys/api/discovery/google/api/annotations.proto"; -import "ansys/api/discovery/v0/models.proto"; -import "google/protobuf/field_mask.proto"; -option csharp_namespace = "Ansys.Api.Discovery.V0"; -option go_package = "ansys/api/discovery/v0"; - - -service CoordinateSystems{ - - // Gets a coordinate system. - rpc GetCoordinateSystem(GetCoordinateSystemRequest) returns(CoordinateSystem) { - option(google.api.http) = { - get: "/v0/coordinatesystems/{moniker}" - }; - } - // Lists all coordinate systems. - rpc ListCoordinateSystems(ListCoordinateSystemsRequest) returns(ListCoordinateSystemsResponse) { - option(google.api.http) = { - get: "/v0/coordinatesystems" - }; - } - // Creates a coordinate system. - rpc CreateCoordinateSystem(CreateCoordinateSystemRequest) returns(CoordinateSystem) { - option(google.api.http) = { - post: "/v0/coordinatesystems" - body : "coordinate_system" - }; - } - // Delete a coordinate system. - rpc DeleteCoordinateSystem(DeleteCoordinateSystemRequest) returns(DeleteCoordinateSystemResponse) { - option(google.api.http) = { - delete: "/v0/coordinatesystems/{moniker}" - }; - } -} - -message GetCoordinateSystemRequest{ - // The moniker of the coordinate system to return. - string moniker = 1; - // The field mask to filter coordinate system. Not set will return 'default' information. - google.protobuf.FieldMask fields = 2; -} - -message ListCoordinateSystemsRequest{ - // The parent, which can be empty , "parts/{moniker}" or "namedselections/{moniker}". - string parent = 1; - // The maximum number of items to return. - int32 page_size = 2; - // The next_page_token value returned from a previous List request, if any. - string page_token = 3; - // The view. - CoordinateSystemView view = 4; - // The filter. - string filter=5; -} - -message ListCoordinateSystemsResponse{ - // The coordinate systems on this page. - repeated CoordinateSystem coordinate_systems = 1 [json_name = "coordinate_systems"]; - // Next page token, or empty if there are no more results in the list. - string next_page_token = 2; -} - -message CreateCoordinateSystemRequest{ - // The parent where the coordinate system is to be created which can be empty or "parts/{moniker}". - string parent = 1; - // The coordinate system to create. - CoordinateSystem coordinate_system = 2 [json_name = "coordinate_system"]; -} - -message CreateCoordinateSystemResponse{ - // The created coordinate system. - CoordinateSystem coordinate_system=1 [json_name = "coordinate_system"]; -} - -message DeleteCoordinateSystemRequest{ - // The moniker of the coordinate sytem to be deleted. - string moniker = 1; -} - -message DeleteCoordinateSystemResponse{ -} diff --git a/ansys/api/discovery/v0/designbodies.proto b/ansys/api/discovery/v0/designbodies.proto deleted file mode 100644 index ef27232..0000000 --- a/ansys/api/discovery/v0/designbodies.proto +++ /dev/null @@ -1,137 +0,0 @@ -// Copyright 2022, ANSYS Inc. Unauthorized use, distribution or duplication is prohibited. -syntax = "proto3"; -package ansys.api.discovery.v0; -import "ansys/api/discovery/google/api/annotations.proto"; -import "ansys/api/discovery/v0/models.proto"; -import "google/protobuf/field_mask.proto"; -option csharp_namespace = "Ansys.Api.Discovery.V0"; -option go_package = "ansys/api/discovery/v0"; - -service DesignBodies -{ - // Gets a design body. - rpc GetDesignBody(GetDesignBodyRequest) returns(DesignBody) { - option(google.api.http) = { - get: "/v0/designbodies/{moniker}" - }; - } - // Gets the design body master. - rpc GetDesignBodyMaster(GetDesignBodyRequest) returns(DesignBody) { - option(google.api.http) = { - get: "/v0/designbodies/{moniker}/master" - }; - } - // Gets the design body original. - rpc GetDesignBodyOriginal(GetDesignBodyRequest) returns(DesignBody) { - option(google.api.http) = { - get: "/v0/designbodies/{moniker}/original" - }; - } - // Gets the design body parent (which is always a part). - rpc GetDesignBodyParent(GetDesignBodyRequest) returns(Part) { - option(google.api.http) = { - get: "/v0/designbodies/{moniker}/parent" - }; - } - // Lists all design bodies. - rpc ListDesignBodies(ListDesignBodiesRequest) returns(ListDesignBodiesResponse) { - option(google.api.http) = { - get: "/v0/designbodies" - }; - } - // Gets the user-selected design bodies from the current active window. - // UNDER REVIEW for V1 - rpc GetUserSelectedDesignBodies(GetUserSelectedDesignBodiesRequest) returns(GetUserSelectedDesignBodiesResponse) { - option(google.api.http) = { - get: "/v0/designbodies:userselected" - }; - } - // Suppresses a list of design bodies. - // UNDER REVIEW for V1 - rpc SuppressDesignBodies(SuppressDesignBodiesRequest) returns(SuppressDesignBodiesResponse) { - option(google.api.http) = { - post: "/v0/designbodies:suppress" - body : "*" - }; - } - // Unsuppresses a list of design bodies. - // UNDER REVIEW for V1 - rpc UnsuppressDesignBodies(UnsuppressDesignBodiesRequest) returns(UnsuppressDesignBodiesResponse) { - option(google.api.http) = { - post: "/v0/designbodies:unsuppress" - body : "*" - }; - } - // Deletes a list of design bodies. - // UNDER REVIEW for V1 - rpc DeleteDesignBodies(DeleteDesignBodiesRequest) returns(DeleteDesignBodiesResponse) { - option(google.api.http) = { - post: "/v0/designbodies:delete" - body : "*" - }; - } -} - -message GetDesignBodyRequest{ - // The moniker for the item being requested. - string moniker = 1; - // FieldMask used to filter returned values. - google.protobuf.FieldMask fields = 2; -} - -message ListDesignBodiesRequest{ - // The parent, which can be empty or "parts/{moniker}" or "components/{moniker}". - string parent = 1; - // The maximum number of items to return. - int32 page_size = 2; - // The next_page_token value returned from a previous List request, if any. - string page_token = 3; - // The view to use for populating the return fields. - DesignBodyView view = 4; - // The filter expression. - string filter = 5; -} - -message ListDesignBodiesResponse{ - // The bodies on this page. - repeated DesignBody design_bodies = 1 [json_name = "design_bodies"]; - // Next page token, or empty if there are no more results in the list. - string next_page_token = 2; -} - -message GetUserSelectedDesignBodiesRequest{ - google.protobuf.FieldMask fields = 1; -} - -message GetUserSelectedDesignBodiesResponse{ - repeated DesignBody design_bodies = 1 [json_name = "design_bodies"]; -} - -message RenameDesignBodyRequest{ - string moniker = 1; - string display_name = 2 [json_name = "display_name"]; -} - -message RenameDesignBodyResponse{ -} - -message SuppressDesignBodiesRequest{ - repeated string monikers = 1; -} - -message SuppressDesignBodiesResponse{ -} - -message UnsuppressDesignBodiesRequest{ - repeated string monikers = 1; -} - -message UnsuppressDesignBodiesResponse{ -} - -message DeleteDesignBodiesRequest{ - repeated string monikers = 1; -} - -message DeleteDesignBodiesResponse{ -} \ No newline at end of file diff --git a/ansys/api/discovery/v0/designcurves.proto b/ansys/api/discovery/v0/designcurves.proto deleted file mode 100644 index 8efb50b..0000000 --- a/ansys/api/discovery/v0/designcurves.proto +++ /dev/null @@ -1,28 +0,0 @@ -// Copyright 2022, ANSYS Inc. Unauthorized use, distribution or duplication is prohibited. -syntax = "proto3"; -package ansys.api.discovery.v0; -import "ansys/api/discovery/v0/models.proto"; -option csharp_namespace = "Ansys.Api.Discovery.V0"; -option go_package = "ansys/api/discovery/v0"; - -service DesignCurves{ - // Gets a design curve. - rpc GetDesignCurve(GetDesignCurveRequest) returns(DesignCurve) ; - // Lists all design curves. - rpc ListDesignCurves(ListDesignCurvesRequest) returns(ListDesignCurvesResponse) ; -} - -message GetDesignCurveRequest{ - // The mniker for the item being requested. - string moniker = 1; -} - -message ListDesignCurvesRequest{ - // The parent. - string parent = 1; -} - -message ListDesignCurvesResponse{ - // The curves on this page. - repeated DesignCurve design_curves = 1; -} \ No newline at end of file diff --git a/ansys/api/discovery/v0/designedges.proto b/ansys/api/discovery/v0/designedges.proto deleted file mode 100644 index 2bd6432..0000000 --- a/ansys/api/discovery/v0/designedges.proto +++ /dev/null @@ -1,81 +0,0 @@ -// Copyright 2022, ANSYS Inc. Unauthorized use, distribution or duplication is prohibited. -syntax = "proto3"; -package ansys.api.discovery.v0; -import "ansys/api/discovery/google/api/annotations.proto"; -import "ansys/api/discovery/v0/models.proto"; -import "google/protobuf/field_mask.proto"; -option csharp_namespace = "Ansys.Api.Discovery.V0"; -option go_package = "ansys/api/discovery/v0"; - -service DesignEdges{ - // Gets a design edge. - rpc GetDesignEdge(GetDesignEdgeRequest) returns(DesignEdge) { - option(google.api.http) = { - get: "/v0/designedges/{moniker}" - }; - } - // Lists all design edges. - rpc ListDesignEdges(ListDesignEdgesRequest) returns(ListDesignEdgesResponse) { - option(google.api.http) = { - get: "/v0/designedges" - }; - } - // Gets the user-selected design edges from the current active window. - // UNDER REVIEW for V1 - rpc GetUserSelectedDesignEdges(GetUserSelectedDesignEdgesRequest) returns(GetUserSelectedDesignEdgesResponse) { - option(google.api.http) = { - get: "/v0/designedges:userselected" - }; - } - // Puts the user-selected design edges in the current active window. - // UNDER REVIEW for V1 - rpc PutUserSelectedDesignEdges(PutUserSelectedDesignEdgesRequest) returns(PutUserSelectedDesignEdgesResponse) { - option(google.api.http) = { - post: "/v0/designedges:userselected" - body : "*" - }; - } -} - -message GetDesignEdgeRequest{ - // The mniker for the item being requested. - string moniker = 1; - // The field mask used to filter returned values. - google.protobuf.FieldMask fields = 2; -} - -message ListDesignEdgesRequest{ - // The parent, which can be empty, or "designbodies/{moniker}" or "designfaces/{moniker} or "parts/{moniker}". - string parent = 1; - // The maximum number of items to return. - int32 page_size = 2; - // The next_page_token value returned from a previous List request, if any. - string page_token = 3; - // The view. - DesignEdgeView view = 4; - // The filter. - string filter = 5; -} - -message ListDesignEdgesResponse{ - // The edges on this page. - repeated DesignEdge design_edges = 1 [json_name = "design_edges"]; - // The next page token, or empty if there are no more results in the list. - string next_page_token = 2; -} - -message GetUserSelectedDesignEdgesRequest{ -} - -message GetUserSelectedDesignEdgesResponse{ - // The design edges that are currently selected. - repeated DesignEdge design_edges = 1 [json_name = "design_edges"]; -} - -message PutUserSelectedDesignEdgesRequest{ - // The design edges to select. - repeated DesignEdge design_edges = 1 [json_name = "design_edges"]; -} - -message PutUserSelectedDesignEdgesResponse{ -} diff --git a/ansys/api/discovery/v0/designfaces.proto b/ansys/api/discovery/v0/designfaces.proto deleted file mode 100644 index f0cbc9a..0000000 --- a/ansys/api/discovery/v0/designfaces.proto +++ /dev/null @@ -1,97 +0,0 @@ -// Copyright 2022, ANSYS Inc. Unauthorized use, distribution or duplication is prohibited. -syntax = "proto3"; -package ansys.api.discovery.v0; -import "ansys/api/discovery/google/api/annotations.proto"; -import "ansys/api/discovery/v0/models.proto"; -import "google/protobuf/field_mask.proto"; -option csharp_namespace = "Ansys.Api.Discovery.V0"; -option go_package = "ansys/api/discovery/v0"; - -service DesignFaces{ - // Gets a design face. - rpc GetDesignFace(GetDesignFaceRequest) returns(DesignFace) { - option(google.api.http) = { - get: "/v0/designfaces/{moniker}" - }; - } - // Lists all design faces. - rpc ListDesignFaces(ListDesignFacesRequest) returns(ListDesignFacesResponse) { - option(google.api.http) = { - get: "/v0/designfaces" - }; - } - // Gets the user-selected design faces in the current active window. - // UNDER REVIEW for V1 - rpc GetUserSelectedDesignFaces(GetUserSelectedDesignFacesRequest) returns(GetUserSelectedDesignFacesResponse) { - option(google.api.http) = { - get: "/v0/designfaces:userselected" - }; - } - // Puts the user-selected design faces in the current active window. - // UNDER REVIEW for V1 - rpc PutUserSelectedDesignFaces(PutUserSelectedDesignFacesRequest) returns(PutUserSelectedDesignFacesResponse) { - option(google.api.http) = { - post: "/v0/designfaces:userselected" - body : "*" - }; - } - // Fills the suppled design faces. - // UNDER REVIEW for V1 - rpc FillDesignFaces(FillDesignFacesRequest) returns(FillDesignFacesResponse) { - option(google.api.http) = { - post: "/v0/designfaces:fill" - body : "*" - }; - } -} - -message GetDesignFaceRequest{ - // The moniker for the item being requested. - string moniker = 1; - // The field mask used to filter returned values. - google.protobuf.FieldMask fields = 2; -} - -message ListDesignFacesRequest{ - // The parent, which can be empty or "designbodies/{moniker}" or "parts/{moniker}". - string parent = 1; - // The maximum number of items to return. - int32 page_size = 2; - // The next_page_token value returned from a previous List request, if any. - string page_token = 3; - // The view. - DesignFaceView view = 4; - // The filter. - string filter = 5; -} - -message ListDesignFacesResponse{ - // The faces on this page. - repeated DesignFace design_faces = 1 [json_name="design_faces"]; - // Next page token, or empty if there are no more results in the list. - string next_page_token = 2; -} - -message GetUserSelectedDesignFacesRequest{ -} - -message GetUserSelectedDesignFacesResponse{ - // The design faces currently selected. - repeated DesignFace design_faces = 1 [json_name = "design_faces"]; -} - -message PutUserSelectedDesignFacesRequest{ - // The design faces to select. - repeated DesignFace design_faces = 1 [json_name = "design_faces"]; -} - -message PutUserSelectedDesignFacesResponse{ -} - -message FillDesignFacesRequest{ - // The design faces to fill. - repeated string monikers = 1; -} - -message FillDesignFacesResponse{ -} diff --git a/ansys/api/discovery/v0/designmeshes.proto b/ansys/api/discovery/v0/designmeshes.proto deleted file mode 100644 index f47c046..0000000 --- a/ansys/api/discovery/v0/designmeshes.proto +++ /dev/null @@ -1,30 +0,0 @@ -// Copyright 2022, ANSYS Inc. Unauthorized use, distribution or duplication is prohibited. -syntax = "proto3"; -package ansys.api.discovery.v0; -import "ansys/api/discovery/v0/models.proto"; -option csharp_namespace = "Ansys.Api.Discovery.V0"; - -service DesignMeshes{ - // Gets a design mesh. - rpc GetDesignMesh(GetDesignMeshRequest) returns(DesignMesh) { - } - - // Lists all design meshes. - rpc ListDesignMeshes(ListDesignMeshesRequest) returns(ListDesignMeshesResponse) { - } - -} - -message GetDesignMeshRequest{ - // The moniker for the item being requested. - string moniker = 1; -} - -message ListDesignMeshesRequest{ - // The parent, which can be empty or "designbodies/{moniker}" or "parts/{moniker}". - string parent = 1; -} -message ListDesignMeshesResponse{ - // The faces on this page. - repeated DesignMesh design_meshes = 1 [json_name="design_meshes"]; -} \ No newline at end of file diff --git a/ansys/api/discovery/v0/documents.proto b/ansys/api/discovery/v0/documents.proto deleted file mode 100644 index 8d69444..0000000 --- a/ansys/api/discovery/v0/documents.proto +++ /dev/null @@ -1,162 +0,0 @@ -// Copyright 2022, ANSYS Inc. Unauthorized use, distribution or duplication is prohibited. -syntax = "proto3"; -package ansys.api.discovery.v0; -import "ansys/api/discovery/google/api/annotations.proto"; -import "ansys/api/discovery/v0/models.proto"; -import "google/protobuf/field_mask.proto"; -option csharp_namespace = "Ansys.Api.Discovery.V0"; -option go_package = "ansys/api/discovery/v0"; - -service Documents{ - // Gets the document with the specified main part moniker. The document must have been previously loaded using 'Open'. - rpc GetDocument(GetDocumentRequest) returns(Document) { - option(google.api.http) = { - get: "/v0/documents/{moniker}" - }; - } - // Lists all documents. - rpc ListDocuments(ListDocumentsRequest) returns(ListDocumentsResponse) { - option(google.api.http) = { - get: "/v0/documents" - }; - } - - // Gets the active document (based on the active window). - rpc GetActive(GetActiveDocumentRequest) returns(GetActiveDocumentResponse) { - option(google.api.http) = { - get: "/v0/documents:active" - }; - } - // Puts the active document (sets the active window). - rpc PutActive(PutActiveDocumentRequest) returns(PutActiveDocumentResponse) { - option(google.api.http) = { - post: "/v0/documents:active" - }; - } - // Opens a document using the supplied file path. - rpc Open(OpenDocumentRequest) returns(OpenDocumentResponse) { - option(google.api.http) = { - post: "/v0/documents:open" - body : "filepath" - }; - } - // Creates a new document. - rpc New(NewDocumentRequest) returns(NewDocumentResponse) { - option(google.api.http) = { - post: "/v0/documents:new" - }; - } - // Closes the active document. - rpc Close(CloseDocumentRequest) returns(CloseDocumentResponse) { - option(google.api.http) = { - post: "/v0/documents:close" - }; - } - // Saves the active document. - rpc Save(SaveDocumentRequest) returns(SaveDocumentResponse) { - option(google.api.http) = { - post: "/v0/documents:save" - }; - } - // Saves the active document using the supplied file path. - rpc SaveAs(SaveAsDocumentRequest) returns(SaveAsDocumentResponse) { - option(google.api.http) = { - post: "/v0/documents:saveas" - body : "filepath" - }; - } - // Inserts a document into the currently active document. - rpc Insert(InsertDocumentRequest) returns(InsertDocumentResponse) { - option(google.api.http) = { - post: "/v0/documents:insert" - body : "filepath" - }; - } -} - -message GetDocumentRequest{ - // The moniker for the item being requested. - string moniker = 1; - // FieldMask used to filter returned values. - google.protobuf.FieldMask fields = 2; -} - -message ListDocumentsRequest{ - // The location. - string parent = 1; - // The maximum number of items to return. - int32 page_size = 2; - // The next_page_token value returned from a previous List request, if any. - string page_token = 3; - // The view. - DocumentView view = 4; - // The filter. - string filter = 5; -} - -message ListDocumentsResponse{ - // The documents on this page. - repeated Document documents = 1; - // Next page token, or empty if there are no more results in the list. - string next_page_token = 2; -} - -message GetActiveDocumentRequest{ - google.protobuf.FieldMask fields = 2; -} - -message GetActiveDocumentResponse{ - Document document = 1; -} - -message PutActiveDocumentRequest{ - string moniker = 1; -} - -message PutActiveDocumentResponse{ -} - -message NewDocumentRequest{ -} - -message NewDocumentResponse{ - string moniker = 1; -} - -message OpenDocumentRequest{ - string filepath = 1; -} - -message OpenDocumentResponse{ - string moniker = 1; -} - -message CloseDocumentRequest{ - string moniker = 1; -} - -message CloseDocumentResponse{ -} - -message SaveDocumentRequest{ - string moniker = 1; -} - -message SaveDocumentResponse{ -} - -message SaveAsDocumentRequest{ - string filepath = 1; -} - -message SaveAsDocumentResponse{ - string moniker = 1; -} - -message InsertDocumentRequest{ - string filepath = 1; -} - -message InsertDocumentResponse{ - string moniker = 1; -} diff --git a/ansys/api/discovery/v0/facettools.proto b/ansys/api/discovery/v0/facettools.proto deleted file mode 100644 index cae58a3..0000000 --- a/ansys/api/discovery/v0/facettools.proto +++ /dev/null @@ -1,45 +0,0 @@ -// Copyright 2022, ANSYS Inc. Unauthorized use, distribution or duplication is prohibited. -syntax = "proto3"; -package ansys.api.discovery.v0; -import "ansys/api/discovery/v0/models.proto"; -// import "google/protobuf/wrappers.proto"; -option csharp_namespace = "Ansys.Api.Discovery.V0"; - -service FacetTools{ - // Shrinkwrap bodies. - rpc ShrinkWrapBody(ShrinkWrapBodyRequest) returns (ShrinkWrapBodyResponse); - - // Shrinkwrap meshes. - rpc ShrinkWrapMesh(ShrinkWrapMeshRequest) returns (ShrinkWrapMeshResponse); - - // Find and fix faceted body. - rpc FacetAutoFix(FacetAutoFixRequest) returns (FacetAutoFixResponse); -} - - -message ShrinkWrapBodyRequest{ - // The bodies to be shrinkwrapped - repeated DesignBody selection = 1; - ShrinkWrapOptions options= 2; -} - -message ShrinkWrapBodyResponse{ - bool result = 1; -} - -message ShrinkWrapMeshRequest{ - repeated DesignMesh selection = 1; - ShrinkWrapOptions options= 2; -} - -message ShrinkWrapMeshResponse{ - bool result = 1; -} - -message FacetAutoFixRequest{ - repeated DesignMesh selection = 1; -} - -message FacetAutoFixResponse{ - bool result = 1; -} diff --git a/ansys/api/discovery/v0/greet.proto b/ansys/api/discovery/v0/greet.proto deleted file mode 100644 index afa99c6..0000000 --- a/ansys/api/discovery/v0/greet.proto +++ /dev/null @@ -1,22 +0,0 @@ -// Copyright 2022, ANSYS Inc. Unauthorized use, distribution or duplication is prohibited. -syntax = "proto3"; - -package ansys.api.discovery.v0; -option csharp_namespace = "Ansys.Api.Discovery.V0"; - - -// The greeting service definition. -service Greeter { - // Sends a greeting - rpc SayHello (HelloRequest) returns (HelloReply); -} - -// The request message containing the user's name. -message HelloRequest { - string name = 1; -} - -// The response message containing the greetings. -message HelloReply { - string message = 1; -} diff --git a/ansys/api/discovery/v0/models.proto b/ansys/api/discovery/v0/models.proto deleted file mode 100644 index 01c2026..0000000 --- a/ansys/api/discovery/v0/models.proto +++ /dev/null @@ -1,680 +0,0 @@ -// Copyright 2022, ANSYS Inc. Unauthorized use, distribution or duplication is prohibited. -syntax = "proto3"; -package ansys.api.discovery.v0; -//import "ansys/api/discovery/google/api/annotations.proto"; -import "google/protobuf/struct.proto"; -option csharp_namespace = "Ansys.Api.Discovery.V0"; -option go_package = "ansys/api/discovery/v0"; - -// -// The type of curve. -enum CurveType { - CURVETYPE_UNKNOWN = 0; - CURVETYPE_LINE = 1; - CURVETYPE_CIRCLE = 2; - CURVETYPE_ELLIPSE = 3; - CURVETYPE_NURBS = 4; - CURVETYPE_PROCEDURAL = 5; -} - -// -// The type of surface. -enum SurfaceType { - SURFACETYPE_UNKNOWN = 0; - SURFACETYPE_PLANE = 1; - SURFACETYPE_CYLINDER = 2; - SURFACETYPE_CONE = 3; - SURFACETYPE_TORUS = 4; - SURFACETYPE_SPHERE = 5; - SURFACETYPE_NURBS = 6; - SURFACETYPE_PROCEDURAL = 7; -} - -// -// The type of dimension. -enum DimensionType { - DIMENSIONTYPE_UNKNOWN = 0; - DIMENSIONTYPE_LINEAR = 1; - DIMENSIONTYPE_DIAMETRIC = 2; - DIMENSIONTYPE_RADIAL = 3; - DIMENSIONTYPE_ARC = 4; - DIMENSIONTYPE_AREA = 5; - DIMENSIONTYPE_VOLUME = 6; - DIMENSIONTYPE_MASS = 7; - DIMENSIONTYPE_ANGULAR = 8; - DIMENSIONTYPE_COUNT = 9; - DIMENSIONTYPE_UNITLESS = 10; -} - -// -// A design edge. -message DesignEdge{ - // The moniker. - // Output only. - string moniker = 1; - // The curve type. - // Output only. - CurveType curve_type = 10 [json_name = "curve_type"]; - // The display name of the owning design body. - // Output only. - string owner_display_name = 11 [json_name = "owner_display_name"]; - // The export identifier. - // Output only. - string export_id = 12 [json_name = "export_id"]; - // The length of the design edge. - // Output only. - double length = 13; -} - -// -// DesignEdgeView is used to select which fields to return for Get/List. -enum DesignEdgeView { - // Unspecified. - DESIGNEDGE_VIEW_UNSPECIFIED = 0; - // Returns everything. - DESIGNEDGE_VIEW_FULL = 1; - // Returns the moniker only. - DESIGNEDGE_VIEW_MONIKER = 2; - // Returns basic information. - DESIGNEDGE_VIEW_BASIC = 3; -} - -// -// A design face. -message DesignFace{ - // The moniker. - // Output only. - string moniker = 1; - // The surface type. - // Output only. - SurfaceType surface_type = 10 [json_name = "surface_type"]; - // The display name of the owning design body. - // Output only. - string owner_display_name = 11 [json_name = "owner_display_name"]; - // The export identifier. - // Output only. - string export_id = 12 [json_name = "export_id"]; - // The area of the design face. - // Output only. - double area = 13; -} - -// -// DesignFaceView is used to select which fields to return for Get/List. -enum DesignFaceView { - DESIGNFACE_VIEW_UNSPECIFIED = 0; - DESIGNFACE_VIEW_FULL = 1; - DESIGNFACE_VIEW_MONIKER = 2; - DESIGNFACE_VIEW_BASIC = 3; -} - -// -// A design mesh. -message DesignMesh{ - // The moniker. - // Output only. - string moniker = 1; - // The design mesh display name. - string display_name=2 [json_name = "display_name"]; -} - -// -// A design body. -message DesignBody{ - // The moniker. - // Output only. - string moniker = 1; - // The design body display name. - string display_name = 2 [json_name = "display_name"]; - // Indicates whether this design body can be suppressed. - // Output only. - bool can_suppress = 3 [json_name = "can_suppress"]; - // Indicates whether this design body is deleted. - // Output only. - bool is_deleted = 4 [json_name = "is_deleted"]; - // Indicates whether this design body is suppressed. - // Output only. - bool is_suppressed = 5 [json_name = "is_suppressed"]; - // The transformation to master space. - // Output only. - Matrix transform_to_master = 6 [json_name = "transform_to_master"]; - // Access to design body master properties. - // Output only. - DesignBodyMasterNullable master = 7; -} - -// -// A nullable design body master. -message DesignBodyMasterNullable{ - oneof kind { - // Null if the design body is not a master. - google.protobuf.NullValue null = 1; - // Access to design body master properties. - DesignBodyMaster props = 2; - } -} - -// -// A design body master. -message DesignBodyMaster { - // The update state. - // Output only. - string update_state = 6 [json_name = "update_state"]; - // The map of text attributes. - // Output only. - map< string, string > text_attributes = 7 [json_name = "text_attributes"]; - // The nmp of number attributes. - // Output only. - map< string, double > number_attributes = 8 [json_name = "number_attributes"]; - // The solid material. - // Output only. - Material material = 9; - // The surface material. - // Output only. - Material surface_material = 10 [json_name = "surface_material"]; - // The shape information - // Output only. - Shape shape = 11; - // - // The material. - message Material { - // The material display name. - // Output only. - string display_name=1 [json_name = "display_name"]; - } - // - // The shape. - message Shape { - // Indicates if this is a surface body. - // Output only. - bool is_surface_body = 1 [json_name = "is_surface_body"]; - // The surface area. - // Output only. - double surface_area = 2 [json_name = "surface_area"]; - // The volume. - // Output only. - double volume = 3; - // The bounding box size. - // Output only. - Direction bounding_box_size = 4 [json_name = "bounding_box_size"]; - } -} - -// -// DesignBodyView is used to select which fields to return for Get/List. -enum DesignBodyView { - DESIGNBODY_VIEW_UNSPECIFIED = 0; - DESIGNBODY_VIEW_FULL = 1; - DESIGNBODY_VIEW_MONIKER = 2; - DESIGNBODY_VIEW_BASIC = 3; -} - -// -// A component. -message Component{ - // The moniker. - // Output only. - string moniker = 1; - // The display name. - string display_name = 2 [json_name = "display_name"]; - // The part occurrence for this component. - // Output only. - Part part_occurrence = 3 [json_name = "part_occurrence"]; - // The placement matrix. - // Output only. - Matrix placement =4; -} - -// -// ComponentView is used to select which fields to return for Get/List. -enum ComponentView { - COMPONENT_VIEW_UNSPECIFIED = 0; - COMPONENT_VIEW_FULL = 1; - COMPONENT_VIEW_MONIKER = 2; - COMPONENT_VIEW_BASIC = 3; -} - -// -// A part. -message Part{ - // The moniker. - // Output only. - string moniker = 1; - // The display name. - string display_name = 2 [json_name = "display_name"]; -} - -// -// PartView is used to select which fields to return for Get/List. -enum PartView { - PART_VIEW_UNSPECIFIED = 0; - PART_VIEW_FULL = 1; - PART_VIEW_MONIKER = 2; - PART_VIEW_BASIC = 3; -} - -// -// A named selection. -message NamedSelection { - // The moniker. - // Output only. - string moniker = 1; - // The display name. - string display_name = 2 [json_name = "display_name"]; -} - -// -// NamedSelectionView is used to select which fields to return for Get/List. -enum NamedSelectionView { - NAMEDSELECTION_VIEW_UNSPECIFIED = 0; - NAMEDSELECTION_VIEW_FULL = 1; - NAMEDSELECTION_VIEW_MONIKER = 2; - NAMEDSELECTION_VIEW_BASIC = 3; -} - -// -// A driving dimension. -message DrivingDimension { - // The moniker. - // Output only. - string moniker = 1; - // The display name. - string display_name = 2 [json_name = "display_name"]; - // The type of driving dimension. - // Output only. - DimensionType dimension_type = 3 [json_name = "dimension_type"]; - // The value of the driving dimension. - double dimension_value = 4 [json_name = "dimension_value"]; -} - -// -// DrivingDimensionView is used to select which fields to return for Get/List. -enum DrivingDimensionView { - DRIVINGDIMENSION_VIEW_UNSPECIFIED = 0; - DRIVINGDIMENSION_VIEW_FULL = 1; - DRIVINGDIMENSION_VIEW_MONIKER = 2; - DRIVINGDIMENSION_VIEW_BASIC = 3; -} - -// -// A design document. -message Document{ - string moniker = 1; - bool is_complete=2 [json_name = "is_complete"]; - bool is_locked=3 [json_name = "is_locked"]; - bool is_modified=4 [json_name = "is_modified"]; - bool is_removed = 5 [json_name = "is_removed"]; - Part main_part=6 [json_name = "main_part"]; - bool main_part_displays_file_name=7 [json_name = "main_part_displays_file_name"]; - string path = 10; -} - -// -// DocumentView is used to select which fields to return for Get/List. -enum DocumentView { - DOCUMENT_VIEW_UNSPECIFIED = 0; - DOCUMENT_VIEW_FULL = 1; - DOCUMENT_VIEW_MONIKER = 2; - DOCUMENT_VIEW_BASIC = 3; -} - -// -// A 3D coordinate system. -message CoordinateSystem{ - // The moniker. - // Output only. - string moniker = 1; - // The display name. - string display_name = 10 [json_name = "display_name"]; - // The display name. - Frame frame = 11; -} - -// -// CoordinateSystemView is used to select which fields to return for Get/List. -enum CoordinateSystemView { - COORDINATESYSTEM_VIEW_UNSPECIFIED = 0; - COORDINATESYSTEM_VIEW_FULL = 1; - COORDINATESYSTEM_VIEW_MONIKER = 2; - COORDINATESYSTEM_VIEW_BASIC = 3; -} - -// -// A 3D point. -message Point { - double x = 1; - double y = 2; - double z = 3; -} - -// -// A 3D direction. -message Direction { - double x = 1; - double y = 2; - double z = 3; -} - -// -// A 3D coordinate frame. -message Frame { - Point origin = 1; - Direction dir_x = 2 [json_name = "dir_x"]; - Direction dir_y = 3 [json_name = "dir_y"]; - Direction dir_z = 4 [json_name = "dir_z"]; -} - -// -// A 3D box. -message Box { - Point min = 1; - Point max = 2; -} - -// -// A homogeneous 3D transformation matrix. -// The matrix is a pre-multiplication transformation. -// The rotation is in m00->m22 and contains no scaling in its leading diagonal. -// The translation is m03/m33, m13/m33, m23/m33. -// The uniform scale is 1/m33. -message Matrix{ - double m00 = 1; - double m01 = 2; - double m02 = 3; - double m03 = 4; - double m10 = 5; - double m11 = 6; - double m12 = 7; - double m13 = 8; - double m20 = 9; - double m21 = 10; - double m22 = 11; - double m23 = 12; - double m30 = 13; - double m31 = 14; - double m32 = 15; - double m33 = 16; -} -// -// An history track parameter -message HistoryTrackParameter { - // The moniker. - // Output only. - string moniker = 1; - // The display name. - string display_name = 2 [json_name = "display_name"]; - // The type of history track parameter. - // Output only. - DimensionType dimension_type = 3 [json_name = "dimension_type"]; - // The value of the history track parameter. - double dimension_value = 4 [json_name = "dimension_value"]; -} - -// -// HistoryTrackParameterView is used to select which fields to return for Get/List. -enum HistoryTrackParameterView { - HISTORYTRACKPARAMETER_VIEW_UNSPECIFIED = 0; - HISTORYTRACKPARAMETER_VIEW_FULL = 1; - HISTORYTRACKPARAMETER_VIEW_MONIKER = 2; - HISTORYTRACKPARAMETER_VIEW_BASIC = 3; -} - -// -// An input parameter -message InputParameter { - // The moniker. - // Output only. - string moniker = 1; - // The parent variation's identifier - string parent_moniker = 2 [json_name = "parent_moniker"]; - // The display name. - string display_name = 3 [json_name = "display_name"]; - // The type of physics parameter. - QuantityType quantity_type = 4 [json_name = "quantity_type"]; - // The value of the output physics parameter. - double quantity_value = 5 [json_name = "quantity_value"]; - // The value's unit - int32 unit = 6 [json_name = "unit"]; - // The value unit's abbreviation. - string unit_abbreviation = 7; -} - -// -// InputParameterView is used to select which fields to return for Get/List. -enum InputParameterView { - INPUT_PARAMETER_VIEW_UNSPECIFIED = 0; - INPUT_PARAMETER_VIEW_FULL = 1; - INPUT_PARAMETER_VIEW_MONIKER = 2; - INPUT_PARAMETER_VIEW_BASIC = 3; -} - -// -// An output parameter -message OutputParameter { - // The moniker. - // Output only. - string moniker = 1; - // The parent variation's identifier - string parent_moniker = 2 [json_name = "parent_moniker"]; - // The display name. - string display_name = 3 [json_name = "display_name"]; - // The type of parameter. - QuantityType quantity_type = 4 [json_name = "quantity_type"]; - // The value of the output parameter. - double quantity_value = 5 [json_name = "quantity_value"]; - // The value's unit - int32 unit = 6 [json_name = "unit"]; - // The value unit's abbreviation. - string unit_abbreviation = 7; -} - -// -// OutputParameterView is used to select which fields to return for Get/List. -enum OutputParameterView { - OUTPUT_PARAMETER_VIEW_UNSPECIFIED = 0; - OUTPUT_PARAMETER_VIEW_FULL = 1; - OUTPUT_PARAMETER_VIEW_MONIKER = 2; - OUTPUT_PARAMETER_VIEW_BASIC = 3; -} - -// -// A script parameter -message ScriptParameter { - // The moniker. - // Output only. - string moniker = 1; - // The display name. - string display_name = 2 [json_name = "display_name"]; - // The type of script parameter. - DimensionType dimension_type = 3 [json_name = "dimension_type"]; - // The value of the script parameter. - double dimension_value = 4 [json_name = "dimension_value"]; -} - -// -// ScriptParameterView is used to select which fields to return for Get/List. -enum ScriptParameterView { - SCRIPTPARAMETER_VIEW_UNSPECIFIED = 0; - SCRIPTPARAMETER_VIEW_FULL = 1; - SCRIPTPARAMETER_VIEW_MONIKER = 2; - SCRIPTPARAMETER_VIEW_BASIC = 3; -} - -// -// ShrinkWrapOptions is used to specify ShrinkWrap method in the Facet Tools. -message ShrinkWrapOptions { - // Gets or sets the maximum size of the facet in mm. - double size =2; - //Gets or sets a value indicating whether to keep the original body or not. - bool keep_original_bodies =3; - // Gets or sets a value indicating whether to preserve features. - bool preserve_features =4; - // Gets or sets a value indicating whether to preserve features. - double angle_tolerance =5; - // Gets or sets a value indicating whether to preserve features. - bool secondary_size_enabled =6; - // Get or sets a value indicating secondary size - double secondary_size = 7; - // Gets or sets a value indicating whether to preserve features. - bool max_size_enabled =8; - // Get or sets a value indicating secondary size - double max_size = 9; - // Gets or sets a value indicating whether to preserve features. - double curvature_angle =10; - // Get or sets a value indicating secondary size -} - -// -// A Variation (represents a row into the variation table) -message Variation { - // The moniker. - // Output only. - string moniker = 1; - // The display name. - string display_name = 2 [json_name = "display_name"]; - // Starred status - bool starred = 3 [json_name = "starred"]; - // The type of script parameter. - // Output only. - repeated InputParameter inputs = 4 [json_name = "inputs"]; - // The value of the script parameter. - repeated OutputParameter outputs = 5 [json_name = "outputs"]; -} - -// -// An input column (represents the same input parameter across all the variations ) -message InputColumn { - // The moniker. - // Output only. - string moniker = 1; - // The display name. - string display_name = 2 [json_name = "display_name"]; - // The range - // Output only - string range = 3; - // The parameters - repeated InputParameter parameter_variations= 4; -} - -// -// An output column (represents the same output parameter across all the variations ) -message OutputColumn { - // The moniker. - // Output only. - string moniker = 1; - // The display name. - string display_name = 2 [json_name = "display_name"]; - // The range - // Output only - string range = 3; - // The parameters - repeated OutputParameter parameter_variations= 4; -} - -// -// Represents the quantity type for a physics parameter. -enum QuantityType { - QUANTITY_TYPE_ACCELERATION=0; - QUANTITY_TYPE_ANGLE=1; - QUANTITY_TYPE_AREA=2; - QUANTITY_TYPE_AREA_DENSITY=3; - QUANTITY_TYPE_AREA_MOMENT_OF_INERTIA=4; - QUANTITY_TYPE_CAPACITANCE=5; - QUANTITY_TYPE_COEFFICIENT_OF_THERMAL_EXPANSION=6; - QUANTITY_TYPE_DENSITY=7; - QUANTITY_TYPE_DYNAMIC_VISCOSITY=8; - QUANTITY_TYPE_ELECTRIC_ADMITTANCE=9; - QUANTITY_TYPE_ELECTRIC_CHARGE=10; - QUANTITY_TYPE_ELECTRIC_CHARGE_DENSITY=11; - QUANTITY_TYPE_ELECTRIC_CONDUCTANCE=12; - QUANTITY_TYPE_ELECTRIC_CONDUCTIVITY=13; - QUANTITY_TYPE_ELECTRIC_CURRENT=14; - QUANTITY_TYPE_ELECTRIC_CURRENT_DENSITY=15; - QUANTITY_TYPE_ELECTRIC_CURRENT_GRADIENT=16; - QUANTITY_TYPE_ELECTRIC_FIELD=17; - QUANTITY_TYPE_ELECTRIC_INDUCTANCE=18; - QUANTITY_TYPE_ELECTRIC_POTENTIAL=19; - QUANTITY_TYPE_ELECTRIC_POTENTIAL_AC=20; - QUANTITY_TYPE_ELECTRIC_POTENTIAL_CHANGE_RATE=21; - QUANTITY_TYPE_ELECTRIC_POTENTIAL_DC=22; - QUANTITY_TYPE_ELECTRIC_RESISTANCE=23; - QUANTITY_TYPE_ELECTRIC_RESISTIVITY=24; - QUANTITY_TYPE_ELECTRIC_SURFACE_CHARGE_DENSITY=25; - QUANTITY_TYPE_ENERGY=26; - QUANTITY_TYPE_ENTROPY=27; - QUANTITY_TYPE_FORCE=28; - QUANTITY_TYPE_FORCE_CHANGE_RATE=29; - QUANTITY_TYPE_FORCE_PER_LENGTH=30; - QUANTITY_TYPE_FREQUENCY=31; - QUANTITY_TYPE_HEAT_FLUX=32; - QUANTITY_TYPE_HEAT_TRANSFER_COEFFICIENT=33; - QUANTITY_TYPE_INVERSE_AREA=34; - QUANTITY_TYPE_INVERSE_LENGTH=35; - QUANTITY_TYPE_KINEMATIC_VISCOSITY=36; - QUANTITY_TYPE_LENGTH=37; - QUANTITY_TYPE_MAGNETIC_FIELD=38; - QUANTITY_TYPE_MASS=39; - QUANTITY_TYPE_MASS_CONCENTRATION=40; - QUANTITY_TYPE_MASS_FLOW=41; - QUANTITY_TYPE_MASS_FLUX=42; - QUANTITY_TYPE_MASS_FRACTION=43; - QUANTITY_TYPE_MASS_MOMENT_OF_INERTIA=44; - QUANTITY_TYPE_MOLARITY=45; - QUANTITY_TYPE_MOLAR_MASS=46; - QUANTITY_TYPE_PERMEABILITY=47; - QUANTITY_TYPE_PERMITTIVITY=48; - QUANTITY_TYPE_POWER=49; - QUANTITY_TYPE_POWER_DENSITY=50; - QUANTITY_TYPE_POWER_RATIO=51; - QUANTITY_TYPE_PRESSURE=52; - QUANTITY_TYPE_RATIO=53; - QUANTITY_TYPE_RATIO_CHANGE_RATE=54; - QUANTITY_TYPE_REACTIVE_ENERGY=55; - QUANTITY_TYPE_REACTIVE_POWER=56; - QUANTITY_TYPE_ROTATIONAL_ACCELERATION=57; - QUANTITY_TYPE_ROTATIONAL_SPEED=58; - QUANTITY_TYPE_ROTATIONAL_STIFFNESS=59; - QUANTITY_TYPE_ROTATIONAL_STIFFNESS_PER_LENGTH=60; - QUANTITY_TYPE_SOLID_ANGLE=61; - QUANTITY_TYPE_SPECIFIC_ENERGY=62; - QUANTITY_TYPE_SPECIFIC_ENTROPY=63; - QUANTITY_TYPE_SPECIFIC_VOLUME=64; - QUANTITY_TYPE_SPECIFIC_WEIGHT=65; - QUANTITY_TYPE_SPEED=66; - QUANTITY_TYPE_TEMPERATURE=67; - QUANTITY_TYPE_TEMPERATURE_CHANGE_RATE=68; - QUANTITY_TYPE_TEMPERATURE_DELTA=69; - QUANTITY_TYPE_THERMAL_CONDUCTIVITY=70; - QUANTITY_TYPE_THERMAL_RESISTANCE=71; - QUANTITY_TYPE_TIME=72; - QUANTITY_TYPE_TORQUE=73; - QUANTITY_TYPE_TORQUE_PER_LENGTH=74; - QUANTITY_TYPE_VOLUME=75; - QUANTITY_TYPE_VOLUME_CONCENTRATION=76; - QUANTITY_TYPE_VOLUME_FLOW=77; - QUANTITY_TYPE_VOLUME_PER_LENGTH=78; - QUANTITY_TYPE_WARPING_MOMENT_OF_INERTIA=79; -} - -// -// A design curve. -message DesignCurve{ - // The moniker. - // Output only. - string moniker = 1; - // The display name of the owning design body. - // Output only. - string owner_display_name = 2; - // The length of the design edge. - // Output only. - double length = 3; -} - -// -// Object type descriptor -enum EntityType{ - PART = 0; - COMPONENT = 1; - BODY = 2; - NAMED_SELECTION = 3; -} diff --git a/ansys/api/discovery/v0/namedselections.proto b/ansys/api/discovery/v0/namedselections.proto deleted file mode 100644 index 57afba2..0000000 --- a/ansys/api/discovery/v0/namedselections.proto +++ /dev/null @@ -1,156 +0,0 @@ -// Copyright 2022, ANSYS Inc. Unauthorized use, distribution or duplication is prohibited. -syntax = "proto3"; -package ansys.api.discovery.v0; -import "ansys/api/discovery/google/api/annotations.proto"; -import "ansys/api/discovery/v0/models.proto"; -import "google/protobuf/field_mask.proto"; -option csharp_namespace = "Ansys.Api.Discovery.V0"; -option go_package = "ansys/api/discovery/v0"; - -// Named Selections -// -service NamedSelections{ - // Gets a named selection. - rpc GetNamedSelection(GetNamedSelectionRequest) returns(NamedSelection) { - option(google.api.http) = { - get: "/v0/namedselections/{moniker}" - }; - } - // Creates a named selection. This is a custom method as the signature is non-standard. - rpc CreateNamedSelectionCustom(CreateNamedSelectionCustomRequest) returns(NamedSelection) { - option(google.api.http) = { - post: "/v0/namedselections:create" - body : "*" - }; - } - // Lists all named selections. - rpc ListNamedSelections(ListNamedSelectionsRequest) returns(ListNamedSelectionsResponse) { - option(google.api.http) = { - get: "/v0/namedselections" - }; - } - // Adds members to a named selection. - // UNDER REVIEW for V1 - rpc AddMembers(AddMembersRequest) returns(AddMembersResponse) { - option(google.api.http) = { - post: "/v0/namedselections:addmembers" - body : "*" - }; - } - // Removes members from a named selection. - // UNDER REVIEW for V1 - rpc RemoveMembers(RemoveMembersRequest) returns(RemoveMembersResponse) { - option(google.api.http) = { - post: "/v0/namedselections:removemembers" - body : "*" - }; - } - // Deletes a named selection. - rpc DeleteNamedSelection(DeleteNamedSelectionRequest) returns(DeleteNamedSelectionResponse) { - option(google.api.http) = { - delete: "/v0/namedselections/{moniker}" - }; - } - // Deletes multiple named selections. - rpc DeleteNamedSelections(DeleteNamedSelectionsRequest) returns(DeleteNamedSelectionsResponse) { - option(google.api.http) = { - delete: "/v0/namedselections:deletemultiple" - }; - } - // Sets the active user selection to the supplied named selection. - // UNDER REVIEW for V1 - rpc SetSelectionToNamedSelection(SetSelectionToNamedSelectionRequest) returns(SetSelectionToNamedSelectionResponse) { - option(google.api.http) = { - post: "/v0/namedselections/{moniker}:setselection" - body : "*" - }; - } -} - -message GetNamedSelectionRequest{ - // Moniker of the named selection. - string moniker = 1; - // The field mask to filter the named selection. Not setting a field mask will return 'default' information. - google.protobuf.FieldMask fields = 2; -} - -message CreateNamedSelectionCustomRequest{ - // Name of the named selection. - string display_name = 1; - // Member monikers to populate the named selection. - repeated string member_monikers = 2 [json_name = "member_monikers"]; -} - -message ListNamedSelectionsRequest { - // The parent, which must be empty. - string parent = 1; - // The maximum number of items to return. - int32 page_size = 2; - // The next_page_token value returned from a previous List request, if any. - string page_token = 3; - // The view. - NamedSelectionView view = 4; - // The filter. - string filter = 5; -} - -message ListNamedSelectionsResponse{ - // The named selections on this page. - repeated NamedSelection named_selections = 1 [json_name = "named_selections"]; - // Next page token, or empty if there are no more results in the list. - string next_page_token = 2; -} - -message AddMembersRequest{ - // Moniker of the named selection. - string moniker = 1; - // Monikers of the entities to add to the named selection. - repeated string member_monikers = 2 [json_name = "member_monikers"]; -} - -message AddMembersResponse{ - // Updated named selection. - NamedSelection named_selection = 1; -} - -message RemoveMembersRequest{ - // Moniker of the named selection. - string moniker = 1; - // Monikers of the entities to remove from the named selection. - repeated string member_monikers = 2 [json_name = "member_monikers"]; -} - -message RemoveMembersResponse{ - // Updated named selection. - NamedSelection named_selection = 1 [json_name = "named_selection"]; -} - -message DeleteNamedSelectionRequest{ - // The moniker of the named selection to delete. - string moniker = 1; -} - -message DeleteNamedSelectionResponse{ -} - -message SetSelectionToNamedSelectionRequest{ - // Moniker of the named selection to use. - string moniker = 1; -} - -message SetSelectionToNamedSelectionResponse{ -} - -message DeleteNamedSelectionsRequest{ - // The parent, which must be empty. - string parent = 1; - // The filter to use. - string filter = 2; -} - -message DeleteNamedSelectionsResponse{ - // In the case of any failures, the monikers of the failed named selections will be returned - repeated string failures = 1; -} - - diff --git a/ansys/api/discovery/v0/parts.proto b/ansys/api/discovery/v0/parts.proto deleted file mode 100644 index 9ccf22d..0000000 --- a/ansys/api/discovery/v0/parts.proto +++ /dev/null @@ -1,73 +0,0 @@ -// Copyright 2022, ANSYS Inc. Unauthorized use, distribution or duplication is prohibited. -syntax = "proto3"; -package ansys.api.discovery.v0; -import "ansys/api/discovery/google/api/annotations.proto"; -import "ansys/api/discovery/google/api/httpbody.proto"; -import "ansys/api/discovery/v0/models.proto"; -import "google/protobuf/field_mask.proto"; -option csharp_namespace = "Ansys.Api.Discovery.V0"; -option go_package = "ansys/api/discovery/v0"; - -service Parts{ - // Gets a part. - rpc GetPart(GetPartRequest) returns(Part) { - option(google.api.http) = { - get: "/v0/parts/{moniker}" - }; - } - // Lists all parts. - rpc ListParts(ListPartsRequest) returns(ListPartsResponse) { - option(google.api.http) = { - get: "/v0/parts" - }; - } - // Exports the geometry for a part in a supported format. - rpc ExportPart(ExportPartRequest) returns(google.api.HttpBody) { - option(google.api.http) = { - post: "/v0/parts/{moniker}:export" - body: "*" - }; - } -} - -message ListPartsRequest{ - // The parent, which can be empty or "documents/{moniker}". - string parent = 1; - // The maximum number of items to return. - int32 page_size = 2; - // The next_page_token value returned from a previous List request, if any. - string page_token = 3; - // The view. - PartView view = 4; - // The filter. - string filter = 5; -} - -message ListPartsResponse{ - // The parts on this page. - repeated Part parts = 1; - // Next page token, or empty if there are no more results in the list. - string next_page_token = 2; -} - -message GetPartRequest{ - // The moniker. - string moniker = 1; - // The fields. - google.protobuf.FieldMask fields = 2; -} - -message ExportPartRequest{ - // Moniker of the part to export. - string moniker = 1; - // Format to export to. - PartExportFormat format = 2; -} - -enum PartExportFormat { - PARTEXPORTFORMAT_ACIS_TEXT = 0; - PARTEXPORTFORMAT_ACIS_BINARY = 1; - PARTEXPORTFORMAT_PARASOLID_TEXT = 2; - PARTEXPORTFORMAT_PARASOLID_BINARY = 3; - PARTEXPORTFORMAT_STEP = 4; -} diff --git a/ansys/api/discovery/v0/preparetools.proto b/ansys/api/discovery/v0/preparetools.proto deleted file mode 100644 index 7c6ed08..0000000 --- a/ansys/api/discovery/v0/preparetools.proto +++ /dev/null @@ -1,90 +0,0 @@ -// Copyright 2022, ANSYS Inc. Unauthorized use, distribution or duplication is prohibited. -syntax = "proto3"; -package ansys.api.discovery.v0; -import "ansys/api/discovery/v0/models.proto"; -import "google/protobuf/wrappers.proto"; -option csharp_namespace = "Ansys.Api.Discovery.V0"; - -service PrepareTools{ - // Find and fix Interferences of the bodies. - rpc FixInterference(FixInterferenceRequest) returns (FixInterferenceResponse); - - // Find and fix short edges under certain tolerance. - rpc FixShortEdges(FixShortEdgesRequest) returns (FixShortEdgesResponse); - - // Find and fix shared topology between geometries. - rpc ShareTopology(ShareTopologyRequest) returns (ShareTopologyResponse); - - // Find and ushare existing shared topologies between geometries. - rpc UnshareTopology(UnshareTopologyRequest) returns (UnshareTopologyResponse); - - // Calls the remove rounds face command. - rpc RemoveRounds(RemoveRoundsRequest) returns(RemoveRoundsResponse); - - // Calls the remove face command. - rpc RemoveFaces(RemoveFacesRequest) returns(RemoveFacesResponse); -} - - -message FixInterferenceRequest{ - repeated DesignBody selection = 1; - // True if interfered body is removed from smaller body, false otherwise. - google.protobuf.BoolValue cut_smaller_body=2; -} - -message FixInterferenceResponse{ - bool result = 1; -} - -message FixShortEdgesRequest{ - repeated DesignEdge selection = 1; - // The maximum edge length in mm to remove shorter edges. - google.protobuf.DoubleValue max_edge_length=2; -} - -message FixShortEdgesResponse{ - bool result = 1; -} - -message ShareTopologyRequest{ - repeated DesignBody selection = 1; - // Gets or sets the maximum distance between items to be considered intersecting in mm. - google.protobuf.DoubleValue tolerance=2; - // Gets or sets the option for preserving the instancing. - google.protobuf.BoolValue preserve_instances=3; -} - -message ShareTopologyResponse{ - bool result = 1; -} - -message UnshareTopologyRequest{ - // Gets or sets a value indicating whether to include groups. - google.protobuf.BoolValue include_groups=1; - // Gets or sets a value indicating whether to unshare lower topology. - google.protobuf.BoolValue unshare_lower_topology =2; -} - -message UnshareTopologyResponse{ - bool result = 1; -} - -message RemoveRoundsRequest{ - // The round faces to be removed. - repeated DesignFace selection = 1; - // Auto-shrink fill area - google.protobuf.BoolValue auto_shrink = 2; -} - -message RemoveRoundsResponse{ - bool result = 1; -} - -message RemoveFacesRequest{ - // The faces to be removed. - repeated DesignFace selection = 1; -} - -message RemoveFacesResponse{ - bool result = 1; -} \ No newline at end of file diff --git a/ansys/api/discovery/v0/repairtools.proto b/ansys/api/discovery/v0/repairtools.proto deleted file mode 100644 index 1369252..0000000 --- a/ansys/api/discovery/v0/repairtools.proto +++ /dev/null @@ -1,175 +0,0 @@ -// Copyright 2022, ANSYS Inc. Unauthorized use, distribution or duplication is prohibited. -syntax = "proto3"; -package ansys.api.discovery.v0; -import "ansys/api/discovery/v0/models.proto"; -import "google/protobuf/struct.proto"; -import "google/protobuf/wrappers.proto"; -option csharp_namespace = "Ansys.Api.Discovery.V0"; - -service RepairTools{ - // Stitch surfaces into a single body. - rpc SolidifyStitch(SolidifyStitchRequest) returns (SolidifyStitchResponse); - // Detect and fix gaps in a surface body. - rpc SolidifyGaps(SolidifyGapsRequest) returns (SolidifyGapsResponse); - // Detect and fix missing faces on a surface body. - rpc SolidifyMissingFaces(SolidifyMissingFacesRequest) returns (SolidifyMissingFacesResponse); - - // Detect and fix coincident edges that do not mark the boundaries of new faces. - rpc FixSplitEdges(FixSplitEdgesRequest) returns (FixSplitEdgesResponse); - // Detect and remove edges that are not needed to define the shape of the model. - rpc FixExtraEdges(FixExtraEdgesRequest) returns (FixExtraEdgesResponse); - // Detect and fix duplicate faces. - rpc FixDuplicateFaces(FixDuplicateFacesRequest) returns (FixDuplicateFacesResponse); - - // Detect and fix gaps between curves. - rpc FixCurvesGaps(FixCurvesGapsRequest) returns (FixCurvesGapsResponse); - // Detect and remove duplicate curves. - rpc FixCurvesDuplicate(FixCurvesDuplicateRequest) returns (FixCurvesDuplicateResponse); - - // Replace two or more faces with a single face. - rpc AdjustMergeFaces(AdjustMergeFacesRequest) returns (AdjustMergeFacesResponse); - // Detect and remove small or sliver faces from a model. - rpc AdjustSmallFaces(AdjustSmallFacesRequest) returns (AdjustSmallFacesResponse); - // Simplify faces and curves into planes, cones, cylinders, lines, arcs, etc. - rpc AdjustSimplify(AdjustSimplifyRequest) returns (AdjustSimplifyResponse); - // Detect and fix edges that do not precisely lie at the intersection of two faces. - rpc AdjustInexactEdges(AdjustInexactEdgesRequest) returns (AdjustInexactEdgesResponse); -} - - -message SolidifyStitchRequest{ - repeated DesignFace selection = 1; - google.protobuf.DoubleValue maximum_distance =2; // default: 0.0001 - google.protobuf.BoolValue check_for_coincidence=3; // default: false - google.protobuf.BoolValue allow_multiple_bodies =4; // default: false - google.protobuf.BoolValue maintain_components=5; // default: false -} - -message SolidifyStitchResponse{ - bool result = 1; -} - -enum SolidifyFixMethodType{ - FILL = 0; - PATCH_BLEND = 1; - TRY_BOTH = 2; -} - -message SolidifyGapsRequest{ - repeated DesignFace selection = 1; - google.protobuf.DoubleValue angle=2; - google.protobuf.DoubleValue distance = 3; - oneof method - { - google.protobuf.NullValue null = 4; - SolidifyFixMethodType data =5; - } - google.protobuf.BoolValue allow_multi_patch = 6; -} - -message SolidifyGapsResponse{ - bool result = 1; -} - -message SolidifyMissingFacesRequest{ - repeated DesignFace selection = 1; - google.protobuf.DoubleValue angle=2; - google.protobuf.DoubleValue distance = 3; - oneof method - { - google.protobuf.NullValue null = 4; - SolidifyFixMethodType data =5; - } - google.protobuf.BoolValue allow_multi_patch =6; -} - -message SolidifyMissingFacesResponse{ - bool result = 1; -} - - -message FixSplitEdgesRequest{ - repeated DesignEdge selection = 1; - google.protobuf.DoubleValue max_edge_length = 2; - google.protobuf.DoubleValue min_edge_angle = 3; -} - -message FixSplitEdgesResponse{ - bool result = 1; -} - - -message FixExtraEdgesRequest{ - repeated DesignEdge selection = 1; -} - -message FixExtraEdgesResponse{ - bool result = 1; -} - - -message FixDuplicateFacesRequest{ - repeated DesignFace selection = 1; - google.protobuf.DoubleValue max_gap = 2; -} - -message FixDuplicateFacesResponse{ - bool result = 1; -} - -message FixCurvesGapsRequest{ - google.protobuf.DoubleValue distance = 1; -} - -message FixCurvesGapsResponse{ - bool result = 1; -} - -message FixCurvesDuplicateRequest{ - google.protobuf.DoubleValue distance = 1; -} - -message FixCurvesDuplicateResponse{ - bool result = 1; -} - -message AdjustMergeFacesRequest{ - repeated DesignFace selection = 1; - repeated DesignFace tangent_faces = 2; - google.protobuf.BoolValue allow_multi_patch = 3; - google.protobuf.BoolValue fail_if_can_fill = 4; - google.protobuf.BoolValue enforce_closed_loop_check = 5; -} - -message AdjustMergeFacesResponse{ - bool result = 1; -} - - -message AdjustSmallFacesRequest{ - repeated DesignFace selection = 1; - google.protobuf.DoubleValue area = 2; - google.protobuf.DoubleValue width = 3; -} - -message AdjustSmallFacesResponse{ - bool result = 1; -} - - -message AdjustSimplifyRequest{ - repeated DesignFace selection = 1; -} - -message AdjustSimplifyResponse{ - bool result = 1; -} - - -message AdjustInexactEdgesRequest{ - repeated DesignEdge selection = 1; -} - -message AdjustInexactEdgesResponse{ - bool result = 1; -} From 459864d96441e1e7680d7d887be64d3c8a803cdb Mon Sep 17 00:00:00 2001 From: m-bini Date: Thu, 2 Mar 2023 11:34:25 +0100 Subject: [PATCH 03/15] Align discovery protos to server's ones --- .../discovery/v0/definedvariationstable.proto | 208 +++++------------- ansys/api/discovery/v0/discoveryapi.proto | 38 ++++ .../discovery/v0/discoveryapplication.proto | 58 +++++ ansys/api/discovery/v0/discoverydesigns.proto | 46 ++++ .../api/discovery/v0/drivingdimensions.proto | 52 ++--- .../discovery/v0/historytrackparameters.proto | 77 ++----- ansys/api/discovery/v0/scriptparameters.proto | 60 ++--- ansys/api/discovery/v0/units.proto | 2 +- ansys/api/discovery/v0/windows.proto | 23 +- 9 files changed, 257 insertions(+), 307 deletions(-) create mode 100644 ansys/api/discovery/v0/discoveryapi.proto create mode 100644 ansys/api/discovery/v0/discoveryapplication.proto create mode 100644 ansys/api/discovery/v0/discoverydesigns.proto diff --git a/ansys/api/discovery/v0/definedvariationstable.proto b/ansys/api/discovery/v0/definedvariationstable.proto index edae70d..2d7d1a9 100644 --- a/ansys/api/discovery/v0/definedvariationstable.proto +++ b/ansys/api/discovery/v0/definedvariationstable.proto @@ -1,216 +1,111 @@ -// Copyright 2022, ANSYS Inc. Unauthorized use, distribution or duplication is prohibited. +// ©2023, ANSYS Inc. Unauthorized use, distribution or duplication is prohibited. syntax = "proto3"; + package ansys.api.discovery.v0; -import "ansys/api/discovery/google/api/annotations.proto"; -import "ansys/api/discovery/v0/models.proto"; -import "google/protobuf/field_mask.proto"; + +import "ansys/api/geometry/v0/models.proto"; + option csharp_namespace = "Ansys.Api.Discovery.V0"; option go_package = "ansys/api/discovery/v0"; -// Defined variation table definition. +// Defined variation table servicer. // service DefinedVariationsTable{ // Gets a whole row from the defined variations table - // - rpc GetVariation(GetVariationRequest) returns(Variation) { - option(google.api.http) = { - get: "/v0/definedvariationtable/{moniker}" - }; - } + rpc GetVariation(GetVariationRequest) returns(ansys.api.geometry.v0.Variation); // Get all the variations (i.e get all the table as rows list) - // - rpc ListVariations(ListVariationsRequest) returns(ListVariationsResponse) { - option(google.api.http) = { - get: "/v0/definedvariationtable" - }; - } - + rpc ListVariations(ListVariationsRequest) returns(ListVariationsResponse); + // Get all the inputs. - // - rpc ListInputs(ListInputsRequest) returns(ListInputsResponse) { - option(google.api.http) = { - get: "/v0/definedvariationtable:inputs" - }; - } - + rpc ListInputs(ListInputsRequest) returns(ListInputsResponse); + // Get all the outputs. - // - rpc ListOutputs(ListOutputsRequest) returns(ListOutputsResponse) { - option(google.api.http) = { - get: "/v0/definedvariationtable:outputs" - }; - } - + rpc ListOutputs(ListOutputsRequest) returns(ListOutputsResponse); + // Get an input variation table's cell - // - rpc GetInputParameterForVariation(GetInputParameterForVariationRequest) returns(InputParameter) { - option(google.api.http) = { - get: "/v0/definedvariationtable/{moniker}/{input_parameter_moniker.moniker}" - }; - } - + rpc GetInputForVariation(GetInputForVariationRequest) returns(ansys.api.geometry.v0.InputParameter); + // Set an input parameter - // - rpc SetInputValue(SetInputValueRequest) returns(InputParameter) { - option(google.api.http) = { - patch: "/v0/definedvariationtable/{defined_variation_table_input.moniker}" - body : "defined_variation_table_input" - }; - } + rpc SetInputValue(SetInputValueRequest) returns(ansys.api.geometry.v0.InputParameter) ; // Create variation - // rpc CreateVariation(CreateVariationRequest) returns(CreateVariationResponse); - + // Get an output variation table's cell - // - rpc GetOutputParameterForVariation(GetOutputParameterForVariationRequest) returns(OutputParameter) { - option(google.api.http) = { - get: "/v0/definedvariationtable/{moniker}/{output_parameter_moniker.moniker}" - }; - } - + rpc GetOutputForVariation(GetOutputForVariationRequest) returns(ansys.api.geometry.v0.OutputParameter); + // Get a variation input table's column - // - rpc GetInputColumn(GetInputColumnRequest) returns(GetInputColumnResponse) { - option(google.api.http) = { - get: "/v0/definedvariationtable/{moniker}" - }; - } - + rpc GetInputColumn(GetInputColumnRequest) returns(GetInputColumnResponse); + // Get a variation output table's column - // - rpc GetOutputColumn(GetOutputColumnRequest) returns(GetOutputColumnResponse) { - option(google.api.http) = { - get: "/v0/definedvariationtable/{moniker}" - }; - } - + rpc GetOutputColumn(GetOutputColumnRequest) returns(GetOutputColumnResponse); + // Set a star status for a variations list. - // - rpc SetStarredStatus(SetStarredStatusRequest) returns(SetStarredStatusResponse) { - option(google.api.http) = { - patch: "/v0/definedvariationtable" - body : "variation" - }; - } - + rpc SetStarredStatus(SetStarredStatusRequest) returns(SetStarredStatusResponse) ; + // Updates outputs for current variation - // - rpc UpdateCurrent(UpdateCurrentRequest) returns(UpdateCurrentResponse) { - option(google.api.http) = { - body : "defined_variation_table:updatecurrent" - }; - } - + rpc UpdateCurrent(UpdateCurrentRequest) returns(UpdateCurrentResponse); + // Updates outputs for starred variations - // - rpc UpdateStarred(UpdateStarredRequest) returns(UpdateStarredResponse) { - option(google.api.http) = { - body : "defined_variation_table:updatestarred" - }; - } - + rpc UpdateStarred(UpdateStarredRequest) returns(UpdateStarredResponse); + // Updates outputs for current variation - // - rpc UpdateAll(UpdateAllRequest) returns(UpdateAllResponse) { - option(google.api.http) = { - body : "defined_variation_table:updateall" - }; - } + rpc UpdateAll(UpdateAllRequest) returns(UpdateAllResponse) ; + + // Asks if the solve is running + rpc IsSolving(ansys.api.geometry.v0.Empty) returns(IsSolvingResponse); + } - + message GetVariationRequest{ // The moniker to access the variation. string moniker = 1; } message ListVariationsRequest{ - // The parent, which must be empty. - string parent = 1; - // The maximum number of items to return. - int32 page_size = 2; - // The next_page_token value returned from a previous List request, if any. - string page_token = 3; - // The view. - InputParameterView view = 4; - // The filter. - string filter = 5; } message ListVariationsResponse{ // The variations on this page. - repeated Variation defined_variations = 1 ; - // Next page token, or empty if there are no more results in the list. - string next_page_token = 2; + repeated ansys.api.geometry.v0.Variation defined_variations = 1 ; } -message ListInputsRequest{ - // The parent, which must be empty. - string parent = 1; - // The maximum number of items to return. - int32 page_size = 2; - // The next_page_token value returned from a previous List request, if any. - string page_token = 3; - // The view. - InputParameterView view = 4; - // The filter. - string filter = 5; +message ListInputsRequest{; } message ListInputsResponse{ // The inputs on this page. - repeated InputColumn inputs = 1 ; - // Next page token, or empty if there are no more results in the list. - string next_page_token = 2; + repeated ansys.api.geometry.v0.InputColumn inputs = 1 ; } message ListOutputsRequest{ - // The parent, which must be empty. - string parent = 1; - // The maximum number of items to return. - int32 page_size = 2; - // The next_page_token value returned from a previous List request, if any. - string page_token = 3; - // The view. - InputParameterView view = 4; - // The filter. - string filter = 5; } message ListOutputsResponse{ // The outputs on this page. - repeated OutputColumn outputs = 1 ; - // Next page token, or empty if there are no more results in the list. - string next_page_token = 2; + repeated ansys.api.geometry.v0.OutputColumn outputs = 1 ; } -message GetInputParameterForVariationRequest{ +message GetInputForVariationRequest{ // The variation's moniker. - string variation_moniker = 1 [json_name = "variation_moniker"]; + string variation_moniker = 1; // The parameter' moniker. - string input_parameter_moniker = 2 [json_name = "input_parameter_moniker"]; - // Next page token, or empty if there are no more results in the list. - string next_page_token = 3; + string input_parameter_moniker = 2; } message SetInputValueRequest{ // The variation's moniker. - string variation_moniker = 1 [json_name = "variation_moniker"]; + string variation_moniker = 1; // The input parameter. - InputParameter defined_variation_table_input = 2 [json_name = "defined_variation_table_input"]; - // The update mask. - google.protobuf.FieldMask update_mask = 3 [json_name = "update_mask"]; + ansys.api.geometry.v0.InputParameter defined_variation_table_input = 2; } -message GetOutputParameterForVariationRequest{ +message GetOutputForVariationRequest{ // The variation's moniker. - string variation_moniker = 1 [json_name = "variation_moniker"]; + string variation_moniker = 1; // The parameter' moniker. - string output_parameter_moniker = 2 [json_name = "output_parameter_moniker"]; - // Next page token, or empty if there are no more results in the list. - string next_page_token = 3; + string output_parameter_moniker = 2; } message GetInputColumnRequest{ @@ -220,7 +115,7 @@ message GetInputColumnRequest{ message GetInputColumnResponse{ // The parameter's variations column. - InputColumn column = 1; + ansys.api.geometry.v0.InputColumn column = 1; } message GetOutputColumnRequest{ @@ -230,7 +125,7 @@ message GetOutputColumnRequest{ message GetOutputColumnResponse{ // The parameter's variations column. - OutputColumn column = 1; + ansys.api.geometry.v0.OutputColumn column = 1; } message SetStarredStatusRequest{ @@ -276,3 +171,8 @@ message UpdateAllResponse{ // The result bool result = 1; } + +message IsSolvingResponse{ + // The result + bool is_solving = 1; +} diff --git a/ansys/api/discovery/v0/discoveryapi.proto b/ansys/api/discovery/v0/discoveryapi.proto new file mode 100644 index 0000000..e0d4871 --- /dev/null +++ b/ansys/api/discovery/v0/discoveryapi.proto @@ -0,0 +1,38 @@ +// ©2023, ANSYS Inc. Unauthorized use, distribution or duplication is prohibited. +syntax = "proto3"; +package ansys.api.discovery.v0.discoveryapi; +option csharp_namespace = "Ansys.Api.Discovery.V0.DiscoveryApi"; +option go_package = "ansys/api/discovery/v0"; + +// Api +// +service DiscoveryApi{ + // Sets the current scripting version. + rpc SetVersion(SetVersionRequest) returns(SetVersionResponse) ; + + // Sets the current scripting version. + rpc GetVersion(GetVersionRequest) returns(GetVersionResponse) ; +} + +message GetVersionRequest{ +} + +message GetVersionResponse{ + ApiVersion version = 1; +} + +message SetVersionRequest{ + // The set api operation being requested. + ApiVersion version = 1; +} + +message SetVersionResponse{ + string result = 1; +} + +enum ApiVersion { + V_21 = 0; + V_22 = 1; + V_231 = 2; + V_232 = 3; +} diff --git a/ansys/api/discovery/v0/discoveryapplication.proto b/ansys/api/discovery/v0/discoveryapplication.proto new file mode 100644 index 0000000..305022c --- /dev/null +++ b/ansys/api/discovery/v0/discoveryapplication.proto @@ -0,0 +1,58 @@ +// ©2023, ANSYS Inc. Unauthorized use, distribution or duplication is prohibited. +syntax = "proto3"; + +package ansys.api.discovery.v0.discoveryapplication; + +import "ansys/api/geometry/v0/streaming.proto"; + +option csharp_namespace = "Ansys.Api.Discovery.V0.DiscoveryApplication"; +option go_package = "ansys/api/discovery/v0"; + +service DiscoveryApplication { + + // Runs a script based on a file. + rpc RunScriptFile(RunScriptFileRequest) returns(RunScriptFileResponse); + + // Runs a script based on a supplied string. + rpc RunScript(RunScriptRequest) returns(RunScriptResponse); + + // Runs a command. A command can be exposed by Addin. + rpc RunCommand(RunCommandRequest) returns(RunCommandResponse); +} + +message RunScriptFileRequest{ + // Local path to the script to execute. + string script_path = 1; + // map of argument names to values. + map script_args = 2; + // The api version to be used to run the script + int32 api_version = 3; +} +message RunScriptFileResponse{ + // Results returned by script. + map script_output = 1; +} + +message RunScriptRequest{ + // Script source to execute. + string script = 1; + // The api version to be used to run the script + int32 api_version = 2; +} + +message RunScriptResponse{ + // Result of script execution. True means script executed successfully. + bool script_result = 1; +} + +message RunCommandRequest{ + // Command to execute. + string command = 1; + // Data to pass to command. + string data = 2; +} + +message RunCommandResponse{ + // Data returned from command. + string data = 1; +} diff --git a/ansys/api/discovery/v0/discoverydesigns.proto b/ansys/api/discovery/v0/discoverydesigns.proto new file mode 100644 index 0000000..339ff46 --- /dev/null +++ b/ansys/api/discovery/v0/discoverydesigns.proto @@ -0,0 +1,46 @@ +// ©2023, ANSYS Inc. Unauthorized use, distribution or duplication is prohibited. +syntax = "proto3"; + +package ansys.api.discovery.v0.discoverydesigns; + +import "ansys/api/geometry/v0/models.proto"; + +option csharp_namespace = "Ansys.Api.Discovery.V0.DiscoveryDesigns"; + + +service DiscoveryDesigns{ + + rpc Get(ansys.api.geometry.v0.Empty) returns(ansys.api.geometry.v0.Design); + + rpc Open(OpenRequest) returns(ansys.api.geometry.v0.EntityIdentifier); + + rpc New(NewRequest) returns(ansys.api.geometry.v0.Design) ; + + rpc Close(ansys.api.geometry.v0.Empty) returns(ansys.api.geometry.v0.Empty); + + rpc Save(ansys.api.geometry.v0.Empty) returns(ansys.api.geometry.v0.Empty) ; + + rpc SaveAs(SaveAsRequest) returns(ansys.api.geometry.v0.EntityIdentifier); + + rpc Insert(InsertRequest) returns(ansys.api.geometry.v0.EntityIdentifier); +} + +message GetAllResponse{ + repeated ansys.api.geometry.v0.Design designs = 1; +} + +message OpenRequest{ + string filepath = 1; +} + +message NewRequest{ + string name = 1; +} + +message SaveAsRequest{ + string filepath = 1; +} + +message InsertRequest{ + string filepath = 1; +} diff --git a/ansys/api/discovery/v0/drivingdimensions.proto b/ansys/api/discovery/v0/drivingdimensions.proto index 07196fb..92cb92e 100644 --- a/ansys/api/discovery/v0/drivingdimensions.proto +++ b/ansys/api/discovery/v0/drivingdimensions.proto @@ -1,60 +1,40 @@ -// Copyright 2022, ANSYS Inc. Unauthorized use, distribution or duplication is prohibited. +// ©2023, ANSYS Inc. Unauthorized use, distribution or duplication is prohibited. syntax = "proto3"; package ansys.api.discovery.v0; -import "ansys/api/discovery/google/api/annotations.proto"; -import "ansys/api/discovery/v0/models.proto"; -import "google/protobuf/field_mask.proto"; + +import "ansys/api/geometry/v0/models.proto"; + option csharp_namespace = "Ansys.Api.Discovery.V0"; option go_package = "ansys/api/discovery/v0"; + service DrivingDimensions{ // Gets a driving dimension. - rpc GetDrivingDimension(GetDrivingDimensionRequest) returns(DrivingDimension) { - option(google.api.http) = { - get: "/v0/drivingdimensions/{moniker}:" - }; - } + rpc GetDrivingDimension(GetDrivingDimensionRequest) returns(ansys.api.geometry.v0.DrivingDimension); + // Lists all driving dimensions. - rpc ListDrivingDimensions(ListDrivingDimensionsRequest) returns(ListDrivingDimensionsResponse) { - option(google.api.http) = { - get: "/v0/drivingdimensions" - }; - } + rpc ListDrivingDimensions(ListDrivingDimensionsRequest) returns(ListDrivingDimensionsResponse); + // Upates a driving dimension. - rpc UpdateDrivingDimension(UpdateDrivingDimensionRequest) returns(DrivingDimension) { - option(google.api.http) = { - patch: "/v0/drivingdimensions" - body : "driving_dimension" - }; - } + rpc UpdateDrivingDimension(UpdateDrivingDimensionRequest) returns(ansys.api.geometry.v0.DrivingDimension); } + message GetDrivingDimensionRequest{ // The moniker to access the dimension. string moniker = 1; - // The field mask to filter the driving dimension. Not set will return 'default' information. - google.protobuf.FieldMask fields = 2; } + message ListDrivingDimensionsRequest{ // The parent, which must be empty. string parent = 1; - // The maximum number of items to return. - int32 page_size = 2; - // The next_page_token value returned from a previous List request, if any. - string page_token = 3; - // The view. - DrivingDimensionView view = 4; - // The filter. - string filter = 5; } + message ListDrivingDimensionsResponse{ // The driving dimensions on this page. - repeated DrivingDimension driving_dimensions = 1 [json_name = "driving_dimensions"]; - // Next page token, or empty if there are no more results in the list. - string next_page_token = 2; + repeated ansys.api.geometry.v0.DrivingDimension driving_dimensions = 1; } + message UpdateDrivingDimensionRequest{ // The driving dimension to update. - DrivingDimension driving_dimension = 1 [json_name = "driving_dimension"]; - // The update mask. - google.protobuf.FieldMask update_mask = 2 [json_name = "update_mask"]; + ansys.api.geometry.v0.DrivingDimension driving_dimension = 1; } diff --git a/ansys/api/discovery/v0/historytrackparameters.proto b/ansys/api/discovery/v0/historytrackparameters.proto index 6d3d018..5c0a964 100644 --- a/ansys/api/discovery/v0/historytrackparameters.proto +++ b/ansys/api/discovery/v0/historytrackparameters.proto @@ -1,76 +1,39 @@ -// Copyright 2022, ANSYS Inc. Unauthorized use, distribution or duplication is prohibited. +// ©2023, ANSYS Inc. Unauthorized use, distribution or duplication is prohibited. syntax = "proto3"; package ansys.api.discovery.v0; -import "ansys/api/discovery/google/api/annotations.proto"; -import "ansys/api/discovery/v0/models.proto"; -import "google/protobuf/field_mask.proto"; -option csharp_namespace = "Ansys.Api.Discovery.V0"; + +import "ansys/api/geometry/v0/models.proto"; + +option csharp_namespace = "Ansys.Api.Discovery.V0.HistoryTrackParameters"; option go_package = "ansys/api/discovery/v0"; -// History track parameters definition. + +// History track parameters servicer. // service HistoryTrackParameters{ // Gets an history track parameter . - rpc GetHistoryTrackParameter(GetHistoryTrackParameterRequest) returns(HistoryTrackParameter) { - option(google.api.http) = { - get: "/v0/historytrackparameters/{moniker}" - }; - } + rpc Get(ansys.api.geometry.v0.EntityIdentifier) returns(ansys.api.geometry.v0.HistoryTrackParameter); + // Lists all history track parameters. - rpc ListHistoryTrackParameters(ListHistoryTrackParametersRequest) returns(ListHistoryTrackParametersResponse) { - option(google.api.http) = { - get: "/v0/historytrackparameters" - }; - } + rpc GetAll(ansys.api.geometry.v0.Empty) returns(GetAllResponse); + // Upates a history track parameter. - rpc UpdateHistoryTrackParameter(UpdateHistoryTrackParameterRequest) returns(HistoryTrackParameter) { - option(google.api.http) = { - patch: "/v0/historytrackparameters/{history_track_parameter.moniker}" - body : "history_track_parameter" - }; - } + rpc Update(UpdateRequest) returns(ansys.api.geometry.v0.HistoryTrackParameter); + // Replays the history block parameters - rpc Replay(ReplayHistoryTrackParameterRequest) returns(ReplayHistoryTrackParameterResponse) { - option(google.api.http) = { - post: "/v0/historytrackparameters:replay" - }; - } + rpc Replay(ansys.api.geometry.v0.Empty) returns(ReplayResponse); } -message GetHistoryTrackParameterRequest{ - // The moniker to access the dimension. - string moniker = 1; - // The field mask to filter the history track parameter. Not set will return 'default' information. - google.protobuf.FieldMask fields = 2; -} -message ListHistoryTrackParametersRequest{ - // The parent, which must be empty. - string parent = 1; - // The maximum number of items to return. - int32 page_size = 2; - // The next_page_token value returned from a previous List request, if any. - string page_token = 3; - // The view. - HistoryTrackParameterView view = 4; - // The filter. - string filter = 5; -} -message ListHistoryTrackParametersResponse{ + +message GetAllResponse{ // The history track parameters on this page. - repeated HistoryTrackParameter history_track_parameters = 1 [json_name = "history_track_parameters"]; - // Next page token, or empty if there are no more results in the list. - string next_page_token = 2; + repeated ansys.api.geometry.v0.HistoryTrackParameter history_track_parameters = 1; } -message UpdateHistoryTrackParameterRequest{ +message UpdateRequest{ // The history track parameter to update. - HistoryTrackParameter history_track_parameter = 1 [json_name = "history_track_parameter"]; - // The update mask. - google.protobuf.FieldMask update_mask = 2 [json_name = "update_mask"]; -} - -message ReplayHistoryTrackParameterRequest{ + ansys.api.geometry.v0.HistoryTrackParameter history_track_parameter = 1; } -message ReplayHistoryTrackParameterResponse{ +message ReplayResponse{ // The result string result = 1; } diff --git a/ansys/api/discovery/v0/scriptparameters.proto b/ansys/api/discovery/v0/scriptparameters.proto index b50bcec..04dd2e3 100644 --- a/ansys/api/discovery/v0/scriptparameters.proto +++ b/ansys/api/discovery/v0/scriptparameters.proto @@ -1,74 +1,46 @@ -// Copyright 2022, ANSYS Inc. Unauthorized use, distribution or duplication is prohibited. +// ©2023, ANSYS Inc. Unauthorized use, distribution or duplication is prohibited. syntax = "proto3"; package ansys.api.discovery.v0; -import "ansys/api/discovery/google/api/annotations.proto"; -import "ansys/api/discovery/v0/models.proto"; -import "google/protobuf/field_mask.proto"; + +import "ansys/api/geometry/v0/models.proto"; + option csharp_namespace = "Ansys.Api.Discovery.V0"; option go_package = "ansys/api/discovery/v0"; -// script parameters definition. +// script parameters servicer. // service ScriptParameters{ - // Gets a script parameter. - rpc GetScriptParameter(GetScriptParameterRequest) returns(ScriptParameter) { - option(google.api.http) = { - get: "/v0/scriptparameters/{moniker}" - }; - } + // Gets an script parameter . + rpc GetScriptParameter(GetScriptParameterRequest) returns(ansys.api.geometry.v0.ScriptParameter); + // Lists all script parameters. - rpc ListScriptParameters(ListScriptParametersRequest) returns(ListScriptParametersResponse) { - option(google.api.http) = { - get: "/v0/scriptparameters" - }; - } - // Updates a script parameter. - rpc UpdateScriptParameter(UpdateScriptParameterRequest) returns(ScriptParameter) { - option(google.api.http) = { - patch: "/v0/scriptparameters/{script_parameter.moniker}" - body : "script_parameter" - }; - } + rpc ListScriptParameters(ListScriptParametersRequest) returns(ListScriptParametersResponse) ; + + // Upates a script parameter. + rpc UpdateScriptParameter(UpdateScriptParameterRequest) returns(ansys.api.geometry.v0.ScriptParameter) ; + // Replays the script - rpc Replay(ReplayRequest) returns(ReplayResponse) { - option(google.api.http) = { - post: "/v0/scriptparameters:replay" - }; - } + rpc Replay(ReplayRequest) returns(ReplayResponse) ; } message GetScriptParameterRequest{ // The moniker to access the dimension. string moniker = 1; - // The field mask to filter the script parameter. Not set will return 'default' information. - google.protobuf.FieldMask fields = 2; } message ListScriptParametersRequest{ // The parent, which must be empty. string parent = 1; - // The maximum number of items to return. - int32 page_size = 2; - // The next_page_token value returned from a previous List request, if any. - string page_token = 3; - // The view. - ScriptParameterView view = 4; - // The filter. - string filter = 5; } message ListScriptParametersResponse{ // The script parameters on this page. - repeated ScriptParameter script_parameters = 1 [json_name = "script_parameters"]; - // Next page token, or empty if there are no more results in the list. - string next_page_token = 2; + repeated ansys.api.geometry.v0.ScriptParameter script_parameters = 1; } message UpdateScriptParameterRequest{ // The script parameter to update. - ScriptParameter script_parameter = 1 [json_name = "script_parameter"]; - // The update mask. - google.protobuf.FieldMask update_mask = 2 [json_name = "update_mask"]; + ansys.api.geometry.v0.ScriptParameter script_parameter = 1; } message ReplayRequest{ diff --git a/ansys/api/discovery/v0/units.proto b/ansys/api/discovery/v0/units.proto index f2cbad4..1b45594 100644 --- a/ansys/api/discovery/v0/units.proto +++ b/ansys/api/discovery/v0/units.proto @@ -1,4 +1,4 @@ -// Copyright 2022, ANSYS Inc. Unauthorized use, distribution or duplication is prohibited. +// ©2023, ANSYS Inc. Unauthorized use, distribution or duplication is prohibited. syntax = "proto3"; package ansys.api.discovery.v0; option csharp_namespace = "Ansys.Api.Discovery.V0"; diff --git a/ansys/api/discovery/v0/windows.proto b/ansys/api/discovery/v0/windows.proto index fd7abcc..defe208 100644 --- a/ansys/api/discovery/v0/windows.proto +++ b/ansys/api/discovery/v0/windows.proto @@ -1,8 +1,9 @@ -// Copyright 2022, ANSYS Inc. Unauthorized use, distribution or duplication is prohibited. +// ©2023, ANSYS Inc. Unauthorized use, distribution or duplication is prohibited. syntax = "proto3"; package ansys.api.discovery.v0; -import "ansys/api/discovery/google/api/annotations.proto"; -import "ansys/api/discovery/google/api/httpbody.proto"; + +import "ansys/api/geometry/v0/streaming.proto"; + option csharp_namespace = "Ansys.Api.Discovery.V0"; option go_package = "ansys/api/discovery/v0"; @@ -10,24 +11,16 @@ option go_package = "ansys/api/discovery/v0"; // service Windows{ // Gets an image for the active window. - rpc GetImage(GetImageRequest) returns(google.api.HttpBody) { - option(google.api.http) = { - get: "/v0/windows/active:image" - }; - } + rpc GetImage(GetImageRequest) returns(stream ansys.api.geometry.v0.StreamPackage); + // Sets the camera view for the active window. - rpc SetView(SetViewRequest) returns(SetViewResponse) { - option(google.api.http) = { - post: "/v0/windows/active:view" - body: "*" - }; - } + rpc SetView(SetViewRequest) returns(SetViewResponse); } message GetImageRequest{ // The format of the image being requested. ImageFormat format = 1; -} +} enum ImageFormat { IMAGEFORMAT_PNG = 0; From 467a3c0edc51e0f437a5a17f16ac5d9204918ba4 Mon Sep 17 00:00:00 2001 From: Roberto Pastor Muela <37798125+RobPasMue@users.noreply.github.com> Date: Thu, 2 Mar 2023 11:37:57 +0100 Subject: [PATCH 04/15] Update setup.py --- setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.py b/setup.py index b54cd08..44bbe59 100644 --- a/setup.py +++ b/setup.py @@ -35,7 +35,7 @@ url=f"https://github.com/ansys/{package_name}", license="MIT", python_requires=">=3.7", - install_requires=["grpcio~=1.47", "protobuf~=3.20"], + install_requires=["grpcio~=1.47", "protobuf~=3.19"], packages=setuptools.find_namespace_packages(".", include=("ansys.*",)), package_data={ "": ["*.proto", "*.pyi", "py.typed", "VERSION"], From 0851cb626fbad680b11db5cfa5bcd869038c8c07 Mon Sep 17 00:00:00 2001 From: m-bini Date: Thu, 2 Mar 2023 14:06:19 +0100 Subject: [PATCH 05/15] Update pyproject.toml --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 991f454..dbdebef 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,3 +1,3 @@ [build-system] -requires = ["setuptools >= 42.0.0", "wheel", "ansys_tools_protoc_helper"] +requires = ["setuptools >= 42.0.0", "wheel", "ansys_tools_protoc_helper", "ansys-geometry-core" ] build-backend = "setuptools.build_meta:__legacy__" From acf9860781352b29938cd47eec76c2e328828658 Mon Sep 17 00:00:00 2001 From: m-bini Date: Fri, 3 Mar 2023 11:08:20 +0100 Subject: [PATCH 06/15] Add specific Discovery datamodel proto --- ansys/api/discovery/v0/datamodels.proto | 210 ++++++++++++++++++++++++ 1 file changed, 210 insertions(+) create mode 100644 ansys/api/discovery/v0/datamodels.proto diff --git a/ansys/api/discovery/v0/datamodels.proto b/ansys/api/discovery/v0/datamodels.proto new file mode 100644 index 0000000..0edef11 --- /dev/null +++ b/ansys/api/discovery/v0/datamodels.proto @@ -0,0 +1,210 @@ +// ©2023, ANSYS Inc. Unauthorized use, distribution or duplication is prohibited. +syntax = "proto3"; +package ansys.api.discovery.v0; + +option csharp_namespace = "Ansys.Api.Discovery.V0"; +option go_package = "ansys/api/discovery/v0/models"; + +message EntityIdentifier{ + string id=1; +} + +// +// A driving dimension. +message DrivingDimension { + string id = 1; + string name = 2; + DimensionType dimension_type = 3; + double dimension_value = 4; +} + +// +// A design document. +message Document{ + string id = 1; + bool is_complete=2 ; + bool is_locked=3 ; + bool is_modified=4; + bool is_removed = 5; + Part main_part=6; + bool main_part_displays_file_name=7; + string path = 10; + string name=11; +} + +// +// The type of dimension. +enum DimensionType { + DIMENSIONTYPE_UNKNOWN = 0; + DIMENSIONTYPE_LINEAR = 1; + DIMENSIONTYPE_DIAMETRIC = 2; + DIMENSIONTYPE_RADIAL = 3; + DIMENSIONTYPE_ARC = 4; + DIMENSIONTYPE_AREA = 5; + DIMENSIONTYPE_VOLUME = 6; + DIMENSIONTYPE_MASS = 7; + DIMENSIONTYPE_ANGULAR = 8; + DIMENSIONTYPE_COUNT = 9; + DIMENSIONTYPE_UNITLESS = 10; +} + +// +// A part. +message Part{ + string id = 1; + string name = 2; +} +// +// A Variation (represents a row into the variation table) +message Variation { + string id = 1; + string name = 2; + bool starred = 3; + repeated InputParameter inputs = 4; + repeated OutputParameter outputs = 5; +} + +// +// An input column (represents the same input parameter across all the variations ) +message InputColumn { + string id = 1; + string name = 2; + string range = 3; + repeated InputParameter parameter_variations= 4; +} + +// +// An output column (represents the same output parameter across all the variations ) +message OutputColumn { + string id = 1; + string name = 2; + string range = 3; + repeated OutputParameter parameter_variations= 4; +} + +// +// An history track parameter +message HistoryTrackParameter { + string id = 1; + string name=2; + DimensionType dimension_type=3; + double dimension_value=4; +} + +// +// An input parameter +message InputParameter { + string id = 1; + string parent_id=2; + string name=3; + QuantityType quantity_type=4; + double quantity_value=5; + int32 unit=6; + string unit_abbreviation=7; +} + +// +// An output parameter +message OutputParameter { + string id = 1; + string parent_id = 2; + string name = 3; + QuantityType quantity_type = 4; + double quantity_value = 5; + int32 unit = 6; + string unit_abbreviation = 7; +} + +// +// A script parameter +message ScriptParameter { + string id = 1; + string name = 2; + DimensionType dimension_type = 3; + double dimension_value = 4; +} + +// +// Represents the quantity type for a physics parameter. +enum QuantityType { + QUANTITY_TYPE_ACCELERATION=0; + QUANTITY_TYPE_ANGLE=1; + QUANTITY_TYPE_AREA=2; + QUANTITY_TYPE_AREA_DENSITY=3; + QUANTITY_TYPE_AREA_MOMENT_OF_INERTIA=4; + QUANTITY_TYPE_CAPACITANCE=5; + QUANTITY_TYPE_COEFFICIENT_OF_THERMAL_EXPANSION=6; + QUANTITY_TYPE_DENSITY=7; + QUANTITY_TYPE_DYNAMIC_VISCOSITY=8; + QUANTITY_TYPE_ELECTRIC_ADMITTANCE=9; + QUANTITY_TYPE_ELECTRIC_CHARGE=10; + QUANTITY_TYPE_ELECTRIC_CHARGE_DENSITY=11; + QUANTITY_TYPE_ELECTRIC_CONDUCTANCE=12; + QUANTITY_TYPE_ELECTRIC_CONDUCTIVITY=13; + QUANTITY_TYPE_ELECTRIC_CURRENT=14; + QUANTITY_TYPE_ELECTRIC_CURRENT_DENSITY=15; + QUANTITY_TYPE_ELECTRIC_CURRENT_GRADIENT=16; + QUANTITY_TYPE_ELECTRIC_FIELD=17; + QUANTITY_TYPE_ELECTRIC_INDUCTANCE=18; + QUANTITY_TYPE_ELECTRIC_POTENTIAL=19; + QUANTITY_TYPE_ELECTRIC_POTENTIAL_AC=20; + QUANTITY_TYPE_ELECTRIC_POTENTIAL_CHANGE_RATE=21; + QUANTITY_TYPE_ELECTRIC_POTENTIAL_DC=22; + QUANTITY_TYPE_ELECTRIC_RESISTANCE=23; + QUANTITY_TYPE_ELECTRIC_RESISTIVITY=24; + QUANTITY_TYPE_ELECTRIC_SURFACE_CHARGE_DENSITY=25; + QUANTITY_TYPE_ENERGY=26; + QUANTITY_TYPE_ENTROPY=27; + QUANTITY_TYPE_FORCE=28; + QUANTITY_TYPE_FORCE_CHANGE_RATE=29; + QUANTITY_TYPE_FORCE_PER_LENGTH=30; + QUANTITY_TYPE_FREQUENCY=31; + QUANTITY_TYPE_HEAT_FLUX=32; + QUANTITY_TYPE_HEAT_TRANSFER_COEFFICIENT=33; + QUANTITY_TYPE_INVERSE_AREA=34; + QUANTITY_TYPE_INVERSE_LENGTH=35; + QUANTITY_TYPE_KINEMATIC_VISCOSITY=36; + QUANTITY_TYPE_LENGTH=37; + QUANTITY_TYPE_MAGNETIC_FIELD=38; + QUANTITY_TYPE_MASS=39; + QUANTITY_TYPE_MASS_CONCENTRATION=40; + QUANTITY_TYPE_MASS_FLOW=41; + QUANTITY_TYPE_MASS_FLUX=42; + QUANTITY_TYPE_MASS_FRACTION=43; + QUANTITY_TYPE_MASS_MOMENT_OF_INERTIA=44; + QUANTITY_TYPE_MOLARITY=45; + QUANTITY_TYPE_MOLAR_MASS=46; + QUANTITY_TYPE_PERMEABILITY=47; + QUANTITY_TYPE_PERMITTIVITY=48; + QUANTITY_TYPE_POWER=49; + QUANTITY_TYPE_POWER_DENSITY=50; + QUANTITY_TYPE_POWER_RATIO=51; + QUANTITY_TYPE_PRESSURE=52; + QUANTITY_TYPE_RATIO=53; + QUANTITY_TYPE_RATIO_CHANGE_RATE=54; + QUANTITY_TYPE_REACTIVE_ENERGY=55; + QUANTITY_TYPE_REACTIVE_POWER=56; + QUANTITY_TYPE_ROTATIONAL_ACCELERATION=57; + QUANTITY_TYPE_ROTATIONAL_SPEED=58; + QUANTITY_TYPE_ROTATIONAL_STIFFNESS=59; + QUANTITY_TYPE_ROTATIONAL_STIFFNESS_PER_LENGTH=60; + QUANTITY_TYPE_SOLID_ANGLE=61; + QUANTITY_TYPE_SPECIFIC_ENERGY=62; + QUANTITY_TYPE_SPECIFIC_ENTROPY=63; + QUANTITY_TYPE_SPECIFIC_VOLUME=64; + QUANTITY_TYPE_SPECIFIC_WEIGHT=65; + QUANTITY_TYPE_SPEED=66; + QUANTITY_TYPE_TEMPERATURE=67; + QUANTITY_TYPE_TEMPERATURE_CHANGE_RATE=68; + QUANTITY_TYPE_TEMPERATURE_DELTA=69; + QUANTITY_TYPE_THERMAL_CONDUCTIVITY=70; + QUANTITY_TYPE_THERMAL_RESISTANCE=71; + QUANTITY_TYPE_TIME=72; + QUANTITY_TYPE_TORQUE=73; + QUANTITY_TYPE_TORQUE_PER_LENGTH=74; + QUANTITY_TYPE_VOLUME=75; + QUANTITY_TYPE_VOLUME_CONCENTRATION=76; + QUANTITY_TYPE_VOLUME_FLOW=77; + QUANTITY_TYPE_VOLUME_PER_LENGTH=78; + QUANTITY_TYPE_WARPING_MOMENT_OF_INERTIA=79; +} \ No newline at end of file From 5c8c509729810051a34c359e860f19a802098616 Mon Sep 17 00:00:00 2001 From: m-bini Date: Fri, 3 Mar 2023 11:09:26 +0100 Subject: [PATCH 07/15] Apply standard endpoints naming to the protos --- .../discovery/v0/definedvariationstable.proto | 88 ++++++------------- .../api/discovery/v0/drivingdimensions.proto | 28 +++--- ansys/api/discovery/v0/scriptparameters.proto | 33 +++---- 3 files changed, 50 insertions(+), 99 deletions(-) diff --git a/ansys/api/discovery/v0/definedvariationstable.proto b/ansys/api/discovery/v0/definedvariationstable.proto index 2d7d1a9..de86543 100644 --- a/ansys/api/discovery/v0/definedvariationstable.proto +++ b/ansys/api/discovery/v0/definedvariationstable.proto @@ -1,39 +1,40 @@ // ©2023, ANSYS Inc. Unauthorized use, distribution or duplication is prohibited. syntax = "proto3"; -package ansys.api.discovery.v0; +package ansys.api.discovery.v0.DefinedVariationsTable; -import "ansys/api/geometry/v0/models.proto"; +import "ansys/api/discovery/v0/datamodels.proto"; +import "google/protobuf/empty.proto"; -option csharp_namespace = "Ansys.Api.Discovery.V0"; +option csharp_namespace = "Ansys.Api.Discovery.V0.DefinedVariationsTable"; option go_package = "ansys/api/discovery/v0"; // Defined variation table servicer. // service DefinedVariationsTable{ // Gets a whole row from the defined variations table - rpc GetVariation(GetVariationRequest) returns(ansys.api.geometry.v0.Variation); + rpc GetVariation(EntityIdentifier) returns(Variation); // Get all the variations (i.e get all the table as rows list) - rpc ListVariations(ListVariationsRequest) returns(ListVariationsResponse); + rpc GetAllVariations(google.protobuf.Empty) returns(GetAllVariationsResponse); // Get all the inputs. - rpc ListInputs(ListInputsRequest) returns(ListInputsResponse); + rpc GetAllInputs(google.protobuf.Empty) returns(GetAllInputsResponse); // Get all the outputs. - rpc ListOutputs(ListOutputsRequest) returns(ListOutputsResponse); + rpc GetAllOutputs(google.protobuf.Empty) returns(GetAllOutputsResponse); // Get an input variation table's cell - rpc GetInputForVariation(GetInputForVariationRequest) returns(ansys.api.geometry.v0.InputParameter); + rpc GetInputForVariation(GetInputForVariationRequest) returns(InputParameter); // Set an input parameter - rpc SetInputValue(SetInputValueRequest) returns(ansys.api.geometry.v0.InputParameter) ; + rpc SetInputValue(SetInputValueRequest) returns(InputParameter) ; // Create variation rpc CreateVariation(CreateVariationRequest) returns(CreateVariationResponse); // Get an output variation table's cell - rpc GetOutputForVariation(GetOutputForVariationRequest) returns(ansys.api.geometry.v0.OutputParameter); + rpc GetOutputForVariation(GetOutputForVariationRequest) returns(OutputParameter); // Get a variation input table's column rpc GetInputColumn(GetInputColumnRequest) returns(GetInputColumnResponse); @@ -42,49 +43,34 @@ service DefinedVariationsTable{ rpc GetOutputColumn(GetOutputColumnRequest) returns(GetOutputColumnResponse); // Set a star status for a variations list. - rpc SetStarredStatus(SetStarredStatusRequest) returns(SetStarredStatusResponse) ; + rpc SetStarredStatus(SetStarredStatusRequest) returns(google.protobuf.Empty) ; // Updates outputs for current variation - rpc UpdateCurrent(UpdateCurrentRequest) returns(UpdateCurrentResponse); + rpc UpdateCurrent(google.protobuf.Empty) returns(UpdateResponse); // Updates outputs for starred variations - rpc UpdateStarred(UpdateStarredRequest) returns(UpdateStarredResponse); + rpc UpdateStarred(google.protobuf.Empty) returns(UpdateResponse); // Updates outputs for current variation - rpc UpdateAll(UpdateAllRequest) returns(UpdateAllResponse) ; + rpc UpdateAll(google.protobuf.Empty) returns(UpdateResponse) ; // Asks if the solve is running - rpc IsSolving(ansys.api.geometry.v0.Empty) returns(IsSolvingResponse); + rpc IsSolving(google.protobuf.Empty) returns(IsSolvingResponse); } -message GetVariationRequest{ - // The moniker to access the variation. - string moniker = 1; -} - -message ListVariationsRequest{ -} - -message ListVariationsResponse{ +message GetAllVariationsResponse{ // The variations on this page. - repeated ansys.api.geometry.v0.Variation defined_variations = 1 ; + repeated Variation defined_variations = 1 ; } -message ListInputsRequest{; -} - -message ListInputsResponse{ +message GetAllInputsResponse{ // The inputs on this page. - repeated ansys.api.geometry.v0.InputColumn inputs = 1 ; + repeated InputColumn inputs = 1 ; } - -message ListOutputsRequest{ -} - -message ListOutputsResponse{ +message GetAllOutputsResponse{ // The outputs on this page. - repeated ansys.api.geometry.v0.OutputColumn outputs = 1 ; + repeated OutputColumn outputs = 1 ; } message GetInputForVariationRequest{ @@ -98,7 +84,7 @@ message SetInputValueRequest{ // The variation's moniker. string variation_moniker = 1; // The input parameter. - ansys.api.geometry.v0.InputParameter defined_variation_table_input = 2; + InputParameter defined_variation_table_input = 2; } message GetOutputForVariationRequest{ @@ -115,7 +101,7 @@ message GetInputColumnRequest{ message GetInputColumnResponse{ // The parameter's variations column. - ansys.api.geometry.v0.InputColumn column = 1; + InputColumn column = 1; } message GetOutputColumnRequest{ @@ -125,7 +111,7 @@ message GetOutputColumnRequest{ message GetOutputColumnResponse{ // The parameter's variations column. - ansys.api.geometry.v0.OutputColumn column = 1; + OutputColumn column = 1; } message SetStarredStatusRequest{ @@ -142,32 +128,10 @@ message CreateVariationRequest{ message CreateVariationResponse{ string result = 1; } - -message SetStarredStatusResponse{ -} - ///UPDATES // -message UpdateCurrentRequest{ -} - -message UpdateCurrentResponse{ - // The result - bool result = 1; -} - -message UpdateStarredRequest{ -} - -message UpdateStarredResponse{ - // The result - bool result = 1; -} - -message UpdateAllRequest{ -} -message UpdateAllResponse{ +message UpdateResponse{ // The result bool result = 1; } diff --git a/ansys/api/discovery/v0/drivingdimensions.proto b/ansys/api/discovery/v0/drivingdimensions.proto index 92cb92e..4ef813e 100644 --- a/ansys/api/discovery/v0/drivingdimensions.proto +++ b/ansys/api/discovery/v0/drivingdimensions.proto @@ -1,40 +1,34 @@ // ©2023, ANSYS Inc. Unauthorized use, distribution or duplication is prohibited. syntax = "proto3"; -package ansys.api.discovery.v0; +package ansys.api.discovery.v0.DrivingDimensions; -import "ansys/api/geometry/v0/models.proto"; +import "ansys/api/discovery/v0/datamodels.proto"; -option csharp_namespace = "Ansys.Api.Discovery.V0"; +option csharp_namespace = "Ansys.Api.Discovery.V0.DrivingDimensions"; option go_package = "ansys/api/discovery/v0"; - service DrivingDimensions{ // Gets a driving dimension. - rpc GetDrivingDimension(GetDrivingDimensionRequest) returns(ansys.api.geometry.v0.DrivingDimension); + rpc Get(EntityIdentifier) returns(DrivingDimension); // Lists all driving dimensions. - rpc ListDrivingDimensions(ListDrivingDimensionsRequest) returns(ListDrivingDimensionsResponse); + rpc GetAll(GetAllRequest) returns(GetAllResponse); // Upates a driving dimension. - rpc UpdateDrivingDimension(UpdateDrivingDimensionRequest) returns(ansys.api.geometry.v0.DrivingDimension); -} - -message GetDrivingDimensionRequest{ - // The moniker to access the dimension. - string moniker = 1; + rpc Update(UpdateRequest) returns(DrivingDimension); } -message ListDrivingDimensionsRequest{ +message GetAllRequest{ // The parent, which must be empty. string parent = 1; } -message ListDrivingDimensionsResponse{ +message GetAllResponse{ // The driving dimensions on this page. - repeated ansys.api.geometry.v0.DrivingDimension driving_dimensions = 1; + repeated DrivingDimension driving_dimensions = 1; } -message UpdateDrivingDimensionRequest{ +message UpdateRequest{ // The driving dimension to update. - ansys.api.geometry.v0.DrivingDimension driving_dimension = 1; + DrivingDimension driving_dimension = 1; } diff --git a/ansys/api/discovery/v0/scriptparameters.proto b/ansys/api/discovery/v0/scriptparameters.proto index 04dd2e3..f89fad8 100644 --- a/ansys/api/discovery/v0/scriptparameters.proto +++ b/ansys/api/discovery/v0/scriptparameters.proto @@ -1,49 +1,42 @@ // ©2023, ANSYS Inc. Unauthorized use, distribution or duplication is prohibited. syntax = "proto3"; -package ansys.api.discovery.v0; +package ansys.api.discovery.v0.ScriptParameters; -import "ansys/api/geometry/v0/models.proto"; +import "ansys/api/discovery/v0/datamodels.proto"; +import "google/protobuf/empty.proto"; -option csharp_namespace = "Ansys.Api.Discovery.V0"; +option csharp_namespace = "Ansys.Api.Discovery.V0.ScriptParameters"; option go_package = "ansys/api/discovery/v0"; // script parameters servicer. // service ScriptParameters{ // Gets an script parameter . - rpc GetScriptParameter(GetScriptParameterRequest) returns(ansys.api.geometry.v0.ScriptParameter); + rpc Get(EntityIdentifier) returns(ScriptParameter); // Lists all script parameters. - rpc ListScriptParameters(ListScriptParametersRequest) returns(ListScriptParametersResponse) ; + rpc GetAll(GetAllRequest) returns(GetAllResponse) ; // Upates a script parameter. - rpc UpdateScriptParameter(UpdateScriptParameterRequest) returns(ansys.api.geometry.v0.ScriptParameter) ; + rpc Update(UpdateRequest) returns(ScriptParameter) ; // Replays the script - rpc Replay(ReplayRequest) returns(ReplayResponse) ; + rpc Replay(google.protobuf.Empty) returns(ReplayResponse) ; } -message GetScriptParameterRequest{ - // The moniker to access the dimension. - string moniker = 1; -} - -message ListScriptParametersRequest{ +message GetAllRequest{ // The parent, which must be empty. string parent = 1; } -message ListScriptParametersResponse{ +message GetAllResponse{ // The script parameters on this page. - repeated ansys.api.geometry.v0.ScriptParameter script_parameters = 1; + repeated ScriptParameter script_parameters = 1; } -message UpdateScriptParameterRequest{ +message UpdateRequest{ // The script parameter to update. - ansys.api.geometry.v0.ScriptParameter script_parameter = 1; -} - -message ReplayRequest{ + ScriptParameter script_parameter = 1; } message ReplayResponse{ From a94846f3a3517361ae6bdd243ef371a40f32a0b1 Mon Sep 17 00:00:00 2001 From: m-bini Date: Fri, 3 Mar 2023 11:09:53 +0100 Subject: [PATCH 08/15] Rename discoverydesigns.proto in documents.proto --- ansys/api/discovery/v0/discoverydesigns.proto | 46 ------------------- ansys/api/discovery/v0/documents.proto | 46 +++++++++++++++++++ 2 files changed, 46 insertions(+), 46 deletions(-) delete mode 100644 ansys/api/discovery/v0/discoverydesigns.proto create mode 100644 ansys/api/discovery/v0/documents.proto diff --git a/ansys/api/discovery/v0/discoverydesigns.proto b/ansys/api/discovery/v0/discoverydesigns.proto deleted file mode 100644 index 339ff46..0000000 --- a/ansys/api/discovery/v0/discoverydesigns.proto +++ /dev/null @@ -1,46 +0,0 @@ -// ©2023, ANSYS Inc. Unauthorized use, distribution or duplication is prohibited. -syntax = "proto3"; - -package ansys.api.discovery.v0.discoverydesigns; - -import "ansys/api/geometry/v0/models.proto"; - -option csharp_namespace = "Ansys.Api.Discovery.V0.DiscoveryDesigns"; - - -service DiscoveryDesigns{ - - rpc Get(ansys.api.geometry.v0.Empty) returns(ansys.api.geometry.v0.Design); - - rpc Open(OpenRequest) returns(ansys.api.geometry.v0.EntityIdentifier); - - rpc New(NewRequest) returns(ansys.api.geometry.v0.Design) ; - - rpc Close(ansys.api.geometry.v0.Empty) returns(ansys.api.geometry.v0.Empty); - - rpc Save(ansys.api.geometry.v0.Empty) returns(ansys.api.geometry.v0.Empty) ; - - rpc SaveAs(SaveAsRequest) returns(ansys.api.geometry.v0.EntityIdentifier); - - rpc Insert(InsertRequest) returns(ansys.api.geometry.v0.EntityIdentifier); -} - -message GetAllResponse{ - repeated ansys.api.geometry.v0.Design designs = 1; -} - -message OpenRequest{ - string filepath = 1; -} - -message NewRequest{ - string name = 1; -} - -message SaveAsRequest{ - string filepath = 1; -} - -message InsertRequest{ - string filepath = 1; -} diff --git a/ansys/api/discovery/v0/documents.proto b/ansys/api/discovery/v0/documents.proto new file mode 100644 index 0000000..af2ebaf --- /dev/null +++ b/ansys/api/discovery/v0/documents.proto @@ -0,0 +1,46 @@ +// ©2023, ANSYS Inc. Unauthorized use, distribution or duplication is prohibited. +syntax = "proto3"; + +package ansys.api.discovery.v0.Documents; + +import "ansys/api/discovery/v0/datamodels.proto"; +import "google/protobuf/empty.proto"; + +option csharp_namespace = "Ansys.Api.Discovery.V0.Documents"; + +service Documents{ + + rpc Get(google.protobuf.Empty) returns(Document); + + rpc Open(OpenRequest) returns(EntityIdentifier); + + rpc New(NewRequest) returns(Document) ; + + rpc Close(google.protobuf.Empty) returns(google.protobuf.Empty); + + rpc Save(google.protobuf.Empty) returns(google.protobuf.Empty) ; + + rpc SaveAs(SaveAsRequest) returns(EntityIdentifier); + + rpc Insert(InsertRequest) returns(EntityIdentifier); +} + +message GetAllResponse{ + repeated Document designs = 1; +} + +message OpenRequest{ + string filepath = 1; +} + +message NewRequest{ + string name = 1; +} + +message SaveAsRequest{ + string filepath = 1; +} + +message InsertRequest{ + string filepath = 1; +} From 5dcf91a4e41d3889b4ab45bdad01e85abc711bf1 Mon Sep 17 00:00:00 2001 From: m-bini Date: Fri, 3 Mar 2023 11:10:08 +0100 Subject: [PATCH 09/15] Create discoverystreaming.proto --- .../api/discovery/v0/discoverystreaming.proto | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 ansys/api/discovery/v0/discoverystreaming.proto diff --git a/ansys/api/discovery/v0/discoverystreaming.proto b/ansys/api/discovery/v0/discoverystreaming.proto new file mode 100644 index 0000000..6083816 --- /dev/null +++ b/ansys/api/discovery/v0/discoverystreaming.proto @@ -0,0 +1,19 @@ +// ©2023, ANSYS Inc. Unauthorized use, distribution or duplication is prohibited. +syntax = "proto3"; +package ansys.api.discovery.v0; +option csharp_namespace = "Ansys.Api.Discovery.V0.Streaming"; + +message StreamPackage{ + // The type of content + string content_type = 1; + // The number of packages + int32 count = 2; + // The package index + int32 index = 3; + // The image total size + int32 total_size = 4; + // This package size + int32 package_size = 5; + // The package data + bytes data =6; +} From ddbbe4d16f4fd7e535b750227ba81b81ad77d291 Mon Sep 17 00:00:00 2001 From: m-bini Date: Fri, 3 Mar 2023 11:10:36 +0100 Subject: [PATCH 10/15] Adapt protos to specific Discovery datamodels.proto --- ansys/api/discovery/v0/discoveryapi.proto | 10 +++++----- .../discovery/v0/discoveryapplication.proto | 4 +--- .../discovery/v0/historytrackparameters.proto | 18 +++++++++--------- ansys/api/discovery/v0/windows.proto | 8 ++++---- 4 files changed, 19 insertions(+), 21 deletions(-) diff --git a/ansys/api/discovery/v0/discoveryapi.proto b/ansys/api/discovery/v0/discoveryapi.proto index e0d4871..3f98e7c 100644 --- a/ansys/api/discovery/v0/discoveryapi.proto +++ b/ansys/api/discovery/v0/discoveryapi.proto @@ -1,6 +1,9 @@ // ©2023, ANSYS Inc. Unauthorized use, distribution or duplication is prohibited. syntax = "proto3"; -package ansys.api.discovery.v0.discoveryapi; +package ansys.api.discovery.v0.DiscoveryApi; + +import "google/protobuf/empty.proto"; + option csharp_namespace = "Ansys.Api.Discovery.V0.DiscoveryApi"; option go_package = "ansys/api/discovery/v0"; @@ -11,10 +14,7 @@ service DiscoveryApi{ rpc SetVersion(SetVersionRequest) returns(SetVersionResponse) ; // Sets the current scripting version. - rpc GetVersion(GetVersionRequest) returns(GetVersionResponse) ; -} - -message GetVersionRequest{ + rpc GetVersion(google.protobuf.Empty) returns(GetVersionResponse) ; } message GetVersionResponse{ diff --git a/ansys/api/discovery/v0/discoveryapplication.proto b/ansys/api/discovery/v0/discoveryapplication.proto index 305022c..63df7c8 100644 --- a/ansys/api/discovery/v0/discoveryapplication.proto +++ b/ansys/api/discovery/v0/discoveryapplication.proto @@ -1,9 +1,7 @@ // ©2023, ANSYS Inc. Unauthorized use, distribution or duplication is prohibited. syntax = "proto3"; -package ansys.api.discovery.v0.discoveryapplication; - -import "ansys/api/geometry/v0/streaming.proto"; +package ansys.api.discovery.v0.DiscoveryApplication; option csharp_namespace = "Ansys.Api.Discovery.V0.DiscoveryApplication"; option go_package = "ansys/api/discovery/v0"; diff --git a/ansys/api/discovery/v0/historytrackparameters.proto b/ansys/api/discovery/v0/historytrackparameters.proto index 5c0a964..ae20249 100644 --- a/ansys/api/discovery/v0/historytrackparameters.proto +++ b/ansys/api/discovery/v0/historytrackparameters.proto @@ -1,36 +1,36 @@ // ©2023, ANSYS Inc. Unauthorized use, distribution or duplication is prohibited. syntax = "proto3"; -package ansys.api.discovery.v0; +package ansys.api.discovery.v0.HistoryTrackParameters; -import "ansys/api/geometry/v0/models.proto"; +import "ansys/api/discovery/v0/datamodels.proto"; +import "google/protobuf/empty.proto"; option csharp_namespace = "Ansys.Api.Discovery.V0.HistoryTrackParameters"; option go_package = "ansys/api/discovery/v0"; - // History track parameters servicer. // service HistoryTrackParameters{ // Gets an history track parameter . - rpc Get(ansys.api.geometry.v0.EntityIdentifier) returns(ansys.api.geometry.v0.HistoryTrackParameter); + rpc Get(EntityIdentifier) returns(HistoryTrackParameter); // Lists all history track parameters. - rpc GetAll(ansys.api.geometry.v0.Empty) returns(GetAllResponse); + rpc GetAll(google.protobuf.Empty) returns(GetAllResponse); // Upates a history track parameter. - rpc Update(UpdateRequest) returns(ansys.api.geometry.v0.HistoryTrackParameter); + rpc Update(UpdateRequest) returns(HistoryTrackParameter); // Replays the history block parameters - rpc Replay(ansys.api.geometry.v0.Empty) returns(ReplayResponse); + rpc Replay(google.protobuf.Empty) returns(ReplayResponse); } message GetAllResponse{ // The history track parameters on this page. - repeated ansys.api.geometry.v0.HistoryTrackParameter history_track_parameters = 1; + repeated HistoryTrackParameter history_track_parameters = 1; } message UpdateRequest{ // The history track parameter to update. - ansys.api.geometry.v0.HistoryTrackParameter history_track_parameter = 1; + HistoryTrackParameter history_track_parameter = 1; } message ReplayResponse{ diff --git a/ansys/api/discovery/v0/windows.proto b/ansys/api/discovery/v0/windows.proto index defe208..c8e95c9 100644 --- a/ansys/api/discovery/v0/windows.proto +++ b/ansys/api/discovery/v0/windows.proto @@ -1,17 +1,17 @@ // ©2023, ANSYS Inc. Unauthorized use, distribution or duplication is prohibited. syntax = "proto3"; -package ansys.api.discovery.v0; +package ansys.api.discovery.v0.Windows; -import "ansys/api/geometry/v0/streaming.proto"; +import "ansys/api/discovery/v0/discoverystreaming.proto"; -option csharp_namespace = "Ansys.Api.Discovery.V0"; +option csharp_namespace = "Ansys.Api.Discovery.V0.Windows"; option go_package = "ansys/api/discovery/v0"; // Windows // service Windows{ // Gets an image for the active window. - rpc GetImage(GetImageRequest) returns(stream ansys.api.geometry.v0.StreamPackage); + rpc GetImage(GetImageRequest) returns(stream StreamPackage); // Sets the camera view for the active window. rpc SetView(SetViewRequest) returns(SetViewResponse); From 7d6edb96e29e03de6a1698d1291fcf3914442619 Mon Sep 17 00:00:00 2001 From: m-bini Date: Fri, 3 Mar 2023 11:12:17 +0100 Subject: [PATCH 11/15] Update .protolint.yaml --- .protolint.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/.protolint.yaml b/.protolint.yaml index 523c3d0..95645c8 100644 --- a/.protolint.yaml +++ b/.protolint.yaml @@ -18,6 +18,7 @@ lint: # - Enum fields with 0 value are not suffixed UNSPECIFIED # - Prepositions should be exluded from message and field names remove: + - PACKAGE_NAME_LOWER_CASE - MESSAGES_HAVE_COMMENT - SERVICES_HAVE_COMMENT - RPCS_HAVE_COMMENT From 463fcbdd893d55c6947110a1d8fb472ca2640fca Mon Sep 17 00:00:00 2001 From: m-bini Date: Fri, 3 Mar 2023 11:16:02 +0100 Subject: [PATCH 12/15] Update pyproject.toml --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index dbdebef..991f454 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,3 +1,3 @@ [build-system] -requires = ["setuptools >= 42.0.0", "wheel", "ansys_tools_protoc_helper", "ansys-geometry-core" ] +requires = ["setuptools >= 42.0.0", "wheel", "ansys_tools_protoc_helper"] build-backend = "setuptools.build_meta:__legacy__" From da3a8504fde4cfa873ec5686b7211c56514754ec Mon Sep 17 00:00:00 2001 From: m-bini Date: Fri, 3 Mar 2023 11:17:33 +0100 Subject: [PATCH 13/15] Update ci.yml --- .github/workflows/ci.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 1273c65..af84961 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -44,7 +44,7 @@ jobs: run: | mkdir tmp cd tmp - python -c "import ansys.api.discovery.v1; print('Successfully imported ansys.api.discovery.v1')" + python -c "import ansys.api.discovery.v0; print('Successfully imported ansys.api.discovery.v0')" python -c "from ansys.api.discovery import __version__; print(__version__)" - name: Upload packages @@ -91,7 +91,7 @@ jobs: TWINE_REPOSITORY_URL: https://pkgs.dev.azure.com/pyansys/_packaging/pyansys/pypi/upload - name: Release - uses: softprops/action-gh-release@v1 + uses: softprops/action-gh-release@v0 with: generate_release_notes: true files: | From 2fb4ed0dd023b6194c3cfcf000ffe36279941299 Mon Sep 17 00:00:00 2001 From: m-bini Date: Tue, 18 Apr 2023 12:02:57 +0200 Subject: [PATCH 14/15] update protos for pydisco --- ansys/api/discovery/v0/__init__.py | 0 ansys/api/discovery/v0/admintools.proto | 72 +++++++++++++++++++ ansys/api/discovery/v0/datamodels.proto | 9 +++ ansys/api/discovery/v0/discoveryapi.proto | 8 +-- .../discovery/v0/historytrackparameters.proto | 17 +++++ setup.py | 2 +- 6 files changed, 103 insertions(+), 5 deletions(-) create mode 100644 ansys/api/discovery/v0/__init__.py create mode 100644 ansys/api/discovery/v0/admintools.proto diff --git a/ansys/api/discovery/v0/__init__.py b/ansys/api/discovery/v0/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/ansys/api/discovery/v0/admintools.proto b/ansys/api/discovery/v0/admintools.proto new file mode 100644 index 0000000..30ee193 --- /dev/null +++ b/ansys/api/discovery/v0/admintools.proto @@ -0,0 +1,72 @@ +// ©2023, ANSYS Inc. Unauthorized use, distribution or duplication is prohibited. +syntax = "proto3"; +package ansys.api.discovery.v0.AdminTools; + +import "google/protobuf/empty.proto"; +import "google/protobuf/struct.proto"; +import "google/protobuf/timestamp.proto"; + +option csharp_namespace = "Ansys.Api.Discovery.V0.AdminTools"; +option go_package = "ansys/api/discovery/v0"; + +service AdminTools{ + + rpc GetLogs(LogsRequest) returns(stream LogsResponse); + + rpc Health(google.protobuf.Empty) returns(HealthResponse); + + rpc Shutdown(google.protobuf.Empty) returns(google.protobuf.Empty); + + rpc StatusInfo(google.protobuf.Empty) returns(StatusInfoResponse); + + rpc SetApplicationTitle(SetApplicationTitleRequest) returns(google.protobuf.Empty); + + rpc CloseApplication(google.protobuf.Empty) returns(google.protobuf.Empty); +} + +enum LogsTarget{ + CLIENT = 0; + PATH = 1; +} + +enum PeriodType{ + CURRENT = 0; + PAST = 1; + ALL = 2; +} + +message LogsRequest{ + + LogsTarget target = 1; + oneof path{ + google.protobuf.NullValue null_path = 2; + string target_path =3; + } + + PeriodType period_type = 4; + + oneof period { + google.protobuf.NullValue null_period = 5; + google.protobuf.Timestamp logs_period = 6; + } +} + +message LogsResponse{ + string relative_path = 1; + string log_name = 2; + bytes log_chunk = 3; +} + +message HealthResponse{ + string message = 1; +} + +message StatusInfoResponse{ + string touch_time = 1 [json_name = "touch_time"]; + string application_version = 2 [json_name = "application_version"]; + string embedded_api_version = 3 [json_name = "embedded_api_version"]; +} + +message SetApplicationTitleRequest{ + string title =1; +} diff --git a/ansys/api/discovery/v0/datamodels.proto b/ansys/api/discovery/v0/datamodels.proto index 0edef11..bbff507 100644 --- a/ansys/api/discovery/v0/datamodels.proto +++ b/ansys/api/discovery/v0/datamodels.proto @@ -101,6 +101,15 @@ message InputParameter { double quantity_value=5; int32 unit=6; string unit_abbreviation=7; + InputParameterType input_type=8; + string parent_object_id = 9; +} + +enum InputParameterType{ + PHYSICS=0; + DRIVING_DIMENSION=1; + HISTORY_TRACK=2; + UNKNOWN=3; } // diff --git a/ansys/api/discovery/v0/discoveryapi.proto b/ansys/api/discovery/v0/discoveryapi.proto index 3f98e7c..ac3ff32 100644 --- a/ansys/api/discovery/v0/discoveryapi.proto +++ b/ansys/api/discovery/v0/discoveryapi.proto @@ -31,8 +31,8 @@ message SetVersionResponse{ } enum ApiVersion { - V_21 = 0; - V_22 = 1; - V_231 = 2; - V_232 = 3; + V_21 = 21; + V_22 = 22; + V_231 = 231; + V_232 = 232; } diff --git a/ansys/api/discovery/v0/historytrackparameters.proto b/ansys/api/discovery/v0/historytrackparameters.proto index ae20249..4c7f256 100644 --- a/ansys/api/discovery/v0/historytrackparameters.proto +++ b/ansys/api/discovery/v0/historytrackparameters.proto @@ -22,6 +22,10 @@ service HistoryTrackParameters{ // Replays the history block parameters rpc Replay(google.protobuf.Empty) returns(ReplayResponse); + + rpc GetRecordingStatus(google.protobuf.Empty) returns(GetRecordingStatusResponse); + + rpc SetRecordingStatus(SetRecordingStatusRequest) returns(google.protobuf.Empty); } message GetAllResponse{ @@ -37,3 +41,16 @@ message ReplayResponse{ // The result string result = 1; } + +enum RecordingStatus{ + OFF=0; + ON=1; +} + +message GetRecordingStatusResponse{ + RecordingStatus status=1; +} + +message SetRecordingStatusRequest{ + RecordingStatus status=1; +} diff --git a/setup.py b/setup.py index 44bbe59..9743793 100644 --- a/setup.py +++ b/setup.py @@ -14,7 +14,7 @@ product = "discovery" library = "" -package_info = ["ansys", "api", product, library] +package_info = ["ansys", "api", product, library,"v0"] with open(os.path.join(HERE, "ansys", "api", product, library, "VERSION"), encoding="utf-8") as f: version = f.read().strip() From 0704866c0c93213e0f967359a76fafd19dd92c03 Mon Sep 17 00:00:00 2001 From: m-bini Date: Tue, 18 Apr 2023 14:49:41 +0200 Subject: [PATCH 15/15] add 0 index to ApiVersion --- ansys/api/discovery/v0/discoveryapi.proto | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ansys/api/discovery/v0/discoveryapi.proto b/ansys/api/discovery/v0/discoveryapi.proto index f614627..130cd0c 100644 --- a/ansys/api/discovery/v0/discoveryapi.proto +++ b/ansys/api/discovery/v0/discoveryapi.proto @@ -1,4 +1,4 @@ -// �2023, ANSYS Inc. Unauthorized use, distribution or duplication is prohibited. +// ©2023, ANSYS Inc. Unauthorized use, distribution or duplication is prohibited. syntax = "proto3"; package ansys.api.discovery.v0.DiscoveryApi; @@ -31,6 +31,7 @@ message SetVersionResponse{ } enum ApiVersion { + INVALID = 0; V_21 = 21; V_22 = 22; V_231 = 231;