FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

chore: update subscription admin client variable names (#492) · googleapis/google-cloud-java@52991fe · GitHub

Commit 52991fe

Browse files
chore: update subscription admin client variable names (#492)
* changes without context autosynth cannot find the source of changes triggered by earlier changes in this repository, or by version upgrades to tools such as linters. * chore: adding docfx doclet resource * chore: updating publish_javadoc to support docfx yml generation * fix: reducing commit Source-Author: Emily Ball <emilyball@google.com> Source-Date: Mon Jan 25 13:29:09 2021 -0800 Source-Repo: googleapis/synthtool Source-Sha: 3816b080296d4d52975079fd26c110dd26ba25af Source-Link: googleapis/synthtool@3816b08
1 parent e9eafe4 commit 52991fe

4 files changed

Lines changed: 22 additions & 8 deletions

File tree

‎.kokoro/release/publish_javadoc.cfg‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,3 +27,6 @@ before_action {
2727
}
2828
}
2929
}
30+
31+
# Downloads docfx doclet resource. This will be in ${KOKORO_GFILE_DIR}/<doclet name>
32+
gfile_resources: "/bigstore/cloud-devrel-kokoro-resources/docfx"

‎google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SubscriptionAdminClient.java‎

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -417,6 +417,7 @@ public final Subscription createSubscription(Subscription request) {
417417
* @deprecated Use {@link #createSubscription(ProjectSubscriptionName, TopicName, PushConfig,
418418
* int)} instead.
419419
*/
420+
@Deprecated
420421
public final Subscription createSubscription(
421422
ProjectSubscriptionName name,
422423
ProjectTopicName topic,
@@ -2118,10 +2119,10 @@ public final Policy setIamPolicy(SetIamPolicyRequest request) {
21182119
* <p>Sample code:
21192120
*
21202121
* <pre><code>
2121-
* try (SubscriptionAdminClient topicAdminClient = SubscriptionAdminClient.create()) {
2122+
* try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
21222123
* String formattedResource = ProjectTopicName.format("[PROJECT]", "[TOPIC]");
21232124
* Policy policy = Policy.newBuilder().build();
2124-
* Policy response = topicAdminClient.setIamPolicy(formattedResource, policy);
2125+
* Policy response = subscriptionAdminClient.setIamPolicy(formattedResource, policy);
21252126
* }
21262127
* </code></pre>
21272128
*
@@ -2133,6 +2134,7 @@ public final Policy setIamPolicy(SetIamPolicyRequest request) {
21332134
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
21342135
* @deprecated Use {@link #setIamPolicy(SetIamPolicyRequest)} instead.
21352136
*/
2137+
@Deprecated
21362138
public final Policy setIamPolicy(String resource, Policy policy) {
21372139
SetIamPolicyRequest request =
21382140
SetIamPolicyRequest.newBuilder().setResource(resource).setPolicy(policy).build();
@@ -2197,9 +2199,9 @@ public final Policy getIamPolicy(GetIamPolicyRequest request) {
21972199
* <p>Sample code:
21982200
*
21992201
* <pre><code>
2200-
* try (SubscriptionAdminClient topicAdminClient = SubscriptionAdminClient.create()) {
2202+
* try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
22012203
* String formattedResource = ProjectTopicName.format("[PROJECT]", "[TOPIC]");
2202-
* Policy response = topicAdminClient.getIamPolicy(formattedResource);
2204+
* Policy response = subscriptionAdminClient.getIamPolicy(formattedResource);
22032205
* }
22042206
* </code></pre>
22052207
*
@@ -2208,6 +2210,7 @@ public final Policy getIamPolicy(GetIamPolicyRequest request) {
22082210
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
22092211
* @deprecated Use {@link #getIamPolicy(GetIamPolicyRequest)} instead.
22102212
*/
2213+
@Deprecated
22112214
public final Policy getIamPolicy(String resource) {
22122215
GetIamPolicyRequest request = GetIamPolicyRequest.newBuilder().setResource(resource).build();
22132216
return getIamPolicy(request);
@@ -2278,10 +2281,10 @@ public final TestIamPermissionsResponse testIamPermissions(TestIamPermissionsReq
22782281
* <p>Sample code:
22792282
*
22802283
* <pre><code>
2281-
* try (SubscriptionAdminClient topicAdminClient = SubscriptionAdminClient.create()) {
2284+
* try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
22822285
* String formattedResource = ProjectTopicName.format("[PROJECT]", "[TOPIC]");
22832286
* List&lt;String&gt; permissions = new ArrayList&lt;&gt;();
2284-
* TestIamPermissionsResponse response = topicAdminClient.testIamPermissions(formattedResource, permissions);
2287+
* TestIamPermissionsResponse response = subscriptionAdminClient.testIamPermissions(formattedResource, permissions);
22852288
* }
22862289
* </code></pre>
22872290
*
@@ -2293,6 +2296,7 @@ public final TestIamPermissionsResponse testIamPermissions(TestIamPermissionsReq
22932296
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
22942297
* @deprecated Use {@link #testIamPermissions(TestIamPermissionsRequest)} instead.
22952298
*/
2299+
@Deprecated
22962300
public final TestIamPermissionsResponse testIamPermissions(
22972301
String resource, List<String> permissions) {
22982302
TestIamPermissionsRequest request =

‎google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/TopicAdminClient.java‎

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -255,6 +255,7 @@ public final Topic createTopic(String name) {
255255
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
256256
* @deprecated Use {@link #createTopic(TopicName)} instead.
257257
*/
258+
@Deprecated
258259
public final Topic createTopic(ProjectTopicName name) {
259260
Topic request = Topic.newBuilder().setName(name == null ? null : name.toString()).build();
260261
return createTopic(request);
@@ -538,6 +539,7 @@ public final Topic getTopic(String topic) {
538539
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
539540
* @deprecated Use {@link #getTopic(TopicName)} instead.
540541
*/
542+
@Deprecated
541543
public final Topic getTopic(ProjectTopicName topic) {
542544
GetTopicRequest request =
543545
GetTopicRequest.newBuilder().setTopic(topic == null ? null : topic.toString()).build();
@@ -792,6 +794,7 @@ public final ListTopicSubscriptionsPagedResponse listTopicSubscriptions(String t
792794
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
793795
* @deprecated Use {@link #listTopicSubscriptions(TopicName)} instead.
794796
*/
797+
@Deprecated
795798
public final ListTopicSubscriptionsPagedResponse listTopicSubscriptions(ProjectTopicName topic) {
796799
ListTopicSubscriptionsRequest request =
797800
ListTopicSubscriptionsRequest.newBuilder()
@@ -1106,6 +1109,7 @@ public final void deleteTopic(String topic) {
11061109
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
11071110
* @deprecated Use {@link #deleteTopic(TopicName)} instead.
11081111
*/
1112+
@Deprecated
11091113
public final void deleteTopic(ProjectTopicName topic) {
11101114
DeleteTopicRequest request =
11111115
DeleteTopicRequest.newBuilder().setTopic(topic == null ? null : topic.toString()).build();
@@ -1214,6 +1218,7 @@ public final Policy setIamPolicy(SetIamPolicyRequest request) {
12141218
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
12151219
* @deprecated Use {@link #setIamPolicy(SetIamPolicyRequest)} instead.
12161220
*/
1221+
@Deprecated
12171222
public final Policy setIamPolicy(String resource, Policy policy) {
12181223
SetIamPolicyRequest request =
12191224
SetIamPolicyRequest.newBuilder().setResource(resource).setPolicy(policy).build();
@@ -1289,6 +1294,7 @@ public final Policy getIamPolicy(GetIamPolicyRequest request) {
12891294
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
12901295
* @deprecated Use {@link #getIamPolicy(GetIamPolicyRequest)} instead.
12911296
*/
1297+
@Deprecated
12921298
public final Policy getIamPolicy(String resource) {
12931299
GetIamPolicyRequest request = GetIamPolicyRequest.newBuilder().setResource(resource).build();
12941300
return getIamPolicy(request);
@@ -1374,6 +1380,7 @@ public final TestIamPermissionsResponse testIamPermissions(TestIamPermissionsReq
13741380
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
13751381
* @deprecated Use {@link #testIamPermissions(TestIamPermissionsRequest)} instead.
13761382
*/
1383+
@Deprecated
13771384
public final TestIamPermissionsResponse testIamPermissions(
13781385
String resource, List<String> permissions) {
13791386
TestIamPermissionsRequest request =

‎synth.metadata‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"git": {
55
"name": ".",
66
"remote": "https://github.com/googleapis/java-pubsub.git",
7-
"sha": "ad3b82d029f2ef4098f2f1fa9fd2878e969e50fb"
7+
"sha": "d30c26c008a1f642d89985b5cc42377547a782a9"
88
}
99
},
1010
{
@@ -19,7 +19,7 @@
1919
"git": {
2020
"name": "synthtool",
2121
"remote": "https://github.com/googleapis/synthtool.git",
22-
"sha": "6133907dbb3ddab204a17a15d5c53ec0aae9b033"
22+
"sha": "3816b080296d4d52975079fd26c110dd26ba25af"
2323
}
2424
}
2525
],

0 commit comments

Comments
 (0)

Back | FazBrowse Home | New Git URL