2019-04-24 12:07:57 +08:00
2019-03-23 16:42:23 +08:00
= begin comment
Kubernetes
No description provided ( generated by Openapi Generator https: //gi thub . com /openapitools/o penapi - generator )
2019-05-16 20:24:00 +08:00
The version of the OpenAPI document: v1 .13 .7
2019-03-23 16:42:23 +08:00
Generated by: https: //o penapi - generator . tech
= end comment
= cut
#
# NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
# Do not edit the class manually.
# Ref: https://openapi-generator.tech
#
package Kubernetes::AuthorizationV1Api ;
require 5.6 .0 ;
use strict ;
use warnings ;
2019-04-24 12:07:57 +08:00
use utf8 ;
2019-03-23 16:42:23 +08:00
use Exporter ;
use Carp qw( croak ) ;
use Log::Any qw( $log ) ;
use Kubernetes::ApiClient ;
use base "Class::Data::Inheritable" ;
2019-04-24 12:07:57 +08:00
__PACKAGE__ - > mk_classdata ( 'method_documentation' = > { } ) ;
2019-03-23 16:42:23 +08:00
sub new {
my $ class = shift ;
my $ api_client ;
2019-04-24 12:07:57 +08:00
if ( $ _ [ 0 ] && ref $ _ [ 0 ] && ref $ _ [ 0 ] eq 'Kubernetes::ApiClient' ) {
2019-03-23 16:42:23 +08:00
$ api_client = $ _ [ 0 ] ;
2019-04-24 12:07:57 +08:00
}
else {
2019-03-23 16:42:23 +08:00
$ api_client = Kubernetes::ApiClient - > new ( @ _ ) ;
}
bless { api_client = > $ api_client } , $ class ;
}
#
# create_namespaced_local_subject_access_review
#
2019-04-24 12:07:57 +08:00
#
#
2019-03-23 16:42:23 +08:00
# @param string $namespace object name and auth scope, such as for teams and projects (required)
# @param V1LocalSubjectAccessReview $body (required)
# @param string $dry_run When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional)
# @param boolean $include_uninitialized If IncludeUninitialized is specified, the object may be returned without completing initialization. (optional)
# @param string $pretty If 'true', then the output is pretty printed. (optional)
{
my $ params = {
2019-04-24 12:07:57 +08:00
'namespace' = > {
data_type = > 'string' ,
description = >
'object name and auth scope, such as for teams and projects' ,
required = > '1' ,
} ,
'body' = > {
data_type = > 'V1LocalSubjectAccessReview' ,
description = > '' ,
required = > '1' ,
} ,
'dry_run' = > {
data_type = > 'string' ,
description = >
'When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed' ,
required = > '0' ,
} ,
'include_uninitialized' = > {
data_type = > 'boolean' ,
description = >
'If IncludeUninitialized is specified, the object may be returned without completing initialization.' ,
required = > '0' ,
} ,
'pretty' = > {
data_type = > 'string' ,
description = >
'If 'true', then the output is pretty printed.' ,
required = > '0' ,
} ,
2019-03-23 16:42:23 +08:00
} ;
2019-04-24 12:07:57 +08:00
__PACKAGE__ - > method_documentation - > {
'create_namespaced_local_subject_access_review' } = {
summary = > '' ,
params = > $ params ,
2019-03-23 16:42:23 +08:00
returns = > 'V1LocalSubjectAccessReview' ,
} ;
}
2019-04-24 12:07:57 +08:00
2019-03-23 16:42:23 +08:00
# @return V1LocalSubjectAccessReview
#
sub create_namespaced_local_subject_access_review {
2019-04-24 12:07:57 +08:00
my ( $ self , % args ) = @ _ ;
2019-03-23 16:42:23 +08:00
# verify the required parameter 'namespace' is set
2019-04-24 12:07:57 +08:00
unless ( exists $ args { 'namespace' } ) {
croak (
"Missing the required parameter 'namespace' when calling create_namespaced_local_subject_access_review"
) ;
2019-03-23 16:42:23 +08:00
}
# verify the required parameter 'body' is set
2019-04-24 12:07:57 +08:00
unless ( exists $ args { 'body' } ) {
croak (
"Missing the required parameter 'body' when calling create_namespaced_local_subject_access_review"
) ;
2019-03-23 16:42:23 +08:00
}
# parse inputs
2019-04-24 12:07:57 +08:00
my $ _resource_path =
'/apis/authorization.k8s.io/v1/namespaces/{namespace}/localsubjectaccessreviews' ;
2019-03-23 16:42:23 +08:00
2019-04-24 12:07:57 +08:00
my $ _method = 'POST' ;
my $ query_params = { } ;
2019-03-23 16:42:23 +08:00
my $ header_params = { } ;
2019-04-24 12:07:57 +08:00
my $ form_params = { } ;
2019-03-23 16:42:23 +08:00
# 'Accept' and 'Content-Type' header
2019-04-24 12:07:57 +08:00
my $ _header_accept =
$ self - > { api_client }
- > select_header_accept ( 'application/json' , 'application/yaml' ,
'application/vnd.kubernetes.protobuf' ) ;
2019-03-23 16:42:23 +08:00
if ( $ _header_accept ) {
$ header_params - > { 'Accept' } = $ _header_accept ;
}
2019-04-24 12:07:57 +08:00
$ header_params - > { 'Content-Type' } =
$ self - > { api_client } - > select_header_content_type ( ) ;
2019-03-23 16:42:23 +08:00
# query params
2019-04-24 12:07:57 +08:00
if ( exists $ args { 'dry_run' } ) {
$ query_params - > { 'dryRun' } =
$ self - > { api_client } - > to_query_value ( $ args { 'dry_run' } ) ;
2019-03-23 16:42:23 +08:00
}
# query params
2019-04-24 12:07:57 +08:00
if ( exists $ args { 'include_uninitialized' } ) {
$ query_params - > { 'includeUninitialized' } =
$ self - > { api_client } - > to_query_value ( $ args { 'include_uninitialized' } ) ;
2019-03-23 16:42:23 +08:00
}
# query params
2019-04-24 12:07:57 +08:00
if ( exists $ args { 'pretty' } ) {
$ query_params - > { 'pretty' } =
$ self - > { api_client } - > to_query_value ( $ args { 'pretty' } ) ;
2019-03-23 16:42:23 +08:00
}
# path params
2019-04-24 12:07:57 +08:00
if ( exists $ args { 'namespace' } ) {
2019-03-23 16:42:23 +08:00
my $ _base_variable = "{" . "namespace" . "}" ;
2019-04-24 12:07:57 +08:00
my $ _base_value =
$ self - > { api_client } - > to_path_value ( $ args { 'namespace' } ) ;
2019-03-23 16:42:23 +08:00
$ _resource_path =~ s/$_base_variable/$_base_value/g ;
}
my $ _body_data ;
2019-04-24 12:07:57 +08:00
2019-03-23 16:42:23 +08:00
# body params
2019-04-24 12:07:57 +08:00
if ( exists $ args { 'body' } ) {
2019-03-23 16:42:23 +08:00
$ _body_data = $ args { 'body' } ;
}
# authentication setting, if any
my $ auth_settings = [ qw( BearerToken ) ] ;
# make the API Call
2019-04-24 12:07:57 +08:00
my $ response = $ self - > { api_client } - > call_api (
$ _resource_path , $ _method , $ query_params , $ form_params ,
$ header_params , $ _body_data , $ auth_settings
) ;
if ( ! $ response ) {
2019-03-23 16:42:23 +08:00
return ;
}
2019-04-24 12:07:57 +08:00
my $ _response_object = $ self - > { api_client }
- > deserialize ( 'V1LocalSubjectAccessReview' , $ response ) ;
2019-03-23 16:42:23 +08:00
return $ _response_object ;
}
#
# create_self_subject_access_review
#
2019-04-24 12:07:57 +08:00
#
#
2019-03-23 16:42:23 +08:00
# @param V1SelfSubjectAccessReview $body (required)
# @param string $dry_run When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional)
# @param boolean $include_uninitialized If IncludeUninitialized is specified, the object may be returned without completing initialization. (optional)
# @param string $pretty If 'true', then the output is pretty printed. (optional)
{
my $ params = {
2019-04-24 12:07:57 +08:00
'body' = > {
data_type = > 'V1SelfSubjectAccessReview' ,
description = > '' ,
required = > '1' ,
} ,
'dry_run' = > {
data_type = > 'string' ,
description = >
'When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed' ,
required = > '0' ,
} ,
'include_uninitialized' = > {
data_type = > 'boolean' ,
description = >
'If IncludeUninitialized is specified, the object may be returned without completing initialization.' ,
required = > '0' ,
} ,
'pretty' = > {
data_type = > 'string' ,
description = >
'If 'true', then the output is pretty printed.' ,
required = > '0' ,
} ,
2019-03-23 16:42:23 +08:00
} ;
2019-04-24 12:07:57 +08:00
__PACKAGE__ - > method_documentation - > { 'create_self_subject_access_review' } = {
summary = > '' ,
params = > $ params ,
2019-03-23 16:42:23 +08:00
returns = > 'V1SelfSubjectAccessReview' ,
2019-04-24 12:07:57 +08:00
} ;
2019-03-23 16:42:23 +08:00
}
2019-04-24 12:07:57 +08:00
2019-03-23 16:42:23 +08:00
# @return V1SelfSubjectAccessReview
#
sub create_self_subject_access_review {
2019-04-24 12:07:57 +08:00
my ( $ self , % args ) = @ _ ;
2019-03-23 16:42:23 +08:00
# verify the required parameter 'body' is set
2019-04-24 12:07:57 +08:00
unless ( exists $ args { 'body' } ) {
croak (
"Missing the required parameter 'body' when calling create_self_subject_access_review"
) ;
2019-03-23 16:42:23 +08:00
}
# parse inputs
2019-04-24 12:07:57 +08:00
my $ _resource_path =
'/apis/authorization.k8s.io/v1/selfsubjectaccessreviews' ;
2019-03-23 16:42:23 +08:00
2019-04-24 12:07:57 +08:00
my $ _method = 'POST' ;
my $ query_params = { } ;
2019-03-23 16:42:23 +08:00
my $ header_params = { } ;
2019-04-24 12:07:57 +08:00
my $ form_params = { } ;
2019-03-23 16:42:23 +08:00
# 'Accept' and 'Content-Type' header
2019-04-24 12:07:57 +08:00
my $ _header_accept =
$ self - > { api_client }
- > select_header_accept ( 'application/json' , 'application/yaml' ,
'application/vnd.kubernetes.protobuf' ) ;
2019-03-23 16:42:23 +08:00
if ( $ _header_accept ) {
$ header_params - > { 'Accept' } = $ _header_accept ;
}
2019-04-24 12:07:57 +08:00
$ header_params - > { 'Content-Type' } =
$ self - > { api_client } - > select_header_content_type ( ) ;
2019-03-23 16:42:23 +08:00
# query params
2019-04-24 12:07:57 +08:00
if ( exists $ args { 'dry_run' } ) {
$ query_params - > { 'dryRun' } =
$ self - > { api_client } - > to_query_value ( $ args { 'dry_run' } ) ;
2019-03-23 16:42:23 +08:00
}
# query params
2019-04-24 12:07:57 +08:00
if ( exists $ args { 'include_uninitialized' } ) {
$ query_params - > { 'includeUninitialized' } =
$ self - > { api_client } - > to_query_value ( $ args { 'include_uninitialized' } ) ;
2019-03-23 16:42:23 +08:00
}
# query params
2019-04-24 12:07:57 +08:00
if ( exists $ args { 'pretty' } ) {
$ query_params - > { 'pretty' } =
$ self - > { api_client } - > to_query_value ( $ args { 'pretty' } ) ;
2019-03-23 16:42:23 +08:00
}
my $ _body_data ;
2019-04-24 12:07:57 +08:00
2019-03-23 16:42:23 +08:00
# body params
2019-04-24 12:07:57 +08:00
if ( exists $ args { 'body' } ) {
2019-03-23 16:42:23 +08:00
$ _body_data = $ args { 'body' } ;
}
# authentication setting, if any
my $ auth_settings = [ qw( BearerToken ) ] ;
# make the API Call
2019-04-24 12:07:57 +08:00
my $ response = $ self - > { api_client } - > call_api (
$ _resource_path , $ _method , $ query_params , $ form_params ,
$ header_params , $ _body_data , $ auth_settings
) ;
if ( ! $ response ) {
2019-03-23 16:42:23 +08:00
return ;
}
2019-04-24 12:07:57 +08:00
my $ _response_object = $ self - > { api_client }
- > deserialize ( 'V1SelfSubjectAccessReview' , $ response ) ;
2019-03-23 16:42:23 +08:00
return $ _response_object ;
}
#
# create_self_subject_rules_review
#
2019-04-24 12:07:57 +08:00
#
#
2019-03-23 16:42:23 +08:00
# @param V1SelfSubjectRulesReview $body (required)
# @param string $dry_run When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional)
# @param boolean $include_uninitialized If IncludeUninitialized is specified, the object may be returned without completing initialization. (optional)
# @param string $pretty If 'true', then the output is pretty printed. (optional)
{
my $ params = {
2019-04-24 12:07:57 +08:00
'body' = > {
data_type = > 'V1SelfSubjectRulesReview' ,
description = > '' ,
required = > '1' ,
} ,
'dry_run' = > {
data_type = > 'string' ,
description = >
'When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed' ,
required = > '0' ,
} ,
'include_uninitialized' = > {
data_type = > 'boolean' ,
description = >
'If IncludeUninitialized is specified, the object may be returned without completing initialization.' ,
required = > '0' ,
} ,
'pretty' = > {
data_type = > 'string' ,
description = >
'If 'true', then the output is pretty printed.' ,
required = > '0' ,
} ,
2019-03-23 16:42:23 +08:00
} ;
2019-04-24 12:07:57 +08:00
__PACKAGE__ - > method_documentation - > { 'create_self_subject_rules_review' } = {
summary = > '' ,
params = > $ params ,
2019-03-23 16:42:23 +08:00
returns = > 'V1SelfSubjectRulesReview' ,
2019-04-24 12:07:57 +08:00
} ;
2019-03-23 16:42:23 +08:00
}
2019-04-24 12:07:57 +08:00
2019-03-23 16:42:23 +08:00
# @return V1SelfSubjectRulesReview
#
sub create_self_subject_rules_review {
2019-04-24 12:07:57 +08:00
my ( $ self , % args ) = @ _ ;
2019-03-23 16:42:23 +08:00
# verify the required parameter 'body' is set
2019-04-24 12:07:57 +08:00
unless ( exists $ args { 'body' } ) {
croak (
"Missing the required parameter 'body' when calling create_self_subject_rules_review"
) ;
2019-03-23 16:42:23 +08:00
}
# parse inputs
2019-04-24 12:07:57 +08:00
my $ _resource_path =
'/apis/authorization.k8s.io/v1/selfsubjectrulesreviews' ;
2019-03-23 16:42:23 +08:00
2019-04-24 12:07:57 +08:00
my $ _method = 'POST' ;
my $ query_params = { } ;
2019-03-23 16:42:23 +08:00
my $ header_params = { } ;
2019-04-24 12:07:57 +08:00
my $ form_params = { } ;
2019-03-23 16:42:23 +08:00
# 'Accept' and 'Content-Type' header
2019-04-24 12:07:57 +08:00
my $ _header_accept =
$ self - > { api_client }
- > select_header_accept ( 'application/json' , 'application/yaml' ,
'application/vnd.kubernetes.protobuf' ) ;
2019-03-23 16:42:23 +08:00
if ( $ _header_accept ) {
$ header_params - > { 'Accept' } = $ _header_accept ;
}
2019-04-24 12:07:57 +08:00
$ header_params - > { 'Content-Type' } =
$ self - > { api_client } - > select_header_content_type ( ) ;
2019-03-23 16:42:23 +08:00
# query params
2019-04-24 12:07:57 +08:00
if ( exists $ args { 'dry_run' } ) {
$ query_params - > { 'dryRun' } =
$ self - > { api_client } - > to_query_value ( $ args { 'dry_run' } ) ;
2019-03-23 16:42:23 +08:00
}
# query params
2019-04-24 12:07:57 +08:00
if ( exists $ args { 'include_uninitialized' } ) {
$ query_params - > { 'includeUninitialized' } =
$ self - > { api_client } - > to_query_value ( $ args { 'include_uninitialized' } ) ;
2019-03-23 16:42:23 +08:00
}
# query params
2019-04-24 12:07:57 +08:00
if ( exists $ args { 'pretty' } ) {
$ query_params - > { 'pretty' } =
$ self - > { api_client } - > to_query_value ( $ args { 'pretty' } ) ;
2019-03-23 16:42:23 +08:00
}
my $ _body_data ;
2019-04-24 12:07:57 +08:00
2019-03-23 16:42:23 +08:00
# body params
2019-04-24 12:07:57 +08:00
if ( exists $ args { 'body' } ) {
2019-03-23 16:42:23 +08:00
$ _body_data = $ args { 'body' } ;
}
# authentication setting, if any
my $ auth_settings = [ qw( BearerToken ) ] ;
# make the API Call
2019-04-24 12:07:57 +08:00
my $ response = $ self - > { api_client } - > call_api (
$ _resource_path , $ _method , $ query_params , $ form_params ,
$ header_params , $ _body_data , $ auth_settings
) ;
if ( ! $ response ) {
2019-03-23 16:42:23 +08:00
return ;
}
2019-04-24 12:07:57 +08:00
my $ _response_object =
$ self - > { api_client } - > deserialize ( 'V1SelfSubjectRulesReview' , $ response ) ;
2019-03-23 16:42:23 +08:00
return $ _response_object ;
}
#
# create_subject_access_review
#
2019-04-24 12:07:57 +08:00
#
#
2019-03-23 16:42:23 +08:00
# @param V1SubjectAccessReview $body (required)
# @param string $dry_run When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional)
# @param boolean $include_uninitialized If IncludeUninitialized is specified, the object may be returned without completing initialization. (optional)
# @param string $pretty If 'true', then the output is pretty printed. (optional)
{
my $ params = {
2019-04-24 12:07:57 +08:00
'body' = > {
data_type = > 'V1SubjectAccessReview' ,
description = > '' ,
required = > '1' ,
} ,
'dry_run' = > {
data_type = > 'string' ,
description = >
'When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed' ,
required = > '0' ,
} ,
'include_uninitialized' = > {
data_type = > 'boolean' ,
description = >
'If IncludeUninitialized is specified, the object may be returned without completing initialization.' ,
required = > '0' ,
} ,
'pretty' = > {
data_type = > 'string' ,
description = >
'If 'true', then the output is pretty printed.' ,
required = > '0' ,
} ,
2019-03-23 16:42:23 +08:00
} ;
2019-04-24 12:07:57 +08:00
__PACKAGE__ - > method_documentation - > { 'create_subject_access_review' } = {
summary = > '' ,
params = > $ params ,
2019-03-23 16:42:23 +08:00
returns = > 'V1SubjectAccessReview' ,
2019-04-24 12:07:57 +08:00
} ;
2019-03-23 16:42:23 +08:00
}
2019-04-24 12:07:57 +08:00
2019-03-23 16:42:23 +08:00
# @return V1SubjectAccessReview
#
sub create_subject_access_review {
2019-04-24 12:07:57 +08:00
my ( $ self , % args ) = @ _ ;
2019-03-23 16:42:23 +08:00
# verify the required parameter 'body' is set
2019-04-24 12:07:57 +08:00
unless ( exists $ args { 'body' } ) {
croak (
"Missing the required parameter 'body' when calling create_subject_access_review"
) ;
2019-03-23 16:42:23 +08:00
}
# parse inputs
my $ _resource_path = '/apis/authorization.k8s.io/v1/subjectaccessreviews' ;
2019-04-24 12:07:57 +08:00
my $ _method = 'POST' ;
my $ query_params = { } ;
2019-03-23 16:42:23 +08:00
my $ header_params = { } ;
2019-04-24 12:07:57 +08:00
my $ form_params = { } ;
2019-03-23 16:42:23 +08:00
# 'Accept' and 'Content-Type' header
2019-04-24 12:07:57 +08:00
my $ _header_accept =
$ self - > { api_client }
- > select_header_accept ( 'application/json' , 'application/yaml' ,
'application/vnd.kubernetes.protobuf' ) ;
2019-03-23 16:42:23 +08:00
if ( $ _header_accept ) {
$ header_params - > { 'Accept' } = $ _header_accept ;
}
2019-04-24 12:07:57 +08:00
$ header_params - > { 'Content-Type' } =
$ self - > { api_client } - > select_header_content_type ( ) ;
2019-03-23 16:42:23 +08:00
# query params
2019-04-24 12:07:57 +08:00
if ( exists $ args { 'dry_run' } ) {
$ query_params - > { 'dryRun' } =
$ self - > { api_client } - > to_query_value ( $ args { 'dry_run' } ) ;
2019-03-23 16:42:23 +08:00
}
# query params
2019-04-24 12:07:57 +08:00
if ( exists $ args { 'include_uninitialized' } ) {
$ query_params - > { 'includeUninitialized' } =
$ self - > { api_client } - > to_query_value ( $ args { 'include_uninitialized' } ) ;
2019-03-23 16:42:23 +08:00
}
# query params
2019-04-24 12:07:57 +08:00
if ( exists $ args { 'pretty' } ) {
$ query_params - > { 'pretty' } =
$ self - > { api_client } - > to_query_value ( $ args { 'pretty' } ) ;
2019-03-23 16:42:23 +08:00
}
my $ _body_data ;
2019-04-24 12:07:57 +08:00
2019-03-23 16:42:23 +08:00
# body params
2019-04-24 12:07:57 +08:00
if ( exists $ args { 'body' } ) {
2019-03-23 16:42:23 +08:00
$ _body_data = $ args { 'body' } ;
}
# authentication setting, if any
my $ auth_settings = [ qw( BearerToken ) ] ;
# make the API Call
2019-04-24 12:07:57 +08:00
my $ response = $ self - > { api_client } - > call_api (
$ _resource_path , $ _method , $ query_params , $ form_params ,
$ header_params , $ _body_data , $ auth_settings
) ;
if ( ! $ response ) {
2019-03-23 16:42:23 +08:00
return ;
}
2019-04-24 12:07:57 +08:00
my $ _response_object =
$ self - > { api_client } - > deserialize ( 'V1SubjectAccessReview' , $ response ) ;
2019-03-23 16:42:23 +08:00
return $ _response_object ;
}
#
# get_api_resources
#
2019-04-24 12:07:57 +08:00
#
#
2019-03-23 16:42:23 +08:00
{
2019-04-24 12:07:57 +08:00
my $ params = { } ;
__PACKAGE__ - > method_documentation - > { 'get_api_resources' } = {
summary = > '' ,
params = > $ params ,
2019-03-23 16:42:23 +08:00
returns = > 'V1APIResourceList' ,
2019-04-24 12:07:57 +08:00
} ;
2019-03-23 16:42:23 +08:00
}
2019-04-24 12:07:57 +08:00
2019-03-23 16:42:23 +08:00
# @return V1APIResourceList
#
sub get_api_resources {
2019-04-24 12:07:57 +08:00
my ( $ self , % args ) = @ _ ;
2019-03-23 16:42:23 +08:00
# parse inputs
my $ _resource_path = '/apis/authorization.k8s.io/v1/' ;
2019-04-24 12:07:57 +08:00
my $ _method = 'GET' ;
my $ query_params = { } ;
2019-03-23 16:42:23 +08:00
my $ header_params = { } ;
2019-04-24 12:07:57 +08:00
my $ form_params = { } ;
2019-03-23 16:42:23 +08:00
# 'Accept' and 'Content-Type' header
2019-04-24 12:07:57 +08:00
my $ _header_accept =
$ self - > { api_client }
- > select_header_accept ( 'application/json' , 'application/yaml' ,
'application/vnd.kubernetes.protobuf' ) ;
2019-03-23 16:42:23 +08:00
if ( $ _header_accept ) {
$ header_params - > { 'Accept' } = $ _header_accept ;
}
2019-04-24 12:07:57 +08:00
$ header_params - > { 'Content-Type' } =
$ self - > { api_client } - > select_header_content_type ( ) ;
2019-03-23 16:42:23 +08:00
my $ _body_data ;
2019-04-24 12:07:57 +08:00
2019-03-23 16:42:23 +08:00
# authentication setting, if any
my $ auth_settings = [ qw( BearerToken ) ] ;
# make the API Call
2019-04-24 12:07:57 +08:00
my $ response = $ self - > { api_client } - > call_api (
$ _resource_path , $ _method , $ query_params , $ form_params ,
$ header_params , $ _body_data , $ auth_settings
) ;
if ( ! $ response ) {
2019-03-23 16:42:23 +08:00
return ;
}
2019-04-24 12:07:57 +08:00
my $ _response_object =
$ self - > { api_client } - > deserialize ( 'V1APIResourceList' , $ response ) ;
2019-03-23 16:42:23 +08:00
return $ _response_object ;
}
1 ;