
    c                     Z    S r SSKJr  SSKrSSKrSSKrSSKJr  SSKJ	r	   " S S\
5      rg)	z
Kubernetes

No description provided (generated by Swagger Codegen
https://github.com/swagger-api/swagger-codegen)

OpenAPI spec version: v1.14.4

Generated by: https://github.com/swagger-api/swagger-codegen.git
    )absolute_importN)	iteritems   )	ApiClientc                   ^    \ rS rSrSrSS jrS rS rS rS r	S	 r
S
 rS rS rS rS rSrg)AuthorizationV1beta1Api   z
NOTE: This class is auto generated by the swagger code generator program.
Do not edit the class manually.
Ref: https://github.com/swagger-api/swagger-codegen
Nc                 *    Uc
  [        5       nXl        g N)r   
api_client)selfr   s     Clib/third_party/kubernetes/client/apis/authorization_v1beta1_api.py__init__ AuthorizationV1beta1Api.__init__    s    ;j O    c                     SUS'   UR                  S5      (       a  U R                  " X40 UD6$ U R                  " X40 UD6nU$ )a  
create a LocalSubjectAccessReview
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread =
api.create_namespaced_local_subject_access_review(namespace, body,
async_req=True)
>>> result = thread.get()

:param async_req bool
:param str namespace: object name and auth scope, such as for teams and
projects (required)
:param V1beta1LocalSubjectAccessReview body: (required)
:param str 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
:param str field_manager: fieldManager is a name associated with the
actor or entity that is making these changes. The value must be less
than or 128 characters long, and only contain printable characters, as
defined by https://golang.org/pkg/unicode/#IsPrint.
:param str pretty: If 'true', then the output is pretty printed.
:return: V1beta1LocalSubjectAccessReview
         If the method is called asynchronously,
         returns the request thread.
T_return_http_data_only	async_req)get<create_namespaced_local_subject_access_review_with_http_info)r   	namespacebodykwargsdatas        r   -create_namespaced_local_subject_access_reviewEAuthorizationV1beta1Api.create_namespaced_local_subject_access_review%   sc    8 (,F#$zz+NN
%#% % 
K
K
%#%  kr   c                    / SQnUR                  S5        UR                  S5        UR                  S5        UR                  S5        [        5       n[        US   5       H  u  pgXd;  a  [        SU-  5      eXuU'   M     US	 SU;  d  US   c  [	        S
5      eSU;  d  US   c  [	        S5      e0 n0 n	SU;   a  US   U	S'   / n
SU;   a  U
R                  SUS   45        SU;   a  U
R                  SUS   45        SU;   a  U
R                  SUS   45        0 n/ n0 nS	nSU;   a  US   nU R
                  R                  / SQ5      US'   U R
                  R                  S/5      US'   S/nU R
                  R                  SSU	U
UUUUSUUR                  S5      UR                  S5      UR                  SS5      UR                  S5      US9$ )a  
create a LocalSubjectAccessReview
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread =
api.create_namespaced_local_subject_access_review_with_http_info(namespace,
body, async_req=True)
>>> result = thread.get()

:param async_req bool
:param str namespace: object name and auth scope, such as for teams and
projects (required)
:param V1beta1LocalSubjectAccessReview body: (required)
:param str 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
:param str field_manager: fieldManager is a name associated with the
actor or entity that is making these changes. The value must be less
than or 128 characters long, and only contain printable characters, as
defined by https://golang.org/pkg/unicode/#IsPrint.
:param str pretty: If 'true', then the output is pretty printed.
:return: V1beta1LocalSubjectAccessReview
         If the method is called asynchronously,
         returns the request thread.
)r   r   dry_runfield_managerprettyr   r   _preload_content_request_timeoutr   z_Got an unexpected keyword argument '%s' to method create_namespaced_local_subject_access_reviewr   NzgMissing the required parameter `namespace` when calling `create_namespaced_local_subject_access_review`r   zbMissing the required parameter `body` when calling `create_namespaced_local_subject_access_review`r   dryRunr   fieldManagerr    zapplication/jsonzapplication/yamlz#application/vnd.kubernetes.protobufAccept*/*Content-TypeBearerTokenzS/apis/authorization.k8s.io/v1beta1/namespaces/{namespace}/localsubjectaccessreviewsPOSTV1beta1LocalSubjectAccessReviewT
r   post_paramsfilesresponse_typeauth_settingsr   r   r!   r"   collection_formats
appendlocalsr   	TypeError
ValueErrorr   select_header_acceptselect_header_content_typecall_apir   )r   r   r   r   
all_paramsparamskeyvalr1   path_paramsquery_paramsheader_paramsform_paramslocal_var_filesbody_paramsr0   s                   r   r   TAuthorizationV1beta1Api.create_namespaced_local_subject_access_review_with_http_infoK   sD   : MJk"./()()XFfX./		GILMN 	N Sk 0 	x6!vk':'B
s  	f&."8
n  Kf!'!4k+LF8VI%678& >6/+BCD68VH%567MKOK6Nk"oolm ( %)OO""E7+ .! #OM??##]7#**[)%zz*BC$6=$67- $ / /r   c                     SUS'   UR                  S5      (       a  U R                  " U40 UD6$ U R                  " U40 UD6nU$ )a  
create a SelfSubjectAccessReview
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.create_self_subject_access_review(body, async_req=True)
>>> result = thread.get()

