1// Copyright 2018 Google LLC
2//
3// Licensed under the Apache License, Version 2.0 (the "License");
4// you may not use this file except in compliance with the License.
5// You may obtain a copy of the License at
6//
7//     https://www.apache.org/licenses/LICENSE-2.0
8//
9// Unless required by applicable law or agreed to in writing, software
10// distributed under the License is distributed on an "AS IS" BASIS,
11// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12// See the License for the specific language governing permissions and
13// limitations under the License.
14
15package logging
16
17// ConfigProjectPath returns the path for the project resource.
18//
19// Deprecated: Use
20//   fmt.Sprintf("projects/%s", project)
21// instead.
22func ConfigProjectPath(project string) string {
23	return "" +
24		"projects/" +
25		project +
26		""
27}
28
29// ConfigSinkPath returns the path for the sink resource.
30//
31// Deprecated: Use
32//   fmt.Sprintf("projects/%s/sinks/%s", project, sink)
33// instead.
34func ConfigSinkPath(project, sink string) string {
35	return "" +
36		"projects/" +
37		project +
38		"/sinks/" +
39		sink +
40		""
41}
42
43// ConfigExclusionPath returns the path for the exclusion resource.
44//
45// Deprecated: Use
46//   fmt.Sprintf("projects/%s/exclusions/%s", project, exclusion)
47// instead.
48func ConfigExclusionPath(project, exclusion string) string {
49	return "" +
50		"projects/" +
51		project +
52		"/exclusions/" +
53		exclusion +
54		""
55}
56
57// ProjectPath returns the path for the project resource.
58//
59// Deprecated: Use
60//   fmt.Sprintf("projects/%s", project)
61// instead.
62func ProjectPath(project string) string {
63	return "" +
64		"projects/" +
65		project +
66		""
67}
68
69// LogPath returns the path for the log resource.
70//
71// Deprecated: Use
72//   fmt.Sprintf("projects/%s/logs/%s", project, log)
73// instead.
74func LogPath(project, log string) string {
75	return "" +
76		"projects/" +
77		project +
78		"/logs/" +
79		log +
80		""
81}
82
83// MetricsProjectPath returns the path for the project resource.
84//
85// Deprecated: Use
86//   fmt.Sprintf("projects/%s", project)
87// instead.
88func MetricsProjectPath(project string) string {
89	return "" +
90		"projects/" +
91		project +
92		""
93}
94
95// MetricsMetricPath returns the path for the metric resource.
96//
97// Deprecated: Use
98//   fmt.Sprintf("projects/%s/metrics/%s", project, metric)
99// instead.
100func MetricsMetricPath(project, metric string) string {
101	return "" +
102		"projects/" +
103		project +
104		"/metrics/" +
105		metric +
106		""
107}
108