(client_info: ClientInfo)
| 229 | logging.info(f"Client patched: {client_klass}") |
| 230 | |
| 231 | def set_kaggle_user_agent(client_info: ClientInfo): |
| 232 | # Add kaggle client user agent in order to attribute usage. |
| 233 | if client_info is None: |
| 234 | client_info = ClientInfo(user_agent=KAGGLE_GCP_CLIENT_USER_AGENT) |
| 235 | else: |
| 236 | client_info.user_agent = KAGGLE_GCP_CLIENT_USER_AGENT |
| 237 | return client_info |
| 238 | |
| 239 | def init_gcs(): |
| 240 | from google.cloud import storage |
no outgoing calls
no test coverage detected