|
31 | 31 | import google.api_core.path_template |
32 | 32 | import grpc |
33 | 33 |
|
34 | | -from google.api import monitored_resource_pb2 |
35 | 34 | from google.cloud.logging_v2.gapic import config_service_v2_client_config |
36 | 35 | from google.cloud.logging_v2.gapic import enums |
37 | 36 | from google.cloud.logging_v2.gapic.transports import config_service_v2_grpc_transport |
38 | | -from google.cloud.logging_v2.proto import log_entry_pb2 |
39 | 37 | from google.cloud.logging_v2.proto import logging_config_pb2 |
40 | 38 | from google.cloud.logging_v2.proto import logging_config_pb2_grpc |
41 | | -from google.cloud.logging_v2.proto import logging_pb2 |
42 | | -from google.cloud.logging_v2.proto import logging_pb2_grpc |
43 | 39 | from google.protobuf import empty_pb2 |
44 | 40 | from google.protobuf import field_mask_pb2 |
45 | 41 |
|
|
48 | 44 |
|
49 | 45 |
|
50 | 46 | class ConfigServiceV2Client(object): |
51 | | - """ |
52 | | - Service for configuring sinks used to export log entries out of |
53 | | - Logging. |
54 | | - """ |
| 47 | + """Service for configuring sinks used to route log entries.""" |
55 | 48 |
|
56 | 49 | SERVICE_ADDRESS = "logging.googleapis.com:443" |
57 | 50 | """The default address of the service.""" |
@@ -593,8 +586,10 @@ def update_sink( |
593 | 586 | """ |
594 | 587 | Updates a sink. This method replaces the following fields in the |
595 | 588 | existing sink with values from the new sink: ``destination``, and |
596 | | - ``filter``. The updated sink might also have a new ``writer_identity``; |
597 | | - see the ``unique_writer_identity`` field. |
| 589 | + ``filter``. |
| 590 | +
|
| 591 | + The updated sink might also have a new ``writer_identity``; see the |
| 592 | + ``unique_writer_identity`` field. |
598 | 593 |
|
599 | 594 | Example: |
600 | 595 | >>> from google.cloud import logging_v2 |
@@ -625,11 +620,10 @@ def update_sink( |
625 | 620 |
|
626 | 621 | If a dict is provided, it must be of the same form as the protobuf |
627 | 622 | message :class:`~google.cloud.logging_v2.types.LogSink` |
628 | | - unique_writer_identity (bool): Optional. See |
629 | | - `sinks.create <https://cloud.google.com/logging/docs/api/reference/rest/v2/projects.sinks/create>`__ |
630 | | - for a description of this field. When updating a sink, the effect of |
631 | | - this field on the value of ``writer_identity`` in the updated sink |
632 | | - depends on both the old and new values of this field: |
| 623 | + unique_writer_identity (bool): Optional. See ``sinks.create`` for a description of this field. When |
| 624 | + updating a sink, the effect of this field on the value of |
| 625 | + ``writer_identity`` in the updated sink depends on both the old and new |
| 626 | + values of this field: |
633 | 627 |
|
634 | 628 | - If the old and new values of this field are both false or both true, |
635 | 629 | then there is no change to the sink's ``writer_identity``. |
@@ -1106,10 +1100,11 @@ def update_exclusion( |
1106 | 1100 |
|
1107 | 1101 | If a dict is provided, it must be of the same form as the protobuf |
1108 | 1102 | message :class:`~google.cloud.logging_v2.types.LogExclusion` |
1109 | | - update_mask (Union[dict, ~google.cloud.logging_v2.types.FieldMask]): Required. A nonempty list of fields to change in the existing exclusion. |
1110 | | - New values for the fields are taken from the corresponding fields in the |
1111 | | - ``LogExclusion`` included in this request. Fields not mentioned in |
1112 | | - ``update_mask`` are not changed and are ignored in the request. |
| 1103 | + update_mask (Union[dict, ~google.cloud.logging_v2.types.FieldMask]): Required. A non-empty list of fields to change in the existing |
| 1104 | + exclusion. New values for the fields are taken from the corresponding |
| 1105 | + fields in the ``LogExclusion`` included in this request. Fields not |
| 1106 | + mentioned in ``update_mask`` are not changed and are ignored in the |
| 1107 | + request. |
1113 | 1108 |
|
1114 | 1109 | For example, to change the filter and description of an exclusion, |
1115 | 1110 | specify an ``update_mask`` of ``"filter,description"``. |
|
0 commit comments