Skip to content

Commit 828d747

Browse files
committed
Support optional fields in patch requests (#147)
Co-authored-by: Andy-Grigg <Andy-Grigg@users.noreply.github.com>
1 parent 64fad23 commit 828d747

File tree

636 files changed

+21227
-14824
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

636 files changed

+21227
-14824
lines changed

ansys-grantami-serverapi-openapi/README.md

+2-3
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,11 @@
22

33
Autogenerated client library for the Granta MI Server API.
44

5-
Direct use of this package is unsupported, please use [the PyGranta meta-package](https://grantami.docs.pyansys.com) instead.
5+
Direct use of this package is unsupported. Use [the PyGranta meta-package](https://grantami.docs.pyansys.com) instead.
66

77
This Python package is automatically generated by the [Swagger Codegen](https://github.com/swagger-api/swagger-codegen) project.
88

99

1010
## License
1111

12-
The library is provided under the terms of the MIT license. You can find
13-
the license text in the LICENSE file at the root of the repository.
12+
The library is provided under the terms of the MIT license. The license text is provided in the LICENSE file at the root of the repository.

ansys-grantami-serverapi-openapi/poetry.lock

+5-4
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

ansys-grantami-serverapi-openapi/pyproject.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ packages = [
3232

3333
[tool.poetry.dependencies]
3434
python = "^3.9.0"
35-
ansys-openapi-common = "^1.4.0"
35+
ansys-openapi-common = "^1.5.0"
3636
requests = "^2.26.0"
3737
python-dateutil = "^2.8.2"
3838

ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# flake8: noqa
22

33
# import API ABC
4-
from ansys.openapi.common import ApiBase # type: ignore[import-untyped]
4+
from ansys.openapi.common import ApiBase
55

66
# import apis into api package
77
from .aggregation_api import AggregationApi

ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/aggregation_api.py

+5-5
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
from ..models import *
2727

2828

29-
class AggregationApi(ApiBase): # type: ignore[misc]
29+
class AggregationApi(ApiBase):
3030
"""NOTE: This class is auto generated by the swagger code generator program.
3131
3232
Do not edit the class manually.
@@ -130,7 +130,7 @@ def _database_aggregation_with_http_info(
130130
]
131131
)
132132

133-
response_type_map = {
133+
response_type_map: Dict[int, Optional[str]] = {
134134
200: "GrantaServerApiAggregationsAggregationsResponse",
135135
404: None,
136136
}
@@ -264,7 +264,7 @@ def _database_aggregation_for_table_with_guid_with_http_info(
264264
]
265265
)
266266

267-
response_type_map = {
267+
response_type_map: Dict[int, Optional[str]] = {
268268
200: "GrantaServerApiAggregationsAggregationsResponse",
269269
404: None,
270270
}
@@ -398,7 +398,7 @@ def _database_aggregation_for_table_with_identity_with_http_info(
398398
]
399399
)
400400

401-
response_type_map = {
401+
response_type_map: Dict[int, Optional[str]] = {
402402
200: "GrantaServerApiAggregationsAggregationsResponse",
403403
404: None,
404404
}
@@ -502,7 +502,7 @@ def _integration_aggregation_with_http_info(
502502
]
503503
)
504504

505-
response_type_map = {
505+
response_type_map: Dict[int, Optional[str]] = {
506506
200: "GrantaServerApiAggregationsAggregationsResponse",
507507
404: None,
508508
}

ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/data_api.py

+5-5
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
from ..models import *
2727

2828

29-
class DataApi(ApiBase): # type: ignore[misc]
29+
class DataApi(ApiBase):
3030
"""NOTE: This class is auto generated by the swagger code generator program.
3131
3232
Do not edit the class manually.
@@ -141,7 +141,7 @@ def _get_datum_for_latest_with_http_info(
141141
["application/json"]
142142
)
143143

144-
response_type_map = {
144+
response_type_map: Dict[int, Optional[str]] = {
145145
200: "GrantaServerApiDataDatum",
146146
404: None,
147147
}
@@ -282,7 +282,7 @@ def _get_datum_for_latest_from_table_with_http_info(
282282
["application/json"]
283283
)
284284

285-
response_type_map = {
285+
response_type_map: Dict[int, Optional[str]] = {
286286
200: "GrantaServerApiDataDatum",
287287
404: None,
288288
}
@@ -423,7 +423,7 @@ def _get_datum_for_version_with_http_info(
423423
["application/json"]
424424
)
425425

426-
response_type_map = {
426+
response_type_map: Dict[int, Optional[str]] = {
427427
200: "GrantaServerApiDataDatum",
428428
404: None,
429429
}
@@ -576,7 +576,7 @@ def _get_datum_for_version_from_table_with_http_info(
576576
["application/json"]
577577
)
578578

579-
response_type_map = {
579+
response_type_map: Dict[int, Optional[str]] = {
580580
200: "GrantaServerApiDataDatum",
581581
404: None,
582582
}

ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/data_export_api.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
from ..models import *
2727

2828

29-
class DataExportApi(ApiBase): # type: ignore[misc]
29+
class DataExportApi(ApiBase):
3030
"""NOTE: This class is auto generated by the swagger code generator program.
3131
3232
Do not edit the class manually.
@@ -130,7 +130,7 @@ def _export_data_with_http_info(
130130
]
131131
)
132132

133-
response_type_map = {
133+
response_type_map: Dict[int, Optional[str]] = {
134134
200: "GrantaServerApiDataExportDataExportResponse",
135135
404: None,
136136
403: None,
@@ -235,7 +235,7 @@ def _export_data_from_integration_schema_with_http_info(
235235
]
236236
)
237237

238-
response_type_map = {
238+
response_type_map: Dict[int, Optional[str]] = {
239239
200: "GrantaServerApiDataExportDataExportResponse",
240240
404: None,
241241
}

ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/database_api.py

+10-10
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
from ..models import *
2727

2828

29-
class DatabaseApi(ApiBase): # type: ignore[misc]
29+
class DatabaseApi(ApiBase):
3030
"""NOTE: This class is auto generated by the swagger code generator program.
3131
3232
Do not edit the class manually.
@@ -118,7 +118,7 @@ def _generate_schema_from_layout_with_http_info(
118118
["text/plain", "application/json", "text/json"]
119119
)
120120

121-
response_type_map = {
121+
response_type_map: Dict[int, Optional[str]] = {
122122
200: "GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyIntegrationSchemaOfGrantaServerApiObjectIdentifier",
123123
403: None,
124124
404: None,
@@ -225,7 +225,7 @@ def _generate_schema_from_layout_name_with_http_info(
225225
["text/plain", "application/json", "text/json"]
226226
)
227227

228-
response_type_map = {
228+
response_type_map: Dict[int, Optional[str]] = {
229229
200: "GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyIntegrationSchemaOfGrantaServerApiObjectIdentifier",
230230
403: None,
231231
404: None,
@@ -328,7 +328,7 @@ def _generate_schema_from_layout_name_with_table_name_with_http_info(
328328
["text/plain", "application/json", "text/json"]
329329
)
330330

331-
response_type_map = {
331+
response_type_map: Dict[int, Optional[str]] = {
332332
200: "GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyIntegrationSchemaOfGrantaServerApiObjectIdentifier",
333333
403: None,
334334
404: None,
@@ -435,7 +435,7 @@ def _generate_schema_from_layout_with_table_name_with_http_info(
435435
["text/plain", "application/json", "text/json"]
436436
)
437437

438-
response_type_map = {
438+
response_type_map: Dict[int, Optional[str]] = {
439439
200: "GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyIntegrationSchemaOfGrantaServerApiObjectIdentifier",
440440
403: None,
441441
404: None,
@@ -534,7 +534,7 @@ def _generate_schema_from_standard_names_with_http_info(
534534
]
535535
)
536536

537-
response_type_map = {
537+
response_type_map: Dict[int, Optional[str]] = {
538538
200: "GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyIntegrationSchemaOfGrantaServerApiObjectIdentifier",
539539
403: None,
540540
404: None,
@@ -624,7 +624,7 @@ def _generate_schema_from_standard_names_all_databases_with_http_info(
624624
]
625625
)
626626

627-
response_type_map = {
627+
response_type_map: Dict[int, Optional[str]] = {
628628
200: "GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyIntegrationSchemaOfGrantaServerApiObjectIdentifier",
629629
403: None,
630630
404: None,
@@ -718,7 +718,7 @@ def _generate_schema_from_table_with_http_info(
718718
["text/plain", "application/json", "text/json"]
719719
)
720720

721-
response_type_map = {
721+
response_type_map: Dict[int, Optional[str]] = {
722722
200: "GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyIntegrationSchemaOfGrantaServerApiObjectIdentifier",
723723
403: None,
724724
404: None,
@@ -812,7 +812,7 @@ def _generate_schema_from_table_name_with_http_info(
812812
["text/plain", "application/json", "text/json"]
813813
)
814814

815-
response_type_map = {
815+
response_type_map: Dict[int, Optional[str]] = {
816816
200: "GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyIntegrationSchemaOfGrantaServerApiObjectIdentifier",
817817
403: None,
818818
404: None,
@@ -904,7 +904,7 @@ def _get_status_with_http_info(
904904
["text/plain", "application/json", "text/json"]
905905
)
906906

907-
response_type_map = {
907+
response_type_map: Dict[int, Optional[str]] = {
908908
200: "GrantaServerApiSearchIndexStatus",
909909
403: None,
910910
404: None,

ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/integration_api.py

+10-10
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
from ..models import *
2727

2828

29-
class IntegrationApi(ApiBase): # type: ignore[misc]
29+
class IntegrationApi(ApiBase):
3030
"""NOTE: This class is auto generated by the swagger code generator program.
3131
3232
Do not edit the class manually.
@@ -103,7 +103,7 @@ def _add_schema_with_http_info(
103103
]
104104
)
105105

106-
response_type_map = {
106+
response_type_map: Dict[int, Optional[str]] = {
107107
201: "GrantaServerApiIntegrationSchemaIntegrationSchemaOfGrantaServerApiObjectIdentifier",
108108
400: None,
109109
403: None,
@@ -183,7 +183,7 @@ def _all_schema_status_with_http_info(
183183
["text/plain", "application/json", "text/json"]
184184
)
185185

186-
response_type_map = {
186+
response_type_map: Dict[int, Optional[str]] = {
187187
200: "dict(str, GrantaServerApiIntegrationIntegrationSchemaStatus)",
188188
}
189189

@@ -257,7 +257,7 @@ def _delete_schema_with_http_info(self, schema: "str", **kwargs: Any) -> Any:
257257

258258
body_params = None
259259

260-
response_type_map = {
260+
response_type_map: Dict[int, Optional[str]] = {
261261
204: None,
262262
403: None,
263263
404: None,
@@ -356,7 +356,7 @@ def _get_schema_with_http_info(
356356
["text/plain", "application/json", "text/json"]
357357
)
358358

359-
response_type_map = {
359+
response_type_map: Dict[int, Optional[str]] = {
360360
200: "GrantaServerApiIntegrationSchemaIntegrationSchemaOfGrantaServerApiObjectIdentifier",
361361
404: None,
362362
}
@@ -444,7 +444,7 @@ def _get_status_for_integration_schema_with_http_info(
444444
["text/plain", "application/json", "text/json"]
445445
)
446446

447-
response_type_map = {
447+
response_type_map: Dict[int, Optional[str]] = {
448448
200: "GrantaServerApiIntegrationIntegrationSchemaStatus",
449449
}
450450

@@ -545,7 +545,7 @@ def _schema_table_mappings_with_http_info(
545545
["text/plain", "application/json", "text/json"]
546546
)
547547

548-
response_type_map = {
548+
response_type_map: Dict[int, Optional[str]] = {
549549
200: "list[GrantaServerApiIntegrationSchemaSourceOfGrantaServerApiObjectIdentifier]",
550550
404: None,
551551
}
@@ -643,7 +643,7 @@ def _schema_targets_with_http_info(
643643
["text/plain", "application/json", "text/json"]
644644
)
645645

646-
response_type_map = {
646+
response_type_map: Dict[int, Optional[str]] = {
647647
200: "list[GrantaServerApiIntegrationSchemaAttribute]",
648648
404: None,
649649
}
@@ -705,7 +705,7 @@ def _schemas_with_http_info(self, **kwargs: Any) -> Any:
705705
["text/plain", "application/json", "text/json"]
706706
)
707707

708-
response_type_map = {
708+
response_type_map: Dict[int, Optional[str]] = {
709709
200: "list[str]",
710710
}
711711

@@ -808,7 +808,7 @@ def _update_schema_with_http_info(
808808
]
809809
)
810810

811-
response_type_map = {
811+
response_type_map: Dict[int, Optional[str]] = {
812812
201: "GrantaServerApiIntegrationSchemaIntegrationSchemaOfGrantaServerApiObjectIdentifier",
813813
400: None,
814814
403: None,

0 commit comments

Comments
 (0)