Skip to content

Commit 29a42fc

Browse files
committed
fix computed type
1 parent 49ca44e commit 29a42fc

File tree

6 files changed

+162
-162
lines changed

6 files changed

+162
-162
lines changed

cloudtower/models/cluster.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -107,9 +107,9 @@ class Cluster(object):
107107
'total_memory_bytes': 'int',
108108
'type': 'ClusterType',
109109
'upgrade_tool_version': 'str',
110-
'used_cpu_hz': 'int',
110+
'used_cpu_hz': 'float',
111111
'used_data_space': 'int',
112-
'used_memory_bytes': 'int',
112+
'used_memory_bytes': 'float',
113113
'valid_data_space': 'int',
114114
'vcenter_account': 'NestedVcenterAccount',
115115
'vdses': 'list[NestedVds]',
@@ -1916,7 +1916,7 @@ def used_cpu_hz(self):
19161916
19171917
19181918
:return: The used_cpu_hz of this Cluster. # noqa: E501
1919-
:rtype: int
1919+
:rtype: float
19201920
"""
19211921
return self._used_cpu_hz
19221922

@@ -1926,7 +1926,7 @@ def used_cpu_hz(self, used_cpu_hz):
19261926
19271927
19281928
:param used_cpu_hz: The used_cpu_hz of this Cluster. # noqa: E501
1929-
:type used_cpu_hz: int
1929+
:type used_cpu_hz: float
19301930
"""
19311931

19321932
self._used_cpu_hz = used_cpu_hz
@@ -1958,7 +1958,7 @@ def used_memory_bytes(self):
19581958
19591959
19601960
:return: The used_memory_bytes of this Cluster. # noqa: E501
1961-
:rtype: int
1961+
:rtype: float
19621962
"""
19631963
return self._used_memory_bytes
19641964

@@ -1968,7 +1968,7 @@ def used_memory_bytes(self, used_memory_bytes):
19681968
19691969
19701970
:param used_memory_bytes: The used_memory_bytes of this Cluster. # noqa: E501
1971-
:type used_memory_bytes: int
1971+
:type used_memory_bytes: float
19721972
"""
19731973

19741974
self._used_memory_bytes = used_memory_bytes

cloudtower/models/cluster_where_input.py

Lines changed: 48 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -510,14 +510,14 @@ class ClusterWhereInput(object):
510510
'upgrade_tool_version_not_in': 'list[str]',
511511
'upgrade_tool_version_not_starts_with': 'str',
512512
'upgrade_tool_version_starts_with': 'str',
513-
'used_cpu_hz': 'int',
514-
'used_cpu_hz_gt': 'int',
515-
'used_cpu_hz_gte': 'int',
516-
'used_cpu_hz_in': 'list[int]',
517-
'used_cpu_hz_lt': 'int',
518-
'used_cpu_hz_lte': 'int',
519-
'used_cpu_hz_not': 'int',
520-
'used_cpu_hz_not_in': 'list[int]',
513+
'used_cpu_hz': 'float',
514+
'used_cpu_hz_gt': 'float',
515+
'used_cpu_hz_gte': 'float',
516+
'used_cpu_hz_in': 'list[float]',
517+
'used_cpu_hz_lt': 'float',
518+
'used_cpu_hz_lte': 'float',
519+
'used_cpu_hz_not': 'float',
520+
'used_cpu_hz_not_in': 'list[float]',
521521
'used_data_space': 'int',
522522
'used_data_space_gt': 'int',
523523
'used_data_space_gte': 'int',
@@ -526,14 +526,14 @@ class ClusterWhereInput(object):
526526
'used_data_space_lte': 'int',
527527
'used_data_space_not': 'int',
528528
'used_data_space_not_in': 'list[int]',
529-
'used_memory_bytes': 'int',
530-
'used_memory_bytes_gt': 'int',
531-
'used_memory_bytes_gte': 'int',
532-
'used_memory_bytes_in': 'list[int]',
533-
'used_memory_bytes_lt': 'int',
534-
'used_memory_bytes_lte': 'int',
535-
'used_memory_bytes_not': 'int',
536-
'used_memory_bytes_not_in': 'list[int]',
529+
'used_memory_bytes': 'float',
530+
'used_memory_bytes_gt': 'float',
531+
'used_memory_bytes_gte': 'float',
532+
'used_memory_bytes_in': 'list[float]',
533+
'used_memory_bytes_lt': 'float',
534+
'used_memory_bytes_lte': 'float',
535+
'used_memory_bytes_not': 'float',
536+
'used_memory_bytes_not_in': 'list[float]',
537537
'valid_data_space': 'int',
538538
'valid_data_space_gt': 'int',
539539
'valid_data_space_gte': 'int',
@@ -12196,7 +12196,7 @@ def used_cpu_hz(self):
1219612196
1219712197
1219812198
:return: The used_cpu_hz of this ClusterWhereInput. # noqa: E501
12199-
:rtype: int
12199+
:rtype: float
1220012200
"""
1220112201
return self._used_cpu_hz
1220212202

@@ -12206,7 +12206,7 @@ def used_cpu_hz(self, used_cpu_hz):
1220612206
1220712207
1220812208
:param used_cpu_hz: The used_cpu_hz of this ClusterWhereInput. # noqa: E501
12209-
:type used_cpu_hz: int
12209+
:type used_cpu_hz: float
1221012210
"""
1221112211

