fluent_command_builder 0.4.0 → 0.4.1

This diff has not been reviewed by any users.
Sign up to get free protection for your applications and to get access to all the features.
@@ -9,6 +9,1932 @@ module FluentCommandBuilder
9
9
  def initialize(builder)
10
10
  super builder
11
11
  end
12
+ def backends(directory)
13
+ Backends.new @builder, directory
14
+ end
15
+ def create_bulkload_config(directory)
16
+ CreateBulkloadConfig.new @builder, directory
17
+ end
18
+ def cron_info(directory)
19
+ CronInfo.new @builder, directory
20
+ end
21
+ def download_app
22
+ DownloadApp.new @builder
23
+ end
24
+ def download_data(directory)
25
+ DownloadData.new @builder, directory
26
+ end
27
+ def help(action)
28
+ Help.new @builder, action
29
+ end
30
+ def request_logs(directory, output_file)
31
+ RequestLogs.new @builder, directory, output_file
32
+ end
33
+ def resource_limits_info(directory)
34
+ ResourceLimitsInfo.new @builder, directory
35
+ end
36
+ def rollback(directory)
37
+ Rollback.new @builder, directory
38
+ end
39
+ def set_default_version(directory)
40
+ SetDefaultVersion.new @builder, directory
41
+ end
42
+ def update(directory)
43
+ Update.new @builder, directory
44
+ end
45
+ def update_cron(directory)
46
+ UpdateCron.new @builder, directory
47
+ end
48
+ def update_dos(directory)
49
+ UpdateDos.new @builder, directory
50
+ end
51
+ def update_indexes(directory)
52
+ UpdateIndexes.new @builder, directory
53
+ end
54
+ def update_queues(directory)
55
+ UpdateQueues.new @builder, directory
56
+ end
57
+ def upload_data(directory)
58
+ UploadData.new @builder, directory
59
+ end
60
+ def vacuum_indexes(directory)
61
+ VacuumIndexes.new @builder, directory
62
+ end
63
+ end
64
+ class Backends < CommandBase
65
+ def initialize(builder, directory)
66
+ super builder
67
+ @builder.append " backends #{@builder.format directory}"
68
+ end
69
+ def configure(backend)
70
+ Configure.new @builder, backend
71
+ end
72
+ def delete(backend)
73
+ Delete.new @builder, backend
74
+ end
75
+ def list
76
+ List.new @builder
77
+ end
78
+ def rollback(backend)
79
+ Rollback.new @builder, backend
80
+ end
81
+ def start(backend)
82
+ Start.new @builder, backend
83
+ end
84
+ def stop(backend)
85
+ Stop.new @builder, backend
86
+ end
87
+ def update(backend)
88
+ Update.new @builder, backend
89
+ end
90
+ end
91
+ class Configure < CommandBase
92
+ def initialize(builder, backend)
93
+ super builder
94
+ @builder.append " configure #{@builder.format backend}"
95
+ end
96
+ def help
97
+ @builder.append ' --help'
98
+ yield @builder if block_given?
99
+ self
100
+ end
101
+ def quiet
102
+ @builder.append ' --quiet'
103
+ yield @builder if block_given?
104
+ self
105
+ end
106
+ def verbose
107
+ @builder.append ' --verbose'
108
+ yield @builder if block_given?
109
+ self
110
+ end
111
+ def noisy
112
+ @builder.append ' --noisy'
113
+ yield @builder if block_given?
114
+ self
115
+ end
116
+ def server(server)
117
+ @builder.append " --server=#{@builder.format server}"
118
+ yield @builder if block_given?
119
+ self
120
+ end
121
+ def insecure
122
+ @builder.append ' --insecure'
123
+ yield @builder if block_given?
124
+ self
125
+ end
126
+ def email(email)
127
+ @builder.append " --email=#{@builder.format email}"
128
+ yield @builder if block_given?
129
+ self
130
+ end
131
+ def host(host)
132
+ @builder.append " --host=#{@builder.format host}"
133
+ yield @builder if block_given?
134
+ self
135
+ end
136
+ def no_cookies
137
+ @builder.append ' --no_cookies'
138
+ yield @builder if block_given?
139
+ self
140
+ end
141
+ def skip_sdk_update_check
142
+ @builder.append ' --skip_sdk_update_check'
143
+ yield @builder if block_given?
144
+ self
145
+ end
146
+ def passin
147
+ @builder.append ' --passin'
148
+ yield @builder if block_given?
149
+ self
150
+ end
151
+ def application(app_id)
152
+ @builder.append " --application=#{@builder.format app_id}"
153
+ yield @builder if block_given?
154
+ self
155
+ end
156
+ def version(version)
157
+ @builder.append " --version=#{@builder.format version}"
158
+ yield @builder if block_given?
159
+ self
160
+ end
161
+ def runtime(runtime)
162
+ @builder.append " --runtime=#{@builder.format runtime}"
163
+ yield @builder if block_given?
164
+ self
165
+ end
166
+ def allow_any_runtime
167
+ @builder.append ' --allow_any_runtime'
168
+ yield @builder if block_given?
169
+ self
170
+ end
171
+ def oauth2
172
+ @builder.append ' --oauth2'
173
+ yield @builder if block_given?
174
+ self
175
+ end
176
+ def oauth2_refresh_token(oauth2_refresh_token)
177
+ @builder.append " --oauth2_refresh_token=#{@builder.format oauth2_refresh_token}"
178
+ yield @builder if block_given?
179
+ self
180
+ end
181
+ def noauth_local_webserver
182
+ @builder.append ' --noauth_local_webserver'
183
+ yield @builder if block_given?
184
+ self
185
+ end
186
+ end
187
+ class Delete < CommandBase
188
+ def initialize(builder, backend)
189
+ super builder
190
+ @builder.append " delete #{@builder.format backend}"
191
+ end
192
+ def help
193
+ @builder.append ' --help'
194
+ yield @builder if block_given?
195
+ self
196
+ end
197
+ def quiet
198
+ @builder.append ' --quiet'
199
+ yield @builder if block_given?
200
+ self
201
+ end
202
+ def verbose
203
+ @builder.append ' --verbose'
204
+ yield @builder if block_given?
205
+ self
206
+ end
207
+ def noisy
208
+ @builder.append ' --noisy'
209
+ yield @builder if block_given?
210
+ self
211
+ end
212
+ def server(server)
213
+ @builder.append " --server=#{@builder.format server}"
214
+ yield @builder if block_given?
215
+ self
216
+ end
217
+ def insecure
218
+ @builder.append ' --insecure'
219
+ yield @builder if block_given?
220
+ self
221
+ end
222
+ def email(email)
223
+ @builder.append " --email=#{@builder.format email}"
224
+ yield @builder if block_given?
225
+ self
226
+ end
227
+ def host(host)
228
+ @builder.append " --host=#{@builder.format host}"
229
+ yield @builder if block_given?
230
+ self
231
+ end
232
+ def no_cookies
233
+ @builder.append ' --no_cookies'
234
+ yield @builder if block_given?
235
+ self
236
+ end
237
+ def skip_sdk_update_check
238
+ @builder.append ' --skip_sdk_update_check'
239
+ yield @builder if block_given?
240
+ self
241
+ end
242
+ def passin
243
+ @builder.append ' --passin'
244
+ yield @builder if block_given?
245
+ self
246
+ end
247
+ def application(app_id)
248
+ @builder.append " --application=#{@builder.format app_id}"
249
+ yield @builder if block_given?
250
+ self
251
+ end
252
+ def version(version)
253
+ @builder.append " --version=#{@builder.format version}"
254
+ yield @builder if block_given?
255
+ self
256
+ end
257
+ def runtime(runtime)
258
+ @builder.append " --runtime=#{@builder.format runtime}"
259
+ yield @builder if block_given?
260
+ self
261
+ end
262
+ def allow_any_runtime
263
+ @builder.append ' --allow_any_runtime'
264
+ yield @builder if block_given?
265
+ self
266
+ end
267
+ def oauth2
268
+ @builder.append ' --oauth2'
269
+ yield @builder if block_given?
270
+ self
271
+ end
272
+ def oauth2_refresh_token(oauth2_refresh_token)
273
+ @builder.append " --oauth2_refresh_token=#{@builder.format oauth2_refresh_token}"
274
+ yield @builder if block_given?
275
+ self
276
+ end
277
+ def noauth_local_webserver
278
+ @builder.append ' --noauth_local_webserver'
279
+ yield @builder if block_given?
280
+ self
281
+ end
282
+ end
283
+ class List < CommandBase
284
+ def initialize(builder)
285
+ super builder
286
+ @builder.append ' list'
287
+ end
288
+ def help
289
+ @builder.append ' --help'
290
+ yield @builder if block_given?
291
+ self
292
+ end
293
+ def quiet
294
+ @builder.append ' --quiet'
295
+ yield @builder if block_given?
296
+ self
297
+ end
298
+ def verbose
299
+ @builder.append ' --verbose'
300
+ yield @builder if block_given?
301
+ self
302
+ end
303
+ def noisy
304
+ @builder.append ' --noisy'
305
+ yield @builder if block_given?
306
+ self
307
+ end
308
+ def server(server)
309
+ @builder.append " --server=#{@builder.format server}"
310
+ yield @builder if block_given?
311
+ self
312
+ end
313
+ def insecure
314
+ @builder.append ' --insecure'
315
+ yield @builder if block_given?
316
+ self
317
+ end
318
+ def email(email)
319
+ @builder.append " --email=#{@builder.format email}"
320
+ yield @builder if block_given?
321
+ self
322
+ end
323
+ def host(host)
324
+ @builder.append " --host=#{@builder.format host}"
325
+ yield @builder if block_given?
326
+ self
327
+ end
328
+ def no_cookies
329
+ @builder.append ' --no_cookies'
330
+ yield @builder if block_given?
331
+ self
332
+ end
333
+ def skip_sdk_update_check
334
+ @builder.append ' --skip_sdk_update_check'
335
+ yield @builder if block_given?
336
+ self
337
+ end
338
+ def passin
339
+ @builder.append ' --passin'
340
+ yield @builder if block_given?
341
+ self
342
+ end
343
+ def application(app_id)
344
+ @builder.append " --application=#{@builder.format app_id}"
345
+ yield @builder if block_given?
346
+ self
347
+ end
348
+ def version(version)
349
+ @builder.append " --version=#{@builder.format version}"
350
+ yield @builder if block_given?
351
+ self
352
+ end
353
+ def runtime(runtime)
354
+ @builder.append " --runtime=#{@builder.format runtime}"
355
+ yield @builder if block_given?
356
+ self
357
+ end
358
+ def allow_any_runtime
359
+ @builder.append ' --allow_any_runtime'
360
+ yield @builder if block_given?
361
+ self
362
+ end
363
+ def oauth2
364
+ @builder.append ' --oauth2'
365
+ yield @builder if block_given?
366
+ self
367
+ end
368
+ def oauth2_refresh_token(oauth2_refresh_token)
369
+ @builder.append " --oauth2_refresh_token=#{@builder.format oauth2_refresh_token}"
370
+ yield @builder if block_given?
371
+ self
372
+ end
373
+ def noauth_local_webserver
374
+ @builder.append ' --noauth_local_webserver'
375
+ yield @builder if block_given?
376
+ self
377
+ end
378
+ end
379
+ class Rollback < CommandBase
380
+ def initialize(builder, backend)
381
+ super builder
382
+ @builder.append " rollback #{@builder.format backend}"
383
+ end
384
+ def help
385
+ @builder.append ' --help'
386
+ yield @builder if block_given?
387
+ self
388
+ end
389
+ def quiet
390
+ @builder.append ' --quiet'
391
+ yield @builder if block_given?
392
+ self
393
+ end
394
+ def verbose
395
+ @builder.append ' --verbose'
396
+ yield @builder if block_given?
397
+ self
398
+ end
399
+ def noisy
400
+ @builder.append ' --noisy'
401
+ yield @builder if block_given?
402
+ self
403
+ end
404
+ def server(server)
405
+ @builder.append " --server=#{@builder.format server}"
406
+ yield @builder if block_given?
407
+ self
408
+ end
409
+ def insecure
410
+ @builder.append ' --insecure'
411
+ yield @builder if block_given?
412
+ self
413
+ end
414
+ def email(email)
415
+ @builder.append " --email=#{@builder.format email}"
416
+ yield @builder if block_given?
417
+ self
418
+ end
419
+ def host(host)
420
+ @builder.append " --host=#{@builder.format host}"
421
+ yield @builder if block_given?
422
+ self
423
+ end
424
+ def no_cookies
425
+ @builder.append ' --no_cookies'
426
+ yield @builder if block_given?
427
+ self
428
+ end
429
+ def skip_sdk_update_check
430
+ @builder.append ' --skip_sdk_update_check'
431
+ yield @builder if block_given?
432
+ self
433
+ end
434
+ def passin
435
+ @builder.append ' --passin'
436
+ yield @builder if block_given?
437
+ self
438
+ end
439
+ def application(app_id)
440
+ @builder.append " --application=#{@builder.format app_id}"
441
+ yield @builder if block_given?
442
+ self
443
+ end
444
+ def version(version)
445
+ @builder.append " --version=#{@builder.format version}"
446
+ yield @builder if block_given?
447
+ self
448
+ end
449
+ def runtime(runtime)
450
+ @builder.append " --runtime=#{@builder.format runtime}"
451
+ yield @builder if block_given?
452
+ self
453
+ end
454
+ def allow_any_runtime
455
+ @builder.append ' --allow_any_runtime'
456
+ yield @builder if block_given?
457
+ self
458
+ end
459
+ def oauth2
460
+ @builder.append ' --oauth2'
461
+ yield @builder if block_given?
462
+ self
463
+ end
464
+ def oauth2_refresh_token(oauth2_refresh_token)
465
+ @builder.append " --oauth2_refresh_token=#{@builder.format oauth2_refresh_token}"
466
+ yield @builder if block_given?
467
+ self
468
+ end
469
+ def noauth_local_webserver
470
+ @builder.append ' --noauth_local_webserver'
471
+ yield @builder if block_given?
472
+ self
473
+ end
474
+ end
475
+ class Start < CommandBase
476
+ def initialize(builder, backend)
477
+ super builder
478
+ @builder.append " start #{@builder.format backend}"
479
+ end
480
+ def help
481
+ @builder.append ' --help'
482
+ yield @builder if block_given?
483
+ self
484
+ end
485
+ def quiet
486
+ @builder.append ' --quiet'
487
+ yield @builder if block_given?
488
+ self
489
+ end
490
+ def verbose
491
+ @builder.append ' --verbose'
492
+ yield @builder if block_given?
493
+ self
494
+ end
495
+ def noisy
496
+ @builder.append ' --noisy'
497
+ yield @builder if block_given?
498
+ self
499
+ end
500
+ def server(server)
501
+ @builder.append " --server=#{@builder.format server}"
502
+ yield @builder if block_given?
503
+ self
504
+ end
505
+ def insecure
506
+ @builder.append ' --insecure'
507
+ yield @builder if block_given?
508
+ self
509
+ end
510
+ def email(email)
511
+ @builder.append " --email=#{@builder.format email}"
512
+ yield @builder if block_given?
513
+ self
514
+ end
515
+ def host(host)
516
+ @builder.append " --host=#{@builder.format host}"
517
+ yield @builder if block_given?
518
+ self
519
+ end
520
+ def no_cookies
521
+ @builder.append ' --no_cookies'
522
+ yield @builder if block_given?
523
+ self
524
+ end
525
+ def skip_sdk_update_check
526
+ @builder.append ' --skip_sdk_update_check'
527
+ yield @builder if block_given?
528
+ self
529
+ end
530
+ def passin
531
+ @builder.append ' --passin'
532
+ yield @builder if block_given?
533
+ self
534
+ end
535
+ def application(app_id)
536
+ @builder.append " --application=#{@builder.format app_id}"
537
+ yield @builder if block_given?
538
+ self
539
+ end
540
+ def version(version)
541
+ @builder.append " --version=#{@builder.format version}"
542
+ yield @builder if block_given?
543
+ self
544
+ end
545
+ def runtime(runtime)
546
+ @builder.append " --runtime=#{@builder.format runtime}"
547
+ yield @builder if block_given?
548
+ self
549
+ end
550
+ def allow_any_runtime
551
+ @builder.append ' --allow_any_runtime'
552
+ yield @builder if block_given?
553
+ self
554
+ end
555
+ def oauth2
556
+ @builder.append ' --oauth2'
557
+ yield @builder if block_given?
558
+ self
559
+ end
560
+ def oauth2_refresh_token(oauth2_refresh_token)
561
+ @builder.append " --oauth2_refresh_token=#{@builder.format oauth2_refresh_token}"
562
+ yield @builder if block_given?
563
+ self
564
+ end
565
+ def noauth_local_webserver
566
+ @builder.append ' --noauth_local_webserver'
567
+ yield @builder if block_given?
568
+ self
569
+ end
570
+ end
571
+ class Stop < CommandBase
572
+ def initialize(builder, backend)
573
+ super builder
574
+ @builder.append " stop #{@builder.format backend}"
575
+ end
576
+ def help
577
+ @builder.append ' --help'
578
+ yield @builder if block_given?
579
+ self
580
+ end
581
+ def quiet
582
+ @builder.append ' --quiet'
583
+ yield @builder if block_given?
584
+ self
585
+ end
586
+ def verbose
587
+ @builder.append ' --verbose'
588
+ yield @builder if block_given?
589
+ self
590
+ end
591
+ def noisy
592
+ @builder.append ' --noisy'
593
+ yield @builder if block_given?
594
+ self
595
+ end
596
+ def server(server)
597
+ @builder.append " --server=#{@builder.format server}"
598
+ yield @builder if block_given?
599
+ self
600
+ end
601
+ def insecure
602
+ @builder.append ' --insecure'
603
+ yield @builder if block_given?
604
+ self
605
+ end
606
+ def email(email)
607
+ @builder.append " --email=#{@builder.format email}"
608
+ yield @builder if block_given?
609
+ self
610
+ end
611
+ def host(host)
612
+ @builder.append " --host=#{@builder.format host}"
613
+ yield @builder if block_given?
614
+ self
615
+ end
616
+ def no_cookies
617
+ @builder.append ' --no_cookies'
618
+ yield @builder if block_given?
619
+ self
620
+ end
621
+ def skip_sdk_update_check
622
+ @builder.append ' --skip_sdk_update_check'
623
+ yield @builder if block_given?
624
+ self
625
+ end
626
+ def passin
627
+ @builder.append ' --passin'
628
+ yield @builder if block_given?
629
+ self
630
+ end
631
+ def application(app_id)
632
+ @builder.append " --application=#{@builder.format app_id}"
633
+ yield @builder if block_given?
634
+ self
635
+ end
636
+ def version(version)
637
+ @builder.append " --version=#{@builder.format version}"
638
+ yield @builder if block_given?
639
+ self
640
+ end
641
+ def runtime(runtime)
642
+ @builder.append " --runtime=#{@builder.format runtime}"
643
+ yield @builder if block_given?
644
+ self
645
+ end
646
+ def allow_any_runtime
647
+ @builder.append ' --allow_any_runtime'
648
+ yield @builder if block_given?
649
+ self
650
+ end
651
+ def oauth2
652
+ @builder.append ' --oauth2'
653
+ yield @builder if block_given?
654
+ self
655
+ end
656
+ def oauth2_refresh_token(oauth2_refresh_token)
657
+ @builder.append " --oauth2_refresh_token=#{@builder.format oauth2_refresh_token}"
658
+ yield @builder if block_given?
659
+ self
660
+ end
661
+ def noauth_local_webserver
662
+ @builder.append ' --noauth_local_webserver'
663
+ yield @builder if block_given?
664
+ self
665
+ end
666
+ end
667
+ class Update < CommandBase
668
+ def initialize(builder, backend)
669
+ super builder
670
+ @builder.append " update #{@builder.format backend}"
671
+ end
672
+ def help
673
+ @builder.append ' --help'
674
+ yield @builder if block_given?
675
+ self
676
+ end
677
+ def quiet
678
+ @builder.append ' --quiet'
679
+ yield @builder if block_given?
680
+ self
681
+ end
682
+ def verbose
683
+ @builder.append ' --verbose'
684
+ yield @builder if block_given?
685
+ self
686
+ end
687
+ def noisy
688
+ @builder.append ' --noisy'
689
+ yield @builder if block_given?
690
+ self
691
+ end
692
+ def server(server)
693
+ @builder.append " --server=#{@builder.format server}"
694
+ yield @builder if block_given?
695
+ self
696
+ end
697
+ def insecure
698
+ @builder.append ' --insecure'
699
+ yield @builder if block_given?
700
+ self
701
+ end
702
+ def email(email)
703
+ @builder.append " --email=#{@builder.format email}"
704
+ yield @builder if block_given?
705
+ self
706
+ end
707
+ def host(host)
708
+ @builder.append " --host=#{@builder.format host}"
709
+ yield @builder if block_given?
710
+ self
711
+ end
712
+ def no_cookies
713
+ @builder.append ' --no_cookies'
714
+ yield @builder if block_given?
715
+ self
716
+ end
717
+ def skip_sdk_update_check
718
+ @builder.append ' --skip_sdk_update_check'
719
+ yield @builder if block_given?
720
+ self
721
+ end
722
+ def passin
723
+ @builder.append ' --passin'
724
+ yield @builder if block_given?
725
+ self
726
+ end
727
+ def application(app_id)
728
+ @builder.append " --application=#{@builder.format app_id}"
729
+ yield @builder if block_given?
730
+ self
731
+ end
732
+ def version(version)
733
+ @builder.append " --version=#{@builder.format version}"
734
+ yield @builder if block_given?
735
+ self
736
+ end
737
+ def runtime(runtime)
738
+ @builder.append " --runtime=#{@builder.format runtime}"
739
+ yield @builder if block_given?
740
+ self
741
+ end
742
+ def allow_any_runtime
743
+ @builder.append ' --allow_any_runtime'
744
+ yield @builder if block_given?
745
+ self
746
+ end
747
+ def oauth2
748
+ @builder.append ' --oauth2'
749
+ yield @builder if block_given?
750
+ self
751
+ end
752
+ def oauth2_refresh_token(oauth2_refresh_token)
753
+ @builder.append " --oauth2_refresh_token=#{@builder.format oauth2_refresh_token}"
754
+ yield @builder if block_given?
755
+ self
756
+ end
757
+ def noauth_local_webserver
758
+ @builder.append ' --noauth_local_webserver'
759
+ yield @builder if block_given?
760
+ self
761
+ end
762
+ def max_size(size)
763
+ @builder.append " --max_size=#{@builder.format size}"
764
+ yield @builder if block_given?
765
+ self
766
+ end
767
+ def no_precompilation
768
+ @builder.append ' --no_precompilation'
769
+ yield @builder if block_given?
770
+ self
771
+ end
772
+ def backends
773
+ @builder.append ' --backends'
774
+ yield @builder if block_given?
775
+ self
776
+ end
777
+ end
778
+ class CreateBulkloadConfig < CommandBase
779
+ def initialize(builder, directory)
780
+ super builder
781
+ @builder.append " create_bulkload_config #{@builder.format directory}"
782
+ end
783
+ def help
784
+ @builder.append ' --help'
785
+ yield @builder if block_given?
786
+ self
787
+ end
788
+ def quiet
789
+ @builder.append ' --quiet'
790
+ yield @builder if block_given?
791
+ self
792
+ end
793
+ def verbose
794
+ @builder.append ' --verbose'
795
+ yield @builder if block_given?
796
+ self
797
+ end
798
+ def noisy
799
+ @builder.append ' --noisy'
800
+ yield @builder if block_given?
801
+ self
802
+ end
803
+ def server(server)
804
+ @builder.append " --server=#{@builder.format server}"
805
+ yield @builder if block_given?
806
+ self
807
+ end
808
+ def insecure
809
+ @builder.append ' --insecure'
810
+ yield @builder if block_given?
811
+ self
812
+ end
813
+ def email(email)
814
+ @builder.append " --email=#{@builder.format email}"
815
+ yield @builder if block_given?
816
+ self
817
+ end
818
+ def host(host)
819
+ @builder.append " --host=#{@builder.format host}"
820
+ yield @builder if block_given?
821
+ self
822
+ end
823
+ def no_cookies
824
+ @builder.append ' --no_cookies'
825
+ yield @builder if block_given?
826
+ self
827
+ end
828
+ def skip_sdk_update_check
829
+ @builder.append ' --skip_sdk_update_check'
830
+ yield @builder if block_given?
831
+ self
832
+ end
833
+ def passin
834
+ @builder.append ' --passin'
835
+ yield @builder if block_given?
836
+ self
837
+ end
838
+ def application(app_id)
839
+ @builder.append " --application=#{@builder.format app_id}"
840
+ yield @builder if block_given?
841
+ self
842
+ end
843
+ def version(version)
844
+ @builder.append " --version=#{@builder.format version}"
845
+ yield @builder if block_given?
846
+ self
847
+ end
848
+ def runtime(runtime)
849
+ @builder.append " --runtime=#{@builder.format runtime}"
850
+ yield @builder if block_given?
851
+ self
852
+ end
853
+ def allow_any_runtime
854
+ @builder.append ' --allow_any_runtime'
855
+ yield @builder if block_given?
856
+ self
857
+ end
858
+ def oauth2
859
+ @builder.append ' --oauth2'
860
+ yield @builder if block_given?
861
+ self
862
+ end
863
+ def oauth2_refresh_token(oauth2_refresh_token)
864
+ @builder.append " --oauth2_refresh_token=#{@builder.format oauth2_refresh_token}"
865
+ yield @builder if block_given?
866
+ self
867
+ end
868
+ def noauth_local_webserver
869
+ @builder.append ' --noauth_local_webserver'
870
+ yield @builder if block_given?
871
+ self
872
+ end
873
+ def url(url)
874
+ @builder.append " --url=#{@builder.format url}"
875
+ yield @builder if block_given?
876
+ self
877
+ end
878
+ def batch_size(batch_size)
879
+ @builder.append " --batch_size=#{@builder.format batch_size}"
880
+ yield @builder if block_given?
881
+ self
882
+ end
883
+ def bandwidth_limit(bandwidth_limit)
884
+ @builder.append " --bandwidth_limit=#{@builder.format bandwidth_limit}"
885
+ yield @builder if block_given?
886
+ self
887
+ end
888
+ def rps_limit(rps_limit)
889
+ @builder.append " --rps_limit=#{@builder.format rps_limit}"
890
+ yield @builder if block_given?
891
+ self
892
+ end
893
+ def http_limit(http_limit)
894
+ @builder.append " --http_limit=#{@builder.format http_limit}"
895
+ yield @builder if block_given?
896
+ self
897
+ end
898
+ def db_filename(db_filename)
899
+ @builder.append " --db_filename=#{@builder.format db_filename}"
900
+ yield @builder if block_given?
901
+ self
902
+ end
903
+ def auth_domain(auth_domain)
904
+ @builder.append " --auth_domain=#{@builder.format auth_domain}"
905
+ yield @builder if block_given?
906
+ self
907
+ end
908
+ def log_file(log_file)
909
+ @builder.append " --log_file=#{@builder.format log_file}"
910
+ yield @builder if block_given?
911
+ self
912
+ end
913
+ def dry_run
914
+ @builder.append ' --dry_run'
915
+ yield @builder if block_given?
916
+ self
917
+ end
918
+ def namespace(namespace)
919
+ @builder.append " --namespace=#{@builder.format namespace}"
920
+ yield @builder if block_given?
921
+ self
922
+ end
923
+ def num_threads(num_threads)
924
+ @builder.append " --num_threads=#{@builder.format num_threads}"
925
+ yield @builder if block_given?
926
+ self
927
+ end
928
+ def filename(filename)
929
+ @builder.append " --filename=#{@builder.format filename}"
930
+ yield @builder if block_given?
931
+ self
932
+ end
933
+ end
934
+ class CronInfo < CommandBase
935
+ def initialize(builder, directory)
936
+ super builder
937
+ @builder.append " cron_info #{@builder.format directory}"
938
+ end
939
+ def help
940
+ @builder.append ' --help'
941
+ yield @builder if block_given?
942
+ self
943
+ end
944
+ def quiet
945
+ @builder.append ' --quiet'
946
+ yield @builder if block_given?
947
+ self
948
+ end
949
+ def verbose
950
+ @builder.append ' --verbose'
951
+ yield @builder if block_given?
952
+ self
953
+ end
954
+ def noisy
955
+ @builder.append ' --noisy'
956
+ yield @builder if block_given?
957
+ self
958
+ end
959
+ def server(server)
960
+ @builder.append " --server=#{@builder.format server}"
961
+ yield @builder if block_given?
962
+ self
963
+ end
964
+ def insecure
965
+ @builder.append ' --insecure'
966
+ yield @builder if block_given?
967
+ self
968
+ end
969
+ def email(email)
970
+ @builder.append " --email=#{@builder.format email}"
971
+ yield @builder if block_given?
972
+ self
973
+ end
974
+ def host(host)
975
+ @builder.append " --host=#{@builder.format host}"
976
+ yield @builder if block_given?
977
+ self
978
+ end
979
+ def no_cookies
980
+ @builder.append ' --no_cookies'
981
+ yield @builder if block_given?
982
+ self
983
+ end
984
+ def skip_sdk_update_check
985
+ @builder.append ' --skip_sdk_update_check'
986
+ yield @builder if block_given?
987
+ self
988
+ end
989
+ def passin
990
+ @builder.append ' --passin'
991
+ yield @builder if block_given?
992
+ self
993
+ end
994
+ def application(app_id)
995
+ @builder.append " --application=#{@builder.format app_id}"
996
+ yield @builder if block_given?
997
+ self
998
+ end
999
+ def version(version)
1000
+ @builder.append " --version=#{@builder.format version}"
1001
+ yield @builder if block_given?
1002
+ self
1003
+ end
1004
+ def runtime(runtime)
1005
+ @builder.append " --runtime=#{@builder.format runtime}"
1006
+ yield @builder if block_given?
1007
+ self
1008
+ end
1009
+ def allow_any_runtime
1010
+ @builder.append ' --allow_any_runtime'
1011
+ yield @builder if block_given?
1012
+ self
1013
+ end
1014
+ def oauth2
1015
+ @builder.append ' --oauth2'
1016
+ yield @builder if block_given?
1017
+ self
1018
+ end
1019
+ def oauth2_refresh_token(oauth2_refresh_token)
1020
+ @builder.append " --oauth2_refresh_token=#{@builder.format oauth2_refresh_token}"
1021
+ yield @builder if block_given?
1022
+ self
1023
+ end
1024
+ def noauth_local_webserver
1025
+ @builder.append ' --noauth_local_webserver'
1026
+ yield @builder if block_given?
1027
+ self
1028
+ end
1029
+ def num_runs(num_runs)
1030
+ @builder.append " --num_runs=#{@builder.format num_runs}"
1031
+ yield @builder if block_given?
1032
+ self
1033
+ end
1034
+ end
1035
+ class DownloadApp < CommandBase
1036
+ def initialize(builder)
1037
+ super builder
1038
+ @builder.append ' download_app'
1039
+ end
1040
+ def help
1041
+ @builder.append ' --help'
1042
+ yield @builder if block_given?
1043
+ self
1044
+ end
1045
+ def quiet
1046
+ @builder.append ' --quiet'
1047
+ yield @builder if block_given?
1048
+ self
1049
+ end
1050
+ def verbose
1051
+ @builder.append ' --verbose'
1052
+ yield @builder if block_given?
1053
+ self
1054
+ end
1055
+ def noisy
1056
+ @builder.append ' --noisy'
1057
+ yield @builder if block_given?
1058
+ self
1059
+ end
1060
+ def server(server)
1061
+ @builder.append " --server=#{@builder.format server}"
1062
+ yield @builder if block_given?
1063
+ self
1064
+ end
1065
+ def insecure
1066
+ @builder.append ' --insecure'
1067
+ yield @builder if block_given?
1068
+ self
1069
+ end
1070
+ def email(email)
1071
+ @builder.append " --email=#{@builder.format email}"
1072
+ yield @builder if block_given?
1073
+ self
1074
+ end
1075
+ def host(host)
1076
+ @builder.append " --host=#{@builder.format host}"
1077
+ yield @builder if block_given?
1078
+ self
1079
+ end
1080
+ def no_cookies
1081
+ @builder.append ' --no_cookies'
1082
+ yield @builder if block_given?
1083
+ self
1084
+ end
1085
+ def skip_sdk_update_check
1086
+ @builder.append ' --skip_sdk_update_check'
1087
+ yield @builder if block_given?
1088
+ self
1089
+ end
1090
+ def passin
1091
+ @builder.append ' --passin'
1092
+ yield @builder if block_given?
1093
+ self
1094
+ end
1095
+ def application(app_id)
1096
+ @builder.append " --application=#{@builder.format app_id}"
1097
+ yield @builder if block_given?
1098
+ self
1099
+ end
1100
+ def version(version)
1101
+ @builder.append " --version=#{@builder.format version}"
1102
+ yield @builder if block_given?
1103
+ self
1104
+ end
1105
+ def runtime(runtime)
1106
+ @builder.append " --runtime=#{@builder.format runtime}"
1107
+ yield @builder if block_given?
1108
+ self
1109
+ end
1110
+ def allow_any_runtime
1111
+ @builder.append ' --allow_any_runtime'
1112
+ yield @builder if block_given?
1113
+ self
1114
+ end
1115
+ def oauth2
1116
+ @builder.append ' --oauth2'
1117
+ yield @builder if block_given?
1118
+ self
1119
+ end
1120
+ def oauth2_refresh_token(oauth2_refresh_token)
1121
+ @builder.append " --oauth2_refresh_token=#{@builder.format oauth2_refresh_token}"
1122
+ yield @builder if block_given?
1123
+ self
1124
+ end
1125
+ def noauth_local_webserver
1126
+ @builder.append ' --noauth_local_webserver'
1127
+ yield @builder if block_given?
1128
+ self
1129
+ end
1130
+ end
1131
+ class DownloadData < CommandBase
1132
+ def initialize(builder, directory)
1133
+ super builder
1134
+ @builder.append " download_data #{@builder.format directory}"
1135
+ end
1136
+ def help
1137
+ @builder.append ' --help'
1138
+ yield @builder if block_given?
1139
+ self
1140
+ end
1141
+ def quiet
1142
+ @builder.append ' --quiet'
1143
+ yield @builder if block_given?
1144
+ self
1145
+ end
1146
+ def verbose
1147
+ @builder.append ' --verbose'
1148
+ yield @builder if block_given?
1149
+ self
1150
+ end
1151
+ def noisy
1152
+ @builder.append ' --noisy'
1153
+ yield @builder if block_given?
1154
+ self
1155
+ end
1156
+ def server(server)
1157
+ @builder.append " --server=#{@builder.format server}"
1158
+ yield @builder if block_given?
1159
+ self
1160
+ end
1161
+ def insecure
1162
+ @builder.append ' --insecure'
1163
+ yield @builder if block_given?
1164
+ self
1165
+ end
1166
+ def email(email)
1167
+ @builder.append " --email=#{@builder.format email}"
1168
+ yield @builder if block_given?
1169
+ self
1170
+ end
1171
+ def host(host)
1172
+ @builder.append " --host=#{@builder.format host}"
1173
+ yield @builder if block_given?
1174
+ self
1175
+ end
1176
+ def no_cookies
1177
+ @builder.append ' --no_cookies'
1178
+ yield @builder if block_given?
1179
+ self
1180
+ end
1181
+ def skip_sdk_update_check
1182
+ @builder.append ' --skip_sdk_update_check'
1183
+ yield @builder if block_given?
1184
+ self
1185
+ end
1186
+ def passin
1187
+ @builder.append ' --passin'
1188
+ yield @builder if block_given?
1189
+ self
1190
+ end
1191
+ def application(app_id)
1192
+ @builder.append " --application=#{@builder.format app_id}"
1193
+ yield @builder if block_given?
1194
+ self
1195
+ end
1196
+ def version(version)
1197
+ @builder.append " --version=#{@builder.format version}"
1198
+ yield @builder if block_given?
1199
+ self
1200
+ end
1201
+ def runtime(runtime)
1202
+ @builder.append " --runtime=#{@builder.format runtime}"
1203
+ yield @builder if block_given?
1204
+ self
1205
+ end
1206
+ def allow_any_runtime
1207
+ @builder.append ' --allow_any_runtime'
1208
+ yield @builder if block_given?
1209
+ self
1210
+ end
1211
+ def oauth2
1212
+ @builder.append ' --oauth2'
1213
+ yield @builder if block_given?
1214
+ self
1215
+ end
1216
+ def oauth2_refresh_token(oauth2_refresh_token)
1217
+ @builder.append " --oauth2_refresh_token=#{@builder.format oauth2_refresh_token}"
1218
+ yield @builder if block_given?
1219
+ self
1220
+ end
1221
+ def noauth_local_webserver
1222
+ @builder.append ' --noauth_local_webserver'
1223
+ yield @builder if block_given?
1224
+ self
1225
+ end
1226
+ def url(url)
1227
+ @builder.append " --url=#{@builder.format url}"
1228
+ yield @builder if block_given?
1229
+ self
1230
+ end
1231
+ def batch_size(batch_size)
1232
+ @builder.append " --batch_size=#{@builder.format batch_size}"
1233
+ yield @builder if block_given?
1234
+ self
1235
+ end
1236
+ def bandwidth_limit(bandwidth_limit)
1237
+ @builder.append " --bandwidth_limit=#{@builder.format bandwidth_limit}"
1238
+ yield @builder if block_given?
1239
+ self
1240
+ end
1241
+ def rps_limit(rps_limit)
1242
+ @builder.append " --rps_limit=#{@builder.format rps_limit}"
1243
+ yield @builder if block_given?
1244
+ self
1245
+ end
1246
+ def http_limit(http_limit)
1247
+ @builder.append " --http_limit=#{@builder.format http_limit}"
1248
+ yield @builder if block_given?
1249
+ self
1250
+ end
1251
+ def db_filename(db_filename)
1252
+ @builder.append " --db_filename=#{@builder.format db_filename}"
1253
+ yield @builder if block_given?
1254
+ self
1255
+ end
1256
+ def auth_domain(auth_domain)
1257
+ @builder.append " --auth_domain=#{@builder.format auth_domain}"
1258
+ yield @builder if block_given?
1259
+ self
1260
+ end
1261
+ def log_file(log_file)
1262
+ @builder.append " --log_file=#{@builder.format log_file}"
1263
+ yield @builder if block_given?
1264
+ self
1265
+ end
1266
+ def dry_run
1267
+ @builder.append ' --dry_run'
1268
+ yield @builder if block_given?
1269
+ self
1270
+ end
1271
+ def namespace(namespace)
1272
+ @builder.append " --namespace=#{@builder.format namespace}"
1273
+ yield @builder if block_given?
1274
+ self
1275
+ end
1276
+ def num_threads(num_threads)
1277
+ @builder.append " --num_threads=#{@builder.format num_threads}"
1278
+ yield @builder if block_given?
1279
+ self
1280
+ end
1281
+ def filename(filename)
1282
+ @builder.append " --filename=#{@builder.format filename}"
1283
+ yield @builder if block_given?
1284
+ self
1285
+ end
1286
+ def kind(kind)
1287
+ @builder.append " --kind=#{@builder.format kind}"
1288
+ yield @builder if block_given?
1289
+ self
1290
+ end
1291
+ def exporter_opts(exporter_opts)
1292
+ @builder.append " --exporter_opts=#{@builder.format exporter_opts}"
1293
+ yield @builder if block_given?
1294
+ self
1295
+ end
1296
+ def result_db_filename(result_db_filename)
1297
+ @builder.append " --result_db_filename=#{@builder.format result_db_filename}"
1298
+ yield @builder if block_given?
1299
+ self
1300
+ end
1301
+ def config_file(config_file)
1302
+ @builder.append " --config_file=#{@builder.format config_file}"
1303
+ yield @builder if block_given?
1304
+ self
1305
+ end
1306
+ end
1307
+ class Help < CommandBase
1308
+ def initialize(builder, action)
1309
+ super builder
1310
+ @builder.append " help #{@builder.format action}"
1311
+ end
1312
+ def help
1313
+ @builder.append ' --help'
1314
+ yield @builder if block_given?
1315
+ self
1316
+ end
1317
+ def quiet
1318
+ @builder.append ' --quiet'
1319
+ yield @builder if block_given?
1320
+ self
1321
+ end
1322
+ def verbose
1323
+ @builder.append ' --verbose'
1324
+ yield @builder if block_given?
1325
+ self
1326
+ end
1327
+ def noisy
1328
+ @builder.append ' --noisy'
1329
+ yield @builder if block_given?
1330
+ self
1331
+ end
1332
+ def server(server)
1333
+ @builder.append " --server=#{@builder.format server}"
1334
+ yield @builder if block_given?
1335
+ self
1336
+ end
1337
+ def insecure
1338
+ @builder.append ' --insecure'
1339
+ yield @builder if block_given?
1340
+ self
1341
+ end
1342
+ def email(email)
1343
+ @builder.append " --email=#{@builder.format email}"
1344
+ yield @builder if block_given?
1345
+ self
1346
+ end
1347
+ def host(host)
1348
+ @builder.append " --host=#{@builder.format host}"
1349
+ yield @builder if block_given?
1350
+ self
1351
+ end
1352
+ def no_cookies
1353
+ @builder.append ' --no_cookies'
1354
+ yield @builder if block_given?
1355
+ self
1356
+ end
1357
+ def skip_sdk_update_check
1358
+ @builder.append ' --skip_sdk_update_check'
1359
+ yield @builder if block_given?
1360
+ self
1361
+ end
1362
+ def passin
1363
+ @builder.append ' --passin'
1364
+ yield @builder if block_given?
1365
+ self
1366
+ end
1367
+ def application(app_id)
1368
+ @builder.append " --application=#{@builder.format app_id}"
1369
+ yield @builder if block_given?
1370
+ self
1371
+ end
1372
+ def version(version)
1373
+ @builder.append " --version=#{@builder.format version}"
1374
+ yield @builder if block_given?
1375
+ self
1376
+ end
1377
+ def runtime(runtime)
1378
+ @builder.append " --runtime=#{@builder.format runtime}"
1379
+ yield @builder if block_given?
1380
+ self
1381
+ end
1382
+ def allow_any_runtime
1383
+ @builder.append ' --allow_any_runtime'
1384
+ yield @builder if block_given?
1385
+ self
1386
+ end
1387
+ def oauth2
1388
+ @builder.append ' --oauth2'
1389
+ yield @builder if block_given?
1390
+ self
1391
+ end
1392
+ def oauth2_refresh_token(oauth2_refresh_token)
1393
+ @builder.append " --oauth2_refresh_token=#{@builder.format oauth2_refresh_token}"
1394
+ yield @builder if block_given?
1395
+ self
1396
+ end
1397
+ def noauth_local_webserver
1398
+ @builder.append ' --noauth_local_webserver'
1399
+ yield @builder if block_given?
1400
+ self
1401
+ end
1402
+ end
1403
+ class RequestLogs < CommandBase
1404
+ def initialize(builder, directory, output_file)
1405
+ super builder
1406
+ @builder.append " request_logs #{@builder.format directory} #{@builder.format output_file}"
1407
+ end
1408
+ def help
1409
+ @builder.append ' --help'
1410
+ yield @builder if block_given?
1411
+ self
1412
+ end
1413
+ def quiet
1414
+ @builder.append ' --quiet'
1415
+ yield @builder if block_given?
1416
+ self
1417
+ end
1418
+ def verbose
1419
+ @builder.append ' --verbose'
1420
+ yield @builder if block_given?
1421
+ self
1422
+ end
1423
+ def noisy
1424
+ @builder.append ' --noisy'
1425
+ yield @builder if block_given?
1426
+ self
1427
+ end
1428
+ def server(server)
1429
+ @builder.append " --server=#{@builder.format server}"
1430
+ yield @builder if block_given?
1431
+ self
1432
+ end
1433
+ def insecure
1434
+ @builder.append ' --insecure'
1435
+ yield @builder if block_given?
1436
+ self
1437
+ end
1438
+ def email(email)
1439
+ @builder.append " --email=#{@builder.format email}"
1440
+ yield @builder if block_given?
1441
+ self
1442
+ end
1443
+ def host(host)
1444
+ @builder.append " --host=#{@builder.format host}"
1445
+ yield @builder if block_given?
1446
+ self
1447
+ end
1448
+ def no_cookies
1449
+ @builder.append ' --no_cookies'
1450
+ yield @builder if block_given?
1451
+ self
1452
+ end
1453
+ def skip_sdk_update_check
1454
+ @builder.append ' --skip_sdk_update_check'
1455
+ yield @builder if block_given?
1456
+ self
1457
+ end
1458
+ def passin
1459
+ @builder.append ' --passin'
1460
+ yield @builder if block_given?
1461
+ self
1462
+ end
1463
+ def application(app_id)
1464
+ @builder.append " --application=#{@builder.format app_id}"
1465
+ yield @builder if block_given?
1466
+ self
1467
+ end
1468
+ def version(version)
1469
+ @builder.append " --version=#{@builder.format version}"
1470
+ yield @builder if block_given?
1471
+ self
1472
+ end
1473
+ def runtime(runtime)
1474
+ @builder.append " --runtime=#{@builder.format runtime}"
1475
+ yield @builder if block_given?
1476
+ self
1477
+ end
1478
+ def allow_any_runtime
1479
+ @builder.append ' --allow_any_runtime'
1480
+ yield @builder if block_given?
1481
+ self
1482
+ end
1483
+ def oauth2
1484
+ @builder.append ' --oauth2'
1485
+ yield @builder if block_given?
1486
+ self
1487
+ end
1488
+ def oauth2_refresh_token(oauth2_refresh_token)
1489
+ @builder.append " --oauth2_refresh_token=#{@builder.format oauth2_refresh_token}"
1490
+ yield @builder if block_given?
1491
+ self
1492
+ end
1493
+ def noauth_local_webserver
1494
+ @builder.append ' --noauth_local_webserver'
1495
+ yield @builder if block_given?
1496
+ self
1497
+ end
1498
+ def num_days(num_days)
1499
+ @builder.append " --num_days=#{@builder.format num_days}"
1500
+ yield @builder if block_given?
1501
+ self
1502
+ end
1503
+ def append
1504
+ @builder.append ' --append'
1505
+ yield @builder if block_given?
1506
+ self
1507
+ end
1508
+ def severity(severity)
1509
+ @builder.append " --severity=#{@builder.format severity}"
1510
+ yield @builder if block_given?
1511
+ self
1512
+ end
1513
+ def vhost(vhost)
1514
+ @builder.append " --vhost=#{@builder.format vhost}"
1515
+ yield @builder if block_given?
1516
+ self
1517
+ end
1518
+ def include_vhost
1519
+ @builder.append ' --include_vhost'
1520
+ yield @builder if block_given?
1521
+ self
1522
+ end
1523
+ def include_all
1524
+ @builder.append ' --include_all'
1525
+ yield @builder if block_given?
1526
+ self
1527
+ end
1528
+ def end_date(end_date)
1529
+ @builder.append " --end_date=#{@builder.format end_date}"
1530
+ yield @builder if block_given?
1531
+ self
1532
+ end
1533
+ end
1534
+ class ResourceLimitsInfo < CommandBase
1535
+ def initialize(builder, directory)
1536
+ super builder
1537
+ @builder.append " resource_limits_info #{@builder.format directory}"
1538
+ end
1539
+ def help
1540
+ @builder.append ' --help'
1541
+ yield @builder if block_given?
1542
+ self
1543
+ end
1544
+ def quiet
1545
+ @builder.append ' --quiet'
1546
+ yield @builder if block_given?
1547
+ self
1548
+ end
1549
+ def verbose
1550
+ @builder.append ' --verbose'
1551
+ yield @builder if block_given?
1552
+ self
1553
+ end
1554
+ def noisy
1555
+ @builder.append ' --noisy'
1556
+ yield @builder if block_given?
1557
+ self
1558
+ end
1559
+ def server(server)
1560
+ @builder.append " --server=#{@builder.format server}"
1561
+ yield @builder if block_given?
1562
+ self
1563
+ end
1564
+ def insecure
1565
+ @builder.append ' --insecure'
1566
+ yield @builder if block_given?
1567
+ self
1568
+ end
1569
+ def email(email)
1570
+ @builder.append " --email=#{@builder.format email}"
1571
+ yield @builder if block_given?
1572
+ self
1573
+ end
1574
+ def host(host)
1575
+ @builder.append " --host=#{@builder.format host}"
1576
+ yield @builder if block_given?
1577
+ self
1578
+ end
1579
+ def no_cookies
1580
+ @builder.append ' --no_cookies'
1581
+ yield @builder if block_given?
1582
+ self
1583
+ end
1584
+ def skip_sdk_update_check
1585
+ @builder.append ' --skip_sdk_update_check'
1586
+ yield @builder if block_given?
1587
+ self
1588
+ end
1589
+ def passin
1590
+ @builder.append ' --passin'
1591
+ yield @builder if block_given?
1592
+ self
1593
+ end
1594
+ def application(app_id)
1595
+ @builder.append " --application=#{@builder.format app_id}"
1596
+ yield @builder if block_given?
1597
+ self
1598
+ end
1599
+ def version(version)
1600
+ @builder.append " --version=#{@builder.format version}"
1601
+ yield @builder if block_given?
1602
+ self
1603
+ end
1604
+ def runtime(runtime)
1605
+ @builder.append " --runtime=#{@builder.format runtime}"
1606
+ yield @builder if block_given?
1607
+ self
1608
+ end
1609
+ def allow_any_runtime
1610
+ @builder.append ' --allow_any_runtime'
1611
+ yield @builder if block_given?
1612
+ self
1613
+ end
1614
+ def oauth2
1615
+ @builder.append ' --oauth2'
1616
+ yield @builder if block_given?
1617
+ self
1618
+ end
1619
+ def oauth2_refresh_token(oauth2_refresh_token)
1620
+ @builder.append " --oauth2_refresh_token=#{@builder.format oauth2_refresh_token}"
1621
+ yield @builder if block_given?
1622
+ self
1623
+ end
1624
+ def noauth_local_webserver
1625
+ @builder.append ' --noauth_local_webserver'
1626
+ yield @builder if block_given?
1627
+ self
1628
+ end
1629
+ end
1630
+ class Rollback < CommandBase
1631
+ def initialize(builder, directory)
1632
+ super builder
1633
+ @builder.append " rollback #{@builder.format directory}"
1634
+ end
1635
+ def help
1636
+ @builder.append ' --help'
1637
+ yield @builder if block_given?
1638
+ self
1639
+ end
1640
+ def quiet
1641
+ @builder.append ' --quiet'
1642
+ yield @builder if block_given?
1643
+ self
1644
+ end
1645
+ def verbose
1646
+ @builder.append ' --verbose'
1647
+ yield @builder if block_given?
1648
+ self
1649
+ end
1650
+ def noisy
1651
+ @builder.append ' --noisy'
1652
+ yield @builder if block_given?
1653
+ self
1654
+ end
1655
+ def server(server)
1656
+ @builder.append " --server=#{@builder.format server}"
1657
+ yield @builder if block_given?
1658
+ self
1659
+ end
1660
+ def insecure
1661
+ @builder.append ' --insecure'
1662
+ yield @builder if block_given?
1663
+ self
1664
+ end
1665
+ def email(email)
1666
+ @builder.append " --email=#{@builder.format email}"
1667
+ yield @builder if block_given?
1668
+ self
1669
+ end
1670
+ def host(host)
1671
+ @builder.append " --host=#{@builder.format host}"
1672
+ yield @builder if block_given?
1673
+ self
1674
+ end
1675
+ def no_cookies
1676
+ @builder.append ' --no_cookies'
1677
+ yield @builder if block_given?
1678
+ self
1679
+ end
1680
+ def skip_sdk_update_check
1681
+ @builder.append ' --skip_sdk_update_check'
1682
+ yield @builder if block_given?
1683
+ self
1684
+ end
1685
+ def passin
1686
+ @builder.append ' --passin'
1687
+ yield @builder if block_given?
1688
+ self
1689
+ end
1690
+ def application(app_id)
1691
+ @builder.append " --application=#{@builder.format app_id}"
1692
+ yield @builder if block_given?
1693
+ self
1694
+ end
1695
+ def version(version)
1696
+ @builder.append " --version=#{@builder.format version}"
1697
+ yield @builder if block_given?
1698
+ self
1699
+ end
1700
+ def runtime(runtime)
1701
+ @builder.append " --runtime=#{@builder.format runtime}"
1702
+ yield @builder if block_given?
1703
+ self
1704
+ end
1705
+ def allow_any_runtime
1706
+ @builder.append ' --allow_any_runtime'
1707
+ yield @builder if block_given?
1708
+ self
1709
+ end
1710
+ def oauth2
1711
+ @builder.append ' --oauth2'
1712
+ yield @builder if block_given?
1713
+ self
1714
+ end
1715
+ def oauth2_refresh_token(oauth2_refresh_token)
1716
+ @builder.append " --oauth2_refresh_token=#{@builder.format oauth2_refresh_token}"
1717
+ yield @builder if block_given?
1718
+ self
1719
+ end
1720
+ def noauth_local_webserver
1721
+ @builder.append ' --noauth_local_webserver'
1722
+ yield @builder if block_given?
1723
+ self
1724
+ end
1725
+ end
1726
+ class SetDefaultVersion < CommandBase
1727
+ def initialize(builder, directory)
1728
+ super builder
1729
+ @builder.append " set_default_version #{@builder.format directory}"
1730
+ end
1731
+ def help
1732
+ @builder.append ' --help'
1733
+ yield @builder if block_given?
1734
+ self
1735
+ end
1736
+ def quiet
1737
+ @builder.append ' --quiet'
1738
+ yield @builder if block_given?
1739
+ self
1740
+ end
1741
+ def verbose
1742
+ @builder.append ' --verbose'
1743
+ yield @builder if block_given?
1744
+ self
1745
+ end
1746
+ def noisy
1747
+ @builder.append ' --noisy'
1748
+ yield @builder if block_given?
1749
+ self
1750
+ end
1751
+ def server(server)
1752
+ @builder.append " --server=#{@builder.format server}"
1753
+ yield @builder if block_given?
1754
+ self
1755
+ end
1756
+ def insecure
1757
+ @builder.append ' --insecure'
1758
+ yield @builder if block_given?
1759
+ self
1760
+ end
1761
+ def email(email)
1762
+ @builder.append " --email=#{@builder.format email}"
1763
+ yield @builder if block_given?
1764
+ self
1765
+ end
1766
+ def host(host)
1767
+ @builder.append " --host=#{@builder.format host}"
1768
+ yield @builder if block_given?
1769
+ self
1770
+ end
1771
+ def no_cookies
1772
+ @builder.append ' --no_cookies'
1773
+ yield @builder if block_given?
1774
+ self
1775
+ end
1776
+ def skip_sdk_update_check
1777
+ @builder.append ' --skip_sdk_update_check'
1778
+ yield @builder if block_given?
1779
+ self
1780
+ end
1781
+ def passin
1782
+ @builder.append ' --passin'
1783
+ yield @builder if block_given?
1784
+ self
1785
+ end
1786
+ def application(app_id)
1787
+ @builder.append " --application=#{@builder.format app_id}"
1788
+ yield @builder if block_given?
1789
+ self
1790
+ end
1791
+ def version(version)
1792
+ @builder.append " --version=#{@builder.format version}"
1793
+ yield @builder if block_given?
1794
+ self
1795
+ end
1796
+ def runtime(runtime)
1797
+ @builder.append " --runtime=#{@builder.format runtime}"
1798
+ yield @builder if block_given?
1799
+ self
1800
+ end
1801
+ def allow_any_runtime
1802
+ @builder.append ' --allow_any_runtime'
1803
+ yield @builder if block_given?
1804
+ self
1805
+ end
1806
+ def oauth2
1807
+ @builder.append ' --oauth2'
1808
+ yield @builder if block_given?
1809
+ self
1810
+ end
1811
+ def oauth2_refresh_token(oauth2_refresh_token)
1812
+ @builder.append " --oauth2_refresh_token=#{@builder.format oauth2_refresh_token}"
1813
+ yield @builder if block_given?
1814
+ self
1815
+ end
1816
+ def noauth_local_webserver
1817
+ @builder.append ' --noauth_local_webserver'
1818
+ yield @builder if block_given?
1819
+ self
1820
+ end
1821
+ end
1822
+ class Update < CommandBase
1823
+ def initialize(builder, directory)
1824
+ super builder
1825
+ @builder.append " update #{@builder.format directory}"
1826
+ end
1827
+ def help
1828
+ @builder.append ' --help'
1829
+ yield @builder if block_given?
1830
+ self
1831
+ end
1832
+ def quiet
1833
+ @builder.append ' --quiet'
1834
+ yield @builder if block_given?
1835
+ self
1836
+ end
1837
+ def verbose
1838
+ @builder.append ' --verbose'
1839
+ yield @builder if block_given?
1840
+ self
1841
+ end
1842
+ def noisy
1843
+ @builder.append ' --noisy'
1844
+ yield @builder if block_given?
1845
+ self
1846
+ end
1847
+ def server(server)
1848
+ @builder.append " --server=#{@builder.format server}"
1849
+ yield @builder if block_given?
1850
+ self
1851
+ end
1852
+ def insecure
1853
+ @builder.append ' --insecure'
1854
+ yield @builder if block_given?
1855
+ self
1856
+ end
1857
+ def email(email)
1858
+ @builder.append " --email=#{@builder.format email}"
1859
+ yield @builder if block_given?
1860
+ self
1861
+ end
1862
+ def host(host)
1863
+ @builder.append " --host=#{@builder.format host}"
1864
+ yield @builder if block_given?
1865
+ self
1866
+ end
1867
+ def no_cookies
1868
+ @builder.append ' --no_cookies'
1869
+ yield @builder if block_given?
1870
+ self
1871
+ end
1872
+ def skip_sdk_update_check
1873
+ @builder.append ' --skip_sdk_update_check'
1874
+ yield @builder if block_given?
1875
+ self
1876
+ end
1877
+ def passin
1878
+ @builder.append ' --passin'
1879
+ yield @builder if block_given?
1880
+ self
1881
+ end
1882
+ def application(app_id)
1883
+ @builder.append " --application=#{@builder.format app_id}"
1884
+ yield @builder if block_given?
1885
+ self
1886
+ end
1887
+ def version(version)
1888
+ @builder.append " --version=#{@builder.format version}"
1889
+ yield @builder if block_given?
1890
+ self
1891
+ end
1892
+ def runtime(runtime)
1893
+ @builder.append " --runtime=#{@builder.format runtime}"
1894
+ yield @builder if block_given?
1895
+ self
1896
+ end
1897
+ def allow_any_runtime
1898
+ @builder.append ' --allow_any_runtime'
1899
+ yield @builder if block_given?
1900
+ self
1901
+ end
1902
+ def oauth2
1903
+ @builder.append ' --oauth2'
1904
+ yield @builder if block_given?
1905
+ self
1906
+ end
1907
+ def oauth2_refresh_token(oauth2_refresh_token)
1908
+ @builder.append " --oauth2_refresh_token=#{@builder.format oauth2_refresh_token}"
1909
+ yield @builder if block_given?
1910
+ self
1911
+ end
1912
+ def noauth_local_webserver
1913
+ @builder.append ' --noauth_local_webserver'
1914
+ yield @builder if block_given?
1915
+ self
1916
+ end
1917
+ def max_size(size)
1918
+ @builder.append " --max_size=#{@builder.format size}"
1919
+ yield @builder if block_given?
1920
+ self
1921
+ end
1922
+ def no_precompilation
1923
+ @builder.append ' --no_precompilation'
1924
+ yield @builder if block_given?
1925
+ self
1926
+ end
1927
+ def backends
1928
+ @builder.append ' --backends'
1929
+ yield @builder if block_given?
1930
+ self
1931
+ end
1932
+ end
1933
+ class UpdateCron < CommandBase
1934
+ def initialize(builder, directory)
1935
+ super builder
1936
+ @builder.append " update_cron #{@builder.format directory}"
1937
+ end
12
1938
  def help
