python-blazarclient 4.4.0__py3-none-any.whl → 4.6.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.
- blazarclient/shell.py +1 -0
- blazarclient/v1/shell_commands/hosts.py +26 -0
- {python_blazarclient-4.4.0.dist-info → python_blazarclient-4.6.0.dist-info}/METADATA +19 -10
- {python_blazarclient-4.4.0.dist-info → python_blazarclient-4.6.0.dist-info}/RECORD +10 -10
- {python_blazarclient-4.4.0.dist-info → python_blazarclient-4.6.0.dist-info}/WHEEL +1 -1
- {python_blazarclient-4.4.0.dist-info → python_blazarclient-4.6.0.dist-info}/entry_points.txt +1 -0
- python_blazarclient-4.6.0.dist-info/pbr.json +1 -0
- python_blazarclient-4.4.0.dist-info/pbr.json +0 -1
- {python_blazarclient-4.4.0.dist-info → python_blazarclient-4.6.0.dist-info/licenses}/AUTHORS +0 -0
- {python_blazarclient-4.4.0.dist-info → python_blazarclient-4.6.0.dist-info/licenses}/LICENSE +0 -0
- {python_blazarclient-4.4.0.dist-info → python_blazarclient-4.6.0.dist-info}/top_level.txt +0 -0
blazarclient/shell.py
CHANGED
|
@@ -44,6 +44,7 @@ COMMANDS_V1 = {
|
|
|
44
44
|
'host-show': hosts.ShowHost,
|
|
45
45
|
'host-create': hosts.CreateHost,
|
|
46
46
|
'host-update': hosts.UpdateHost,
|
|
47
|
+
'host-unset': hosts.UnsetAttributesHost,
|
|
47
48
|
'host-delete': hosts.DeleteHost,
|
|
48
49
|
'host-property-list': hosts.ListHostProperties,
|
|
49
50
|
'host-property-show': hosts.ShowHostProperty,
|
|
@@ -125,6 +125,32 @@ class UpdateHost(command.UpdateCommand):
|
|
|
125
125
|
return params
|
|
126
126
|
|
|
127
127
|
|
|
128
|
+
class UnsetAttributesHost(UpdateHost):
|
|
129
|
+
"""Unset attributes of a host."""
|
|
130
|
+
log = logging.getLogger(__name__ + '.UnsetAttributesHost')
|
|
131
|
+
|
|
132
|
+
def get_parser(self, prog_name):
|
|
133
|
+
parser = super(UpdateHost, self).get_parser(prog_name)
|
|
134
|
+
parser.add_argument(
|
|
135
|
+
'--extra', metavar='<key>',
|
|
136
|
+
action='append',
|
|
137
|
+
dest='extra_capabilities',
|
|
138
|
+
default=[],
|
|
139
|
+
help='Extra capability keys which should be unset from the host.',
|
|
140
|
+
)
|
|
141
|
+
return parser
|
|
142
|
+
|
|
143
|
+
def args2body(self, parsed_args):
|
|
144
|
+
if parsed_args.extra_capabilities:
|
|
145
|
+
return {
|
|
146
|
+
'values': {
|
|
147
|
+
cap: None for cap in parsed_args.extra_capabilities
|
|
148
|
+
}
|
|
149
|
+
}
|
|
150
|
+
else:
|
|
151
|
+
return {}
|
|
152
|
+
|
|
153
|
+
|
|
128
154
|
class DeleteHost(command.DeleteCommand):
|
|
129
155
|
"""Delete a host."""
|
|
130
156
|
resource = 'host'
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
Metadata-Version: 2.
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
2
|
Name: python-blazarclient
|
|
3
|
-
Version: 4.
|
|
3
|
+
Version: 4.6.0
|
|
4
4
|
Summary: Client for OpenStack Reservation Service
|
|
5
5
|
Home-page: https://launchpad.net/blazar
|
|
6
6
|
Author: OpenStack
|
|
@@ -23,14 +23,23 @@ Classifier: Operating System :: POSIX :: Linux
|
|
|
23
23
|
Requires-Python: >=3.10
|
|
24
24
|
License-File: LICENSE
|
|
25
25
|
License-File: AUTHORS
|
|
26
|
-
Requires-Dist: pbr
|
|
27
|
-
Requires-Dist: cliff
|
|
28
|
-
Requires-Dist: PrettyTable
|
|
29
|
-
Requires-Dist: oslo.i18n
|
|
30
|
-
Requires-Dist: oslo.log
|
|
31
|
-
Requires-Dist: oslo.utils
|
|
32
|
-
Requires-Dist: keystoneauth1
|
|
33
|
-
Requires-Dist: osc-lib
|
|
26
|
+
Requires-Dist: pbr!=2.1.0,>=2.0.0
|
|
27
|
+
Requires-Dist: cliff!=2.9.0,>=2.8.0
|
|
28
|
+
Requires-Dist: PrettyTable>=0.7.1
|
|
29
|
+
Requires-Dist: oslo.i18n>=3.15.3
|
|
30
|
+
Requires-Dist: oslo.log>=3.36.0
|
|
31
|
+
Requires-Dist: oslo.utils>=7.0.0
|
|
32
|
+
Requires-Dist: keystoneauth1>=3.4.0
|
|
33
|
+
Requires-Dist: osc-lib>=1.3.0
|
|
34
|
+
Dynamic: author
|
|
35
|
+
Dynamic: author-email
|
|
36
|
+
Dynamic: description
|
|
37
|
+
Dynamic: home-page
|
|
38
|
+
Dynamic: license
|
|
39
|
+
Dynamic: license-file
|
|
40
|
+
Dynamic: requires-dist
|
|
41
|
+
Dynamic: requires-python
|
|
42
|
+
Dynamic: summary
|
|
34
43
|
|
|
35
44
|
========================
|
|
36
45
|
Team and repository tags
|
|
@@ -4,7 +4,7 @@ blazarclient/client.py,sha256=QJKcarRJ149N9DZB5G12XqUDayLJcSSk8mr6_H71Lc4,1434
|
|
|
4
4
|
blazarclient/command.py,sha256=m-Tek-l_1Xy3YZND5_f-9Ia8HiT3uCYxKIaCzHG1WOA,12448
|
|
5
5
|
blazarclient/exception.py,sha256=nccQagxyp1wkgFSAxacbWXl6vdqvy0Q92jeW4TVL4mQ,3080
|
|
6
6
|
blazarclient/i18n.py,sha256=xH89lr9tMpr9WQelTfqbjJJldqcxvDOLOgEJj6AjkFg,857
|
|
7
|
-
blazarclient/shell.py,sha256=
|
|
7
|
+
blazarclient/shell.py,sha256=TmLND9fNksv1TyScIu-R-GpxxNzLunIhsSQJCc8hlbs,14031
|
|
8
8
|
blazarclient/utils.py,sha256=nuc7s8H7egofkBjGx1BloKwNw9H_no_WNUxU1IYmoTw,5901
|
|
9
9
|
blazarclient/version.py,sha256=r2fTZKJSyMU6-NtpZpGXVk3ZXkeNGtxQp06S-ajsgV0,682
|
|
10
10
|
blazarclient/osc/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
@@ -29,13 +29,13 @@ blazarclient/v1/leases.py,sha256=_OYy7mgMV5JnNLoSZVQvZpYHEkwr_1fnZj6z8V2azBI,405
|
|
|
29
29
|
blazarclient/v1/shell_commands/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
30
30
|
blazarclient/v1/shell_commands/allocations.py,sha256=r92zczR04SFe5Dr-hxBwpajpVXP6pP-7cUk9yIDTmME,5222
|
|
31
31
|
blazarclient/v1/shell_commands/floatingips.py,sha256=x9Ygy_-oysFntIk3Qb9bG3U236S_JPFMjb5I3CwDlIU,2905
|
|
32
|
-
blazarclient/v1/shell_commands/hosts.py,sha256=
|
|
32
|
+
blazarclient/v1/shell_commands/hosts.py,sha256=2v2F1nb6DnRRpdA_FtDBjMG6jwosDPl01IaAAwnROsM,7319
|
|
33
33
|
blazarclient/v1/shell_commands/leases.py,sha256=P0KTucuTJibGbl14W9eU7IdtIFotfJM9wVL8bWNp88w,18762
|
|
34
|
-
python_blazarclient-4.
|
|
35
|
-
python_blazarclient-4.
|
|
36
|
-
python_blazarclient-4.
|
|
37
|
-
python_blazarclient-4.
|
|
38
|
-
python_blazarclient-4.
|
|
39
|
-
python_blazarclient-4.
|
|
40
|
-
python_blazarclient-4.
|
|
41
|
-
python_blazarclient-4.
|
|
34
|
+
python_blazarclient-4.6.0.dist-info/licenses/AUTHORS,sha256=ijW-VWDLuxQwn5qiQ84HLV6wIDikw8tN4gK96LTz1yU,2537
|
|
35
|
+
python_blazarclient-4.6.0.dist-info/licenses/LICENSE,sha256=CeipvOyAZxBGUsFoaFqwkx54aPnIKEtm9a5u2uXxEws,10142
|
|
36
|
+
python_blazarclient-4.6.0.dist-info/METADATA,sha256=JODaXih1IzCq8vpI4QHtdvChzAuH6yvFgr_HKu9tMoo,2474
|
|
37
|
+
python_blazarclient-4.6.0.dist-info/WHEEL,sha256=YVMoNqKzERt-wjUZwJ33xBGAwnFl-4cqbYkTtWa4itE,91
|
|
38
|
+
python_blazarclient-4.6.0.dist-info/entry_points.txt,sha256=kTHZKYDQHAHpGcI6Oujsj5LxOxYLYgt3lpI5S91H1Kg,1767
|
|
39
|
+
python_blazarclient-4.6.0.dist-info/pbr.json,sha256=JchGCuD38_9GBBi20coEabqmRYn4LZDQJ-cnsY9t5H8,46
|
|
40
|
+
python_blazarclient-4.6.0.dist-info/top_level.txt,sha256=yQx5ICRTYACa8B3aVm1rnJI6miXR0odH3BkwmoKD-0E,13
|
|
41
|
+
python_blazarclient-4.6.0.dist-info/RECORD,,
|
{python_blazarclient-4.4.0.dist-info → python_blazarclient-4.6.0.dist-info}/entry_points.txt
RENAMED
|
@@ -19,6 +19,7 @@ reservation_host_property_set = blazarclient.v1.shell_commands.hosts:UpdateHostP
|
|
|
19
19
|
reservation_host_property_show = blazarclient.v1.shell_commands.hosts:ShowHostProperty
|
|
20
20
|
reservation_host_set = blazarclient.v1.shell_commands.hosts:UpdateHost
|
|
21
21
|
reservation_host_show = blazarclient.v1.shell_commands.hosts:ShowHost
|
|
22
|
+
reservation_host_unset = blazarclient.v1.shell_commands.hosts:UnsetAttributeHost
|
|
22
23
|
reservation_lease_create = blazarclient.v1.shell_commands.leases:CreateLeaseBase
|
|
23
24
|
reservation_lease_delete = blazarclient.v1.shell_commands.leases:DeleteLease
|
|
24
25
|
reservation_lease_list = blazarclient.v1.shell_commands.leases:ListLeases
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"git_version": "00a0689", "is_release": true}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"git_version": "0326b12", "is_release": true}
|
{python_blazarclient-4.4.0.dist-info → python_blazarclient-4.6.0.dist-info/licenses}/AUTHORS
RENAMED
|
File without changes
|
{python_blazarclient-4.4.0.dist-info → python_blazarclient-4.6.0.dist-info/licenses}/LICENSE
RENAMED
|
File without changes
|
|
File without changes
|