1221212212
self._used_cpu_hz = used_cpu_hz
@@ -12217,7 +12217,7 @@ def used_cpu_hz_gt(self):
1221712217
1221812218
1221912219
:return: The used_cpu_hz_gt of this ClusterWhereInput. # noqa: E501
12220-
:rtype: int
12220+
:rtype: float
1222112221
"""
1222212222
return self._used_cpu_hz_gt
1222312223

@@ -12227,7 +12227,7 @@ def used_cpu_hz_gt(self, used_cpu_hz_gt):
1222712227
1222812228
1222912229
:param used_cpu_hz_gt: The used_cpu_hz_gt of this ClusterWhereInput. # noqa: E501
12230-
:type used_cpu_hz_gt: int
12230+
:type used_cpu_hz_gt: float
1223112231
"""
1223212232

1223312233
self._used_cpu_hz_gt = used_cpu_hz_gt
@@ -12238,7 +12238,7 @@ def used_cpu_hz_gte(self):
1223812238
1223912239
1224012240
:return: The used_cpu_hz_gte of this ClusterWhereInput. # noqa: E501
12241-
:rtype: int
12241+
:rtype: float
1224212242
"""
1224312243
return self._used_cpu_hz_gte
1224412244

@@ -12248,7 +12248,7 @@ def used_cpu_hz_gte(self, used_cpu_hz_gte):
1224812248
1224912249
1225012250
:param used_cpu_hz_gte: The used_cpu_hz_gte of this ClusterWhereInput. # noqa: E501
12251-
:type used_cpu_hz_gte: int
12251+
:type used_cpu_hz_gte: float
1225212252
"""
1225312253

1225412254
self._used_cpu_hz_gte = used_cpu_hz_gte
@@ -12259,7 +12259,7 @@ def used_cpu_hz_in(self):
1225912259
1226012260
1226112261
:return: The used_cpu_hz_in of this ClusterWhereInput. # noqa: E501
12262-
:rtype: list[int]
12262+
:rtype: list[float]
1226312263
"""
1226412264
return self._used_cpu_hz_in
1226512265

@@ -12269,7 +12269,7 @@ def used_cpu_hz_in(self, used_cpu_hz_in):
1226912269
1227012270
1227112271
:param used_cpu_hz_in: The used_cpu_hz_in of this ClusterWhereInput. # noqa: E501
12272-
:type used_cpu_hz_in: list[int]
12272+
:type used_cpu_hz_in: list[float]
1227312273
"""
1227412274

1227512275
self._used_cpu_hz_in = used_cpu_hz_in
@@ -12280,7 +12280,7 @@ def used_cpu_hz_lt(self):
1228012280
1228112281
1228212282
:return: The used_cpu_hz_lt of this ClusterWhereInput. # noqa: E501
12283-
:rtype: int
12283+
:rtype: float
1228412284
"""
1228512285
return self._used_cpu_hz_lt
1228612286

@@ -12290,7 +12290,7 @@ def used_cpu_hz_lt(self, used_cpu_hz_lt):
1229012290
1229112291
1229212292
:param used_cpu_hz_lt: The used_cpu_hz_lt of this ClusterWhereInput. # noqa: E501
12293-
:type used_cpu_hz_lt: int
12293+
:type used_cpu_hz_lt: float
1229412294
"""
1229512295

