Skip to content

Commit aae03c5

Browse files
---
yaml --- r: 27661 b: refs/heads/autosynth-datacatalog c: 676291c h: refs/heads/master i: 27659: 3f61ce5
1 parent 5fbcd7e commit aae03c5

3 files changed

Lines changed: 33 additions & 33 deletions

File tree

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,4 +194,4 @@ refs/tags/v0.85.0: dd1c4125c845f8f309f62f02940b738f11b1d8c2
194194
refs/tags/v0.86.0: adbfc3b9e67b06058e3caa5aaa4897079102d2be
195195
refs/tags/v0.87.0: 32837d5fc5563a2a10a1f11b054f0ea44a18df04
196196
refs/heads/allowcolonsinids: 5a44af8de49d149f471a7e4ffcb19e30a0e815b1
197-
refs/heads/autosynth-datacatalog: c95a2235a14bd2e4c91ea2dd27de00953f6efc91
197+
refs/heads/autosynth-datacatalog: 676291c4f791a8034800833c1eaf2f8890f37f1a

branches/autosynth-datacatalog/google-cloud-clients/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1beta1/DataCatalogClient.java

Lines changed: 27 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -100,24 +100,12 @@ public class DataCatalogClient implements BackgroundResource {
100100
private final DataCatalogSettings settings;
101101
private final DataCatalogStub stub;
102102

103-
private static final PathTemplate LOCATION_PATH_TEMPLATE =
104-
PathTemplate.createWithoutUrlEncoding("projects/{project}/locations/{location}");
105-
106103
private static final PathTemplate ENTRY_PATH_TEMPLATE =
107104
PathTemplate.createWithoutUrlEncoding(
108105
"projects/{project}/locations/{location}/entryGroups/{entry_group}/entries/{entry}");
109106

110-
/**
111-
* Formats a string containing the fully-qualified path to represent a location resource.
112-
*
113-
* @deprecated Use the {@link LocationName} class instead.
114-
*/
115-
@Deprecated
116-
public static final String formatLocationName(String project, String location) {
117-
return LOCATION_PATH_TEMPLATE.instantiate(
118-
"project", project,
119-
"location", location);
120-
}
107+
private static final PathTemplate LOCATION_PATH_TEMPLATE =
108+
PathTemplate.createWithoutUrlEncoding("projects/{project}/locations/{location}");
121109

122110
/**
123111
* Formats a string containing the fully-qualified path to represent a entry resource.
@@ -135,23 +123,15 @@ public static final String formatEntryName(
135123
}
136124

137125
/**
138-
* Parses the project from the given fully-qualified path which represents a location resource.
139-
*
140-
* @deprecated Use the {@link LocationName} class instead.
141-
*/
142-
@Deprecated
143-
public static final String parseProjectFromLocationName(String locationName) {
144-
return LOCATION_PATH_TEMPLATE.parse(locationName).get("project");
145-
}
146-
147-
/**
148-
* Parses the location from the given fully-qualified path which represents a location resource.
126+
* Formats a string containing the fully-qualified path to represent a location resource.
149127
*
150128
* @deprecated Use the {@link LocationName} class instead.
151129
*/
152130
@Deprecated
153-
public static final String parseLocationFromLocationName(String locationName) {
154-
return LOCATION_PATH_TEMPLATE.parse(locationName).get("location");
131+
public static final String formatLocationName(String project, String location) {
132+
return LOCATION_PATH_TEMPLATE.instantiate(
133+
"project", project,
134+
"location", location);
155135
}
156136

157137
/**
@@ -194,6 +174,26 @@ public static final String parseEntryFromEntryName(String entryName) {
194174
return ENTRY_PATH_TEMPLATE.parse(entryName).get("entry");
195175
}
196176

177+
/**
178+
* Parses the project from the given fully-qualified path which represents a location resource.
179+
*
180+
* @deprecated Use the {@link LocationName} class instead.
181+
*/
182+
@Deprecated
183+
public static final String parseProjectFromLocationName(String locationName) {
184+
return LOCATION_PATH_TEMPLATE.parse(locationName).get("project");
185+
}
186+
187+
/**
188+
* Parses the location from the given fully-qualified path which represents a location resource.
189+
*
190+
* @deprecated Use the {@link LocationName} class instead.
191+
*/
192+
@Deprecated
193+
public static final String parseLocationFromLocationName(String locationName) {
194+
return LOCATION_PATH_TEMPLATE.parse(locationName).get("location");
195+
}
196+
197197
/** Constructs an instance of DataCatalogClient with default settings. */
198198
public static final DataCatalogClient create() throws IOException {
199199
return create(DataCatalogSettings.newBuilder().build());

branches/autosynth-datacatalog/google-cloud-clients/google-cloud-datacatalog/synth.metadata

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
11
{
2-
"updateTime": "2019-04-18T07:39:13.119904Z",
2+
"updateTime": "2019-04-23T07:38:50.977206Z",
33
"sources": [
44
{
55
"generator": {
66
"name": "artman",
7-
"version": "0.16.25",
8-
"dockerImage": "googleapis/artman@sha256:d9597f983d1d4e61272c63cb97b7d8f8234da9999526c35d357de3d781f0ec1b"
7+
"version": "0.17.0",
8+
"dockerImage": "googleapis/artman@sha256:c58f4ec3838eb4e0718eb1bccc6512bd6850feaa85a360a9e38f6f848ec73bc2"
99
}
1010
},
1111
{
1212
"git": {
1313
"name": "googleapis",
1414
"remote": "https://github.com/googleapis/googleapis.git",
15-
"sha": "d35ca3509160f09d3b0cc5360531751d95f3e292",
16-
"internalRef": "244086609"
15+
"sha": "547e19e7df398e9290e8e3674d7351efc500f9b0",
16+
"internalRef": "244712781"
1717
}
1818
}
1919
],

0 commit comments

Comments
 (0)