spring-cloud-gcp

Mapping firestore collection to json

痞子三分冷 提交于 2021-01-29 14:53:45
问题 I have following structure in firebase data Orders -> OrderID -> LocationHistory -> LocationHistoryID -> FieldsData now i want to query by orderID and map all the results to json object i cant figure out how can i achieve this. Please see the screenshot for detail.pleas note that i am using spring-cloud-gcp-starter-data-firestore. 来源: https://stackoverflow.com/questions/60411568/mapping-firestore-collection-to-json

How to use Spring Cloud GCP for multiple google projects

心不动则不痛 提交于 2020-07-23 17:36:31
问题 For those who knows GCP well, it has some "limitations" about user and permissions control. The Datastore, for example, doesn't have any way to manage user roles of the database itself and it has only the IAM of the plataform. Because of that, Google's employees advise their customers to use multiple projects and folders of the GCP to have more control in that. I have seen it for a while. The question is: How to connect to multiple resources of multiple projects of GCP on Spring Cloud GCP? We

How to use Spring Cloud GCP for multiple google projects

家住魔仙堡 提交于 2020-07-23 17:35:45
问题 For those who knows GCP well, it has some "limitations" about user and permissions control. The Datastore, for example, doesn't have any way to manage user roles of the database itself and it has only the IAM of the plataform. Because of that, Google's employees advise their customers to use multiple projects and folders of the GCP to have more control in that. I have seen it for a while. The question is: How to connect to multiple resources of multiple projects of GCP on Spring Cloud GCP? We

How to use Spring Cloud GCP for multiple google projects

旧街凉风 提交于 2020-07-23 17:34:39
问题 For those who knows GCP well, it has some "limitations" about user and permissions control. The Datastore, for example, doesn't have any way to manage user roles of the database itself and it has only the IAM of the plataform. Because of that, Google's employees advise their customers to use multiple projects and folders of the GCP to have more control in that. I have seen it for a while. The question is: How to connect to multiple resources of multiple projects of GCP on Spring Cloud GCP? We

How to use Spring Cloud GCP for multiple google projects

两盒软妹~` 提交于 2020-07-23 17:34:07
问题 For those who knows GCP well, it has some "limitations" about user and permissions control. The Datastore, for example, doesn't have any way to manage user roles of the database itself and it has only the IAM of the plataform. Because of that, Google's employees advise their customers to use multiple projects and folders of the GCP to have more control in that. I have seen it for a while. The question is: How to connect to multiple resources of multiple projects of GCP on Spring Cloud GCP? We

io.grpc.StatusRuntimeException: PERMISSION_DENIED: User not authorized to perform this action

纵饮孤独 提交于 2020-04-05 06:48:12
问题 I try to implement simple example of spring cloud config + spring cloud bus . So I've implemented Client server application Config server application and in the separated repository I've put application.properties file. Looks like everything is correct on the server side. But on client side I see error when application is starting: org.springframework.cloud.stream.binder.BinderException: Exception thrown while building outbound endpoint at org.springframework.cloud.stream.binder

io.grpc.StatusRuntimeException: PERMISSION_DENIED: User not authorized to perform this action

我与影子孤独终老i 提交于 2020-04-05 06:48:08
问题 I try to implement simple example of spring cloud config + spring cloud bus . So I've implemented Client server application Config server application and in the separated repository I've put application.properties file. Looks like everything is correct on the server side. But on client side I see error when application is starting: org.springframework.cloud.stream.binder.BinderException: Exception thrown while building outbound endpoint at org.springframework.cloud.stream.binder

PubSubInboundChannelAdapter stops to receive messages after 4th message

帅比萌擦擦* 提交于 2020-01-05 04:14:05
问题 I've created simplified example which reproduces my real problem. My example accepts from google pub/sub, logs it and send ack back to the Pub/Sub Config: @Slf4j @Configuration public class MyConfig implements FlowSupport { private final AppProperties properties; public MyConfig(AppProperties properties) { this.properties = properties; } @Bean public JacksonFactory jacksonFactory() { return JacksonFactory.getDefaultInstance(); } @Bean public MessageChannel bucketNotificationChannel() { return

GCP and Spring logback. Severity is always info

旧巷老猫 提交于 2019-12-13 00:27:11
问题 When logging errors to stackdriver, every message is logged as INFO, even when using log.error or log.warn, etc., but the payload is correct. I'd like to be able to filter by severity and get email on error. I'm using Spring Boot and Logback. The app has been deployed on a Kubernetes Cluster on GCP. Here is my logback-spring.xml <configuration> <include resource="org/springframework/cloud/gcp/autoconfigure/logging/logback-appender.xml" /> <appender name="STDOUT" class="ch.qos.logback.core

How to wire/configure two pubsub gcp projects in one spring boot application with spring cloud?

怎甘沉沦 提交于 2019-12-11 15:36:58
问题 Currently, we're working on a spring boot application in a GCP project, which connects to a PubSub endpoint in the same GCP project, but also to a PubSub endpoint in another GCP project. I want to use plain spring cloud GCP PubSub components, but with those, I have no chance to set a second PubSub connection to a second GCP project. Also, if I would have one service account, with PubSubTemplate object I have no possibility to target a topic in another project than the current from the service