13
1939
  @builder.append ' --help'
14
1940
  yield @builder if block_given?
@@ -99,225 +2025,389 @@ module FluentCommandBuilder
99
2025
  yield @builder if block_given?
100
2026
  self
101
2027
  end
102
- def action
103
- Action.new @builder
104
- end
105
2028
  end
106
- class Action < CommandBase
107
- def initialize(builder)
2029
+ class UpdateDos < CommandBase
2030
+ def initialize(builder, directory)
108
2031
  super builder
2032
+ @builder.append " update_dos #{@builder.format directory}"
109
2033
  end
110
- def backends(directory)
111
- Backends.new @builder, directory
2034
+ def help
2035
+ @builder.append ' --help'
2036
+ yield @builder if block_given?
2037
+ self
112
2038
  end
113
- def create_bulkload_config(directory)
114
- CreateBulkloadConfig.new @builder, directory
2039
+ def quiet
2040
+ @builder.append ' --quiet'
2041
+ yield @builder if block_given?
2042
+ self
115
2043
  end
116
- def cron_info(directory)
117
- CronInfo.new @builder, directory
2044
+ def verbose
2045
+ @builder.append ' --verbose'
2046
+ yield @builder if block_given?
2047
+ self
118
2048
  end
119
- def download_app
120
- @builder.append ' download_app'
2049
+ def noisy
2050
+ @builder.append ' --noisy'
121
2051
  yield @builder if block_given?
