Debian Codegraph @

docs/dyn/logging_v2.organizations.sinks.html

raw
1 <html><body>
2 <style>
3
4 body, h1, h2, h3, div, span, p, pre, a {
5 margin: 0;
6 padding: 0;
7 border: 0;
8 font-weight: inherit;
9 font-style: inherit;
10 font-size: 100%;
11 font-family: inherit;
12 vertical-align: baseline;
13 }
14
15 body {
16 font-size: 13px;
17 padding: 1em;
18 }
19
20 h1 {
21 font-size: 26px;
22 margin-bottom: 1em;
23 }
24
25 h2 {
26 font-size: 24px;
27 margin-bottom: 1em;
28 }
29
30 h3 {
31 font-size: 20px;
32 margin-bottom: 1em;
33 margin-top: 1em;
34 }
35
36 pre, code {
37 line-height: 1.5;
38 font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace;
39 }
40
41 pre {
42 margin-top: 0.5em;
43 }
44
45 h1, h2, h3, p {
46 font-family: Arial, sans serif;
47 }
48
49 h1, h2, h3 {
50 border-bottom: solid #CCC 1px;
51 }
52
53 .toc_element {
54 margin-top: 0.5em;
55 }
56
57 .firstline {
58 margin-left: 2 em;
59 }
60
61 .method {
62 margin-top: 1em;
63 border: solid 1px #CCC;
64 padding: 1em;
65 background: #EEE;
66 }
67
68 .details {
69 font-weight: bold;
70 font-size: 14px;
71 }
72
73 </style>
74
75 <h1><a href="logging_v2.html">Cloud Logging API</a> . <a href="logging_v2.organizations.html">organizations</a> . <a href="logging_v2.organizations.sinks.html">sinks</a></h1>
76 <h2>Instance Methods</h2>
77 <p class="toc_element">
78 <code><a href="#close">close()</a></code></p>
79 <p class="firstline">Close httplib2 connections.</p>
80 <p class="toc_element">
81 <code><a href="#create">create(parent, body=None, customWriterIdentity=None, uniqueWriterIdentity=None, x__xgafv=None)</a></code></p>
82 <p class="firstline">Creates a sink that exports specified log entries to a destination. The export begins upon ingress, unless the sink's writer_identity is not permitted to write to the destination. A sink can export log entries only from the resource owning the sink.</p>
83 <p class="toc_element">
84 <code><a href="#delete">delete(sinkName, x__xgafv=None)</a></code></p>
85 <p class="firstline">Deletes a sink. If the sink has a unique writer_identity, then that service account is also deleted.</p>
86 <p class="toc_element">
87 <code><a href="#get">get(sinkName, x__xgafv=None)</a></code></p>
88 <p class="firstline">Gets a sink.</p>
89 <p class="toc_element">
90 <code><a href="#list">list(parent, filter=None, pageSize=None, pageToken=None, x__xgafv=None)</a></code></p>
91 <p class="firstline">Lists sinks.</p>
92 <p class="toc_element">
93 <code><a href="#list_next">list_next()</a></code></p>
94 <p class="firstline">Retrieves the next page of results.</p>
95 <p class="toc_element">
96 <code><a href="#patch">patch(sinkName, body=None, customWriterIdentity=None, uniqueWriterIdentity=None, updateMask=None, x__xgafv=None)</a></code></p>
97 <p class="firstline">Updates a sink. This method replaces the values of the destination and filter fields of the existing sink with the corresponding values from the new sink.The updated sink might also have a new writer_identity; see the unique_writer_identity field.</p>
98 <p class="toc_element">
99 <code><a href="#update">update(sinkName, body=None, customWriterIdentity=None, uniqueWriterIdentity=None, updateMask=None, x__xgafv=None)</a></code></p>
100 <p class="firstline">Updates a sink. This method replaces the values of the destination and filter fields of the existing sink with the corresponding values from the new sink.The updated sink might also have a new writer_identity; see the unique_writer_identity field.</p>
101 <h3>Method Details</h3>
102 <div class="method">
103 <code class="details" id="close">close()</code>
104 <pre>Close httplib2 connections.</pre>
105 </div>
106
107 <div class="method">
108 <code class="details" id="create">create(parent, body=None, customWriterIdentity=None, uniqueWriterIdentity=None, x__xgafv=None)</code>
109 <pre>Creates a sink that exports specified log entries to a destination. The export begins upon ingress, unless the sink&#x27;s writer_identity is not permitted to write to the destination. A sink can export log entries only from the resource owning the sink.
110
111 Args:
112 parent: string, Required. The resource in which to create the sink: &quot;projects/[PROJECT_ID]&quot; &quot;organizations/[ORGANIZATION_ID]&quot; &quot;billingAccounts/[BILLING_ACCOUNT_ID]&quot; &quot;folders/[FOLDER_ID]&quot; For examples:&quot;projects/my-project&quot; &quot;organizations/123456789&quot; (required)
113 body: object, The request body.
114 The object takes the form of:
115
116 { # Describes a sink used to export log entries to one of the following destinations: a Cloud Logging log bucket, a Cloud Storage bucket, a BigQuery dataset, a Pub/Sub topic, a Cloud project.A logs filter controls which log entries are exported. The sink must be created within a project, organization, billing account, or folder.
117 &quot;bigqueryOptions&quot;: { # Options that change functionality of a sink exporting data to BigQuery. # Optional. Options that affect sinks exporting data to BigQuery.
118 &quot;usePartitionedTables&quot;: True or False, # Optional. Whether to use BigQuery&#x27;s partition tables (https://docs.cloud.google.com/bigquery/docs/partitioned-tables). By default, Cloud Logging creates dated tables based on the log entries&#x27; timestamps, e.g. syslog_20170523. With partitioned tables the date suffix is no longer present and special query syntax (https://docs.cloud.google.com/bigquery/docs/querying-partitioned-tables) has to be used instead. In both cases, tables are sharded based on UTC timezone.
119 &quot;usesTimestampColumnPartitioning&quot;: True or False, # Output only. True if new timestamp column based partitioning is in use, false if legacy ingress-time partitioning is in use.All new sinks will have this field set true and will use timestamp column based partitioning. If use_partitioned_tables is false, this value has no meaning and will be false. Legacy sinks using partitioned tables will have this field set to false.
120 },
121 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The creation timestamp of the sink.This field may not be present for older sinks.
122 &quot;description&quot;: &quot;A String&quot;, # Optional. A description of this sink.The maximum length of the description is 8000 characters.
123 &quot;destination&quot;: &quot;A String&quot;, # Required. The export destination: &quot;storage.googleapis.com/[GCS_BUCKET]&quot; &quot;bigquery.googleapis.com/projects/[PROJECT_ID]/datasets/[DATASET]&quot; &quot;pubsub.googleapis.com/projects/[PROJECT_ID]/topics/[TOPIC_ID]&quot; &quot;logging.googleapis.com/projects/[PROJECT_ID]&quot; &quot;logging.googleapis.com/projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]&quot; The sink&#x27;s writer_identity, set when the sink is created, must have permission to write to the destination or else the log entries are not exported. For more information, see Route logs to supported destinations (https://docs.cloud.google.com/logging/docs/export/configure_export_v2).
124 &quot;disabled&quot;: True or False, # Optional. If set to true, then this sink is disabled and it does not export any log entries.
125 &quot;exclusions&quot;: [ # Optional. Log entries that match any of these exclusion filters will not be exported.If a log entry is matched by both filter and one of exclusions it will not be exported.
126 { # Specifies a set of log entries that are filtered out by a sink. If your Google Cloud resource receives a large volume of log entries, you can use exclusions to reduce your chargeable logs. Note that exclusions on organization-level and folder-level sinks don&#x27;t apply to child resources. Note also that you cannot modify the _Required sink or exclude logs from it.
127 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The creation timestamp of the exclusion.This field may not be present for older exclusions.
128 &quot;description&quot;: &quot;A String&quot;, # Optional. A description of this exclusion.
129 &quot;disabled&quot;: True or False, # Optional. If set to True, then this exclusion is disabled and it does not exclude any log entries. You can update an exclusion to change the value of this field.
130 &quot;filter&quot;: &quot;A String&quot;, # Required. An advanced logs filter (https://docs.cloud.google.com/logging/docs/view/building-queries#queries-by-expression) that matches the log entries to be excluded. By using the sample function (https://docs.cloud.google.com/logging/docs/view/logging-query-language#sample), you can exclude less than 100% of the matching log entries.For example, the following query matches 99% of low-severity log entries from Google Cloud Storage buckets:resource.type=gcs_bucket severity&lt;ERROR sample(insertId, 0.99)
131 &quot;name&quot;: &quot;A String&quot;, # Optional. A client-assigned identifier, such as &quot;load-balancer-exclusion&quot;. Identifiers are limited to 100 characters and can include only letters, digits, underscores, hyphens, and periods. First character has to be alphanumeric.
132 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The last update timestamp of the exclusion.This field may not be present for older exclusions.
133 },
134 ],
135 &quot;filter&quot;: &quot;A String&quot;, # Optional. An advanced logs filter (https://docs.cloud.google.com/logging/docs/view/building-queries#queries-by-expression). The only exported log entries are those that are in the resource owning the sink and that match the filter.For example:logName=&quot;projects/[PROJECT_ID]/logs/[LOG_ID]&quot; AND severity&gt;=ERROR
136 &quot;includeChildren&quot;: True or False, # Optional. This field applies only to sinks owned by organizations and folders. If the field is false, the default, only the logs owned by the sink&#x27;s parent resource are available for export. If the field is true, then log entries from all the projects, folders, and billing accounts contained in the sink&#x27;s parent resource are also available for export. Whether a particular log entry from the children is exported depends on the sink&#x27;s filter expression.For example, if this field is true, then the filter resource.type=gce_instance would export all Compute Engine VM instance log entries from all projects in the sink&#x27;s parent.To only export entries from certain child projects, filter on the project part of the log name:logName:(&quot;projects/test-project1/&quot; OR &quot;projects/test-project2/&quot;) AND resource.type=gce_instance
137 &quot;interceptChildren&quot;: True or False, # Optional. This field applies only to sinks owned by organizations and folders.When the value of &#x27;intercept_children&#x27; is true, the following restrictions apply: The sink must have the include_children flag set to true. The sink destination must be a Cloud project.Also, the following behaviors apply: Any logs matched by the sink won&#x27;t be included by non-_Required sinks owned by child resources. The sink appears in the results of a ListSinks call from a child resource if the value of the filter field in its request is either &#x27;in_scope(&quot;ALL&quot;)&#x27; or &#x27;in_scope(&quot;ANCESTOR&quot;)&#x27;.
138 &quot;name&quot;: &quot;A String&quot;, # Optional. The client-assigned sink identifier, unique within the project.For example: &quot;my-syslog-errors-to-pubsub&quot;.Sink identifiers are limited to 100 characters and can include only the following characters: upper and lower-case alphanumeric characters, underscores, hyphens, periods.First character has to be alphanumeric.
139 &quot;outputVersionFormat&quot;: &quot;A String&quot;, # Deprecated. This field is unused.
140 &quot;resourceName&quot;: &quot;A String&quot;, # Output only. The resource name of the sink. &quot;projects/[PROJECT_ID]/sinks/[SINK_NAME] &quot;organizations/[ORGANIZATION_ID]/sinks/[SINK_NAME] &quot;billingAccounts/[BILLING_ACCOUNT_ID]/sinks/[SINK_NAME] &quot;folders/[FOLDER_ID]/sinks/[SINK_NAME] For example: projects/my_project/sinks/SINK_NAME
141 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The last update timestamp of the sink.This field may not be present for older sinks.
142 &quot;writerIdentity&quot;: &quot;A String&quot;, # Output only. An IAM identity—a service account or group—under which Cloud Logging writes the exported log entries to the sink&#x27;s destination. This field is either set by specifying custom_writer_identity or set automatically by sinks.create and sinks.update based on the value of unique_writer_identity in those methods.Until you grant this identity write-access to the destination, log entry exports from this sink will fail. For more information, see Manage access to projects, folders, and organizations (https://docs.cloud.google.com/iam/docs/granting-roles-to-service-accounts#granting_access_to_a_service_account_for_a_resource). Consult the destination service&#x27;s documentation to determine the appropriate IAM roles to assign to the identity.Sinks that have a destination that is a log bucket in the same project as the sink cannot have a writer_identity and no additional permissions are required.
143 }
144
145 customWriterIdentity: string, Optional. The service account provided by the caller that will be used to write the log entries. The format must be serviceAccount:some@email. This field can only be specified when you are routing logs to a log bucket that is in a different project than the sink. When not specified, a Logging service account will automatically be generated.
146 uniqueWriterIdentity: boolean, Optional. Determines the kind of IAM identity returned as writer_identity in the new sink. If this value is omitted or set to false, and if the sink&#x27;s parent is a project, then the value returned as writer_identity is the same group or service account used by Cloud Logging before the addition of writer identities to this API. The sink&#x27;s destination must be in the same project as the sink itself.If this field is set to true, or if the sink is owned by a non-project resource such as an organization, then the value of writer_identity will be a service agent (https://docs.cloud.google.com/iam/docs/service-account-types#service-agents) used by the sinks with the same parent. For more information, see writer_identity in LogSink.
147 x__xgafv: string, V1 error format.
148 Allowed values
149 1 - v1 error format
150 2 - v2 error format
151
152 Returns:
153 An object of the form:
154
155 { # Describes a sink used to export log entries to one of the following destinations: a Cloud Logging log bucket, a Cloud Storage bucket, a BigQuery dataset, a Pub/Sub topic, a Cloud project.A logs filter controls which log entries are exported. The sink must be created within a project, organization, billing account, or folder.
156 &quot;bigqueryOptions&quot;: { # Options that change functionality of a sink exporting data to BigQuery. # Optional. Options that affect sinks exporting data to BigQuery.
157 &quot;usePartitionedTables&quot;: True or False, # Optional. Whether to use BigQuery&#x27;s partition tables (https://docs.cloud.google.com/bigquery/docs/partitioned-tables). By default, Cloud Logging creates dated tables based on the log entries&#x27; timestamps, e.g. syslog_20170523. With partitioned tables the date suffix is no longer present and special query syntax (https://docs.cloud.google.com/bigquery/docs/querying-partitioned-tables) has to be used instead. In both cases, tables are sharded based on UTC timezone.
158 &quot;usesTimestampColumnPartitioning&quot;: True or False, # Output only. True if new timestamp column based partitioning is in use, false if legacy ingress-time partitioning is in use.All new sinks will have this field set true and will use timestamp column based partitioning. If use_partitioned_tables is false, this value has no meaning and will be false. Legacy sinks using partitioned tables will have this field set to false.
159 },
160 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The creation timestamp of the sink.This field may not be present for older sinks.
161 &quot;description&quot;: &quot;A String&quot;, # Optional. A description of this sink.The maximum length of the description is 8000 characters.
162 &quot;destination&quot;: &quot;A String&quot;, # Required. The export destination: &quot;storage.googleapis.com/[GCS_BUCKET]&quot; &quot;bigquery.googleapis.com/projects/[PROJECT_ID]/datasets/[DATASET]&quot; &quot;pubsub.googleapis.com/projects/[PROJECT_ID]/topics/[TOPIC_ID]&quot; &quot;logging.googleapis.com/projects/[PROJECT_ID]&quot; &quot;logging.googleapis.com/projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]&quot; The sink&#x27;s writer_identity, set when the sink is created, must have permission to write to the destination or else the log entries are not exported. For more information, see Route logs to supported destinations (https://docs.cloud.google.com/logging/docs/export/configure_export_v2).
163 &quot;disabled&quot;: True or False, # Optional. If set to true, then this sink is disabled and it does not export any log entries.
164 &quot;exclusions&quot;: [ # Optional. Log entries that match any of these exclusion filters will not be exported.If a log entry is matched by both filter and one of exclusions it will not be exported.
165 { # Specifies a set of log entries that are filtered out by a sink. If your Google Cloud resource receives a large volume of log entries, you can use exclusions to reduce your chargeable logs. Note that exclusions on organization-level and folder-level sinks don&#x27;t apply to child resources. Note also that you cannot modify the _Required sink or exclude logs from it.
166 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The creation timestamp of the exclusion.This field may not be present for older exclusions.
167 &quot;description&quot;: &quot;A String&quot;, # Optional. A description of this exclusion.
168 &quot;disabled&quot;: True or False, # Optional. If set to True, then this exclusion is disabled and it does not exclude any log entries. You can update an exclusion to change the value of this field.
169 &quot;filter&quot;: &quot;A String&quot;, # Required. An advanced logs filter (https://docs.cloud.google.com/logging/docs/view/building-queries#queries-by-expression) that matches the log entries to be excluded. By using the sample function (https://docs.cloud.google.com/logging/docs/view/logging-query-language#sample), you can exclude less than 100% of the matching log entries.For example, the following query matches 99% of low-severity log entries from Google Cloud Storage buckets:resource.type=gcs_bucket severity&lt;ERROR sample(insertId, 0.99)
170 &quot;name&quot;: &quot;A String&quot;, # Optional. A client-assigned identifier, such as &quot;load-balancer-exclusion&quot;. Identifiers are limited to 100 characters and can include only letters, digits, underscores, hyphens, and periods. First character has to be alphanumeric.
171 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The last update timestamp of the exclusion.This field may not be present for older exclusions.
172 },
173 ],
174 &quot;filter&quot;: &quot;A String&quot;, # Optional. An advanced logs filter (https://docs.cloud.google.com/logging/docs/view/building-queries#queries-by-expression). The only exported log entries are those that are in the resource owning the sink and that match the filter.For example:logName=&quot;projects/[PROJECT_ID]/logs/[LOG_ID]&quot; AND severity&gt;=ERROR
175 &quot;includeChildren&quot;: True or False, # Optional. This field applies only to sinks owned by organizations and folders. If the field is false, the default, only the logs owned by the sink&#x27;s parent resource are available for export. If the field is true, then log entries from all the projects, folders, and billing accounts contained in the sink&#x27;s parent resource are also available for export. Whether a particular log entry from the children is exported depends on the sink&#x27;s filter expression.For example, if this field is true, then the filter resource.type=gce_instance would export all Compute Engine VM instance log entries from all projects in the sink&#x27;s parent.To only export entries from certain child projects, filter on the project part of the log name:logName:(&quot;projects/test-project1/&quot; OR &quot;projects/test-project2/&quot;) AND resource.type=gce_instance
176 &quot;interceptChildren&quot;: True or False, # Optional. This field applies only to sinks owned by organizations and folders.When the value of &#x27;intercept_children&#x27; is true, the following restrictions apply: The sink must have the include_children flag set to true. The sink destination must be a Cloud project.Also, the following behaviors apply: Any logs matched by the sink won&#x27;t be included by non-_Required sinks owned by child resources. The sink appears in the results of a ListSinks call from a child resource if the value of the filter field in its request is either &#x27;in_scope(&quot;ALL&quot;)&#x27; or &#x27;in_scope(&quot;ANCESTOR&quot;)&#x27;.
177 &quot;name&quot;: &quot;A String&quot;, # Optional. The client-assigned sink identifier, unique within the project.For example: &quot;my-syslog-errors-to-pubsub&quot;.Sink identifiers are limited to 100 characters and can include only the following characters: upper and lower-case alphanumeric characters, underscores, hyphens, periods.First character has to be alphanumeric.
178 &quot;outputVersionFormat&quot;: &quot;A String&quot;, # Deprecated. This field is unused.
179 &quot;resourceName&quot;: &quot;A String&quot;, # Output only. The resource name of the sink. &quot;projects/[PROJECT_ID]/sinks/[SINK_NAME] &quot;organizations/[ORGANIZATION_ID]/sinks/[SINK_NAME] &quot;billingAccounts/[BILLING_ACCOUNT_ID]/sinks/[SINK_NAME] &quot;folders/[FOLDER_ID]/sinks/[SINK_NAME] For example: projects/my_project/sinks/SINK_NAME
180 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The last update timestamp of the sink.This field may not be present for older sinks.
181 &quot;writerIdentity&quot;: &quot;A String&quot;, # Output only. An IAM identity—a service account or group—under which Cloud Logging writes the exported log entries to the sink&#x27;s destination. This field is either set by specifying custom_writer_identity or set automatically by sinks.create and sinks.update based on the value of unique_writer_identity in those methods.Until you grant this identity write-access to the destination, log entry exports from this sink will fail. For more information, see Manage access to projects, folders, and organizations (https://docs.cloud.google.com/iam/docs/granting-roles-to-service-accounts#granting_access_to_a_service_account_for_a_resource). Consult the destination service&#x27;s documentation to determine the appropriate IAM roles to assign to the identity.Sinks that have a destination that is a log bucket in the same project as the sink cannot have a writer_identity and no additional permissions are required.
182 }</pre>
183 </div>
184
185 <div class="method">
186 <code class="details" id="delete">delete(sinkName, x__xgafv=None)</code>
187 <pre>Deletes a sink. If the sink has a unique writer_identity, then that service account is also deleted.
188
189 Args:
190 sinkName: string, Required. The full resource name of the sink to delete, including the parent resource and the sink identifier: &quot;projects/[PROJECT_ID]/sinks/[SINK_ID]&quot; &quot;organizations/[ORGANIZATION_ID]/sinks/[SINK_ID]&quot; &quot;billingAccounts/[BILLING_ACCOUNT_ID]/sinks/[SINK_ID]&quot; &quot;folders/[FOLDER_ID]/sinks/[SINK_ID]&quot; For example:&quot;projects/my-project/sinks/my-sink&quot; (required)
191 x__xgafv: string, V1 error format.
192 Allowed values
193 1 - v1 error format
194 2 - v2 error format
195
196 Returns:
197 An object of the form:
198
199 { # A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); }
200 }</pre>
201 </div>
202
203 <div class="method">
204 <code class="details" id="get">get(sinkName, x__xgafv=None)</code>
205 <pre>Gets a sink.
206
207 Args:
208 sinkName: string, Required. The resource name of the sink: &quot;projects/[PROJECT_ID]/sinks/[SINK_ID]&quot; &quot;organizations/[ORGANIZATION_ID]/sinks/[SINK_ID]&quot; &quot;billingAccounts/[BILLING_ACCOUNT_ID]/sinks/[SINK_ID]&quot; &quot;folders/[FOLDER_ID]/sinks/[SINK_ID]&quot; For example:&quot;projects/my-project/sinks/my-sink&quot; (required)
209 x__xgafv: string, V1 error format.
210 Allowed values
211 1 - v1 error format
212 2 - v2 error format
213
214 Returns:
215 An object of the form:
216
217 { # Describes a sink used to export log entries to one of the following destinations: a Cloud Logging log bucket, a Cloud Storage bucket, a BigQuery dataset, a Pub/Sub topic, a Cloud project.A logs filter controls which log entries are exported. The sink must be created within a project, organization, billing account, or folder.
218 &quot;bigqueryOptions&quot;: { # Options that change functionality of a sink exporting data to BigQuery. # Optional. Options that affect sinks exporting data to BigQuery.
219 &quot;usePartitionedTables&quot;: True or False, # Optional. Whether to use BigQuery&#x27;s partition tables (https://docs.cloud.google.com/bigquery/docs/partitioned-tables). By default, Cloud Logging creates dated tables based on the log entries&#x27; timestamps, e.g. syslog_20170523. With partitioned tables the date suffix is no longer present and special query syntax (https://docs.cloud.google.com/bigquery/docs/querying-partitioned-tables) has to be used instead. In both cases, tables are sharded based on UTC timezone.
220 &quot;usesTimestampColumnPartitioning&quot;: True or False, # Output only. True if new timestamp column based partitioning is in use, false if legacy ingress-time partitioning is in use.All new sinks will have this field set true and will use timestamp column based partitioning. If use_partitioned_tables is false, this value has no meaning and will be false. Legacy sinks using partitioned tables will have this field set to false.
221 },
222 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The creation timestamp of the sink.This field may not be present for older sinks.
223 &quot;description&quot;: &quot;A String&quot;, # Optional. A description of this sink.The maximum length of the description is 8000 characters.
224 &quot;destination&quot;: &quot;A String&quot;, # Required. The export destination: &quot;storage.googleapis.com/[GCS_BUCKET]&quot; &quot;bigquery.googleapis.com/projects/[PROJECT_ID]/datasets/[DATASET]&quot; &quot;pubsub.googleapis.com/projects/[PROJECT_ID]/topics/[TOPIC_ID]&quot; &quot;logging.googleapis.com/projects/[PROJECT_ID]&quot; &quot;logging.googleapis.com/projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]&quot; The sink&#x27;s writer_identity, set when the sink is created, must have permission to write to the destination or else the log entries are not exported. For more information, see Route logs to supported destinations (https://docs.cloud.google.com/logging/docs/export/configure_export_v2).
225 &quot;disabled&quot;: True or False, # Optional. If set to true, then this sink is disabled and it does not export any log entries.
226 &quot;exclusions&quot;: [ # Optional. Log entries that match any of these exclusion filters will not be exported.If a log entry is matched by both filter and one of exclusions it will not be exported.
227 { # Specifies a set of log entries that are filtered out by a sink. If your Google Cloud resource receives a large volume of log entries, you can use exclusions to reduce your chargeable logs. Note that exclusions on organization-level and folder-level sinks don&#x27;t apply to child resources. Note also that you cannot modify the _Required sink or exclude logs from it.
228 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The creation timestamp of the exclusion.This field may not be present for older exclusions.
229 &quot;description&quot;: &quot;A String&quot;, # Optional. A description of this exclusion.
230 &quot;disabled&quot;: True or False, # Optional. If set to True, then this exclusion is disabled and it does not exclude any log entries. You can update an exclusion to change the value of this field.
231 &quot;filter&quot;: &quot;A String&quot;, # Required. An advanced logs filter (https://docs.cloud.google.com/logging/docs/view/building-queries#queries-by-expression) that matches the log entries to be excluded. By using the sample function (https://docs.cloud.google.com/logging/docs/view/logging-query-language#sample), you can exclude less than 100% of the matching log entries.For example, the following query matches 99% of low-severity log entries from Google Cloud Storage buckets:resource.type=gcs_bucket severity&lt;ERROR sample(insertId, 0.99)
232 &quot;name&quot;: &quot;A String&quot;, # Optional. A client-assigned identifier, such as &quot;load-balancer-exclusion&quot;. Identifiers are limited to 100 characters and can include only letters, digits, underscores, hyphens, and periods. First character has to be alphanumeric.
233 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The last update timestamp of the exclusion.This field may not be present for older exclusions.
234 },
235 ],
236 &quot;filter&quot;: &quot;A String&quot;, # Optional. An advanced logs filter (https://docs.cloud.google.com/logging/docs/view/building-queries#queries-by-expression). The only exported log entries are those that are in the resource owning the sink and that match the filter.For example:logName=&quot;projects/[PROJECT_ID]/logs/[LOG_ID]&quot; AND severity&gt;=ERROR
237 &quot;includeChildren&quot;: True or False, # Optional. This field applies only to sinks owned by organizations and folders. If the field is false, the default, only the logs owned by the sink&#x27;s parent resource are available for export. If the field is true, then log entries from all the projects, folders, and billing accounts contained in the sink&#x27;s parent resource are also available for export. Whether a particular log entry from the children is exported depends on the sink&#x27;s filter expression.For example, if this field is true, then the filter resource.type=gce_instance would export all Compute Engine VM instance log entries from all projects in the sink&#x27;s parent.To only export entries from certain child projects, filter on the project part of the log name:logName:(&quot;projects/test-project1/&quot; OR &quot;projects/test-project2/&quot;) AND resource.type=gce_instance
238 &quot;interceptChildren&quot;: True or False, # Optional. This field applies only to sinks owned by organizations and folders.When the value of &#x27;intercept_children&#x27; is true, the following restrictions apply: The sink must have the include_children flag set to true. The sink destination must be a Cloud project.Also, the following behaviors apply: Any logs matched by the sink won&#x27;t be included by non-_Required sinks owned by child resources. The sink appears in the results of a ListSinks call from a child resource if the value of the filter field in its request is either &#x27;in_scope(&quot;ALL&quot;)&#x27; or &#x27;in_scope(&quot;ANCESTOR&quot;)&#x27;.
239 &quot;name&quot;: &quot;A String&quot;, # Optional. The client-assigned sink identifier, unique within the project.For example: &quot;my-syslog-errors-to-pubsub&quot;.Sink identifiers are limited to 100 characters and can include only the following characters: upper and lower-case alphanumeric characters, underscores, hyphens, periods.First character has to be alphanumeric.
240 &quot;outputVersionFormat&quot;: &quot;A String&quot;, # Deprecated. This field is unused.
241 &quot;resourceName&quot;: &quot;A String&quot;, # Output only. The resource name of the sink. &quot;projects/[PROJECT_ID]/sinks/[SINK_NAME] &quot;organizations/[ORGANIZATION_ID]/sinks/[SINK_NAME] &quot;billingAccounts/[BILLING_ACCOUNT_ID]/sinks/[SINK_NAME] &quot;folders/[FOLDER_ID]/sinks/[SINK_NAME] For example: projects/my_project/sinks/SINK_NAME
242 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The last update timestamp of the sink.This field may not be present for older sinks.
243 &quot;writerIdentity&quot;: &quot;A String&quot;, # Output only. An IAM identity—a service account or group—under which Cloud Logging writes the exported log entries to the sink&#x27;s destination. This field is either set by specifying custom_writer_identity or set automatically by sinks.create and sinks.update based on the value of unique_writer_identity in those methods.Until you grant this identity write-access to the destination, log entry exports from this sink will fail. For more information, see Manage access to projects, folders, and organizations (https://docs.cloud.google.com/iam/docs/granting-roles-to-service-accounts#granting_access_to_a_service_account_for_a_resource). Consult the destination service&#x27;s documentation to determine the appropriate IAM roles to assign to the identity.Sinks that have a destination that is a log bucket in the same project as the sink cannot have a writer_identity and no additional permissions are required.
244 }</pre>
245 </div>
246
247 <div class="method">
248 <code class="details" id="list">list(parent, filter=None, pageSize=None, pageToken=None, x__xgafv=None)</code>
249 <pre>Lists sinks.
250
251 Args:
252 parent: string, Required. The parent resource whose sinks are to be listed: &quot;projects/[PROJECT_ID]&quot; &quot;organizations/[ORGANIZATION_ID]&quot; &quot;billingAccounts/[BILLING_ACCOUNT_ID]&quot; &quot;folders/[FOLDER_ID]&quot; (required)
253 filter: string, Optional. A filter expression to constrain the sinks returned. Today, this only supports the following strings: &#x27;&#x27; &#x27;in_scope(&quot;ALL&quot;)&#x27;, &#x27;in_scope(&quot;ANCESTOR&quot;)&#x27;, &#x27;in_scope(&quot;DEFAULT&quot;)&#x27;.Description of scopes below. ALL: Includes all of the sinks which can be returned in any other scope. ANCESTOR: Includes intercepting sinks owned by ancestor resources. DEFAULT: Includes sinks owned by parent.When the empty string is provided, then the filter &#x27;in_scope(&quot;DEFAULT&quot;)&#x27; is applied.
254 pageSize: integer, Optional. The maximum number of results to return from this request. Non-positive values are ignored. The presence of nextPageToken in the response indicates that more results might be available.
255 pageToken: string, Optional. If present, then retrieve the next batch of results from the preceding call to this method. pageToken must be the value of nextPageToken from the previous response. The values of other method parameters should be identical to those in the previous call.
256 x__xgafv: string, V1 error format.
257 Allowed values
258 1 - v1 error format
259 2 - v2 error format
260
261 Returns:
262 An object of the form:
263
264 { # Result returned from ListSinks.
265 &quot;nextPageToken&quot;: &quot;A String&quot;, # If there might be more results than appear in this response, then nextPageToken is included. To get the next set of results, call the same method again using the value of nextPageToken as pageToken.
266 &quot;sinks&quot;: [ # A list of sinks.
267 { # Describes a sink used to export log entries to one of the following destinations: a Cloud Logging log bucket, a Cloud Storage bucket, a BigQuery dataset, a Pub/Sub topic, a Cloud project.A logs filter controls which log entries are exported. The sink must be created within a project, organization, billing account, or folder.
268 &quot;bigqueryOptions&quot;: { # Options that change functionality of a sink exporting data to BigQuery. # Optional. Options that affect sinks exporting data to BigQuery.
269 &quot;usePartitionedTables&quot;: True or False, # Optional. Whether to use BigQuery&#x27;s partition tables (https://docs.cloud.google.com/bigquery/docs/partitioned-tables). By default, Cloud Logging creates dated tables based on the log entries&#x27; timestamps, e.g. syslog_20170523. With partitioned tables the date suffix is no longer present and special query syntax (https://docs.cloud.google.com/bigquery/docs/querying-partitioned-tables) has to be used instead. In both cases, tables are sharded based on UTC timezone.
270 &quot;usesTimestampColumnPartitioning&quot;: True or False, # Output only. True if new timestamp column based partitioning is in use, false if legacy ingress-time partitioning is in use.All new sinks will have this field set true and will use timestamp column based partitioning. If use_partitioned_tables is false, this value has no meaning and will be false. Legacy sinks using partitioned tables will have this field set to false.
271 },
272 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The creation timestamp of the sink.This field may not be present for older sinks.
273 &quot;description&quot;: &quot;A String&quot;, # Optional. A description of this sink.The maximum length of the description is 8000 characters.
274 &quot;destination&quot;: &quot;A String&quot;, # Required. The export destination: &quot;storage.googleapis.com/[GCS_BUCKET]&quot; &quot;bigquery.googleapis.com/projects/[PROJECT_ID]/datasets/[DATASET]&quot; &quot;pubsub.googleapis.com/projects/[PROJECT_ID]/topics/[TOPIC_ID]&quot; &quot;logging.googleapis.com/projects/[PROJECT_ID]&quot; &quot;logging.googleapis.com/projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]&quot; The sink&#x27;s writer_identity, set when the sink is created, must have permission to write to the destination or else the log entries are not exported. For more information, see Route logs to supported destinations (https://docs.cloud.google.com/logging/docs/export/configure_export_v2).
275 &quot;disabled&quot;: True or False, # Optional. If set to true, then this sink is disabled and it does not export any log entries.
276 &quot;exclusions&quot;: [ # Optional. Log entries that match any of these exclusion filters will not be exported.If a log entry is matched by both filter and one of exclusions it will not be exported.
277 { # Specifies a set of log entries that are filtered out by a sink. If your Google Cloud resource receives a large volume of log entries, you can use exclusions to reduce your chargeable logs. Note that exclusions on organization-level and folder-level sinks don&#x27;t apply to child resources. Note also that you cannot modify the _Required sink or exclude logs from it.
278 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The creation timestamp of the exclusion.This field may not be present for older exclusions.
279 &quot;description&quot;: &quot;A String&quot;, # Optional. A description of this exclusion.
280 &quot;disabled&quot;: True or False, # Optional. If set to True, then this exclusion is disabled and it does not exclude any log entries. You can update an exclusion to change the value of this field.
281 &quot;filter&quot;: &quot;A String&quot;, # Required. An advanced logs filter (https://docs.cloud.google.com/logging/docs/view/building-queries#queries-by-expression) that matches the log entries to be excluded. By using the sample function (https://docs.cloud.google.com/logging/docs/view/logging-query-language#sample), you can exclude less than 100% of the matching log entries.For example, the following query matches 99% of low-severity log entries from Google Cloud Storage buckets:resource.type=gcs_bucket severity&lt;ERROR sample(insertId, 0.99)
282 &quot;name&quot;: &quot;A String&quot;, # Optional. A client-assigned identifier, such as &quot;load-balancer-exclusion&quot;. Identifiers are limited to 100 characters and can include only letters, digits, underscores, hyphens, and periods. First character has to be alphanumeric.
283 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The last update timestamp of the exclusion.This field may not be present for older exclusions.
284 },
285 ],
286 &quot;filter&quot;: &quot;A String&quot;, # Optional. An advanced logs filter (https://docs.cloud.google.com/logging/docs/view/building-queries#queries-by-expression). The only exported log entries are those that are in the resource owning the sink and that match the filter.For example:logName=&quot;projects/[PROJECT_ID]/logs/[LOG_ID]&quot; AND severity&gt;=ERROR
287 &quot;includeChildren&quot;: True or False, # Optional. This field applies only to sinks owned by organizations and folders. If the field is false, the default, only the logs owned by the sink&#x27;s parent resource are available for export. If the field is true, then log entries from all the projects, folders, and billing accounts contained in the sink&#x27;s parent resource are also available for export. Whether a particular log entry from the children is exported depends on the sink&#x27;s filter expression.For example, if this field is true, then the filter resource.type=gce_instance would export all Compute Engine VM instance log entries from all projects in the sink&#x27;s parent.To only export entries from certain child projects, filter on the project part of the log name:logName:(&quot;projects/test-project1/&quot; OR &quot;projects/test-project2/&quot;) AND resource.type=gce_instance
288 &quot;interceptChildren&quot;: True or False, # Optional. This field applies only to sinks owned by organizations and folders.When the value of &#x27;intercept_children&#x27; is true, the following restrictions apply: The sink must have the include_children flag set to true. The sink destination must be a Cloud project.Also, the following behaviors apply: Any logs matched by the sink won&#x27;t be included by non-_Required sinks owned by child resources. The sink appears in the results of a ListSinks call from a child resource if the value of the filter field in its request is either &#x27;in_scope(&quot;ALL&quot;)&#x27; or &#x27;in_scope(&quot;ANCESTOR&quot;)&#x27;.
289 &quot;name&quot;: &quot;A String&quot;, # Optional. The client-assigned sink identifier, unique within the project.For example: &quot;my-syslog-errors-to-pubsub&quot;.Sink identifiers are limited to 100 characters and can include only the following characters: upper and lower-case alphanumeric characters, underscores, hyphens, periods.First character has to be alphanumeric.
290 &quot;outputVersionFormat&quot;: &quot;A String&quot;, # Deprecated. This field is unused.
291 &quot;resourceName&quot;: &quot;A String&quot;, # Output only. The resource name of the sink. &quot;projects/[PROJECT_ID]/sinks/[SINK_NAME] &quot;organizations/[ORGANIZATION_ID]/sinks/[SINK_NAME] &quot;billingAccounts/[BILLING_ACCOUNT_ID]/sinks/[SINK_NAME] &quot;folders/[FOLDER_ID]/sinks/[SINK_NAME] For example: projects/my_project/sinks/SINK_NAME
292 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The last update timestamp of the sink.This field may not be present for older sinks.
293 &quot;writerIdentity&quot;: &quot;A String&quot;, # Output only. An IAM identity—a service account or group—under which Cloud Logging writes the exported log entries to the sink&#x27;s destination. This field is either set by specifying custom_writer_identity or set automatically by sinks.create and sinks.update based on the value of unique_writer_identity in those methods.Until you grant this identity write-access to the destination, log entry exports from this sink will fail. For more information, see Manage access to projects, folders, and organizations (https://docs.cloud.google.com/iam/docs/granting-roles-to-service-accounts#granting_access_to_a_service_account_for_a_resource). Consult the destination service&#x27;s documentation to determine the appropriate IAM roles to assign to the identity.Sinks that have a destination that is a log bucket in the same project as the sink cannot have a writer_identity and no additional permissions are required.
294 },
295 ],
296 }</pre>
297 </div>
298
299 <div class="method">
300 <code class="details" id="list_next">list_next()</code>
301 <pre>Retrieves the next page of results.
302
303 Args:
304 previous_request: The request for the previous page. (required)
305 previous_response: The response from the request for the previous page. (required)
306
307 Returns:
308 A request object that you can call &#x27;execute()&#x27; on to request the next
309 page. Returns None if there are no more items in the collection.
310 </pre>
311 </div>
312
313 <div class="method">
314 <code class="details" id="patch">patch(sinkName, body=None, customWriterIdentity=None, uniqueWriterIdentity=None, updateMask=None, x__xgafv=None)</code>
315 <pre>Updates a sink. This method replaces the values of the destination and filter fields of the existing sink with the corresponding values from the new sink.The updated sink might also have a new writer_identity; see the unique_writer_identity field.
316
317 Args:
318 sinkName: string, Required. The full resource name of the sink to update, including the parent resource and the sink identifier: &quot;projects/[PROJECT_ID]/sinks/[SINK_ID]&quot; &quot;organizations/[ORGANIZATION_ID]/sinks/[SINK_ID]&quot; &quot;billingAccounts/[BILLING_ACCOUNT_ID]/sinks/[SINK_ID]&quot; &quot;folders/[FOLDER_ID]/sinks/[SINK_ID]&quot; For example:&quot;projects/my-project/sinks/my-sink&quot; (required)
319 body: object, The request body.
320 The object takes the form of:
321
322 { # Describes a sink used to export log entries to one of the following destinations: a Cloud Logging log bucket, a Cloud Storage bucket, a BigQuery dataset, a Pub/Sub topic, a Cloud project.A logs filter controls which log entries are exported. The sink must be created within a project, organization, billing account, or folder.
323 &quot;bigqueryOptions&quot;: { # Options that change functionality of a sink exporting data to BigQuery. # Optional. Options that affect sinks exporting data to BigQuery.
324 &quot;usePartitionedTables&quot;: True or False, # Optional. Whether to use BigQuery&#x27;s partition tables (https://docs.cloud.google.com/bigquery/docs/partitioned-tables). By default, Cloud Logging creates dated tables based on the log entries&#x27; timestamps, e.g. syslog_20170523. With partitioned tables the date suffix is no longer present and special query syntax (https://docs.cloud.google.com/bigquery/docs/querying-partitioned-tables) has to be used instead. In both cases, tables are sharded based on UTC timezone.
325 &quot;usesTimestampColumnPartitioning&quot;: True or False, # Output only. True if new timestamp column based partitioning is in use, false if legacy ingress-time partitioning is in use.All new sinks will have this field set true and will use timestamp column based partitioning. If use_partitioned_tables is false, this value has no meaning and will be false. Legacy sinks using partitioned tables will have this field set to false.
326 },
327 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The creation timestamp of the sink.This field may not be present for older sinks.
328 &quot;description&quot;: &quot;A String&quot;, # Optional. A description of this sink.The maximum length of the description is 8000 characters.
329 &quot;destination&quot;: &quot;A String&quot;, # Required. The export destination: &quot;storage.googleapis.com/[GCS_BUCKET]&quot; &quot;bigquery.googleapis.com/projects/[PROJECT_ID]/datasets/[DATASET]&quot; &quot;pubsub.googleapis.com/projects/[PROJECT_ID]/topics/[TOPIC_ID]&quot; &quot;logging.googleapis.com/projects/[PROJECT_ID]&quot; &quot;logging.googleapis.com/projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]&quot; The sink&#x27;s writer_identity, set when the sink is created, must have permission to write to the destination or else the log entries are not exported. For more information, see Route logs to supported destinations (https://docs.cloud.google.com/logging/docs/export/configure_export_v2).
330 &quot;disabled&quot;: True or False, # Optional. If set to true, then this sink is disabled and it does not export any log entries.
331 &quot;exclusions&quot;: [ # Optional. Log entries that match any of these exclusion filters will not be exported.If a log entry is matched by both filter and one of exclusions it will not be exported.
332 { # Specifies a set of log entries that are filtered out by a sink. If your Google Cloud resource receives a large volume of log entries, you can use exclusions to reduce your chargeable logs. Note that exclusions on organization-level and folder-level sinks don&#x27;t apply to child resources. Note also that you cannot modify the _Required sink or exclude logs from it.
333 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The creation timestamp of the exclusion.This field may not be present for older exclusions.
334 &quot;description&quot;: &quot;A String&quot;, # Optional. A description of this exclusion.
335 &quot;disabled&quot;: True or False, # Optional. If set to True, then this exclusion is disabled and it does not exclude any log entries. You can update an exclusion to change the value of this field.
336 &quot;filter&quot;: &quot;A String&quot;, # Required. An advanced logs filter (https://docs.cloud.google.com/logging/docs/view/building-queries#queries-by-expression) that matches the log entries to be excluded. By using the sample function (https://docs.cloud.google.com/logging/docs/view/logging-query-language#sample), you can exclude less than 100% of the matching log entries.For example, the following query matches 99% of low-severity log entries from Google Cloud Storage buckets:resource.type=gcs_bucket severity&lt;ERROR sample(insertId, 0.99)
337 &quot;name&quot;: &quot;A String&quot;, # Optional. A client-assigned identifier, such as &quot;load-balancer-exclusion&quot;. Identifiers are limited to 100 characters and can include only letters, digits, underscores, hyphens, and periods. First character has to be alphanumeric.
338 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The last update timestamp of the exclusion.This field may not be present for older exclusions.
339 },
340 ],
341 &quot;filter&quot;: &quot;A String&quot;, # Optional. An advanced logs filter (https://docs.cloud.google.com/logging/docs/view/building-queries#queries-by-expression). The only exported log entries are those that are in the resource owning the sink and that match the filter.For example:logName=&quot;projects/[PROJECT_ID]/logs/[LOG_ID]&quot; AND severity&gt;=ERROR
342 &quot;includeChildren&quot;: True or False, # Optional. This field applies only to sinks owned by organizations and folders. If the field is false, the default, only the logs owned by the sink&#x27;s parent resource are available for export. If the field is true, then log entries from all the projects, folders, and billing accounts contained in the sink&#x27;s parent resource are also available for export. Whether a particular log entry from the children is exported depends on the sink&#x27;s filter expression.For example, if this field is true, then the filter resource.type=gce_instance would export all Compute Engine VM instance log entries from all projects in the sink&#x27;s parent.To only export entries from certain child projects, filter on the project part of the log name:logName:(&quot;projects/test-project1/&quot; OR &quot;projects/test-project2/&quot;) AND resource.type=gce_instance
343 &quot;interceptChildren&quot;: True or False, # Optional. This field applies only to sinks owned by organizations and folders.When the value of &#x27;intercept_children&#x27; is true, the following restrictions apply: The sink must have the include_children flag set to true. The sink destination must be a Cloud project.Also, the following behaviors apply: Any logs matched by the sink won&#x27;t be included by non-_Required sinks owned by child resources. The sink appears in the results of a ListSinks call from a child resource if the value of the filter field in its request is either &#x27;in_scope(&quot;ALL&quot;)&#x27; or &#x27;in_scope(&quot;ANCESTOR&quot;)&#x27;.
344 &quot;name&quot;: &quot;A String&quot;, # Optional. The client-assigned sink identifier, unique within the project.For example: &quot;my-syslog-errors-to-pubsub&quot;.Sink identifiers are limited to 100 characters and can include only the following characters: upper and lower-case alphanumeric characters, underscores, hyphens, periods.First character has to be alphanumeric.
345 &quot;outputVersionFormat&quot;: &quot;A String&quot;, # Deprecated. This field is unused.
346 &quot;resourceName&quot;: &quot;A String&quot;, # Output only. The resource name of the sink. &quot;projects/[PROJECT_ID]/sinks/[SINK_NAME] &quot;organizations/[ORGANIZATION_ID]/sinks/[SINK_NAME] &quot;billingAccounts/[BILLING_ACCOUNT_ID]/sinks/[SINK_NAME] &quot;folders/[FOLDER_ID]/sinks/[SINK_NAME] For example: projects/my_project/sinks/SINK_NAME
347 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The last update timestamp of the sink.This field may not be present for older sinks.
348 &quot;writerIdentity&quot;: &quot;A String&quot;, # Output only. An IAM identity—a service account or group—under which Cloud Logging writes the exported log entries to the sink&#x27;s destination. This field is either set by specifying custom_writer_identity or set automatically by sinks.create and sinks.update based on the value of unique_writer_identity in those methods.Until you grant this identity write-access to the destination, log entry exports from this sink will fail. For more information, see Manage access to projects, folders, and organizations (https://docs.cloud.google.com/iam/docs/granting-roles-to-service-accounts#granting_access_to_a_service_account_for_a_resource). Consult the destination service&#x27;s documentation to determine the appropriate IAM roles to assign to the identity.Sinks that have a destination that is a log bucket in the same project as the sink cannot have a writer_identity and no additional permissions are required.
349 }
350
351 customWriterIdentity: string, Optional. The service account provided by the caller that will be used to write the log entries. The format must be serviceAccount:some@email. This field can only be specified when you are routing logs to a log bucket that is in a different project than the sink. When not specified, a Logging service account will automatically be generated.
352 uniqueWriterIdentity: boolean, Optional. See sinks.create for a description of this field. When updating a sink, the effect of this field on the value of writer_identity in the updated sink depends on both the old and new values of this field: If the old and new values of this field are both false or both true, then there is no change to the sink&#x27;s writer_identity. If the old value is false and the new value is true, then writer_identity is changed to a service agent (https://docs.cloud.google.com/iam/docs/service-account-types#service-agents) owned by Cloud Logging. It is an error if the old value is true and the new value is set to false or defaulted to false.
353 updateMask: string, Optional. Field mask that specifies the fields in sink that need an update. A sink field will be overwritten if, and only if, it is in the update mask. name and output only fields cannot be updated.An empty updateMask is temporarily treated as using the following mask for backwards compatibility purposes:destination,filter,includeChildrenAt some point in the future, behavior will be removed and specifying an empty updateMask will be an error.For a detailed FieldMask definition, see https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#google.protobuf.FieldMaskFor example: updateMask=filter
354 x__xgafv: string, V1 error format.
355 Allowed values
356 1 - v1 error format
357 2 - v2 error format
358
359 Returns:
360 An object of the form:
361
362 { # Describes a sink used to export log entries to one of the following destinations: a Cloud Logging log bucket, a Cloud Storage bucket, a BigQuery dataset, a Pub/Sub topic, a Cloud project.A logs filter controls which log entries are exported. The sink must be created within a project, organization, billing account, or folder.
363 &quot;bigqueryOptions&quot;: { # Options that change functionality of a sink exporting data to BigQuery. # Optional. Options that affect sinks exporting data to BigQuery.
364 &quot;usePartitionedTables&quot;: True or False, # Optional. Whether to use BigQuery&#x27;s partition tables (https://docs.cloud.google.com/bigquery/docs/partitioned-tables). By default, Cloud Logging creates dated tables based on the log entries&#x27; timestamps, e.g. syslog_20170523. With partitioned tables the date suffix is no longer present and special query syntax (https://docs.cloud.google.com/bigquery/docs/querying-partitioned-tables) has to be used instead. In both cases, tables are sharded based on UTC timezone.
365 &quot;usesTimestampColumnPartitioning&quot;: True or False, # Output only. True if new timestamp column based partitioning is in use, false if legacy ingress-time partitioning is in use.All new sinks will have this field set true and will use timestamp column based partitioning. If use_partitioned_tables is false, this value has no meaning and will be false. Legacy sinks using partitioned tables will have this field set to false.
366 },
367 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The creation timestamp of the sink.This field may not be present for older sinks.
368 &quot;description&quot;: &quot;A String&quot;, # Optional. A description of this sink.The maximum length of the description is 8000 characters.
369 &quot;destination&quot;: &quot;A String&quot;, # Required. The export destination: &quot;storage.googleapis.com/[GCS_BUCKET]&quot; &quot;bigquery.googleapis.com/projects/[PROJECT_ID]/datasets/[DATASET]&quot; &quot;pubsub.googleapis.com/projects/[PROJECT_ID]/topics/[TOPIC_ID]&quot; &quot;logging.googleapis.com/projects/[PROJECT_ID]&quot; &quot;logging.googleapis.com/projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]&quot; The sink&#x27;s writer_identity, set when the sink is created, must have permission to write to the destination or else the log entries are not exported. For more information, see Route logs to supported destinations (https://docs.cloud.google.com/logging/docs/export/configure_export_v2).
370 &quot;disabled&quot;: True or False, # Optional. If set to true, then this sink is disabled and it does not export any log entries.
371 &quot;exclusions&quot;: [ # Optional. Log entries that match any of these exclusion filters will not be exported.If a log entry is matched by both filter and one of exclusions it will not be exported.
372 { # Specifies a set of log entries that are filtered out by a sink. If your Google Cloud resource receives a large volume of log entries, you can use exclusions to reduce your chargeable logs. Note that exclusions on organization-level and folder-level sinks don&#x27;t apply to child resources. Note also that you cannot modify the _Required sink or exclude logs from it.
373 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The creation timestamp of the exclusion.This field may not be present for older exclusions.
374 &quot;description&quot;: &quot;A String&quot;, # Optional. A description of this exclusion.
375 &quot;disabled&quot;: True or False, # Optional. If set to True, then this exclusion is disabled and it does not exclude any log entries. You can update an exclusion to change the value of this field.
376 &quot;filter&quot;: &quot;A String&quot;, # Required. An advanced logs filter (https://docs.cloud.google.com/logging/docs/view/building-queries#queries-by-expression) that matches the log entries to be excluded. By using the sample function (https://docs.cloud.google.com/logging/docs/view/logging-query-language#sample), you can exclude less than 100% of the matching log entries.For example, the following query matches 99% of low-severity log entries from Google Cloud Storage buckets:resource.type=gcs_bucket severity&lt;ERROR sample(insertId, 0.99)
377 &quot;name&quot;: &quot;A String&quot;, # Optional. A client-assigned identifier, such as &quot;load-balancer-exclusion&quot;. Identifiers are limited to 100 characters and can include only letters, digits, underscores, hyphens, and periods. First character has to be alphanumeric.
378 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The last update timestamp of the exclusion.This field may not be present for older exclusions.
379 },
380 ],
381 &quot;filter&quot;: &quot;A String&quot;, # Optional. An advanced logs filter (https://docs.cloud.google.com/logging/docs/view/building-queries#queries-by-expression). The only exported log entries are those that are in the resource owning the sink and that match the filter.For example:logName=&quot;projects/[PROJECT_ID]/logs/[LOG_ID]&quot; AND severity&gt;=ERROR
382 &quot;includeChildren&quot;: True or False, # Optional. This field applies only to sinks owned by organizations and folders. If the field is false, the default, only the logs owned by the sink&#x27;s parent resource are available for export. If the field is true, then log entries from all the projects, folders, and billing accounts contained in the sink&#x27;s parent resource are also available for export. Whether a particular log entry from the children is exported depends on the sink&#x27;s filter expression.For example, if this field is true, then the filter resource.type=gce_instance would export all Compute Engine VM instance log entries from all projects in the sink&#x27;s parent.To only export entries from certain child projects, filter on the project part of the log name:logName:(&quot;projects/test-project1/&quot; OR &quot;projects/test-project2/&quot;) AND resource.type=gce_instance
383 &quot;interceptChildren&quot;: True or False, # Optional. This field applies only to sinks owned by organizations and folders.When the value of &#x27;intercept_children&#x27; is true, the following restrictions apply: The sink must have the include_children flag set to true. The sink destination must be a Cloud project.Also, the following behaviors apply: Any logs matched by the sink won&#x27;t be included by non-_Required sinks owned by child resources. The sink appears in the results of a ListSinks call from a child resource if the value of the filter field in its request is either &#x27;in_scope(&quot;ALL&quot;)&#x27; or &#x27;in_scope(&quot;ANCESTOR&quot;)&#x27;.
384 &quot;name&quot;: &quot;A String&quot;, # Optional. The client-assigned sink identifier, unique within the project.For example: &quot;my-syslog-errors-to-pubsub&quot;.Sink identifiers are limited to 100 characters and can include only the following characters: upper and lower-case alphanumeric characters, underscores, hyphens, periods.First character has to be alphanumeric.
385 &quot;outputVersionFormat&quot;: &quot;A String&quot;, # Deprecated. This field is unused.
386 &quot;resourceName&quot;: &quot;A String&quot;, # Output only. The resource name of the sink. &quot;projects/[PROJECT_ID]/sinks/[SINK_NAME] &quot;organizations/[ORGANIZATION_ID]/sinks/[SINK_NAME] &quot;billingAccounts/[BILLING_ACCOUNT_ID]/sinks/[SINK_NAME] &quot;folders/[FOLDER_ID]/sinks/[SINK_NAME] For example: projects/my_project/sinks/SINK_NAME
387 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The last update timestamp of the sink.This field may not be present for older sinks.
388 &quot;writerIdentity&quot;: &quot;A String&quot;, # Output only. An IAM identity—a service account or group—under which Cloud Logging writes the exported log entries to the sink&#x27;s destination. This field is either set by specifying custom_writer_identity or set automatically by sinks.create and sinks.update based on the value of unique_writer_identity in those methods.Until you grant this identity write-access to the destination, log entry exports from this sink will fail. For more information, see Manage access to projects, folders, and organizations (https://docs.cloud.google.com/iam/docs/granting-roles-to-service-accounts#granting_access_to_a_service_account_for_a_resource). Consult the destination service&#x27;s documentation to determine the appropriate IAM roles to assign to the identity.Sinks that have a destination that is a log bucket in the same project as the sink cannot have a writer_identity and no additional permissions are required.
389 }</pre>
390 </div>
391
392 <div class="method">
393 <code class="details" id="update">update(sinkName, body=None, customWriterIdentity=None, uniqueWriterIdentity=None, updateMask=None, x__xgafv=None)</code>
394 <pre>Updates a sink. This method replaces the values of the destination and filter fields of the existing sink with the corresponding values from the new sink.The updated sink might also have a new writer_identity; see the unique_writer_identity field.
395
396 Args:
397 sinkName: string, Required. The full resource name of the sink to update, including the parent resource and the sink identifier: &quot;projects/[PROJECT_ID]/sinks/[SINK_ID]&quot; &quot;organizations/[ORGANIZATION_ID]/sinks/[SINK_ID]&quot; &quot;billingAccounts/[BILLING_ACCOUNT_ID]/sinks/[SINK_ID]&quot; &quot;folders/[FOLDER_ID]/sinks/[SINK_ID]&quot; For example:&quot;projects/my-project/sinks/my-sink&quot; (required)
398 body: object, The request body.
399 The object takes the form of:
400
401 { # Describes a sink used to export log entries to one of the following destinations: a Cloud Logging log bucket, a Cloud Storage bucket, a BigQuery dataset, a Pub/Sub topic, a Cloud project.A logs filter controls which log entries are exported. The sink must be created within a project, organization, billing account, or folder.
402 &quot;bigqueryOptions&quot;: { # Options that change functionality of a sink exporting data to BigQuery. # Optional. Options that affect sinks exporting data to BigQuery.
403 &quot;usePartitionedTables&quot;: True or False, # Optional. Whether to use BigQuery&#x27;s partition tables (https://docs.cloud.google.com/bigquery/docs/partitioned-tables). By default, Cloud Logging creates dated tables based on the log entries&#x27; timestamps, e.g. syslog_20170523. With partitioned tables the date suffix is no longer present and special query syntax (https://docs.cloud.google.com/bigquery/docs/querying-partitioned-tables) has to be used instead. In both cases, tables are sharded based on UTC timezone.
404 &quot;usesTimestampColumnPartitioning&quot;: True or False, # Output only. True if new timestamp column based partitioning is in use, false if legacy ingress-time partitioning is in use.All new sinks will have this field set true and will use timestamp column based partitioning. If use_partitioned_tables is false, this value has no meaning and will be false. Legacy sinks using partitioned tables will have this field set to false.
405 },
406 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The creation timestamp of the sink.This field may not be present for older sinks.
407 &quot;description&quot;: &quot;A String&quot;, # Optional. A description of this sink.The maximum length of the description is 8000 characters.
408 &quot;destination&quot;: &quot;A String&quot;, # Required. The export destination: &quot;storage.googleapis.com/[GCS_BUCKET]&quot; &quot;bigquery.googleapis.com/projects/[PROJECT_ID]/datasets/[DATASET]&quot; &quot;pubsub.googleapis.com/projects/[PROJECT_ID]/topics/[TOPIC_ID]&quot; &quot;logging.googleapis.com/projects/[PROJECT_ID]&quot; &quot;logging.googleapis.com/projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]&quot; The sink&#x27;s writer_identity, set when the sink is created, must have permission to write to the destination or else the log entries are not exported. For more information, see Route logs to supported destinations (https://docs.cloud.google.com/logging/docs/export/configure_export_v2).
409 &quot;disabled&quot;: True or False, # Optional. If set to true, then this sink is disabled and it does not export any log entries.
410 &quot;exclusions&quot;: [ # Optional. Log entries that match any of these exclusion filters will not be exported.If a log entry is matched by both filter and one of exclusions it will not be exported.
411 { # Specifies a set of log entries that are filtered out by a sink. If your Google Cloud resource receives a large volume of log entries, you can use exclusions to reduce your chargeable logs. Note that exclusions on organization-level and folder-level sinks don&#x27;t apply to child resources. Note also that you cannot modify the _Required sink or exclude logs from it.
412 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The creation timestamp of the exclusion.This field may not be present for older exclusions.
413 &quot;description&quot;: &quot;A String&quot;, # Optional. A description of this exclusion.
414 &quot;disabled&quot;: True or False, # Optional. If set to True, then this exclusion is disabled and it does not exclude any log entries. You can update an exclusion to change the value of this field.
415 &quot;filter&quot;: &quot;A String&quot;, # Required. An advanced logs filter (https://docs.cloud.google.com/logging/docs/view/building-queries#queries-by-expression) that matches the log entries to be excluded. By using the sample function (https://docs.cloud.google.com/logging/docs/view/logging-query-language#sample), you can exclude less than 100% of the matching log entries.For example, the following query matches 99% of low-severity log entries from Google Cloud Storage buckets:resource.type=gcs_bucket severity&lt;ERROR sample(insertId, 0.99)
416 &quot;name&quot;: &quot;A String&quot;, # Optional. A client-assigned identifier, such as &quot;load-balancer-exclusion&quot;. Identifiers are limited to 100 characters and can include only letters, digits, underscores, hyphens, and periods. First character has to be alphanumeric.
417 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The last update timestamp of the exclusion.This field may not be present for older exclusions.
418 },
419 ],
420 &quot;filter&quot;: &quot;A String&quot;, # Optional. An advanced logs filter (https://docs.cloud.google.com/logging/docs/view/building-queries#queries-by-expression). The only exported log entries are those that are in the resource owning the sink and that match the filter.For example:logName=&quot;projects/[PROJECT_ID]/logs/[LOG_ID]&quot; AND severity&gt;=ERROR
421 &quot;includeChildren&quot;: True or False, # Optional. This field applies only to sinks owned by organizations and folders. If the field is false, the default, only the logs owned by the sink&#x27;s parent resource are available for export. If the field is true, then log entries from all the projects, folders, and billing accounts contained in the sink&#x27;s parent resource are also available for export. Whether a particular log entry from the children is exported depends on the sink&#x27;s filter expression.For example, if this field is true, then the filter resource.type=gce_instance would export all Compute Engine VM instance log entries from all projects in the sink&#x27;s parent.To only export entries from certain child projects, filter on the project part of the log name:logName:(&quot;projects/test-project1/&quot; OR &quot;projects/test-project2/&quot;) AND resource.type=gce_instance
422 &quot;interceptChildren&quot;: True or False, # Optional. This field applies only to sinks owned by organizations and folders.When the value of &#x27;intercept_children&#x27; is true, the following restrictions apply: The sink must have the include_children flag set to true. The sink destination must be a Cloud project.Also, the following behaviors apply: Any logs matched by the sink won&#x27;t be included by non-_Required sinks owned by child resources. The sink appears in the results of a ListSinks call from a child resource if the value of the filter field in its request is either &#x27;in_scope(&quot;ALL&quot;)&#x27; or &#x27;in_scope(&quot;ANCESTOR&quot;)&#x27;.
423 &quot;name&quot;: &quot;A String&quot;, # Optional. The client-assigned sink identifier, unique within the project.For example: &quot;my-syslog-errors-to-pubsub&quot;.Sink identifiers are limited to 100 characters and can include only the following characters: upper and lower-case alphanumeric characters, underscores, hyphens, periods.First character has to be alphanumeric.
424 &quot;outputVersionFormat&quot;: &quot;A String&quot;, # Deprecated. This field is unused.
425 &quot;resourceName&quot;: &quot;A String&quot;, # Output only. The resource name of the sink. &quot;projects/[PROJECT_ID]/sinks/[SINK_NAME] &quot;organizations/[ORGANIZATION_ID]/sinks/[SINK_NAME] &quot;billingAccounts/[BILLING_ACCOUNT_ID]/sinks/[SINK_NAME] &quot;folders/[FOLDER_ID]/sinks/[SINK_NAME] For example: projects/my_project/sinks/SINK_NAME
426 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The last update timestamp of the sink.This field may not be present for older sinks.
427 &quot;writerIdentity&quot;: &quot;A String&quot;, # Output only. An IAM identity—a service account or group—under which Cloud Logging writes the exported log entries to the sink&#x27;s destination. This field is either set by specifying custom_writer_identity or set automatically by sinks.create and sinks.update based on the value of unique_writer_identity in those methods.Until you grant this identity write-access to the destination, log entry exports from this sink will fail. For more information, see Manage access to projects, folders, and organizations (https://docs.cloud.google.com/iam/docs/granting-roles-to-service-accounts#granting_access_to_a_service_account_for_a_resource). Consult the destination service&#x27;s documentation to determine the appropriate IAM roles to assign to the identity.Sinks that have a destination that is a log bucket in the same project as the sink cannot have a writer_identity and no additional permissions are required.
428 }
429
430 customWriterIdentity: string, Optional. The service account provided by the caller that will be used to write the log entries. The format must be serviceAccount:some@email. This field can only be specified when you are routing logs to a log bucket that is in a different project than the sink. When not specified, a Logging service account will automatically be generated.
431 uniqueWriterIdentity: boolean, Optional. See sinks.create for a description of this field. When updating a sink, the effect of this field on the value of writer_identity in the updated sink depends on both the old and new values of this field: If the old and new values of this field are both false or both true, then there is no change to the sink&#x27;s writer_identity. If the old value is false and the new value is true, then writer_identity is changed to a service agent (https://docs.cloud.google.com/iam/docs/service-account-types#service-agents) owned by Cloud Logging. It is an error if the old value is true and the new value is set to false or defaulted to false.
432 updateMask: string, Optional. Field mask that specifies the fields in sink that need an update. A sink field will be overwritten if, and only if, it is in the update mask. name and output only fields cannot be updated.An empty updateMask is temporarily treated as using the following mask for backwards compatibility purposes:destination,filter,includeChildrenAt some point in the future, behavior will be removed and specifying an empty updateMask will be an error.For a detailed FieldMask definition, see https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#google.protobuf.FieldMaskFor example: updateMask=filter
433 x__xgafv: string, V1 error format.
434 Allowed values
435 1 - v1 error format
436 2 - v2 error format
437
438 Returns:
439 An object of the form:
440
441 { # Describes a sink used to export log entries to one of the following destinations: a Cloud Logging log bucket, a Cloud Storage bucket, a BigQuery dataset, a Pub/Sub topic, a Cloud project.A logs filter controls which log entries are exported. The sink must be created within a project, organization, billing account, or folder.
442 &quot;bigqueryOptions&quot;: { # Options that change functionality of a sink exporting data to BigQuery. # Optional. Options that affect sinks exporting data to BigQuery.
443 &quot;usePartitionedTables&quot;: True or False, # Optional. Whether to use BigQuery&#x27;s partition tables (https://docs.cloud.google.com/bigquery/docs/partitioned-tables). By default, Cloud Logging creates dated tables based on the log entries&#x27; timestamps, e.g. syslog_20170523. With partitioned tables the date suffix is no longer present and special query syntax (https://docs.cloud.google.com/bigquery/docs/querying-partitioned-tables) has to be used instead. In both cases, tables are sharded based on UTC timezone.
444 &quot;usesTimestampColumnPartitioning&quot;: True or False, # Output only. True if new timestamp column based partitioning is in use, false if legacy ingress-time partitioning is in use.All new sinks will have this field set true and will use timestamp column based partitioning. If use_partitioned_tables is false, this value has no meaning and will be false. Legacy sinks using partitioned tables will have this field set to false.
445 },
446 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The creation timestamp of the sink.This field may not be present for older sinks.
447 &quot;description&quot;: &quot;A String&quot;, # Optional. A description of this sink.The maximum length of the description is 8000 characters.
448 &quot;destination&quot;: &quot;A String&quot;, # Required. The export destination: &quot;storage.googleapis.com/[GCS_BUCKET]&quot; &quot;bigquery.googleapis.com/projects/[PROJECT_ID]/datasets/[DATASET]&quot; &quot;pubsub.googleapis.com/projects/[PROJECT_ID]/topics/[TOPIC_ID]&quot; &quot;logging.googleapis.com/projects/[PROJECT_ID]&quot; &quot;logging.googleapis.com/projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]&quot; The sink&#x27;s writer_identity, set when the sink is created, must have permission to write to the destination or else the log entries are not exported. For more information, see Route logs to supported destinations (https://docs.cloud.google.com/logging/docs/export/configure_export_v2).
449 &quot;disabled&quot;: True or False, # Optional. If set to true, then this sink is disabled and it does not export any log entries.
450 &quot;exclusions&quot;: [ # Optional. Log entries that match any of these exclusion filters will not be exported.If a log entry is matched by both filter and one of exclusions it will not be exported.
451 { # Specifies a set of log entries that are filtered out by a sink. If your Google Cloud resource receives a large volume of log entries, you can use exclusions to reduce your chargeable logs. Note that exclusions on organization-level and folder-level sinks don&#x27;t apply to child resources. Note also that you cannot modify the _Required sink or exclude logs from it.
452 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The creation timestamp of the exclusion.This field may not be present for older exclusions.
453 &quot;description&quot;: &quot;A String&quot;, # Optional. A description of this exclusion.
454 &quot;disabled&quot;: True or False, # Optional. If set to True, then this exclusion is disabled and it does not exclude any log entries. You can update an exclusion to change the value of this field.
455 &quot;filter&quot;: &quot;A String&quot;, # Required. An advanced logs filter (https://docs.cloud.google.com/logging/docs/view/building-queries#queries-by-expression) that matches the log entries to be excluded. By using the sample function (https://docs.cloud.google.com/logging/docs/view/logging-query-language#sample), you can exclude less than 100% of the matching log entries.For example, the following query matches 99% of low-severity log entries from Google Cloud Storage buckets:resource.type=gcs_bucket severity&lt;ERROR sample(insertId, 0.99)
456 &quot;name&quot;: &quot;A String&quot;, # Optional. A client-assigned identifier, such as &quot;load-balancer-exclusion&quot;. Identifiers are limited to 100 characters and can include only letters, digits, underscores, hyphens, and periods. First character has to be alphanumeric.
457 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The last update timestamp of the exclusion.This field may not be present for older exclusions.
458 },
459 ],
460 &quot;filter&quot;: &quot;A String&quot;, # Optional. An advanced logs filter (https://docs.cloud.google.com/logging/docs/view/building-queries#queries-by-expression). The only exported log entries are those that are in the resource owning the sink and that match the filter.For example:logName=&quot;projects/[PROJECT_ID]/logs/[LOG_ID]&quot; AND severity&gt;=ERROR
461 &quot;includeChildren&quot;: True or False, # Optional. This field applies only to sinks owned by organizations and folders. If the field is false, the default, only the logs owned by the sink&#x27;s parent resource are available for export. If the field is true, then log entries from all the projects, folders, and billing accounts contained in the sink&#x27;s parent resource are also available for export. Whether a particular log entry from the children is exported depends on the sink&#x27;s filter expression.For example, if this field is true, then the filter resource.type=gce_instance would export all Compute Engine VM instance log entries from all projects in the sink&#x27;s parent.To only export entries from certain child projects, filter on the project part of the log name:logName:(&quot;projects/test-project1/&quot; OR &quot;projects/test-project2/&quot;) AND resource.type=gce_instance
462 &quot;interceptChildren&quot;: True or False, # Optional. This field applies only to sinks owned by organizations and folders.When the value of &#x27;intercept_children&#x27; is true, the following restrictions apply: The sink must have the include_children flag set to true. The sink destination must be a Cloud project.Also, the following behaviors apply: Any logs matched by the sink won&#x27;t be included by non-_Required sinks owned by child resources. The sink appears in the results of a ListSinks call from a child resource if the value of the filter field in its request is either &#x27;in_scope(&quot;ALL&quot;)&#x27; or &#x27;in_scope(&quot;ANCESTOR&quot;)&#x27;.
463 &quot;name&quot;: &quot;A String&quot;, # Optional. The client-assigned sink identifier, unique within the project.For example: &quot;my-syslog-errors-to-pubsub&quot;.Sink identifiers are limited to 100 characters and can include only the following characters: upper and lower-case alphanumeric characters, underscores, hyphens, periods.First character has to be alphanumeric.
464 &quot;outputVersionFormat&quot;: &quot;A String&quot;, # Deprecated. This field is unused.
465 &quot;resourceName&quot;: &quot;A String&quot;, # Output only. The resource name of the sink. &quot;projects/[PROJECT_ID]/sinks/[SINK_NAME] &quot;organizations/[ORGANIZATION_ID]/sinks/[SINK_NAME] &quot;billingAccounts/[BILLING_ACCOUNT_ID]/sinks/[SINK_NAME] &quot;folders/[FOLDER_ID]/sinks/[SINK_NAME] For example: projects/my_project/sinks/SINK_NAME
466 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The last update timestamp of the sink.This field may not be present for older sinks.
467 &quot;writerIdentity&quot;: &quot;A String&quot;, # Output only. An IAM identity—a service account or group—under which Cloud Logging writes the exported log entries to the sink&#x27;s destination. This field is either set by specifying custom_writer_identity or set automatically by sinks.create and sinks.update based on the value of unique_writer_identity in those methods.Until you grant this identity write-access to the destination, log entry exports from this sink will fail. For more information, see Manage access to projects, folders, and organizations (https://docs.cloud.google.com/iam/docs/granting-roles-to-service-accounts#granting_access_to_a_service_account_for_a_resource). Consult the destination service&#x27;s documentation to determine the appropriate IAM roles to assign to the identity.Sinks that have a destination that is a log bucket in the same project as the sink cannot have a writer_identity and no additional permissions are required.
468 }</pre>
469 </div>
470
471 </body></html>