@webda/gcp 2.0.0-beta.1 → 2.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/webda.module.json CHANGED
@@ -9,79 +9,16 @@
9
9
  "models": {},
10
10
  "deployers": {},
11
11
  "schemas": {
12
- "webda/googlecloudstorage": {
12
+ "webda/googlecloudfirestore": {
13
13
  "type": "object",
14
14
  "properties": {
15
15
  "type": {
16
16
  "type": "string",
17
17
  "description": "Type of the service"
18
18
  },
19
- "map": {
20
- "type": "object",
21
- "additionalProperties": {
22
- "type": "array",
23
- "items": {
24
- "type": "string"
25
- }
26
- },
27
- "description": "Define the map to Object collection\n\nkey is a Store name the string[] represent all valids attributes to store files in"
28
- },
29
- "expose": {
30
- "type": "object",
31
- "properties": {
32
- "url": {
33
- "type": "string",
34
- "description": "URL to expose the service to"
35
- },
36
- "restrict": {
37
- "type": "object",
38
- "properties": {
39
- "get": {
40
- "type": "boolean",
41
- "description": "Restrict GET"
42
- },
43
- "create": {
44
- "type": "boolean",
45
- "description": "Restrict POST"
46
- },
47
- "delete": {
48
- "type": "boolean",
49
- "description": "Restrict DELETE"
50
- },
51
- "metadata": {
52
- "type": "boolean",
53
- "description": "Restrict update of metadata"
54
- }
55
- },
56
- "description": "Restrict some APIs"
57
- }
58
- },
59
- "required": [
60
- "url"
61
- ],
62
- "description": "Expose the service to http"
63
- },
64
- "prefix": {
65
- "type": "string"
66
- },
67
- "bucket": {
68
- "type": "string"
69
- }
70
- },
71
- "required": [
72
- "bucket",
73
- "map",
74
- "type"
75
- ],
76
- "$schema": "http://json-schema.org/draft-07/schema#",
77
- "title": "GoogleCloudStorage"
78
- },
79
- "webda/googlecloudfirestore": {
80
- "type": "object",
81
- "properties": {
82
- "type": {
19
+ "url": {
83
20
  "type": "string",
84
- "description": "Type of the service"
21
+ "description": "URL on which to serve the content"
85
22
  },
86
23
  "model": {
87
24
  "type": "string",
@@ -116,6 +53,10 @@
116
53
  "$ref": "#/definitions/FireStoreIndex"
117
54
  },
118
55
  "description": "To allow efficient query on several fields"
56
+ },
57
+ "openapi": {
58
+ "type": "object",
59
+ "additionalProperties": true
119
60
  }
120
61
  },
121
62
  "required": [
@@ -195,6 +136,10 @@
195
136
  "type": "string",
196
137
  "description": "Type of the service"
197
138
  },
139
+ "url": {
140
+ "type": "string",
141
+ "description": "URL on which to serve the content"
142
+ },
198
143
  "topic": {
199
144
  "type": "string",
200
145
  "description": "Topic to use on GCP"
@@ -202,6 +147,10 @@
202
147
  "subscriptionOptions": {
203
148
  "$ref": "#/definitions/CreateSubscriptionOptions",
204
149
  "description": "Subscription options to pass to GCP"
150
+ },
151
+ "openapi": {
152
+ "type": "object",
153
+ "additionalProperties": true
205
154
  }
206
155
  },
207
156
  "required": [
@@ -222,7 +171,7 @@
222
171
  "retry": {
223
172
  "anyOf": [
224
173
  {
225
- "$ref": "#/definitions/Partial%3Cclass-657338214-692-3001-657338214-0-14958%3E"
174
+ "$ref": "#/definitions/Partial%3Cclass-478043683-692-3001-478043683-0-14911%3E"
226
175
  },
227
176
  {
228
177
  "type": "null"
@@ -232,12 +181,6 @@
232
181
  "autoPaginate": {
233
182
  "type": "boolean"
234
183
  },
235
- "pageToken": {
236
- "type": "string"
237
- },
238
- "pageSize": {
239
- "type": "number"
240
- },
241
184
  "maxResults": {
242
185
  "type": "number"
243
186
  },
@@ -445,6 +388,79 @@
445
388
  ],
446
389
  "description": "Subscription pushConfig"
447
390
  },
391
+ "bigqueryConfig": {
392
+ "anyOf": [
393
+ {
394
+ "type": "object",
395
+ "properties": {
396
+ "table": {
397
+ "type": [
398
+ "string",
399
+ "null"
400
+ ],
401
+ "description": "BigQueryConfig table"
402
+ },
403
+ "useTopicSchema": {
404
+ "type": [
405
+ "boolean",
406
+ "null"
407
+ ],
408
+ "description": "BigQueryConfig useTopicSchema"
409
+ },
410
+ "writeMetadata": {
411
+ "type": [
412
+ "boolean",
413
+ "null"
414
+ ],
415
+ "description": "BigQueryConfig writeMetadata"
416
+ },
417
+ "dropUnknownFields": {
418
+ "type": [
419
+ "boolean",
420
+ "null"
421
+ ],
422
+ "description": "BigQueryConfig dropUnknownFields"
423
+ },
424
+ "state": {
425
+ "anyOf": [
426
+ {
427
+ "$ref": "#/definitions/google.pubsub.v1.BigQueryConfig.State"
428
+ },
429
+ {
430
+ "type": "string",
431
+ "const": "STATE_UNSPECIFIED"
432
+ },
433
+ {
434
+ "type": "string",
435
+ "const": "ACTIVE"
436
+ },
437
+ {
438
+ "type": "string",
439
+ "const": "PERMISSION_DENIED"
440
+ },
441
+ {
442
+ "type": "string",
443
+ "const": "NOT_FOUND"
444
+ },
445
+ {
446
+ "type": "string",
447
+ "const": "SCHEMA_MISMATCH"
448
+ },
449
+ {
450
+ "type": "null"
451
+ }
452
+ ],
453
+ "description": "BigQueryConfig state"
454
+ }
455
+ },
456
+ "description": "Properties of a BigQueryConfig."
457
+ },
458
+ {
459
+ "type": "null"
460
+ }
461
+ ],
462
+ "description": "Subscription bigqueryConfig"
463
+ },
448
464
  "ackDeadlineSeconds": {
449
465
  "type": [
450
466
  "number",
@@ -709,6 +725,29 @@
709
725
  ],
710
726
  "description": "Subscription topicMessageRetentionDuration"
711
727
  },
728
+ "state": {
729
+ "anyOf": [
730
+ {
731
+ "$ref": "#/definitions/google.pubsub.v1.Subscription.State"
732
+ },
733
+ {
734
+ "type": "string",
735
+ "const": "STATE_UNSPECIFIED"
736
+ },
737
+ {
738
+ "type": "string",
739
+ "const": "ACTIVE"
740
+ },
741
+ {
742
+ "type": "string",
743
+ "const": "RESOURCE_ERROR"
744
+ },
745
+ {
746
+ "type": "null"
747
+ }
748
+ ],
749
+ "description": "Subscription state"
750
+ },
712
751
  "messageRetentionDuration": {
713
752
  "anyOf": [
714
753
  {
@@ -754,7 +793,7 @@
754
793
  }
755
794
  }
756
795
  },
757
- "Partial<class-657338214-692-3001-657338214-0-14958>": {
796
+ "Partial<class-478043683-692-3001-478043683-0-14911>": {
758
797
  "type": "object",
759
798
  "properties": {
760
799
  "retryCodes": {
@@ -811,6 +850,17 @@
811
850
  }
812
851
  }
813
852
  },
853
+ "google.pubsub.v1.BigQueryConfig.State": {
854
+ "type": "number",
855
+ "enum": [
856
+ 0,
857
+ 1,
858
+ 2,
859
+ 3,
860
+ 4
861
+ ],
862
+ "description": "State enum."
863
+ },
814
864
  "Long": {
815
865
  "type": "object",
816
866
  "properties": {
@@ -833,6 +883,15 @@
833
883
  "unsigned"
834
884
  ]
835
885
  },
886
+ "google.pubsub.v1.Subscription.State": {
887
+ "type": "number",
888
+ "enum": [
889
+ 0,
890
+ 1,
891
+ 2
892
+ ],
893
+ "description": "State enum."
894
+ },
836
895
  "OidcToken": {
837
896
  "type": "object",
838
897
  "properties": {
@@ -863,6 +922,10 @@
863
922
  "type": "string",
864
923
  "description": "Type of the service"
865
924
  },
925
+ "url": {
926
+ "type": "string",
927
+ "description": "URL on which to serve the content"
928
+ },
866
929
  "workerDelayer": {
867
930
  "type": "object",
868
931
  "properties": {
@@ -902,6 +965,10 @@
902
965
  "timeout": {
903
966
  "type": "number",
904
967
  "description": "Timeout when receiveMessage is used before returning empty result (in ms)\n\nIf not define then no timeout is applied and receiveMessage can hang forever"
968
+ },
969
+ "openapi": {
970
+ "type": "object",
971
+ "additionalProperties": true
905
972
  }
906
973
  },
907
974
  "required": [
@@ -913,6 +980,81 @@
913
980
  "description": "GCPQueue Parameters",
914
981
  "$schema": "http://json-schema.org/draft-07/schema#",
915
982
  "title": "GoogleCloudQueue"
983
+ },
984
+ "webda/googlecloudstorage": {
985
+ "type": "object",
986
+ "properties": {
987
+ "type": {
988
+ "type": "string",
989
+ "description": "Type of the service"
990
+ },
991
+ "url": {
992
+ "type": "string",
993
+ "description": "URL on which to serve the content"
994
+ },
995
+ "map": {
996
+ "type": "object",
997
+ "additionalProperties": {
998
+ "type": "array",
999
+ "items": {
1000
+ "type": "string"
1001
+ }
1002
+ },
1003
+ "description": "Define the map to Object collection\n\nkey is a Store name the string[] represent all valids attributes to store files in"
1004
+ },
1005
+ "expose": {
1006
+ "type": "object",
1007
+ "properties": {
1008
+ "url": {
1009
+ "type": "string",
1010
+ "description": "URL to expose the service to"
1011
+ },
1012
+ "restrict": {
1013
+ "type": "object",
1014
+ "properties": {
1015
+ "get": {
1016
+ "type": "boolean",
1017
+ "description": "Restrict GET"
1018
+ },
1019
+ "create": {
1020
+ "type": "boolean",
1021
+ "description": "Restrict POST"
1022
+ },
1023
+ "delete": {
1024
+ "type": "boolean",
1025
+ "description": "Restrict DELETE"
1026
+ },
1027
+ "metadata": {
1028
+ "type": "boolean",
1029
+ "description": "Restrict update of metadata"
1030
+ }
1031
+ },
1032
+ "description": "Restrict some APIs"
1033
+ }
1034
+ },
1035
+ "required": [
1036
+ "url"
1037
+ ],
1038
+ "description": "Expose the service to http"
1039
+ },
1040
+ "prefix": {
1041
+ "type": "string"
1042
+ },
1043
+ "bucket": {
1044
+ "type": "string"
1045
+ },
1046
+ "openapi": {
1047
+ "type": "object",
1048
+ "additionalProperties": true
1049
+ }
1050
+ },
1051
+ "required": [
1052
+ "bucket",
1053
+ "map",
1054
+ "type"
1055
+ ],
1056
+ "$schema": "http://json-schema.org/draft-07/schema#",
1057
+ "title": "GoogleCloudStorage"
916
1058
  }
917
1059
  }
918
1060
  }