122
2052
  self
123
2053
  end
124
- def download_data(directory)
125
- DownloadData.new @builder, directory
2054
+ def server(server)
2055
+ @builder.append " --server=#{@builder.format server}"
2056
+ yield @builder if block_given?
2057
+ self
126
2058
  end
127
- def help(action)
128
- @builder.append " help #{@builder.format action}"
2059
+ def insecure
2060
+ @builder.append ' --insecure'
129
2061
  yield @builder if block_given?
130
2062
  self
131
2063
  end
132
- def request_logs(directory, output_file)
133
- RequestLogs.new @builder, directory, output_file
2064
+ def email(email)
2065
+ @builder.append " --email=#{@builder.format email}"
2066
+ yield @builder if block_given?
2067
+ self
134
2068
  end
135
- def resource_limits_info(directory)
136
- @builder.append " resource_limits_info #{@builder.format directory}"
2069
+ def host(host)
2070
+ @builder.append " --host=#{@builder.format host}"
137
2071
  yield @builder if block_given?
138
2072
  self
139
2073
  end
140
- def rollback(directory)
141
- @builder.append " rollback #{@builder.format directory}"
2074
+ def no_cookies
2075
+ @builder.append ' --no_cookies'
142
2076
  yield @builder if block_given?
143
2077
  self
