You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: acouchbase_analytics/cluster.py
+30-24Lines changed: 30 additions & 24 deletions
Original file line number
Diff line number
Diff line change
@@ -34,32 +34,32 @@
34
34
classAsyncCluster:
35
35
"""Create an AsyncCluster instance.
36
36
37
-
The cluster instance exposes the operations which are available to be performed against a Columnar cluster.
37
+
The cluster instance exposes the operations which are available to be performed against a Analytics cluster.
38
38
39
39
.. important::
40
40
Use the static :meth:`.AsyncCluster.create_instance` method to create an AsyncCluster.
41
41
42
42
Args:
43
-
connstr:
44
-
The connection string to use for connecting to the cluster.
45
-
The format of the connection string is the *scheme* (``couchbases`` as TLS enabled connections are _required_), followed a hostname
43
+
endpoint:
44
+
The endpoint to use for sending HTTP requests to the Analytics server.
45
+
The format of the endpoint string is the **scheme** (``http`` or ``https`` is *required*, use ``https`` for TLS enabled connections), followed a hostname and optional port.
46
46
credential: User credentials.
47
47
options: Global options to set for the cluster.
48
48
Some operations allow the global options to be overriden by passing in options to the operation.
49
49
**kwargs: keyword arguments that can be used in place or to overrride provided :class:`~acouchbase_analytics.options.ClusterOptions`
The connection string to use for connecting to the cluster.
165
-
The format of the connection string is the *scheme* (``couchbases`` as TLS enabled connections are _required_), followed a hostname
169
+
endpoint:
170
+
The endpoint to use for sending HTTP requests to the Analytics server.
171
+
The format of the endpoint string is the **scheme** (``http`` or ``https`` is *required*, use ``https`` for TLS enabled connections), followed a hostname and optional port.
166
172
credential: User credentials.
167
173
options: Global options to set for the cluster.
168
174
Some operations allow the global options to be overriden by passing in options to the operation.
169
175
**kwargs: Keyword arguments that can be used in place or to overrride provided :class:`~acouchbase_analytics.options.ClusterOptions`
170
176
171
177
172
178
Returns:
173
-
A Capella Columnar Cluster instance.
179
+
An Analytics Cluster instance.
174
180
175
181
Raises:
176
-
ValueError: If incorrect connstr is provided.
182
+
ValueError: If incorrect endpoint is provided.
177
183
ValueError: If incorrect options are provided.
178
184
179
185
180
186
Examples:
181
187
Initialize cluster using default options::
182
188
183
-
from acouchbase_analytics import get_event_loop
189
+
import asyncio
190
+
184
191
from acouchbase_analytics.cluster import AsyncCluster
185
192
from acouchbase_analytics.credential import Credential
Copy file name to clipboardExpand all lines: couchbase_analytics/cluster.py
+18-12Lines changed: 18 additions & 12 deletions
Original file line number
Diff line number
Diff line change
@@ -35,26 +35,26 @@ class Cluster:
35
35
Use the static :meth:`.Cluster.create_instance` method to create a Cluster.
36
36
37
37
Args:
38
-
http_endpoint:
39
-
The HTTP endpoint to use for sending requests to the Analytics server.
40
-
The format of the endpoint string is the *scheme* (``http`` or ``https`` is _required_), followed a hostname
38
+
endpoint:
39
+
The endpoint to use for sending HTTP requests to the Analytics server.
40
+
The format of the endpoint string is the **scheme** (``http`` or ``https`` is *required*, use ``https`` for TLS enabled connections), followed a hostname and optional port.
41
41
credential: User credentials.
42
42
options: Global options to set for the cluster.
43
43
Some operations allow the global options to be overriden by passing in options to the operation.
44
44
**kwargs: keyword arguments that can be used in place or to overrride provided :class:`~couchbase_analytics.options.ClusterOptions`
The HTTP endpoint to use for sending requests to the Analytics server.
161
-
The format of the endpoint string is the *scheme* (``http`` or ``https`` is _required_), followed a hostname
165
+
endpoint:
166
+
The endpoint to use for sending HTTP requests to the Analytics server.
167
+
The format of the endpoint string is the **scheme** (``http`` or ``https`` is *required*, use ``https`` for TLS enabled connections), followed a hostname and optional port.
162
168
credential: User credentials.
163
169
options: Global options to set for the cluster.
164
170
Some operations allow the global options to be overriden by passing in options to the operation.
0 commit comments