Skip to content

Commit 55ba494

Browse files
feat(logging): update the api
#### logging:v2 The following keys were added: - schemas.LogView.properties.schema.$ref (Total Keys: 1) - schemas.TableFieldSchema (Total Keys: 7) - schemas.TableSchema (Total Keys: 4)
1 parent 1dcf7df commit 55ba494

8 files changed

+458
-20
lines changed

docs/dyn/logging_v2.billingAccounts.buckets.views.html

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,19 @@ <h3>Method Details</h3>
105105
&quot;description&quot;: &quot;A String&quot;, # Describes this view.
106106
&quot;filter&quot;: &quot;A String&quot;, # Filter that restricts which log entries in a bucket are visible in this view.Filters are restricted to be a logical AND of ==/!= of any of the following: originating project/folder/organization/billing account. resource type log idFor example:SOURCE(&quot;projects/myproject&quot;) AND resource.type = &quot;gce_instance&quot; AND LOG_ID(&quot;stdout&quot;)
107107
&quot;name&quot;: &quot;A String&quot;, # The resource name of the view.For example:projects/my-project/locations/global/buckets/my-bucket/views/my-view
108+
&quot;schema&quot;: { # Schema of a table containing logs. # Describes the schema of the logs stored in the bucket that are accessible via this view.This field is only populated for views in analytics-enabled buckets.
109+
&quot;fields&quot;: [ # Describes the fields in a table.
110+
{ # A field in TableSchema. The fields describe the static fields in the LogEntry. Any dynamic fields generated by the customer in fields like labels and jsonPayload are not listed in the schema as they use a native JSON type field.
111+
&quot;description&quot;: &quot;A String&quot;, # Optional. The field description.
112+
&quot;fields&quot;: [ # Optional. Describes the nested schema fields if the type property is set to RECORD.
113+
# Object with schema name: TableFieldSchema
114+
],
115+
&quot;mode&quot;: &quot;A String&quot;, # Optional. The field mode. Possible values include NULLABLE, REQUIRED and REPEATED. The default value is NULLABLE.
116+
&quot;name&quot;: &quot;A String&quot;, # Required. The field name corresponding to fields in the LogEntry.
117+
&quot;type&quot;: &quot;A String&quot;, # Required. The field data type. Possible values include: STRING INTEGER (or INT64) FLOAT (or FLOAT64) BOOLEAN (or BOOL) TIMESTAMP RECORD (or STRUCT)Use of RECORD/STRUT indicates that the field contains a nested schema.
118+
},
119+
],
120+
},
108121
&quot;updateTime&quot;: &quot;A String&quot;, # Output only. The last update timestamp of the view.
109122
}</pre>
110123
</div>

docs/dyn/logging_v2.billingAccounts.locations.buckets.views.html

Lines changed: 67 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ <h2>Instance Methods</h2>
7979
<p class="firstline">Close httplib2 connections.</p>
8080
<p class="toc_element">
8181
<code><a href="#create">create(parent, body=None, viewId=None, x__xgafv=None)</a></code></p>
82-
<p class="firstline">Creates a view over log entries in a log bucket. A bucket may contain a maximum of 50 views.</p>
82+
<p class="firstline">Creates a view over log entries in a log bucket. A bucket may contain a maximum of 30 views.</p>
8383
<p class="toc_element">
8484
<code><a href="#delete">delete(name, x__xgafv=None)</a></code></p>
8585
<p class="firstline">Deletes a view on a log bucket.</p>
@@ -100,7 +100,7 @@ <h3>Method Details</h3>
100100

101101
<div class="method">
102102
<code class="details" id="create">create(parent, body=None, viewId=None, x__xgafv=None)</code>
103-
<pre>Creates a view over log entries in a log bucket. A bucket may contain a maximum of 50 views.
103+
<pre>Creates a view over log entries in a log bucket. A bucket may contain a maximum of 30 views.
104104

105105
Args:
106106
parent: string, Required. The bucket in which to create the view `&quot;projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]&quot;` For example:&quot;projects/my-project/locations/global/buckets/my-bucket&quot; (required)
@@ -112,6 +112,19 @@ <h3>Method Details</h3>
112112
&quot;description&quot;: &quot;A String&quot;, # Describes this view.
113113
&quot;filter&quot;: &quot;A String&quot;, # Filter that restricts which log entries in a bucket are visible in this view.Filters are restricted to be a logical AND of ==/!= of any of the following: originating project/folder/organization/billing account. resource type log idFor example:SOURCE(&quot;projects/myproject&quot;) AND resource.type = &quot;gce_instance&quot; AND LOG_ID(&quot;stdout&quot;)
114114
&quot;name&quot;: &quot;A String&quot;, # The resource name of the view.For example:projects/my-project/locations/global/buckets/my-bucket/views/my-view
115+
&quot;schema&quot;: { # Schema of a table containing logs. # Describes the schema of the logs stored in the bucket that are accessible via this view.This field is only populated for views in analytics-enabled buckets.
116+
&quot;fields&quot;: [ # Describes the fields in a table.
117+
{ # A field in TableSchema. The fields describe the static fields in the LogEntry. Any dynamic fields generated by the customer in fields like labels and jsonPayload are not listed in the schema as they use a native JSON type field.
118+
&quot;description&quot;: &quot;A String&quot;, # Optional. The field description.
119+
&quot;fields&quot;: [ # Optional. Describes the nested schema fields if the type property is set to RECORD.
120+
# Object with schema name: TableFieldSchema
121+
],
122+
&quot;mode&quot;: &quot;A String&quot;, # Optional. The field mode. Possible values include NULLABLE, REQUIRED and REPEATED. The default value is NULLABLE.
123+
&quot;name&quot;: &quot;A String&quot;, # Required. The field name corresponding to fields in the LogEntry.
124+
&quot;type&quot;: &quot;A String&quot;, # Required. The field data type. Possible values include: STRING INTEGER (or INT64) FLOAT (or FLOAT64) BOOLEAN (or BOOL) TIMESTAMP RECORD (or STRUCT)Use of RECORD/STRUT indicates that the field contains a nested schema.
125+
},
126+
],
127+
},
115128
&quot;updateTime&quot;: &quot;A String&quot;, # Output only. The last update timestamp of the view.
116129
}
117130