1229612296
self._used_cpu_hz_lt = used_cpu_hz_lt
@@ -12301,7 +12301,7 @@ def used_cpu_hz_lte(self):
1230112301
1230212302
1230312303
:return: The used_cpu_hz_lte of this ClusterWhereInput. # noqa: E501
12304-
:rtype: int
12304+
:rtype: float
1230512305
"""
1230612306
return self._used_cpu_hz_lte
1230712307

@@ -12311,7 +12311,7 @@ def used_cpu_hz_lte(self, used_cpu_hz_lte):
1231112311
1231212312
1231312313
:param used_cpu_hz_lte: The used_cpu_hz_lte of this ClusterWhereInput. # noqa: E501
12314-
:type used_cpu_hz_lte: int
12314+
:type used_cpu_hz_lte: float
1231512315
"""
1231612316

1231712317
self._used_cpu_hz_lte = used_cpu_hz_lte
@@ -12322,7 +12322,7 @@ def used_cpu_hz_not(self):
1232212322
1232312323
1232412324
:return: The used_cpu_hz_not of this ClusterWhereInput. # noqa: E501
12325-
:rtype: int
12325+
:rtype: float
1232612326
"""
1232712327
return self._used_cpu_hz_not
1232812328

@@ -12332,7 +12332,7 @@ def used_cpu_hz_not(self, used_cpu_hz_not):
1233212332
1233312333
1233412334
:param used_cpu_hz_not: The used_cpu_hz_not of this ClusterWhereInput. # noqa: E501
12335-
:type used_cpu_hz_not: int
12335+
:type used_cpu_hz_not: float
1233612336
"""
1233712337

1233812338
self._used_cpu_hz_not = used_cpu_hz_not
@@ -12343,7 +12343,7 @@ def used_cpu_hz_not_in(self):
1234312343
1234412344
1234512345
:return: The used_cpu_hz_not_in of this ClusterWhereInput. # noqa: E501
12346-
:rtype: list[int]
12346+
:rtype: list[float]
1234712347
"""
1234812348
return self._used_cpu_hz_not_in
1234912349

@@ -12353,7 +12353,7 @@ def used_cpu_hz_not_in(self, used_cpu_hz_not_in):
1235312353
1235412354
1235512355
:param used_cpu_hz_not_in: The used_cpu_hz_not_in of this ClusterWhereInput. # noqa: E501
12356-
:type used_cpu_hz_not_in: list[int]
12356+
:type used_cpu_hz_not_in: list[float]
1235712357
"""
1235812358

1235912359
self._used_cpu_hz_not_in = used_cpu_hz_not_in
@@ -12532,7 +12532,7 @@ def used_memory_bytes(self):
1253212532
1253312533
1253412534
:return: The used_memory_bytes of this ClusterWhereInput. # noqa: E501
12535-
:rtype: int
12535+
:rtype: float
1253612536
"""
1253712537
return self._used_memory_bytes
1253812538

@@ -12542,7 +12542,7 @@ def used_memory_bytes(self, used_memory_bytes):
1254212542
1254312543
1254412544
:param used_memory_bytes: The used_memory_bytes of this ClusterWhereInput. # noqa: E501
12545-
:type used_memory_bytes: int
12545+
:type used_memory_bytes: float
1254612546
"""
1254712547

1254812548
self._used_memory_bytes = used_memory_bytes
@@ -12553,7 +12553,7 @@ def used_memory_bytes_gt(self):
1255312553
1255412554
1255512555
:return: The used_memory_bytes_gt of this ClusterWhereInput. # noqa: E501
12556-
:rtype: int
12556+
:rtype: float
1255712557
"""
1255812558
return self._used_memory_bytes_gt
1255912559

@@ -12563,7 +12563,7 @@ def used_memory_bytes_gt(self, used_memory_bytes_gt):
1256312563
1256412564
1256512565
:param used_memory_bytes_gt: The used_memory_bytes_gt of this ClusterWhereInput. # noqa: E501
12566-
:type used_memory_bytes_gt: int
12566+
:type used_memory_bytes_gt: float
1256712567
"""
1256812568

1256912569
self._used_memory_bytes_gt = used_memory_bytes_gt
@@ -12574,7 +12574,7 @@ def used_memory_bytes_gte(self):
1257412574
1257512575
1257612576
:return: The used_memory_bytes_gte of this ClusterWhereInput. # noqa: E501
12577-
:rtype: int
12577+
:rtype: float
1257812578
"""
1257912579
return self._used_memory_bytes_gte
1258012580

@@ -12584,7 +12584,7 @@ def used_memory_bytes_gte(self, used_memory_bytes_gte):
1258412584
1258512585
1258612586
:param used_memory_bytes_gte: The used_memory_bytes_gte of this ClusterWhereInput. # noqa: E501
12587-
:type used_memory_bytes_gte: int
12587+
:type used_memory_bytes_gte: float
1258812588
"""
1258912589

