Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit a2d6c04

Browse files
FedericoNegrigithub-actions[bot]
authored andcommittedMay 23, 2025·
[create-pull-request] automated change
1 parent 14f910c commit a2d6c04

File tree

9 files changed

+80
-123
lines changed

9 files changed

+80
-123
lines changed
 

‎src/ansys/hps/data_transfer/client/models/__init__.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright (C) 2022 - 2025 ANSYS, Inc. and/or its affiliates.
1+
# Copyright (C) 2025 ANSYS, Inc. and/or its affiliates.
22
# SPDX-License-Identifier: MIT
33
#
44
#
@@ -20,14 +20,12 @@
2020
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
2121
# SOFTWARE.
2222

23-
"""PyHPS data transfer models subpackage."""
23+
# generated by datamodel-codegen
2424

2525
from __future__ import annotations
2626

2727
from pydantic import BaseModel, Field
2828

2929

3030
class FieldCompatBucketNameFileNamePostRequest(BaseModel):
31-
"""Provides the post operation request schema for field compatibility of the bucket name and file name."""
32-
3331
file: bytes = Field(..., description="File")

‎src/ansys/hps/data_transfer/client/models/common.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright (C) 2022 - 2025 ANSYS, Inc. and/or its affiliates.
1+
# Copyright (C) 2025 ANSYS, Inc. and/or its affiliates.
22
# SPDX-License-Identifier: MIT
33
#
44
#
@@ -21,18 +21,17 @@
2121
# SOFTWARE.
2222

2323
# generated by datamodel-codegen
24-
"""Provides the user information schema for the current user."""
2524

2625
from __future__ import annotations
2726

2827
from pydantic import BaseModel
2928

3029

3130
class UserInfo(BaseModel):
32-
"""Provides the user information schema for the current user."""
33-
31+
account_id: str | None = None
3432
groups: list[str] | None = None
3533
id: str | None = None
3634
is_admin: bool | None = None
3735
roles: list[str] | None = None
36+
service_admin: bool | None = None
3837
username: str | None = None

‎src/ansys/hps/data_transfer/client/models/core.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright (C) 2022 - 2025 ANSYS, Inc. and/or its affiliates.
1+
# Copyright (C) 2025 ANSYS, Inc. and/or its affiliates.
22
# SPDX-License-Identifier: MIT
33
#
44
#
@@ -19,14 +19,13 @@
1919
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
2020
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
2121
# SOFTWARE.
22-
"""Provides the error response schema."""
22+
23+
# generated by datamodel-codegen
2324

2425
from __future__ import annotations
2526

2627
from pydantic import BaseModel
2728

2829

2930
class ErrorResponse(BaseModel):
30-
"""Provides the error response schema."""
31-
3231
error: str | None = "something bad happened"

‎src/ansys/hps/data_transfer/client/models/metadata.py

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright (C) 2022 - 2025 ANSYS, Inc. and/or its affiliates.
1+
# Copyright (C) 2025 ANSYS, Inc. and/or its affiliates.
22
# SPDX-License-Identifier: MIT
33
#
44
#
@@ -21,29 +21,22 @@
2121
# SOFTWARE.
2222

2323
# generated by datamodel-codegen
24-
"""Provides schemas for one or more data assignments and for a data transfer source and destination."""
2524

2625
from __future__ import annotations
2726

28-
from typing import Any
27+
from typing import Any, Optional
2928

3029
from pydantic import BaseModel, RootModel
3130

3231

3332
class DataAssignment(BaseModel):
34-
"""Provides the data assignment schema for a single data assignment."""
35-
3633
custom: dict[str, Any] | None = None
3734

3835

39-
class DataAssignments(RootModel[dict[str, DataAssignment] | None]):
40-
"""Provides the data assignments schema for a collection of data assignments."""
41-
36+
class DataAssignments(RootModel[Optional[dict[str, DataAssignment]]]): # noqa: UP007
4237
root: dict[str, DataAssignment] | None = None
4338

4439

4540
class SrcDst(BaseModel):
46-
"""Provides the source and destination schema for a data transfer."""
47-
4841
dst: str
4942
src: str
Lines changed: 40 additions & 67 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright (C) 2022 - 2025 ANSYS, Inc. and/or its affiliates.
1+
# Copyright (C) 2025 ANSYS, Inc. and/or its affiliates.
22
# SPDX-License-Identifier: MIT
33
#
44
#
@@ -21,22 +21,28 @@
2121
# SOFTWARE.
2222

