From cd6dfab46346ee9eb9d6427ee2899e80333d4598 Mon Sep 17 00:00:00 2001 From: Sai Cheemalapati Date: Wed, 10 May 2017 09:03:25 -0700 Subject: [PATCH] Change media body from an object to a string Samples fail before sending a request if the media body is an object. --- src/main/resources/com/google/api/codegen/nodejs/sample.snip | 2 +- .../discoveries/nodejs/nodejs_bigquery.v2.json.baseline | 2 +- .../discoveries/nodejs/nodejs_dfareporting.v2.6.json.baseline | 2 +- .../testdata/discoveries/nodejs/nodejs_storage.v1.json.baseline | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/main/resources/com/google/api/codegen/nodejs/sample.snip b/src/main/resources/com/google/api/codegen/nodejs/sample.snip index 7635ec55d1..bb4be40e74 100644 --- a/src/main/resources/com/google/api/codegen/nodejs/sample.snip +++ b/src/main/resources/com/google/api/codegen/nodejs/sample.snip @@ -83,7 +83,7 @@ // TODO: Add desired media content for upload. See // https://github.com/google/google-api-nodejs-client#media-uploads mimeType: '', // See https://www.w3.org/Protocols/rfc1341/4_Content-Type.html - body: {}, + body: '', }, @end diff --git a/src/test/java/com/google/api/codegen/testdata/discoveries/nodejs/nodejs_bigquery.v2.json.baseline b/src/test/java/com/google/api/codegen/testdata/discoveries/nodejs/nodejs_bigquery.v2.json.baseline index dfe08b452b..41539a5f37 100644 --- a/src/test/java/com/google/api/codegen/testdata/discoveries/nodejs/nodejs_bigquery.v2.json.baseline +++ b/src/test/java/com/google/api/codegen/testdata/discoveries/nodejs/nodejs_bigquery.v2.json.baseline @@ -528,7 +528,7 @@ authorize(function(authClient) { // TODO: Add desired media content for upload. See // https://github.com/google/google-api-nodejs-client#media-uploads mimeType: '', // See https://www.w3.org/Protocols/rfc1341/4_Content-Type.html - body: {}, + body: '', }, auth: authClient, diff --git a/src/test/java/com/google/api/codegen/testdata/discoveries/nodejs/nodejs_dfareporting.v2.6.json.baseline b/src/test/java/com/google/api/codegen/testdata/discoveries/nodejs/nodejs_dfareporting.v2.6.json.baseline index 788df4eb10..2fc2c732c5 100644 --- a/src/test/java/com/google/api/codegen/testdata/discoveries/nodejs/nodejs_dfareporting.v2.6.json.baseline +++ b/src/test/java/com/google/api/codegen/testdata/discoveries/nodejs/nodejs_dfareporting.v2.6.json.baseline @@ -2605,7 +2605,7 @@ authorize(function(authClient) { // TODO: Add desired media content for upload. See // https://github.com/google/google-api-nodejs-client#media-uploads mimeType: '', // See https://www.w3.org/Protocols/rfc1341/4_Content-Type.html - body: {}, + body: '', }, auth: authClient, diff --git a/src/test/java/com/google/api/codegen/testdata/discoveries/nodejs/nodejs_storage.v1.json.baseline b/src/test/java/com/google/api/codegen/testdata/discoveries/nodejs/nodejs_storage.v1.json.baseline index a9dd333186..676ebf7e12 100644 --- a/src/test/java/com/google/api/codegen/testdata/discoveries/nodejs/nodejs_storage.v1.json.baseline +++ b/src/test/java/com/google/api/codegen/testdata/discoveries/nodejs/nodejs_storage.v1.json.baseline @@ -1620,7 +1620,7 @@ authorize(function(authClient) { // TODO: Add desired media content for upload. See // https://github.com/google/google-api-nodejs-client#media-uploads mimeType: '', // See https://www.w3.org/Protocols/rfc1341/4_Content-Type.html - body: {}, + body: '', }, auth: authClient,