Файловый менеджер - Редактировать - /opt/imh-python/lib/python3.9/site-packages/libcloud/container/drivers/__pycache__/gke.cpython-39.pyc
Ðазад
a q�h� � @ st d dl mZ d dlmZ d dlmZ d dl mZ d dl mZ dZG dd� de�Z G d d � d e�Z G dd� de�Zd S )� )�GoogleOAuth2Credential)�Provider)�KubernetesContainerDriver)�GoogleResponse)�GoogleBaseConnectionZv1c @ s e Zd ZdS )�GKEResponseN)�__name__� __module__�__qualname__� r r ��/root/rpmbuild/BUILDROOT/imh-python39-modules-3.9.7-92.el8.x86_64/opt/imh-python/lib/python3.9/site-packages/libcloud/container/drivers/gke.pyr s r c sB e Zd ZdZdZeZd � fdd� Z� fdd�Z� fdd �Z � Z S )� GKEConnectiona3 Connection class for the GKE driver. GKEConnection extends :class:`google.GoogleBaseConnection` for 3 reasons: 1. modify request_path for GKE URI. 2. Implement gce_params functionality described below. 3. Add request_aggregated_items method for making aggregated API calls. zcontainer.googleapis.comNc s: t t| �j||f|||d�|�� dt|f | _d | _d S )N)�secure� auth_type�credential_file�/%s/projects/%s)�superr �__init__�API_VERSION�request_path� gke_params)�self�user_id�keyr r r �project�kwargs�� __class__r r r ) s ���zGKEConnection.__init__c s0 t t| ��||�\}}| jr(|�| j� ||fS )z� Update URL parameters with values from self.gke_params. @inherits: :class:`GoogleBaseConnection.pre_connect_hook` )r r �pre_connect_hookr �update)r �params�headersr r r r 1 s �zGKEConnection.pre_connect_hookc sT t t| �j|i |��}| jrPd|jv r8|jd | jd<