Skip to content

Commit b106435

Browse files
chore: Migrate logging synth.py to bazel (#124)
Source-Repo: googleapis/java-logging Source-Sha: c983911 Source-Link: c983911 Author: Vadym Matsishevskyi <[email protected]> Date: Mon Mar 30 13:47:15 2020 -0700 Original-Commit-Message: chore: Migrate logging synth.py to bazel (#124) This PR migrates only synth.py but does not commit the regenerated files. The generation was tested and it works, the updated files are not commited due to breaking changes not related to bazel migration. There is already an open PR with those braking changes: #111
1 parent fb64ef8 commit b106435

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

46 files changed

+499
-602
lines changed

google-cloud-logging/src/main/java/com/google/cloud/logging/v2/package-info.java

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -19,32 +19,32 @@
1919
*
2020
* <p>The interfaces provided are listed below, along with usage samples.
2121
*
22-
* <p>============ ConfigClient ============
22+
* <p>============= LoggingClient =============
2323
*
24-
* <p>Service Description: Service for configuring sinks used to route log entries.
24+
* <p>Service Description: Service for ingesting and querying logs.
2525
*
26-
* <p>Sample for ConfigClient:
26+
* <p>Sample for LoggingClient:
2727
*
2828
* <pre>
2929
* <code>
30-
* try (ConfigClient configClient = ConfigClient.create()) {
31-
* SinkName sinkName = ProjectSinkName.of("[PROJECT]", "[SINK]");
32-
* LogSink response = configClient.getSink(sinkName);
30+
* try (LoggingClient loggingClient = LoggingClient.create()) {
31+
* LogName logName = ProjectLogName.of("[PROJECT]", "[LOG]");
32+
* loggingClient.deleteLog(logName);
3333
* }
3434
* </code>
3535
* </pre>
3636
*
37-
* ============= LoggingClient =============
37+
* ============ ConfigClient ============
3838
*
39-
* <p>Service Description: Service for ingesting and querying logs.
39+
* <p>Service Description: Service for configuring sinks used to route log entries.
4040
*
41-
* <p>Sample for LoggingClient:
41+
* <p>Sample for ConfigClient:
4242
*
4343
* <pre>
4444
* <code>
45-
* try (LoggingClient loggingClient = LoggingClient.create()) {
46-
* LogName logName = ProjectLogName.of("[PROJECT]", "[LOG]");
47-
* loggingClient.deleteLog(logName);
45+
* try (ConfigClient configClient = ConfigClient.create()) {
46+
* SinkName sinkName = ProjectSinkName.of("[PROJECT]", "[SINK]");
47+
* LogSink response = configClient.getSink(sinkName);
4848
* }
4949
* </code>
5050
* </pre>

google-cloud-logging/src/test/java/com/google/cloud/logging/v2/ConfigClientTest.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -72,23 +72,23 @@
7272

7373
@javax.annotation.Generated("by GAPIC")
7474
public class ConfigClientTest {
75-
private static MockConfigServiceV2 mockConfigServiceV2;
7675
private static MockLoggingServiceV2 mockLoggingServiceV2;
76+
private static MockConfigServiceV2 mockConfigServiceV2;
7777
private static MockMetricsServiceV2 mockMetricsServiceV2;
7878
private static MockServiceHelper serviceHelper;
7979
private ConfigClient client;
8080
private LocalChannelProvider channelProvider;
8181

8282
@BeforeClass
8383
public static void startStaticServer() {
84-
mockConfigServiceV2 = new MockConfigServiceV2();
8584
mockLoggingServiceV2 = new MockLoggingServiceV2();
85+
mockConfigServiceV2 = new MockConfigServiceV2();
8686
mockMetricsServiceV2 = new MockMetricsServiceV2();
8787
serviceHelper =
8888
new MockServiceHelper(
8989
UUID.randomUUID().toString(),
9090
Arrays.<MockGrpcService>asList(
91-
mockConfigServiceV2, mockLoggingServiceV2, mockMetricsServiceV2));
91+
mockLoggingServiceV2, mockConfigServiceV2, mockMetricsServiceV2));
9292
serviceHelper.start();
9393
}
9494

google-cloud-logging/src/test/java/com/google/cloud/logging/v2/LoggingClientTest.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -65,23 +65,23 @@
6565

6666
@javax.annotation.Generated("by GAPIC")
6767
public class LoggingClientTest {
68-
private static MockConfigServiceV2 mockConfigServiceV2;
6968
private static MockLoggingServiceV2 mockLoggingServiceV2;
69+
private static MockConfigServiceV2 mockConfigServiceV2;
7070
private static MockMetricsServiceV2 mockMetricsServiceV2;
7171
private static MockServiceHelper serviceHelper;
7272
private LoggingClient client;
7373
private LocalChannelProvider channelProvider;
7474

7575
@BeforeClass
7676
public static void startStaticServer() {
77-
mockConfigServiceV2 = new MockConfigServiceV2();
7877
mockLoggingServiceV2 = new MockLoggingServiceV2();
78+
mockConfigServiceV2 = new MockConfigServiceV2();
7979
mockMetricsServiceV2 = new MockMetricsServiceV2();
8080
serviceHelper =
8181
new MockServiceHelper(
8282
UUID.randomUUID().toString(),
8383
Arrays.<MockGrpcService>asList(
84-
mockConfigServiceV2, mockLoggingServiceV2, mockMetricsServiceV2));
84+
mockLoggingServiceV2, mockConfigServiceV2, mockMetricsServiceV2));
8585
serviceHelper.start();
8686
}
8787

google-cloud-logging/src/test/java/com/google/cloud/logging/v2/MetricsClientTest.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,23 +55,23 @@
5555

5656
@javax.annotation.Generated("by GAPIC")
5757
public class MetricsClientTest {
58-
private static MockConfigServiceV2 mockConfigServiceV2;
5958
private static MockLoggingServiceV2 mockLoggingServiceV2;
59+
private static MockConfigServiceV2 mockConfigServiceV2;
6060
private static MockMetricsServiceV2 mockMetricsServiceV2;
6161
private static MockServiceHelper serviceHelper;
6262
private MetricsClient client;
6363
private LocalChannelProvider channelProvider;
6464

6565
@BeforeClass
6666
public static void startStaticServer() {
67-
mockConfigServiceV2 = new MockConfigServiceV2();
6867
mockLoggingServiceV2 = new MockLoggingServiceV2();
68+
mockConfigServiceV2 = new MockConfigServiceV2();
6969
mockMetricsServiceV2 = new MockMetricsServiceV2();
7070
serviceHelper =
7171
new MockServiceHelper(
7272
UUID.randomUUID().toString(),
7373
Arrays.<MockGrpcService>asList(
74-
mockConfigServiceV2, mockLoggingServiceV2, mockMetricsServiceV2));
74+
mockLoggingServiceV2, mockConfigServiceV2, mockMetricsServiceV2));
7575
serviceHelper.start();
7676
}
7777

0 commit comments

Comments
 (0)