144
2078
  end
145
- def set_default_version(directory)
146
- @builder.append " set_default_version #{@builder.format directory}"
2079
+ def skip_sdk_update_check
2080
+ @builder.append ' --skip_sdk_update_check'
147
2081
  yield @builder if block_given?
148
2082
  self
149
2083
  end
150
- def update(directory)
151
- Update.new @builder, directory
2084
+ def passin
2085
+ @builder.append ' --passin'
2086
+ yield @builder if block_given?
2087
+ self
152
2088
  end
153
- def update_cron(directory)
154
- @builder.append " update_cron #{@builder.format directory}"
2089
+ def application(app_id)
2090
+ @builder.append " --application=#{@builder.format app_id}"
155
2091
  yield @builder if block_given?
156
2092
  self
157
2093
  end
158
- def update_dos(directory)
159
- @builder.append " update_dos #{@builder.format directory}"
2094
+ def version(version)
2095
+ @builder.append " --version=#{@builder.format version}"
160
2096
  yield @builder if block_given?
161
2097
  self
162
2098
  end
163
- def update_indexes(directory)
2099
+ def runtime(runtime)
2100
+ @builder.append " --runtime=#{@builder.format runtime}"
2101
+ yield @builder if block_given?
2102
+ self
2103
+ end
2104
+ def allow_any_runtime
2105
+ @builder.append ' --allow_any_runtime'
2106
+ yield @builder if block_given?
2107
+ self
2108
+ end
2109
+ def oauth2
2110
+ @builder.append ' --oauth2'
2111
+ yield @builder if block_given?
2112
+ self
2113
+ end
2114
+ def oauth2_refresh_token(oauth2_refresh_token)
2115
+ @builder.append " --oauth2_refresh_token=#{@builder.format oauth2_refresh_token}"
2116
+ yield @builder if block_given?
2117
+ self
2118
+ end
2119
+ def noauth_local_webserver
2120
+ @builder.append ' --noauth_local_webserver'
2121
+ yield @builder if block_given?
2122
+ self
2123
+ end
2124
+ end
2125
+ class UpdateIndexes < CommandBase
2126
+ def initialize(builder, directory)
2127
+ super builder
164
2128
  @builder.append " update_indexes #{@builder.format directory}"
