google-cloud-endpoints

Creating endpoint in cloud run with Terraform and Google Cloud Platform

[亡魂溺海] 提交于 2020-08-06 05:44:30
问题 I'm research for a way to use Terraform with GCP provider to create cloud run endpoint. For starter I'm creating testing data a simple hello world. I have resource cloud run service configured and cloud endpoints resource configured with cloud endpoints depends_on cloud run. However, I'm trying to pass in the cloud run url as a service name to the cloud endpoints. File are constructed with best practice, with module > cloud run and cloud endpoints resource. However, the Terraform

Creating endpoint in cloud run with Terraform and Google Cloud Platform

↘锁芯ラ 提交于 2020-08-06 05:43:51
问题 I'm research for a way to use Terraform with GCP provider to create cloud run endpoint. For starter I'm creating testing data a simple hello world. I have resource cloud run service configured and cloud endpoints resource configured with cloud endpoints depends_on cloud run. However, I'm trying to pass in the cloud run url as a service name to the cloud endpoints. File are constructed with best practice, with module > cloud run and cloud endpoints resource. However, the Terraform

Google Cloud Endpoints (ESP) gRPC transcoding to camel case

十年热恋 提交于 2020-06-13 05:41:11
问题 I have deployed a gRPC server using Google Cloud Endpoints / ESP, following the instructions here: https://cloud.google.com/endpoints/docs/grpc/get-started-kubernetes-engine In my proto file, my fields are named in snake_case, following the Protocol Buffers naming conventions (https://developers.google.com/protocol-buffers/docs/style#message-and-field-names), as below: message MyMessage { string my_field = 1; } When deploying to Cloud Endpoints, the field names are converted to camelCase. So

Where does console.log info showup for Google Cloud functions

半城伤御伤魂 提交于 2020-03-21 19:31:24
问题 How can I see the console.log prints when I'm running a Google Cloud function? Is there a cloud console? exports.helloWorld = function helloWorld(req, res) { // Example input: {"message": "Hello!"} if (req.body.message === undefined) { // This is an error case, as "message" is required. res.status(400).send('No message defined!'); } else { // Everything is okay. console.log(req.body.message); res.status(200).send('Success: ' + req.body.message); } }; 回答1: Viewing Logs You can view the Cloud

Error running endpointscfg.py get_swagger_spec

核能气质少年 提交于 2020-02-25 21:46:50
问题 I am trying to build a project using Google Cloud Endpoints, following this guide: Quickstart for Cloud Endpoints Frameworks on App Engine. I am stuck at the step of generating the OpenAPI configuration file, where I need to run this command: Attempt One $ lib/endpoints/endpointscfg.py get_swagger_spec main.EchoApi --hostname your-service.appspot.com I get this error: -bash: lib/endpoints/endpointscfg.py: Permission denied Attempt Two I have tried the same command with sudo , which returned

Error running endpointscfg.py get_swagger_spec

北慕城南 提交于 2020-02-25 21:44:22
问题 I am trying to build a project using Google Cloud Endpoints, following this guide: Quickstart for Cloud Endpoints Frameworks on App Engine. I am stuck at the step of generating the OpenAPI configuration file, where I need to run this command: Attempt One $ lib/endpoints/endpointscfg.py get_swagger_spec main.EchoApi --hostname your-service.appspot.com I get this error: -bash: lib/endpoints/endpointscfg.py: Permission denied Attempt Two I have tried the same command with sudo , which returned

Using an enum contained in a Cloud Endpoint model on a Android client

折月煮酒 提交于 2020-02-24 12:09:33
问题 I'm trying to implement an enum in a entity called CargoWrapper. In my android app I'm constructing a CargoWrapper object to send to an endpoint method, and then calling my CargoWrapper setters to set the instance varialbes. One of CargoWrappers instance variables is an enum and it's indexed. The only methods generated for my front end are the setter and getters, I can't see the enum. Does anyone know how to set the enum instance variable from a android client, seems like it should be very

Using an enum contained in a Cloud Endpoint model on a Android client

回眸只為那壹抹淺笑 提交于 2020-02-24 12:06:48
问题 I'm trying to implement an enum in a entity called CargoWrapper. In my android app I'm constructing a CargoWrapper object to send to an endpoint method, and then calling my CargoWrapper setters to set the instance varialbes. One of CargoWrappers instance variables is an enum and it's indexed. The only methods generated for my front end are the setter and getters, I can't see the enum. Does anyone know how to set the enum instance variable from a android client, seems like it should be very

Using an enum contained in a Cloud Endpoint model on a Android client

懵懂的女人 提交于 2020-02-24 12:06:31
问题 I'm trying to implement an enum in a entity called CargoWrapper. In my android app I'm constructing a CargoWrapper object to send to an endpoint method, and then calling my CargoWrapper setters to set the instance varialbes. One of CargoWrappers instance variables is an enum and it's indexed. The only methods generated for my front end are the setter and getters, I can't see the enum. Does anyone know how to set the enum instance variable from a android client, seems like it should be very

google cloud endpoints returning java long as string in JSON

心不动则不痛 提交于 2020-02-02 04:07:29
问题 I am using google app engine latest version 1.9.30 and I define my cloud endpoint as follows @Api(name="app", version="v1", transformers={EndpointDateTransformer.class}) public class MyEndpoints { @ApiMethod(name="dummy", path="dummy", httpMethod=HttpMethod.GET) public Map<String, Object> dummy(){ Map<String, Object> dummy = Maps.newHashMap(); dummy.put("date", DateUtil.getCurrentTimestamp()); dummy.put("number", 5L); return dummy; } } here EndpointDateTransformer converts Date to Long value