2323
# generated by datamodel-codegen
24-
"""Provides the build information schema and response schemas for other data transfer operations."""
2524

2625
from __future__ import annotations
2726

2827
from typing import Any
2928

3029
from pydantic import BaseModel
3130

32-
from . import metadata, ops
31+
from . import metadata as metadata_1, ops, permissions as permissions_1
3332

3433

35-
class BuildInfo(BaseModel):
36-
"""Provides the build information schema for the current build."""
34+
class BinaryInfo(BaseModel):
35+
name: str | None = None
36+
platform: str | None = None
37+
type: str | None = None
38+
3739

40+
class BuildInfo(BaseModel):
41+
architecture: str | None = None
3842
branch: str | None = None
43+
go_version: str | None = None
3944
mode: str | None = None
45+
operating_system: str | None = None
4046
revision: str | None = None
4147
short_revision: str | None = None
4248
timestamp: str | None = None
@@ -45,146 +51,113 @@ class BuildInfo(BaseModel):
4551

4652

4753
class CheckPermissionsResponse(BaseModel):
48-
"""Check the permissions response schema for the current user."""
49-
5054
allowed: bool | None = None
5155

5256

5357
class CopyMetadataRequest(BaseModel):
54-
"""Provides the request schema for copying metadata."""
55-
5658
recursive: bool | None = None
57-
src_dst: list[metadata.SrcDst]
59+
src_dst: list[metadata_1.SrcDst]
5860

5961

60-
class FileDownloadTokenResponse(BaseModel):
61-
"""Provides the token response schema for for downloading a file."""
62+
class Features(BaseModel):
63+
auth_types: list[str] | None = None
64+
metadata_plugins: list[str] | None = None
65+
operation_plugins: list[str] | None = None
66+
permissions_plugins: list[str] | None = None
67+
storage_plugins: list[str] | None = None
68+
6269

70+
class FileDownloadTokenResponse(BaseModel):
6371
token: str | None = None
6472

6573

6674
class GetMetadataRequest(BaseModel):
67-
"""Provides the request schema for getting metadata."""
68-
6975
paths: list[str] | None = None
7076

7177

72-
class MetadataConfigResponse(BaseModel):
73-
"""Provides the response schema for metadata configuration for the current user."""
74-
75-
config: dict[str, Any] | None = None
76-
77-
7878
class MoveMetadataRequest(BaseModel):
79-
"""Provides the request schema for moving metadata."""
80-
8179
recursive: bool | None = None
82-
src_dst: list[metadata.SrcDst]
80+
src_dst: list[metadata_1.SrcDst]
8381

8482

8583
class OpIdResponse(BaseModel):
86-
"""Provides the response schema for an operation ID."""
87-
8884
id: str | None = "2diK2kCkpgeHAQSNthIZ1JYyPte"
8985
location: str | None = "/api/v1/operations/2diK2kCkpgeHAQSNthIZ1JYyPte"
9086

9187

9288
class OpsRequest(BaseModel):
93-
"""Provides the request schema for operations."""
94-
9589
ids: list[str]
9690

9791

98-
class PermissionsConfigResponse(BaseModel):
99-
"""Provides the response schema for permissions configuration for the current user."""
100-
101-
config: dict[str, Any] | None = None
102-
103-
10492
class RemoveMetadataRequest(BaseModel):
105-
"""Provides the request schema for removing metadata."""
106-
10793
paths: list[str]
10894
recursive: bool | None = None
10995

11096

11197
class SetMetadataRequest(BaseModel):
112-
"""Provides the request schema for setting metadata."""
113-
114-
metadata: metadata.DataAssignments
98+
metadata: metadata_1.DataAssignments
11599

116100

117101
class Status(BaseModel):
118-
"""Provides the request schema for getting the build status."""
119-
120102
build_info: BuildInfo | None = None
103+
features: Features | None = None
121104
ready: bool | None = None
122105
time: str | None = None
123106

124107

125108
class StorageConfigResponse(BaseModel):
126-
"""Provides the response schema for storage configuration for the current user."""
127-
128109
storage: list[dict[str, Any]] | None = None
129110

