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