ansys-api-platform-instancemanagement 1.1.2__tar.gz → 1.1.4__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (22) hide show
  1. {ansys_api_platform_instancemanagement-1.1.2/src/ansys_api_platform_instancemanagement.egg-info → ansys_api_platform_instancemanagement-1.1.4}/PKG-INFO +5 -4
  2. {ansys_api_platform_instancemanagement-1.1.2 → ansys_api_platform_instancemanagement-1.1.4}/pyproject.toml +1 -1
  3. {ansys_api_platform_instancemanagement-1.1.2 → ansys_api_platform_instancemanagement-1.1.4}/setup.py +1 -1
  4. {ansys_api_platform_instancemanagement-1.1.2 → ansys_api_platform_instancemanagement-1.1.4}/src/ansys/api/platform/instancemanagement/_version.py +1 -1
  5. ansys_api_platform_instancemanagement-1.1.4/src/ansys/api/platform/instancemanagement/v1/product_instance_manager_pb2.py +68 -0
  6. ansys_api_platform_instancemanagement-1.1.4/src/ansys/api/platform/instancemanagement/v1/product_instance_manager_pb2.pyi +379 -0
  7. ansys_api_platform_instancemanagement-1.1.4/src/ansys/api/platform/instancemanagement/v1/product_instance_manager_pb2_grpc.py +329 -0
  8. ansys_api_platform_instancemanagement-1.1.4/src/ansys/api/platform/instancemanagement/v1/product_instance_manager_pb2_grpc.pyi +174 -0
  9. {ansys_api_platform_instancemanagement-1.1.2 → ansys_api_platform_instancemanagement-1.1.4/src/ansys_api_platform_instancemanagement.egg-info}/PKG-INFO +5 -4
  10. {ansys_api_platform_instancemanagement-1.1.2 → ansys_api_platform_instancemanagement-1.1.4}/src/ansys_api_platform_instancemanagement.egg-info/SOURCES.txt +4 -0
  11. ansys_api_platform_instancemanagement-1.1.4/src/ansys_api_platform_instancemanagement.egg-info/requires.txt +2 -0
  12. ansys_api_platform_instancemanagement-1.1.2/src/ansys_api_platform_instancemanagement.egg-info/requires.txt +0 -2
  13. {ansys_api_platform_instancemanagement-1.1.2 → ansys_api_platform_instancemanagement-1.1.4}/AUTHORS +0 -0
  14. {ansys_api_platform_instancemanagement-1.1.2 → ansys_api_platform_instancemanagement-1.1.4}/LICENSE +0 -0
  15. {ansys_api_platform_instancemanagement-1.1.2 → ansys_api_platform_instancemanagement-1.1.4}/README.md +0 -0
  16. {ansys_api_platform_instancemanagement-1.1.2 → ansys_api_platform_instancemanagement-1.1.4}/setup.cfg +0 -0
  17. {ansys_api_platform_instancemanagement-1.1.2 → ansys_api_platform_instancemanagement-1.1.4}/src/ansys/api/platform/instancemanagement/__init__.py +0 -0
  18. {ansys_api_platform_instancemanagement-1.1.2 → ansys_api_platform_instancemanagement-1.1.4}/src/ansys/api/platform/instancemanagement/py.typed +0 -0
  19. {ansys_api_platform_instancemanagement-1.1.2 → ansys_api_platform_instancemanagement-1.1.4}/src/ansys/api/platform/instancemanagement/v1/product_instance_manager.proto +0 -0
  20. {ansys_api_platform_instancemanagement-1.1.2 → ansys_api_platform_instancemanagement-1.1.4}/src/ansys_api_platform_instancemanagement.egg-info/dependency_links.txt +0 -0
  21. {ansys_api_platform_instancemanagement-1.1.2 → ansys_api_platform_instancemanagement-1.1.4}/src/ansys_api_platform_instancemanagement.egg-info/entry_points.txt +0 -0
  22. {ansys_api_platform_instancemanagement-1.1.2 → ansys_api_platform_instancemanagement-1.1.4}/src/ansys_api_platform_instancemanagement.egg-info/top_level.txt +0 -0
@@ -1,7 +1,7 @@
1
- Metadata-Version: 2.2
1
+ Metadata-Version: 2.4
2
2
  Name: ansys-api-platform-instancemanagement
3
- Version: 1.1.2
4
- Summary: Autogenerated python gRPC interface package for ansys-api-platform-instancemanagement, built on 08:29:41 on 21 January 2025
3
+ Version: 1.1.4
4
+ Summary: Autogenerated python gRPC interface package for ansys-api-platform-instancemanagement, built on 10:46:31 on 07 July 2026
5
5
  Home-page: https://github.com/ansys/ansys-api-platform-instancemanagement
6
6
  Author: ANSYS, Inc.
7
7
  Author-email: pyansys.core@ansys.com
@@ -11,13 +11,14 @@ Description-Content-Type: text/markdown
11
11
  License-File: LICENSE
12
12
  License-File: AUTHORS
13
13
  Requires-Dist: grpcio~=1.17
14
- Requires-Dist: protobuf<6,>=3.19
14
+ Requires-Dist: protobuf>=3.19
15
15
  Dynamic: author
16
16
  Dynamic: author-email
17
17
  Dynamic: description
18
18
  Dynamic: description-content-type
19
19
  Dynamic: home-page
20
20
  Dynamic: license
21
+ Dynamic: license-file
21
22
  Dynamic: requires-dist
22
23
  Dynamic: requires-python
23
24
  Dynamic: summary
@@ -1,3 +1,3 @@
1
1
  [build-system]
2
- requires = ["setuptools >= 42.0.0", "wheel", "ansys_tools_protoc_helper"]
2
+ requires = ["setuptools >= 83.0.0", "wheel", "ansys_tools_protoc_helper"]
3
3
  build-backend = "setuptools.build_meta:__legacy__"
@@ -43,7 +43,7 @@ if __name__ == "__main__":
43
43
  url=f"https://github.com/ansys/{package_name}",
44
44
  license="MIT",
45
45
  python_requires=">=3.8",
46
- install_requires=["grpcio~=1.17", "protobuf>=3.19,<6"],
46
+ install_requires=["grpcio~=1.17", "protobuf>=3.19"],
47
47
  package_dir={"": "src"},
48
48
  packages=setuptools.find_namespace_packages("src", include=("ansys.*",)),
