
    :g9                     V    d Z ddlmZ ddlZddlZddlmZ ddlmZm	Z	  G d de
      Zy)z
    Kubernetes

    No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)  # noqa: E501

    The version of the OpenAPI document: release-1.32
    Generated by: https://openapi-generator.tech
    )absolute_importN)	ApiClient)ApiTypeErrorApiValueErrorc                   0    e Zd ZdZddZd Zd Zd Zd Zy)	AuthenticationV1beta1ApizNOTE: This class is auto generated by OpenAPI Generator
    Ref: https://openapi-generator.tech

    Do not edit the class manually.
    Nc                 *    |
t               }|| _        y N)r   
api_client)selfr   s     e/var/www/openai/venv/lib/python3.12/site-packages/kubernetes/client/api/authentication_v1beta1_api.py__init__z!AuthenticationV1beta1Api.__init__"   s    "J$    c                 2    d|d<    | j                   |fi |S )a
  create_self_subject_review  # noqa: E501

        create a SelfSubjectReview  # noqa: E501
        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_review(body, async_req=True)
        >>> result = thread.get()

        :param async_req bool: execute request asynchronously
        :param V1beta1SelfSubjectReview 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 field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.
        :param str pretty: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).
        :param _preload_content: if False, the urllib3.HTTPResponse object will
                                 be returned without reading/decoding response
                                 data. Default is True.
        :param _request_timeout: timeout setting for this request. If one
                                 number provided, it will be total request
                                 timeout. It can also be a pair (tuple) of
                                 (connection, read) timeouts.
        :return: V1beta1SelfSubjectReview
                 If the method is called asynchronously,
                 returns the request thread.
        T_return_http_data_only))create_self_subject_review_with_http_info)r   bodykwargss      r   create_self_subject_reviewz3AuthenticationV1beta1Api.create_self_subject_review'   s'    4 ,0'(=t==dMfMMr   c                 F   t               }g d}|j                  g d       t        j                  |d         D ]  \  }}||vrt	        d|z        |||<    |d= | j
                  j                  rd|vs|d   t        d      i }i }g }	d|v r|d   |	j                  d	|d   f       d
|v r|d
   |	j                  d|d
   f       d|v r|d   |	j                  d|d   f       d|v r|d   |	j                  d|d   f       i }
g }i }d}d|v r|d   }| j
                  j                  g d      |
d<   dg}| j
                  j                  dd||	|
|||d||j                  d      |j                  d      |j                  dd      |j                  d      |      S )a  create_self_subject_review  # noqa: E501

        create a SelfSubjectReview  # noqa: E501
        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_review_with_http_info(body, async_req=True)
        >>> result = thread.get()

        :param async_req bool: execute request asynchronously
        :param V1beta1SelfSubjectReview 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 field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.
        :param str pretty: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).
        :param _return_http_data_only: response data without head status code
                                       and headers
        :param _preload_content: if False, the urllib3.HTTPResponse object will
                                 be returned without reading/decoding response
                                 data. Default is True.
        :param _request_timeout: timeout setting for this request. If one
                                 number provided, it will be total request
                                 timeout. It can also be a pair (tuple) of
                                 (connection, read) timeouts.
        :return: tuple(V1beta1SelfSubjectReview, status_code(int), headers(HTTPHeaderDict))
                 If the method is called asynchronously,
                 returns the request thread.
        )r   dry_runfield_managerfield_validationpretty	async_reqr   _preload_content_request_timeoutr   zLGot an unexpected keyword argument '%s' to method create_self_subject_reviewr   NzOMissing the required parameter `body` when calling `create_self_subject_review`r   dryRunr   fieldManagerr   fieldValidationr   zapplication/jsonzapplication/yamlz#application/vnd.kubernetes.protobufzapplication/cborAcceptBearerTokenz6/apis/authentication.k8s.io/v1beta1/selfsubjectreviewsPOSTV1beta1SelfSubjectReviewr   r   r   Tr   
r   post_paramsfilesresponse_typeauth_settingsr   r   r   r   collection_formats)localsextendsix	iteritemsr   r   client_side_validationr   appendselect_header_acceptcall_apiget)r   r   r   local_var_params
all_paramskeyvalr,   path_paramsquery_paramsheader_paramsform_paramslocal_var_filesbody_paramsr+   s                  r   r   zBAuthenticationV1beta1Api.create_self_subject_review_with_http_infoD   s;   : "8

 		
 &6x&@AHC*$"<>AB  %(S! B X&??11vEU7U8H8P8X qrr((-=i-H-T+;I+F GH..3CO3T3`1A/1R ST!116FGY6Z6f!24DEW4X YZ'',<X,F,R+;H+E FG%%*62K"&//"F"Fo#qh '''Df#!4'&**;7#3#7#78P#Q-112DdK-112DE1 ( 3 	3r   c                 0    d|d<    | j                   di |S )a  get_api_resources  # noqa: E501

        get available resources  # noqa: E501
        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: execute request asynchronously
        :param _preload_content: if False, the urllib3.HTTPResponse object will
                                 be returned without reading/decoding response
                                 data. Default is True.
        :param _request_timeout: timeout setting for this request. If one
                                 number provided, it will be total request
                                 timeout. It can also be a pair (tuple) of
                                 (connection, read) timeouts.
        :return: V1APIResourceList
                 If the method is called asynchronously,
                 returns the request thread.
        Tr    ) get_api_resources_with_http_info)r   r   s     r   get_api_resourcesz*AuthenticationV1beta1Api.get_api_resources   s%    * ,0'(4t44>v>>r   c                    t               }g }|j                  g d       t        j                  |d         D ]  \  }}||vrt	        d|z        |||<    |d= i }i }g }i }	g }
i }d}| j
                  j                  g d      |	d<   dg}| j
                  j                  dd	|||	||
|d
||j                  d      |j                  d      |j                  dd      |j                  d      |      S )a  get_api_resources  # noqa: E501

        get available resources  # noqa: E501
        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: execute request asynchronously
        :param _return_http_data_only: response data without head status code
                                       and headers
        :param _preload_content: if False, the urllib3.HTTPResponse object will
                                 be returned without reading/decoding response
                                 data. Default is True.
        :param _request_timeout: timeout setting for this request. If one
                                 number provided, it will be total request
                                 timeout. It can also be a pair (tuple) of
                                 (connection, read) timeouts.
        :return: tuple(V1APIResourceList, status_code(int), headers(HTTPHeaderDict))
                 If the method is called asynchronously,
                 returns the request thread.
        r   r   zCGot an unexpected keyword argument '%s' to method get_api_resourcesNr"   r#   r$   z$/apis/authentication.k8s.io/v1beta1/GETV1APIResourceListr   r   r   Tr   r'   )	r-   r.   r/   r0   r   r   r3   r4   r5   )r   r   r6   r7   r8   r9   r,   r:   r;   r<   r=   r>   r?   r+   s                 r   rB   z9AuthenticationV1beta1Api.get_api_resources_with_http_info   sB   0 "8

	
 &6x&@AHC*$"3589  %(S! B X&"&//"F"Fo#qh '''2E#!-'&**;7#3#7#78P#Q-112DdK-112DE1 ( 3 	3r   r
   )	__name__
__module____qualname____doc__r   r   r   rC   rB   rA   r   r   r   r      s$    %
N:g3R?0O3r   r   )rJ   
__future__r   rer/   kubernetes.client.api_clientr   kubernetes.client.exceptionsr   r   objectr   rA   r   r   <module>rP      s-    ' 	  2y3v y3r   