2129
+ end
2130
+ def help
2131
+ @builder.append ' --help'
165
2132
  yield @builder if block_given?
166
2133
  self
167
2134
  end
168
- def update_queues(directory)
169
- @builder.append " update_queues #{@builder.format directory}"
2135
+ def quiet
2136
+ @builder.append ' --quiet'
170
2137
  yield @builder if block_given?
171
2138
  self
172
2139
  end
173
- def upload_data(directory)
174
- UploadData.new @builder, directory
2140
+ def verbose
2141
+ @builder.append ' --verbose'
2142
+ yield @builder if block_given?
2143
+ self
175
2144
  end
176
- def vacuum_indexes(directory)
177
- VacuumIndexes.new @builder, directory
2145
+ def noisy
2146
+ @builder.append ' --noisy'
2147
+ yield @builder if block_given?
2148
+ self
2149
+ end
2150
+ def server(server)
2151
+ @builder.append " --server=#{@builder.format server}"
2152
+ yield @builder if block_given?
2153
+ self
2154
+ end
2155
+ def insecure
2156
+ @builder.append ' --insecure'
2157
+ yield @builder if block_given?
2158
+ self
2159
+ end
2160
+ def email(email)
2161
+ @builder.append " --email=#{@builder.format email}"
2162
+ yield @builder if block_given?
2163
+ self
2164
+ end
2165
+ def host(host)
2166
+ @builder.append " --host=#{@builder.format host}"
2167
+ yield @builder if block_given?
2168
+ self
2169
+ end
2170
+ def no_cookies
2171
+ @builder.append ' --no_cookies'
2172
+ yield @builder if block_given?
2173
+ self
2174
+ end
2175
+ def skip_sdk_update_check
2176
+ @builder.append ' --skip_sdk_update_check'
2177
+ yield @builder if block_given?
2178
+ self
2179
+ end
2180
+ def passin
2181
+ @builder.append ' --passin'
2182
+ yield @builder if block_given?
2183
+ self
2184
+ end
2185
+ def application(app_id)
2186
+ @builder.append " --application=#{@builder.format app_id}"
2187
+ yield @builder if block_given?
2188
+ self
2189
+ end
2190
+ def version(version)
2191
+ @builder.append " --version=#{@builder.format version}"
2192
+ yield @builder if block_given?
2193
+ self
2194
+ end
2195
+ def runtime(runtime)
2196
+ @builder.append " --runtime=#{@builder.format runtime}"
2197
+ yield @builder if block_given?
2198
+ self
2199
+ end
2200
+ def allow_any_runtime
2201
+ @builder.append ' --allow_any_runtime'
2202
+ yield @builder if block_given?
2203
+ self
2204
+ end
2205
+ def oauth2
2206
+ @builder.append ' --oauth2'
2207
+ yield @builder if block_given?
2208
+ self
2209
+ end
2210
+ def oauth2_refresh_token(oauth2_refresh_token)
2211
+ @builder.append " --oauth2_refresh_token=#{@builder.format oauth2_refresh_token}"
2212
+ yield @builder if block_given?
2213
+ self
2214
+ end
2215
+ def noauth_local_webserver
2216
+ @builder.append ' --noauth_local_webserver'
2217
+ yield @builder if block_given?
2218
+ self
178
2219
  end