49
49
  package_data={
@@ -1,7 +1,7 @@
1
1
  """Version of ansys-api-platform-instancemanagement module."""
2
2
 
3
3
  # Version of the ansys-api-platform-instancemanagement module
4
- __version__ = "1.1.2"
4
+ __version__ = "1.1.4"
5
5
 
6
6
  # Defining a version alias for compatibility with other modules
7
7
  version = __version__
@@ -0,0 +1,68 @@
1
+ # -*- coding: utf-8 -*-
2
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
3
+ # NO CHECKED-IN PROTOBUF GENCODE
4
+ # source: ansys/api/platform/instancemanagement/v1/product_instance_manager.proto
5
+ # Protobuf Python Version: 5.29.0
6
+ """Generated protocol buffer code."""
7
+ from google.protobuf import descriptor as _descriptor
8
+ from google.protobuf import descriptor_pool as _descriptor_pool
9
+ from google.protobuf import runtime_version as _runtime_version
10
+ from google.protobuf import symbol_database as _symbol_database
11
+ from google.protobuf.internal import builder as _builder
12
+ _runtime_version.ValidateProtobufRuntimeVersion(
13
+ _runtime_version.Domain.PUBLIC,
14
+ 5,
15
+ 29,
16
+ 0,
17
+ '',
18
+ 'ansys/api/platform/instancemanagement/v1/product_instance_manager.proto'
19
+ )
20
+ # @@protoc_insertion_point(imports)
21
+
22
+ _sym_db = _symbol_database.Default()
23
+
24
+
25
+ from google.protobuf import empty_pb2 as google_dot_protobuf_dot_empty__pb2
26
+
27
+
28
+ DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\nGansys/api/platform/instancemanagement/v1/product_instance_manager.proto\x12(ansys.api.platform.instancemanagement.v1\x1a\x1bgoogle/protobuf/empty.proto\"\x90\x02\n\x08Instance\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x17\n\x0f\x64\x65\x66inition_name\x18\x02 \x01(\t\x12\r\n\x05ready\x18\x03 \x01(\x08\x12\x16\n\x0estatus_message\x18\x04 \x01(\t\x12R\n\x08services\x18\x05 \x03(\x0b\x32@.ansys.api.platform.instancemanagement.v1.Instance.ServicesEntry\x1a\x62\n\rServicesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12@\n\x05value\x18\x02 \x01(\x0b\x32\x31.ansys.api.platform.instancemanagement.v1.Service:\x02\x38\x01\"j\n\nDefinition\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x14\n\x0cproduct_name\x18\x02 \x01(\t\x12\x17\n\x0fproduct_version\x18\x03 \x01(\t\x12\x1f\n\x17\x61vailable_service_names\x18\x04 \x03(\t\"\x97\x01\n\x07Service\x12\x0b\n\x03uri\x18\x01 \x01(\t\x12O\n\x07headers\x18\x02 \x03(\x0b\x32>.ansys.api.platform.instancemanagement.v1.Service.HeadersEntry\x1a.\n\x0cHeadersEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"]\n\x15\x43reateInstanceRequest\x12\x44\n\x08instance\x18\x01 \x01(\x0b\x32\x32.ansys.api.platform.instancemanagement.v1.Instance\"%\n\x15\x44\x65leteInstanceRequest\x12\x0c\n\x04name\x18\x01 \x01(\t\"\"\n\x12GetInstanceRequest\x12\x0c\n\x04name\x18\x01 \x01(\t\"=\n\x14ListInstancesRequest\x12\x11\n\tpage_size\x18\x01 \x01(\x05\x12\x12\n\npage_token\x18\x02 \x01(\t\"w\n\x15ListInstancesResponse\x12\x45\n\tinstances\x18\x01 \x03(\x0b\x32\x32.ansys.api.platform.instancemanagement.v1.Instance\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"n\n\x16ListDefinitionsRequest\x12\x11\n\tpage_size\x18\x01 \x01(\x05\x12\x12\n\npage_token\x18\x02 \x01(\t\x12\x14\n\x0cproduct_name\x18\x03 \x01(\t\x12\x17\n\x0fproduct_version\x18\x04 \x01(\t\"}\n\x17ListDefinitionsResponse\x12I\n\x0b\x64\x65\x66initions\x18\x01 \x03(\x0b\x32\x34.ansys.api.platform.instancemanagement.v1.Definition\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"$\n\x14GetDefinitionRequest\x12\x0c\n\x04name\x18\x01 \x01(\t2\xc0\x06\n\x16ProductInstanceManager\x12\x85\x01\n\x0e\x43reateInstance\x12?.ansys.api.platform.instancemanagement.v1.CreateInstanceRequest\x1a\x32.ansys.api.platform.instancemanagement.v1.Instance\x12i\n\x0e\x44\x65leteInstance\x12?.ansys.api.platform.instancemanagement.v1.DeleteInstanceRequest\x1a\x16.google.protobuf.Empty\x12\x90\x01\n\rListInstances\x12>.ansys.api.platform.instancemanagement.v1.ListInstancesRequest\x1a?.ansys.api.platform.instancemanagement.v1.ListInstancesResponse\x12\x7f\n\x0bGetInstance\x12<.ansys.api.platform.instancemanagement.v1.GetInstanceRequest\x1a\x32.ansys.api.platform.instancemanagement.v1.Instance\x12\x96\x01\n\x0fListDefinitions\x12@.ansys.api.platform.instancemanagement.v1.ListDefinitionsRequest\x1a\x41.ansys.api.platform.instancemanagement.v1.ListDefinitionsResponse\x12\x85\x01\n\rGetDefinition\x12>.ansys.api.platform.instancemanagement.v1.GetDefinitionRequest\x1a\x34.ansys.api.platform.instancemanagement.v1.DefinitionB+\xaa\x02(Ansys.Api.Platform.InstanceManagement.V1b\x06proto3')
29
+
30
+ _globals = globals()
31
+ _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
32
+ _builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'ansys.api.platform.instancemanagement.v1.product_instance_manager_pb2', _globals)
33
+ if not _descriptor._USE_C_DESCRIPTORS:
34
+ _globals['DESCRIPTOR']._loaded_options = None
35
+ _globals['DESCRIPTOR']._serialized_options = b'\252\002(Ansys.Api.Platform.InstanceManagement.V1'
36
+ _globals['_INSTANCE_SERVICESENTRY']._loaded_options = None
37
+ _globals['_INSTANCE_SERVICESENTRY']._serialized_options = b'8\001'
38
+ _globals['_SERVICE_HEADERSENTRY']._loaded_options = None
39
+ _globals['_SERVICE_HEADERSENTRY']._serialized_options = b'8\001'
40
+ _globals['_INSTANCE']._serialized_start=147
41
+ _globals['_INSTANCE']._serialized_end=419
42
+ _globals['_INSTANCE_SERVICESENTRY']._serialized_start=321
43
+ _globals['_INSTANCE_SERVICESENTRY']._serialized_end=419
44
+ _globals['_DEFINITION']._serialized_start=421
45
+ _globals['_DEFINITION']._serialized_end=527
46
+ _globals['_SERVICE']._serialized_start=530
47
+ _globals['_SERVICE']._serialized_end=681
48
+ _globals['_SERVICE_HEADERSENTRY']._serialized_start=635
49
+ _globals['_SERVICE_HEADERSENTRY']._serialized_end=681
50
+ _globals['_CREATEINSTANCEREQUEST']._serialized_start=683
51
+ _globals['_CREATEINSTANCEREQUEST']._serialized_end=776
52
+ _globals['_DELETEINSTANCEREQUEST']._serialized_start=778
53
+ _globals['_DELETEINSTANCEREQUEST']._serialized_end=815
54
+ _globals['_GETINSTANCEREQUEST']._serialized_start=817
55
+ _globals['_GETINSTANCEREQUEST']._serialized_end=851
56
+ _globals['_LISTINSTANCESREQUEST']._serialized_start=853
57
+ _globals['_LISTINSTANCESREQUEST']._serialized_end=914
58
+ _globals['_LISTINSTANCESRESPONSE']._serialized_start=916
59
+ _globals['_LISTINSTANCESRESPONSE']._serialized_end=1035
60
+ _globals['_LISTDEFINITIONSREQUEST']._serialized_start=1037
61
+ _globals['_LISTDEFINITIONSREQUEST']._serialized_end=1147
62
+ _globals['_LISTDEFINITIONSRESPONSE']._serialized_start=1149
63
+ _globals['_LISTDEFINITIONSRESPONSE']._serialized_end=1274
64
+ _globals['_GETDEFINITIONREQUEST']._serialized_start=1276
65
+ _globals['_GETDEFINITIONREQUEST']._serialized_end=1312
66
+ _globals['_PRODUCTINSTANCEMANAGER']._serialized_start=1315
67
+ _globals['_PRODUCTINSTANCEMANAGER']._serialized_end=2147
68
+ # @@protoc_insertion_point(module_scope)
@@ -0,0 +1,379 @@
1
+ """
2
+ @generated by mypy-protobuf. Do not edit manually!
3
+ isort:skip_file
4
+
5
+ ©2023, ANSYS Inc. Unauthorized use, distribution or duplication is prohibited.
6
+ """
7
+
8
+ import builtins
9
+ import collections.abc
10
+ import google.protobuf.descriptor
11
+ import google.protobuf.internal.containers
12
+ import google.protobuf.message
13
+ import typing
14
+
15
+ DESCRIPTOR: google.protobuf.descriptor.FileDescriptor
16
+
17
+ @typing.final
18
+ class Instance(google.protobuf.message.Message):
19
+ """Running instance of a product definition
20
+ To list the running instances, use `ListInstances`
21
+ """
22
+
23
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
24
+
25
+ @typing.final
26
+ class ServicesEntry(google.protobuf.message.Message):
27
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
28
+
29
+ KEY_FIELD_NUMBER: builtins.int
30
+ VALUE_FIELD_NUMBER: builtins.int
31
+ key: builtins.str
32
+ @property
33
+ def value(self) -> global___Service: ...
34
+ def __init__(
35
+ self,
36
+ *,
37
+ key: builtins.str = ...,
38
+ value: global___Service | None = ...,
39
+ ) -> None: ...
40
+ def HasField(self, field_name: typing.Literal["value", b"value"]) -> builtins.bool: ...
41
+ def ClearField(self, field_name: typing.Literal["key", b"key", "value", b"value"]) -> None: ...
42
+
43
+ NAME_FIELD_NUMBER: builtins.int
44
+ DEFINITION_NAME_FIELD_NUMBER: builtins.int
45
+ READY_FIELD_NUMBER: builtins.int
46
+ STATUS_MESSAGE_FIELD_NUMBER: builtins.int
47
+ SERVICES_FIELD_NUMBER: builtins.int
48
+ name: builtins.str
49
+ """(Output only) The name of the product instance.
50
+ Starts with 'instances/'
51
+ e.g: instances/workbench-221-12345
52
+ """
53
+ definition_name: builtins.str
54
+ """The name of the product definition.
55
+ e.g: definitions/workbench-221
56
+ Note: A list of all product definition names can be found using `ListDefinitions`
57
+ """
58
+ ready: builtins.bool
59
+ """(Output only) The status of the instance.
60
+ When this status is true, then the services can be used.
61
+ """
62
+ status_message: builtins.str
63
+ """(Output only) Human readable message elaborating the status of the instance.
64
+ Available only if ready is false.
65
+ """
66
+ @property
67
+ def services(self) -> google.protobuf.internal.containers.MessageMap[builtins.str, global___Service]:
68
+ """(Output only) Services exposed by this instance, by name.
69
+ Available only if the instance is ready.
70
+ The list of keys must match the `available_service_names` of this instance definition.
71
+ If the instance exposes a main HTTP API, then the service must be named "http"
72
+ If the instance exposes a main GRPC API, then the service must be named "grpc"
73
+ """
74
+
75
+ def __init__(
76
+ self,
77
+ *,
78
+ name: builtins.str = ...,
79
+ definition_name: builtins.str = ...,
80
+ ready: builtins.bool = ...,
81
+ status_message: builtins.str = ...,
82
+ services: collections.abc.Mapping[builtins.str, global___Service] | None = ...,
83
+ ) -> None: ...
84
+ def ClearField(self, field_name: typing.Literal["definition_name", b"definition_name", "name", b"name", "ready", b"ready", "services", b"services", "status_message", b"status_message"]) -> None: ...
85
+
86
+ global___Instance = Instance
87
+
88
+ @typing.final
89
+ class Definition(google.protobuf.message.Message):
90
+ """Static definition of a product instance.
91
+ To list all available product definitions, use `ListDefinitions`
92
+ """
93
+
94
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
95
+
96
+ NAME_FIELD_NUMBER: builtins.int
97
+ PRODUCT_NAME_FIELD_NUMBER: builtins.int
98
+ PRODUCT_VERSION_FIELD_NUMBER: builtins.int
99
+ AVAILABLE_SERVICE_NAMES_FIELD_NUMBER: builtins.int
100
+ name: builtins.str
101
+ """The product definition name.
102
+ e.g: definitions/workbench-221
103
+ """
104
+ product_name: builtins.str
105
+ """Name of the product.
106
+ e.g: workbench
107
+ """
108
+ product_version: builtins.str
109
+ """Version of the product.
110
+ For product following the unified installation, it
111
+ should be the 3 letters short name of the version.
112
+ e.g: 221
113
+ """
114
+ @property
115
+ def available_service_names(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]:
116
+ """List of available services name that an instance of this definition
117
+ will expose once created.
118
+ If the instance exposes a main HTTP API, then the service must be named "http"
119
+ If the instance exposes a main GRPC API, then the service must be named "grpc"
120
+ """
121
+
122
+ def __init__(
123
+ self,
124
+ *,
125
+ name: builtins.str = ...,
126
+ product_name: builtins.str = ...,
127
+ product_version: builtins.str = ...,
128
+ available_service_names: collections.abc.Iterable[builtins.str] | None = ...,
129
+ ) -> None: ...
130
+ def ClearField(self, field_name: typing.Literal["available_service_names", b"available_service_names", "name", b"name", "product_name", b"product_name", "product_version", b"product_version"]) -> None: ...
131
+
132
+ global___Definition = Definition
133
+
134
+ @typing.final
135
+ class Service(google.protobuf.message.Message):
136
+ """A service available from a running product instance."""
137
+
138
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
139
+
140
+ @typing.final
141
+ class HeadersEntry(google.protobuf.message.Message):
142
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
143
+
144
+ KEY_FIELD_NUMBER: builtins.int
145
+ VALUE_FIELD_NUMBER: builtins.int
146
+ key: builtins.str
147
+ value: builtins.str
148
+ def __init__(
149
+ self,
150
+ *,
151
+ key: builtins.str = ...,
152
+ value: builtins.str = ...,
153
+ ) -> None: ...
154
+ def ClearField(self, field_name: typing.Literal["key", b"key", "value", b"value"]) -> None: ...
155
+
156
+ URI_FIELD_NUMBER: builtins.int
157
+ HEADERS_FIELD_NUMBER: builtins.int
158
+ uri: builtins.str
159
+ """The URI to reach the service
160
+ For gRPC, this is a valid URI, following gRPC name resolution syntax:
161
+ https://grpc.github.io/grpc/core/md_doc_naming.html
162
+ For HTTP/REST, this is a valid http or https URI. It is the base path of the service API.
163
+ """
164
+ @property
165
+ def headers(self) -> google.protobuf.internal.containers.ScalarMap[builtins.str, builtins.str]:
166
+ """The list of headers to pass to the service for each request to the service."""
167
+
168
+ def __init__(
169
+ self,
170
+ *,
171
+ uri: builtins.str = ...,
172
+ headers: collections.abc.Mapping[builtins.str, builtins.str] | None = ...,
173
+ ) -> None: ...
174
+ def ClearField(self, field_name: typing.Literal["headers", b"headers", "uri", b"uri"]) -> None: ...
175
+
176
+ global___Service = Service
177
+
178
+ @typing.final
179
+ class CreateInstanceRequest(google.protobuf.message.Message):
180
+ """Request message for `CreateInstance` method."""
181
+
182
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
183
+
184
+ INSTANCE_FIELD_NUMBER: builtins.int
185
+ @property
186
+ def instance(self) -> global___Instance:
187
+ """The product instance resource to create.
188
+ Note: you can call `ListDefinitions` to get a list of existing instance definitions.
189
+ """
190
+
191
+ def __init__(
192
+ self,
193
+ *,
194
+ instance: global___Instance | None = ...,
195
+ ) -> None: ...
196
+ def HasField(self, field_name: typing.Literal["instance", b"instance"]) -> builtins.bool: ...
197
+ def ClearField(self, field_name: typing.Literal["instance", b"instance"]) -> None: ...
198
+
199
+ global___CreateInstanceRequest = CreateInstanceRequest
200
+
201
+ @typing.final
202
+ class DeleteInstanceRequest(google.protobuf.message.Message):
203
+ """Request message for `DeleteInstance` method."""
204
+
205
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
206
+
207
+ NAME_FIELD_NUMBER: builtins.int
208
+ name: builtins.str
209
+ """The instance name of the product to delete."""
210
+ def __init__(
211
+ self,
212
+ *,
213
+ name: builtins.str = ...,
214
+ ) -> None: ...
215
+ def ClearField(self, field_name: typing.Literal["name", b"name"]) -> None: ...
216
+
217
+ global___DeleteInstanceRequest = DeleteInstanceRequest
218
+
219
+ @typing.final
220
+ class GetInstanceRequest(google.protobuf.message.Message):
221
+ """
222
+ Request message for `GetInstance` method.
223
+ """
224
+
225
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
226
+
227
+ NAME_FIELD_NUMBER: builtins.int
228
+ name: builtins.str
229
+ """The name of the product instance. E.g: instances/example-212-IDAENEID"""
230
+ def __init__(
231
+ self,
232
+ *,
233
+ name: builtins.str = ...,
234
+ ) -> None: ...
235
+ def ClearField(self, field_name: typing.Literal["name", b"name"]) -> None: ...
236
+
237
+ global___GetInstanceRequest = GetInstanceRequest
238
+
239
+ @typing.final
240
+ class ListInstancesRequest(google.protobuf.message.Message):
241
+ """Request message for `ListInstances` method."""
242
+
243
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
244
+
245
+ PAGE_SIZE_FIELD_NUMBER: builtins.int
246
+ PAGE_TOKEN_FIELD_NUMBER: builtins.int
247
+ page_size: builtins.int
248
+ """The maximum number of productInstances to return in the response. If this value
249
+ is zero, the service will select a default size. A call may return fewer
250
+ objects than requested. A non-empty `next_page_token` in the response
251
+ indicates that more data is available.
252
+ """
253
+ page_token: builtins.str
254
+ """The value returned by the last `ListInstancesResponse`; indicates
255
+ that this is a continuation of a prior `ListApps` call and
256
+ the system should return the next page of data.
257
+ """
258
+ def __init__(
259
+ self,
260
+ *,
261
+ page_size: builtins.int = ...,
262
+ page_token: builtins.str = ...,
263
+ ) -> None: ...
264
+ def ClearField(self, field_name: typing.Literal["page_size", b"page_size", "page_token", b"page_token"]) -> None: ...
265
+
266
+ global___ListInstancesRequest = ListInstancesRequest
267
+
268
+ @typing.final
269
+ class ListInstancesResponse(google.protobuf.message.Message):
270
+ """Response message for ListInstances call."""
271
+
272
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
273
+
274
+ INSTANCES_FIELD_NUMBER: builtins.int
275
+ NEXT_PAGE_TOKEN_FIELD_NUMBER: builtins.int
276
+ next_page_token: builtins.str
277
+ """If not empty, indicates that there may be more productInstances that match the
278
+ request; this value should be passed in a new `ListInstancesRequest`.
279
+ """
280
+ @property
281
+ def instances(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___Instance]:
282
+ """The list of running productInstances."""
283
+
284
+ def __init__(
285
+ self,
286
+ *,
287
+ instances: collections.abc.Iterable[global___Instance] | None = ...,
288
+ next_page_token: builtins.str = ...,
289
+ ) -> None: ...
290
+ def ClearField(self, field_name: typing.Literal["instances", b"instances", "next_page_token", b"next_page_token"]) -> None: ...
291
+
292
+ global___ListInstancesResponse = ListInstancesResponse
293
+
294
+ @typing.final
295
+ class ListDefinitionsRequest(google.protobuf.message.Message):
296
+ """Request message for `ListDefinitions` method."""
297
+
298
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
299
+
300
+ PAGE_SIZE_FIELD_NUMBER: builtins.int
301
+ PAGE_TOKEN_FIELD_NUMBER: builtins.int
302
+ PRODUCT_NAME_FIELD_NUMBER: builtins.int
303
+ PRODUCT_VERSION_FIELD_NUMBER: builtins.int
304
+ page_size: builtins.int
305
+ """The maximum number of product definitions to return in the response. If this value
306
+ is zero, the service will select a default size. A call may return fewer
307
+ objects than requested. A non-empty `next_page_token` in the response
308
+ indicates that more data is available.
309
+ """
310
+ page_token: builtins.str
311
+ """The value returned by the last `ListDefinitionsResponse`; indicates
312
+ that this is a continuation of a prior `ListApps` call and
313
+ the system should return the next page of data.
314
+ """
315
+ product_name: builtins.str
316
+ """When specified, only products matching this name will be returned.
317
+ e.g: workbench
318
+ """
319
+ product_version: builtins.str
320
+ """When specified, only products matching this version will be returned.
321
+ e.g: 211
322
+ """
323
+ def __init__(
324
+ self,
325
+ *,
326
+ page_size: builtins.int = ...,
327
+ page_token: builtins.str = ...,
328
+ product_name: builtins.str = ...,
329
+ product_version: builtins.str = ...,
330
+ ) -> None: ...
331
+ def ClearField(self, field_name: typing.Literal["page_size", b"page_size", "page_token", b"page_token", "product_name", b"product_name", "product_version", b"product_version"]) -> None: ...
332
+
333
+ global___ListDefinitionsRequest = ListDefinitionsRequest
334
+
335
+ @typing.final
336
+ class ListDefinitionsResponse(google.protobuf.message.Message):
337
+ """Response message for `ListDefinitions` call."""
338
+
339
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
340
+
341
+ DEFINITIONS_FIELD_NUMBER: builtins.int
342
+ NEXT_PAGE_TOKEN_FIELD_NUMBER: builtins.int
343
+ next_page_token: builtins.str
344
+ """If not empty, indicates that there may be more products that match the
345
+ request; this value should be passed in a new `ListDefinitionsRequest`.
346
+ """
347
+ @property
348
+ def definitions(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___Definition]:
349
+ """The list of all products that can be used to start new instances."""
350
+
351
+ def __init__(
352
+ self,
353
+ *,
354
+ definitions: collections.abc.Iterable[global___Definition] | None = ...,
355
+ next_page_token: builtins.str = ...,
356
+ ) -> None: ...
357
+ def ClearField(self, field_name: typing.Literal["definitions", b"definitions", "next_page_token", b"next_page_token"]) -> None: ...
358
+
359
+ global___ListDefinitionsResponse = ListDefinitionsResponse
360
+
361
+ @typing.final
362
+ class GetDefinitionRequest(google.protobuf.message.Message):
363
+ """Request message for `GetDefinition` method."""
364
+
365
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
366
+
367
+ NAME_FIELD_NUMBER: builtins.int
368
+ name: builtins.str
369
+ """The name of the product definition. E.g: definitions/example-212
370
+ Note: you can call `ListDefinitions` to get a list of existing job definition.
371
+ """
372
+ def __init__(
373
+ self,
374
+ *,
375
+ name: builtins.str = ...,
376
+ ) -> None: ...
377
+ def ClearField(self, field_name: typing.Literal["name", b"name"]) -> None: ...
378
+
379
+ global___GetDefinitionRequest = GetDefinitionRequest
@@ -0,0 +1,329 @@
1
+ # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT!
2
+ """Client and server classes corresponding to protobuf-defined services."""
3
+ import grpc
4
+ import warnings
5
+
6
+ from ansys.api.platform.instancemanagement.v1 import product_instance_manager_pb2 as ansys_dot_api_dot_platform_dot_instancemanagement_dot_v1_dot_product__instance__manager__pb2
7
+ from google.protobuf import empty_pb2 as google_dot_protobuf_dot_empty__pb2
8
+
9
+ GRPC_GENERATED_VERSION = '1.71.2'
10
+ GRPC_VERSION = grpc.__version__
11
+ _version_not_supported = False
12
+
13
+ try:
14
+ from grpc._utilities import first_version_is_lower
15
+ _version_not_supported = first_version_is_lower(GRPC_VERSION, GRPC_GENERATED_VERSION)
16
+ except ImportError:
17
+ _version_not_supported = True
18
+
19
+ if _version_not_supported:
20
+ raise RuntimeError(
21
+ f'The grpc package installed is at version {GRPC_VERSION},'
22
+ + f' but the generated code in ansys/api/platform/instancemanagement/v1/product_instance_manager_pb2_grpc.py depends on'
23
+ + f' grpcio>={GRPC_GENERATED_VERSION}.'
24
+ + f' Please upgrade your grpc module to grpcio>={GRPC_GENERATED_VERSION}'
25
+ + f' or downgrade your generated code using grpcio-tools<={GRPC_VERSION}.'
26
+ )
27
+
28
+
29
+ class ProductInstanceManagerStub(object):
30
+ """Manages the creation and deletion of product instances.
31
+ Note: product instance is the name given to a stateful process starting one or several services.
32
+ """
33
+
34
+ def __init__(self, channel):
35
+ """Constructor.
36
+
37
+ Args:
38
+ channel: A grpc.Channel.
39
+ """
40
+ self.CreateInstance = channel.unary_unary(
41
+ '/ansys.api.platform.instancemanagement.v1.ProductInstanceManager/CreateInstance',
42
+ request_serializer=ansys_dot_api_dot_platform_dot_instancemanagement_dot_v1_dot_product__instance__manager__pb2.CreateInstanceRequest.SerializeToString,
43
+ response_deserializer=ansys_dot_api_dot_platform_dot_instancemanagement_dot_v1_dot_product__instance__manager__pb2.Instance.FromString,
44
+ _registered_method=True)
45
+ self.DeleteInstance = channel.unary_unary(
46
+ '/ansys.api.platform.instancemanagement.v1.ProductInstanceManager/DeleteInstance',
47
+ request_serializer=ansys_dot_api_dot_platform_dot_instancemanagement_dot_v1_dot_product__instance__manager__pb2.DeleteInstanceRequest.SerializeToString,
48
+ response_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString,
49
+ _registered_method=True)
50
+ self.ListInstances = channel.unary_unary(
51
+ '/ansys.api.platform.instancemanagement.v1.ProductInstanceManager/ListInstances',
52
+ request_serializer=ansys_dot_api_dot_platform_dot_instancemanagement_dot_v1_dot_product__instance__manager__pb2.ListInstancesRequest.SerializeToString,
53
+ response_deserializer=ansys_dot_api_dot_platform_dot_instancemanagement_dot_v1_dot_product__instance__manager__pb2.ListInstancesResponse.FromString,
54
+ _registered_method=True)
55
+ self.GetInstance = channel.unary_unary(
56
+ '/ansys.api.platform.instancemanagement.v1.ProductInstanceManager/GetInstance',
57
+ request_serializer=ansys_dot_api_dot_platform_dot_instancemanagement_dot_v1_dot_product__instance__manager__pb2.GetInstanceRequest.SerializeToString,
58
+ response_deserializer=ansys_dot_api_dot_platform_dot_instancemanagement_dot_v1_dot_product__instance__manager__pb2.Instance.FromString,
59
+ _registered_method=True)
60
+ self.ListDefinitions = channel.unary_unary(
61
+ '/ansys.api.platform.instancemanagement.v1.ProductInstanceManager/ListDefinitions',
62
+ request_serializer=ansys_dot_api_dot_platform_dot_instancemanagement_dot_v1_dot_product__instance__manager__pb2.ListDefinitionsRequest.SerializeToString,
63
+ response_deserializer=ansys_dot_api_dot_platform_dot_instancemanagement_dot_v1_dot_product__instance__manager__pb2.ListDefinitionsResponse.FromString,
64
+ _registered_method=True)
65
+ self.GetDefinition = channel.unary_unary(
66
+ '/ansys.api.platform.instancemanagement.v1.ProductInstanceManager/GetDefinition',
67
+ request_serializer=ansys_dot_api_dot_platform_dot_instancemanagement_dot_v1_dot_product__instance__manager__pb2.GetDefinitionRequest.SerializeToString,
68
+ response_deserializer=ansys_dot_api_dot_platform_dot_instancemanagement_dot_v1_dot_product__instance__manager__pb2.Definition.FromString,
69
+ _registered_method=True)
70
+
71
+
72
+ class ProductInstanceManagerServicer(object):
73
+ """Manages the creation and deletion of product instances.
74
+ Note: product instance is the name given to a stateful process starting one or several services.
75
+ """
76
+
77
+ def CreateInstance(self, request, context):
78
+ """Creates a new instance of a product.
79
+ """
80
+ context.set_code(grpc.StatusCode.UNIMPLEMENTED)
81
+ context.set_details('Method not implemented!')
82
+ raise NotImplementedError('Method not implemented!')
83
+
84
+ def DeleteInstance(self, request, context):
85
+ """Removes a running instance of a product.
86
+ """
87
+ context.set_code(grpc.StatusCode.UNIMPLEMENTED)
88
+ context.set_details('Method not implemented!')
89
+ raise NotImplementedError('Method not implemented!')
90
+
91
+ def ListInstances(self, request, context):
92
+ """Lists all running product instances.
93
+ """
94
+ context.set_code(grpc.StatusCode.UNIMPLEMENTED)
95
+ context.set_details('Method not implemented!')
96
+ raise NotImplementedError('Method not implemented!')
97
+
98
+ def GetInstance(self, request, context):
99
+ """Gets an instance of a product.
100
+ The caller must check that the instance is ready
101
+ from the return before using it.
102
+ Returns an error if the instance failed
103
+ to start, crashed, or does not exist.
104
+ """
105
+ context.set_code(grpc.StatusCode.UNIMPLEMENTED)
106
+ context.set_details('Method not implemented!')
107
+ raise NotImplementedError('Method not implemented!')
108
+
109
+ def ListDefinitions(self, request, context):
110
+ """Lists all available products that can be started using this product instance manager.
111
+ """
112
+ context.set_code(grpc.StatusCode.UNIMPLEMENTED)
113
+ context.set_details('Method not implemented!')
114
+ raise NotImplementedError('Method not implemented!')
115
+
116
+ def GetDefinition(self, request, context):
117
+ """Gets a product definition.
118
+ """
119
+ context.set_code(grpc.StatusCode.UNIMPLEMENTED)
120
+ context.set_details('Method not implemented!')
121
+ raise NotImplementedError('Method not implemented!')
122
+
123
+
124
+ def add_ProductInstanceManagerServicer_to_server(servicer, server):
125
+ rpc_method_handlers = {
126
+ 'CreateInstance': grpc.unary_unary_rpc_method_handler(
127
+ servicer.CreateInstance,
128
+ request_deserializer=ansys_dot_api_dot_platform_dot_instancemanagement_dot_v1_dot_product__instance__manager__pb2.CreateInstanceRequest.FromString,
129
+ response_serializer=ansys_dot_api_dot_platform_dot_instancemanagement_dot_v1_dot_product__instance__manager__pb2.Instance.SerializeToString,
130
+ ),
131
+ 'DeleteInstance': grpc.unary_unary_rpc_method_handler(
132
+ servicer.DeleteInstance,
133
+ request_deserializer=ansys_dot_api_dot_platform_dot_instancemanagement_dot_v1_dot_product__instance__manager__pb2.DeleteInstanceRequest.FromString,
134
+ response_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString,
135
+ ),
136
+ 'ListInstances': grpc.unary_unary_rpc_method_handler(
137
+ servicer.ListInstances,
138
+ request_deserializer=ansys_dot_api_dot_platform_dot_instancemanagement_dot_v1_dot_product__instance__manager__pb2.ListInstancesRequest.FromString,
139
+ response_serializer=ansys_dot_api_dot_platform_dot_instancemanagement_dot_v1_dot_product__instance__manager__pb2.ListInstancesResponse.SerializeToString,
140
+ ),
141
+ 'GetInstance': grpc.unary_unary_rpc_method_handler(
142
+ servicer.GetInstance,
143
+ request_deserializer=ansys_dot_api_dot_platform_dot_instancemanagement_dot_v1_dot_product__instance__manager__pb2.GetInstanceRequest.FromString,
144
+ response_serializer=ansys_dot_api_dot_platform_dot_instancemanagement_dot_v1_dot_product__instance__manager__pb2.Instance.SerializeToString,
145
+ ),
146
+ 'ListDefinitions': grpc.unary_unary_rpc_method_handler(
147
+ servicer.ListDefinitions,
148
+ request_deserializer=ansys_dot_api_dot_platform_dot_instancemanagement_dot_v1_dot_product__instance__manager__pb2.ListDefinitionsRequest.FromString,
149
+ response_serializer=ansys_dot_api_dot_platform_dot_instancemanagement_dot_v1_dot_product__instance__manager__pb2.ListDefinitionsResponse.SerializeToString,
150
+ ),
151
+ 'GetDefinition': grpc.unary_unary_rpc_method_handler(
152
+ servicer.GetDefinition,
153
+ request_deserializer=ansys_dot_api_dot_platform_dot_instancemanagement_dot_v1_dot_product__instance__manager__pb2.GetDefinitionRequest.FromString,
154
+ response_serializer=ansys_dot_api_dot_platform_dot_instancemanagement_dot_v1_dot_product__instance__manager__pb2.Definition.SerializeToString,
155
+ ),
156
+ }
157
+ generic_handler = grpc.method_handlers_generic_handler(
158
+ 'ansys.api.platform.instancemanagement.v1.ProductInstanceManager', rpc_method_handlers)
159
+ server.add_generic_rpc_handlers((generic_handler,))
160
+ server.add_registered_method_handlers('ansys.api.platform.instancemanagement.v1.ProductInstanceManager', rpc_method_handlers)
161
+
162
+
163
+ # This class is part of an EXPERIMENTAL API.
164
+ class ProductInstanceManager(object):
165
+ """Manages the creation and deletion of product instances.
166
+ Note: product instance is the name given to a stateful process starting one or several services.
167
+ """
168
+
169
+ @staticmethod
170
+ def CreateInstance(request,
171
+ target,
172
+ options=(),
173
+ channel_credentials=None,
174
+ call_credentials=None,
175
+ insecure=False,
176
+ compression=None,
177
+ wait_for_ready=None,
178
+ timeout=None,
179
+ metadata=None):
180
+ return grpc.experimental.unary_unary(
181
+ request,
182
+ target,
183
+ '/ansys.api.platform.instancemanagement.v1.ProductInstanceManager/CreateInstance',
184
+ ansys_dot_api_dot_platform_dot_instancemanagement_dot_v1_dot_product__instance__manager__pb2.CreateInstanceRequest.SerializeToString,
185
+ ansys_dot_api_dot_platform_dot_instancemanagement_dot_v1_dot_product__instance__manager__pb2.Instance.FromString,
186
+ options,
187
+ channel_credentials,
188
+ insecure,
189
+ call_credentials,
190
+ compression,
191
+ wait_for_ready,
192
+ timeout,
193
+ metadata,
194
+ _registered_method=True)
195
+
196
+ @staticmethod
197
+ def DeleteInstance(request,
198
+ target,
199
+ options=(),
200
+ channel_credentials=None,
201
+ call_credentials=None,
202
+ insecure=False,
203
+ compression=None,
204
+ wait_for_ready=None,
205
+ timeout=None,
206
+ metadata=None):
207
+ return grpc.experimental.unary_unary(
208
+ request,
209
+ target,
210
+ '/ansys.api.platform.instancemanagement.v1.ProductInstanceManager/DeleteInstance',
211
+ ansys_dot_api_dot_platform_dot_instancemanagement_dot_v1_dot_product__instance__manager__pb2.DeleteInstanceRequest.SerializeToString,
212
+ google_dot_protobuf_dot_empty__pb2.Empty.FromString,
213
+ options,
214
+ channel_credentials,
215
+ insecure,
216
+ call_credentials,
217
+ compression,
218
+ wait_for_ready,
219
+ timeout,
220
+ metadata,
221
+ _registered_method=True)
222
+
223
+ @staticmethod
224
+ def ListInstances(request,
225
+ target,
226
+ options=(),
227
+ channel_credentials=None,
228
+ call_credentials=None,
229
+ insecure=False,
230
+ compression=None,
231
+ wait_for_ready=None,
232
+ timeout=None,
233
+ metadata=None):
234
+ return grpc.experimental.unary_unary(
235
+ request,
236
+ target,
237
+ '/ansys.api.platform.instancemanagement.v1.ProductInstanceManager/ListInstances',
238
+ ansys_dot_api_dot_platform_dot_instancemanagement_dot_v1_dot_product__instance__manager__pb2.ListInstancesRequest.SerializeToString,
239
+ ansys_dot_api_dot_platform_dot_instancemanagement_dot_v1_dot_product__instance__manager__pb2.ListInstancesResponse.FromString,
240
+ options,
241
+ channel_credentials,
242
+ insecure,
243
+ call_credentials,
244
+ compression,
245
+ wait_for_ready,
246
+ timeout,
247
+ metadata,
248
+ _registered_method=True)
249
+
250
+ @staticmethod
251
+ def GetInstance(request,
252
+ target,
253
+ options=(),
254
+ channel_credentials=None,
255
+ call_credentials=None,
256
+ insecure=False,
257
+ compression=None,
258
+ wait_for_ready=None,
259
+ timeout=None,
260
+ metadata=None):
261
+ return grpc.experimental.unary_unary(
262
+ request,
263
+ target,
264
+ '/ansys.api.platform.instancemanagement.v1.ProductInstanceManager/GetInstance',
265
+ ansys_dot_api_dot_platform_dot_instancemanagement_dot_v1_dot_product__instance__manager__pb2.GetInstanceRequest.SerializeToString,
266
+ ansys_dot_api_dot_platform_dot_instancemanagement_dot_v1_dot_product__instance__manager__pb2.Instance.FromString,
267
+ options,
268
+ channel_credentials,
269
+ insecure,
270
+ call_credentials,
271
+ compression,
272
+ wait_for_ready,
273
+ timeout,
274
+ metadata,
275
+ _registered_method=True)
276
+
277
+ @staticmethod
278
+ def ListDefinitions(request,
279
+ target,
280
+ options=(),
281
+ channel_credentials=None,
282
+ call_credentials=None,
283
+ insecure=False,
284
+ compression=None,
285
+ wait_for_ready=None,
286
+ timeout=None,
287
+ metadata=None):
288
+ return grpc.experimental.unary_unary(
289
+ request,
290
+ target,
291
+ '/ansys.api.platform.instancemanagement.v1.ProductInstanceManager/ListDefinitions',
292
+ ansys_dot_api_dot_platform_dot_instancemanagement_dot_v1_dot_product__instance__manager__pb2.ListDefinitionsRequest.SerializeToString,
293
+ ansys_dot_api_dot_platform_dot_instancemanagement_dot_v1_dot_product__instance__manager__pb2.ListDefinitionsResponse.FromString,
294
+ options,
295
+ channel_credentials,
296
+ insecure,
297
+ call_credentials,
298
+ compression,
299
+ wait_for_ready,
300
+ timeout,
301
+ metadata,
302
+ _registered_method=True)
303
+
304
+ @staticmethod
305
+ def GetDefinition(request,
306
+ target,
307
+ options=(),
308
+ channel_credentials=None,
309
+ call_credentials=None,
310
+ insecure=False,
311
+ compression=None,
312
+ wait_for_ready=None,
313
+ timeout=None,
314
+ metadata=None):
315
+ return grpc.experimental.unary_unary(
316
+ request,
317
+ target,
318
+ '/ansys.api.platform.instancemanagement.v1.ProductInstanceManager/GetDefinition',
319
+ ansys_dot_api_dot_platform_dot_instancemanagement_dot_v1_dot_product__instance__manager__pb2.GetDefinitionRequest.SerializeToString,
320
+ ansys_dot_api_dot_platform_dot_instancemanagement_dot_v1_dot_product__instance__manager__pb2.Definition.FromString,
321
+ options,
322
+ channel_credentials,
323
+ insecure,
324
+ call_credentials,
325
+ compression,
326
+ wait_for_ready,
327
+ timeout,
328
+ metadata,
329
+ _registered_method=True)
@@ -0,0 +1,174 @@
1
+ """
2
+ @generated by mypy-protobuf. Do not edit manually!
3
+ isort:skip_file
4
+
5
+ ©2023, ANSYS Inc. Unauthorized use, distribution or duplication is prohibited.
6
+ """
7
+
8
+ import abc
9
+ import ansys.api.platform.instancemanagement.v1.product_instance_manager_pb2
10
+ import collections.abc
11
+ import google.protobuf.empty_pb2
12
+ import grpc
13
+ import grpc.aio
14
+ import typing
15
+
16
+ _T = typing.TypeVar("_T")
17
+
18
+ class _MaybeAsyncIterator(collections.abc.AsyncIterator[_T], collections.abc.Iterator[_T], metaclass=abc.ABCMeta): ...
19
+
20
+ class _ServicerContext(grpc.ServicerContext, grpc.aio.ServicerContext): # type: ignore[misc, type-arg]
21
+ ...
22
+
23
+ class ProductInstanceManagerStub:
24
+ """Manages the creation and deletion of product instances.
25
+ Note: product instance is the name given to a stateful process starting one or several services.
26
+ """
27
+
28
+ def __init__(self, channel: typing.Union[grpc.Channel, grpc.aio.Channel]) -> None: ...
29
+ CreateInstance: grpc.UnaryUnaryMultiCallable[
30
+ ansys.api.platform.instancemanagement.v1.product_instance_manager_pb2.CreateInstanceRequest,
31
+ ansys.api.platform.instancemanagement.v1.product_instance_manager_pb2.Instance,
32
+ ]
33
+ """Creates a new instance of a product."""
34
+
35
+ DeleteInstance: grpc.UnaryUnaryMultiCallable[
36
+ ansys.api.platform.instancemanagement.v1.product_instance_manager_pb2.DeleteInstanceRequest,
37
+ google.protobuf.empty_pb2.Empty,
38
+ ]
39
+ """Removes a running instance of a product."""
40
+
41
+ ListInstances: grpc.UnaryUnaryMultiCallable[
42
+ ansys.api.platform.instancemanagement.v1.product_instance_manager_pb2.ListInstancesRequest,
43
+ ansys.api.platform.instancemanagement.v1.product_instance_manager_pb2.ListInstancesResponse,
44
+ ]
45
+ """Lists all running product instances."""
46
+
47
+ GetInstance: grpc.UnaryUnaryMultiCallable[
48
+ ansys.api.platform.instancemanagement.v1.product_instance_manager_pb2.GetInstanceRequest,
49
+ ansys.api.platform.instancemanagement.v1.product_instance_manager_pb2.Instance,
50
+ ]
51
+ """Gets an instance of a product.
52
+ The caller must check that the instance is ready
53
+ from the return before using it.
54
+ Returns an error if the instance failed
55
+ to start, crashed, or does not exist.
56
+ """
57
+
58
+ ListDefinitions: grpc.UnaryUnaryMultiCallable[
59
+ ansys.api.platform.instancemanagement.v1.product_instance_manager_pb2.ListDefinitionsRequest,
60
+ ansys.api.platform.instancemanagement.v1.product_instance_manager_pb2.ListDefinitionsResponse,
61
+ ]
62
+ """Lists all available products that can be started using this product instance manager."""
63
+
64
+ GetDefinition: grpc.UnaryUnaryMultiCallable[
65
+ ansys.api.platform.instancemanagement.v1.product_instance_manager_pb2.GetDefinitionRequest,
66
+ ansys.api.platform.instancemanagement.v1.product_instance_manager_pb2.Definition,
67
+ ]
68
+ """Gets a product definition."""
69
+
70
+ class ProductInstanceManagerAsyncStub:
71
+ """Manages the creation and deletion of product instances.
72
+ Note: product instance is the name given to a stateful process starting one or several services.
73
+ """
74
+
75
+ CreateInstance: grpc.aio.UnaryUnaryMultiCallable[
76
+ ansys.api.platform.instancemanagement.v1.product_instance_manager_pb2.CreateInstanceRequest,
77
+ ansys.api.platform.instancemanagement.v1.product_instance_manager_pb2.Instance,
78
+ ]
79
+ """Creates a new instance of a product."""
80
+
81
+ DeleteInstance: grpc.aio.UnaryUnaryMultiCallable[
82
+ ansys.api.platform.instancemanagement.v1.product_instance_manager_pb2.DeleteInstanceRequest,
83
+ google.protobuf.empty_pb2.Empty,
84
+ ]
85
+ """Removes a running instance of a product."""
86
+
87
+ ListInstances: grpc.aio.UnaryUnaryMultiCallable[
88
+ ansys.api.platform.instancemanagement.v1.product_instance_manager_pb2.ListInstancesRequest,
89
+ ansys.api.platform.instancemanagement.v1.product_instance_manager_pb2.ListInstancesResponse,
90
+ ]
91
+ """Lists all running product instances."""
92
+
93
+ GetInstance: grpc.aio.UnaryUnaryMultiCallable[
94
+ ansys.api.platform.instancemanagement.v1.product_instance_manager_pb2.GetInstanceRequest,
95
+ ansys.api.platform.instancemanagement.v1.product_instance_manager_pb2.Instance,
96
+ ]
97
+ """Gets an instance of a product.
98
+ The caller must check that the instance is ready
99
+ from the return before using it.
100
+ Returns an error if the instance failed
101
+ to start, crashed, or does not exist.
102
+ """
103
+
104
+ ListDefinitions: grpc.aio.UnaryUnaryMultiCallable[
105
+ ansys.api.platform.instancemanagement.v1.product_instance_manager_pb2.ListDefinitionsRequest,
106
+ ansys.api.platform.instancemanagement.v1.product_instance_manager_pb2.ListDefinitionsResponse,
107
+ ]
108
+ """Lists all available products that can be started using this product instance manager."""
109
+
110
+ GetDefinition: grpc.aio.UnaryUnaryMultiCallable[
111
+ ansys.api.platform.instancemanagement.v1.product_instance_manager_pb2.GetDefinitionRequest,
112
+ ansys.api.platform.instancemanagement.v1.product_instance_manager_pb2.Definition,
113
+ ]
114
+ """Gets a product definition."""
115
+
116
+ class ProductInstanceManagerServicer(metaclass=abc.ABCMeta):
117
+ """Manages the creation and deletion of product instances.
118
+ Note: product instance is the name given to a stateful process starting one or several services.
119
+ """
120
+
121
+ @abc.abstractmethod
122
+ def CreateInstance(
123
+ self,
124
+ request: ansys.api.platform.instancemanagement.v1.product_instance_manager_pb2.CreateInstanceRequest,
125
+ context: _ServicerContext,
126
+ ) -> typing.Union[ansys.api.platform.instancemanagement.v1.product_instance_manager_pb2.Instance, collections.abc.Awaitable[ansys.api.platform.instancemanagement.v1.product_instance_manager_pb2.Instance]]:
127
+ """Creates a new instance of a product."""
128
+
129
+ @abc.abstractmethod
130
+ def DeleteInstance(
131
+ self,
132
+ request: ansys.api.platform.instancemanagement.v1.product_instance_manager_pb2.DeleteInstanceRequest,
133
+ context: _ServicerContext,
134
+ ) -> typing.Union[google.protobuf.empty_pb2.Empty, collections.abc.Awaitable[google.protobuf.empty_pb2.Empty]]:
135
+ """Removes a running instance of a product."""
136
+
137
+ @abc.abstractmethod
138
+ def ListInstances(
139
+ self,
140
+ request: ansys.api.platform.instancemanagement.v1.product_instance_manager_pb2.ListInstancesRequest,
141
+ context: _ServicerContext,
142
+ ) -> typing.Union[ansys.api.platform.instancemanagement.v1.product_instance_manager_pb2.ListInstancesResponse, collections.abc.Awaitable[ansys.api.platform.instancemanagement.v1.product_instance_manager_pb2.ListInstancesResponse]]:
143
+ """Lists all running product instances."""
144
+
145
+ @abc.abstractmethod
146
+ def GetInstance(
147
+ self,
148
+ request: ansys.api.platform.instancemanagement.v1.product_instance_manager_pb2.GetInstanceRequest,
149
+ context: _ServicerContext,
150
+ ) -> typing.Union[ansys.api.platform.instancemanagement.v1.product_instance_manager_pb2.Instance, collections.abc.Awaitable[ansys.api.platform.instancemanagement.v1.product_instance_manager_pb2.Instance]]:
151
+ """Gets an instance of a product.
152
+ The caller must check that the instance is ready
153
+ from the return before using it.
154
+ Returns an error if the instance failed
155
+ to start, crashed, or does not exist.
156
+ """
157
+
158
+ @abc.abstractmethod
159
+ def ListDefinitions(
160
+ self,
161
+ request: ansys.api.platform.instancemanagement.v1.product_instance_manager_pb2.ListDefinitionsRequest,
162
+ context: _ServicerContext,
163
+ ) -> typing.Union[ansys.api.platform.instancemanagement.v1.product_instance_manager_pb2.ListDefinitionsResponse, collections.abc.Awaitable[ansys.api.platform.instancemanagement.v1.product_instance_manager_pb2.ListDefinitionsResponse]]:
164
+ """Lists all available products that can be started using this product instance manager."""
165
+
166
+ @abc.abstractmethod
167
+ def GetDefinition(
168
+ self,
169
+ request: ansys.api.platform.instancemanagement.v1.product_instance_manager_pb2.GetDefinitionRequest,
170
+ context: _ServicerContext,
171
+ ) -> typing.Union[ansys.api.platform.instancemanagement.v1.product_instance_manager_pb2.Definition, collections.abc.Awaitable[ansys.api.platform.instancemanagement.v1.product_instance_manager_pb2.Definition]]:
172
+ """Gets a product definition."""
173
+
174
+ def add_ProductInstanceManagerServicer_to_server(servicer: ProductInstanceManagerServicer, server: typing.Union[grpc.Server, grpc.aio.Server]) -> None: ...
@@ -1,7 +1,7 @@
1
- Metadata-Version: 2.2
1
+ Metadata-Version: 2.4
2
2
  Name: ansys-api-platform-instancemanagement
3
- Version: 1.1.2
4
- Summary: Autogenerated python gRPC interface package for ansys-api-platform-instancemanagement, built on 08:29:41 on 21 January 2025
3
+ Version: 1.1.4
4
+ Summary: Autogenerated python gRPC interface package for ansys-api-platform-instancemanagement, built on 10:46:31 on 07 July 2026
5
5
  Home-page: https://github.com/ansys/ansys-api-platform-instancemanagement
6
6
  Author: ANSYS, Inc.
7
7
  Author-email: pyansys.core@ansys.com
@@ -11,13 +11,14 @@ Description-Content-Type: text/markdown
11
11
  License-File: LICENSE
12
12
  License-File: AUTHORS
13
13
  Requires-Dist: grpcio~=1.17
14
- Requires-Dist: protobuf<6,>=3.19
14
+ Requires-Dist: protobuf>=3.19
15
15
  Dynamic: author
16
16
  Dynamic: author-email
17
17
  Dynamic: description
18
18
  Dynamic: description-content-type
19
19
  Dynamic: home-page
20
20
  Dynamic: license
21
+ Dynamic: license-file
21
22
  Dynamic: requires-dist
22
23
  Dynamic: requires-python
23
24
  Dynamic: summary
@@ -7,6 +7,10 @@ src/ansys/api/platform/instancemanagement/__init__.py
7
7
  src/ansys/api/platform/instancemanagement/_version.py
8
8
  src/ansys/api/platform/instancemanagement/py.typed
9
9
  src/ansys/api/platform/instancemanagement/v1/product_instance_manager.proto
10
+ src/ansys/api/platform/instancemanagement/v1/product_instance_manager_pb2.py
11
+ src/ansys/api/platform/instancemanagement/v1/product_instance_manager_pb2.pyi
12
+ src/ansys/api/platform/instancemanagement/v1/product_instance_manager_pb2_grpc.py
13
+ src/ansys/api/platform/instancemanagement/v1/product_instance_manager_pb2_grpc.pyi
10
14
  src/ansys_api_platform_instancemanagement.egg-info/PKG-INFO
11
15
  src/ansys_api_platform_instancemanagement.egg-info/SOURCES.txt
12
16
  src/ansys_api_platform_instancemanagement.egg-info/dependency_links.txt