1259012590
self._used_memory_bytes_gte = used_memory_bytes_gte
@@ -12595,7 +12595,7 @@ def used_memory_bytes_in(self):
1259512595
1259612596
1259712597
:return: The used_memory_bytes_in of this ClusterWhereInput. # noqa: E501
12598-
:rtype: list[int]
12598+
:rtype: list[float]
1259912599
"""
1260012600
return self._used_memory_bytes_in
1260112601

@@ -12605,7 +12605,7 @@ def used_memory_bytes_in(self, used_memory_bytes_in):
1260512605
1260612606
1260712607
:param used_memory_bytes_in: The used_memory_bytes_in of this ClusterWhereInput. # noqa: E501
12608-
:type used_memory_bytes_in: list[int]
12608+
:type used_memory_bytes_in: list[float]
1260912609
"""
1261012610

1261112611
self._used_memory_bytes_in = used_memory_bytes_in
@@ -12616,7 +12616,7 @@ def used_memory_bytes_lt(self):
1261612616
1261712617
1261812618
:return: The used_memory_bytes_lt of this ClusterWhereInput. # noqa: E501
12619-
:rtype: int
12619+
:rtype: float
1262012620
"""
1262112621
return self._used_memory_bytes_lt
1262212622

@@ -12626,7 +12626,7 @@ def used_memory_bytes_lt(self, used_memory_bytes_lt):
1262612626
1262712627
1262812628
:param used_memory_bytes_lt: The used_memory_bytes_lt of this ClusterWhereInput. # noqa: E501
12629-
:type used_memory_bytes_lt: int
12629+
:type used_memory_bytes_lt: float
1263012630
"""
1263112631

1263212632
self._used_memory_bytes_lt = used_memory_bytes_lt
@@ -12637,7 +12637,7 @@ def used_memory_bytes_lte(self):
1263712637
1263812638
1263912639
:return: The used_memory_bytes_lte of this ClusterWhereInput. # noqa: E501
12640-
:rtype: int
12640+
:rtype: float
1264112641
"""
1264212642
return self._used_memory_bytes_lte
1264312643

@@ -12647,7 +12647,7 @@ def used_memory_bytes_lte(self, used_memory_bytes_lte):
1264712647
1264812648
1264912649
:param used_memory_bytes_lte: The used_memory_bytes_lte of this ClusterWhereInput. # noqa: E501
12650-
:type used_memory_bytes_lte: int
12650+
:type used_memory_bytes_lte: float
1265112651
"""
1265212652

1265312653
self._used_memory_bytes_lte = used_memory_bytes_lte
@@ -12658,7 +12658,7 @@ def used_memory_bytes_not(self):
1265812658
1265912659
1266012660
:return: The used_memory_bytes_not of this ClusterWhereInput. # noqa: E501
12661-
:rtype: int
12661+
:rtype: float
1266212662
"""
1266312663
return self._used_memory_bytes_not
1266412664

@@ -12668,7 +12668,7 @@ def used_memory_bytes_not(self, used_memory_bytes_not):
1266812668
1266912669
1267012670
:param used_memory_bytes_not: The used_memory_bytes_not of this ClusterWhereInput. # noqa: E501
12671-
:type used_memory_bytes_not: int
12671+
:type used_memory_bytes_not: float
1267212672
"""
1267312673

1267412674
self._used_memory_bytes_not = used_memory_bytes_not
@@ -12679,7 +12679,7 @@ def used_memory_bytes_not_in(self):
1267912679
1268012680
1268112681
:return: The used_memory_bytes_not_in of this ClusterWhereInput. # noqa: E501
12682-
:rtype: list[int]
12682+
:rtype: list[float]
1268312683
"""
1268412684
return self._used_memory_bytes_not_in
1268512685

@@ -12689,7 +12689,7 @@ def used_memory_bytes_not_in(self, used_memory_bytes_not_in):
1268912689
1269012690
1269112691
:param used_memory_bytes_not_in: The used_memory_bytes_not_in of this ClusterWhereInput. # noqa: E501
12692-
:type used_memory_bytes_not_in: list[int]
12692+
:type used_memory_bytes_not_in: list[float]
1269312693
"""
1269412694

1269512695
self._used_memory_bytes_not_in = used_memory_bytes_not_in

0 commit comments

Comments
 (0)