179
2220
  end
180
- class Backends < CommandBase
2221
+ class UpdateQueues < CommandBase
181
2222
  def initialize(builder, directory)
182
2223
  super builder
183
- @builder.append " backends #{@builder.format directory}"
2224
+ @builder.append " update_queues #{@builder.format directory}"
184
2225
  end
185
- def configure(backend)
186
- @builder.append " configure #{@builder.format backend}"
2226
+ def help
2227
+ @builder.append ' --help'
187
2228
  yield @builder if block_given?
188
2229
  self
189
2230
  end
190
- def delete(backend)
191
- @builder.append " delete #{@builder.format backend}"
2231
+ def quiet
2232
+ @builder.append ' --quiet'
2233
+ yield @builder if block_given?
2234
+ self
2235
+ end
2236
+ def verbose
2237
+ @builder.append ' --verbose'
2238
+ yield @builder if block_given?
2239
+ self
2240
+ end
2241
+ def noisy
2242
+ @builder.append ' --noisy'
2243
+ yield @builder if block_given?
2244
+ self
2245
+ end
2246
+ def server(server)
2247
+ @builder.append " --server=#{@builder.format server}"
2248
+ yield @builder if block_given?
2249
+ self
2250
+ end
2251
+ def insecure
2252
+ @builder.append ' --insecure'
2253
+ yield @builder if block_given?
2254
+ self
2255
+ end
2256
+ def email(email)
2257
+ @builder.append " --email=#{@builder.format email}"
2258
+ yield @builder if block_given?
2259
+ self
2260
+ end
2261
+ def host(host)
2262
+ @builder.append " --host=#{@builder.format host}"
2263
+ yield @builder if block_given?
2264
+ self
2265
+ end
2266
+ def no_cookies
2267
+ @builder.append ' --no_cookies'
2268
+ yield @builder if block_given?
2269
+ self
2270
+ end
2271
+ def skip_sdk_update_check
2272
+ @builder.append ' --skip_sdk_update_check'
2273
+ yield @builder if block_given?
2274
+ self
2275
+ end
2276
+ def passin
2277
+ @builder.append ' --passin'
2278
+ yield @builder if block_given?
2279
+ self
2280
+ end
2281
+ def application(app_id)
2282
+ @builder.append " --application=#{@builder.format app_id}"
2283
+ yield @builder if block_given?
2284
+ self
2285
+ end
2286
+ def version(version)
2287
+ @builder.append " --version=#{@builder.format version}"
2288
+ yield @builder if block_given?
2289
+ self
2290
+ end
2291
+ def runtime(runtime)
2292
+ @builder.append " --runtime=#{@builder.format runtime}"
192
2293
  yield @builder if block_given?
