Skip to content

Commit 2b75ee3

Browse files
feat(datacatalog): undeprecate resource name helper methods, bump copyright year to 2020, tweak docstring formatting (via synth) (#10228)
1 parent aa9c717 commit 2b75ee3

26 files changed

+144
-3464
lines changed

datacatalog/google/__init__.py

+1-1
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.

datacatalog/google/cloud/__init__.py

+1-1
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.

datacatalog/google/cloud/datacatalog.py

+1-1
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.

datacatalog/google/cloud/datacatalog_v1beta1/gapic/data_catalog_client.py

+7-37
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.
@@ -87,12 +87,7 @@ def from_service_account_file(cls, filename, *args, **kwargs):
8787

8888
@classmethod
8989
def entry_path(cls, project, location, entry_group, entry):
90-
"""DEPRECATED. Return a fully-qualified entry string."""
91-
warnings.warn(
92-
"Resource name helper functions are deprecated.",
93-
PendingDeprecationWarning,
94-
stacklevel=1,
95-
)
90+
"""Return a fully-qualified entry string."""
9691
return google.api_core.path_template.expand(
9792
"projects/{project}/locations/{location}/entryGroups/{entry_group}/entries/{entry}",
9893
project=project,
@@ -103,12 +98,7 @@ def entry_path(cls, project, location, entry_group, entry):
10398

10499
@classmethod
105100
def entry_group_path(cls, project, location, entry_group):
106-
"""DEPRECATED. Return a fully-qualified entry_group string."""
107-
warnings.warn(
108-
"Resource name helper functions are deprecated.",
109-
PendingDeprecationWarning,
110-
stacklevel=1,
111-
)
101+
"""Return a fully-qualified entry_group string."""
112102
return google.api_core.path_template.expand(
113103
"projects/{project}/locations/{location}/entryGroups/{entry_group}",
114104
project=project,
@@ -118,12 +108,7 @@ def entry_group_path(cls, project, location, entry_group):
118108

119109
@classmethod
120110
def field_path(cls, project, location, tag_template, field):
121-
"""DEPRECATED. Return a fully-qualified field string."""
122-
warnings.warn(
123-
"Resource name helper functions are deprecated.",
124-
PendingDeprecationWarning,
125-
stacklevel=1,
126-
)
111+
"""Return a fully-qualified field string."""
127112
return google.api_core.path_template.expand(
128113
"projects/{project}/locations/{location}/tagTemplates/{tag_template}/fields/{field}",
129114
project=project,
@@ -134,12 +119,7 @@ def field_path(cls, project, location, tag_template, field):
134119

135120
@classmethod
136121
def location_path(cls, project, location):
137-
"""DEPRECATED. Return a fully-qualified location string."""
138-
warnings.warn(
139-
"Resource name helper functions are deprecated.",
140-
PendingDeprecationWarning,
141-
stacklevel=1,
142-
)
122+
"""Return a fully-qualified location string."""
143123
return google.api_core.path_template.expand(
144124
"projects/{project}/locations/{location}",
145125
project=project,
@@ -148,12 +128,7 @@ def location_path(cls, project, location):
148128

149129
@classmethod
150130
def tag_path(cls, project, location, entry_group, entry, tag):
151-
"""DEPRECATED. Return a fully-qualified tag string."""
152-
warnings.warn(
153-
"Resource name helper functions are deprecated.",
154-
PendingDeprecationWarning,
155-
stacklevel=1,
156-
)
131+
"""Return a fully-qualified tag string."""
157132
return google.api_core.path_template.expand(
158133
"projects/{project}/locations/{location}/entryGroups/{entry_group}/entries/{entry}/tags/{tag}",
159134
project=project,
@@ -165,12 +140,7 @@ def tag_path(cls, project, location, entry_group, entry, tag):
165140

166141
@classmethod
167142
def tag_template_path(cls, project, location, tag_template):
168-
"""DEPRECATED. Return a fully-qualified tag_template string."""
169-
warnings.warn(
170-
"Resource name helper functions are deprecated.",
171-
PendingDeprecationWarning,
172-
stacklevel=1,
173-
)
143+
"""Return a fully-qualified tag_template string."""
174144
return google.api_core.path_template.expand(
175145
"projects/{project}/locations/{location}/tagTemplates/{tag_template}",
176146
project=project,

datacatalog/google/cloud/datacatalog_v1beta1/gapic/enums.py

+1-1
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.

datacatalog/google/cloud/datacatalog_v1beta1/gapic/policy_tag_manager_client.py

+1-1
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.

datacatalog/google/cloud/datacatalog_v1beta1/gapic/policy_tag_manager_serialization_client.py

+1-1
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.

datacatalog/google/cloud/datacatalog_v1beta1/gapic/transports/data_catalog_grpc_transport.py

+1-1
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.

datacatalog/google/cloud/datacatalog_v1beta1/gapic/transports/policy_tag_manager_grpc_transport.py

+1-1
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.

datacatalog/google/cloud/datacatalog_v1beta1/gapic/transports/policy_tag_manager_serialization_grpc_transport.py

+1-1
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.

datacatalog/google/cloud/datacatalog_v1beta1/proto/datacatalog_pb2.py

+6-6
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

datacatalog/google/cloud/datacatalog_v1beta1/proto/policytagmanager_pb2.py

+10-10
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

datacatalog/google/cloud/datacatalog_v1beta1/proto/policytagmanagerserialization_pb2.py

+4-3
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

datacatalog/google/cloud/datacatalog_v1beta1/proto/schema_pb2.py

+4-3
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

datacatalog/google/cloud/datacatalog_v1beta1/proto/search_pb2.py

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

datacatalog/google/cloud/datacatalog_v1beta1/proto/tags_pb2.py

+8-8
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

datacatalog/google/cloud/datacatalog_v1beta1/proto/timestamps_pb2.py

+2-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

datacatalog/google/cloud/datacatalog_v1beta1/types.py

+1-1
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.

datacatalog/samples/v1beta1/datacatalog_get_entry.py

+1-1
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.

datacatalog/samples/v1beta1/datacatalog_lookup_entry.py

+1-1
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.

datacatalog/samples/v1beta1/datacatalog_lookup_entry_sql_resource.py

+1-1
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.

datacatalog/samples/v1beta1/datacatalog_search.py

+1-1
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)