Skip to content

Commit 81791a3

Browse files
feat: make project_id, zone, cluster_id, node_pool optional arguments to methods in cluster_manager_client; change default timeout config; add 2.7 sunset warning; bump copyright year to 2020 (via synth)(#8)
1 parent 6e211f3 commit 81791a3

21 files changed

+4262
-3424
lines changed

packages/google-cloud-container/google/cloud/container.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# -*- coding: utf-8 -*-
22
#
3-
# Copyright 2019 Google LLC
3+
# Copyright 2020 Google LLC
44
#
55
# Licensed under the Apache License, Version 2.0 (the "License");
66
# you may not use this file except in compliance with the License.

packages/google-cloud-container/google/cloud/container_v1/__init__.py

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# -*- coding: utf-8 -*-
22
#
3-
# Copyright 2019 Google LLC
3+
# Copyright 2020 Google LLC
44
#
55
# Licensed under the Apache License, Version 2.0 (the "License");
66
# you may not use this file except in compliance with the License.
@@ -16,12 +16,23 @@
1616

1717

1818
from __future__ import absolute_import
19+
import sys
20+
import warnings
1921

2022
from google.cloud.container_v1 import types
2123
from google.cloud.container_v1.gapic import cluster_manager_client
2224
from google.cloud.container_v1.gapic import enums
2325

2426

27+
if sys.version_info[:2] == (2, 7):
28+
message = (
29+
"A future version of this library will drop support for Python 2.7."
30+
"More details about Python 2 support for Google Cloud Client Libraries"
31+
"can be found at https://cloud.google.com/python/docs/python2-sunset/"
32+
)
33+
warnings.warn(message, DeprecationWarning)
34+
35+
2536
class ClusterManagerClient(cluster_manager_client.ClusterManagerClient):
2637
__doc__ = cluster_manager_client.ClusterManagerClient.__doc__
2738
enums = enums

packages/google-cloud-container/google/cloud/container_v1/gapic/cluster_manager_client.py

Lines changed: 333 additions & 611 deletions
Large diffs are not rendered by default.

packages/google-cloud-container/google/cloud/container_v1/gapic/enums.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# -*- coding: utf-8 -*-
22
#
3-
# Copyright 2019 Google LLC
3+
# Copyright 2020 Google LLC
44
#
55
# Licensed under the Apache License, Version 2.0 (the "License");
66
# you may not use this file except in compliance with the License.

packages/google-cloud-container/google/cloud/container_v1/gapic/transports/cluster_manager_grpc_transport.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# -*- coding: utf-8 -*-
22
#
3-
# Copyright 2019 Google LLC
3+
# Copyright 2020 Google LLC
44
#
55
# Licensed under the Apache License, Version 2.0 (the "License");
66
# you may not use this file except in compliance with the License.

0 commit comments

Comments
 (0)