| Dario Faccin | 989602b | 2023-06-20 16:12:29 +0200 | [diff] [blame] | 1 | ####################################################################################### |
| 2 | # Copyright ETSI Contributors and Others. |
| 3 | # |
| 4 | # Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | # you may not use this file except in compliance with the License. |
| 6 | # You may obtain a copy of the License at |
| 7 | # |
| 8 | # http://www.apache.org/licenses/LICENSE-2.0 |
| 9 | # |
| 10 | # Unless required by applicable law or agreed to in writing, software |
| 11 | # distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or |
| 13 | # implied. |
| 14 | # See the License for the specific language governing permissions and |
| 15 | # limitations under the License. |
| 16 | ####################################################################################### |
| 17 | |
| 18 | from dataclasses import dataclass |
| 19 | |
| 20 | |
| 21 | @dataclass |
| 22 | class CharmInfo: |
| 23 | """ |
| 24 | Input dataclass for |
| 25 | |
| 26 | Attributes: |
| 27 | ----------- |
| 28 | app_name : str |
| 29 | |
| 30 | channel: str |
| 31 | |
| 32 | entity_url: str |
| 33 | """ |
| 34 | |
| 35 | app_name: str |
| 36 | channel: str |
| 37 | entity_url: str |
| 38 | |
| 39 | |
| 40 | @dataclass |
| 41 | class VduComputeConstraints: |
| 42 | """ |
| 43 | Input dataclass for VDU constraints |
| 44 | |
| 45 | Attributes: |
| 46 | ----------- |
| 47 | cores : int (Number of virtual CPUs) |
| 48 | |
| 49 | mem: int (GB) |
| 50 | """ |
| 51 | |
| 52 | cores: int |
| 53 | mem: int |