Нема описа
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107
  1. # Learn detailed information about the fields of an extension.yaml file in the docs:
  2. # https://firebase.google.com/docs/extensions/alpha/ref-extension-yaml
  3. name: greet-the-world # Identifier for your extension
  4. version: 0.0.1 # Follow semver versioning
  5. specVersion: v1beta # Version of the Firebase Extensions specification
  6. # Friendly display name for your extension (~3-5 words)
  7. displayName: Greet the world
  8. # Brief description of the task your extension performs (~1 sentence)
  9. description: >-
  10. Sends the world a greeting.
  11. license: Apache-2.0 # https://spdx.org/licenses/
  12. # Public URL for the source code of your extension
  13. sourceUrl: https://github.com/firebase/firebase-tools/tree/master/templates/extensions
  14. # Specify whether a paid-tier billing plan is required to use your extension.
  15. # Learn more in the docs: https://firebase.google.com/docs/extensions/alpha/ref-extension-yaml#billing-required-field
  16. billingRequired: false
  17. # In an `apis` field, list any Google APIs (like Cloud Translation, BigQuery, etc.)
  18. # required for your extension to operate.
  19. # Learn more in the docs: https://firebase.google.com/docs/extensions/alpha/ref-extension-yaml#apis-field
  20. # In a `roles` field, list any IAM access roles required for your extension to operate.
  21. # Learn more in the docs: https://firebase.google.com/docs/extensions/alpha/ref-extension-yaml#roles-field
  22. # In the `resources` field, list each of your extension's functions, including the trigger for each function.
  23. # Learn more in the docs: https://firebase.google.com/docs/extensions/alpha/ref-extension-yaml#resources-field
  24. resources:
  25. - name: greetTheWorld
  26. type: firebaseextensions.v1beta.function
  27. description: >-
  28. HTTP request-triggered function that responds with a specified greeting message
  29. properties:
  30. # LOCATION is a user-configured parameter value specified by the user during installation.
  31. location: ${LOCATION}
  32. # httpsTrigger is used for an HTTP triggered function.
  33. httpsTrigger: {}
  34. runtime: "nodejs12"
  35. # In the `params` field, set up your extension's user-configured parameters.
  36. # Learn more in the docs: https://firebase.google.com/docs/extensions/alpha/ref-extension-yaml#params-field
  37. params:
  38. - param: GREETING
  39. label: Greeting for the world
  40. description: >-
  41. What do you want to say to the world?
  42. For example, Hello world? or What's up, world?
  43. type: string
  44. default: Hello
  45. required: true
  46. immutable: false
  47. - param: LOCATION
  48. label: Cloud Functions location
  49. description: >-
  50. Where do you want to deploy the functions created for this extension?
  51. For help selecting a location, refer to the [location selection
  52. guide](https://firebase.google.com/docs/functions/locations).
  53. type: select
  54. options:
  55. - label: Iowa (us-central1)
  56. value: us-central1
  57. - label: South Carolina (us-east1)
  58. value: us-east1
  59. - label: Northern Virginia (us-east4)
  60. value: us-east4
  61. - label: Los Angeles (us-west2)
  62. value: us-west2
  63. - label: Salt Lake City (us-west3)
  64. value: us-west3
  65. - label: Las Vegas (us-west4)
  66. value: us-west4
  67. - label: Warsaw (europe-central2)
  68. value: europe-central2
  69. - label: Belgium (europe-west1)
  70. value: europe-west1
  71. - label: London (europe-west2)
  72. value: europe-west2
  73. - label: Frankfurt (europe-west3)
  74. value: europe-west3
  75. - label: Zurich (europe-west6)
  76. value: europe-west6
  77. - label: Hong Kong (asia-east2)
  78. value: asia-east2
  79. - label: Tokyo (asia-northeast1)
  80. value: asia-northeast1
  81. - label: Osaka (asia-northeast2)
  82. value: asia-northeast2
  83. - label: Seoul (asia-northeast3)
  84. value: asia-northeast3
  85. - label: Mumbai (asia-south1)
  86. value: asia-south1
  87. - label: Jakarta (asia-southeast2)
  88. value: asia-southeast2
  89. - label: Montreal (northamerica-northeast1)
  90. value: northamerica-northeast1
  91. - label: Sao Paulo (southamerica-east1)
  92. value: southamerica-east1
  93. - label: Sydney (australia-southeast1)
  94. value: australia-southeast1
  95. required: true
  96. immutable: true