@@ -77,12 +77,7 @@ def from_service_account_file(cls, filename, *args, **kwargs):
77
77
78
78
@classmethod
79
79
def annotation_path (cls , project , incident , annotation ):
80
- """DEPRECATED. Return a fully-qualified annotation string."""
81
- warnings .warn (
82
- "Resource name helper functions are deprecated." ,
83
- PendingDeprecationWarning ,
84
- stacklevel = 1 ,
85
- )
80
+ """Return a fully-qualified annotation string."""
86
81
return google .api_core .path_template .expand (
87
82
"projects/{project}/incidents/{incident}/annotations/{annotation}" ,
88
83
project = project ,
@@ -92,12 +87,7 @@ def annotation_path(cls, project, incident, annotation):
92
87
93
88
@classmethod
94
89
def artifact_path (cls , project , incident , artifact ):
95
- """DEPRECATED. Return a fully-qualified artifact string."""
96
- warnings .warn (
97
- "Resource name helper functions are deprecated." ,
98
- PendingDeprecationWarning ,
99
- stacklevel = 1 ,
100
- )
90
+ """Return a fully-qualified artifact string."""
101
91
return google .api_core .path_template .expand (
102
92
"projects/{project}/incidents/{incident}/artifacts/{artifact}" ,
103
93
project = project ,
@@ -107,12 +97,7 @@ def artifact_path(cls, project, incident, artifact):
107
97
108
98
@classmethod
109
99
def incident_path (cls , project , incident ):
110
- """DEPRECATED. Return a fully-qualified incident string."""
111
- warnings .warn (
112
- "Resource name helper functions are deprecated." ,
113
- PendingDeprecationWarning ,
114
- stacklevel = 1 ,
115
- )
100
+ """Return a fully-qualified incident string."""
116
101
return google .api_core .path_template .expand (
117
102
"projects/{project}/incidents/{incident}" ,
118
103
project = project ,
@@ -121,24 +106,14 @@ def incident_path(cls, project, incident):
121
106
122
107
@classmethod
123
108
def project_path (cls , project ):
124
- """DEPRECATED. Return a fully-qualified project string."""
125
- warnings .warn (
126
- "Resource name helper functions are deprecated." ,
127
- PendingDeprecationWarning ,
128
- stacklevel = 1 ,
129
- )
109
+ """Return a fully-qualified project string."""
130
110
return google .api_core .path_template .expand (
131
111
"projects/{project}" , project = project
132
112
)
133
113
134
114
@classmethod
135
115
def role_assignment_path (cls , project , incident , role_assignment ):
136
- """DEPRECATED. Return a fully-qualified role_assignment string."""
137
- warnings .warn (
138
- "Resource name helper functions are deprecated." ,
139
- PendingDeprecationWarning ,
140
- stacklevel = 1 ,
141
- )
116
+ """Return a fully-qualified role_assignment string."""
142
117
return google .api_core .path_template .expand (
143
118
"projects/{project}/incidents/{incident}/roleAssignments/{role_assignment}" ,
144
119
project = project ,
@@ -148,24 +123,14 @@ def role_assignment_path(cls, project, incident, role_assignment):
148
123
149
124
@classmethod
150
125
def signal_path (cls , project , signal ):
151
- """DEPRECATED. Return a fully-qualified signal string."""
152
- warnings .warn (
153
- "Resource name helper functions are deprecated." ,
154
- PendingDeprecationWarning ,
155
- stacklevel = 1 ,
156
- )
126
+ """Return a fully-qualified signal string."""
157
127
return google .api_core .path_template .expand (
158
128
"projects/{project}/signals/{signal}" , project = project , signal = signal
159
129
)
160
130
161
131
@classmethod
162
132
def subscription_path (cls , project , incident , subscription ):
163
- """DEPRECATED. Return a fully-qualified subscription string."""
164
- warnings .warn (
165
- "Resource name helper functions are deprecated." ,
166
- PendingDeprecationWarning ,
167
- stacklevel = 1 ,
168
- )
133
+ """Return a fully-qualified subscription string."""
169
134
return google .api_core .path_template .expand (
170
135
"projects/{project}/incidents/{incident}/subscriptions/{subscription}" ,
171
136
project = project ,
@@ -175,12 +140,7 @@ def subscription_path(cls, project, incident, subscription):
175
140
176
141
@classmethod
177
142
def tag_path (cls , project , incident , tag ):
178
- """DEPRECATED. Return a fully-qualified tag string."""
179
- warnings .warn (
180
- "Resource name helper functions are deprecated." ,
181
- PendingDeprecationWarning ,
182
- stacklevel = 1 ,
183
- )
143
+ """Return a fully-qualified tag string."""
184
144
return google .api_core .path_template .expand (
185
145
"projects/{project}/incidents/{incident}/tags/{tag}" ,
186
146
project = project ,
0 commit comments