:param async_req bool
:param V1beta1SelfSubjectAccessReview body: (required)
:param str 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
:param str field_manager: fieldManager is a name associated with the
actor or entity that is making these changes. The value must be less
than or 128 characters long, and only contain printable characters, as
defined by https://golang.org/pkg/unicode/#IsPrint.
:param str pretty: If 'true', then the output is pretty printed.
:return: V1beta1SelfSubjectAccessReview
         If the method is called asynchronously,
         returns the request thread.
Tr   r   )r   0create_self_subject_access_review_with_http_infor   r   r   r   s       r   !create_self_subject_access_review9AuthorizationV1beta1Api.create_self_subject_access_review   s^    . (,F#$zz+BB
  DD
tkr   c                 \   / SQnUR                  S5        UR                  S5        UR                  S5        UR                  S5        [        5       n[        US   5       H  u  pVXS;  a  [        SU-  5      eXdU'   M     US	 SU;  d  US   c  [	        S
5      e0 n0 n/ n	SU;   a  U	R                  SUS   45        SU;   a  U	R                  SUS   45        SU;   a  U	R                  SUS   45        0 n
/ n0 nS	nSU;   a  US   nU R
                  R                  / SQ5      U
S'   U R
                  R                  S/5      U
S'   S/nU R
                  R                  SSUU	U
UUUSUUR                  S5      UR                  S5      UR                  SS5      UR                  S5      US9$ )a-  
create a SelfSubjectAccessReview
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.create_self_subject_access_review_with_http_info(body,
async_req=True)
>>> result = thread.get()

:param async_req bool
:param V1beta1SelfSubjectAccessReview body: (required)
:param str 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
:param str field_manager: fieldManager is a name associated with the
actor or entity that is making these changes. The value must be less
than or 128 characters long, and only contain printable characters, as
defined by https://golang.org/pkg/unicode/#IsPrint.
:param str pretty: If 'true', then the output is pretty printed.
:return: V1beta1SelfSubjectAccessReview
         If the method is called asynchronously,
         returns the request thread.
r   r   r   r    r   r   r!   r"   r   zSGot an unexpected keyword argument '%s' to method create_self_subject_access_reviewr   NzVMissing the required parameter `body` when calling `create_self_subject_access_review`r   r#   r   r$   r    r%   r&   r'   r(   r)   z;/apis/authorization.k8s.io/v1beta1/selfsubjectaccessreviewsr*   V1beta1SelfSubjectAccessReviewTr,   r2   r   r   r   r:   r;   r<   r=   r1   r>   r?   r@   rA   rB   rC   r0   s                  r   rF   HAuthorizationV1beta1Api.create_self_subject_access_review_with_http_info   s   2 @Jk"./()()XFfX./		 GILM N 	NSk	 0
 	xf&."8
b  KLF8VI%678& >6/+BCD68VH%567MKOK6Nk"oolm ( %)OO""E7+ .! #OM??##E6#**[)%zz*BC$6=$67- $ / /r   c                     SUS'   UR                  S5      (       a  U R                  " U40 UD6$ U R                  " U40 UD6nU$ )a  
create a SelfSubjectRulesReview
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.create_self_subject_rules_review(body, async_req=True)
>>> result = thread.get()

:param async_req bool
:param V1beta1SelfSubjectRulesReview body: (required)
:param str 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
:param str field_manager: fieldManager is a name associated with the
actor or entity that is making these changes. The value must be less
than or 128 characters long, and only contain printable characters, as
defined by https://golang.org/pkg/unicode/#IsPrint.
:param str pretty: If 'true', then the output is pretty printed.
:return: V1beta1SelfSubjectRulesReview
         If the method is called asynchronously,
         returns the request thread.
Tr   r   )r   /create_self_subject_rules_review_with_http_inforG   s       r    create_self_subject_rules_review8AuthorizationV1beta1Api.create_self_subject_rules_review/  s^    . (,F#$zz+AA
  CC
tkr   c                 \   / SQnUR                  S5        UR                  S5        UR                  S5        UR                  S5        [        5       n[        US   5       H  u  pVXS;  a  [        SU-  5      eXdU'   M     US	 SU;  d  US   c  [	        S
5      e0 n0 n/ n	SU;   a  U	R                  SUS   45        SU;   a  U	R                  SUS   45        SU;   a  U	R                  SUS   45        0 n
/ n0 nS	nSU;   a  US   nU R
                  R                  / SQ5      U
S'   U R
                  R                  S/5      U
S'   S/nU R
                  R                  SSUU	U
UUUSUUR                  S5      UR                  S5      UR                  SS5      UR                  S5      US9$ )a)  
create a SelfSubjectRulesReview
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.create_self_subject_rules_review_with_http_info(body,
async_req=True)
>>> result = thread.get()

:param async_req bool
:param V1beta1SelfSubjectRulesReview body: (required)
:param str 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
:param str field_manager: fieldManager is a name associated with the
actor or entity that is making these changes. The value must be less
than or 128 characters long, and only contain printable characters, as
defined by https://golang.org/pkg/unicode/#IsPrint.
:param str pretty: If 'true', then the output is pretty printed.
:return: V1beta1SelfSubjectRulesReview
         If the method is called asynchronously,
         returns the request thread.
rK   r   r   r!   r"   r   zRGot an unexpected keyword argument '%s' to method create_self_subject_rules_reviewr   NzUMissing the required parameter `body` when calling `create_self_subject_rules_review`r   r#   r   r$   r    r%   r&   r'   r(   r)   z:/apis/authorization.k8s.io/v1beta1/selfsubjectrulesreviewsr*   V1beta1SelfSubjectRulesReviewTr,   r2   rM   s                  r   rP   GAuthorizationV1beta1Api.create_self_subject_rules_review_with_http_infoO  s   2 @Jk"./()()XFfX./		 FHKL M 	MSk	 0
 	xf&."8
a  KLF8VI%678& >6/+BCD68VH%567MKOK6Nk"oolm ( %)OO""E7+ .! #OM??##D5#**[)%zz*BC$6=$67- $ / /r   c                     SUS'   UR                  S5      (       a  U R                  " U40 UD6$ U R                  " U40 UD6nU$ )a  
create a SubjectAccessReview
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.create_subject_access_review(body, async_req=True)
>>> result = thread.get()

:param async_req bool
:param V1beta1SubjectAccessReview body: (required)
:param str 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
:param str field_manager: fieldManager is a name associated with the
actor or entity that is making these changes. The value must be less
than or 128 characters long, and only contain printable characters, as
defined by https://golang.org/pkg/unicode/#IsPrint.
:param str pretty: If 'true', then the output is pretty printed.
:return: V1beta1SubjectAccessReview
         If the method is called asynchronously,
         returns the request thread.
Tr   r   )r   +create_subject_access_review_with_http_inforG   s       r   create_subject_access_review4AuthorizationV1beta1Api.create_subject_access_review  sN    . (,F#$zz+==dMfMM??OOtkr   c                 \   / SQnUR                  S5        UR                  S5        UR                  S5        UR                  S5        [        5       n[        US   5       H  u  pVXS;  a  [        SU-  5      eXdU'   M     US	 SU;  d  US   c  [	        S
5      e0 n0 n/ n	SU;   a  U	R                  SUS   45        SU;   a  U	R                  SUS   45        SU;   a  U	R                  SUS   45        0 n
/ n0 nS	nSU;   a  US   nU R
                  R                  / SQ5      U
S'   U R
                  R                  S/5      U
S'   S/nU R
                  R                  SSUU	U
UUUSUUR                  S5      UR                  S5      UR                  SS5      UR                  S5      US9$ )a  
create a SubjectAccessReview
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.create_subject_access_review_with_http_info(body,
async_req=True)
>>> result = thread.get()

:param async_req bool
:param V1beta1SubjectAccessReview body: (required)
:param str 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
:param str field_manager: fieldManager is a name associated with the
actor or entity that is making these changes. The value must be less
than or 128 characters long, and only contain printable characters, as
defined by https://golang.org/pkg/unicode/#IsPrint.
:param str pretty: If 'true', then the output is pretty printed.
:return: V1beta1SubjectAccessReview
         If the method is called asynchronously,
         returns the request thread.
rK   r   r   r!   r"   r   zNGot an unexpected keyword argument '%s' to method create_subject_access_reviewr   NzQMissing the required parameter `body` when calling `create_subject_access_review`r   r#   r   r$   r    r%   r&   r'   r(   r)   z7/apis/authorization.k8s.io/v1beta1/subjectaccessreviewsr*   V1beta1SubjectAccessReviewTr,   r2   rM   s                  r   rW   CAuthorizationV1beta1Api.create_subject_access_review_with_http_info  s   2 @Jk"./()()XFfX./		 BDGH I 	ISk	 0
 	xf&."8
]  KLF8VI%678& >6/+BCD68VH%567MKOK6Nk"oolm ( %)OO""E7+ .! #OM??##A2#**[)%zz*BC$6=$67- $ / /r   c                     SUS'   UR                  S5      (       a  U R                  " S0 UD6$ U R                  " S0 UD6nU$ )ah  
get available resources
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.get_api_resources(async_req=True)
>>> result = thread.get()

:param async_req bool
:return: V1APIResourceList
         If the method is called asynchronously,
         returns the request thread.
Tr   r    )r    get_api_resources_with_http_info)r   r   r   s      r   get_api_resources)AuthorizationV1beta1Api.get_api_resources%  sJ     (,F#$zz+22<V<<44>v>tkr   c                 n   / nUR                  S5        UR                  S5        UR                  S5        UR                  S5        [        5       n[        US   5       H  u  pEXB;  a  [        SU-  5      eXSU'   M     US	 0 n0 n/ n0 n	/ n
0 nSnU R                  R                  / SQ5      U	S	'   U R                  R                  / SQ5      U	S
'   S/nU R                  R                  SSUUU	UU
USUUR                  S5      UR                  S5      UR                  SS5      UR                  S5      US9$ )aw  
get available resources
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.get_api_resources_with_http_info(async_req=True)
>>> result = thread.get()

:param async_req bool
:return: V1APIResourceList
         If the method is called asynchronously,
         returns the request thread.
r   r   r!   r"   r   zCGot an unexpected keyword argument '%s' to method get_api_resourcesNr%   r&   r(   r)   z#/apis/authorization.k8s.io/v1beta1/GETV1APIResourceListTr,   )	r3   r4   r   r5   r   r7   r8   r9   r   )r   r   r:   r;   r<   r=   r1   r>   r?   r@   rA   rB   rC   r0   s                 r   r_   8AuthorizationV1beta1Api.get_api_resources_with_http_info9  sm    Jk"./()()XFfX./		 79<= > 	>Sk	 0
 	xKLMKOK"oolm ( %)OO""#rs .! #OM??##-)#**[)%zz*BC$6=$67- $ / /r   )r   r   )__name__
__module____qualname____firstlineno____doc__r   r   r   rH   rF   rQ   rP   rX   rW   r`   r_   __static_attributes__r^   r   r   r   r      sJ    !
$Lf/P@Z/x@Z/x<Z/x(B/r   r   )rj   
__future__r   sysosresixr   r   r   objectr   r^   r   r   <module>rr      s.   	 ' 
 	 	  "b	/f b	/r   