Available options to for a :class:`~couchbase.management.queries.QueryIndexManager`'s create index operation. .. note:: All management options should be imported from `couchbase.management.options`. Args: collection_name (str, optional): **DEPRECATED** - use :class:`~c
| 568 | |
| 569 | |
| 570 | class CreateQueryIndexOptions(dict): |
| 571 | """Available options to for a :class:`~couchbase.management.queries.QueryIndexManager`'s create |
| 572 | index operation. |
| 573 | |
| 574 | .. note:: |
| 575 | All management options should be imported from `couchbase.management.options`. |
| 576 | |
| 577 | Args: |
| 578 | collection_name (str, optional): **DEPRECATED** - use :class:`~couchbase.management.queries.CollectionQueryIndexManager`. |
| 579 | Specifies the collection of the index. |
| 580 | condition (str, optional): Specifies the 'where' condition for partial index creation. |
| 581 | deferred (bool, optional): Specifies whether this index creation should be deferred until |
| 582 | a later point in time when they can be explicitly built together. |
| 583 | ignore_if_exists (bool, optional): Whether or not the call should ignore the |
| 584 | index already existing when determining whether the call was successful. |
| 585 | num_replicas (int, optional): The number of replicas of this index that should be created. |
| 586 | scope_name (str, optional): **DEPRECATED** - use :class:`~couchbase.management.queries.CollectionQueryIndexManager`. |
| 587 | Specifies the scope of the index. |
| 588 | timeout (timedelta, optional): The timeout for this operation. Defaults to global |
| 589 | management operation timeout. |
| 590 | parent_span (:class:`~couchbase.observability.tracing.RequestTracer`, optional): The parent span for this operation. |
| 591 | """ # noqa: E501 |
| 592 | @overload |
| 593 | def __init__(self, |
| 594 | timeout: Optional[timedelta] = None, |
| 595 | ignore_if_exists: Optional[bool] = None, |
| 596 | num_replicas: Optional[int] = None, |
| 597 | deferred: Optional[bool] = None, |
| 598 | condition: Optional[str] = None, |
| 599 | scope_name: Optional[str] = None, |
| 600 | collection_name: Optional[str] = None, |
| 601 | parent_span: Optional[RequestSpan] = None |
| 602 | ) -> None: |
| 603 | ... |
| 604 | |
| 605 | def __init__(self, **kwargs: Any) -> None: |
| 606 | if 'ignore_if_exists' not in kwargs: |
| 607 | kwargs['ignore_if_exists'] = False |
| 608 | kwargs = {k: v for k, v in kwargs.items() if v is not None} |
| 609 | super().__init__(**kwargs) |
| 610 | |
| 611 | |
| 612 | class CreatePrimaryQueryIndexOptions(dict): |
no outgoing calls