From 83c48050398d2a77c573fe11057496305e765fcb Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot <44816363+yoshi-automation@users.noreply.github.com> Date: Tue, 29 Jan 2019 09:23:04 -0800 Subject: [PATCH] Docs: reformatted snippet. --- logging/docs/snippets.py | 13 ++++++++----- logging/synth.metadata | 10 +++++----- 2 files changed, 13 insertions(+), 10 deletions(-) diff --git a/logging/docs/snippets.py b/logging/docs/snippets.py index 35e12a2dca53..1a823994dc7c 100644 --- a/logging/docs/snippets.py +++ b/logging/docs/snippets.py @@ -135,12 +135,15 @@ def logger_usage(client, to_delete): # [START logger_log_resource_text] from google.cloud.logging.resource import Resource - res = Resource(type="generic_node", + + res = Resource( + type="generic_node", labels={ - 'location': 'us-central1-a', - 'namespace': 'default', - 'node_id': '10.10.10.1' - }) + "location": "us-central1-a", + "namespace": "default", + "node_id": "10.10.10.1", + }, + ) logger.log_struct( {"message": "My first entry", "weather": "partly cloudy"}, resource=res ) diff --git a/logging/synth.metadata b/logging/synth.metadata index b46285d99187..e91c4f077558 100644 --- a/logging/synth.metadata +++ b/logging/synth.metadata @@ -1,19 +1,19 @@ { - "updateTime": "2019-01-17T13:22:21.430628Z", + "updateTime": "2019-01-29T13:23:16.990671Z", "sources": [ { "generator": { "name": "artman", - "version": "0.16.6", - "dockerImage": "googleapis/artman@sha256:12722f2ca3fbc3b53cc6aa5f0e569d7d221b46bd876a2136497089dec5e3634e" + "version": "0.16.7", + "dockerImage": "googleapis/artman@sha256:d6c8ced606eb49973ca95d2af7c55a681acc042db0f87d135968349e7bf6dd80" } }, { "git": { "name": "googleapis", "remote": "https://github.com/googleapis/googleapis.git", - "sha": "0ac60e21a1aa86c07c1836865b35308ba8178b05", - "internalRef": "229626798" + "sha": "3cdb7227019524e7963071cf80a9624bf055b284", + "internalRef": "231246006" } }, {