MetaAPI/API/Specs/Network/v2.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/Default.pm ↑ Summary
1 package OpenStack::MetaAPI::API::Specs::Network::v2;
2  
3 10 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 10 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
5  
6 10 ▶use Moo;
Subroutine BEGIN: called CC=1 SCAR=0.0
7  
8 10 with 'OpenStack::MetaAPI::API::Specs::Roles::Service';
9  
10 #
11 # API specs: incomplete need to be continued
12 # url:
13 # https://developer.openstack.org/api-ref/network/v2/index.html?expanded=list-ports-detail#ports
14 #
15  
16 10 1;
17  
18 =pod
19  
20 =encoding UTF-8
21  
22 =head1 NAME
23  
24 OpenStack::MetaAPI::API::Specs::Network::v2
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 /v2.0/floatingips:
47 perl_api:
48 method: floatingips
49 type: listable
50 listable_key: floatingips
51 request:
52 query: {}
53 /v2.0/networks:
54 perl_api:
55 method: networks
56 type: listable
57 listable_key: networks
58 request:
59 query: {}
60 /v2.0/security-groups:
61 perl_api:
62 method: security_groups
63 type: listable
64 listable_key: security_groups
65 request:
66 query: {}
67 /v2.0/ports:
68 perl_api:
69 method: ports
70 type: listable
71 listable_key: ports
72 request:
73 query:
74 admin_state_up:
75 type: boolean
76 binding:host_id: {}
77 description: {}
78 device_id: {}
79 device_owner: {}
80 fixed_ips: {}
81 id: {}
82 ip_allocation: {}
83 mac_address: {}
84 name: {}
85 network_id: {}
86 project_id: {}
87 revision_number: {}
88 sort_dir: {}
89 sort_key: {}
90 status: {}
91 tenant_id: {}
92 tags: {}
93 tags-any: {}
94 not-tags: {}
95 not-tags-any: {}
96 fields: {}
97 mac_learning_enabled:
98 type: boolean
99 put:
100 /v2.0/ports/{port_id}:
101 perl_api:
102 method: port_from_uid
103 type: getfromid
104 uid: '{port_id}'
105 request:
106 path:
107 port_id:
108 required: 1
109 body:
110 port:
111 required: 1
112 admin_state_up: {}
113 allowed_address_pairs:
114 type: array
115 binding:host_id: {}
116 binding:profile:
117 type: object
118 binding:vnic_type: {}
119 data_plane_status: {}
120 description: {}
121 device_id: {}
122 device_owner: {}
123 dns_domain: {}
124 dns_name: {}
125 extra_dhcp_opts:
126 type: array
« MetaAPI/API/Specs/Default.pm ↑ Summary