feat: Add new gcloud commands, API clients, and third-party libraries across various services.

This commit is contained in:
2026-01-01 20:26:35 +01:00
parent 5e23cbece0
commit a19e592eb7
25221 changed files with 8324611 additions and 0 deletions

View File

@@ -0,0 +1,25 @@
from __future__ import absolute_import, division, print_function, unicode_literals
import locale
import sys
sys_encoding = locale.getpreferredencoding()
USING_PYTHON2 = True if sys.version_info < (3, 0) else False
if USING_PYTHON2:
str = unicode # noqa
else:
str = str
def ensure_bytes(x, encoding=sys_encoding):
if not isinstance(x, bytes):
x = x.encode(encoding)
return x
def ensure_str(x, encoding=sys_encoding):
if not isinstance(x, str):
x = x.decode(encoding)
return x