File manager - Edit - /opt/saltstack/salt/lib/python3.10/site-packages/libcloud/container/drivers/__pycache__/gke.cpython-310.pyc
Back
o ;j � @ sd d dl mZmZmZ d dlmZ d dlmZ dZG dd� de�Z G dd� de�Z G d d � d e�ZdS )� )�GoogleResponse�GoogleBaseConnection�GoogleOAuth2Credential)�Provider)�KubernetesContainerDriverZv1c @ s e Zd ZdS )�GKEResponseN)�__name__� __module__�__qualname__� r r �R/opt/saltstack/salt/lib/python3.10/site-packages/libcloud/container/drivers/gke.pyr s r c sH e Zd ZdZdZeZ d � 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 s6 t � j||f|||d�|�� d�t|�| _i | _d S )N)�secure� auth_type�credential_file�/{}/projects/{})�super�__init__�format�API_VERSIONZrequest_path� gke_params)�self�user_id�keyr r r �project�kwargs�� __class__r r r ) s ��� zGKEConnection.__init__c s, t � �||�\}}| jr|�| j� ||fS )z� Update URL parameters with values from self.gke_params. @inherits: :class:`GoogleBaseConnection.pre_connect_hook` )r �pre_connect_hookr �update)r �params�headersr r r r >