python-cloudkittyclient 5.3.1__py3-none-any.whl → 6.0.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- cloudkittyclient/osc.py +1 -1
- cloudkittyclient/shell.py +3 -3
- cloudkittyclient/tests/functional/v1/test_hashmap.py +49 -2
- cloudkittyclient/tests/functional/v1/test_pyscripts.py +47 -4
- cloudkittyclient/tests/unit/v1/test_hashmap.py +8 -1
- cloudkittyclient/tests/unit/v1/test_pyscripts.py +2 -1
- cloudkittyclient/v1/rating/hashmap.py +20 -0
- cloudkittyclient/v1/rating/hashmap_cli.py +14 -0
- cloudkittyclient/v1/rating/pyscripts.py +17 -2
- cloudkittyclient/v1/rating/pyscripts_cli.py +11 -0
- {python_cloudkittyclient-5.3.1.dist-info → python_cloudkittyclient-6.0.0.dist-info}/METADATA +22 -14
- {python_cloudkittyclient-5.3.1.dist-info → python_cloudkittyclient-6.0.0.dist-info}/RECORD +18 -18
- {python_cloudkittyclient-5.3.1.dist-info → python_cloudkittyclient-6.0.0.dist-info}/WHEEL +1 -1
- {python_cloudkittyclient-5.3.1.dist-info → python_cloudkittyclient-6.0.0.dist-info/licenses}/AUTHORS +3 -0
- python_cloudkittyclient-6.0.0.dist-info/pbr.json +1 -0
- python_cloudkittyclient-5.3.1.dist-info/pbr.json +0 -1
- {python_cloudkittyclient-5.3.1.dist-info → python_cloudkittyclient-6.0.0.dist-info}/entry_points.txt +0 -0
- {python_cloudkittyclient-5.3.1.dist-info → python_cloudkittyclient-6.0.0.dist-info/licenses}/LICENSE +0 -0
- {python_cloudkittyclient-5.3.1.dist-info → python_cloudkittyclient-6.0.0.dist-info}/top_level.txt +0 -0
cloudkittyclient/osc.py
CHANGED
cloudkittyclient/shell.py
CHANGED
|
@@ -18,7 +18,7 @@ from sys import argv
|
|
|
18
18
|
|
|
19
19
|
import cliff.app
|
|
20
20
|
from cliff.commandmanager import CommandManager
|
|
21
|
-
import
|
|
21
|
+
from openstack import config as occ
|
|
22
22
|
from oslo_log import log
|
|
23
23
|
|
|
24
24
|
from cloudkittyclient import client
|
|
@@ -90,7 +90,7 @@ class CloudKittyShell(cliff.app.App):
|
|
|
90
90
|
|
|
91
91
|
def __init__(self, args):
|
|
92
92
|
self._args = args
|
|
93
|
-
self.cloud_config =
|
|
93
|
+
self.cloud_config = occ.OpenStackConfig()
|
|
94
94
|
super(CloudKittyShell, self).__init__(
|
|
95
95
|
description='CloudKitty CLI client',
|
|
96
96
|
version=utils.get_version(),
|
|
@@ -128,7 +128,7 @@ class CloudKittyShell(cliff.app.App):
|
|
|
128
128
|
@property
|
|
129
129
|
def client(self):
|
|
130
130
|
if self._client is None:
|
|
131
|
-
self.cloud = self.cloud_config.
|
|
131
|
+
self.cloud = self.cloud_config.get_one(
|
|
132
132
|
argparse=self.options)
|
|
133
133
|
session = self.cloud.get_session()
|
|
134
134
|
adapter_options = dict(
|
|
@@ -13,6 +13,9 @@
|
|
|
13
13
|
# License for the specific language governing permissions and limitations
|
|
14
14
|
# under the License.
|
|
15
15
|
#
|
|
16
|
+
from datetime import datetime
|
|
17
|
+
from datetime import timedelta
|
|
18
|
+
|
|
16
19
|
from cloudkittyclient.tests.functional import base
|
|
17
20
|
|
|
18
21
|
|
|
@@ -136,13 +139,15 @@ class CkHashmapTest(base.BaseFunctionalTest):
|
|
|
136
139
|
self.assertEqual(len(resp), 0)
|
|
137
140
|
|
|
138
141
|
def test_create_get_update_delete_mapping_service(self):
|
|
142
|
+
future_date = datetime.now() + timedelta(days=1)
|
|
143
|
+
date_iso = future_date.isoformat()
|
|
139
144
|
resp = self.runner('hashmap service create', params='testservice')[0]
|
|
140
145
|
service_id = resp['Service ID']
|
|
141
146
|
self._services.append(service_id)
|
|
142
147
|
|
|
143
148
|
# Create mapping
|
|
144
149
|
resp = self.runner('hashmap mapping create',
|
|
145
|
-
params='-s {} 12'
|
|
150
|
+
params=f'-s {service_id} 12 --start {date_iso}')[0]
|
|
146
151
|
mapping_id = resp['Mapping ID']
|
|
147
152
|
self._mappings.append(mapping_id)
|
|
148
153
|
self.assertEqual(resp['Service ID'], service_id)
|
|
@@ -173,6 +178,8 @@ class CkHashmapTest(base.BaseFunctionalTest):
|
|
|
173
178
|
'hashmap service delete', params=service_id, has_output=False)
|
|
174
179
|
|
|
175
180
|
def test_create_get_update_delete_mapping_field(self):
|
|
181
|
+
future_date = datetime.now() + timedelta(days=1)
|
|
182
|
+
date_iso = future_date.isoformat()
|
|
176
183
|
resp = self.runner('hashmap service create', params='testservice')[0]
|
|
177
184
|
service_id = resp['Service ID']
|
|
178
185
|
self._services.append(service_id)
|
|
@@ -185,7 +192,8 @@ class CkHashmapTest(base.BaseFunctionalTest):
|
|
|
185
192
|
# Create mapping
|
|
186
193
|
resp = self.runner(
|
|
187
194
|
'hashmap mapping create',
|
|
188
|
-
params='--field-id {} 12 --value
|
|
195
|
+
params=f'--field-id {field_id} 12 --value '
|
|
196
|
+
f'testvalue --start {date_iso}')[0]
|
|
189
197
|
mapping_id = resp['Mapping ID']
|
|
190
198
|
self._mappings.append(service_id)
|
|
191
199
|
self.assertEqual(resp['Field ID'], field_id)
|
|
@@ -203,6 +211,45 @@ class CkHashmapTest(base.BaseFunctionalTest):
|
|
|
203
211
|
params='--cost 10 {}'.format(mapping_id))[0]
|
|
204
212
|
self.assertEqual(float(resp['Cost']), float(10))
|
|
205
213
|
|
|
214
|
+
def test_create_get_update_delete_mapping_field_started(self):
|
|
215
|
+
resp = self.runner('hashmap service create',
|
|
216
|
+
params='testservice_date_started')[0]
|
|
217
|
+
service_id = resp['Service ID']
|
|
218
|
+
self._services.append(service_id)
|
|
219
|
+
|
|
220
|
+
resp = self.runner(
|
|
221
|
+
'hashmap field create',
|
|
222
|
+
params='{} testfield_date_started'.format(service_id))[0]
|
|
223
|
+
field_id = resp['Field ID']
|
|
224
|
+
self._fields.append(field_id)
|
|
225
|
+
|
|
226
|
+
# Create mapping
|
|
227
|
+
resp = self.runner(
|
|
228
|
+
'hashmap mapping create',
|
|
229
|
+
params=f'--field-id {field_id} 12 --value '
|
|
230
|
+
f'testvalue')[0]
|
|
231
|
+
mapping_id = resp['Mapping ID']
|
|
232
|
+
self._mappings.append(service_id)
|
|
233
|
+
self.assertEqual(resp['Field ID'], field_id)
|
|
234
|
+
self.assertEqual(float(resp['Cost']), float(12))
|
|
235
|
+
self.assertEqual(resp['Value'], 'testvalue')
|
|
236
|
+
|
|
237
|
+
# Get mapping
|
|
238
|
+
resp = self.runner(
|
|
239
|
+
'hashmap mapping get', params=mapping_id)[0]
|
|
240
|
+
self.assertEqual(resp['Mapping ID'], mapping_id)
|
|
241
|
+
self.assertEqual(float(resp['Cost']), float(12))
|
|
242
|
+
|
|
243
|
+
# Should not be able to update a rule that is running (start < now)
|
|
244
|
+
try:
|
|
245
|
+
self.runner('hashmap mapping update',
|
|
246
|
+
params='--cost 10 {}'.format(mapping_id))[0]
|
|
247
|
+
except RuntimeError as e:
|
|
248
|
+
expected_error = ("You are allowed to update only the attribute "
|
|
249
|
+
"[end] as this rule is already running as it "
|
|
250
|
+
"started on ")
|
|
251
|
+
self.assertIn(expected_error, str(e))
|
|
252
|
+
|
|
206
253
|
def test_group_mappings_get(self):
|
|
207
254
|
# Service and group
|
|
208
255
|
resp = self.runner('hashmap service create', params='testservice')[0]
|
|
@@ -13,6 +13,9 @@
|
|
|
13
13
|
# License for the specific language governing permissions and limitations
|
|
14
14
|
# under the License.
|
|
15
15
|
#
|
|
16
|
+
from datetime import datetime
|
|
17
|
+
from datetime import timedelta
|
|
18
|
+
|
|
16
19
|
from cloudkittyclient.tests.functional import base
|
|
17
20
|
|
|
18
21
|
|
|
@@ -23,9 +26,12 @@ class CkPyscriptTest(base.BaseFunctionalTest):
|
|
|
23
26
|
self.runner = self.cloudkitty
|
|
24
27
|
|
|
25
28
|
def test_create_get_update_list_delete(self):
|
|
29
|
+
future_date = datetime.now() + timedelta(days=1)
|
|
30
|
+
date_iso = future_date.isoformat()
|
|
26
31
|
# Create
|
|
27
32
|
resp = self.runner(
|
|
28
|
-
'pyscript create', params="testscript
|
|
33
|
+
'pyscript create', params=f"testscript "
|
|
34
|
+
f"'return 0' --start {date_iso}")[0]
|
|
29
35
|
script_id = resp['Script ID']
|
|
30
36
|
self.assertEqual(resp['Name'], 'testscript')
|
|
31
37
|
|
|
@@ -37,8 +43,9 @@ class CkPyscriptTest(base.BaseFunctionalTest):
|
|
|
37
43
|
# Update
|
|
38
44
|
resp = self.runner(
|
|
39
45
|
'pyscript update',
|
|
40
|
-
params="-
|
|
41
|
-
|
|
46
|
+
params="-d 'return 1' {} --description "
|
|
47
|
+
"desc".format(script_id))[0]
|
|
48
|
+
self.assertEqual(resp['Script Description'], 'desc')
|
|
42
49
|
self.assertEqual(resp['Script ID'], script_id)
|
|
43
50
|
self.assertEqual(resp['Data'], 'return 1')
|
|
44
51
|
|
|
@@ -46,13 +53,49 @@ class CkPyscriptTest(base.BaseFunctionalTest):
|
|
|
46
53
|
resp = self.runner('pyscript list')
|
|
47
54
|
self.assertEqual(len(resp), 1)
|
|
48
55
|
resp = resp[0]
|
|
49
|
-
self.assertEqual(resp['
|
|
56
|
+
self.assertEqual(resp['Script Description'], 'desc')
|
|
50
57
|
self.assertEqual(resp['Script ID'], script_id)
|
|
51
58
|
self.assertEqual(resp['Data'], 'return 1')
|
|
52
59
|
|
|
53
60
|
# Delete
|
|
54
61
|
self.runner('pyscript delete', params=script_id, has_output=False)
|
|
55
62
|
|
|
63
|
+
def test_create_get_update_list_delete_started(self):
|
|
64
|
+
# Create
|
|
65
|
+
resp = self.runner(
|
|
66
|
+
'pyscript create', params="testscript_started "
|
|
67
|
+
"'return 0'")[0]
|
|
68
|
+
script_id = resp['Script ID']
|
|
69
|
+
self.assertEqual(resp['Name'], 'testscript_started')
|
|
70
|
+
|
|
71
|
+
# Get
|
|
72
|
+
resp = self.runner('pyscript get', params=script_id)[0]
|
|
73
|
+
self.assertEqual(resp['Name'], 'testscript_started')
|
|
74
|
+
self.assertEqual(resp['Script ID'], script_id)
|
|
75
|
+
|
|
76
|
+
# Should not be able to update a rule that is running (start < now)
|
|
77
|
+
try:
|
|
78
|
+
self.runner(
|
|
79
|
+
'pyscript update',
|
|
80
|
+
params="-d 'return 1' {} --description "
|
|
81
|
+
"desc".format(script_id))[0]
|
|
82
|
+
except RuntimeError as e:
|
|
83
|
+
expected_error = ("You are allowed to update only the attribute "
|
|
84
|
+
"[end] as this rule is already running as it "
|
|
85
|
+
"started on ")
|
|
86
|
+
self.assertIn(expected_error, str(e))
|
|
87
|
+
|
|
88
|
+
# List
|
|
89
|
+
resp = self.runner('pyscript list')
|
|
90
|
+
self.assertEqual(len(resp), 1)
|
|
91
|
+
resp = resp[0]
|
|
92
|
+
self.assertEqual(resp['Script Description'], None)
|
|
93
|
+
self.assertEqual(resp['Script ID'], script_id)
|
|
94
|
+
self.assertEqual(resp['Data'], 'return 0')
|
|
95
|
+
|
|
96
|
+
# Delete
|
|
97
|
+
self.runner('pyscript delete', params=script_id, has_output=False)
|
|
98
|
+
|
|
56
99
|
|
|
57
100
|
class OSCPyscriptTest(CkPyscriptTest):
|
|
58
101
|
|
|
@@ -110,7 +110,10 @@ class TestHashmap(base.BaseAPIEndpointTestCase):
|
|
|
110
110
|
self.assertRaises(exc.ArgumentRequired, self.hashmap.get_mapping)
|
|
111
111
|
|
|
112
112
|
def test_create_mapping(self):
|
|
113
|
-
kwargs = dict(cost=2, value='value', field_id='field_id'
|
|
113
|
+
kwargs = dict(cost=2, value='value', field_id='field_id',
|
|
114
|
+
name='name', start="2024-01-01",
|
|
115
|
+
end="2024-01-01",
|
|
116
|
+
description="description")
|
|
114
117
|
body = dict(
|
|
115
118
|
cost=kwargs.get('cost'),
|
|
116
119
|
value=kwargs.get('value'),
|
|
@@ -119,6 +122,10 @@ class TestHashmap(base.BaseAPIEndpointTestCase):
|
|
|
119
122
|
group_id=kwargs.get('group_id'),
|
|
120
123
|
tenant_id=kwargs.get('tenant_id'),
|
|
121
124
|
type=kwargs.get('type') or 'flat',
|
|
125
|
+
start="2024-01-01",
|
|
126
|
+
end="2024-01-01",
|
|
127
|
+
description="description",
|
|
128
|
+
name='name'
|
|
122
129
|
)
|
|
123
130
|
self.hashmap.create_mapping(**kwargs)
|
|
124
131
|
self.api_client.post.assert_called_once_with(
|
|
@@ -38,7 +38,8 @@ class TestPyscripts(base.BaseAPIEndpointTestCase):
|
|
|
38
38
|
self.assertRaises(exc.ArgumentRequired, self.pyscripts.get_script)
|
|
39
39
|
|
|
40
40
|
def test_create_script(self):
|
|
41
|
-
kwargs = dict(name='name', data='data'
|
|
41
|
+
kwargs = dict(name='name', data='data', start=None,
|
|
42
|
+
end=None, description=None)
|
|
42
43
|
self.pyscripts.create_script(**kwargs)
|
|
43
44
|
self.api_client.post.assert_called_once_with(
|
|
44
45
|
'/v1/rating/module_config/pyscripts/scripts/', json=kwargs)
|
|
@@ -13,6 +13,8 @@
|
|
|
13
13
|
# License for the specific language governing permissions and limitations
|
|
14
14
|
# under the License.
|
|
15
15
|
#
|
|
16
|
+
import uuid
|
|
17
|
+
|
|
16
18
|
from cloudkittyclient.common import base
|
|
17
19
|
from cloudkittyclient import exc
|
|
18
20
|
|
|
@@ -171,6 +173,14 @@ class HashmapManager(base.BaseManager):
|
|
|
171
173
|
:type type: str
|
|
172
174
|
:param value: Value of the mapping
|
|
173
175
|
:type value: str
|
|
176
|
+
:param name: Name of the mapping
|
|
177
|
+
:type name: str
|
|
178
|
+
:param start: Date the mapping starts being valid
|
|
179
|
+
:type start: str
|
|
180
|
+
:param end: Date the mapping stops being valid
|
|
181
|
+
:type end: str
|
|
182
|
+
:param description: Description of the mapping
|
|
183
|
+
:type description: str
|
|
174
184
|
"""
|
|
175
185
|
if kwargs.get('cost') is None:
|
|
176
186
|
raise exc.ArgumentRequired("'cost' argument is required")
|
|
@@ -196,6 +206,16 @@ class HashmapManager(base.BaseManager):
|
|
|
196
206
|
tenant_id=kwargs.get('tenant_id'),
|
|
197
207
|
type=kwargs.get('type') or 'flat',
|
|
198
208
|
)
|
|
209
|
+
if kwargs.get('description'):
|
|
210
|
+
body['description'] = kwargs.get('description')
|
|
211
|
+
if kwargs.get('start'):
|
|
212
|
+
body['start'] = kwargs.get('start')
|
|
213
|
+
if kwargs.get('end'):
|
|
214
|
+
body['end'] = kwargs.get('end')
|
|
215
|
+
if kwargs.get('name'):
|
|
216
|
+
body['name'] = kwargs.get('name')
|
|
217
|
+
else:
|
|
218
|
+
body['name'] = uuid.uuid4().hex[:24]
|
|
199
219
|
url = self.get_url('mappings', kwargs)
|
|
200
220
|
return self.api_client.post(url, json=body).json()
|
|
201
221
|
|
|
@@ -257,6 +257,10 @@ class CliCreateMapping(lister.Lister):
|
|
|
257
257
|
('service_id', 'Service ID'),
|
|
258
258
|
('group_id', 'Group ID'),
|
|
259
259
|
('tenant_id', 'Project ID'),
|
|
260
|
+
('name', 'Mapping Name'),
|
|
261
|
+
('start', 'Mapping Start Date'),
|
|
262
|
+
('end', 'Mapping End Date'),
|
|
263
|
+
('Description', 'Mapping Description')
|
|
260
264
|
]
|
|
261
265
|
|
|
262
266
|
def take_action(self, parsed_args):
|
|
@@ -275,6 +279,11 @@ class CliCreateMapping(lister.Lister):
|
|
|
275
279
|
parser.add_argument('-t', '--type', type=str, help='Mapping type')
|
|
276
280
|
parser.add_argument('--value', type=str, help='Value')
|
|
277
281
|
parser.add_argument('cost', type=float, help='Cost')
|
|
282
|
+
parser.add_argument('--name', type=str, help='Mapping Name')
|
|
283
|
+
parser.add_argument('--start', type=str, help='Mapping Start')
|
|
284
|
+
parser.add_argument('--end', type=str, help='Mapping End')
|
|
285
|
+
parser.add_argument('--description', type=str,
|
|
286
|
+
help='Mapping Description')
|
|
278
287
|
return parser
|
|
279
288
|
|
|
280
289
|
|
|
@@ -321,6 +330,11 @@ class CliUpdateMapping(lister.Lister):
|
|
|
321
330
|
parser.add_argument('--value', type=str, help='Value')
|
|
322
331
|
parser.add_argument('--cost', type=str, help='Cost')
|
|
323
332
|
parser.add_argument('mapping_id', type=str, help='Mapping ID')
|
|
333
|
+
parser.add_argument('--name', type=str, help='Mapping Name')
|
|
334
|
+
parser.add_argument('--start', type=str, help='Mapping Start')
|
|
335
|
+
parser.add_argument('--end', type=str, help='Mapping End')
|
|
336
|
+
parser.add_argument('--description', type=str,
|
|
337
|
+
help='Mapping Description')
|
|
324
338
|
return parser
|
|
325
339
|
|
|
326
340
|
|
|
@@ -50,13 +50,22 @@ class PyscriptManager(base.BaseManager):
|
|
|
50
50
|
:type name: str
|
|
51
51
|
:param data: Content of the script
|
|
52
52
|
:type data: str
|
|
53
|
+
:param start: Date the script starts being valid
|
|
54
|
+
:type start: str
|
|
55
|
+
:param end: Date the script stops being valid
|
|
56
|
+
:type end: str
|
|
57
|
+
:param description: Description of the script
|
|
58
|
+
:type description: str
|
|
53
59
|
"""
|
|
54
60
|
for arg in ('name', 'data'):
|
|
55
61
|
if not kwargs.get(arg):
|
|
56
62
|
raise exc.ArgumentRequired(
|
|
57
63
|
"'Argument {} is required.'".format(arg))
|
|
58
64
|
url = self.get_url('scripts', kwargs)
|
|
59
|
-
body = dict(name=kwargs['name'], data=kwargs['data']
|
|
65
|
+
body = dict(name=kwargs['name'], data=kwargs['data'],
|
|
66
|
+
start=kwargs.get('start'),
|
|
67
|
+
end=kwargs.get('end'),
|
|
68
|
+
description=kwargs.get('description'))
|
|
60
69
|
return self.api_client.post(url, json=body).json()
|
|
61
70
|
|
|
62
71
|
def update_script(self, **kwargs):
|
|
@@ -68,11 +77,17 @@ class PyscriptManager(base.BaseManager):
|
|
|
68
77
|
:type name: str
|
|
69
78
|
:param data: Content of the script
|
|
70
79
|
:type data: str
|
|
80
|
+
:param start: Date the script starts being valid
|
|
81
|
+
:type start: str
|
|
82
|
+
:param end: Date the script stops being valid
|
|
83
|
+
:type end: str
|
|
84
|
+
:param description: Description of the script
|
|
85
|
+
:type description: str
|
|
71
86
|
"""
|
|
72
87
|
if not kwargs.get('script_id'):
|
|
73
88
|
raise exc.ArgumentRequired("Argument 'script_id' is required.")
|
|
74
89
|
script = self.get_script(script_id=kwargs['script_id'])
|
|
75
|
-
for key in ('name', 'data'):
|
|
90
|
+
for key in ('name', 'data', 'start', 'end', 'description'):
|
|
76
91
|
if kwargs.get(key):
|
|
77
92
|
script[key] = kwargs[key]
|
|
78
93
|
script.pop('checksum', None)
|
|
@@ -26,6 +26,9 @@ class BaseScriptCli(lister.Lister):
|
|
|
26
26
|
('script_id', 'Script ID'),
|
|
27
27
|
('checksum', 'Checksum'),
|
|
28
28
|
('data', 'Data'),
|
|
29
|
+
('start', 'Script Start Date'),
|
|
30
|
+
('end', 'Script End Date'),
|
|
31
|
+
('description', 'Script Description')
|
|
29
32
|
]
|
|
30
33
|
|
|
31
34
|
|
|
@@ -82,6 +85,10 @@ class CliCreateScript(BaseScriptCli):
|
|
|
82
85
|
parser = super(CliCreateScript, self).get_parser(prog_name)
|
|
83
86
|
parser.add_argument('name', type=str, help='Script Name')
|
|
84
87
|
parser.add_argument('data', type=str, help='Script Data or data file')
|
|
88
|
+
parser.add_argument('--start', type=str, help='Script Start')
|
|
89
|
+
parser.add_argument('--end', type=str, help='Script End')
|
|
90
|
+
parser.add_argument('--description', type=str,
|
|
91
|
+
help='Script Description')
|
|
85
92
|
return parser
|
|
86
93
|
|
|
87
94
|
|
|
@@ -107,6 +114,10 @@ class CliUpdateScript(BaseScriptCli):
|
|
|
107
114
|
parser.add_argument('-n', '--name', type=str, help='Script Name')
|
|
108
115
|
parser.add_argument('-d', '--data', type=str,
|
|
109
116
|
help='Script Data or data file')
|
|
117
|
+
parser.add_argument('--start', type=str, help='Script Start')
|
|
118
|
+
parser.add_argument('--end', type=str, help='Script End')
|
|
119
|
+
parser.add_argument('--description', type=str,
|
|
120
|
+
help='Script Description')
|
|
110
121
|
return parser
|
|
111
122
|
|
|
112
123
|
|
{python_cloudkittyclient-5.3.1.dist-info → python_cloudkittyclient-6.0.0.dist-info}/METADATA
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
Metadata-Version: 2.
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
2
|
Name: python-cloudkittyclient
|
|
3
|
-
Version:
|
|
3
|
+
Version: 6.0.0
|
|
4
4
|
Summary: API client of cloudkitty, Rating as a Service project.
|
|
5
5
|
Home-page: https://docs.openstack.org/python-cloudkittyclient/latest/
|
|
6
6
|
Author: OpenStack
|
|
@@ -14,22 +14,30 @@ Classifier: Programming Language :: Python
|
|
|
14
14
|
Classifier: Programming Language :: Python :: 3 :: Only
|
|
15
15
|
Classifier: Programming Language :: Python :: Implementation :: CPython
|
|
16
16
|
Classifier: Programming Language :: Python :: 3
|
|
17
|
-
Classifier: Programming Language :: Python :: 3.8
|
|
18
|
-
Classifier: Programming Language :: Python :: 3.9
|
|
19
17
|
Classifier: Programming Language :: Python :: 3.10
|
|
20
18
|
Classifier: Programming Language :: Python :: 3.11
|
|
21
|
-
|
|
19
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
20
|
+
Requires-Python: >=3.10
|
|
22
21
|
License-File: LICENSE
|
|
23
22
|
License-File: AUTHORS
|
|
24
|
-
Requires-Dist: pbr
|
|
25
|
-
Requires-Dist: cliff
|
|
26
|
-
Requires-Dist: keystoneauth1
|
|
27
|
-
Requires-Dist: oslo.utils
|
|
28
|
-
Requires-Dist: oslo.log
|
|
29
|
-
Requires-Dist: PyYAML
|
|
30
|
-
Requires-Dist: jsonpath-rw-ext
|
|
31
|
-
Requires-Dist:
|
|
32
|
-
Requires-Dist: osc-lib
|
|
23
|
+
Requires-Dist: pbr>=5.5.1
|
|
24
|
+
Requires-Dist: cliff>=3.5.0
|
|
25
|
+
Requires-Dist: keystoneauth1>=4.3.0
|
|
26
|
+
Requires-Dist: oslo.utils>=4.7.0
|
|
27
|
+
Requires-Dist: oslo.log>=4.4.0
|
|
28
|
+
Requires-Dist: PyYAML>=5.3.1
|
|
29
|
+
Requires-Dist: jsonpath-rw-ext>=1.2.0
|
|
30
|
+
Requires-Dist: openstacksdk>=0.10.0
|
|
31
|
+
Requires-Dist: osc-lib>=2.3.0
|
|
32
|
+
Dynamic: author
|
|
33
|
+
Dynamic: author-email
|
|
34
|
+
Dynamic: classifier
|
|
35
|
+
Dynamic: description
|
|
36
|
+
Dynamic: home-page
|
|
37
|
+
Dynamic: license-file
|
|
38
|
+
Dynamic: requires-dist
|
|
39
|
+
Dynamic: requires-python
|
|
40
|
+
Dynamic: summary
|
|
33
41
|
|
|
34
42
|
================
|
|
35
43
|
CloudKittyClient
|
|
@@ -3,8 +3,8 @@ cloudkittyclient/auth.py,sha256=NVwOBwVzCFA_tvHrYPbjTIeUPu3MTqE4QNdELg_ZzO0,1571
|
|
|
3
3
|
cloudkittyclient/client.py,sha256=OtXxTO_4D04hXpqut-Pk0uAJBiOzBDPmBnTr9n_K9dY,858
|
|
4
4
|
cloudkittyclient/exc.py,sha256=vKGcJCmtQzEqOyJgiJzrMU5F4v6oYhYxWIile7zXmvg,3173
|
|
5
5
|
cloudkittyclient/format.py,sha256=f-BkE5tkU3gCfH2rOq7isz3mcxqwRzI5NCDhVYr4Yqw,3204
|
|
6
|
-
cloudkittyclient/osc.py,sha256=
|
|
7
|
-
cloudkittyclient/shell.py,sha256=
|
|
6
|
+
cloudkittyclient/osc.py,sha256=vILeI7fkPhzjKVkkh5A3K1ZBHnvwa-Wn6V430cn2kzE,1527
|
|
7
|
+
cloudkittyclient/shell.py,sha256=iZ2XJAZ2HRwgH2HAvvVekUZB66BGAj4RnfkDL0UZv_4,5626
|
|
8
8
|
cloudkittyclient/utils.py,sha256=DCC4fsGIDuisFSrJQVPGRv1xTvKsaTjzRiZrWLARoo4,2782
|
|
9
9
|
cloudkittyclient/common/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
10
10
|
cloudkittyclient/common/base.py,sha256=0jXS6IZbx5iRMSLhYWnjhEvFMYJqMGB3DUCvQzMZspE,2543
|
|
@@ -15,9 +15,9 @@ cloudkittyclient/tests/functional/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeR
|
|
|
15
15
|
cloudkittyclient/tests/functional/base.py,sha256=T2EAozIg4r2uQ6FfLbzLGm6wVGnLeE8PyFS2Bdi8Ryc,3395
|
|
16
16
|
cloudkittyclient/tests/functional/v1/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
17
17
|
cloudkittyclient/tests/functional/v1/test_collector.py,sha256=X8PPdlhIn0k0nqse5AElU9tBa3Z3Vri_1cTAlBfmBbI,2419
|
|
18
|
-
cloudkittyclient/tests/functional/v1/test_hashmap.py,sha256=
|
|
18
|
+
cloudkittyclient/tests/functional/v1/test_hashmap.py,sha256=_ZOFLR185mlSdF03cJXk9OQlS9yyzdyz7qEd-hUaeKE,14950
|
|
19
19
|
cloudkittyclient/tests/functional/v1/test_info.py,sha256=QVThFNjxi98i1pTMrJiPj2m574egJrivNJ0Co46h_4k,1622
|
|
20
|
-
cloudkittyclient/tests/functional/v1/test_pyscripts.py,sha256=
|
|
20
|
+
cloudkittyclient/tests/functional/v1/test_pyscripts.py,sha256=6Dny69VWwseddGcaQwltg5xC3SriuVPP0U5fAZoCfvo,3883
|
|
21
21
|
cloudkittyclient/tests/functional/v1/test_rating.py,sha256=QC1eDUip-GNkVYYdvKf-zbbZZy_wikgyurzLFsEkdI8,1677
|
|
22
22
|
cloudkittyclient/tests/functional/v1/test_report.py,sha256=YVUN1MIyQz7oU4lQ97KFarSkFp35wVhrV4yoJm79al4,1509
|
|
23
23
|
cloudkittyclient/tests/functional/v1/test_storage.py,sha256=t3ShnzJNGLSiFMx5UyF4pOFZrlQUEgba9p7Iw1UUASQ,1125
|
|
@@ -29,9 +29,9 @@ cloudkittyclient/tests/unit/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMp
|
|
|
29
29
|
cloudkittyclient/tests/unit/v1/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
30
30
|
cloudkittyclient/tests/unit/v1/base.py,sha256=k19R46czgXnrF-cT8dE3mwoISfbJkt4W59ai9zvgUI4,1584
|
|
31
31
|
cloudkittyclient/tests/unit/v1/test_collector.py,sha256=0VkmTdDyUIMHOYvV9FCvt3_tYSKK2ZA2JVXX2np3LWI,2911
|
|
32
|
-
cloudkittyclient/tests/unit/v1/test_hashmap.py,sha256=
|
|
32
|
+
cloudkittyclient/tests/unit/v1/test_hashmap.py,sha256=YamDQA0CnKP_ap-vZbcSgc-V82CMI7lySGDxWnmcFDk,13783
|
|
33
33
|
cloudkittyclient/tests/unit/v1/test_info.py,sha256=8fMSPWEwXAd-00FKf4pqGMXLq6cHodB-kXxetZPNWDI,1191
|
|
34
|
-
cloudkittyclient/tests/unit/v1/test_pyscripts.py,sha256=
|
|
34
|
+
cloudkittyclient/tests/unit/v1/test_pyscripts.py,sha256=zdIwsrcwYDxM-Cy_71ygMsqvu3iQPp23SdB5erbI2Ck,2946
|
|
35
35
|
cloudkittyclient/tests/unit/v1/test_rating.py,sha256=m0rRU_Vb6dAwLOhwpQT1jZBb-9mDjBLmIXSrDLjheYE,1788
|
|
36
36
|
cloudkittyclient/tests/unit/v1/test_report.py,sha256=tqZ3HuwtbIP_Jk-2r2gHrJy0euRiU4WrtZ7DpGsP9mc,2685
|
|
37
37
|
cloudkittyclient/tests/unit/v1/test_report_cli.py,sha256=UiZfDEZaAGSm_C4ywCiMfG3odc-N9QSXzSXF6DAxeJg,2299
|
|
@@ -53,10 +53,10 @@ cloudkittyclient/v1/report_cli.py,sha256=nkKi-eXwBXtJduPfskcpa2N7lqEs1UFELBTAyOc
|
|
|
53
53
|
cloudkittyclient/v1/storage.py,sha256=wFT861Bhpks-ON832MH-UM_vyOMosvJpf6LSsrH5-5c,1385
|
|
54
54
|
cloudkittyclient/v1/storage_cli.py,sha256=-XufUUYYN9983ljx_b7w2xMMXt4wtW3krqk17dKgzbY,2760
|
|
55
55
|
cloudkittyclient/v1/rating/__init__.py,sha256=gq6MVY5sE1l120KbR2WWG8L0FemlgIxulmAYi6gFG8A,5766
|
|
56
|
-
cloudkittyclient/v1/rating/hashmap.py,sha256=
|
|
57
|
-
cloudkittyclient/v1/rating/hashmap_cli.py,sha256=
|
|
58
|
-
cloudkittyclient/v1/rating/pyscripts.py,sha256=
|
|
59
|
-
cloudkittyclient/v1/rating/pyscripts_cli.py,sha256=
|
|
56
|
+
cloudkittyclient/v1/rating/hashmap.py,sha256=OEwIcJSOB6HWb-c9H5Rj8bamDddvTxayNbg3iPUESik,18684
|
|
57
|
+
cloudkittyclient/v1/rating/hashmap_cli.py,sha256=fL9vK9LkRJIVgxb_stAZ4m8HuH6fp_Ury5IpE6GjhII,21309
|
|
58
|
+
cloudkittyclient/v1/rating/pyscripts.py,sha256=T7XDpQcFvvRh9Y6msvn05tpwOURqKKpTDp1Y5115udg,3955
|
|
59
|
+
cloudkittyclient/v1/rating/pyscripts_cli.py,sha256=sT_P-PBRupsjTruPVgyUY5FDvjoilkgzxXkTWc0cASc,4846
|
|
60
60
|
cloudkittyclient/v2/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
61
61
|
cloudkittyclient/v2/client.py,sha256=NS5HocThLXfbhab64QEveDbD2AHAaG_YOlKIrg18Fhg,1732
|
|
62
62
|
cloudkittyclient/v2/dataframes.py,sha256=s4IGC5JSgfKoh2_ee_HTQtI7FJZ0L0RUPM0I0hRg7VU,2654
|
|
@@ -70,11 +70,11 @@ cloudkittyclient/v2/summary_cli.py,sha256=A08eGm0c3d9LUBhUfrngSo-3K9pWsDB8Br6L4O
|
|
|
70
70
|
cloudkittyclient/v2/rating/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
71
71
|
cloudkittyclient/v2/rating/modules.py,sha256=EGApZyoXlcw_GNosJQTn5wHwEcbHrz8CZZzsS0j_hgk,2165
|
|
72
72
|
cloudkittyclient/v2/rating/modules_cli.py,sha256=XK7burE7ZmRQRPs81Y9HdkHUQoDFkvjQuxG1syOjimQ,1026
|
|
73
|
-
python_cloudkittyclient-
|
|
74
|
-
python_cloudkittyclient-
|
|
75
|
-
python_cloudkittyclient-
|
|
76
|
-
python_cloudkittyclient-
|
|
77
|
-
python_cloudkittyclient-
|
|
78
|
-
python_cloudkittyclient-
|
|
79
|
-
python_cloudkittyclient-
|
|
80
|
-
python_cloudkittyclient-
|
|
73
|
+
python_cloudkittyclient-6.0.0.dist-info/licenses/AUTHORS,sha256=VGBVtK9pnczip_DEi5gWbq0rIcVk1AUimWy-1R-mAB8,2755
|
|
74
|
+
python_cloudkittyclient-6.0.0.dist-info/licenses/LICENSE,sha256=XfKg2H1sVi8OoRxoisUlMqoo10TKvHmU_wU39ks7MyA,10143
|
|
75
|
+
python_cloudkittyclient-6.0.0.dist-info/METADATA,sha256=ox2fTCI5BJCFZVa0Qpd2yUZxekhhdtTgeKl6G5qVHTA,2075
|
|
76
|
+
python_cloudkittyclient-6.0.0.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
77
|
+
python_cloudkittyclient-6.0.0.dist-info/entry_points.txt,sha256=ano5AeFl65CWYf-Agxm4QfP6kSfzBTSUq3h7cccU8-s,16184
|
|
78
|
+
python_cloudkittyclient-6.0.0.dist-info/pbr.json,sha256=ViH6dhh3gSeyY-Pbtf63hAV-98PXV7FUF0la4oXSOlY,46
|
|
79
|
+
python_cloudkittyclient-6.0.0.dist-info/top_level.txt,sha256=TtMJyxkmBFte9bhR6os7dENHUkoVxb6zshYScZMsGVA,17
|
|
80
|
+
python_cloudkittyclient-6.0.0.dist-info/RECORD,,
|
{python_cloudkittyclient-5.3.1.dist-info → python_cloudkittyclient-6.0.0.dist-info/licenses}/AUTHORS
RENAMED
|
@@ -16,8 +16,10 @@ Gauvain Pocentek <gauvain.pocentek@objectif-libre.com>
|
|
|
16
16
|
Ghanshyam Mann <gmann@ghanshyammann.com>
|
|
17
17
|
Guillaume Espanel <guillaume.espanel@objectif-libre.com>
|
|
18
18
|
HaiJieZhang <zhanghj@gohighsec.com>
|
|
19
|
+
Jaromir Wysoglad <jwysogla@redhat.com>
|
|
19
20
|
Jeremy Liu <liujiong@gohighsec.com>
|
|
20
21
|
Jeremy Stanley <fungi@yuggoth.org>
|
|
22
|
+
Juan Larriba <jlarriba@redhat.com>
|
|
21
23
|
Justin Ferrieu <jferrieu@objectif-libre.com>
|
|
22
24
|
Kiran_totad <kiran.totad@nectechnologies.in>
|
|
23
25
|
Luka Peschke <luka.peschke@epitech.eu>
|
|
@@ -27,6 +29,7 @@ Matthias Bastian <bastian@strato.de>
|
|
|
27
29
|
Maxime Cottret <maxime.cottret@objectif-libre.com>
|
|
28
30
|
Monty Taylor <mordred@inaugust.com>
|
|
29
31
|
OpenStack Release Bot <infra-root@openstack.org>
|
|
32
|
+
Pedro Henrique <phpm13@gmail.com>
|
|
30
33
|
Pierre Riteau <pierre@stackhpc.com>
|
|
31
34
|
Pierre-Alexandre Bardina <pa.bardina@objectif-libre.com>
|
|
32
35
|
Quentin Anglade <quentin.anglade@objectif-libre.com>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"git_version": "dea9c30", "is_release": true}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"git_version": "4f375f8", "is_release": true}
|
{python_cloudkittyclient-5.3.1.dist-info → python_cloudkittyclient-6.0.0.dist-info}/entry_points.txt
RENAMED
|
File without changes
|
{python_cloudkittyclient-5.3.1.dist-info → python_cloudkittyclient-6.0.0.dist-info/licenses}/LICENSE
RENAMED
|
File without changes
|
{python_cloudkittyclient-5.3.1.dist-info → python_cloudkittyclient-6.0.0.dist-info}/top_level.txt
RENAMED
|
File without changes
|