-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathgcp-functions.adoc.po
569 lines (478 loc) · 29.2 KB
/
gcp-functions.adoc.po
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
# SOME DESCRIPTIVE TITLE
# Copyright (C) YEAR Free Software Foundation, Inc.
# This file is distributed under the same license as the PACKAGE package.
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
#
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"POT-Creation-Date: 2023-12-03 08:16+0000\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <[email protected]>\n"
"Language: es_ES\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
#. This guide is maintained in the main Quarkus repository
#. and pull requests should be submitted there:
#. https://github.com/quarkusio/quarkus/tree/main/docs/src/main/asciidoc
#. type: Title =
#: _guides/gcp-functions.adoc
#, fuzzy, no-wrap
msgid "Google Cloud Functions (Serverless)"
msgstr "Google Cloud Functions (sin servidor)"
#: _guides/gcp-functions.adoc
#, fuzzy
msgid ""
"The `quarkus-google-cloud-functions` extension allows you to use Quarkus to build your Google Cloud Functions.\n"
"Your functions can use injection annotations from CDI or Spring and other Quarkus facilities as you need them."
msgstr "La extensión `quarkus-google-cloud-functions` le permite utilizar Quarkus para construir sus funciones de Google Cloud. Sus funciones pueden utilizar anotaciones de inyección de CDI o Spring y otras facilidades de Quarkus según las necesite."
#. type: Title ==
#: _guides/gcp-functions.adoc
#, no-wrap
msgid "Prerequisites"
msgstr "Requisitos previos"
#. type: Plain text
#: _guides/gcp-functions.adoc
msgid "https://cloud.google.com/[A Google Cloud Account]. Free accounts work."
msgstr "https://cloud.google.com/[Una cuenta de Google Cloud]. Las cuentas gratuitas funcionan."
#. type: Plain text
#: _guides/gcp-functions.adoc
msgid "https://cloud.google.com/sdk[Cloud SDK CLI Installed]"
msgstr "https://cloud.google.com/sdk[Cloud SDK CLI instalado]"
#. type: Title ==
#: _guides/gcp-functions.adoc
#, no-wrap
msgid "Solution"
msgstr "Solución"
#: _guides/gcp-functions.adoc
#, fuzzy
msgid ""
"This guide walks you through generating a sample project followed by creating multiple functions showing how to implement `HttpFunction`, `BackgroundFunction` and `RawBackgroundFunction` in Quarkus.\n"
"Once built, you will be able to deploy the project to Google Cloud."
msgstr "Esta guía le guiará a través de la generación de un proyecto de ejemplo seguido de la creación de múltiples funciones que muestran cómo implementar `HttpFunction` , `BackgroundFunction` y `RawBackgroundFunction` en Quarkus. Una vez construido, podrá desplegar el proyecto en Google Cloud."
#. type: Plain text
#: _guides/gcp-functions.adoc
msgid "If you don't want to follow all these steps, you can go right to the completed example."
msgstr "Si no quieres seguir todos estos pasos, puedes ir directamente al ejemplo completo."
#. type: Plain text
#: _guides/gcp-functions.adoc
msgid "Clone the Git repository: `git clone {quickstarts-clone-url}`, or download an {quickstarts-archive-url}[archive]."
msgstr "Clone el repositorio Git: `git clone {quickstarts-clone-url}` o descargue un {quickstarts-archive-url}[archivo]."
#. type: Plain text
#: _guides/gcp-functions.adoc
#, fuzzy
msgid "The solution is located in the `google-cloud-functions-quickstart` link:{quickstarts-tree-url}/google-cloud-functions-quickstart[directory]."
msgstr "La solución se encuentra en el `google-cloud-functions-quickstart` {quickstarts-tree-url}/google-cloud-functions-quickstart[directorio]."
#. type: Title ==
#: _guides/gcp-functions.adoc
#, no-wrap
msgid "Creating the Maven Deployment Project"
msgstr "Creación del proyecto de Maven"
#: _guides/gcp-functions.adoc
#, fuzzy
msgid ""
"Create an application with the `quarkus-google-cloud-functions` extension.\n"
"You can use the following Maven command to create it:"
msgstr "Cree una aplicación con la extensión `quarkus-google-cloud-functions` . Puede utilizar el siguiente comando de Maven para crearla:"
#. type: Title ==
#: _guides/gcp-functions.adoc
#, no-wrap
msgid "Login to Google Cloud"
msgstr "Iniciar sesión en Google Cloud"
#. type: Plain text
#: _guides/gcp-functions.adoc
#, fuzzy
msgid "Login to Google Cloud is necessary for deploying the application. It can be done as follows:"
msgstr "El inicio de sesión en Google Cloud es necesario para desplegar la aplicación y se puede hacer de la siguiente manera:"
#. type: Title ==
#: _guides/gcp-functions.adoc
#, fuzzy, no-wrap
msgid "Creating the functions"
msgstr "Creación de las funciones"
#: _guides/gcp-functions.adoc
#, fuzzy
msgid ""
"For this example project, we will create four functions, one `HttpFunction`, one `BackgroundFunction` (Storage event),\n"
"one `RawBackgroundFunction` (PubSub event) and one `CloudEventsFunction` (storage event using the Cloud Events specification)."
msgstr "Para este proyecto de ejemplo, crearemos cuatro funciones, una `HttpFunction` , una `BackgroundFunction` (evento de almacenamiento), una `RawBackgroundFunction` (evento PubSub) y una `CloudEventsFunction` (evento de almacenamiento que utiliza la especificación de eventos en la nube)."
#. type: Title ==
#: _guides/gcp-functions.adoc
#, fuzzy, no-wrap
msgid "Choose Your Function"
msgstr "Elija su función"
#: _guides/gcp-functions.adoc
#, fuzzy
msgid ""
"The `quarkus-google-cloud-functions` extension scans your project for a class that directly implements the Google Cloud `HttpFunction`, `BackgroundFunction`, `RawBackgroundFunction` or `CloudEventsFunction` interface.\n"
"It must find a class in your project that implements one of these interfaces, or it will throw a build time failure.\n"
"If it finds more than one function classes, a build time exception will also be thrown."
msgstr "La extensión `quarkus-google-cloud-functions` busca en su proyecto una clase que implemente directamente la interfaz de Google Cloud `HttpFunction` , `BackgroundFunction` , `RawBackgroundFunction` o `CloudEventsFunction` . Debe encontrar una clase en su proyecto que implemente una de estas interfaces, o lanzará un fallo de tiempo de compilación. Si encuentra más de una clase funcional, también lanzará una excepción de tiempo de compilación."
#: _guides/gcp-functions.adoc
#, fuzzy
msgid ""
"Sometimes, though, you might have a few related functions that share code and creating multiple maven modules is just\n"
"an overhead you don't want to do. The extension allows you to bundle multiple functions in one\n"
"project and use configuration or an environment variable to pick the function you want to deploy."
msgstr "A veces, sin embargo, puede tener unas cuantas funciones relacionadas que comparten código y crear varios módulos maven es una sobrecarga que no quiere hacer. La extensión le permite agrupar varias funciones en un proyecto y utilizar la configuración o una variable de entorno para elegir la función que desea desplegar."
#. type: Plain text
#: _guides/gcp-functions.adoc
#, fuzzy
msgid "To configure the name of the function, you can use the following configuration property:"
msgstr "Para configurar el nombre de la función, puede utilizar la siguiente propiedad de configuración:"
#: _guides/gcp-functions.adoc
#, fuzzy
msgid ""
"The `quarkus.google-cloud-functions.function` property tells Quarkus which function to deploy. This can be overridden\n"
"with an environment variable too."
msgstr "La propiedad `quarkus.google-cloud-functions.function` indica a Quarkus qué función debe desplegar. Esto también puede anularse con una variable de entorno."
#: _guides/gcp-functions.adoc
#, fuzzy
msgid ""
"The CDI name of the function class must match the value specified within the `quarkus.google-cloud-functions.function` property.\n"
"This must be done using the `@Named` annotation."
msgstr "El nombre CDI de la clase de función debe coincidir con el valor especificado en la propiedad `quarkus.google-cloud-functions.function` . Esto debe hacerse utilizando la anotación `@Named` ."
#. type: Title ===
#: _guides/gcp-functions.adoc
#, fuzzy, no-wrap
msgid "The HttpFunction"
msgstr "La función HttpFunction"
#. type: Plain text
#: _guides/gcp-functions.adoc
#, fuzzy
msgid "The `@Named` annotation allows to name the CDI bean to be used by the `quarkus.google-cloud-functions.function` property, this is optional."
msgstr "La anotación `@Named` permite nombrar el bean CDI que será utilizado por la propiedad `quarkus.google-cloud-functions.function`, esto es opcional."
#. type: Plain text
#: _guides/gcp-functions.adoc
#, fuzzy
msgid "The function must be a CDI bean"
msgstr "La función debe ser un frijol CDI"
#. type: Plain text
#: _guides/gcp-functions.adoc
#, fuzzy
msgid "This is a regular Google Cloud Function implementation, so it needs to implement `com.google.cloud.functions.HttpFunction`."
msgstr "Se trata de una implementación normal de Google Cloud Function, por lo que es necesario implementar `com.google.cloud.functions.HttpFunction`."
#. type: Plain text
#: _guides/gcp-functions.adoc
#, fuzzy
msgid "Injection works inside your function."
msgstr "La inyección funciona dentro de su función."
#. type: Plain text
#: _guides/gcp-functions.adoc
#, fuzzy
msgid "This is standard Google Cloud Function implementation, nothing fancy here."
msgstr "Se trata de la implementación estándar de Google Cloud Function, no hay nada de fantasía aquí."
#. type: Title ===
#: _guides/gcp-functions.adoc
#, fuzzy, no-wrap
msgid "The BackgroundFunction"
msgstr "La función de fondo"
#. type: Plain text
#: _guides/gcp-functions.adoc
#, fuzzy
msgid "This `BackgroundFunction` is triggered by a Storage event, you can use any events supported by Google Cloud instead."
msgstr "Este `BackgroundFunction` es activado por un evento de Almacenamiento, puede utilizar cualquier evento soportado por Google Cloud en su lugar."
#. type: Plain text
#: _guides/gcp-functions.adoc
#, fuzzy
msgid "This is a regular Google Cloud Function implementation, so it needs to implement `com.google.cloud.functions.BackgroundFunction`."
msgstr "Se trata de una implementación normal de Google Cloud Function, por lo que es necesario implementar `com.google.cloud.functions.BackgroundFunction`."
#. type: Plain text
#: _guides/gcp-functions.adoc
#, fuzzy
msgid "This is the class the event will be deserialized to."
msgstr "Esta es la clase a la que se deserializará el evento."
#. type: Title ===
#: _guides/gcp-functions.adoc
#, fuzzy, no-wrap
msgid "The RawBackgroundFunction"
msgstr "La función RawBackgroundFunction"
#. type: Plain text
#: _guides/gcp-functions.adoc
#, fuzzy
msgid "This `RawBackgroundFunction` is triggered by a PubSub event, you can use any events supported by Google Cloud instead."
msgstr "Este `RawBackgroundFunction` es activado por un evento PubSub, en su lugar puede utilizar cualquier evento soportado por Google Cloud."
#. type: Plain text
#: _guides/gcp-functions.adoc
#, fuzzy
msgid "This is a regular Google Cloud Function implementation, so it needs to implement `com.google.cloud.functions.RawBackgroundFunction`."
msgstr "Se trata de una implementación normal de Google Cloud Function, por lo que es necesario implementar `com.google.cloud.functions.RawBackgroundFunction`."
#. type: Title ===
#: _guides/gcp-functions.adoc
#, fuzzy, no-wrap
msgid "The CloudEventsFunction"
msgstr "La función CloudEventsFunction"
#. type: Plain text
#: _guides/gcp-functions.adoc
#, fuzzy
msgid "This `CloudEventsFunction` is triggered by a Cloud Events Storage event, you can use any Cloud Events supported by Google Cloud instead."
msgstr "Este `CloudEventsFunction` es activado por un evento de almacenamiento de eventos de la nube, puede utilizar cualquier evento de la nube soportado por Google Cloud en su lugar."
#. type: Plain text
#: _guides/gcp-functions.adoc
#, fuzzy
msgid "This is a regular Google Cloud Function implementation, so it needs to implement `com.google.cloud.functions.CloudEventsFunction`."
msgstr "Se trata de una implementación normal de Google Cloud Function, por lo que es necesario implementar `com.google.cloud.functions.CloudEventsFunction`."
#. type: Plain text
#: _guides/gcp-functions.adoc
#, fuzzy
msgid "This is standard Google Cloud Function implementation, nothing fancy here except that it receives a `io.cloudevents.CloudEvent`."
msgstr "Se trata de una implementación estándar de Google Cloud Function, nada elegante aquí, excepto que recibe un `io.cloudevents.CloudEvent`."
#. type: Plain text
#: _guides/gcp-functions.adoc
#, fuzzy
msgid "This is the storage event inside the Cloud Events."
msgstr "Este es el evento de almacenamiento dentro de los Eventos de la Nube."
#. type: Title ==
#: _guides/gcp-functions.adoc
#, no-wrap
msgid "Build and Deploy to Google Cloud"
msgstr "Construir y desplegar en Google Cloud"
#. type: Plain text
#: _guides/gcp-functions.adoc
#, fuzzy
msgid "To build your application, you can package it using the standard command:"
msgstr "Para construir su aplicación, puede empaquetarla utilizando el comando estándar:"
#. type: Plain text
#: _guides/gcp-functions.adoc
#, fuzzy
msgid "The result of the previous command is a single JAR file inside the `target/deployment` repository that contains classes and dependencies of the project."
msgstr "El resultado del comando anterior es un único archivo JAR dentro del repositorio `target/deployment` que contiene las clases y dependencias del proyecto."
#: _guides/gcp-functions.adoc
#, fuzzy
msgid ""
"Then you will be able to use `gcloud` to deploy your function to Google Cloud.\n"
"The `gcloud` command will be different depending on which event triggers your function."
msgstr "Entonces podrá utilizar `gcloud` para desplegar su función en Google Cloud. El comando `gcloud` será diferente dependiendo del evento que active su función."
#: _guides/gcp-functions.adoc
msgid "We will use the Java 21 runtime but you can switch to the Java 17 runtime by using `--runtime=java17` instead of `--runtime=java21` on the deploy commands."
msgstr ""
#. type: delimited block =
#: _guides/gcp-functions.adoc
msgid "The first time you launch this command, you can have the following error message:"
msgstr "La primera vez que se lanza este comando, puede aparecer el siguiente mensaje de error:"
#. type: Plain text
#: _guides/gcp-functions.adoc
msgid "This means that Cloud Build is not activated yet. To overcome this error, open the URL shown in the error, follow the instructions and then wait a few minutes before retrying the command."
msgstr "Esto significa que Cloud Build aún no está activado. Para superar este error, abra la URL que se muestra en el error, siga las instrucciones y luego espere unos minutos antes de volver a intentar el comando."
#. type: delimited block =
#: _guides/gcp-functions.adoc
#, fuzzy
msgid "This is an example command to deploy your `HttpFunction` to Google Cloud:"
msgstr "Este es un comando de ejemplo para desplegar su `HttpFunction` en Google Cloud:"
#. type: delimited block =
#: _guides/gcp-functions.adoc
#, fuzzy
msgid "The entry point must always be set to `io.quarkus.gcp.functions.QuarkusHttpFunction` as this is the class that integrates Cloud Functions with Quarkus."
msgstr "El punto de entrada debe ser siempre `io.quarkus.gcp.functions.QuarkusHttpFunction` ya que esta es la clase que integra las Funciones Cloud con Quarkus."
#. type: Plain text
#: _guides/gcp-functions.adoc
msgid "This command will give you as output a `httpsTrigger.url` that points to your function."
msgstr "Este comando le dará como salida un `httpsTrigger.url` que apunta a su función."
#. type: Plain text
#: _guides/gcp-functions.adoc
#, fuzzy
msgid "Before deploying your function, you need to create a bucket."
msgstr "Antes de desplegar su función, debe crear un cubo."
#: _guides/gcp-functions.adoc
#, fuzzy
msgid ""
"This is an example command to deploy your `BackgroundFunction` to Google Cloud, as the function is triggered by a Storage event,\n"
"it needs to use `--trigger-event google.storage.object.finalize` and the `--trigger-resource` parameter with the name of a previously created bucket:"
msgstr "Este es un comando de ejemplo para desplegar su `BackgroundFunction` en Google Cloud, como la función se activa por un evento de Almacenamiento, necesita utilizar `--trigger-event google.storage.object.finalize` y el parámetro `--trigger-resource` con el nombre de un cubo creado previamente:"
#. type: delimited block =
#: _guides/gcp-functions.adoc
#, fuzzy
msgid "The entry point must always be set to `io.quarkus.gcp.functions.QuarkusBackgroundFunction` as this is the class that integrates Cloud Functions with Quarkus."
msgstr "El punto de entrada debe ser siempre `io.quarkus.gcp.functions.QuarkusBackgroundFunction` ya que esta es la clase que integra las Funciones Cloud con Quarkus."
#. type: Plain text
#: _guides/gcp-functions.adoc
#, fuzzy
msgid "To trigger the event, you can send a file to the GCS `quarkus-hello` bucket, or you can use gcloud to simulate one:"
msgstr "Para activar el evento, puede enviar un archivo al cubo de GCS `quarkus-hello` o puede utilizar gcloud para simular uno:"
#. type: Plain text
#: _guides/gcp-functions.adoc
#, fuzzy
msgid "`--data` contains the GCS event, it is a JSON document with the name of the file added to the bucket."
msgstr "`--data` contiene el evento GCS, es un documento JSON con el nombre del archivo añadido al cubo."
#: _guides/gcp-functions.adoc
#, fuzzy
msgid ""
"This is an example command to deploy your `RawBackgroundFunction` to Google Cloud, as the function is triggered by a PubSub event,\n"
"it needs to use `--trigger-event google.pubsub.topic.publish` and the `--trigger-resource` parameter with the name of a previously created topic:"
msgstr "Este es un comando de ejemplo para desplegar su `RawBackgroundFunction` en Google Cloud, como la función se activa por un evento PubSub, necesita utilizar `--trigger-event google.pubsub.topic.publish` y el parámetro `--trigger-resource` con el nombre de un tema creado previamente:"
#. type: Plain text
#: _guides/gcp-functions.adoc
#, fuzzy
msgid "To trigger the event, you can send a file to the `hello_topic` topic, or you can use gcloud to simulate one:"
msgstr "Para desencadenar el evento, puede enviar un archivo al tema `hello_topic` o puede utilizar gcloud para simular uno:"
#: _guides/gcp-functions.adoc
#, fuzzy
msgid ""
"This is an example command to deploy your `CloudEventsFunction` to Google Cloud, as the function is triggered by a Storage event,\n"
"it needs to use `--trigger-bucket` parameter with the name of a previously created bucket:"
msgstr "Este es un comando de ejemplo para desplegar su `CloudEventsFunction` en Google Cloud, como la función se desencadena por un evento de Almacenamiento, necesita utilizar el parámetro `--trigger-bucket` con el nombre de un cubo creado previamente:"
#. type: delimited block =
#: _guides/gcp-functions.adoc
#, fuzzy
msgid "The entry point must always be set to `io.quarkus.gcp.functions.QuarkusCloudEventsFunction` as this is the class that integrates Cloud Functions with Quarkus."
msgstr "El punto de entrada debe ser siempre `io.quarkus.gcp.functions.QuarkusCloudEventsFunction` ya que esta es la clase que integra las Funciones Cloud con Quarkus."
#. type: Plain text
#: _guides/gcp-functions.adoc
#, fuzzy
msgid "To trigger the event, you can send a file to the GCS `example-cloud-event` bucket."
msgstr "Para activar el evento, puede enviar un archivo al cubo de la GCS `example-cloud-event`."
#. type: Title ==
#: _guides/gcp-functions.adoc
#, fuzzy, no-wrap
msgid "Running locally"
msgstr "Pruebas locales"
#. type: Plain text
#: _guides/gcp-functions.adoc
#, fuzzy
msgid "The easiest way to locally run your function is using the Cloud Function invoker JAR."
msgstr "La forma más sencilla de probar localmente su función es utilizando el JAR invocador de funciones en la nube."
#. type: Plain text
#: _guides/gcp-functions.adoc
msgid "You can download it via Maven using the following command:"
msgstr "Puede descargarlo a través de Maven utilizando el siguiente comando:"
#. type: Plain text
#: _guides/gcp-functions.adoc
#, fuzzy
msgid "Before using the invoker, you first need to build your function via:"
msgstr "Antes de utilizar el invocador, primero hay que construir la función vía:"
#. type: Plain text
#: _guides/gcp-functions.adoc
#, fuzzy
msgid "For an `HttpFunction`, you can use this command to launch your function locally."
msgstr "Para probar un `HttpFunction`, puede utilizar este comando para lanzar su función localmente."
#. type: Plain text
#: _guides/gcp-functions.adoc
msgid "The `--classpath` parameter needs to be set to the previously packaged JAR that contains your function class and all Quarkus related classes."
msgstr "El parámetro `--classpath` necesita ser establecido en el JAR previamente empaquetado que contiene su clase de función y todas las clases relacionadas con Quarkus."
#. type: Plain text
#: _guides/gcp-functions.adoc
msgid "Your endpoints will be available on http://localhost:8080."
msgstr "Sus endpoints estarán disponibles en http://localhost:8080."
#. type: Plain text
#: _guides/gcp-functions.adoc
#, fuzzy
msgid "For background functions, you launch the invoker with a target class of `io.quarkus.gcp.functions.BackgroundFunction`."
msgstr "Para las funciones de fondo, se lanza el invocador con una clase de destino de `io.quarkus.gcp.functions.BackgroundFunction`."
#. type: Plain text
#: _guides/gcp-functions.adoc
#, fuzzy
msgid "Then you can call your background function via an HTTP call with a payload containing the event:"
msgstr "Entonces puede llamar a su función de fondo a través de una llamada HTTP con una carga útil que contenga el evento:"
#. type: Plain text
#: _guides/gcp-functions.adoc
#, fuzzy
msgid "This will call your Storage background function with an event `{\"name\":\"hello.txt\"}`, so an event on the `hello.txt` file."
msgstr "Esto llamará a su función de fondo de almacenamiento con un evento `{\"name\":\"hello.txt\"}`, por lo que un evento en el archivo `hello.txt`."
#. type: Plain text
#: _guides/gcp-functions.adoc
#, fuzzy
msgid "This will call your PubSub background function with a PubSubMessage `{\"greeting\":\"world\"}`."
msgstr "Esto llamará a su función de fondo PubSub con un PubSubMessage `{\"greeting\":\"world\"}`."
#. type: Plain text
#: _guides/gcp-functions.adoc
#, fuzzy
msgid "For cloud events functions, you launch the invoker with a target class of `io.quarkus.gcp.functions.QuarkusCloudEventsFunction`."
msgstr "Para las funciones de eventos en la nube, se lanza el invocador con una clase de destino de `io.quarkus.gcp.functions.QuarkusCloudEventsFunction`."
#. type: Plain text
#: _guides/gcp-functions.adoc
#, fuzzy
msgid "Then you can call your cloud events function via an HTTP call with a payload containing the event:"
msgstr "Entonces puede llamar a su función de eventos en la nube a través de una llamada HTTP con una carga útil que contenga el evento:"
#. type: Plain text
#: _guides/gcp-functions.adoc
#, fuzzy
msgid "This will call your cloud events function with an event on the `\"MY_FILE.txt` file."
msgstr "Esto llamará a su función de eventos en la nube con un evento en el archivo `\"MY_FILE.txt`."
#. type: Title ==
#: _guides/gcp-functions.adoc
#, fuzzy, no-wrap
msgid "Testing your function"
msgstr "Creación de las funciones"
#. type: Plain text
#: _guides/gcp-functions.adoc
#, fuzzy
msgid "Quarkus provides built-in support for testing your Google Cloud functions via the `quarkus-test-google-cloud-functions` dependency."
msgstr "Quarkus proporciona soporte integrado para probar las funciones de Google Cloud a través de la dependencia `quarkus-test-google-cloud-functions`."
#. type: Plain text
#: _guides/gcp-functions.adoc
#, fuzzy
msgid "To use it, you must add the following test dependency in your `pom.xml`."
msgstr "Para utilizarlo, debe añadir la siguiente dependencia de prueba en su `pom.xml`."
#: _guides/gcp-functions.adoc
#, fuzzy
msgid ""
"This extension provides a `@WithFunction` annotation that can be used to annotate `@QuarkusTest` test cases to start a Cloud Function invoker before you test cases and stop it at the end.\n"
"This annotation must be configured with the type of the function you want to launch, and optionally the name of the function in case you have multiple functions inside your application."
msgstr "Esta extensión proporciona una anotación `@WithFunction` que puede utilizarse para anotar los casos de prueba `@QuarkusTest` para que inicie un invocador de funciones en la nube antes de los casos de prueba y lo detenga al final. Esta anotación debe configurarse con el tipo de función que desea lanzar y, opcionalmente, el nombre de la función en caso de que tenga varias funciones dentro de su aplicación."
#. type: Plain text
#: _guides/gcp-functions.adoc
#, fuzzy
msgid "The default Quarkus test port configuration (`quarkus.http.test-port`) will be honored and if you set it to 0 a random port will be assigned to the function invoker."
msgstr "Se respetará la configuración predeterminada del puerto de prueba de Quarkus ( `quarkus.http.test-port`) y si se establece en 0 se asignará un puerto aleatorio al invocador de la función."
#. type: Plain text
#: _guides/gcp-functions.adoc
#, fuzzy
msgid "This is a standard Quarkus test that must be annotated by `@QuarkusTest`."
msgstr "Se trata de una prueba estándar de Quarkus que debe ser anotada por `@QuarkusTest`."
#. type: Plain text
#: _guides/gcp-functions.adoc
#, fuzzy
msgid "`@WithFunction(FunctionType.HTTP)` indicates to launch the function as an HTTP function. If multiple functions exist in the same application, the `functionName` attribute must be used to denote which one should be launched."
msgstr "`@WithFunction(FunctionType.HTTP)` indica que se lance la función como una función HTTP. Si existen varias funciones en la misma aplicación, debe utilizarse el atributo `functionName` para indicar cuál debe lanzarse."
#. type: Plain text
#: _guides/gcp-functions.adoc
#, fuzzy
msgid "REST-assured is used to test the function, `Hello World!` will be sent to it via the invoker."
msgstr "REST-assured se utiliza para probar la función, `Hello World!` se le enviará a través del invocador."
#. type: Plain text
#: _guides/gcp-functions.adoc
#, fuzzy
msgid "`@WithFunction(FunctionType.BACKGROUND)` indicates to launch the function as a background function. If multiple functions exist in the same application, the `functionName` attribute must be used to denote which one should be launched."
msgstr "`@WithFunction(FunctionType.BACKGROUND)` indica que la función se ejecute en segundo plano. Si existen varias funciones en la misma aplicación, debe utilizarse el atributo `functionName` para indicar cuál debe lanzarse."
#. type: Plain text
#: _guides/gcp-functions.adoc
#, fuzzy
msgid "REST-assured is used to test the function, `{\"name\":\"hello.txt\"}` will be sent to it via the invoker."
msgstr "REST-assured se utiliza para probar la función, `{\"name\":\"hello.txt\"}` se le enviará a través del invocador."
#. type: Plain text
#: _guides/gcp-functions.adoc
#, fuzzy
msgid "`@WithFunction(FunctionType.RAW_BACKGROUND)` indicates to launch the function as a raw background function. If multiple functions exist in the same application, the `functionName` attribute must be used to denote which one should be launched."
msgstr "`@WithFunction(FunctionType.RAW_BACKGROUND)` indica que se lance la función como una función en segundo plano sin procesar. Si existen varias funciones en la misma aplicación, debe utilizarse el atributo `functionName` para indicar cuál de ellas debe iniciarse."
#. type: Plain text
#: _guides/gcp-functions.adoc
#, fuzzy
msgid "`@WithFunction(FunctionType.CLOUD_EVENTS)` indicates to launch the function as a cloud events function. If multiple functions exist in the same application, the `functionName` attribute must be used to denote which one should be launched."
msgstr "`@WithFunction(FunctionType.CLOUD_EVENTS)` indica que se lance la función como una función de eventos en la nube. Si existen varias funciones en la misma aplicación, debe utilizarse el atributo `functionName` para indicar cuál debe lanzarse."
#. type: Plain text
#: _guides/gcp-functions.adoc
#, fuzzy
msgid "REST-assured is used to test the function, this payload that describe a storage event will be sent to it via the invoker."
msgstr "REST-asegurado se utiliza para probar la función, esta carga útil que describe un evento de almacenamiento se enviará a través del invocador."
#. type: Plain text
#: _guides/gcp-functions.adoc
#, fuzzy
msgid "The cloud events headers must be sent via HTTP headers."
msgstr "Las cabeceras de los eventos en la nube deben enviarse a través de cabeceras HTTP."
#. type: Title ==
#: _guides/gcp-functions.adoc
#, no-wrap
msgid "What's next?"
msgstr "¿Qué es lo que sigue?"
#. type: Plain text
#: _guides/gcp-functions.adoc
#, fuzzy
msgid "If you are looking for Jakarta REST, Servlet or Vert.x support for Google Cloud Functions, we have it thanks to our xref:gcp-functions-http.adoc[Google Cloud Functions HTTP binding]."
msgstr "Si buscas compatibilidad con JAX-RS, Servlet o Vert.x para Google Cloud Functions, la tenemos gracias a nuestro link:gcp-functions-http.html[enlace HTTP Google Cloud Functions]."
#. type: Plain text
#: _guides/gcp-functions.adoc
#, fuzzy
msgid "If you are looking for a provider-agnostic implementation of your Google Cloud Functions, we have it thanks to our xref:funqy-gcp-functions.adoc[Funqy Google Cloud Functions extension]."
msgstr "Si buscas una implementación de Google Cloud Functions independiente del proveedor, la tenemos gracias a nuestra link:funqy-gcp-functions.html[extensión Funqy Google Cloud Functions]."