@@ -129,6 +142,19 @@ <h3>Method Details</h3>
129142
&quot;description&quot;: &quot;A String&quot;, # Describes this view.
130143
&quot;filter&quot;: &quot;A String&quot;, # Filter that restricts which log entries in a bucket are visible in this view.Filters are restricted to be a logical AND of ==/!= of any of the following: originating project/folder/organization/billing account. resource type log idFor example:SOURCE(&quot;projects/myproject&quot;) AND resource.type = &quot;gce_instance&quot; AND LOG_ID(&quot;stdout&quot;)
131144
&quot;name&quot;: &quot;A String&quot;, # The resource name of the view.For example:projects/my-project/locations/global/buckets/my-bucket/views/my-view
145+
&quot;schema&quot;: { # Schema of a table containing logs. # Describes the schema of the logs stored in the bucket that are accessible via this view.This field is only populated for views in analytics-enabled buckets.
146+
&quot;fields&quot;: [ # Describes the fields in a table.
147+
{ # A field in TableSchema. The fields describe the static fields in the LogEntry. Any dynamic fields generated by the customer in fields like labels and jsonPayload are not listed in the schema as they use a native JSON type field.
148+
&quot;description&quot;: &quot;A String&quot;, # Optional. The field description.
149+
&quot;fields&quot;: [ # Optional. Describes the nested schema fields if the type property is set to RECORD.
150+
# Object with schema name: TableFieldSchema
151+
],
152+
&quot;mode&quot;: &quot;A String&quot;, # Optional. The field mode. Possible values include NULLABLE, REQUIRED and REPEATED. The default value is NULLABLE.
153+
&quot;name&quot;: &quot;A String&quot;, # Required. The field name corresponding to fields in the LogEntry.
154+
&quot;type&quot;: &quot;A String&quot;, # Required. The field data type. Possible values include: STRING INTEGER (or INT64) FLOAT (or FLOAT64) BOOLEAN (or BOOL) TIMESTAMP RECORD (or STRUCT)Use of RECORD/STRUT indicates that the field contains a nested schema.
155+
},
156+
],
157+
},
132158
&quot;updateTime&quot;: &quot;A String&quot;, # Output only. The last update timestamp of the view.
133159
}</pre>
134160
</div>
@@ -175,6 +201,19 @@ <h3>Method Details</h3>
175201
&quot;description&quot;: &quot;A String&quot;, # Describes this view.
176202
&quot;filter&quot;: &quot;A String&quot;, # Filter that restricts which log entries in a bucket are visible in this view.Filters are restricted to be a logical AND of ==/!= of any of the following: originating project/folder/organization/billing account. resource type log idFor example:SOURCE(&quot;projects/myproject&quot;) AND resource.type = &quot;gce_instance&quot; AND LOG_ID(&quot;stdout&quot;)
177203
&quot;name&quot;: &quot;A String&quot;, # The resource name of the view.For example:projects/my-project/locations/global/buckets/my-bucket/views/my-view
204+
&quot;schema&quot;: { # Schema of a table containing logs. # Describes the schema of the logs stored in the bucket that are accessible via this view.This field is only populated for views in analytics-enabled buckets.
205+
&quot;fields&quot;: [ # Describes the fields in a table.
206+
{ # A field in TableSchema. The fields describe the static fields in the LogEntry. Any dynamic fields generated by the customer in fields like labels and jsonPayload are not listed in the schema as they use a native JSON type field.
207+
&quot;description&quot;: &quot;A String&quot;, # Optional. The field description.
208+
&quot;fields&quot;: [ # Optional. Describes the nested schema fields if the type property is set to RECORD.
209+
# Object with schema name: TableFieldSchema
210+
],
211+
&quot;mode&quot;: &quot;A String&quot;, # Optional. The field mode. Possible values include NULLABLE, REQUIRED and REPEATED. The default value is NULLABLE.
212+
&quot;name&quot;: &quot;A String&quot;, # Required. The field name corresponding to fields in the LogEntry.
213+
&quot;type&quot;: &quot;A String&quot;, # Required. The field data type. Possible values include: STRING INTEGER (or INT64) FLOAT (or FLOAT64) BOOLEAN (or BOOL) TIMESTAMP RECORD (or STRUCT)Use of RECORD/STRUT indicates that the field contains a nested schema.
214+
},
215+
],
216+
},
178217
&quot;updateTime&quot;: &quot;A String&quot;, # Output only. The last update timestamp of the view.
179218
},
180219
],
@@ -209,6 +248,19 @@ <h3>Method Details</h3>
209248
&quot;description&quot;: &quot;A String&quot;, # Describes this view.
210249
&quot;filter&quot;: &quot;A String&quot;, # Filter that restricts which log entries in a bucket are visible in this view.Filters are restricted to be a logical AND of ==/!= of any of the following: originating project/folder/organization/billing account. resource type log idFor example:SOURCE(&quot;projects/myproject&quot;) AND resource.type = &quot;gce_instance&quot; AND LOG_ID(&quot;stdout&quot;)
211250
&quot;name&quot;: &quot;A String&quot;, # The resource name of the view.For example:projects/my-project/locations/global/buckets/my-bucket/views/my-view
251+
&quot;schema&quot;: { # Schema of a table containing logs. # Describes the schema of the logs stored in the bucket that are accessible via this view.This field is only populated for views in analytics-enabled buckets.
252+
&quot;fields&quot;: [ # Describes the fields in a table.
253+
{ # A field in TableSchema. The fields describe the static fields in the LogEntry. Any dynamic fields generated by the customer in fields like labels and jsonPayload are not listed in the schema as they use a native JSON type field.
254+
&quot;description&quot;: &quot;A String&quot;, # Optional. The field description.
255+
&quot;fields&quot;: [ # Optional. Describes the nested schema fields if the type property is set to RECORD.
256+
# Object with schema name: TableFieldSchema
257+
],
258+
&quot;mode&quot;: &quot;A String&quot;, # Optional. The field mode. Possible values include NULLABLE, REQUIRED and REPEATED. The default value is NULLABLE.
259+
&quot;name&quot;: &quot;A String&quot;, # Required. The field name corresponding to fields in the LogEntry.
260+
&quot;type&quot;: &quot;A String&quot;, # Required. The field data type. Possible values include: STRING INTEGER (or INT64) FLOAT (or FLOAT64) BOOLEAN (or BOOL) TIMESTAMP RECORD (or STRUCT)Use of RECORD/STRUT indicates that the field contains a nested schema.
261+
},
262+
],
263+
},
212264
&quot;updateTime&quot;: &quot;A String&quot;, # Output only. The last update timestamp of the view.
213265
}
214266

