forked from withfig/autocomplete
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfunctions.ts
2864 lines (2851 loc) · 145 KB
/
functions.ts
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
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
const completionSpec: Fig.Spec = {
name: "functions",
description: "Manage Google Cloud Functions",
subcommands: [
{
name: "add-iam-policy-binding",
description: "Add an IAM policy binding for a Google Cloud Function",
options: [
{
name: "--account",
description:
"Google Cloud Platform user account to use for invocation. Overrides the default *core/account* property value for this command invocation",
args: {
name: "ACCOUNT",
description: "String",
suggestions: [],
},
},
{
name: "--billing-project",
description:
"The Google Cloud Platform project that will be charged quota for operations performed in gcloud. If you need to operate on one project, but need quota against a different project, you can use this flag to specify the billing project. If both `billing/quota_project` and `--billing-project` are specified, `--billing-project` takes precedence. Run `$ gcloud config set --help` to see more information about `billing/quota_project`",
args: {
name: "BILLING_PROJECT",
description: "String",
suggestions: [],
},
},
{
name: "--configuration",
description:
"The configuration to use for this command invocation. For more\ninformation on how to use configurations, run:\n`gcloud topic configurations`. You can also use the CLOUDSDK_ACTIVE_CONFIG_NAME environment\nvariable to set the equivalent of this flag for a terminal\nsession",
args: {
name: "CONFIGURATION",
description: "String",
suggestions: [],
},
},
{
name: "--flags-file",
description:
"A YAML or JSON file that specifies a *--flag*:*value* dictionary.\nUseful for specifying complex flag values with special characters\nthat work with any command interpreter. Additionally, each\n*--flags-file* arg is replaced by its constituent flags. See\n$ gcloud topic flags-file for more information",
args: {
name: "YAML_FILE",
description: "String",
suggestions: [],
},
},
{
name: "--flatten",
description:
"Flatten _name_[] output resource slices in _KEY_ into separate records\nfor each item in each slice. Multiple keys and slices may be specified.\nThis also flattens keys for *--format* and *--filter*. For example,\n*--flatten=abc.def* flattens *abc.def[].ghi* references to\n*abc.def.ghi*. A resource record containing *abc.def[]* with N elements\nwill expand to N records in the flattened output. This flag interacts\nwith other flags that are applied in this order: *--flatten*,\n*--sort-by*, *--filter*, *--limit*",
args: {
name: "KEY",
description: "List",
suggestions: [],
},
},
{
name: "--format",
description:
"Set the format for printing command output resources. The default is a\ncommand-specific human-friendly output format. The supported formats\nare: `config`, `csv`, `default`, `diff`, `disable`, `flattened`, `get`, `json`, `list`, `multi`, `none`, `object`, `table`, `text`, `value`, `yaml`. For more details run $ gcloud topic formats",
args: {
name: "FORMAT",
description: "String",
suggestions: [],
},
},
{
name: "--help",
description: "Display detailed help",
},
{
name: "--impersonate-service-account",
description:
"For this gcloud invocation, all API requests will be made as the given service account instead of the currently selected account. This is done without needing to create, download, and activate a key for the account. In order to perform operations as the service account, your currently selected account must have an IAM role that includes the iam.serviceAccounts.getAccessToken permission for the service account. The roles/iam.serviceAccountTokenCreator role has this permission or you may create a custom role. Overrides the default *auth/impersonate_service_account* property value for this command invocation",
args: {
name: "SERVICE_ACCOUNT_EMAIL",
description: "String",
suggestions: [],
},
},
{
name: "--log-http",
description:
"Log all HTTP server requests and responses to stderr. Overrides the default *core/log_http* property value for this command invocation",
},
{
name: "--member",
description:
"The member to add the binding for. Should be of the form `user|group|serviceAccount:email` or\n`domain:domain`.\n+\nExamples: `user:[email protected]`, `group:[email protected]`,\n`serviceAccount:[email protected]`, or\n`domain:example.domain.com`.\n+\nCan also be one of the following special values:\n* `allUsers` - Special identifier that represents anyone who is on the internet,\n with or without a Google account.\n* `allAuthenticatedUsers` - Special identifier that represents anyone who is\n authenticated with a Google account or a service account",
args: {
name: "MEMBER",
description: "String",
suggestions: [],
},
priority: 100,
},
{
name: "--project",
description:
"The Google Cloud Platform project ID to use for this invocation. If\nomitted, then the current project is assumed; the current project can\nbe listed using `gcloud config list --format='text(core.project)'`\nand can be set using `gcloud config set project PROJECTID`.\n+\n`--project` and its fallback `core/project` property play two roles\nin the invocation. It specifies the project of the resource to\noperate on. It also specifies the project for API enablement check,\nquota, and billing. To specify a different project for quota and\nbilling, use `--billing-project` or `billing/quota_project` property",
args: {
name: "PROJECT_ID",
description: "String",
suggestions: [],
},
},
{
name: "--quiet",
description:
"Disable all interactive prompts when running gcloud commands. If input\nis required, defaults will be used, or an error will be raised.\nOverrides the default core/disable_prompts property value for this\ncommand invocation. This is equivalent to setting the environment\nvariable `CLOUDSDK_CORE_DISABLE_PROMPTS` to 1",
},
{
name: "--region",
description:
"The Cloud region for the function. Overrides the default `functions/region` property value for this command invocation",
args: {
name: "REGION",
description: "String",
suggestions: [],
},
},
{
name: "--role",
description: "Define the role of the member",
args: {
name: "ROLE",
description: "String",
suggestions: [],
},
priority: 100,
},
{
name: "--trace-token",
description:
"Token used to route traces of service requests for investigation of issues. Overrides the default *core/trace_token* property value for this command invocation",
args: {
name: "TRACE_TOKEN",
description: "String",
suggestions: [],
},
},
{
name: "--user-output-enabled",
description:
"Print user intended output to the console. Overrides the default *core/user_output_enabled* property value for this command invocation. Use *--no-user-output-enabled* to disable",
},
{
name: "--verbosity",
description:
"Override the default verbosity for this command. Overrides the default *core/verbosity* property value for this command invocation. _VERBOSITY_ must be one of: *debug*, *info*, *warning*, *error*, *critical*, *none*",
args: {
name: "VERBOSITY",
description: "String",
suggestions: [
"debug",
"info",
"warning",
"error",
"critical",
"none",
],
},
},
],
args: {
name: "NAME",
description:
"ID of the function or fully qualified identifier for the function",
isVariadic: false,
},
},
{
name: "call",
description: "Trigger execution of a Google Cloud Function",
options: [
{
name: "--account",
description:
"Google Cloud Platform user account to use for invocation. Overrides the default *core/account* property value for this command invocation",
args: {
name: "ACCOUNT",
description: "String",
suggestions: [],
},
},
{
name: "--billing-project",
description:
"The Google Cloud Platform project that will be charged quota for operations performed in gcloud. If you need to operate on one project, but need quota against a different project, you can use this flag to specify the billing project. If both `billing/quota_project` and `--billing-project` are specified, `--billing-project` takes precedence. Run `$ gcloud config set --help` to see more information about `billing/quota_project`",
args: {
name: "BILLING_PROJECT",
description: "String",
suggestions: [],
},
},
{
name: "--configuration",
description:
"The configuration to use for this command invocation. For more\ninformation on how to use configurations, run:\n`gcloud topic configurations`. You can also use the CLOUDSDK_ACTIVE_CONFIG_NAME environment\nvariable to set the equivalent of this flag for a terminal\nsession",
args: {
name: "CONFIGURATION",
description: "String",
suggestions: [],
},
},
{
name: "--data",
description:
"JSON string with data that will be passed to the function",
args: {
name: "DATA",
description: "String",
suggestions: [],
},
},
{
name: "--flags-file",
description:
"A YAML or JSON file that specifies a *--flag*:*value* dictionary.\nUseful for specifying complex flag values with special characters\nthat work with any command interpreter. Additionally, each\n*--flags-file* arg is replaced by its constituent flags. See\n$ gcloud topic flags-file for more information",
args: {
name: "YAML_FILE",
description: "String",
suggestions: [],
},
},
{
name: "--flatten",
description:
"Flatten _name_[] output resource slices in _KEY_ into separate records\nfor each item in each slice. Multiple keys and slices may be specified.\nThis also flattens keys for *--format* and *--filter*. For example,\n*--flatten=abc.def* flattens *abc.def[].ghi* references to\n*abc.def.ghi*. A resource record containing *abc.def[]* with N elements\nwill expand to N records in the flattened output. This flag interacts\nwith other flags that are applied in this order: *--flatten*,\n*--sort-by*, *--filter*, *--limit*",
args: {
name: "KEY",
description: "List",
suggestions: [],
},
},
{
name: "--format",
description:
"Set the format for printing command output resources. The default is a\ncommand-specific human-friendly output format. The supported formats\nare: `config`, `csv`, `default`, `diff`, `disable`, `flattened`, `get`, `json`, `list`, `multi`, `none`, `object`, `table`, `text`, `value`, `yaml`. For more details run $ gcloud topic formats",
args: {
name: "FORMAT",
description: "String",
suggestions: [],
},
},
{
name: "--help",
description: "Display detailed help",
},
{
name: "--impersonate-service-account",
description:
"For this gcloud invocation, all API requests will be made as the given service account instead of the currently selected account. This is done without needing to create, download, and activate a key for the account. In order to perform operations as the service account, your currently selected account must have an IAM role that includes the iam.serviceAccounts.getAccessToken permission for the service account. The roles/iam.serviceAccountTokenCreator role has this permission or you may create a custom role. Overrides the default *auth/impersonate_service_account* property value for this command invocation",
args: {
name: "SERVICE_ACCOUNT_EMAIL",
description: "String",
suggestions: [],
},
},
{
name: "--log-http",
description:
"Log all HTTP server requests and responses to stderr. Overrides the default *core/log_http* property value for this command invocation",
},
{
name: "--project",
description:
"The Google Cloud Platform project ID to use for this invocation. If\nomitted, then the current project is assumed; the current project can\nbe listed using `gcloud config list --format='text(core.project)'`\nand can be set using `gcloud config set project PROJECTID`.\n+\n`--project` and its fallback `core/project` property play two roles\nin the invocation. It specifies the project of the resource to\noperate on. It also specifies the project for API enablement check,\nquota, and billing. To specify a different project for quota and\nbilling, use `--billing-project` or `billing/quota_project` property",
args: {
name: "PROJECT_ID",
description: "String",
suggestions: [],
},
},
{
name: "--quiet",
description:
"Disable all interactive prompts when running gcloud commands. If input\nis required, defaults will be used, or an error will be raised.\nOverrides the default core/disable_prompts property value for this\ncommand invocation. This is equivalent to setting the environment\nvariable `CLOUDSDK_CORE_DISABLE_PROMPTS` to 1",
},
{
name: "--region",
description:
"The Cloud region for the function. Overrides the default `functions/region` property value for this command invocation",
args: {
name: "REGION",
description: "String",
suggestions: [],
},
},
{
name: "--trace-token",
description:
"Token used to route traces of service requests for investigation of issues. Overrides the default *core/trace_token* property value for this command invocation",
args: {
name: "TRACE_TOKEN",
description: "String",
suggestions: [],
},
},
{
name: "--user-output-enabled",
description:
"Print user intended output to the console. Overrides the default *core/user_output_enabled* property value for this command invocation. Use *--no-user-output-enabled* to disable",
},
{
name: "--verbosity",
description:
"Override the default verbosity for this command. Overrides the default *core/verbosity* property value for this command invocation. _VERBOSITY_ must be one of: *debug*, *info*, *warning*, *error*, *critical*, *none*",
args: {
name: "VERBOSITY",
description: "String",
suggestions: [
"debug",
"info",
"warning",
"error",
"critical",
"none",
],
},
},
],
args: {
name: "NAME",
description:
"ID of the function or fully qualified identifier for the function",
isVariadic: false,
},
},
{
name: "delete",
description: "Delete a Google Cloud Function",
options: [
{
name: "--account",
description:
"Google Cloud Platform user account to use for invocation. Overrides the default *core/account* property value for this command invocation",
args: {
name: "ACCOUNT",
description: "String",
suggestions: [],
},
},
{
name: "--billing-project",
description:
"The Google Cloud Platform project that will be charged quota for operations performed in gcloud. If you need to operate on one project, but need quota against a different project, you can use this flag to specify the billing project. If both `billing/quota_project` and `--billing-project` are specified, `--billing-project` takes precedence. Run `$ gcloud config set --help` to see more information about `billing/quota_project`",
args: {
name: "BILLING_PROJECT",
description: "String",
suggestions: [],
},
},
{
name: "--configuration",
description:
"The configuration to use for this command invocation. For more\ninformation on how to use configurations, run:\n`gcloud topic configurations`. You can also use the CLOUDSDK_ACTIVE_CONFIG_NAME environment\nvariable to set the equivalent of this flag for a terminal\nsession",
args: {
name: "CONFIGURATION",
description: "String",
suggestions: [],
},
},
{
name: "--flags-file",
description:
"A YAML or JSON file that specifies a *--flag*:*value* dictionary.\nUseful for specifying complex flag values with special characters\nthat work with any command interpreter. Additionally, each\n*--flags-file* arg is replaced by its constituent flags. See\n$ gcloud topic flags-file for more information",
args: {
name: "YAML_FILE",
description: "String",
suggestions: [],
},
},
{
name: "--flatten",
description:
"Flatten _name_[] output resource slices in _KEY_ into separate records\nfor each item in each slice. Multiple keys and slices may be specified.\nThis also flattens keys for *--format* and *--filter*. For example,\n*--flatten=abc.def* flattens *abc.def[].ghi* references to\n*abc.def.ghi*. A resource record containing *abc.def[]* with N elements\nwill expand to N records in the flattened output. This flag interacts\nwith other flags that are applied in this order: *--flatten*,\n*--sort-by*, *--filter*, *--limit*",
args: {
name: "KEY",
description: "List",
suggestions: [],
},
},
{
name: "--format",
description:
"Set the format for printing command output resources. The default is a\ncommand-specific human-friendly output format. The supported formats\nare: `config`, `csv`, `default`, `diff`, `disable`, `flattened`, `get`, `json`, `list`, `multi`, `none`, `object`, `table`, `text`, `value`, `yaml`. For more details run $ gcloud topic formats",
args: {
name: "FORMAT",
description: "String",
suggestions: [],
},
},
{
name: "--help",
description: "Display detailed help",
},
{
name: "--impersonate-service-account",
description:
"For this gcloud invocation, all API requests will be made as the given service account instead of the currently selected account. This is done without needing to create, download, and activate a key for the account. In order to perform operations as the service account, your currently selected account must have an IAM role that includes the iam.serviceAccounts.getAccessToken permission for the service account. The roles/iam.serviceAccountTokenCreator role has this permission or you may create a custom role. Overrides the default *auth/impersonate_service_account* property value for this command invocation",
args: {
name: "SERVICE_ACCOUNT_EMAIL",
description: "String",
suggestions: [],
},
},
{
name: "--log-http",
description:
"Log all HTTP server requests and responses to stderr. Overrides the default *core/log_http* property value for this command invocation",
},
{
name: "--project",
description:
"The Google Cloud Platform project ID to use for this invocation. If\nomitted, then the current project is assumed; the current project can\nbe listed using `gcloud config list --format='text(core.project)'`\nand can be set using `gcloud config set project PROJECTID`.\n+\n`--project` and its fallback `core/project` property play two roles\nin the invocation. It specifies the project of the resource to\noperate on. It also specifies the project for API enablement check,\nquota, and billing. To specify a different project for quota and\nbilling, use `--billing-project` or `billing/quota_project` property",
args: {
name: "PROJECT_ID",
description: "String",
suggestions: [],
},
},
{
name: "--quiet",
description:
"Disable all interactive prompts when running gcloud commands. If input\nis required, defaults will be used, or an error will be raised.\nOverrides the default core/disable_prompts property value for this\ncommand invocation. This is equivalent to setting the environment\nvariable `CLOUDSDK_CORE_DISABLE_PROMPTS` to 1",
},
{
name: "--region",
description:
"The Cloud region for the function. Overrides the default `functions/region` property value for this command invocation",
args: {
name: "REGION",
description: "String",
suggestions: [],
},
},
{
name: "--trace-token",
description:
"Token used to route traces of service requests for investigation of issues. Overrides the default *core/trace_token* property value for this command invocation",
args: {
name: "TRACE_TOKEN",
description: "String",
suggestions: [],
},
},
{
name: "--user-output-enabled",
description:
"Print user intended output to the console. Overrides the default *core/user_output_enabled* property value for this command invocation. Use *--no-user-output-enabled* to disable",
},
{
name: "--verbosity",
description:
"Override the default verbosity for this command. Overrides the default *core/verbosity* property value for this command invocation. _VERBOSITY_ must be one of: *debug*, *info*, *warning*, *error*, *critical*, *none*",
args: {
name: "VERBOSITY",
description: "String",
suggestions: [
"debug",
"info",
"warning",
"error",
"critical",
"none",
],
},
},
],
args: {
name: "NAME",
description:
"ID of the function or fully qualified identifier for the function",
isVariadic: false,
},
},
{
name: "deploy",
description: "Create or update a Google Cloud Function",
options: [
{
name: "--account",
description:
"Google Cloud Platform user account to use for invocation. Overrides the default *core/account* property value for this command invocation",
args: {
name: "ACCOUNT",
description: "String",
suggestions: [],
},
},
{
name: "--allow-unauthenticated",
description:
"If set, makes this a public function. This will allow all callers, without checking authentication",
},
{
name: "--billing-project",
description:
"The Google Cloud Platform project that will be charged quota for operations performed in gcloud. If you need to operate on one project, but need quota against a different project, you can use this flag to specify the billing project. If both `billing/quota_project` and `--billing-project` are specified, `--billing-project` takes precedence. Run `$ gcloud config set --help` to see more information about `billing/quota_project`",
args: {
name: "BILLING_PROJECT",
description: "String",
suggestions: [],
},
},
{
name: "--build-env-vars-file",
description:
"Path to a local YAML file with definitions for all build environment variables. All existing build environment variables will be removed before the new build environment variables are added",
args: {
name: "FILE_PATH",
description:
"Googlecloudsdk.command_lib.util.args.map_util:ArgDictFile",
suggestions: [],
},
},
{
name: "--clear-build-env-vars",
description: "Remove all build environment variables",
},
{
name: "--clear-env-vars",
description: "Remove all environment variables",
},
{
name: "--clear-labels",
description:
'Remove all labels. If `--update-labels` is also specified then\n`--clear-labels` is applied first.\n+\nFor example, to remove all labels:\n+\n $ {command} --clear-labels\n+\nTo set the labels to exactly "foo" and "baz":\n+\n $ {command} --clear-labels --update-labels foo=bar,baz=qux',
},
{
name: "--clear-max-instances",
description: "Clears the maximum instances setting for the function",
},
{
name: "--clear-vpc-connector",
description: "Clears the VPC connector field",
},
{
name: "--configuration",
description:
"The configuration to use for this command invocation. For more\ninformation on how to use configurations, run:\n`gcloud topic configurations`. You can also use the CLOUDSDK_ACTIVE_CONFIG_NAME environment\nvariable to set the equivalent of this flag for a terminal\nsession",
args: {
name: "CONFIGURATION",
description: "String",
suggestions: [],
},
},
{
name: "--egress-settings",
description:
"Egress settings controls what traffic is diverted through the VPC Access Connector resource. By default `private-ranges-only` will be used. _EGRESS_SETTINGS_ must be one of: *private-ranges-only*, *all*",
args: {
name: "EGRESS_SETTINGS",
description: "Googlecloudsdk.calliope.base:_ChoiceValueType",
suggestions: ["private-ranges-only", "all"],
},
},
{
name: "--entry-point",
description:
'Name of a Google Cloud Function (as defined in source code) that will\nbe executed. Defaults to the resource name suffix, if not specified. For\nbackward compatibility, if function with given name is not found, then\nthe system will try to use function named "function". For Node.js this\nis name of a function exported by the module specified in\n`source_location`',
args: {
name: "ENTRY_POINT",
description:
"Googlecloudsdk.api_lib.functions.util:ValidateEntryPointNameOrRaise",
suggestions: [],
},
},
{
name: "--env-vars-file",
description:
"Path to a local YAML file with definitions for all environment variables. All existing environment variables will be removed before the new environment variables are added",
args: {
name: "FILE_PATH",
description:
"Googlecloudsdk.command_lib.util.args.map_util:ArgDictFile",
suggestions: [],
},
},
{
name: "--flags-file",
description:
"A YAML or JSON file that specifies a *--flag*:*value* dictionary.\nUseful for specifying complex flag values with special characters\nthat work with any command interpreter. Additionally, each\n*--flags-file* arg is replaced by its constituent flags. See\n$ gcloud topic flags-file for more information",
args: {
name: "YAML_FILE",
description: "String",
suggestions: [],
},
},
{
name: "--flatten",
description:
"Flatten _name_[] output resource slices in _KEY_ into separate records\nfor each item in each slice. Multiple keys and slices may be specified.\nThis also flattens keys for *--format* and *--filter*. For example,\n*--flatten=abc.def* flattens *abc.def[].ghi* references to\n*abc.def.ghi*. A resource record containing *abc.def[]* with N elements\nwill expand to N records in the flattened output. This flag interacts\nwith other flags that are applied in this order: *--flatten*,\n*--sort-by*, *--filter*, *--limit*",
args: {
name: "KEY",
description: "List",
suggestions: [],
},
},
{
name: "--format",
description:
"Set the format for printing command output resources. The default is a\ncommand-specific human-friendly output format. The supported formats\nare: `config`, `csv`, `default`, `diff`, `disable`, `flattened`, `get`, `json`, `list`, `multi`, `none`, `object`, `table`, `text`, `value`, `yaml`. For more details run $ gcloud topic formats",
args: {
name: "FORMAT",
description: "String",
suggestions: [],
},
},
{
name: "--help",
description: "Display detailed help",
},
{
name: "--ignore-file",
description:
"Override the .gcloudignore file and use the specified file instead",
args: {
name: "IGNORE_FILE",
description: "String",
suggestions: [],
},
},
{
name: "--impersonate-service-account",
description:
"For this gcloud invocation, all API requests will be made as the given service account instead of the currently selected account. This is done without needing to create, download, and activate a key for the account. In order to perform operations as the service account, your currently selected account must have an IAM role that includes the iam.serviceAccounts.getAccessToken permission for the service account. The roles/iam.serviceAccountTokenCreator role has this permission or you may create a custom role. Overrides the default *auth/impersonate_service_account* property value for this command invocation",
args: {
name: "SERVICE_ACCOUNT_EMAIL",
description: "String",
suggestions: [],
},
},
{
name: "--ingress-settings",
description:
"Ingress settings controls what traffic can reach the function.By default `all` will be used. _INGRESS_SETTINGS_ must be one of: *all*, *internal-only*, *internal-and-gclb*",
args: {
name: "INGRESS_SETTINGS",
description: "Googlecloudsdk.calliope.base:_ChoiceValueType",
suggestions: ["all", "internal-only", "internal-and-gclb"],
},
},
{
name: "--log-http",
description:
"Log all HTTP server requests and responses to stderr. Overrides the default *core/log_http* property value for this command invocation",
},
{
name: "--max-instances",
description:
"Sets the maximum number of instances for the function. A function\nexecution that would exceed max-instances times out",
args: {
name: "MAX_INSTANCES",
description: "Googlecloudsdk.calliope.arg_parsers:Parse",
suggestions: [],
},
},
{
name: "--memory",
description:
"Limit on the amount of memory the function can use.\n+\nAllowed values are: 128MB, 256MB, 512MB, 1024MB, and 2048MB. By default,\na new function is limited to 256MB of memory. When deploying an update to\nan existing function, the function will keep its old memory limit unless\nyou specify this flag",
args: {
name: "MEMORY",
description:
"Googlecloudsdk.calliope.arg_parsers:ParseWithBoundsChecking",
suggestions: [],
},
},
{
name: "--project",
description:
"The Google Cloud Platform project ID to use for this invocation. If\nomitted, then the current project is assumed; the current project can\nbe listed using `gcloud config list --format='text(core.project)'`\nand can be set using `gcloud config set project PROJECTID`.\n+\n`--project` and its fallback `core/project` property play two roles\nin the invocation. It specifies the project of the resource to\noperate on. It also specifies the project for API enablement check,\nquota, and billing. To specify a different project for quota and\nbilling, use `--billing-project` or `billing/quota_project` property",
args: {
name: "PROJECT_ID",
description: "String",
suggestions: [],
},
},
{
name: "--quiet",
description:
"Disable all interactive prompts when running gcloud commands. If input\nis required, defaults will be used, or an error will be raised.\nOverrides the default core/disable_prompts property value for this\ncommand invocation. This is equivalent to setting the environment\nvariable `CLOUDSDK_CORE_DISABLE_PROMPTS` to 1",
},
{
name: "--region",
description:
"The Cloud region for the function. Overrides the default `functions/region` property value for this command invocation",
args: {
name: "REGION",
description: "String",
suggestions: [],
},
},
{
name: "--remove-build-env-vars",
description: "List of build environment variables to be removed",
args: {
name: "KEY",
description: "List",
suggestions: [],
},
},
{
name: "--remove-env-vars",
description: "List of environment variables to be removed",
args: {
name: "KEY",
description: "List",
suggestions: [],
},
},
{
name: "--remove-labels",
description:
"List of label keys to remove. If a label does not exist it is\nsilently ignored. If `--update-labels` is also specified then\n`--remove-labels` is applied first.Label keys starting with `deployment` are reserved for use by deployment tools and cannot be specified manually",
args: {
name: "KEY",
description: "List",
suggestions: [],
},
},
{
name: "--retry",
description:
"If specified, then the function will be retried in case of a failure",
},
{
name: "--runtime",
description:
"Runtime in which to run the function.\n+\nRequired when deploying a new function; optional when updating\nan existing function.\n+\nChoices:\n+\n- `nodejs10`: Node.js 10\n- `nodejs12`: Node.js 12\n- `python37`: Python 3.7\n- `python38`: Python 3.8\n- `go111`: Go 1.11\n- `go113`: Go 1.13\n- `java11`: Java 11\n- `nodejs6`: Node.js 6 (deprecated)\n- `nodejs8`: Node.js 8 (deprecated)",
args: {
name: "RUNTIME",
description: "String",
suggestions: [],
},
},
{
name: "--service-account",
description:
"The email address of the IAM service account associated with the\nfunction at runtime. The service account represents the identity of the\nrunning function, and determines what permissions the function has.\n+\nIf not provided, the function will use the project's default service\naccount",
args: {
name: "SERVICE_ACCOUNT",
description: "String",
suggestions: [],
},
},
{
name: "--set-build-env-vars",
description:
"List of key-value pairs to set as build environment variables. All existing build environment variables will be removed first",
args: {
name: "KEY=VALUE",
description: "Dict",
suggestions: [],
},
},
{
name: "--set-env-vars",
description:
"List of key-value pairs to set as environment variables. All existing environment variables will be removed first",
args: {
name: "KEY=VALUE",
description: "Dict",
suggestions: [],
},
},
{
name: "--source",
description:
"Location of source code to deploy.\n+\nLocation of the source can be one of the following three options:\n+\n* Source code in Google Cloud Storage (must be a `.zip` archive),\n* Reference to source repository or,\n* Local filesystem path (root directory of function source).\n+\nNote that, depending on your runtime type, Cloud Functions will look\nfor files with specific names for deployable functions. For Node.js,\nthese filenames are `index.js` or `function.js`. For Python, this is\n`main.py`.\n+\nIf you do not specify the `--source` flag:\n+\n* The current directory will be used for new function deployments.\n* If the function was previously deployed using a local filesystem path,\nthen the function's source code will be updated using the current\ndirectory.\n* If the function was previously deployed using a Google Cloud Storage\nlocation or a source repository, then the function's source code will not\nbe updated.\n+\nThe value of the flag will be interpreted as a Cloud Storage location, if\nit starts with `gs://`.\n+\nThe value will be interpreted as a reference to a source repository, if it\nstarts with `https://`.\n+\nOtherwise, it will be interpreted as the local filesystem path. When\ndeploying source from the local filesystem, this command skips files\nspecified in the `.gcloudignore` file (see `gcloud topic gcloudignore` for\nmore information). If the `.gcloudignore` file doesn't exist, the command\nwill try to create it.\n+\nThe minimal source repository URL is:\n`https://source.developers.google.com/projects/${PROJECT}/repos/${REPO}`\n+\nBy using the URL above, sources from the root directory of the\nrepository on the revision tagged `master` will be used.\n+\nIf you want to deploy from a revision different from `master`, append one\nof the following three sources to the URL:\n+\n* `/revisions/${REVISION}`,\n* `/moveable-aliases/${MOVEABLE_ALIAS}`,\n* `/fixed-aliases/${FIXED_ALIAS}`.\n+\nIf you'd like to deploy sources from a directory different from the root,\nyou must specify a revision, a moveable alias, or a fixed alias, as above,\nand append `/paths/${PATH_TO_SOURCES_DIRECTORY}` to the URL.\n+\nOverall, the URL should match the following regular expression:\n+\n```\n^https://source\\.developers\\.google\\.com/projects/\n(?<accountId>[^/]+)/repos/(?<repoName>[^/]+)\n(((/revisions/(?<commit>[^/]+))|(/moveable-aliases/(?<branch>[^/]+))|\n(/fixed-aliases/(?<tag>[^/]+)))(/paths/(?<path>.*))?)?$\n```\n+\nAn example of a validly formatted source repository URL is:\n+\n```\nhttps://source.developers.google.com/projects/123456789/repos/testrepo/\nmoveable-aliases/alternate-branch/paths/path-to=source\n```\n+",
args: {
name: "SOURCE",
description: "String",
suggestions: [],
},
},
{
name: "--stage-bucket",
description:
"When deploying a function from a local directory, this flag's value is the name of the Google Cloud Storage bucket in which source code will be stored. Note that if you set the `--stage-bucket` flag when deploying a function, you will need to specify `--source` or `--stage-bucket` in subsequent deployments to update your source code. To use this flag successfully, the account in use must have permissions to write to this bucket. For help granting access, refer to this guide: https://cloud.google.com/storage/docs/access-control/",
args: {
name: "STAGE_BUCKET",
description:
"Googlecloudsdk.api_lib.functions.util:ValidateAndStandarizeBucketUriOrRaise",
suggestions: [],
},
},
{
name: "--timeout",
description:
"The function execution timeout, e.g. 30s for 30 seconds. Defaults to\noriginal value for existing function or 60 seconds for new functions.\nCannot be more than 540s.\nSee $ gcloud topic datetimes for information on duration formats",
args: {
name: "TIMEOUT",
description:
"Googlecloudsdk.calliope.arg_parsers:ParseWithBoundsChecking",
suggestions: [],
},
},
{
name: "--trace-token",
description:
"Token used to route traces of service requests for investigation of issues. Overrides the default *core/trace_token* property value for this command invocation",
args: {
name: "TRACE_TOKEN",
description: "String",
suggestions: [],
},
},
{
name: "--trigger-bucket",
description:
"Google Cloud Storage bucket name. Every change in files in this bucket will trigger function execution",
args: {
name: "TRIGGER_BUCKET",
description:
"Googlecloudsdk.api_lib.functions.util:ValidateAndStandarizeBucketUriOrRaise",
suggestions: [],
},
},
{
name: "--trigger-event",
description:
"Specifies which action should trigger the function. For a list of acceptable values, call `gcloud functions event-types list`",
args: {
name: "EVENT_TYPE",
description: "String",
suggestions: [],
},
},
{
name: "--trigger-http",
description:
"Function will be assigned an endpoint, which you can view by using\nthe `describe` command. Any HTTP request (of a supported type) to the\nendpoint will trigger function execution. Supported HTTP request\ntypes are: POST, PUT, GET, DELETE, and OPTIONS",
},
{
name: "--trigger-resource",
description:
"Specifies which resource from `--trigger-event` is being observed. E.g. if `--trigger-event` is `providers/cloud.storage/eventTypes/object.change`, `--trigger-resource` must be a bucket name. For a list of expected resources, call `gcloud functions event-types list`",
args: {
name: "RESOURCE",
description: "String",
suggestions: [],
},
},
{
name: "--trigger-topic",
description:
"Name of Pub/Sub topic. Every message published in this topic will trigger function execution with message contents passed as input data. Note that this flag does not accept the format of projects/PROJECT_ID/topics/TOPIC_ID. Use this flag to specify the final element TOPIC_ID. The PROJECT_ID will be read from the active configuration",
args: {
name: "TRIGGER_TOPIC",
description:
"Googlecloudsdk.api_lib.functions.util:ValidatePubsubTopicNameOrRaise",
suggestions: [],
},
},
{
name: "--update-build-env-vars",
description:
"List of key-value pairs to set as build environment variables",
args: {
name: "KEY=VALUE",
description: "Dict",
suggestions: [],
},
},
{
name: "--update-env-vars",
description:
"List of key-value pairs to set as environment variables",
args: {
name: "KEY=VALUE",
description: "Dict",
suggestions: [],
},
},
{
name: "--update-labels",
description:
"List of label KEY=VALUE pairs to update. If a label exists its value is modified, otherwise a new label is created.\n+\nKeys must start with a lowercase character and contain only hyphens (`-`), underscores (```_```), lowercase characters, and numbers. Values must contain only hyphens (`-`), underscores (```_```), lowercase characters, and numbers.\n+\nLabel keys starting with `deployment` are reserved for use by deployment tools and cannot be specified manually",
args: {
name: "KEY=VALUE",
description: "Dict",
suggestions: [],
},
},
{
name: "--user-output-enabled",
description:
"Print user intended output to the console. Overrides the default *core/user_output_enabled* property value for this command invocation. Use *--no-user-output-enabled* to disable",
},
{
name: "--verbosity",
description:
"Override the default verbosity for this command. Overrides the default *core/verbosity* property value for this command invocation. _VERBOSITY_ must be one of: *debug*, *info*, *warning*, *error*, *critical*, *none*",
args: {
name: "VERBOSITY",
description: "String",
suggestions: [
"debug",
"info",
"warning",
"error",
"critical",
"none",
],
},
},
{
name: "--vpc-connector",
description:
"The VPC Access connector that the function can connect to. It can be\neither the fully-qualified URI, or the short name of the VPC Access\nconnector resource. If the short name is used, the connector must\nbelong to the same project. The format of this field is either\n`projects/${PROJECT}/locations/${LOCATION}/connectors/${CONNECTOR}`\nor `${CONNECTOR}`, where `${CONNECTOR}` is the short name of the VPC\nAccess connector",
args: {
name: "VPC_CONNECTOR",
description: "String",
suggestions: [],
},
},
],
args: {
name: "NAME",
description:
"ID of the function or fully qualified identifier for the function",
isVariadic: false,
},
},
{
name: "describe",
description: "Display details of a Google Cloud Function",
options: [
{
name: "--account",
description:
"Google Cloud Platform user account to use for invocation. Overrides the default *core/account* property value for this command invocation",
args: {
name: "ACCOUNT",
description: "String",
suggestions: [],
},
},
{
name: "--billing-project",
description:
"The Google Cloud Platform project that will be charged quota for operations performed in gcloud. If you need to operate on one project, but need quota against a different project, you can use this flag to specify the billing project. If both `billing/quota_project` and `--billing-project` are specified, `--billing-project` takes precedence. Run `$ gcloud config set --help` to see more information about `billing/quota_project`",
args: {
name: "BILLING_PROJECT",
description: "String",
suggestions: [],
},
},
{
name: "--configuration",
description:
"The configuration to use for this command invocation. For more\ninformation on how to use configurations, run:\n`gcloud topic configurations`. You can also use the CLOUDSDK_ACTIVE_CONFIG_NAME environment\nvariable to set the equivalent of this flag for a terminal\nsession",
args: {
name: "CONFIGURATION",
description: "String",
suggestions: [],
},
},
{
name: "--flags-file",
description:
"A YAML or JSON file that specifies a *--flag*:*value* dictionary.\nUseful for specifying complex flag values with special characters\nthat work with any command interpreter. Additionally, each\n*--flags-file* arg is replaced by its constituent flags. See\n$ gcloud topic flags-file for more information",
args: {
name: "YAML_FILE",
description: "String",
suggestions: [],
},
},
{
name: "--flatten",
description:
"Flatten _name_[] output resource slices in _KEY_ into separate records\nfor each item in each slice. Multiple keys and slices may be specified.\nThis also flattens keys for *--format* and *--filter*. For example,\n*--flatten=abc.def* flattens *abc.def[].ghi* references to\n*abc.def.ghi*. A resource record containing *abc.def[]* with N elements\nwill expand to N records in the flattened output. This flag interacts\nwith other flags that are applied in this order: *--flatten*,\n*--sort-by*, *--filter*, *--limit*",
args: {
name: "KEY",
description: "List",
suggestions: [],
},
},
{
name: "--format",
description:
"Set the format for printing command output resources. The default is a\ncommand-specific human-friendly output format. The supported formats\nare: `config`, `csv`, `default`, `diff`, `disable`, `flattened`, `get`, `json`, `list`, `multi`, `none`, `object`, `table`, `text`, `value`, `yaml`. For more details run $ gcloud topic formats",
args: {
name: "FORMAT",
description: "String",
suggestions: [],
},
},
{
name: "--help",