Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
54 changes: 27 additions & 27 deletions ibmcloudant/cloudant_v1.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"""
NoSQL database based on Apache CouchDB

See: https://cloud.ibm.com/docs/services/Cloudant/
See: https://cloud.ibm.com/docs/Cloudant
"""

from datetime import datetime
Expand Down Expand Up @@ -437,7 +437,7 @@ def post_changes(
conjunction with equality operators or create and use a partial index to
reduce the number of documents that will need to be scanned.
See [the Cloudant
Docs](https://cloud.ibm.com/docs/Cloudant?topic=Cloudant-operators)for a
Docs](https://cloud.ibm.com/docs/Cloudant?topic=Cloudant-operators) for a
list of all available combination and conditional operators.
For further reference see [selector
syntax](https://cloud.ibm.com/docs/Cloudant?topic=Cloudant-selector-syntax).
Expand Down Expand Up @@ -662,7 +662,7 @@ def post_changes_as_stream(
conjunction with equality operators or create and use a partial index to
reduce the number of documents that will need to be scanned.
See [the Cloudant
Docs](https://cloud.ibm.com/docs/Cloudant?topic=Cloudant-operators)for a
Docs](https://cloud.ibm.com/docs/Cloudant?topic=Cloudant-operators) for a
list of all available combination and conditional operators.
For further reference see [selector
syntax](https://cloud.ibm.com/docs/Cloudant?topic=Cloudant-selector-syntax).
Expand Down Expand Up @@ -4636,7 +4636,7 @@ def post_partition_explain(
conjunction with equality operators or create and use a partial index to
reduce the number of documents that will need to be scanned.
See [the Cloudant
Docs](https://cloud.ibm.com/docs/Cloudant?topic=Cloudant-operators)for a
Docs](https://cloud.ibm.com/docs/Cloudant?topic=Cloudant-operators) for a
list of all available combination and conditional operators.
For further reference see [selector
syntax](https://cloud.ibm.com/docs/Cloudant?topic=Cloudant-selector-syntax).
Expand Down Expand Up @@ -4814,7 +4814,7 @@ def post_partition_find(
conjunction with equality operators or create and use a partial index to
reduce the number of documents that will need to be scanned.
See [the Cloudant
Docs](https://cloud.ibm.com/docs/Cloudant?topic=Cloudant-operators)for a
Docs](https://cloud.ibm.com/docs/Cloudant?topic=Cloudant-operators) for a
list of all available combination and conditional operators.
For further reference see [selector
syntax](https://cloud.ibm.com/docs/Cloudant?topic=Cloudant-selector-syntax).
Expand Down Expand Up @@ -4992,7 +4992,7 @@ def post_partition_find_as_stream(
conjunction with equality operators or create and use a partial index to
reduce the number of documents that will need to be scanned.
See [the Cloudant
Docs](https://cloud.ibm.com/docs/Cloudant?topic=Cloudant-operators)for a
Docs](https://cloud.ibm.com/docs/Cloudant?topic=Cloudant-operators) for a
list of all available combination and conditional operators.
For further reference see [selector
syntax](https://cloud.ibm.com/docs/Cloudant?topic=Cloudant-selector-syntax).
Expand Down Expand Up @@ -5159,7 +5159,7 @@ def post_explain(
conjunction with equality operators or create and use a partial index to
reduce the number of documents that will need to be scanned.
See [the Cloudant
Docs](https://cloud.ibm.com/docs/Cloudant?topic=Cloudant-operators)for a
Docs](https://cloud.ibm.com/docs/Cloudant?topic=Cloudant-operators) for a
list of all available combination and conditional operators.
For further reference see [selector
syntax](https://cloud.ibm.com/docs/Cloudant?topic=Cloudant-selector-syntax).
Expand Down Expand Up @@ -5337,7 +5337,7 @@ def post_find(
conjunction with equality operators or create and use a partial index to
reduce the number of documents that will need to be scanned.
See [the Cloudant
Docs](https://cloud.ibm.com/docs/Cloudant?topic=Cloudant-operators)for a
Docs](https://cloud.ibm.com/docs/Cloudant?topic=Cloudant-operators) for a
list of all available combination and conditional operators.
For further reference see [selector
syntax](https://cloud.ibm.com/docs/Cloudant?topic=Cloudant-selector-syntax).
Expand Down Expand Up @@ -5515,7 +5515,7 @@ def post_find_as_stream(
conjunction with equality operators or create and use a partial index to
reduce the number of documents that will need to be scanned.
See [the Cloudant
Docs](https://cloud.ibm.com/docs/Cloudant?topic=Cloudant-operators)for a
Docs](https://cloud.ibm.com/docs/Cloudant?topic=Cloudant-operators) for a
list of all available combination and conditional operators.
For further reference see [selector
syntax](https://cloud.ibm.com/docs/Cloudant?topic=Cloudant-selector-syntax).
Expand Down Expand Up @@ -7084,8 +7084,8 @@ def put_cloudant_security_configuration(
`_reader`.

:param str db: Path parameter to specify the database name.
:param dict cloudant: Database permissions for Cloudant users and/or API
keys.
:param dict cloudant: Database permissions for Cloudant users, API keys or
both.
:param SecurityObject admins: (optional) Schema for names and roles to map
to a database permission.
:param bool couchdb_auth_only: (optional) Manage permissions using the
Expand Down Expand Up @@ -7217,8 +7217,8 @@ def put_security(
:param str db: Path parameter to specify the database name.
:param SecurityObject admins: (optional) Schema for names and roles to map
to a database permission.
:param dict cloudant: (optional) Database permissions for Cloudant users
and/or API keys.
:param dict cloudant: (optional) Database permissions for Cloudant users,
API keys or both.
:param bool couchdb_auth_only: (optional) Manage permissions using the
`_users` database only.
:param SecurityObject members: (optional) Schema for names and roles to map
Expand Down Expand Up @@ -13767,8 +13767,8 @@ class ExplainResult:
equality operators or create and use a partial index to reduce the number of
documents that will need to be scanned.
See [the Cloudant
Docs](https://cloud.ibm.com/docs/Cloudant?topic=Cloudant-operators)for a list of
all available combination and conditional operators.
Docs](https://cloud.ibm.com/docs/Cloudant?topic=Cloudant-operators) for a list
of all available combination and conditional operators.
For further reference see [selector
syntax](https://cloud.ibm.com/docs/Cloudant?topic=Cloudant-selector-syntax).
:param List[SelectorHint] selector_hints: Schema for a list of objects with
Expand Down Expand Up @@ -13838,7 +13838,7 @@ def __init__(
conjunction with equality operators or create and use a partial index to
reduce the number of documents that will need to be scanned.
See [the Cloudant
Docs](https://cloud.ibm.com/docs/Cloudant?topic=Cloudant-operators)for a
Docs](https://cloud.ibm.com/docs/Cloudant?topic=Cloudant-operators) for a
list of all available combination and conditional operators.
For further reference see [selector
syntax](https://cloud.ibm.com/docs/Cloudant?topic=Cloudant-selector-syntax).
Expand Down Expand Up @@ -14813,8 +14813,8 @@ class IndexDefinition:
equality operators or create and use a partial index to reduce the number of
documents that will need to be scanned.
See [the Cloudant
Docs](https://cloud.ibm.com/docs/Cloudant?topic=Cloudant-operators)for a list of
all available combination and conditional operators.
Docs](https://cloud.ibm.com/docs/Cloudant?topic=Cloudant-operators) for a list
of all available combination and conditional operators.
For further reference see [selector
syntax](https://cloud.ibm.com/docs/Cloudant?topic=Cloudant-selector-syntax).
"""
Expand Down Expand Up @@ -14884,7 +14884,7 @@ def __init__(
conjunction with equality operators or create and use a partial index to
reduce the number of documents that will need to be scanned.
See [the Cloudant
Docs](https://cloud.ibm.com/docs/Cloudant?topic=Cloudant-operators)for a
Docs](https://cloud.ibm.com/docs/Cloudant?topic=Cloudant-operators) for a
list of all available combination and conditional operators.
For further reference see [selector
syntax](https://cloud.ibm.com/docs/Cloudant?topic=Cloudant-selector-syntax).
Expand Down Expand Up @@ -16497,8 +16497,8 @@ class ReplicationDocument:
equality operators or create and use a partial index to reduce the number of
documents that will need to be scanned.
See [the Cloudant
Docs](https://cloud.ibm.com/docs/Cloudant?topic=Cloudant-operators)for a list of
all available combination and conditional operators.
Docs](https://cloud.ibm.com/docs/Cloudant?topic=Cloudant-operators) for a list
of all available combination and conditional operators.
For further reference see [selector
syntax](https://cloud.ibm.com/docs/Cloudant?topic=Cloudant-selector-syntax).
:param str since_seq: (optional) Start the replication at a specific sequence
Expand Down Expand Up @@ -16667,7 +16667,7 @@ def __init__(
conjunction with equality operators or create and use a partial index to
reduce the number of documents that will need to be scanned.
See [the Cloudant
Docs](https://cloud.ibm.com/docs/Cloudant?topic=Cloudant-operators)for a
Docs](https://cloud.ibm.com/docs/Cloudant?topic=Cloudant-operators) for a
list of all available combination and conditional operators.
For further reference see [selector
syntax](https://cloud.ibm.com/docs/Cloudant?topic=Cloudant-selector-syntax).
Expand Down Expand Up @@ -18720,8 +18720,8 @@ class Security:

:param SecurityObject admins: (optional) Schema for names and roles to map to a
database permission.
:param dict cloudant: (optional) Database permissions for Cloudant users and/or
API keys.
:param dict cloudant: (optional) Database permissions for Cloudant users, API
keys or both.
:param bool couchdb_auth_only: (optional) Manage permissions using the `_users`
database only.
:param SecurityObject members: (optional) Schema for names and roles to map to a
Expand All @@ -18741,8 +18741,8 @@ def __init__(

:param SecurityObject admins: (optional) Schema for names and roles to map
to a database permission.
:param dict cloudant: (optional) Database permissions for Cloudant users
and/or API keys.
:param dict cloudant: (optional) Database permissions for Cloudant users,
API keys or both.
:param bool couchdb_auth_only: (optional) Manage permissions using the
`_users` database only.
:param SecurityObject members: (optional) Schema for names and roles to map
Expand Down Expand Up @@ -18811,7 +18811,7 @@ def __ne__(self, other: 'Security') -> bool:

class CloudantEnum(str, Enum):
"""
Database permissions for Cloudant users and/or API keys.
Database permissions for Cloudant users, API keys or both.
"""

READER = '_reader'
Expand Down
2 changes: 1 addition & 1 deletion test/integration/test_cloudant_v1.py
Original file line number Diff line number Diff line change
Expand Up @@ -1811,7 +1811,7 @@ def test_put_security(self):
response = self.cloudant_service.put_security(
db='testString',
admins=security_object_model,
cloudant={'key1': ['_reader']},
cloudant={'antsellseadespecteposene': ['_reader', '_writer', '_admin']},
couchdb_auth_only=True,
members=security_object_model,
)
Expand Down