lib/Kubernetes/REST/Authorization.pm

filter: Statementstmt 100% 8 / 8 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 2 / 2 Podpod n/a totaltotal 100% 10 / 10 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
__ANON__
1.0
CRAP 1.0
« lib/Kubernetes/REST/Authentication.pm ↑ Summary lib/Kubernetes/REST/Autoscaling.pm »
1 package Kubernetes::REST::Authorization;
2 2 our $VERSION = '1.109';
3 # ABSTRACT: Compatibility helper for deprecated v0 Authorization calls
4 2 ▶use Moo;
Subroutine BEGIN: called CC=1 SCAR=0.0
5 2 extends 'Kubernetes::REST::V0Group';
6 3 ▶has '+group' => (default => sub { 'Authorization' });
Subroutine __ANON__: called CC=1 SCAR=0.0
7  
8  
9 2 1;
10  
11 __END__
12  
13 =pod
14  
15 =encoding UTF-8
16  
17 =head1 NAME
18  
19 Kubernetes::REST::Authorization - Compatibility helper for deprecated v0 Authorization calls
20  
21 =head1 VERSION
22  
23 version 1.109
24  
25 =head1 SYNOPSIS
26  
27 # Old way (deprecated):
28 my $result = $api->Authorization->CreateSelfSubjectAccessReview(body => $sar);
29  
30 # New way:
31 my $result = $api->create($sar);
32  
33 =head1 DESCRIPTION
34  
35 This module keeps the deprecated v0 API usable. Kubernetes::REST 0.01/0.02 (by JLMARTIN) used method names like C<< $api->Authorization->CreateSelfSubjectAccessReview(...) >>; calls like that still reach the cluster from here, translated onto the v1 API.
36  
37 The new v1 API uses simple methods directly on the main L<Kubernetes::REST> object:
38  
39 $api->create($selfsubjectaccessreview)
40 $api->create($subjectaccessreview)
41  
42 See L<Kubernetes::REST/"UPGRADING FROM 0.02"> for migration guide.
43  
44 =head1 SEE ALSO
45  
46 =over
47  
48 =item * L<Kubernetes::REST> - Main module with v1 API
49  
50 =item * L<Kubernetes::REST::V0Group> - Base class for v0 compatibility layer
51  
52 =back
53  
54 =head1 SUPPORT
55  
56 =head2 Issues
57  
58 Please report bugs and feature requests on GitHub at
59 L<https://github.com/pplu/kubernetes-rest/issues>.
60  
61 =head2 IRC
62  
63 Join C<#kubernetes> on C<irc.perl.org> or message Getty directly.
64  
65 =head1 CONTRIBUTING
66  
67 Contributions are welcome! Please fork the repository and submit a pull request.
68  
69 =head1 AUTHORS
70  
71 =over 4
72  
73 =item *
74  
75 Torsten Raudssus <getty@cpan.org>
76  
77 =item *
78  
79 Jose Luis Martinez Torres <jlmartin@cpan.org>
80  
81 =back
82  
83 =head1 COPYRIGHT AND LICENSE
84  
85 This software is Copyright (c) 2019-2026 by Jose Luis Martinez Torres <jlmartin@cpan.org>.
86  
87 This is free software, licensed under:
88  
89 The Apache License, Version 2.0, January 2004
90  
91 =cut
« lib/Kubernetes/REST/Authentication.pm ↑ Summary lib/Kubernetes/REST/Autoscaling.pm »