44@dataclass
55class CloudResourceAttribute :
66 """Class for configuring Cloud Resource Attributes"""
7+
78 name : str
8- type : str = ' Text'
9+ type : str = " Text"
910
1011
1112@dataclass
1213class CloudAllocationAttribute :
1314 """Class for configuring Cloud Allocation Attributes"""
15+
1416 name : str
15- type : str = ' Int'
17+ type : str = " Int"
1618 has_usage : bool = False
1719 is_private : bool = False
1820 is_changeable : bool = True
1921
2022
21- RESOURCE_AUTH_URL = ' Identity Endpoint URL'
22- RESOURCE_API_URL = ' OpenShift API Endpoint URL'
23- RESOURCE_IDENTITY_NAME = ' OpenShift Identity Provider Name'
24- RESOURCE_ROLE = ' Role for User in Project'
23+ RESOURCE_AUTH_URL = " Identity Endpoint URL"
24+ RESOURCE_API_URL = " OpenShift API Endpoint URL"
25+ RESOURCE_IDENTITY_NAME = " OpenShift Identity Provider Name"
26+ RESOURCE_ROLE = " Role for User in Project"
2527
26- RESOURCE_FEDERATION_PROTOCOL = ' OpenStack Federation Protocol'
27- RESOURCE_IDP = ' OpenStack Identity Provider'
28- RESOURCE_PROJECT_DOMAIN = ' OpenStack Domain for Projects'
29- RESOURCE_USER_DOMAIN = ' OpenStack Domain for Users'
30- RESOURCE_DEFAULT_PUBLIC_NETWORK = ' OpenStack Public Network ID'
31- RESOURCE_DEFAULT_NETWORK_CIDR = ' OpenStack Default Network CIDR'
28+ RESOURCE_FEDERATION_PROTOCOL = " OpenStack Federation Protocol"
29+ RESOURCE_IDP = " OpenStack Identity Provider"
30+ RESOURCE_PROJECT_DOMAIN = " OpenStack Domain for Projects"
31+ RESOURCE_USER_DOMAIN = " OpenStack Domain for Users"
32+ RESOURCE_DEFAULT_PUBLIC_NETWORK = " OpenStack Public Network ID"
33+ RESOURCE_DEFAULT_NETWORK_CIDR = " OpenStack Default Network CIDR"
3234
3335RESOURCE_EULA_URL = "EULA URL"
3436
@@ -47,55 +49,49 @@ class CloudAllocationAttribute:
4749]
4850
4951# TODO: Migration to rename the OpenStack specific prefix out of these attrs
50- ALLOCATION_PROJECT_ID = ' Allocated Project ID'
51- ALLOCATION_PROJECT_NAME = ' Allocated Project Name'
52- ALLOCATION_INSTITUTION_SPECIFIC_CODE = ' Institution-Specific Code'
52+ ALLOCATION_PROJECT_ID = " Allocated Project ID"
53+ ALLOCATION_PROJECT_NAME = " Allocated Project Name"
54+ ALLOCATION_INSTITUTION_SPECIFIC_CODE = " Institution-Specific Code"
5355
5456ALLOCATION_ATTRIBUTES = [
5557 CloudAllocationAttribute (
56- name = ALLOCATION_PROJECT_ID ,
57- type = 'Text' ,
58- is_changeable = False
58+ name = ALLOCATION_PROJECT_ID , type = "Text" , is_changeable = False
5959 ),
6060 CloudAllocationAttribute (
61- name = ALLOCATION_PROJECT_NAME ,
62- type = 'Text' ,
63- is_changeable = False
61+ name = ALLOCATION_PROJECT_NAME , type = "Text" , is_changeable = False
6462 ),
6563 CloudAllocationAttribute (
66- name = ALLOCATION_INSTITUTION_SPECIFIC_CODE ,
67- type = 'Text' ,
68- is_changeable = True
64+ name = ALLOCATION_INSTITUTION_SPECIFIC_CODE , type = "Text" , is_changeable = True
6965 ),
7066]
7167
7268###########################################################
7369# OpenStack Quota Attributes
74- QUOTA_INSTANCES = ' OpenStack Compute Instance Quota'
75- QUOTA_RAM = ' OpenStack Compute RAM Quota (MiB)'
76- QUOTA_VCPU = ' OpenStack Compute vCPU Quota'
70+ QUOTA_INSTANCES = " OpenStack Compute Instance Quota"
71+ QUOTA_RAM = " OpenStack Compute RAM Quota (MiB)"
72+ QUOTA_VCPU = " OpenStack Compute vCPU Quota"
7773
78- QUOTA_VOLUMES = ' OpenStack Number of Volumes Quota'
79- QUOTA_VOLUMES_GB = ' OpenStack Volume Quota (GiB)'
74+ QUOTA_VOLUMES = " OpenStack Number of Volumes Quota"
75+ QUOTA_VOLUMES_GB = " OpenStack Volume Quota (GiB)"
8076
81- QUOTA_FLOATING_IPS = ' OpenStack Floating IP Quota'
82- QUOTA_NETWORKS = ' Openstack Network Quota'
77+ QUOTA_FLOATING_IPS = " OpenStack Floating IP Quota"
78+ QUOTA_NETWORKS = " Openstack Network Quota"
8379
84- QUOTA_OBJECT_GB = ' OpenStack Swift Quota (GiB)'
80+ QUOTA_OBJECT_GB = " OpenStack Swift Quota (GiB)"
8581
86- QUOTA_GPU = ' OpenStack GPU Quota'
82+ QUOTA_GPU = " OpenStack GPU Quota"
8783
8884###########################################################
8985# OpenShift Quota Attributes
90- QUOTA_LIMITS_CPU = ' OpenShift Limit on CPU Quota'
91- QUOTA_LIMITS_MEMORY = ' OpenShift Limit on RAM Quota (MiB)'
92- QUOTA_LIMITS_EPHEMERAL_STORAGE_GB = ' OpenShift Limit on Ephemeral Storage Quota (GiB)'
93- QUOTA_REQUESTS_STORAGE = ' OpenShift Request on Storage Quota (GiB)'
94- QUOTA_REQUESTS_GPU = ' OpenShift Request on GPU Quota'
95- QUOTA_REQUESTS_VM_GPU_A100_SXM4 = ' OpenShift Request on GPU A100 SXM4'
96- QUOTA_REQUESTS_VM_GPU_V100 = ' OpenShift Request on GPU V100'
97- QUOTA_REQUESTS_VM_GPU_H100 = ' OpenShift Request on GPU H100'
98- QUOTA_PVC = ' OpenShift Persistent Volume Claims Quota'
86+ QUOTA_LIMITS_CPU = " OpenShift Limit on CPU Quota"
87+ QUOTA_LIMITS_MEMORY = " OpenShift Limit on RAM Quota (MiB)"
88+ QUOTA_LIMITS_EPHEMERAL_STORAGE_GB = " OpenShift Limit on Ephemeral Storage Quota (GiB)"
89+ QUOTA_REQUESTS_STORAGE = " OpenShift Request on Storage Quota (GiB)"
90+ QUOTA_REQUESTS_GPU = " OpenShift Request on GPU Quota"
91+ QUOTA_REQUESTS_VM_GPU_A100_SXM4 = " OpenShift Request on GPU A100 SXM4"
92+ QUOTA_REQUESTS_VM_GPU_V100 = " OpenShift Request on GPU V100"
93+ QUOTA_REQUESTS_VM_GPU_H100 = " OpenShift Request on GPU H100"
94+ QUOTA_PVC = " OpenShift Persistent Volume Claims Quota"
9995
10096
10197ALLOCATION_QUOTA_ATTRIBUTES = [
0 commit comments