google-cloud-container 2.56.0__tar.gz → 2.57.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- google_cloud_container-2.57.0/MANIFEST.in +20 -0
- {google_cloud_container-2.56.0/google_cloud_container.egg-info → google_cloud_container-2.57.0}/PKG-INFO +97 -8
- google_cloud_container-2.57.0/README.rst +197 -0
- {google_cloud_container-2.56.0 → google_cloud_container-2.57.0}/google/cloud/container/__init__.py +23 -1
- {google_cloud_container-2.56.0 → google_cloud_container-2.57.0}/google/cloud/container/gapic_version.py +2 -2
- {google_cloud_container-2.56.0 → google_cloud_container-2.57.0}/google/cloud/container_v1/__init__.py +23 -1
- {google_cloud_container-2.56.0 → google_cloud_container-2.57.0}/google/cloud/container_v1/gapic_metadata.json +30 -0
- {google_cloud_container-2.56.0/google/cloud/container_v1beta1 → google_cloud_container-2.57.0/google/cloud/container_v1}/gapic_version.py +2 -2
- {google_cloud_container-2.56.0/google/cloud/container_v1beta1 → google_cloud_container-2.57.0/google/cloud/container_v1}/services/__init__.py +1 -1
- {google_cloud_container-2.56.0 → google_cloud_container-2.57.0}/google/cloud/container_v1/services/cluster_manager/__init__.py +1 -1
- {google_cloud_container-2.56.0 → google_cloud_container-2.57.0}/google/cloud/container_v1/services/cluster_manager/async_client.py +335 -33
- {google_cloud_container-2.56.0 → google_cloud_container-2.57.0}/google/cloud/container_v1/services/cluster_manager/client.py +332 -33
- {google_cloud_container-2.56.0 → google_cloud_container-2.57.0}/google/cloud/container_v1/services/cluster_manager/pagers.py +1 -1
- {google_cloud_container-2.56.0 → google_cloud_container-2.57.0}/google/cloud/container_v1/services/cluster_manager/transports/__init__.py +1 -1
- {google_cloud_container-2.56.0 → google_cloud_container-2.57.0}/google/cloud/container_v1/services/cluster_manager/transports/base.py +39 -1
- {google_cloud_container-2.56.0 → google_cloud_container-2.57.0}/google/cloud/container_v1/services/cluster_manager/transports/grpc.py +64 -3
- {google_cloud_container-2.56.0 → google_cloud_container-2.57.0}/google/cloud/container_v1/services/cluster_manager/transports/grpc_asyncio.py +73 -1
- {google_cloud_container-2.56.0 → google_cloud_container-2.57.0}/google/cloud/container_v1/services/cluster_manager/transports/rest.py +461 -5
- {google_cloud_container-2.56.0 → google_cloud_container-2.57.0}/google/cloud/container_v1/services/cluster_manager/transports/rest_base.py +103 -1
- {google_cloud_container-2.56.0 → google_cloud_container-2.57.0}/google/cloud/container_v1/types/__init__.py +23 -1
- {google_cloud_container-2.56.0 → google_cloud_container-2.57.0}/google/cloud/container_v1/types/cluster_service.py +1019 -31
- {google_cloud_container-2.56.0 → google_cloud_container-2.57.0}/google/cloud/container_v1beta1/__init__.py +35 -1
- {google_cloud_container-2.56.0 → google_cloud_container-2.57.0}/google/cloud/container_v1beta1/gapic_metadata.json +20 -0
- {google_cloud_container-2.56.0/google/cloud/container_v1 → google_cloud_container-2.57.0/google/cloud/container_v1beta1}/gapic_version.py +2 -2
- {google_cloud_container-2.56.0/tests → google_cloud_container-2.57.0/google/cloud/container_v1beta1/services}/__init__.py +1 -1
- {google_cloud_container-2.56.0 → google_cloud_container-2.57.0}/google/cloud/container_v1beta1/services/cluster_manager/__init__.py +1 -1
- {google_cloud_container-2.56.0 → google_cloud_container-2.57.0}/google/cloud/container_v1beta1/services/cluster_manager/async_client.py +501 -289
- {google_cloud_container-2.56.0 → google_cloud_container-2.57.0}/google/cloud/container_v1beta1/services/cluster_manager/client.py +540 -289
- {google_cloud_container-2.56.0 → google_cloud_container-2.57.0}/google/cloud/container_v1beta1/services/cluster_manager/pagers.py +1 -1
- {google_cloud_container-2.56.0 → google_cloud_container-2.57.0}/google/cloud/container_v1beta1/services/cluster_manager/transports/__init__.py +1 -1
- {google_cloud_container-2.56.0 → google_cloud_container-2.57.0}/google/cloud/container_v1beta1/services/cluster_manager/transports/base.py +39 -1
- {google_cloud_container-2.56.0 → google_cloud_container-2.57.0}/google/cloud/container_v1beta1/services/cluster_manager/transports/grpc.py +64 -3
- {google_cloud_container-2.56.0 → google_cloud_container-2.57.0}/google/cloud/container_v1beta1/services/cluster_manager/transports/grpc_asyncio.py +73 -1
- {google_cloud_container-2.56.0 → google_cloud_container-2.57.0}/google/cloud/container_v1beta1/types/__init__.py +35 -1
- {google_cloud_container-2.56.0 → google_cloud_container-2.57.0}/google/cloud/container_v1beta1/types/cluster_service.py +1914 -234
- {google_cloud_container-2.56.0 → google_cloud_container-2.57.0/google_cloud_container.egg-info}/PKG-INFO +97 -8
- {google_cloud_container-2.56.0 → google_cloud_container-2.57.0}/google_cloud_container.egg-info/SOURCES.txt +0 -1
- google_cloud_container-2.57.0/google_cloud_container.egg-info/requires.txt +7 -0
- {google_cloud_container-2.56.0 → google_cloud_container-2.57.0}/setup.cfg +0 -3
- {google_cloud_container-2.56.0 → google_cloud_container-2.57.0}/setup.py +6 -6
- {google_cloud_container-2.56.0/tests/unit → google_cloud_container-2.57.0/tests}/__init__.py +1 -1
- {google_cloud_container-2.56.0/google/cloud/container_v1/services → google_cloud_container-2.57.0/tests/unit}/__init__.py +1 -1
- google_cloud_container-2.57.0/tests/unit/gapic/__init__.py +15 -0
- google_cloud_container-2.57.0/tests/unit/gapic/container_v1/__init__.py +15 -0
- {google_cloud_container-2.56.0 → google_cloud_container-2.57.0}/tests/unit/gapic/container_v1/test_cluster_manager.py +2183 -529
- google_cloud_container-2.57.0/tests/unit/gapic/container_v1beta1/__init__.py +15 -0
- {google_cloud_container-2.56.0 → google_cloud_container-2.57.0}/tests/unit/gapic/container_v1beta1/test_cluster_manager.py +992 -17
- google_cloud_container-2.56.0/MANIFEST.in +0 -25
- google_cloud_container-2.56.0/README.rst +0 -108
- google_cloud_container-2.56.0/google_cloud_container.egg-info/requires.txt +0 -7
- google_cloud_container-2.56.0/tests/unit/gapic/__init__.py +0 -15
- google_cloud_container-2.56.0/tests/unit/gapic/container_v1/__init__.py +0 -15
- google_cloud_container-2.56.0/tests/unit/gapic/container_v1beta1/__init__.py +0 -15
- {google_cloud_container-2.56.0 → google_cloud_container-2.57.0}/LICENSE +0 -0
- {google_cloud_container-2.56.0 → google_cloud_container-2.57.0}/google/cloud/container/py.typed +0 -0
- {google_cloud_container-2.56.0 → google_cloud_container-2.57.0}/google/cloud/container_v1/py.typed +0 -0
- {google_cloud_container-2.56.0 → google_cloud_container-2.57.0}/google/cloud/container_v1beta1/py.typed +0 -0
- {google_cloud_container-2.56.0 → google_cloud_container-2.57.0}/google_cloud_container.egg-info/dependency_links.txt +0 -0
- {google_cloud_container-2.56.0 → google_cloud_container-2.57.0}/google_cloud_container.egg-info/not-zip-safe +0 -0
- {google_cloud_container-2.56.0 → google_cloud_container-2.57.0}/google_cloud_container.egg-info/top_level.txt +0 -0
- {google_cloud_container-2.56.0 → google_cloud_container-2.57.0}/tests/system/__init__.py +0 -0
- {google_cloud_container-2.56.0 → google_cloud_container-2.57.0}/tests/system/smoke_test.py +0 -0
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# -*- coding: utf-8 -*-
|
|
2
|
+
# Copyright 2025 Google LLC
|
|
3
|
+
#
|
|
4
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
# you may not use this file except in compliance with the License.
|
|
6
|
+
# You may obtain a copy of the License at
|
|
7
|
+
#
|
|
8
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
#
|
|
10
|
+
# Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
# See the License for the specific language governing permissions and
|
|
14
|
+
# limitations under the License.
|
|
15
|
+
#
|
|
16
|
+
include README.rst LICENSE
|
|
17
|
+
recursive-include google *.py *.pyi *.json *.proto py.typed
|
|
18
|
+
recursive-include tests *
|
|
19
|
+
global-exclude *.py[co]
|
|
20
|
+
global-exclude __pycache__
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: google-cloud-container
|
|
3
|
-
Version: 2.
|
|
3
|
+
Version: 2.57.0
|
|
4
4
|
Summary: Google Cloud Container API client library
|
|
5
5
|
Home-page: https://github.com/googleapis/google-cloud-python/tree/main/packages/google-cloud-container
|
|
6
6
|
Author: Google LLC
|
|
@@ -23,11 +23,11 @@ Classifier: Operating System :: OS Independent
|
|
|
23
23
|
Classifier: Topic :: Internet
|
|
24
24
|
Requires-Python: >=3.7
|
|
25
25
|
License-File: LICENSE
|
|
26
|
-
Requires-Dist: google-api-core[grpc]!=2.0.*,!=2.1.*,!=2.10.*,!=2.2.*,!=2.3.*,!=2.4.*,!=2.5.*,!=2.6.*,!=2.7.*,!=2.8.*,!=2.9.*,<3.0.
|
|
27
|
-
Requires-Dist: google-auth!=2.24.0,!=2.25.0,<3.0.
|
|
28
|
-
Requires-Dist: proto-plus<2.0.
|
|
29
|
-
Requires-Dist: proto-plus<2.0.
|
|
30
|
-
Requires-Dist: protobuf!=4.21.0,!=4.21.1,!=4.21.2,!=4.21.3,!=4.21.4,!=4.21.5,<
|
|
26
|
+
Requires-Dist: google-api-core[grpc]!=2.0.*,!=2.1.*,!=2.10.*,!=2.2.*,!=2.3.*,!=2.4.*,!=2.5.*,!=2.6.*,!=2.7.*,!=2.8.*,!=2.9.*,<3.0.0,>=1.34.1
|
|
27
|
+
Requires-Dist: google-auth!=2.24.0,!=2.25.0,<3.0.0,>=2.14.1
|
|
28
|
+
Requires-Dist: proto-plus<2.0.0,>=1.22.3
|
|
29
|
+
Requires-Dist: proto-plus<2.0.0,>=1.25.0; python_version >= "3.13"
|
|
30
|
+
Requires-Dist: protobuf!=4.21.0,!=4.21.1,!=4.21.2,!=4.21.3,!=4.21.4,!=4.21.5,<7.0.0,>=3.20.2
|
|
31
31
|
|
|
32
32
|
Python Client for Kubernetes Engine
|
|
33
33
|
===================================
|
|
@@ -57,12 +57,12 @@ In order to use this library, you first need to go through the following steps:
|
|
|
57
57
|
1. `Select or create a Cloud Platform project.`_
|
|
58
58
|
2. `Enable billing for your project.`_
|
|
59
59
|
3. `Enable the Kubernetes Engine.`_
|
|
60
|
-
4. `
|
|
60
|
+
4. `Set up Authentication.`_
|
|
61
61
|
|
|
62
62
|
.. _Select or create a Cloud Platform project.: https://console.cloud.google.com/project
|
|
63
63
|
.. _Enable billing for your project.: https://cloud.google.com/billing/docs/how-to/modify-project#enable_billing_for_a_project
|
|
64
64
|
.. _Enable the Kubernetes Engine.: https://cloud.google.com/kubernetes-engine/
|
|
65
|
-
..
|
|
65
|
+
.. _Set up Authentication.: https://googleapis.dev/python/google-api-core/latest/auth.html
|
|
66
66
|
|
|
67
67
|
Installation
|
|
68
68
|
~~~~~~~~~~~~
|
|
@@ -137,3 +137,92 @@ Next Steps
|
|
|
137
137
|
|
|
138
138
|
.. _Kubernetes Engine Product documentation: https://cloud.google.com/kubernetes-engine/
|
|
139
139
|
.. _README: https://github.com/googleapis/google-cloud-python/blob/main/README.rst
|
|
140
|
+
|
|
141
|
+
Logging
|
|
142
|
+
-------
|
|
143
|
+
|
|
144
|
+
This library uses the standard Python :code:`logging` functionality to log some RPC events that could be of interest for debugging and monitoring purposes.
|
|
145
|
+
Note the following:
|
|
146
|
+
|
|
147
|
+
#. Logs may contain sensitive information. Take care to **restrict access to the logs** if they are saved, whether it be on local storage or on Google Cloud Logging.
|
|
148
|
+
#. Google may refine the occurrence, level, and content of various log messages in this library without flagging such changes as breaking. **Do not depend on immutability of the logging events**.
|
|
149
|
+
#. By default, the logging events from this library are not handled. You must **explicitly configure log handling** using one of the mechanisms below.
|
|
150
|
+
|
|
151
|
+
Simple, environment-based configuration
|
|
152
|
+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
153
|
+
|
|
154
|
+
To enable logging for this library without any changes in your code, set the :code:`GOOGLE_SDK_PYTHON_LOGGING_SCOPE` environment variable to a valid Google
|
|
155
|
+
logging scope. This configures handling of logging events (at level :code:`logging.DEBUG` or higher) from this library in a default manner, emitting the logged
|
|
156
|
+
messages in a structured format. It does not currently allow customizing the logging levels captured nor the handlers, formatters, etc. used for any logging
|
|
157
|
+
event.
|
|
158
|
+
|
|
159
|
+
A logging scope is a period-separated namespace that begins with :code:`google`, identifying the Python module or package to log.
|
|
160
|
+
|
|
161
|
+
- Valid logging scopes: :code:`google`, :code:`google.cloud.asset.v1`, :code:`google.api`, :code:`google.auth`, etc.
|
|
162
|
+
- Invalid logging scopes: :code:`foo`, :code:`123`, etc.
|
|
163
|
+
|
|
164
|
+
**NOTE**: If the logging scope is invalid, the library does not set up any logging handlers.
|
|
165
|
+
|
|
166
|
+
Environment-Based Examples
|
|
167
|
+
^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
168
|
+
|
|
169
|
+
- Enabling the default handler for all Google-based loggers
|
|
170
|
+
|
|
171
|
+
.. code-block:: console
|
|
172
|
+
|
|
173
|
+
export GOOGLE_SDK_PYTHON_LOGGING_SCOPE=google
|
|
174
|
+
|
|
175
|
+
- Enabling the default handler for a specific Google module (for a client library called :code:`library_v1`):
|
|
176
|
+
|
|
177
|
+
.. code-block:: console
|
|
178
|
+
|
|
179
|
+
export GOOGLE_SDK_PYTHON_LOGGING_SCOPE=google.cloud.library_v1
|
|
180
|
+
|
|
181
|
+
|
|
182
|
+
Advanced, code-based configuration
|
|
183
|
+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
184
|
+
|
|
185
|
+
You can also configure a valid logging scope using Python's standard `logging` mechanism.
|
|
186
|
+
|
|
187
|
+
Code-Based Examples
|
|
188
|
+
^^^^^^^^^^^^^^^^^^^
|
|
189
|
+
|
|
190
|
+
- Configuring a handler for all Google-based loggers
|
|
191
|
+
|
|
192
|
+
.. code-block:: python
|
|
193
|
+
|
|
194
|
+
import logging
|
|
195
|
+
|
|
196
|
+
from google.cloud import library_v1
|
|
197
|
+
|
|
198
|
+
base_logger = logging.getLogger("google")
|
|
199
|
+
base_logger.addHandler(logging.StreamHandler())
|
|
200
|
+
base_logger.setLevel(logging.DEBUG)
|
|
201
|
+
|
|
202
|
+
- Configuring a handler for a specific Google module (for a client library called :code:`library_v1`):
|
|
203
|
+
|
|
204
|
+
.. code-block:: python
|
|
205
|
+
|
|
206
|
+
import logging
|
|
207
|
+
|
|
208
|
+
from google.cloud import library_v1
|
|
209
|
+
|
|
210
|
+
base_logger = logging.getLogger("google.cloud.library_v1")
|
|
211
|
+
base_logger.addHandler(logging.StreamHandler())
|
|
212
|
+
base_logger.setLevel(logging.DEBUG)
|
|
213
|
+
|
|
214
|
+
Logging details
|
|
215
|
+
~~~~~~~~~~~~~~~
|
|
216
|
+
|
|
217
|
+
#. Regardless of which of the mechanisms above you use to configure logging for this library, by default logging events are not propagated up to the root
|
|
218
|
+
logger from the `google`-level logger. If you need the events to be propagated to the root logger, you must explicitly set
|
|
219
|
+
:code:`logging.getLogger("google").propagate = True` in your code.
|
|
220
|
+
#. You can mix the different logging configurations above for different Google modules. For example, you may want use a code-based logging configuration for
|
|
221
|
+
one library, but decide you need to also set up environment-based logging configuration for another library.
|
|
222
|
+
|
|
223
|
+
#. If you attempt to use both code-based and environment-based configuration for the same module, the environment-based configuration will be ineffectual
|
|
224
|
+
if the code -based configuration gets applied first.
|
|
225
|
+
|
|
226
|
+
#. The Google-specific logging configurations (default handlers for environment-based configuration; not propagating logging events to the root logger) get
|
|
227
|
+
executed the first time *any* client library is instantiated in your application, and only if the affected loggers have not been previously configured.
|
|
228
|
+
(This is the reason for 2.i. above.)
|
|
@@ -0,0 +1,197 @@
|
|
|
1
|
+
Python Client for Kubernetes Engine
|
|
2
|
+
===================================
|
|
3
|
+
|
|
4
|
+
|stable| |pypi| |versions|
|
|
5
|
+
|
|
6
|
+
`Kubernetes Engine`_: The Google Kubernetes Engine API is used for building and managing container based applications, powered by the open source Kubernetes technology.
|
|
7
|
+
|
|
8
|
+
- `Client Library Documentation`_
|
|
9
|
+
- `Product Documentation`_
|
|
10
|
+
|
|
11
|
+
.. |stable| image:: https://img.shields.io/badge/support-stable-gold.svg
|
|
12
|
+
:target: https://github.com/googleapis/google-cloud-python/blob/main/README.rst#stability-levels
|
|
13
|
+
.. |pypi| image:: https://img.shields.io/pypi/v/google-cloud-container.svg
|
|
14
|
+
:target: https://pypi.org/project/google-cloud-container/
|
|
15
|
+
.. |versions| image:: https://img.shields.io/pypi/pyversions/google-cloud-container.svg
|
|
16
|
+
:target: https://pypi.org/project/google-cloud-container/
|
|
17
|
+
.. _Kubernetes Engine: https://cloud.google.com/kubernetes-engine/
|
|
18
|
+
.. _Client Library Documentation: https://cloud.google.com/python/docs/reference/container/latest/summary_overview
|
|
19
|
+
.. _Product Documentation: https://cloud.google.com/kubernetes-engine/
|
|
20
|
+
|
|
21
|
+
Quick Start
|
|
22
|
+
-----------
|
|
23
|
+
|
|
24
|
+
In order to use this library, you first need to go through the following steps:
|
|
25
|
+
|
|
26
|
+
1. `Select or create a Cloud Platform project.`_
|
|
27
|
+
2. `Enable billing for your project.`_
|
|
28
|
+
3. `Enable the Kubernetes Engine.`_
|
|
29
|
+
4. `Set up Authentication.`_
|
|
30
|
+
|
|
31
|
+
.. _Select or create a Cloud Platform project.: https://console.cloud.google.com/project
|
|
32
|
+
.. _Enable billing for your project.: https://cloud.google.com/billing/docs/how-to/modify-project#enable_billing_for_a_project
|
|
33
|
+
.. _Enable the Kubernetes Engine.: https://cloud.google.com/kubernetes-engine/
|
|
34
|
+
.. _Set up Authentication.: https://googleapis.dev/python/google-api-core/latest/auth.html
|
|
35
|
+
|
|
36
|
+
Installation
|
|
37
|
+
~~~~~~~~~~~~
|
|
38
|
+
|
|
39
|
+
Install this library in a virtual environment using `venv`_. `venv`_ is a tool that
|
|
40
|
+
creates isolated Python environments. These isolated environments can have separate
|
|
41
|
+
versions of Python packages, which allows you to isolate one project's dependencies
|
|
42
|
+
from the dependencies of other projects.
|
|
43
|
+
|
|
44
|
+
With `venv`_, it's possible to install this library without needing system
|
|
45
|
+
install permissions, and without clashing with the installed system
|
|
46
|
+
dependencies.
|
|
47
|
+
|
|
48
|
+
.. _`venv`: https://docs.python.org/3/library/venv.html
|
|
49
|
+
|
|
50
|
+
|
|
51
|
+
Code samples and snippets
|
|
52
|
+
~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
53
|
+
|
|
54
|
+
Code samples and snippets live in the `samples/`_ folder.
|
|
55
|
+
|
|
56
|
+
.. _samples/: https://github.com/googleapis/google-cloud-python/tree/main/packages/google-cloud-container/samples
|
|
57
|
+
|
|
58
|
+
|
|
59
|
+
Supported Python Versions
|
|
60
|
+
^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
61
|
+
Our client libraries are compatible with all current `active`_ and `maintenance`_ versions of
|
|
62
|
+
Python.
|
|
63
|
+
|
|
64
|
+
Python >= 3.7
|
|
65
|
+
|
|
66
|
+
.. _active: https://devguide.python.org/devcycle/#in-development-main-branch
|
|
67
|
+
.. _maintenance: https://devguide.python.org/devcycle/#maintenance-branches
|
|
68
|
+
|
|
69
|
+
Unsupported Python Versions
|
|
70
|
+
^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
71
|
+
Python <= 3.6
|
|
72
|
+
|
|
73
|
+
If you are using an `end-of-life`_
|
|
74
|
+
version of Python, we recommend that you update as soon as possible to an actively supported version.
|
|
75
|
+
|
|
76
|
+
.. _end-of-life: https://devguide.python.org/devcycle/#end-of-life-branches
|
|
77
|
+
|
|
78
|
+
Mac/Linux
|
|
79
|
+
^^^^^^^^^
|
|
80
|
+
|
|
81
|
+
.. code-block:: console
|
|
82
|
+
|
|
83
|
+
python3 -m venv <your-env>
|
|
84
|
+
source <your-env>/bin/activate
|
|
85
|
+
pip install google-cloud-container
|
|
86
|
+
|
|
87
|
+
|
|
88
|
+
Windows
|
|
89
|
+
^^^^^^^
|
|
90
|
+
|
|
91
|
+
.. code-block:: console
|
|
92
|
+
|
|
93
|
+
py -m venv <your-env>
|
|
94
|
+
.\<your-env>\Scripts\activate
|
|
95
|
+
pip install google-cloud-container
|
|
96
|
+
|
|
97
|
+
Next Steps
|
|
98
|
+
~~~~~~~~~~
|
|
99
|
+
|
|
100
|
+
- Read the `Client Library Documentation`_ for Kubernetes Engine
|
|
101
|
+
to see other available methods on the client.
|
|
102
|
+
- Read the `Kubernetes Engine Product documentation`_ to learn
|
|
103
|
+
more about the product and see How-to Guides.
|
|
104
|
+
- View this `README`_ to see the full list of Cloud
|
|
105
|
+
APIs that we cover.
|
|
106
|
+
|
|
107
|
+
.. _Kubernetes Engine Product documentation: https://cloud.google.com/kubernetes-engine/
|
|
108
|
+
.. _README: https://github.com/googleapis/google-cloud-python/blob/main/README.rst
|
|
109
|
+
|
|
110
|
+
Logging
|
|
111
|
+
-------
|
|
112
|
+
|
|
113
|
+
This library uses the standard Python :code:`logging` functionality to log some RPC events that could be of interest for debugging and monitoring purposes.
|
|
114
|
+
Note the following:
|
|
115
|
+
|
|
116
|
+
#. Logs may contain sensitive information. Take care to **restrict access to the logs** if they are saved, whether it be on local storage or on Google Cloud Logging.
|
|
117
|
+
#. Google may refine the occurrence, level, and content of various log messages in this library without flagging such changes as breaking. **Do not depend on immutability of the logging events**.
|
|
118
|
+
#. By default, the logging events from this library are not handled. You must **explicitly configure log handling** using one of the mechanisms below.
|
|
119
|
+
|
|
120
|
+
Simple, environment-based configuration
|
|
121
|
+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
122
|
+
|
|
123
|
+
To enable logging for this library without any changes in your code, set the :code:`GOOGLE_SDK_PYTHON_LOGGING_SCOPE` environment variable to a valid Google
|
|
124
|
+
logging scope. This configures handling of logging events (at level :code:`logging.DEBUG` or higher) from this library in a default manner, emitting the logged
|
|
125
|
+
messages in a structured format. It does not currently allow customizing the logging levels captured nor the handlers, formatters, etc. used for any logging
|
|
126
|
+
event.
|
|
127
|
+
|
|
128
|
+
A logging scope is a period-separated namespace that begins with :code:`google`, identifying the Python module or package to log.
|
|
129
|
+
|
|
130
|
+
- Valid logging scopes: :code:`google`, :code:`google.cloud.asset.v1`, :code:`google.api`, :code:`google.auth`, etc.
|
|
131
|
+
- Invalid logging scopes: :code:`foo`, :code:`123`, etc.
|
|
132
|
+
|
|
133
|
+
**NOTE**: If the logging scope is invalid, the library does not set up any logging handlers.
|
|
134
|
+
|
|
135
|
+
Environment-Based Examples
|
|
136
|
+
^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
137
|
+
|
|
138
|
+
- Enabling the default handler for all Google-based loggers
|
|
139
|
+
|
|
140
|
+
.. code-block:: console
|
|
141
|
+
|
|
142
|
+
export GOOGLE_SDK_PYTHON_LOGGING_SCOPE=google
|
|
143
|
+
|
|
144
|
+
- Enabling the default handler for a specific Google module (for a client library called :code:`library_v1`):
|
|
145
|
+
|
|
146
|
+
.. code-block:: console
|
|
147
|
+
|
|
148
|
+
export GOOGLE_SDK_PYTHON_LOGGING_SCOPE=google.cloud.library_v1
|
|
149
|
+
|
|
150
|
+
|
|
151
|
+
Advanced, code-based configuration
|
|
152
|
+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
153
|
+
|
|
154
|
+
You can also configure a valid logging scope using Python's standard `logging` mechanism.
|
|
155
|
+
|
|
156
|
+
Code-Based Examples
|
|
157
|
+
^^^^^^^^^^^^^^^^^^^
|
|
158
|
+
|
|
159
|
+
- Configuring a handler for all Google-based loggers
|
|
160
|
+
|
|
161
|
+
.. code-block:: python
|
|
162
|
+
|
|
163
|
+
import logging
|
|
164
|
+
|
|
165
|
+
from google.cloud import library_v1
|
|
166
|
+
|
|
167
|
+
base_logger = logging.getLogger("google")
|
|
168
|
+
base_logger.addHandler(logging.StreamHandler())
|
|
169
|
+
base_logger.setLevel(logging.DEBUG)
|
|
170
|
+
|
|
171
|
+
- Configuring a handler for a specific Google module (for a client library called :code:`library_v1`):
|
|
172
|
+
|
|
173
|
+
.. code-block:: python
|
|
174
|
+
|
|
175
|
+
import logging
|
|
176
|
+
|
|
177
|
+
from google.cloud import library_v1
|
|
178
|
+
|
|
179
|
+
base_logger = logging.getLogger("google.cloud.library_v1")
|
|
180
|
+
base_logger.addHandler(logging.StreamHandler())
|
|
181
|
+
base_logger.setLevel(logging.DEBUG)
|
|
182
|
+
|
|
183
|
+
Logging details
|
|
184
|
+
~~~~~~~~~~~~~~~
|
|
185
|
+
|
|
186
|
+
#. Regardless of which of the mechanisms above you use to configure logging for this library, by default logging events are not propagated up to the root
|
|
187
|
+
logger from the `google`-level logger. If you need the events to be propagated to the root logger, you must explicitly set
|
|
188
|
+
:code:`logging.getLogger("google").propagate = True` in your code.
|
|
189
|
+
#. You can mix the different logging configurations above for different Google modules. For example, you may want use a code-based logging configuration for
|
|
190
|
+
one library, but decide you need to also set up environment-based logging configuration for another library.
|
|
191
|
+
|
|
192
|
+
#. If you attempt to use both code-based and environment-based configuration for the same module, the environment-based configuration will be ineffectual
|
|
193
|
+
if the code -based configuration gets applied first.
|
|
194
|
+
|
|
195
|
+
#. The Google-specific logging configurations (default handlers for environment-based configuration; not propagating logging events to the root logger) get
|
|
196
|
+
executed the first time *any* client library is instantiated in your application, and only if the affected loggers have not been previously configured.
|
|
197
|
+
(This is the reason for 2.i. above.)
|
{google_cloud_container-2.56.0 → google_cloud_container-2.57.0}/google/cloud/container/__init__.py
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
# -*- coding: utf-8 -*-
|
|
2
|
-
# Copyright
|
|
2
|
+
# Copyright 2025 Google LLC
|
|
3
3
|
#
|
|
4
4
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
5
|
# you may not use this file except in compliance with the License.
|
|
@@ -32,7 +32,9 @@ from google.cloud.container_v1.types.cluster_service import (
|
|
|
32
32
|
AddonsConfig,
|
|
33
33
|
AdvancedDatapathObservabilityConfig,
|
|
34
34
|
AdvancedMachineFeatures,
|
|
35
|
+
AnonymousAuthenticationConfig,
|
|
35
36
|
AuthenticatorGroupsConfig,
|
|
37
|
+
AutoMonitoringConfig,
|
|
36
38
|
Autopilot,
|
|
37
39
|
AutopilotCompatibilityIssue,
|
|
38
40
|
AutoprovisioningNodePoolDefaults,
|
|
@@ -48,6 +50,7 @@ from google.cloud.container_v1.types.cluster_service import (
|
|
|
48
50
|
Cluster,
|
|
49
51
|
ClusterAutoscaling,
|
|
50
52
|
ClusterUpdate,
|
|
53
|
+
ClusterUpgradeInfo,
|
|
51
54
|
CompleteIPRotationRequest,
|
|
52
55
|
CompleteNodePoolUpgradeRequest,
|
|
53
56
|
CompliancePostureConfig,
|
|
@@ -70,6 +73,8 @@ from google.cloud.container_v1.types.cluster_service import (
|
|
|
70
73
|
EnterpriseConfig,
|
|
71
74
|
EphemeralStorageLocalSsdConfig,
|
|
72
75
|
FastSocket,
|
|
76
|
+
FetchClusterUpgradeInfoRequest,
|
|
77
|
+
FetchNodePoolUpgradeInfoRequest,
|
|
73
78
|
Fleet,
|
|
74
79
|
GatewayAPIConfig,
|
|
75
80
|
GcePersistentDiskCsiDriverConfig,
|
|
@@ -87,6 +92,7 @@ from google.cloud.container_v1.types.cluster_service import (
|
|
|
87
92
|
GkeBackupAgentConfig,
|
|
88
93
|
GPUDriverInstallationConfig,
|
|
89
94
|
GPUSharingConfig,
|
|
95
|
+
HighScaleCheckpointingConfig,
|
|
90
96
|
HorizontalPodAutoscaling,
|
|
91
97
|
HttpLoadBalancing,
|
|
92
98
|
IdentityServiceConfig,
|
|
@@ -119,6 +125,7 @@ from google.cloud.container_v1.types.cluster_service import (
|
|
|
119
125
|
MasterAuth,
|
|
120
126
|
MasterAuthorizedNetworksConfig,
|
|
121
127
|
MaxPodsConstraint,
|
|
128
|
+
MemoryManager,
|
|
122
129
|
MeshCertificates,
|
|
123
130
|
MonitoringComponentConfig,
|
|
124
131
|
MonitoringConfig,
|
|
@@ -138,12 +145,14 @@ from google.cloud.container_v1.types.cluster_service import (
|
|
|
138
145
|
NodePoolDefaults,
|
|
139
146
|
NodePoolLoggingConfig,
|
|
140
147
|
NodePoolUpdateStrategy,
|
|
148
|
+
NodePoolUpgradeInfo,
|
|
141
149
|
NodeTaint,
|
|
142
150
|
NodeTaints,
|
|
143
151
|
NotificationConfig,
|
|
144
152
|
Operation,
|
|
145
153
|
OperationProgress,
|
|
146
154
|
ParallelstoreCsiDriverConfig,
|
|
155
|
+
PodAutoscaling,
|
|
147
156
|
PodCIDROverprovisionConfig,
|
|
148
157
|
PrivateClusterConfig,
|
|
149
158
|
PrivateClusterMasterGlobalAccessConfig,
|
|
@@ -189,10 +198,12 @@ from google.cloud.container_v1.types.cluster_service import (
|
|
|
189
198
|
StatefulHAConfig,
|
|
190
199
|
StatusCondition,
|
|
191
200
|
TimeWindow,
|
|
201
|
+
TopologyManager,
|
|
192
202
|
UpdateClusterRequest,
|
|
193
203
|
UpdateMasterRequest,
|
|
194
204
|
UpdateNodePoolRequest,
|
|
195
205
|
UpgradeAvailableEvent,
|
|
206
|
+
UpgradeDetails,
|
|
196
207
|
UpgradeEvent,
|
|
197
208
|
UpgradeInfoEvent,
|
|
198
209
|
UpgradeResourceType,
|
|
@@ -217,7 +228,9 @@ __all__ = (
|
|
|
217
228
|
"AddonsConfig",
|
|
218
229
|
"AdvancedDatapathObservabilityConfig",
|
|
219
230
|
"AdvancedMachineFeatures",
|
|
231
|
+
"AnonymousAuthenticationConfig",
|
|
220
232
|
"AuthenticatorGroupsConfig",
|
|
233
|
+
"AutoMonitoringConfig",
|
|
221
234
|
"Autopilot",
|
|
222
235
|
"AutopilotCompatibilityIssue",
|
|
223
236
|
"AutoprovisioningNodePoolDefaults",
|
|
@@ -233,6 +246,7 @@ __all__ = (
|
|
|
233
246
|
"Cluster",
|
|
234
247
|
"ClusterAutoscaling",
|
|
235
248
|
"ClusterUpdate",
|
|
249
|
+
"ClusterUpgradeInfo",
|
|
236
250
|
"CompleteIPRotationRequest",
|
|
237
251
|
"CompleteNodePoolUpgradeRequest",
|
|
238
252
|
"CompliancePostureConfig",
|
|
@@ -254,6 +268,8 @@ __all__ = (
|
|
|
254
268
|
"EnterpriseConfig",
|
|
255
269
|
"EphemeralStorageLocalSsdConfig",
|
|
256
270
|
"FastSocket",
|
|
271
|
+
"FetchClusterUpgradeInfoRequest",
|
|
272
|
+
"FetchNodePoolUpgradeInfoRequest",
|
|
257
273
|
"Fleet",
|
|
258
274
|
"GatewayAPIConfig",
|
|
259
275
|
"GcePersistentDiskCsiDriverConfig",
|
|
@@ -271,6 +287,7 @@ __all__ = (
|
|
|
271
287
|
"GkeBackupAgentConfig",
|
|
272
288
|
"GPUDriverInstallationConfig",
|
|
273
289
|
"GPUSharingConfig",
|
|
290
|
+
"HighScaleCheckpointingConfig",
|
|
274
291
|
"HorizontalPodAutoscaling",
|
|
275
292
|
"HttpLoadBalancing",
|
|
276
293
|
"IdentityServiceConfig",
|
|
@@ -301,6 +318,7 @@ __all__ = (
|
|
|
301
318
|
"MasterAuth",
|
|
302
319
|
"MasterAuthorizedNetworksConfig",
|
|
303
320
|
"MaxPodsConstraint",
|
|
321
|
+
"MemoryManager",
|
|
304
322
|
"MeshCertificates",
|
|
305
323
|
"MonitoringComponentConfig",
|
|
306
324
|
"MonitoringConfig",
|
|
@@ -319,12 +337,14 @@ __all__ = (
|
|
|
319
337
|
"NodePoolAutoscaling",
|
|
320
338
|
"NodePoolDefaults",
|
|
321
339
|
"NodePoolLoggingConfig",
|
|
340
|
+
"NodePoolUpgradeInfo",
|
|
322
341
|
"NodeTaint",
|
|
323
342
|
"NodeTaints",
|
|
324
343
|
"NotificationConfig",
|
|
325
344
|
"Operation",
|
|
326
345
|
"OperationProgress",
|
|
327
346
|
"ParallelstoreCsiDriverConfig",
|
|
347
|
+
"PodAutoscaling",
|
|
328
348
|
"PodCIDROverprovisionConfig",
|
|
329
349
|
"PrivateClusterConfig",
|
|
330
350
|
"PrivateClusterMasterGlobalAccessConfig",
|
|
@@ -368,10 +388,12 @@ __all__ = (
|
|
|
368
388
|
"StatefulHAConfig",
|
|
369
389
|
"StatusCondition",
|
|
370
390
|
"TimeWindow",
|
|
391
|
+
"TopologyManager",
|
|
371
392
|
"UpdateClusterRequest",
|
|
372
393
|
"UpdateMasterRequest",
|
|
373
394
|
"UpdateNodePoolRequest",
|
|
374
395
|
"UpgradeAvailableEvent",
|
|
396
|
+
"UpgradeDetails",
|
|
375
397
|
"UpgradeEvent",
|
|
376
398
|
"UpgradeInfoEvent",
|
|
377
399
|
"UsableSubnetwork",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
# -*- coding: utf-8 -*-
|
|
2
|
-
# Copyright
|
|
2
|
+
# Copyright 2025 Google LLC
|
|
3
3
|
#
|
|
4
4
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
5
|
# you may not use this file except in compliance with the License.
|
|
@@ -13,4 +13,4 @@
|
|
|
13
13
|
# See the License for the specific language governing permissions and
|
|
14
14
|
# limitations under the License.
|
|
15
15
|
#
|
|
16
|
-
__version__ = "2.
|
|
16
|
+
__version__ = "2.57.0" # {x-release-please-version}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
# -*- coding: utf-8 -*-
|
|
2
|
-
# Copyright
|
|
2
|
+
# Copyright 2025 Google LLC
|
|
3
3
|
#
|
|
4
4
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
5
|
# you may not use this file except in compliance with the License.
|
|
@@ -27,7 +27,9 @@ from .types.cluster_service import (
|
|
|
27
27
|
AddonsConfig,
|
|
28
28
|
AdvancedDatapathObservabilityConfig,
|
|
29
29
|
AdvancedMachineFeatures,
|
|
30
|
+
AnonymousAuthenticationConfig,
|
|
30
31
|
AuthenticatorGroupsConfig,
|
|
32
|
+
AutoMonitoringConfig,
|
|
31
33
|
Autopilot,
|
|
32
34
|
AutopilotCompatibilityIssue,
|
|
33
35
|
AutoprovisioningNodePoolDefaults,
|
|
@@ -43,6 +45,7 @@ from .types.cluster_service import (
|
|
|
43
45
|
Cluster,
|
|
44
46
|
ClusterAutoscaling,
|
|
45
47
|
ClusterUpdate,
|
|
48
|
+
ClusterUpgradeInfo,
|
|
46
49
|
CompleteIPRotationRequest,
|
|
47
50
|
CompleteNodePoolUpgradeRequest,
|
|
48
51
|
CompliancePostureConfig,
|
|
@@ -65,6 +68,8 @@ from .types.cluster_service import (
|
|
|
65
68
|
EnterpriseConfig,
|
|
66
69
|
EphemeralStorageLocalSsdConfig,
|
|
67
70
|
FastSocket,
|
|
71
|
+
FetchClusterUpgradeInfoRequest,
|
|
72
|
+
FetchNodePoolUpgradeInfoRequest,
|
|
68
73
|
Fleet,
|
|
69
74
|
GatewayAPIConfig,
|
|
70
75
|
GcePersistentDiskCsiDriverConfig,
|
|
@@ -82,6 +87,7 @@ from .types.cluster_service import (
|
|
|
82
87
|
GkeBackupAgentConfig,
|
|
83
88
|
GPUDriverInstallationConfig,
|
|
84
89
|
GPUSharingConfig,
|
|
90
|
+
HighScaleCheckpointingConfig,
|
|
85
91
|
HorizontalPodAutoscaling,
|
|
86
92
|
HttpLoadBalancing,
|
|
87
93
|
IdentityServiceConfig,
|
|
@@ -114,6 +120,7 @@ from .types.cluster_service import (
|
|
|
114
120
|
MasterAuth,
|
|
115
121
|
MasterAuthorizedNetworksConfig,
|
|
116
122
|
MaxPodsConstraint,
|
|
123
|
+
MemoryManager,
|
|
117
124
|
MeshCertificates,
|
|
118
125
|
MonitoringComponentConfig,
|
|
119
126
|
MonitoringConfig,
|
|
@@ -133,12 +140,14 @@ from .types.cluster_service import (
|
|
|
133
140
|
NodePoolDefaults,
|
|
134
141
|
NodePoolLoggingConfig,
|
|
135
142
|
NodePoolUpdateStrategy,
|
|
143
|
+
NodePoolUpgradeInfo,
|
|
136
144
|
NodeTaint,
|
|
137
145
|
NodeTaints,
|
|
138
146
|
NotificationConfig,
|
|
139
147
|
Operation,
|
|
140
148
|
OperationProgress,
|
|
141
149
|
ParallelstoreCsiDriverConfig,
|
|
150
|
+
PodAutoscaling,
|
|
142
151
|
PodCIDROverprovisionConfig,
|
|
143
152
|
PrivateClusterConfig,
|
|
144
153
|
PrivateClusterMasterGlobalAccessConfig,
|
|
@@ -184,10 +193,12 @@ from .types.cluster_service import (
|
|
|
184
193
|
StatefulHAConfig,
|
|
185
194
|
StatusCondition,
|
|
186
195
|
TimeWindow,
|
|
196
|
+
TopologyManager,
|
|
187
197
|
UpdateClusterRequest,
|
|
188
198
|
UpdateMasterRequest,
|
|
189
199
|
UpdateNodePoolRequest,
|
|
190
200
|
UpgradeAvailableEvent,
|
|
201
|
+
UpgradeDetails,
|
|
191
202
|
UpgradeEvent,
|
|
192
203
|
UpgradeInfoEvent,
|
|
193
204
|
UpgradeResourceType,
|
|
@@ -211,7 +222,9 @@ __all__ = (
|
|
|
211
222
|
"AddonsConfig",
|
|
212
223
|
"AdvancedDatapathObservabilityConfig",
|
|
213
224
|
"AdvancedMachineFeatures",
|
|
225
|
+
"AnonymousAuthenticationConfig",
|
|
214
226
|
"AuthenticatorGroupsConfig",
|
|
227
|
+
"AutoMonitoringConfig",
|
|
215
228
|
"AutoUpgradeOptions",
|
|
216
229
|
"Autopilot",
|
|
217
230
|
"AutopilotCompatibilityIssue",
|
|
@@ -228,6 +241,7 @@ __all__ = (
|
|
|
228
241
|
"ClusterAutoscaling",
|
|
229
242
|
"ClusterManagerClient",
|
|
230
243
|
"ClusterUpdate",
|
|
244
|
+
"ClusterUpgradeInfo",
|
|
231
245
|
"CompleteIPRotationRequest",
|
|
232
246
|
"CompleteNodePoolUpgradeRequest",
|
|
233
247
|
"CompliancePostureConfig",
|
|
@@ -250,6 +264,8 @@ __all__ = (
|
|
|
250
264
|
"EnterpriseConfig",
|
|
251
265
|
"EphemeralStorageLocalSsdConfig",
|
|
252
266
|
"FastSocket",
|
|
267
|
+
"FetchClusterUpgradeInfoRequest",
|
|
268
|
+
"FetchNodePoolUpgradeInfoRequest",
|
|
253
269
|
"Fleet",
|
|
254
270
|
"GPUDriverInstallationConfig",
|
|
255
271
|
"GPUSharingConfig",
|
|
@@ -267,6 +283,7 @@ __all__ = (
|
|
|
267
283
|
"GetOperationRequest",
|
|
268
284
|
"GetServerConfigRequest",
|
|
269
285
|
"GkeBackupAgentConfig",
|
|
286
|
+
"HighScaleCheckpointingConfig",
|
|
270
287
|
"HorizontalPodAutoscaling",
|
|
271
288
|
"HttpLoadBalancing",
|
|
272
289
|
"ILBSubsettingConfig",
|
|
@@ -299,6 +316,7 @@ __all__ = (
|
|
|
299
316
|
"MasterAuth",
|
|
300
317
|
"MasterAuthorizedNetworksConfig",
|
|
301
318
|
"MaxPodsConstraint",
|
|
319
|
+
"MemoryManager",
|
|
302
320
|
"MeshCertificates",
|
|
303
321
|
"MonitoringComponentConfig",
|
|
304
322
|
"MonitoringConfig",
|
|
@@ -318,12 +336,14 @@ __all__ = (
|
|
|
318
336
|
"NodePoolDefaults",
|
|
319
337
|
"NodePoolLoggingConfig",
|
|
320
338
|
"NodePoolUpdateStrategy",
|
|
339
|
+
"NodePoolUpgradeInfo",
|
|
321
340
|
"NodeTaint",
|
|
322
341
|
"NodeTaints",
|
|
323
342
|
"NotificationConfig",
|
|
324
343
|
"Operation",
|
|
325
344
|
"OperationProgress",
|
|
326
345
|
"ParallelstoreCsiDriverConfig",
|
|
346
|
+
"PodAutoscaling",
|
|
327
347
|
"PodCIDROverprovisionConfig",
|
|
328
348
|
"PrivateClusterConfig",
|
|
329
349
|
"PrivateClusterMasterGlobalAccessConfig",
|
|
@@ -369,10 +389,12 @@ __all__ = (
|
|
|
369
389
|
"StatefulHAConfig",
|
|
370
390
|
"StatusCondition",
|
|
371
391
|
"TimeWindow",
|
|
392
|
+
"TopologyManager",
|
|
372
393
|
"UpdateClusterRequest",
|
|
373
394
|
"UpdateMasterRequest",
|
|
374
395
|
"UpdateNodePoolRequest",
|
|
375
396
|
"UpgradeAvailableEvent",
|
|
397
|
+
"UpgradeDetails",
|
|
376
398
|
"UpgradeEvent",
|
|
377
399
|
"UpgradeInfoEvent",
|
|
378
400
|
"UpgradeResourceType",
|