MetaAPI/API/Specs/Compute/v2_0.pm

filter: Statementstmt 100% 11 / 11 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 3 / 3 Podpod n/a totaltotal 100% 14 / 14 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« MetaAPI/API/Specs.pm ↑ Summary MetaAPI/API/Specs/Compute/v2_1.pm »
1 package OpenStack::MetaAPI::API::Specs::Compute::v2_0;
2  
3 2 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 2 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
5  
6 2 ▶use Moo;
Subroutine BEGIN: called CC=1 SCAR=0.0
7  
8 2 with 'OpenStack::MetaAPI::API::Specs::Roles::Service';
9  
10 2 1;
11  
12 #
13 # API specs: incomplete need to be continued
14 # url:
15 # https://developer.openstack.org/api-ref/network/v2/index.html?expanded=list-ports-detail#ports
16 #
17  
18 =pod
19  
20 =encoding UTF-8
21  
22 =head1 NAME
23  
24 OpenStack::MetaAPI::API::Specs::Compute::v2_0
25  
26 =head1 VERSION
27  
28 version 0.004
29  
30 =head1 AUTHOR
31  
32 Nicolas R <atoomic@cpan.org>
33  
34 =head1 COPYRIGHT AND LICENSE
35  
36 This software is copyright (c) 2019 by cPanel, Inc.
37  
38 This is free software; you can redistribute it and/or modify it under
39 the same terms as the Perl 5 programming language system itself.
40  
41 =cut
42  
43 __DATA__
44 ---
45 get:
46 /servers/{server_id}:
47 perl_api:
48 method: server_from_uid
49 type: getfromid
50 uid: '{server_id}'
51 request:
52 path:
53 server_id:
54 required: 1
55 /servers:
56 perl_api:
57 method: servers
58 type: listable
59 listable_key: 'servers'
60 request:
61 query:
62 host: {}
63 flavor: {}
64 hostname: {}
65 image: {}
66 ip: {}
67 /flavors:
68 perl_api:
69 method: flavors
70 type: listable
71 listable_key: 'flavors'
72 request:
73 query:
74 sort_key: {}
75 sort_dir: {}
76 limit: {}
77 marker: {}
78 minDisk: {}
79 minRam: {}
80 isPublic: {}
81 /os-keypairs:
82 perl_api:
83 method: keypairs
84 type: listable
85 listable_key: 'keypairs'
86 request:
87 query:
88 user_id: {}
89 limit: {}
90 marker: {}
91 delete:
92 /server/{server_id}:
93 perl_api:
94 method: delete_server_from_uid
95 type: getfromid
96 uid: '{server_id}'
97 request:
98 path:
99 server_id:
100 required: 1
« MetaAPI/API/Specs.pm ↑ Summary MetaAPI/API/Specs/Compute/v2_1.pm »