@@ -226,6 +278,19 @@ <h3>Method Details</h3>
226278
&quot;description&quot;: &quot;A String&quot;, # Describes this view.
227279
&quot;filter&quot;: &quot;A String&quot;, # Filter that restricts which log entries in a bucket are visible in this view.Filters are restricted to be a logical AND of ==/!= of any of the following: originating project/folder/organization/billing account. resource type log idFor example:SOURCE(&quot;projects/myproject&quot;) AND resource.type = &quot;gce_instance&quot; AND LOG_ID(&quot;stdout&quot;)
228280
&quot;name&quot;: &quot;A String&quot;, # The resource name of the view.For example:projects/my-project/locations/global/buckets/my-bucket/views/my-view
281+
&quot;schema&quot;: { # Schema of a table containing logs. # Describes the schema of the logs stored in the bucket that are accessible via this view.This field is only populated for views in analytics-enabled buckets.
282+
&quot;fields&quot;: [ # Describes the fields in a table.
283+
{ # A field in TableSchema. The fields describe the static fields in the LogEntry. Any dynamic fields generated by the customer in fields like labels and jsonPayload are not listed in the schema as they use a native JSON type field.
284+
&quot;description&quot;: &quot;A String&quot;, # Optional. The field description.
285+
&quot;fields&quot;: [ # Optional. Describes the nested schema fields if the type property is set to RECORD.
286+
# Object with schema name: TableFieldSchema
287+
],
288+
&quot;mode&quot;: &quot;A String&quot;, # Optional. The field mode. Possible values include NULLABLE, REQUIRED and REPEATED. The default value is NULLABLE.
289+
&quot;name&quot;: &quot;A String&quot;, # Required. The field name corresponding to fields in the LogEntry.
290+
&quot;type&quot;: &quot;A String&quot;, # Required. The field data type. Possible values include: STRING INTEGER (or INT64) FLOAT (or FLOAT64) BOOLEAN (or BOOL) TIMESTAMP RECORD (or STRUCT)Use of RECORD/STRUT indicates that the field contains a nested schema.
291+
},
292+
],
293+
},
229294
&quot;updateTime&quot;: &quot;A String&quot;, # Output only. The last update timestamp of the view.
230295
}</pre>
231296
</div>

0 commit comments

Comments
 (0)