-
Notifications
You must be signed in to change notification settings - Fork 803
/
Copy pathcouchbase.php
4134 lines (3460 loc) · 114 KB
/
couchbase.php
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
<?php
/**
* Couchbase extension stubs
* Gathered from https://docs.couchbase.com/sdk-api/couchbase-php-client-3.2.2/index.html
* Maintainer: sergey@couchbase.com
*
* https://github.com/couchbase/php-couchbase/tree/master/api
*/
/**
* INI entries:
*
* * `couchbase.log_level` (string), default: `"WARN"`
*
* controls amount of information, the module will send to PHP error log. Accepts the following values in order of
* increasing verbosity: `"FATAL"`, `"ERROR"`, `"WARN"`, `"INFO"`, `"DEBUG"`, `"TRACE"`.
*
* * `couchbase.encoder.format` (string), default: `"json"`
*
* selects serialization format for default encoder (\Couchbase\defaultEncoder). Accepts the following values:
* * `"json"` - encodes objects and arrays as JSON object (using `json_encode()`), primitives written in stringified form,
* which is allowed for most of the JSON parsers as valid values. For empty arrays JSON array preferred, if it is
* necessary, use `new stdClass()` to persist empty JSON object. Note, that only JSON format considered supported by
* all Couchbase SDKs, everything else is private implementation (i.e. `"php"` format won't be readable by .NET SDK).
* * `"php"` - uses PHP serialize() method to encode the document.
*
* * `couchbase.encoder.compression` (string), default: `"none"`
*
* selects compression algorithm. Also see related compression options below. Accepts the following values:
* * `"fastlz"` - uses FastLZ algorithm. The module might be configured to use system fastlz library during build,
* othewise vendored version will be used. This algorithm is always available.
* * `"zlib"` - uses compression implemented by libz. Might not be available, if the system didn't have libz headers
* during build phase. In this case \Couchbase\HAVE_ZLIB will be false.
* * `"off"` or `"none"` - compression will be disabled, but the library will still read compressed values.
*
* * `couchbase.encoder.compression_threshold` (int), default: `0`
*
* controls minimum size of the document value in bytes to use compression. For example, if threshold 100 bytes,
* and the document size is 50, compression will be disabled for this particular document.
*
* * `couchbase.encoder.compression_factor` (float), default: `0.0`
*
* controls the minimum ratio of the result value and original document value to proceed with persisting compressed
* bytes. For example, the original document consists of 100 bytes. In this case factor 1.0 will require compressor
* to yield values not larger than 100 bytes (100/1.0), and 1.5 -- not larger than 66 bytes (100/1.5).
*
* * `couchbase.decoder.json_arrays` (boolean), default: `true`
*
* controls the form of the documents, returned by the server if they were in JSON format. When true, it will generate
* arrays of arrays, otherwise instances of stdClass.
*
* * `couchbase.pool.max_idle_time_sec` (int), default: `60`
*
* controls the maximum interval the underlying connection object could be idle, i.e. without any data/query
* operations. All connections which idle more than this interval will be closed automatically. Cleanup function
* executed after each request using RSHUTDOWN hook.
*
* * `couchbase.allow_fallback_to_bucket_connection` (boolean), default: `false`
*
* allows the library to switch to bucket connection when the connection string includes bucket name. It is useful
* when the application connects to older Couchbase Server, that does not have G3CP feature.
*
* @package Couchbase
*/
namespace Couchbase;
use JsonSerializable;
use Exception;
use Throwable;
use DateTimeInterface;
/**
* An object which contains meta information of the document needed to enforce query consistency.
*/
interface MutationToken
{
/**
* Returns bucket name
*
* @return string
*/
public function bucketName();
/**
* Returns partition number
*
* @return int
*/
public function partitionId();
/**
* Returns UUID of the partition
*
* @return string
*/
public function partitionUuid();
/**
* Returns the sequence number inside partition
*
* @return string
*/
public function sequenceNumber();
}
/**
* Interface for retrieving metadata such as errors and metrics generated during N1QL queries.
*/
interface QueryMetaData
{
/**
* Returns the query execution status
*
* @return string|null
*/
public function status(): ?string;
/**
* Returns the identifier associated with the query
*
* @return string|null
*/
public function requestId(): ?string;
/**
* Returns the client context id associated with the query
*
* @return string|null
*/
public function clientContextId(): ?string;
/**
* Returns the signature of the query
*
* @return array|null
*/
public function signature(): ?array;
/**
* Returns any warnings generated during query execution
*
* @return array|null
*/
public function warnings(): ?array;
/**
* Returns any errors generated during query execution
*
* @return array|null
*/
public function errors(): ?array;
/**
* Returns metrics generated during query execution such as timings and counts
*
* @return array|null
*/
public function metrics(): ?array;
/**
* Returns the profile of the query if enabled
*
* @return array|null
*/
public function profile(): ?array;
}
/**
* Interface for retrieving metadata such as error counts and metrics generated during search queries.
*/
interface SearchMetaData
{
/**
* Returns the number of pindexes successfully queried
*
* @return int|null
*/
public function successCount(): ?int;
/**
* Returns the number of errors messages reported by individual pindexes
*
* @return int|null
*/
public function errorCount(): ?int;
/**
* Returns the time taken to complete the query
*
* @return int|null
*/
public function took(): ?int;
/**
* Returns the total number of matches for this result
*
* @return int|null
*/
public function totalHits(): ?int;
/**
* Returns the highest score of all documents for this search query.
*
* @return float|null
*/
public function maxScore(): ?float;
/**
* Returns the metrics generated during execution of this search query.
*
* @return array|null
*/
public function metrics(): ?array;
}
/**
* Interface for retrieving metadata generated during view queries.
*/
interface ViewMetaData
{
/**
* Returns the total number of rows returned by this view query
*
* @return int|null
*/
public function totalRows(): ?int;
/**
* Returns debug information for this view query if enabled
*
* @return array|null
*/
public function debug(): ?array;
}
/**
* Base interface for all results generated by KV operations.
*/
interface Result
{
/**
* Returns the CAS value for the document
*
* @return string|null
*/
public function cas(): ?string;
}
/**
* Interface for results created by the get operation.
*/
interface GetResult extends Result
{
/**
* Returns the content of the document fetched
*
* @return array|null
*/
public function content(): ?array;
/**
* Returns the document expiration time or null if the document does not expire.
*
* Note, that this function will return expiry only when GetOptions had withExpiry set to true.
*
* @return DateTimeInterface|null
*/
public function expiryTime(): ?DateTimeInterface;
}
/**
* Interface for results created by the getReplica operation.
*/
interface GetReplicaResult extends Result
{
/**
* Returns the content of the document fetched
*
* @return array|null
*/
public function content(): ?array;
/**
* Returns whether or not the document came from a replica server
*
* @return bool
*/
public function isReplica(): bool;
}
/**
* Interface for results created by the exists operation.
*/
interface ExistsResult extends Result
{
/**
* Returns whether or not the document exists
*
* @return bool
*/
public function exists(): bool;
}
/**
* Interface for results created by operations that perform mutations.
*/
interface MutationResult extends Result
{
/**
* Returns the mutation token generated during the mutation
*
* @return MutationToken|null
*/
public function mutationToken(): ?MutationToken;
}
/**
* Interface for results created by the counter operation.
*/
interface CounterResult extends MutationResult
{
/**
* Returns the new value of the counter
*
* @return int
*/
public function content(): int;
}
/**
* Interface for results created by the lookupIn operation.
*/
interface LookupInResult extends Result
{
/**
* Returns the value located at the index specified
*
* @param int $index the index to retrieve content from
* @return object|null
*/
public function content(int $index): ?object;
/**
* Returns whether or not the path at the index specified exists
*
* @param int $index the index to check for existence
* @return bool
*/
public function exists(int $index): bool;
/**
* Returns any error code for the path at the index specified
*
* @param int $index the index to retrieve the error code for
* @return int
*/
public function status(int $index): int;
/**
* Returns the document expiration time or null if the document does not expire.
*
* Note, that this function will return expiry only when LookupInOptions had withExpiry set to true.
*
* @return DateTimeInterface|null
*/
public function expiryTime(): ?DateTimeInterface;
}
/**
* Interface for results created by the mutateIn operation.
*/
interface MutateInResult extends MutationResult
{
/**
* Returns any value located at the index specified
*
* @param int $index the index to retrieve content from
* @return array|null
*/
public function content(int $index): ?array;
}
/**
* Interface for retrieving results from N1QL queries.
*/
interface QueryResult
{
/**
* Returns metadata generated during query execution such as errors and metrics
*
* @return QueryMetaData|null
*/
public function metaData(): ?QueryMetaData;
/**
* Returns the rows returns during query execution
*
* @return array|null
*/
public function rows(): ?array;
}
/**
* Interface for retrieving results from analytics queries.
*/
interface AnalyticsResult
{
/**
* Returns metadata generated during query execution
*
* @return QueryMetaData|null
*/
public function metaData(): ?QueryMetaData;
/**
* Returns the rows returned during query execution
*
* @return array|null
*/
public function rows(): ?array;
}
/**
* A range (or bucket) for a term search facet result.
* Counts the number of occurrences of a given term.
*/
interface TermFacetResult
{
/**
* @return string
*/
public function term(): string;
/**
* @return int
*/
public function count(): int;
}
/**
* A range (or bucket) for a numeric range facet result. Counts the number of matches
* that fall into the named range (which can overlap with other user-defined ranges).
*/
interface NumericRangeFacetResult
{
/**
* @return string
*/
public function name(): string;
/**
* @return int|float|null
*/
public function min();
/**
* @return int|float|null
*/
public function max();
/**
* @return int
*/
public function count(): int;
}
/**
* A range (or bucket) for a date range facet result. Counts the number of matches
* that fall into the named range (which can overlap with other user-defined ranges).
*/
interface DateRangeFacetResult
{
/**
* @return string
*/
public function name(): string;
/**
* @return string|null
*/
public function start(): ?string;
/**
* @return string|null
*/
public function end(): ?string;
/**
* @return int
*/
public function count(): int;
}
/**
* Interface representing facet results.
*
* Only one method might return non-null value among terms(), numericRanges() and dateRanges().
*/
interface SearchFacetResult
{
/**
* The field the SearchFacet was targeting.
*
* @return string
*/
public function field(): string;
/**
* The total number of *valued* facet results. Total = other() + terms (but doesn't include * missing()).
*
* @return int
*/
public function total(): int;
/**
* The number of results that couldn't be faceted, missing the adequate value. Not matter how many more
* buckets are added to the original facet, these result won't ever be included in one.
*
* @return int
*/
public function missing(): int;
/**
* The number of results that could have been faceted (because they have a value for the facet's field) but
* weren't, due to not having a bucket in which they belong. Adding a bucket can result in these results being
* faceted.
*
* @return int
*/
public function other(): int;
/**
* @return array of pairs string name to TermFacetResult
*/
public function terms(): ?array;
/**
* @return array of pairs string name to NumericRangeFacetResult
*/
public function numericRanges(): ?array;
/**
* @return array of pairs string name to DateRangeFacetResult
*/
public function dateRanges(): ?array;
}
/**
* Interface for retrieving results from search queries.
*/
interface SearchResult
{
/**
* Returns metadata generated during query execution
*
* @return SearchMetaData|null
*/
public function metaData(): ?SearchMetaData;
/**
* Returns any facets returned by the query
*
* Array contains instances of SearchFacetResult
* @return array|null
*/
public function facets(): ?array;
/**
* Returns any rows returned by the query
*
* @return array|null
*/
public function rows(): ?array;
}
/**
* Interface for retrieving results from view queries.
*/
interface ViewResult
{
/**
* Returns metadata generated during query execution
*
* @return ViewMetaData|null
*/
public function metaData(): ?ViewMetaData;
/**
* Returns any rows returned by the query
*
* @return array|null
*/
public function rows(): ?array;
}
/**
* Object for accessing a row returned as a part of the results from a viery query.
*/
class ViewRow
{
/**
* Returns the id of the row
*
* @return string|null
*/
public function id(): ?string {}
/**
* Returns the key of the document
*/
public function key() {}
/**
* Returns the value of the row
*/
public function value() {}
/**
* Returns the corresponding document for the row, if enabled
*/
public function document() {}
}
/**
* Base exception for exceptions that are thrown originating from Couchbase operations.
*/
class BaseException extends Exception implements Throwable
{
/**
* Returns the underling reference string, if any
*
* @return string|null
*/
public function ref(): ?string {}
/**
* Returns the underling error context, if any
*
* @return object|null
*/
public function context(): ?object {}
}
class RequestCanceledException extends BaseException implements Throwable {}
class RateLimitedException extends BaseException implements Throwable {}
class QuotaLimitedException extends BaseException implements Throwable {}
/**
* Thrown for exceptions that originate from underlying Http operations.
*/
class HttpException extends BaseException implements Throwable {}
class ParsingFailureException extends HttpException implements Throwable {}
class IndexNotFoundException extends HttpException implements Throwable {}
class PlanningFailureException extends HttpException implements Throwable {}
class IndexFailureException extends HttpException implements Throwable {}
class KeyspaceNotFoundException extends HttpException implements Throwable {}
/**
* Thrown for exceptions that originate from query operations.
*/
class QueryException extends HttpException implements Throwable {}
/**
* Thrown for exceptions that originate from query operations.
*/
class QueryErrorException extends QueryException implements Throwable {}
class DmlFailureException extends QueryException implements Throwable {}
class PreparedStatementException extends QueryException implements Throwable {}
class QueryServiceException extends QueryException implements Throwable {}
/**
* Thrown for exceptions that originate from search operations.
*/
class SearchException extends HttpException implements Throwable {}
/**
* Thrown for exceptions that originate from analytics operations.
*/
class AnalyticsException extends HttpException implements Throwable {}
/**
* Thrown for exceptions that originate from view operations.
*/
class ViewException extends HttpException implements Throwable {}
class PartialViewException extends HttpException implements Throwable {}
class BindingsException extends BaseException implements Throwable {}
class InvalidStateException extends BaseException implements Throwable {}
/**
* Base for exceptions that originate from key value operations
*/
class KeyValueException extends BaseException implements Throwable {}
/**
* Occurs when the requested document could not be found.
*/
class DocumentNotFoundException extends KeyValueException implements Throwable {}
/**
* Occurs when an attempt is made to insert a document but a document with that key already exists.
*/
class KeyExistsException extends KeyValueException implements Throwable {}
/**
* Occurs when a document has gone over the maximum size allowed by the server.
*/
class ValueTooBigException extends KeyValueException implements Throwable {}
/**
* Occurs when a mutation operation is attempted against a document that is locked.
*/
class KeyLockedException extends KeyValueException implements Throwable {}
/**
* Occurs when an operation has failed for a reason that is temporary.
*/
class TempFailException extends KeyValueException implements Throwable {}
/**
* Occurs when a sub-document operation targets a path which does not exist in the specified document.
*/
class PathNotFoundException extends KeyValueException implements Throwable {}
/**
* Occurs when a sub-document operation expects a path not to exists, but the path was found in the document.
*/
class PathExistsException extends KeyValueException implements Throwable {}
/**
* Occurs when a sub-document counter operation is performed and the specified delta is not valid.
*/
class InvalidRangeException extends KeyValueException implements Throwable {}
/**
* Occurs when a multi-operation sub-document operation is performed on a soft-deleted document.
*/
class KeyDeletedException extends KeyValueException implements Throwable {}
/**
* Occurs when an operation has been performed with a cas value that does not the value on the server.
*/
class CasMismatchException extends KeyValueException implements Throwable {}
/**
* Occurs when an invalid configuration has been specified for an operation.
*/
class InvalidConfigurationException extends BaseException implements Throwable {}
/**
* Occurs when the requested service is not available.
*/
class ServiceMissingException extends BaseException implements Throwable {}
/**
* Occurs when various generic network errors occur.
*/
class NetworkException extends BaseException implements Throwable {}
/**
* Occurs when an operation does not receive a response in a timely manner.
*/
class TimeoutException extends BaseException implements Throwable {}
/**
* Occurs when the specified bucket does not exist.
*/
class BucketMissingException extends BaseException implements Throwable {}
/**
* Occurs when the specified scope does not exist.
*/
class ScopeMissingException extends BaseException implements Throwable {}
/**
* Occurs when the specified collection does not exist.
*/
class CollectionMissingException extends BaseException implements Throwable {}
/**
* Occurs when authentication has failed.
*/
class AuthenticationException extends BaseException implements Throwable {}
/**
* Occurs when an operation is attempted with bad input.
*/
class BadInputException extends BaseException implements Throwable {}
/**
* Occurs when the specified durability could not be met for a mutation operation.
*/
class DurabilityException extends BaseException implements Throwable {}
/**
* Occurs when a subdocument operation could not be completed.
*/
class SubdocumentException extends BaseException implements Throwable {}
class QueryIndex
{
public function name(): string {}
public function isPrimary(): bool {}
public function type(): string {}
public function state(): string {}
public function keyspace(): string {}
public function indexKey(): array {}
public function condition(): ?string {}
}
class CreateQueryIndexOptions
{
public function condition(string $condition): CreateQueryIndexOptions {}
public function ignoreIfExists(bool $shouldIgnore): CreateQueryIndexOptions {}
public function numReplicas(int $number): CreateQueryIndexOptions {}
public function deferred(bool $isDeferred): CreateQueryIndexOptions {}
}
class CreateQueryPrimaryIndexOptions
{
public function indexName(string $name): CreateQueryPrimaryIndexOptions {}
public function ignoreIfExists(bool $shouldIgnore): CreateQueryPrimaryIndexOptions {}
public function numReplicas(int $number): CreateQueryPrimaryIndexOptions {}
public function deferred(bool $isDeferred): CreateQueryPrimaryIndexOptions {}
}
class DropQueryIndexOptions
{
public function ignoreIfNotExists(bool $shouldIgnore): DropQueryIndexOptions {}
}
class DropQueryPrimaryIndexOptions
{
public function indexName(string $name): DropQueryPrimaryIndexOptions {}
public function ignoreIfNotExists(bool $shouldIgnore): DropQueryPrimaryIndexOptions {}
}
class WatchQueryIndexesOptions
{
public function watchPrimary(bool $shouldWatch): WatchQueryIndexesOptions {}
}
class QueryIndexManager
{
public function getAllIndexes(string $bucketName): array {}
public function createIndex(string $bucketName, string $indexName, array $fields, CreateQueryIndexOptions $options = null) {}
public function createPrimaryIndex(string $bucketName, CreateQueryPrimaryIndexOptions $options = null) {}
public function dropIndex(string $bucketName, string $indexName, DropQueryIndexOptions $options = null) {}
public function dropPrimaryIndex(string $bucketName, DropQueryPrimaryIndexOptions $options = null) {}
public function watchIndexes(string $bucketName, array $indexNames, int $timeout, WatchQueryIndexesOptions $options = null) {}
public function buildDeferredIndexes(string $bucketName) {}
}
class CreateAnalyticsDataverseOptions
{
public function ignoreIfExists(bool $shouldIgnore): CreateAnalyticsDataverseOptions {}
}
class DropAnalyticsDataverseOptions
{
public function ignoreIfNotExists(bool $shouldIgnore): DropAnalyticsDataverseOptions {}
}
class CreateAnalyticsDatasetOptions
{
public function ignoreIfExists(bool $shouldIgnore): CreateAnalyticsDatasetOptions {}
public function condition(string $condition): CreateAnalyticsDatasetOptions {}
public function dataverseName(string $dataverseName): CreateAnalyticsDatasetOptions {}
}
class DropAnalyticsDatasetOptions
{
public function ignoreIfNotExists(bool $shouldIgnore): DropAnalyticsDatasetOptions {}
public function dataverseName(string $dataverseName): DropAnalyticsDatasetOptions {}
}
class CreateAnalyticsIndexOptions
{
public function ignoreIfExists(bool $shouldIgnore): CreateAnalyticsIndexOptions {}
public function dataverseName(string $dataverseName): CreateAnalyticsIndexOptions {}
}
class DropAnalyticsIndexOptions
{
public function ignoreIfNotExists(bool $shouldIgnore): DropAnalyticsIndexOptions {}
public function dataverseName(string $dataverseName): DropAnalyticsIndexOptions {}
}
class ConnectAnalyticsLinkOptions
{
public function linkName(bstring $linkName): ConnectAnalyticsLinkOptions {}
public function dataverseName(string $dataverseName): ConnectAnalyticsLinkOptions {}
}
class DisconnectAnalyticsLinkOptions
{
public function linkName(bstring $linkName): DisconnectAnalyticsLinkOptions {}
public function dataverseName(string $dataverseName): DisconnectAnalyticsLinkOptions {}
}
class CreateAnalyticsLinkOptions
{
public function timeout(int $arg): CreateAnalyticsLinkOptions {}
}
class ReplaceAnalyticsLinkOptions
{
public function timeout(int $arg): ReplaceAnalyticsLinkOptions {}
}
class DropAnalyticsLinkOptions
{
public function timeout(int $arg): DropAnalyticsLinkOptions {}
}
interface AnalyticsLinkType
{
public const COUCHBASE = "couchbase";
public const S3 = "s3";
public const AZURE_BLOB = "azureblob";
}
class GetAnalyticsLinksOptions
{
public function timeout(int $arg): DropAnalyticsLinkOptions {}
/**
* @param string $tupe restricts the results to the given link type.
*
* @see AnalyticsLinkType::COUCHBASE
* @see AnalyticsLinkType::S3
* @see AnalyticsLinkType::AZURE_BLOB
*/
public function linkType(string $type): DropAnalyticsLinkOptions {}
/**
* @param string $dataverse restricts the results to a given dataverse, can be given in the form of "namepart" or "namepart1/namepart2".
*/
public function dataverse(string $dataverse): DropAnalyticsLinkOptions {}
/**
* @param string $name restricts the results to the link with the specified name. If set then dataverse must also be set.
*/
public function name(string $name): DropAnalyticsLinkOptions {}
}
interface AnalyticsEncryptionLevel
{
public const NONE = "none";
public const HALF = "half";
public const FULL = "full";
}
class EncryptionSettings
{
/**
* Sets encryption level.
*
* @param string $level Accepted values are 'none', 'half', 'full'.
*
* @see AnalyticsEncryptionLevel::NONE