Skip to content

Commit 4e8151c

Browse files
[CHANGE ME] Re-generated asset to pick up changes in the API or client library generator.
1 parent c6d953b commit 4e8151c

File tree

7 files changed

+3566
-29
lines changed

7 files changed

+3566
-29
lines changed

asset/google/cloud/asset_v1/__init__.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,23 @@
1616

1717

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

2022
from google.cloud.asset_v1 import types
2123
from google.cloud.asset_v1.gapic import asset_service_client
2224
from google.cloud.asset_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 AssetServiceClient(asset_service_client.AssetServiceClient):
2637
__doc__ = asset_service_client.AssetServiceClient.__doc__
2738
enums = enums

asset/google/cloud/asset_v1/gapic/asset_service_client.py

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -78,24 +78,14 @@ def from_service_account_file(cls, filename, *args, **kwargs):
7878

7979
@classmethod
8080
def feed_path(cls, project, feed):
81-
"""DEPRECATED. Return a fully-qualified feed string."""
82-
warnings.warn(
83-
"Resource name helper functions are deprecated.",
84-
PendingDeprecationWarning,
85-
stacklevel=1,
86-
)
81+
"""Return a fully-qualified feed string."""
8782
return google.api_core.path_template.expand(
8883
"projects/{project}/feeds/{feed}", project=project, feed=feed
8984
)
9085

9186
@classmethod
9287
def project_path(cls, project):
93-
"""DEPRECATED. Return a fully-qualified project string."""
94-
warnings.warn(
95-
"Resource name helper functions are deprecated.",
96-
PendingDeprecationWarning,
97-
stacklevel=1,
98-
)
88+
"""Return a fully-qualified project string."""
9989
return google.api_core.path_template.expand(
10090
"projects/{project}", project=project
10191
)

asset/google/cloud/asset_v1beta1/__init__.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,23 @@
1616

1717

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

2022
from google.cloud.asset_v1beta1 import types
2123
from google.cloud.asset_v1beta1.gapic import asset_service_client
2224
from google.cloud.asset_v1beta1.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 AssetServiceClient(asset_service_client.AssetServiceClient):
2637
__doc__ = asset_service_client.AssetServiceClient.__doc__
2738
enums = enums

asset/google/cloud/asset_v1beta1/gapic/asset_service_client.py

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -76,12 +76,7 @@ def from_service_account_file(cls, filename, *args, **kwargs):
7676

7777
@classmethod
7878
def project_path(cls, project):
79-
"""DEPRECATED. Return a fully-qualified project string."""
80-
warnings.warn(
81-
"Resource name helper functions are deprecated.",
82-
PendingDeprecationWarning,
83-
stacklevel=1,
84-
)
79+
"""Return a fully-qualified project string."""
8580
return google.api_core.path_template.expand(
8681
"projects/{project}", project=project
8782
)

asset/google/cloud/asset_v1p2beta1/__init__.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,23 @@
1616

1717

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

2022
from google.cloud.asset_v1p2beta1 import types
2123
from google.cloud.asset_v1p2beta1.gapic import asset_service_client
2224
from google.cloud.asset_v1p2beta1.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 AssetServiceClient(asset_service_client.AssetServiceClient):
2637
__doc__ = asset_service_client.AssetServiceClient.__doc__
2738
enums = enums

asset/google/cloud/asset_v1p2beta1/gapic/asset_service_client.py

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -78,12 +78,7 @@ def from_service_account_file(cls, filename, *args, **kwargs):
7878

7979
@classmethod
8080
def feed_path(cls, project, feed):
81-
"""DEPRECATED. Return a fully-qualified feed string."""
82-
warnings.warn(
83-
"Resource name helper functions are deprecated.",
84-
PendingDeprecationWarning,
85-
stacklevel=1,
86-
)
81+
"""Return a fully-qualified feed string."""
8782
return google.api_core.path_template.expand(
8883
"projects/{project}/feeds/{feed}", project=project, feed=feed
8984
)

0 commit comments

Comments
 (0)