-
Notifications
You must be signed in to change notification settings - Fork 163
/
config_client.go
6089 lines (5685 loc) · 257 KB
/
config_client.go
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
// Code generated by go-swagger; DO NOT EDIT.
package config
// This file was generated by the swagger tool.
// Editing this file might prove futile when you re-run the swagger generate command
import (
"github.com/go-openapi/runtime"
strfmt "github.com/go-openapi/strfmt"
)
// New creates a new config API client.
func New(transport runtime.ClientTransport, formats strfmt.Registry) *Client {
return &Client{transport: transport, formats: formats}
}
/*
Client for config API
*/
type Client struct {
transport runtime.ClientTransport
formats strfmt.Registry
}
/*
FindConfigAbortOnLsaBadAlloc Abort when allocation in LSA region fails
*/
func (a *Client) FindConfigAbortOnLsaBadAlloc(params *FindConfigAbortOnLsaBadAllocParams) (*FindConfigAbortOnLsaBadAllocOK, error) {
// TODO: Validate the params before sending
if params == nil {
params = NewFindConfigAbortOnLsaBadAllocParams()
}
result, err := a.transport.Submit(&runtime.ClientOperation{
ID: "find_config_abort_on_lsa_bad_alloc",
Method: "GET",
PathPattern: "/config/abort_on_lsa_bad_alloc",
ProducesMediaTypes: []string{"application/json"},
ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"http"},
Params: params,
Reader: &FindConfigAbortOnLsaBadAllocReader{formats: a.formats},
Context: params.Context,
Client: params.HTTPClient,
})
if err != nil {
return nil, err
}
success, ok := result.(*FindConfigAbortOnLsaBadAllocOK)
if ok {
return success, nil
}
// unexpected success response
unexpectedSuccess := result.(*FindConfigAbortOnLsaBadAllocDefault)
return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code())
}
/*
FindConfigAPIAddress Http Rest API address
*/
func (a *Client) FindConfigAPIAddress(params *FindConfigAPIAddressParams) (*FindConfigAPIAddressOK, error) {
// TODO: Validate the params before sending
if params == nil {
params = NewFindConfigAPIAddressParams()
}
result, err := a.transport.Submit(&runtime.ClientOperation{
ID: "find_config_api_address",
Method: "GET",
PathPattern: "/config/api_address",
ProducesMediaTypes: []string{"application/json"},
ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"http"},
Params: params,
Reader: &FindConfigAPIAddressReader{formats: a.formats},
Context: params.Context,
Client: params.HTTPClient,
})
if err != nil {
return nil, err
}
success, ok := result.(*FindConfigAPIAddressOK)
if ok {
return success, nil
}
// unexpected success response
unexpectedSuccess := result.(*FindConfigAPIAddressDefault)
return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code())
}
/*
FindConfigAPIDocDir The API definition file directory
*/
func (a *Client) FindConfigAPIDocDir(params *FindConfigAPIDocDirParams) (*FindConfigAPIDocDirOK, error) {
// TODO: Validate the params before sending
if params == nil {
params = NewFindConfigAPIDocDirParams()
}
result, err := a.transport.Submit(&runtime.ClientOperation{
ID: "find_config_api_doc_dir",
Method: "GET",
PathPattern: "/config/api_doc_dir",
ProducesMediaTypes: []string{"application/json"},
ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"http"},
Params: params,
Reader: &FindConfigAPIDocDirReader{formats: a.formats},
Context: params.Context,
Client: params.HTTPClient,
})
if err != nil {
return nil, err
}
success, ok := result.(*FindConfigAPIDocDirOK)
if ok {
return success, nil
}
// unexpected success response
unexpectedSuccess := result.(*FindConfigAPIDocDirDefault)
return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code())
}
/*
FindConfigAPIPort Http Rest API port
*/
func (a *Client) FindConfigAPIPort(params *FindConfigAPIPortParams) (*FindConfigAPIPortOK, error) {
// TODO: Validate the params before sending
if params == nil {
params = NewFindConfigAPIPortParams()
}
result, err := a.transport.Submit(&runtime.ClientOperation{
ID: "find_config_api_port",
Method: "GET",
PathPattern: "/config/api_port",
ProducesMediaTypes: []string{"application/json"},
ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"http"},
Params: params,
Reader: &FindConfigAPIPortReader{formats: a.formats},
Context: params.Context,
Client: params.HTTPClient,
})
if err != nil {
return nil, err
}
success, ok := result.(*FindConfigAPIPortOK)
if ok {
return success, nil
}
// unexpected success response
unexpectedSuccess := result.(*FindConfigAPIPortDefault)
return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code())
}
/*
FindConfigAPIUIDir The directory location of the API GUI
*/
func (a *Client) FindConfigAPIUIDir(params *FindConfigAPIUIDirParams) (*FindConfigAPIUIDirOK, error) {
// TODO: Validate the params before sending
if params == nil {
params = NewFindConfigAPIUIDirParams()
}
result, err := a.transport.Submit(&runtime.ClientOperation{
ID: "find_config_api_ui_dir",
Method: "GET",
PathPattern: "/config/api_ui_dir",
ProducesMediaTypes: []string{"application/json"},
ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"http"},
Params: params,
Reader: &FindConfigAPIUIDirReader{formats: a.formats},
Context: params.Context,
Client: params.HTTPClient,
})
if err != nil {
return nil, err
}
success, ok := result.(*FindConfigAPIUIDirOK)
if ok {
return success, nil
}
// unexpected success response
unexpectedSuccess := result.(*FindConfigAPIUIDirDefault)
return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code())
}
/*
FindConfigAuthenticator The authentication backend, used to identify users. The available authenticators are:
org.apache.cassandra.auth.AllowAllAuthenticator : Disables authentication; no checks are performed.
org.apache.cassandra.auth.PasswordAuthenticator : Authenticates users with user names and hashed passwords stored in the system_auth.credentials table. If you use the default, 1, and the node with the lone replica goes down, you will not be able to log into the cluster because the system_auth keyspace was not replicated.
Related information: Internal authentication
*/
func (a *Client) FindConfigAuthenticator(params *FindConfigAuthenticatorParams) (*FindConfigAuthenticatorOK, error) {
// TODO: Validate the params before sending
if params == nil {
params = NewFindConfigAuthenticatorParams()
}
result, err := a.transport.Submit(&runtime.ClientOperation{
ID: "find_config_authenticator",
Method: "GET",
PathPattern: "/config/authenticator",
ProducesMediaTypes: []string{"application/json"},
ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"http"},
Params: params,
Reader: &FindConfigAuthenticatorReader{formats: a.formats},
Context: params.Context,
Client: params.HTTPClient,
})
if err != nil {
return nil, err
}
success, ok := result.(*FindConfigAuthenticatorOK)
if ok {
return success, nil
}
// unexpected success response
unexpectedSuccess := result.(*FindConfigAuthenticatorDefault)
return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code())
}
/*
FindConfigAuthorizer The authorization backend. It implements IAuthenticator, which limits access and provides permissions. The available authorizers are:
AllowAllAuthorizer : Disables authorization; allows any action to any user.
CassandraAuthorizer : Stores permissions in system_auth.permissions table. If you use the default, 1, and the node with the lone replica goes down, you will not be able to log into the cluster because the system_auth keyspace was not replicated.
Related information: Object permissions
*/
func (a *Client) FindConfigAuthorizer(params *FindConfigAuthorizerParams) (*FindConfigAuthorizerOK, error) {
// TODO: Validate the params before sending
if params == nil {
params = NewFindConfigAuthorizerParams()
}
result, err := a.transport.Submit(&runtime.ClientOperation{
ID: "find_config_authorizer",
Method: "GET",
PathPattern: "/config/authorizer",
ProducesMediaTypes: []string{"application/json"},
ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"http"},
Params: params,
Reader: &FindConfigAuthorizerReader{formats: a.formats},
Context: params.Context,
Client: params.HTTPClient,
})
if err != nil {
return nil, err
}
success, ok := result.(*FindConfigAuthorizerOK)
if ok {
return success, nil
}
// unexpected success response
unexpectedSuccess := result.(*FindConfigAuthorizerDefault)
return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code())
}
/*
FindConfigAutoAdjustFlushQuota true: auto-adjust memtable shares for flush processes
*/
func (a *Client) FindConfigAutoAdjustFlushQuota(params *FindConfigAutoAdjustFlushQuotaParams) (*FindConfigAutoAdjustFlushQuotaOK, error) {
// TODO: Validate the params before sending
if params == nil {
params = NewFindConfigAutoAdjustFlushQuotaParams()
}
result, err := a.transport.Submit(&runtime.ClientOperation{
ID: "find_config_auto_adjust_flush_quota",
Method: "GET",
PathPattern: "/config/auto_adjust_flush_quota",
ProducesMediaTypes: []string{"application/json"},
ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"http"},
Params: params,
Reader: &FindConfigAutoAdjustFlushQuotaReader{formats: a.formats},
Context: params.Context,
Client: params.HTTPClient,
})
if err != nil {
return nil, err
}
success, ok := result.(*FindConfigAutoAdjustFlushQuotaOK)
if ok {
return success, nil
}
// unexpected success response
unexpectedSuccess := result.(*FindConfigAutoAdjustFlushQuotaDefault)
return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code())
}
/*
FindConfigAutoBootstrap This setting has been removed from default configuration. It makes new (non-seed) nodes automatically migrate the right data to themselves. Do not set this to false unless you really know what you are doing.
Related information: Initializing a multiple node cluster (single data center) and Initializing a multiple node cluster (multiple data centers).
*/
func (a *Client) FindConfigAutoBootstrap(params *FindConfigAutoBootstrapParams) (*FindConfigAutoBootstrapOK, error) {
// TODO: Validate the params before sending
if params == nil {
params = NewFindConfigAutoBootstrapParams()
}
result, err := a.transport.Submit(&runtime.ClientOperation{
ID: "find_config_auto_bootstrap",
Method: "GET",
PathPattern: "/config/auto_bootstrap",
ProducesMediaTypes: []string{"application/json"},
ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"http"},
Params: params,
Reader: &FindConfigAutoBootstrapReader{formats: a.formats},
Context: params.Context,
Client: params.HTTPClient,
})
if err != nil {
return nil, err
}
success, ok := result.(*FindConfigAutoBootstrapOK)
if ok {
return success, nil
}
// unexpected success response
unexpectedSuccess := result.(*FindConfigAutoBootstrapDefault)
return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code())
}
/*
FindConfigAutoSnapshot Enable or disable whether a snapshot is taken of the data before keyspace truncation or dropping of tables. To prevent data loss, using the default setting is strongly advised. If you set to false, you will lose data on truncation or drop.
*/
func (a *Client) FindConfigAutoSnapshot(params *FindConfigAutoSnapshotParams) (*FindConfigAutoSnapshotOK, error) {
// TODO: Validate the params before sending
if params == nil {
params = NewFindConfigAutoSnapshotParams()
}
result, err := a.transport.Submit(&runtime.ClientOperation{
ID: "find_config_auto_snapshot",
Method: "GET",
PathPattern: "/config/auto_snapshot",
ProducesMediaTypes: []string{"application/json"},
ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"http"},
Params: params,
Reader: &FindConfigAutoSnapshotReader{formats: a.formats},
Context: params.Context,
Client: params.HTTPClient,
})
if err != nil {
return nil, err
}
success, ok := result.(*FindConfigAutoSnapshotOK)
if ok {
return success, nil
}
// unexpected success response
unexpectedSuccess := result.(*FindConfigAutoSnapshotDefault)
return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code())
}
/*
FindConfigBackgroundWriterSchedulingQuota max cpu usage ratio (between 0 and 1) for compaction process. Not intended for setting in normal operations. Setting it to 1 or higher will disable it, recommended operational setting is 0.5.
*/
func (a *Client) FindConfigBackgroundWriterSchedulingQuota(params *FindConfigBackgroundWriterSchedulingQuotaParams) (*FindConfigBackgroundWriterSchedulingQuotaOK, error) {
// TODO: Validate the params before sending
if params == nil {
params = NewFindConfigBackgroundWriterSchedulingQuotaParams()
}
result, err := a.transport.Submit(&runtime.ClientOperation{
ID: "find_config_background_writer_scheduling_quota",
Method: "GET",
PathPattern: "/config/background_writer_scheduling_quota",
ProducesMediaTypes: []string{"application/json"},
ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"http"},
Params: params,
Reader: &FindConfigBackgroundWriterSchedulingQuotaReader{formats: a.formats},
Context: params.Context,
Client: params.HTTPClient,
})
if err != nil {
return nil, err
}
success, ok := result.(*FindConfigBackgroundWriterSchedulingQuotaOK)
if ok {
return success, nil
}
// unexpected success response
unexpectedSuccess := result.(*FindConfigBackgroundWriterSchedulingQuotaDefault)
return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code())
}
/*
FindConfigBatchSizeFailThresholdInKb Fail any multiple-partition batch exceeding this value. 50kb (10x warn threshold) by default.
*/
func (a *Client) FindConfigBatchSizeFailThresholdInKb(params *FindConfigBatchSizeFailThresholdInKbParams) (*FindConfigBatchSizeFailThresholdInKbOK, error) {
// TODO: Validate the params before sending
if params == nil {
params = NewFindConfigBatchSizeFailThresholdInKbParams()
}
result, err := a.transport.Submit(&runtime.ClientOperation{
ID: "find_config_batch_size_fail_threshold_in_kb",
Method: "GET",
PathPattern: "/config/batch_size_fail_threshold_in_kb",
ProducesMediaTypes: []string{"application/json"},
ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"http"},
Params: params,
Reader: &FindConfigBatchSizeFailThresholdInKbReader{formats: a.formats},
Context: params.Context,
Client: params.HTTPClient,
})
if err != nil {
return nil, err
}
success, ok := result.(*FindConfigBatchSizeFailThresholdInKbOK)
if ok {
return success, nil
}
// unexpected success response
unexpectedSuccess := result.(*FindConfigBatchSizeFailThresholdInKbDefault)
return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code())
}
/*
FindConfigBatchSizeWarnThresholdInKb Log WARN on any batch size exceeding this value in kilobytes. Caution should be taken on increasing the size of this threshold as it can lead to node instability.
*/
func (a *Client) FindConfigBatchSizeWarnThresholdInKb(params *FindConfigBatchSizeWarnThresholdInKbParams) (*FindConfigBatchSizeWarnThresholdInKbOK, error) {
// TODO: Validate the params before sending
if params == nil {
params = NewFindConfigBatchSizeWarnThresholdInKbParams()
}
result, err := a.transport.Submit(&runtime.ClientOperation{
ID: "find_config_batch_size_warn_threshold_in_kb",
Method: "GET",
PathPattern: "/config/batch_size_warn_threshold_in_kb",
ProducesMediaTypes: []string{"application/json"},
ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"http"},
Params: params,
Reader: &FindConfigBatchSizeWarnThresholdInKbReader{formats: a.formats},
Context: params.Context,
Client: params.HTTPClient,
})
if err != nil {
return nil, err
}
success, ok := result.(*FindConfigBatchSizeWarnThresholdInKbOK)
if ok {
return success, nil
}
// unexpected success response
unexpectedSuccess := result.(*FindConfigBatchSizeWarnThresholdInKbDefault)
return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code())
}
/*
FindConfigBatchlogReplayThrottleInKb Total maximum throttle. Throttling is reduced proportionally to the number of nodes in the cluster.
*/
func (a *Client) FindConfigBatchlogReplayThrottleInKb(params *FindConfigBatchlogReplayThrottleInKbParams) (*FindConfigBatchlogReplayThrottleInKbOK, error) {
// TODO: Validate the params before sending
if params == nil {
params = NewFindConfigBatchlogReplayThrottleInKbParams()
}
result, err := a.transport.Submit(&runtime.ClientOperation{
ID: "find_config_batchlog_replay_throttle_in_kb",
Method: "GET",
PathPattern: "/config/batchlog_replay_throttle_in_kb",
ProducesMediaTypes: []string{"application/json"},
ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"http"},
Params: params,
Reader: &FindConfigBatchlogReplayThrottleInKbReader{formats: a.formats},
Context: params.Context,
Client: params.HTTPClient,
})
if err != nil {
return nil, err
}
success, ok := result.(*FindConfigBatchlogReplayThrottleInKbOK)
if ok {
return success, nil
}
// unexpected success response
unexpectedSuccess := result.(*FindConfigBatchlogReplayThrottleInKbDefault)
return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code())
}
/*
FindConfigBroadcastAddress The IP address a node tells other nodes in the cluster to contact it by. It allows public and private address to be different. For example, use the broadcast_address parameter in topologies where not all nodes have access to other nodes by their private IP addresses.
If your Scylla cluster is deployed across multiple Amazon EC2 regions and you use the EC2MultiRegionSnitch , set the broadcast_address to public IP address of the node and the listen_address to the private IP.
*/
func (a *Client) FindConfigBroadcastAddress(params *FindConfigBroadcastAddressParams) (*FindConfigBroadcastAddressOK, error) {
// TODO: Validate the params before sending
if params == nil {
params = NewFindConfigBroadcastAddressParams()
}
result, err := a.transport.Submit(&runtime.ClientOperation{
ID: "find_config_broadcast_address",
Method: "GET",
PathPattern: "/config/broadcast_address",
ProducesMediaTypes: []string{"application/json"},
ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"http"},
Params: params,
Reader: &FindConfigBroadcastAddressReader{formats: a.formats},
Context: params.Context,
Client: params.HTTPClient,
})
if err != nil {
return nil, err
}
success, ok := result.(*FindConfigBroadcastAddressOK)
if ok {
return success, nil
}
// unexpected success response
unexpectedSuccess := result.(*FindConfigBroadcastAddressDefault)
return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code())
}
/*
FindConfigBroadcastRPCAddress RPC address to broadcast to drivers and other Scylla nodes. This cannot be set to 0.0.0.0. If blank, it is set to the value of the rpc_address or rpc_interface. If rpc_address or rpc_interfaceis set to 0.0.0.0, this property must be set.
*/
func (a *Client) FindConfigBroadcastRPCAddress(params *FindConfigBroadcastRPCAddressParams) (*FindConfigBroadcastRPCAddressOK, error) {
// TODO: Validate the params before sending
if params == nil {
params = NewFindConfigBroadcastRPCAddressParams()
}
result, err := a.transport.Submit(&runtime.ClientOperation{
ID: "find_config_broadcast_rpc_address",
Method: "GET",
PathPattern: "/config/broadcast_rpc_address",
ProducesMediaTypes: []string{"application/json"},
ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"http"},
Params: params,
Reader: &FindConfigBroadcastRPCAddressReader{formats: a.formats},
Context: params.Context,
Client: params.HTTPClient,
})
if err != nil {
return nil, err
}
success, ok := result.(*FindConfigBroadcastRPCAddressOK)
if ok {
return success, nil
}
// unexpected success response
unexpectedSuccess := result.(*FindConfigBroadcastRPCAddressDefault)
return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code())
}
/*
FindConfigCacheHitRateReadBalancing This boolean controls whether the replicas for read query will be choosen based on cache hit ratio
*/
func (a *Client) FindConfigCacheHitRateReadBalancing(params *FindConfigCacheHitRateReadBalancingParams) (*FindConfigCacheHitRateReadBalancingOK, error) {
// TODO: Validate the params before sending
if params == nil {
params = NewFindConfigCacheHitRateReadBalancingParams()
}
result, err := a.transport.Submit(&runtime.ClientOperation{
ID: "find_config_cache_hit_rate_read_balancing",
Method: "GET",
PathPattern: "/config/cache_hit_rate_read_balancing",
ProducesMediaTypes: []string{"application/json"},
ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"http"},
Params: params,
Reader: &FindConfigCacheHitRateReadBalancingReader{formats: a.formats},
Context: params.Context,
Client: params.HTTPClient,
})
if err != nil {
return nil, err
}
success, ok := result.(*FindConfigCacheHitRateReadBalancingOK)
if ok {
return success, nil
}
// unexpected success response
unexpectedSuccess := result.(*FindConfigCacheHitRateReadBalancingDefault)
return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code())
}
/*
FindConfigCasContentionTimeoutInMs The time that the coordinator continues to retry a CAS (compare and set) operation that contends with other proposals for the same row.
*/
func (a *Client) FindConfigCasContentionTimeoutInMs(params *FindConfigCasContentionTimeoutInMsParams) (*FindConfigCasContentionTimeoutInMsOK, error) {
// TODO: Validate the params before sending
if params == nil {
params = NewFindConfigCasContentionTimeoutInMsParams()
}
result, err := a.transport.Submit(&runtime.ClientOperation{
ID: "find_config_cas_contention_timeout_in_ms",
Method: "GET",
PathPattern: "/config/cas_contention_timeout_in_ms",
ProducesMediaTypes: []string{"application/json"},
ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"http"},
Params: params,
Reader: &FindConfigCasContentionTimeoutInMsReader{formats: a.formats},
Context: params.Context,
Client: params.HTTPClient,
})
if err != nil {
return nil, err
}
success, ok := result.(*FindConfigCasContentionTimeoutInMsOK)
if ok {
return success, nil
}
// unexpected success response
unexpectedSuccess := result.(*FindConfigCasContentionTimeoutInMsDefault)
return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code())
}
/*
FindConfigClientEncryptionOptions Enable or disable client-to-node encryption. You must also generate keys and provide the appropriate key and certificate. No custom encryption options are currently enabled. The available options are:
enabled : (Default: false ) To enable, set to true.
certificate: (Default: conf/scylla.crt) The location of a PEM-encoded x509 certificate used to identify and encrypt the client/server communication.
keyfile: (Default: conf/scylla.key) PEM Key file associated with certificate.
truststore : (Default: <system truststore> ) Location of the truststore containing the trusted certificate for authenticating remote servers.
The advanced settings are:
priority_string : GnuTLS priority string controlling TLS algorithms used/allowed.
require_client_auth : (Default: false ) Enables or disables certificate authentication.
Related information: Client-to-node encryption
*/
func (a *Client) FindConfigClientEncryptionOptions(params *FindConfigClientEncryptionOptionsParams) (*FindConfigClientEncryptionOptionsOK, error) {
// TODO: Validate the params before sending
if params == nil {
params = NewFindConfigClientEncryptionOptionsParams()
}
result, err := a.transport.Submit(&runtime.ClientOperation{
ID: "find_config_client_encryption_options",
Method: "GET",
PathPattern: "/config/client_encryption_options",
ProducesMediaTypes: []string{"application/json"},
ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"http"},
Params: params,
Reader: &FindConfigClientEncryptionOptionsReader{formats: a.formats},
Context: params.Context,
Client: params.HTTPClient,
})
if err != nil {
return nil, err
}
success, ok := result.(*FindConfigClientEncryptionOptionsOK)
if ok {
return success, nil
}
// unexpected success response
unexpectedSuccess := result.(*FindConfigClientEncryptionOptionsDefault)
return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code())
}
/*
FindConfigClusterName The name of the cluster; used to prevent machines in one logical cluster from joining another. All nodes participating in a cluster must have the same value.
*/
func (a *Client) FindConfigClusterName(params *FindConfigClusterNameParams) (*FindConfigClusterNameOK, error) {
// TODO: Validate the params before sending
if params == nil {
params = NewFindConfigClusterNameParams()
}
result, err := a.transport.Submit(&runtime.ClientOperation{
ID: "find_config_cluster_name",
Method: "GET",
PathPattern: "/config/cluster_name",
ProducesMediaTypes: []string{"application/json"},
ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"http"},
Params: params,
Reader: &FindConfigClusterNameReader{formats: a.formats},
Context: params.Context,
Client: params.HTTPClient,
})
if err != nil {
return nil, err
}
success, ok := result.(*FindConfigClusterNameOK)
if ok {
return success, nil
}
// unexpected success response
unexpectedSuccess := result.(*FindConfigClusterNameDefault)
return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code())
}
/*
FindConfigColumnIndexSizeInKb Granularity of the index of rows within a partition. For huge rows, decrease this setting to improve seek time. If you use key cache, be careful not to make this setting too large because key cache will be overwhelmed. If you're unsure of the size of the rows, it's best to use the default setting.
*/
func (a *Client) FindConfigColumnIndexSizeInKb(params *FindConfigColumnIndexSizeInKbParams) (*FindConfigColumnIndexSizeInKbOK, error) {
// TODO: Validate the params before sending
if params == nil {
params = NewFindConfigColumnIndexSizeInKbParams()
}
result, err := a.transport.Submit(&runtime.ClientOperation{
ID: "find_config_column_index_size_in_kb",
Method: "GET",
PathPattern: "/config/column_index_size_in_kb",
ProducesMediaTypes: []string{"application/json"},
ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"http"},
Params: params,
Reader: &FindConfigColumnIndexSizeInKbReader{formats: a.formats},
Context: params.Context,
Client: params.HTTPClient,
})
if err != nil {
return nil, err
}
success, ok := result.(*FindConfigColumnIndexSizeInKbOK)
if ok {
return success, nil
}
// unexpected success response
unexpectedSuccess := result.(*FindConfigColumnIndexSizeInKbDefault)
return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code())
}
/*
FindConfigCommitFailurePolicy Policy for commit disk failures:
die Shut down gossip and Thrift and kill the JVM, so the node can be replaced.
stop Shut down gossip and Thrift, leaving the node effectively dead, but can be inspected using JMX.
stop_commit Shut down the commit log, letting writes collect but continuing to service reads (as in pre-2.0.5 Cassandra).
ignore Ignore fatal errors and let the batches fail.
*/
func (a *Client) FindConfigCommitFailurePolicy(params *FindConfigCommitFailurePolicyParams) (*FindConfigCommitFailurePolicyOK, error) {
// TODO: Validate the params before sending
if params == nil {
params = NewFindConfigCommitFailurePolicyParams()
}
result, err := a.transport.Submit(&runtime.ClientOperation{
ID: "find_config_commit_failure_policy",
Method: "GET",
PathPattern: "/config/commit_failure_policy",
ProducesMediaTypes: []string{"application/json"},
ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"http"},
Params: params,
Reader: &FindConfigCommitFailurePolicyReader{formats: a.formats},
Context: params.Context,
Client: params.HTTPClient,
})
if err != nil {
return nil, err
}
success, ok := result.(*FindConfigCommitFailurePolicyOK)
if ok {
return success, nil
}
// unexpected success response
unexpectedSuccess := result.(*FindConfigCommitFailurePolicyDefault)
return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code())
}
/*
FindConfigCommitlogDirectory The directory where the commit log is stored. For optimal write performance, it is recommended the commit log be on a separate disk partition (ideally, a separate physical device) from the data file directories.
*/
func (a *Client) FindConfigCommitlogDirectory(params *FindConfigCommitlogDirectoryParams) (*FindConfigCommitlogDirectoryOK, error) {
// TODO: Validate the params before sending
if params == nil {
params = NewFindConfigCommitlogDirectoryParams()
}
result, err := a.transport.Submit(&runtime.ClientOperation{
ID: "find_config_commitlog_directory",
Method: "GET",
PathPattern: "/config/commitlog_directory",
ProducesMediaTypes: []string{"application/json"},
ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"http"},
Params: params,
Reader: &FindConfigCommitlogDirectoryReader{formats: a.formats},
Context: params.Context,
Client: params.HTTPClient,
})
if err != nil {
return nil, err
}
success, ok := result.(*FindConfigCommitlogDirectoryOK)
if ok {
return success, nil
}
// unexpected success response
unexpectedSuccess := result.(*FindConfigCommitlogDirectoryDefault)
return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code())
}
/*
FindConfigCommitlogReuseSegments Whether or not to re-use commitlog segments when finished instead of deleting them. Can improve commitlog latency on some file systems.
*/
func (a *Client) FindConfigCommitlogReuseSegments(params *FindConfigCommitlogReuseSegmentsParams) (*FindConfigCommitlogReuseSegmentsOK, error) {
// TODO: Validate the params before sending
if params == nil {
params = NewFindConfigCommitlogReuseSegmentsParams()
}
result, err := a.transport.Submit(&runtime.ClientOperation{
ID: "find_config_commitlog_reuse_segments",
Method: "GET",
PathPattern: "/config/commitlog_reuse_segments",
ProducesMediaTypes: []string{"application/json"},
ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"http"},
Params: params,
Reader: &FindConfigCommitlogReuseSegmentsReader{formats: a.formats},
Context: params.Context,
Client: params.HTTPClient,
})
if err != nil {
return nil, err
}
success, ok := result.(*FindConfigCommitlogReuseSegmentsOK)
if ok {
return success, nil
}
// unexpected success response
unexpectedSuccess := result.(*FindConfigCommitlogReuseSegmentsDefault)
return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code())
}
/*
FindConfigCommitlogSegmentSizeInMb Sets the size of the individual commitlog file segments. A commitlog segment may be archived, deleted, or recycled after all its data has been flushed to SSTables. This amount of data can potentially include commitlog segments from every table in the system. The default size is usually suitable for most commitlog archiving, but if you want a finer granularity, 8 or 16 MB is reasonable. See Commit log archive configuration.
Related information: Commit log archive configuration
*/
func (a *Client) FindConfigCommitlogSegmentSizeInMb(params *FindConfigCommitlogSegmentSizeInMbParams) (*FindConfigCommitlogSegmentSizeInMbOK, error) {
// TODO: Validate the params before sending
if params == nil {
params = NewFindConfigCommitlogSegmentSizeInMbParams()
}
result, err := a.transport.Submit(&runtime.ClientOperation{
ID: "find_config_commitlog_segment_size_in_mb",
Method: "GET",
PathPattern: "/config/commitlog_segment_size_in_mb",
ProducesMediaTypes: []string{"application/json"},
ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"http"},
Params: params,
Reader: &FindConfigCommitlogSegmentSizeInMbReader{formats: a.formats},
Context: params.Context,
Client: params.HTTPClient,
})
if err != nil {
return nil, err
}
success, ok := result.(*FindConfigCommitlogSegmentSizeInMbOK)
if ok {
return success, nil
}
// unexpected success response
unexpectedSuccess := result.(*FindConfigCommitlogSegmentSizeInMbDefault)
return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code())
}
/*
FindConfigCommitlogSync The method that Scylla uses to acknowledge writes in milliseconds:
periodic : Used with commitlog_sync_period_in_ms (Default: 10000 - 10 seconds ) to control how often the commit log is synchronized to disk. Periodic syncs are acknowledged immediately.
batch : Used with commitlog_sync_batch_window_in_ms (Default: disabled **) to control how long Scylla waits for other writes before performing a sync. When using this method, writes are not acknowledged until fsynced to disk.
Related information: Durability
*/
func (a *Client) FindConfigCommitlogSync(params *FindConfigCommitlogSyncParams) (*FindConfigCommitlogSyncOK, error) {
// TODO: Validate the params before sending
if params == nil {
params = NewFindConfigCommitlogSyncParams()
}
result, err := a.transport.Submit(&runtime.ClientOperation{
ID: "find_config_commitlog_sync",
Method: "GET",
PathPattern: "/config/commitlog_sync",
ProducesMediaTypes: []string{"application/json"},
ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"http"},
Params: params,
Reader: &FindConfigCommitlogSyncReader{formats: a.formats},
Context: params.Context,
Client: params.HTTPClient,
})
if err != nil {
return nil, err
}
success, ok := result.(*FindConfigCommitlogSyncOK)
if ok {
return success, nil
}
// unexpected success response
unexpectedSuccess := result.(*FindConfigCommitlogSyncDefault)
return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code())
}
/*
FindConfigCommitlogSyncBatchWindowInMs Controls how long the system waits for other writes before performing a sync in ''batch'' mode.
*/
func (a *Client) FindConfigCommitlogSyncBatchWindowInMs(params *FindConfigCommitlogSyncBatchWindowInMsParams) (*FindConfigCommitlogSyncBatchWindowInMsOK, error) {
// TODO: Validate the params before sending
if params == nil {
params = NewFindConfigCommitlogSyncBatchWindowInMsParams()
}
result, err := a.transport.Submit(&runtime.ClientOperation{
ID: "find_config_commitlog_sync_batch_window_in_ms",
Method: "GET",
PathPattern: "/config/commitlog_sync_batch_window_in_ms",
ProducesMediaTypes: []string{"application/json"},
ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"http"},
Params: params,
Reader: &FindConfigCommitlogSyncBatchWindowInMsReader{formats: a.formats},
Context: params.Context,
Client: params.HTTPClient,
})
if err != nil {
return nil, err
}
success, ok := result.(*FindConfigCommitlogSyncBatchWindowInMsOK)
if ok {
return success, nil
}
// unexpected success response
unexpectedSuccess := result.(*FindConfigCommitlogSyncBatchWindowInMsDefault)
return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code())
}
/*
FindConfigCommitlogSyncPeriodInMs Controls how long the system waits for other writes before performing a sync in ''periodic'' mode.
*/
func (a *Client) FindConfigCommitlogSyncPeriodInMs(params *FindConfigCommitlogSyncPeriodInMsParams) (*FindConfigCommitlogSyncPeriodInMsOK, error) {
// TODO: Validate the params before sending
if params == nil {
params = NewFindConfigCommitlogSyncPeriodInMsParams()
}
result, err := a.transport.Submit(&runtime.ClientOperation{
ID: "find_config_commitlog_sync_period_in_ms",
Method: "GET",
PathPattern: "/config/commitlog_sync_period_in_ms",
ProducesMediaTypes: []string{"application/json"},
ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"http"},
Params: params,
Reader: &FindConfigCommitlogSyncPeriodInMsReader{formats: a.formats},
Context: params.Context,
Client: params.HTTPClient,
})
if err != nil {
return nil, err
}
success, ok := result.(*FindConfigCommitlogSyncPeriodInMsOK)
if ok {
return success, nil
}
// unexpected success response
unexpectedSuccess := result.(*FindConfigCommitlogSyncPeriodInMsDefault)
return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code())
}
/*
FindConfigCommitlogTotalSpaceInMb Total space used for commitlogs. If the used space goes above this value, Scylla rounds up to the next nearest segment multiple and flushes memtables to disk for the oldest commitlog segments, removing those log segments. This reduces the amount of data to replay on startup, and prevents infrequently-updated tables from indefinitely keeping commitlog segments. A small total commitlog space tends to cause more flush activity on less-active tables.
Related information: Configuring memtable throughput
*/
func (a *Client) FindConfigCommitlogTotalSpaceInMb(params *FindConfigCommitlogTotalSpaceInMbParams) (*FindConfigCommitlogTotalSpaceInMbOK, error) {
// TODO: Validate the params before sending
if params == nil {
params = NewFindConfigCommitlogTotalSpaceInMbParams()
}
result, err := a.transport.Submit(&runtime.ClientOperation{
ID: "find_config_commitlog_total_space_in_mb",
Method: "GET",
PathPattern: "/config/commitlog_total_space_in_mb",
ProducesMediaTypes: []string{"application/json"},
ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"http"},