| 1 | package Kubernetes::REST::Apiregistration; | ||
| 2 | 2 | our $VERSION = '1.108'; | |
| 3 | # ABSTRACT: Compatibility helper for deprecated v0 API Registration calls | ||
| 4 | 2 | ▶ | use Moo; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 5 | 2 | extends 'Kubernetes::REST::V0Group'; | |
| 6 | 4 | ▶ | has '+group' => (default => sub { 'Apiregistration' }); |
|
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::Apiregistration - Compatibility helper for deprecated v0 API Registration calls | ||
| 20 | |||
| 21 | =head1 VERSION | ||
| 22 | |||
| 23 | version 1.108 | ||
| 24 | |||
| 25 | =head1 SYNOPSIS | ||
| 26 | |||
| 27 | # Old way (deprecated): | ||
| 28 | my $services = $api->Apiregistration->ListAPIService(); | ||
| 29 | |||
| 30 | # New way: | ||
| 31 | my $services = $api->list('APIService'); | ||
| 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->Apiregistration->ListAPIService(...) >>; 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->list('APIService') | ||
| 40 | $api->get('APIService', 'name') | ||
| 41 | $api->create($apiservice) | ||
| 42 | |||
| 43 | See L<Kubernetes::REST/"UPGRADING FROM 0.02"> for migration guide. | ||
| 44 | |||
| 45 | =head1 SEE ALSO | ||
| 46 | |||
| 47 | =over | ||
| 48 | |||
| 49 | =item * L<Kubernetes::REST> - Main module with v1 API | ||
| 50 | |||
| 51 | =item * L<Kubernetes::REST::V0Group> - Base class for v0 compatibility layer | ||
| 52 | |||
| 53 | =back | ||
| 54 | |||
| 55 | =head1 SUPPORT | ||
| 56 | |||
| 57 | =head2 Issues | ||
| 58 | |||
| 59 | Please report bugs and feature requests on GitHub at | ||
| 60 | L<https://github.com/pplu/kubernetes-rest/issues>. | ||
| 61 | |||
| 62 | =head2 IRC | ||
| 63 | |||
| 64 | Join C<#kubernetes> on C<irc.perl.org> or message Getty directly. | ||
| 65 | |||
| 66 | =head1 CONTRIBUTING | ||
| 67 | |||
| 68 | Contributions are welcome! Please fork the repository and submit a pull request. | ||
| 69 | |||
| 70 | =head1 AUTHORS | ||
| 71 | |||
| 72 | =over 4 | ||
| 73 | |||
| 74 | =item * | ||
| 75 | |||
| 76 | Torsten Raudssus <getty@cpan.org> | ||
| 77 | |||
| 78 | =item * | ||
| 79 | |||
| 80 | Jose Luis Martinez Torres <jlmartin@cpan.org> | ||
| 81 | |||
| 82 | =back | ||
| 83 | |||
| 84 | =head1 COPYRIGHT AND LICENSE | ||
| 85 | |||
| 86 | This software is Copyright (c) 2019-2026 by Jose Luis Martinez Torres <jlmartin@cpan.org>. | ||
| 87 | |||
| 88 | This is free software, licensed under: | ||
| 89 | |||
| 90 | The Apache License, Version 2.0, January 2004 | ||
| 91 | |||
| 92 | =cut | ||