|
39 | 39 |
|
40 | 40 | // AUTO-GENERATED DOCUMENTATION AND SERVICE |
41 | 41 | /** |
42 | | - * Service Description: Service for configuring sinks used to export log entries outside Stackdriver |
43 | | - * Logging. |
| 42 | + * Service Description: Service for configuring sinks used to export log entries outside of |
| 43 | + * Stackdriver Logging. |
44 | 44 | * |
45 | 45 | * <p>This class provides the ability to make remote calls to the backing service through method |
46 | 46 | * calls that map to API methods. Sample code to get started: |
@@ -218,12 +218,11 @@ public final ConfigServiceV2Settings getSettings() { |
218 | 218 | * } |
219 | 219 | * </code></pre> |
220 | 220 | * |
221 | | - * @param parent Required. The cloud resource containing the sinks. Example: |
222 | | - * `"projects/my-logging-project"`. |
| 221 | + * @param parent Required. The resource name where this sink was created: |
| 222 | + * <p>"projects/[PROJECT_ID]" "organizations/[ORGANIZATION_ID]" |
223 | 223 | * @throws com.google.api.gax.grpc.ApiException if the remote call fails |
224 | 224 | */ |
225 | 225 | public final ListSinksPagedResponse listSinks(String parent) { |
226 | | - PARENT_PATH_TEMPLATE.validate(parent, "listSinks"); |
227 | 226 | ListSinksRequest request = ListSinksRequest.newBuilder().setParent(parent).build(); |
228 | 227 | return listSinks(request); |
229 | 228 | } |
@@ -321,12 +320,13 @@ public final UnaryCallable<ListSinksRequest, ListSinksResponse> listSinksCallabl |
321 | 320 | * } |
322 | 321 | * </code></pre> |
323 | 322 | * |
324 | | - * @param sinkName Required. The resource name of the sink to return. Example: |
325 | | - * `"projects/my-project-id/sinks/my-sink-id"`. |
| 323 | + * @param sinkName Required. The resource name of the sink to return: |
| 324 | + * <p>"projects/[PROJECT_ID]/sinks/[SINK_ID]" |
| 325 | + * "organizations/[ORGANIZATION_ID]/sinks/[SINK_ID]" |
326 | 326 | * @throws com.google.api.gax.grpc.ApiException if the remote call fails |
327 | 327 | */ |
328 | 328 | public final LogSink getSink(String sinkName) { |
329 | | - SINK_PATH_TEMPLATE.validate(sinkName, "getSink"); |
| 329 | + |
330 | 330 | GetSinkRequest request = GetSinkRequest.newBuilder().setSinkName(sinkName).build(); |
331 | 331 | return getSink(request); |
332 | 332 | } |
@@ -390,14 +390,14 @@ public final UnaryCallable<GetSinkRequest, LogSink> getSinkCallable() { |
390 | 390 | * } |
391 | 391 | * </code></pre> |
392 | 392 | * |
393 | | - * @param parent Required. The resource in which to create the sink. Example: |
394 | | - * `"projects/my-project-id"`. The new sink must be provided in the request. |
| 393 | + * @param parent Required. The resource in which to create the sink: |
| 394 | + * <p>"projects/[PROJECT_ID]" "organizations/[ORGANIZATION_ID]" |
395 | 395 | * @param sink Required. The new sink, whose `name` parameter is a sink identifier that is not |
396 | 396 | * already in use. |
397 | 397 | * @throws com.google.api.gax.grpc.ApiException if the remote call fails |
398 | 398 | */ |
399 | 399 | public final LogSink createSink(String parent, LogSink sink) { |
400 | | - PARENT_PATH_TEMPLATE.validate(parent, "createSink"); |
| 400 | + |
401 | 401 | CreateSinkRequest request = |
402 | 402 | CreateSinkRequest.newBuilder().setParent(parent).setSink(sink).build(); |
403 | 403 | return createSink(request); |
@@ -467,14 +467,16 @@ public final UnaryCallable<CreateSinkRequest, LogSink> createSinkCallable() { |
467 | 467 | * </code></pre> |
468 | 468 | * |
469 | 469 | * @param sinkName Required. The resource name of the sink to update, including the parent |
470 | | - * resource and the sink identifier. If the sink does not exist, this method creates the sink. |
471 | | - * Example: `"projects/my-project-id/sinks/my-sink-id"`. |
| 470 | + * resource and the sink identifier: |
| 471 | + * <p>"projects/[PROJECT_ID]/sinks/[SINK_ID]" |
| 472 | + * "organizations/[ORGANIZATION_ID]/sinks/[SINK_ID]" |
| 473 | + * <p>Example: `"projects/my-project-id/sinks/my-sink-id"`. |
472 | 474 | * @param sink Required. The updated sink, whose name is the same identifier that appears as part |
473 | 475 | * of `sinkName`. If `sinkName` does not exist, then this method creates a new sink. |
474 | 476 | * @throws com.google.api.gax.grpc.ApiException if the remote call fails |
475 | 477 | */ |
476 | 478 | public final LogSink updateSink(String sinkName, LogSink sink) { |
477 | | - SINK_PATH_TEMPLATE.validate(sinkName, "updateSink"); |
| 479 | + |
478 | 480 | UpdateSinkRequest request = |
479 | 481 | UpdateSinkRequest.newBuilder().setSinkName(sinkName).setSink(sink).build(); |
480 | 482 | return updateSink(request); |
@@ -543,12 +545,14 @@ public final UnaryCallable<UpdateSinkRequest, LogSink> updateSinkCallable() { |
543 | 545 | * </code></pre> |
544 | 546 | * |
545 | 547 | * @param sinkName Required. The resource name of the sink to delete, including the parent |
546 | | - * resource and the sink identifier. Example: `"projects/my-project-id/sinks/my-sink-id"`. It |
547 | | - * is an error if the sink does not exist. |
| 548 | + * resource and the sink identifier: |
| 549 | + * <p>"projects/[PROJECT_ID]/sinks/[SINK_ID]" |
| 550 | + * "organizations/[ORGANIZATION_ID]/sinks/[SINK_ID]" |
| 551 | + * <p>It is an error if the sink does not exist. |
548 | 552 | * @throws com.google.api.gax.grpc.ApiException if the remote call fails |
549 | 553 | */ |
550 | 554 | public final void deleteSink(String sinkName) { |
551 | | - SINK_PATH_TEMPLATE.validate(sinkName, "deleteSink"); |
| 555 | + |
552 | 556 | DeleteSinkRequest request = DeleteSinkRequest.newBuilder().setSinkName(sinkName).build(); |
553 | 557 | deleteSink(request); |
554 | 558 | } |
|
0 commit comments