193
2294
  self
194
2295
  end
195
- def list
196
- @builder.append ' list'
2296
+ def allow_any_runtime
2297
+ @builder.append ' --allow_any_runtime'
197
2298
  yield @builder if block_given?
198
2299
  self
199
2300
  end
200
- def rollback(backend)
201
- @builder.append " rollback #{@builder.format backend}"
2301
+ def oauth2
2302
+ @builder.append ' --oauth2'
202
2303
  yield @builder if block_given?
203
2304
  self
204
2305
  end
205
- def start(backend)
206
- @builder.append " start #{@builder.format backend}"
2306
+ def oauth2_refresh_token(oauth2_refresh_token)
2307
+ @builder.append " --oauth2_refresh_token=#{@builder.format oauth2_refresh_token}"
207
2308
  yield @builder if block_given?
208
2309
  self
209
2310
  end
210
- def stop(backend)
211
- @builder.append " stop #{@builder.format backend}"
2311
+ def noauth_local_webserver
2312
+ @builder.append ' --noauth_local_webserver'
212
2313
  yield @builder if block_given?
213
2314
  self
214
2315
  end
215
- def update(backend)
216
- Update.new @builder, backend
217
- end
218
2316
  end
219
- class Update < CommandBase
220
- def initialize(builder, backend)
2317
+ class UploadData < CommandBase
2318
+ def initialize(builder, directory)
221
2319
  super builder