130111

131112
class StoragePath(BaseModel):
132-
"""Provides the schema for a storage path with a remote."""
133-
134113
path: str
135114
remote: str | None = "any"
136115

137116

138-
class PathOperations(BaseModel):
139-
"""Provides the schema for path operations for a list of storage paths."""
117+
class WorkerConfigResponse(BaseModel):
118+
auth: dict[str, Any] | None = None
119+
metadata: dict[str, Any] | None = None
120+
permissions: dict[str, Any] | None = None
121+
storage: list[dict[str, Any]] | None = None
122+
user_id: str | None = None
123+
124+
125+
class Binaries(BaseModel):
126+
available: list[BinaryInfo] | None = None
127+
140128

129+
class PathOperations(BaseModel):
141130
operations: list[StoragePath]
142131

143132

144133
class SrcDst(BaseModel):
145-
"""Provides the schema for a source destination and destination storage path pair."""
146-
147134
dst: StoragePath
148135
src: StoragePath
149136

150137

151138
class SrcDstOperations(BaseModel):
152-
"""Provides the schema for source destination operations for a list of source and destination storage path pairs."""
153-
154139
operations: list[SrcDst]
155140

156141

157142
class OpsResponse(BaseModel):
158-
"""Provides the response schema for a list of operations."""
159-
160143
operations: list[ops.Operation] | None = None
161144

162145

163146
class CheckPermissionsRequest(BaseModel):
164-
"""Provides the request schema for checking permissions for the current user."""
165-
166-
permissions: list[perms.RoleAssignment] | None = None
147+
permissions: list[permissions_1.RoleAssignment] | None = None
167148

168149

169150
class GetPermissionsRequest(BaseModel):
170-
"""Provides the request schema for getting permissions for the current user."""
171-
172-
permissions: list[perms.RoleQuery] | None = None
151+
permissions: list[permissions_1.RoleQuery] | None = None
173152

174153

175154
class GetPermissionsResponse(BaseModel):
176-
"""Provides the response schema for getting permissions for the current user."""
177-
178-
permissions: list[perms.RoleAssignment] | None = None
155+
permissions: list[permissions_1.RoleAssignment] | None = None
179156

180157

181158
class RemovePermissionsRequest(BaseModel):
182-
"""Provides the request schema for removing permissions for the current user."""
183-
184-
permissions: list[perms.RoleAssignment] | None = None
159+
permissions: list[permissions_1.RoleAssignment] | None = None
185160

186161

187162
class SetPermissionsRequest(BaseModel):
188-
"""Provides the request schema for setting permissions for the current user."""
189-
190-
permissions: list[perms.RoleAssignment] | None = None
163+
permissions: list[permissions_1.RoleAssignment] | None = None

‎src/ansys/hps/data_transfer/client/models/ops.py

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright (C) 2022 - 2025 ANSYS, Inc. and/or its affiliates.
1+
# Copyright (C) 2025 ANSYS, Inc. and/or its affiliates.
22
# SPDX-License-Identifier: MIT
33
#
44
#
@@ -21,7 +21,6 @@
2121
# SOFTWARE.
2222

2323
# generated by datamodel-codegen
24-
"""Provides the schemas for the operation state and operation."""
2524

2625
from __future__ import annotations
2726

@@ -32,8 +31,6 @@
3231

3332

3433
class OperationState(Enum):
35-
"""State of an operation."""
36-
3734
Unknown = "unknown"
3835
Queued = "queued"
3936
Running = "running"
@@ -42,8 +39,6 @@ class OperationState(Enum):
4239

4340

4441
class Operation(BaseModel):
45-
"""Provides the schema for a single operation in the system."""
46-
4742
children: list[str] | None = None
4843
description: str | None = None
4944
ended_at: str | None = None
@@ -54,6 +49,7 @@ class Operation(BaseModel):
5449
progress_current: int | None = None
5550
progress_total: int | None = None
5651
queued_at: str | None = None
52+
rate: str | None = None
5753
result: Any | None = None
5854
started_at: str | None = None
5955
state: OperationState | None = None
There was a problem loading the remainder of the diff.

0 commit comments

Comments
 (0)
Please sign in to comment.