222
- @builder.append " update #{@builder.format backend}"
2320
+ @builder.append " upload_data #{@builder.format directory}"
223
2321
  end
224
- def max_size(size)
225
- @builder.append " --max_size=#{@builder.format size}"
2322
+ def help
2323
+ @builder.append ' --help'
226
2324
  yield @builder if block_given?
227
2325
  self
228
2326
  end
229
- def no_precompilation
230
- @builder.append ' --no_precompilation'
2327
+ def quiet
2328
+ @builder.append ' --quiet'
231
2329
  yield @builder if block_given?
232
2330
  self
233
2331
  end
234
- def backends
235
- @builder.append ' --backends'
2332
+ def verbose
2333
+ @builder.append ' --verbose'
236
2334
  yield @builder if block_given?
237
2335
  self
238
2336
  end
239
- end
240
- class CreateBulkloadConfig < CommandBase
241
- def initialize(builder, directory)
242
- super builder
243
- @builder.append " create_bulkload_config #{@builder.format directory}"
244
- end
245
- def url(url)
246
- @builder.append " --url=#{@builder.format url}"
2337
+ def noisy
2338
+ @builder.append ' --noisy'
247
2339
  yield @builder if block_given?
248
2340
  self
249
2341
  end
250
- def batch_size(batch_size)
251
- @builder.append " --batch_size=#{@builder.format batch_size}"
2342
+ def server(server)
2343
+ @builder.append " --server=#{@builder.format server}"
252
2344
  yield @builder if block_given?
253
2345
  self
254
2346
  end
255
- def bandwidth_limit(bandwidth_limit)
256
- @builder.append " --bandwidth_limit=#{@builder.format bandwidth_limit}"
2347
+ def insecure
2348
+ @builder.append ' --insecure'
257
2349
  yield @builder if block_given?
258
2350
  self
259
2351
  end
260
- def rps_limit(rps_limit)
261
- @builder.append " --rps_limit=#{@builder.format rps_limit}"
2352
+ def email(email)
2353
+ @builder.append " --email=#{@builder.format email}"
262
2354
  yield @builder if block_given?
263
2355
  self
264
2356
  end
265
- def http_limit(http_limit)
266
- @builder.append " --http_limit=#{@builder.format http_limit}"
2357
+ def host(host)
2358
+ @builder.append " --host=#{@builder.format host}"
267
2359
  yield @builder if block_given?
268
2360
  self
269
2361
  end
270
- def db_filename(db_filename)
271
- @builder.append " --db_filename=#{@builder.format db_filename}"
2362
+ def no_cookies
2363
+ @builder.append ' --no_cookies'
272
2364
  yield @builder if block_given?
273
2365
  self
274
2366
  end
275
- def auth_domain(auth_domain)
276
- @builder.append " --auth_domain=#{@builder.format auth_domain}"
2367
+ def skip_sdk_update_check
2368
+ @builder.append ' --skip_sdk_update_check'
277
2369
  yield @builder if block_given?
278
2370
  self
279
2371
  end
280
- def log_file(log_file)
281
- @builder.append " --log_file=#{@builder.format log_file}"
2372
+ def passin
2373
+ @builder.append ' --passin'
282
2374
  yield @builder if block_given?
283
2375
  self
284
2376
  end
285
- def dry_run
286
- @builder.append ' --dry_run'
2377
+ def application(app_id)
2378
+ @builder.append " --application=#{@builder.format app_id}"
287
2379
  yield @builder if block_given?
288
2380
  self
289
2381
  end
290
- def namespace(namespace)
291
- @builder.append " --namespace=#{@builder.format namespace}"
2382
+ def version(version)
2383
+ @builder.append " --version=#{@builder.format version}"
292
2384
  yield @builder if block_given?
293
2385
  self
294
2386
  end
295
- def num_threads(num_threads)
296
- @builder.append " --num_threads=#{@builder.format num_threads}"
2387
+ def runtime(runtime)
2388
+ @builder.append " --runtime=#{@builder.format runtime}"
297
2389
  yield @builder if block_given?
298
2390
  self
299
2391
  end
300
- def filename(filename)
301
- @builder.append " --filename=#{@builder.format filename}"
2392
+ def allow_any_runtime
2393
+ @builder.append ' --allow_any_runtime'
302
2394
  yield @builder if block_given?
303
2395
  self
304
2396
  end
305
- end
306
- class CronInfo < CommandBase
307
- def initialize(builder, directory)
308
- super builder
309
- @builder.append " cron_info #{@builder.format directory}"
2397
+ def oauth2
2398
+ @builder.append ' --oauth2'
2399
+ yield @builder if block_given?
2400
+ self
310
2401
  end
311
- def num_runs(num_runs)
312
- @builder.append " --num_runs=#{@builder.format num_runs}"
2402
+ def oauth2_refresh_token(oauth2_refresh_token)
2403
+ @builder.append " --oauth2_refresh_token=#{@builder.format oauth2_refresh_token}"
313
2404
  yield @builder if block_given?
314
2405
  self
315
2406
  end
316
- end
317
- class DownloadData < CommandBase
318
- def initialize(builder, directory)
319
- super builder
320
- @builder.append " download_data #{@builder.format directory}"
2407
+ def noauth_local_webserver
2408
+ @builder.append ' --noauth_local_webserver'
2409
+ yield @builder if block_given?
2410
+ self
321
2411
  end
322
2412
  def url(url)
323
2413
  @builder.append " --url=#{@builder.format url}"
@@ -384,13 +2474,13 @@ module FluentCommandBuilder
384
2474
  yield @builder if block_given?
385
2475
  self
386
2476
  end
387
- def exporter_opts(exporter_opts)
388
- @builder.append " --exporter_opts=#{@builder.format exporter_opts}"
2477
+ def has_header
2478
+ @builder.append ' --has_header'
389
2479
  yield @builder if block_given?
390
2480
  self
391
2481
  end
392
- def result_db_filename(result_db_filename)
393
- @builder.append " --result_db_filename=#{@builder.format result_db_filename}"
2482
+ def loader_opts(loader_opts)
2483
+ @builder.append " --loader_opts=#{@builder.format loader_opts}"
394
2484
  yield @builder if block_given?
395
2485
  self
396
2486
  end
@@ -400,159 +2490,101 @@ module FluentCommandBuilder
400
2490
  self
401
2491
  end
402
2492
  end
403
- class RequestLogs < CommandBase
404
- def initialize(builder, directory, output_file)
405
- super builder
406
- @builder.append " request_logs #{@builder.format directory} #{@builder.format output_file}"
407
- end
408
- def num_days(num_days)
409
- @builder.append " --num_days=#{@builder.format num_days}"
410
- yield @builder if block_given?
411
- self
412
- end
413
- def append
414
- @builder.append ' --append'
415
- yield @builder if block_given?
416
- self
417
- end
418
- def severity(severity)
419
- @builder.append " --severity=#{@builder.format severity}"
420
- yield @builder if block_given?
421
- self
422
- end
423