Interface AsyncDocumentClient
-
public interface AsyncDocumentClientProvides a client-side logical representation of the Azure Cosmos DB database service. This async client is used to configure and execute requests against the service.AsyncDocumentClientasync APIs return rxJava'sObservable, and so you can use rxJavaObservablefunctionality. The asyncObservablebased APIs perform the requested operation only after subscription.The service client encapsulates the endpoint and credentials used to access the Cosmos DB service.
To instantiate you can use the
AsyncDocumentClient.BuilderConnectionPolicy connectionPolicy = new ConnectionPolicy(); connectionPolicy.setConnectionMode(ConnectionMode.Direct); AsyncDocumentClient client = new AsyncDocumentClient.Builder() .withServiceEndpoint(serviceEndpoint) .withMasterKeyOrResourceToken(masterKey) .withConnectionPolicy(connectionPolicy) .withConsistencyLevel(ConsistencyLevel.Session) .build();
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classAsyncDocumentClient.BuilderHelper class to buildAsyncDocumentClientinstances as logical representation of the Azure Cosmos DB database service.
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description voidclose()Close thisAsyncDocumentClientinstance and cleans up the resources.rx.Observable<com.microsoft.azure.cosmosdb.ResourceResponse<com.microsoft.azure.cosmosdb.Attachment>>createAttachment(String documentLink, com.microsoft.azure.cosmosdb.Attachment attachment, com.microsoft.azure.cosmosdb.RequestOptions options)Creates an attachment.rx.Observable<com.microsoft.azure.cosmosdb.ResourceResponse<com.microsoft.azure.cosmosdb.Attachment>>createAttachment(String documentLink, InputStream mediaStream, com.microsoft.azure.cosmosdb.MediaOptions options, com.microsoft.azure.cosmosdb.RequestOptions requestOptions)Creates an attachment.rx.Observable<com.microsoft.azure.cosmosdb.ResourceResponse<com.microsoft.azure.cosmosdb.DocumentCollection>>createCollection(String databaseLink, com.microsoft.azure.cosmosdb.DocumentCollection collection, com.microsoft.azure.cosmosdb.RequestOptions options)Creates a document collection.rx.Observable<com.microsoft.azure.cosmosdb.ResourceResponse<com.microsoft.azure.cosmosdb.Database>>createDatabase(com.microsoft.azure.cosmosdb.Database database, com.microsoft.azure.cosmosdb.RequestOptions options)Creates a database.rx.Observable<com.microsoft.azure.cosmosdb.ResourceResponse<com.microsoft.azure.cosmosdb.Document>>createDocument(String collectionLink, Object document, com.microsoft.azure.cosmosdb.RequestOptions options, boolean disableAutomaticIdGeneration)Creates a document.rx.Observable<com.microsoft.azure.cosmosdb.ResourceResponse<com.microsoft.azure.cosmosdb.Permission>>createPermission(String userLink, com.microsoft.azure.cosmosdb.Permission permission, com.microsoft.azure.cosmosdb.RequestOptions options)Creates a permission.rx.Observable<com.microsoft.azure.cosmosdb.ResourceResponse<com.microsoft.azure.cosmosdb.StoredProcedure>>createStoredProcedure(String collectionLink, com.microsoft.azure.cosmosdb.StoredProcedure storedProcedure, com.microsoft.azure.cosmosdb.RequestOptions options)Creates a stored procedure.rx.Observable<com.microsoft.azure.cosmosdb.ResourceResponse<com.microsoft.azure.cosmosdb.Trigger>>createTrigger(String collectionLink, com.microsoft.azure.cosmosdb.Trigger trigger, com.microsoft.azure.cosmosdb.RequestOptions options)Creates a trigger.rx.Observable<com.microsoft.azure.cosmosdb.ResourceResponse<com.microsoft.azure.cosmosdb.User>>createUser(String databaseLink, com.microsoft.azure.cosmosdb.User user, com.microsoft.azure.cosmosdb.RequestOptions options)Creates a user.rx.Observable<com.microsoft.azure.cosmosdb.ResourceResponse<com.microsoft.azure.cosmosdb.UserDefinedFunction>>createUserDefinedFunction(String collectionLink, com.microsoft.azure.cosmosdb.UserDefinedFunction udf, com.microsoft.azure.cosmosdb.RequestOptions options)Creates a user defined function.rx.Observable<com.microsoft.azure.cosmosdb.ResourceResponse<com.microsoft.azure.cosmosdb.Attachment>>deleteAttachment(String attachmentLink, com.microsoft.azure.cosmosdb.RequestOptions options)Deletes an attachment.rx.Observable<com.microsoft.azure.cosmosdb.ResourceResponse<com.microsoft.azure.cosmosdb.DocumentCollection>>deleteCollection(String collectionLink, com.microsoft.azure.cosmosdb.RequestOptions options)Deletes a document collection by the collection link.rx.Observable<com.microsoft.azure.cosmosdb.ResourceResponse<com.microsoft.azure.cosmosdb.Conflict>>deleteConflict(String conflictLink, com.microsoft.azure.cosmosdb.RequestOptions options)Deletes a conflict.rx.Observable<com.microsoft.azure.cosmosdb.ResourceResponse<com.microsoft.azure.cosmosdb.Database>>deleteDatabase(String databaseLink, com.microsoft.azure.cosmosdb.RequestOptions options)Deletes a database.rx.Observable<com.microsoft.azure.cosmosdb.ResourceResponse<com.microsoft.azure.cosmosdb.Document>>deleteDocument(String documentLink, com.microsoft.azure.cosmosdb.RequestOptions options)Deletes a document by the document link.rx.Observable<com.microsoft.azure.cosmosdb.ResourceResponse<com.microsoft.azure.cosmosdb.Permission>>deletePermission(String permissionLink, com.microsoft.azure.cosmosdb.RequestOptions options)Deletes a permission.rx.Observable<com.microsoft.azure.cosmosdb.ResourceResponse<com.microsoft.azure.cosmosdb.StoredProcedure>>deleteStoredProcedure(String storedProcedureLink, com.microsoft.azure.cosmosdb.RequestOptions options)Deletes a stored procedure by the stored procedure link.rx.Observable<com.microsoft.azure.cosmosdb.ResourceResponse<com.microsoft.azure.cosmosdb.Trigger>>deleteTrigger(String triggerLink, com.microsoft.azure.cosmosdb.RequestOptions options)Deletes a trigger.rx.Observable<com.microsoft.azure.cosmosdb.ResourceResponse<com.microsoft.azure.cosmosdb.User>>deleteUser(String userLink, com.microsoft.azure.cosmosdb.RequestOptions options)Deletes a user.rx.Observable<com.microsoft.azure.cosmosdb.ResourceResponse<com.microsoft.azure.cosmosdb.UserDefinedFunction>>deleteUserDefinedFunction(String udfLink, com.microsoft.azure.cosmosdb.RequestOptions options)Deletes a user defined function.rx.Observable<com.microsoft.azure.cosmosdb.StoredProcedureResponse>executeStoredProcedure(String storedProcedureLink, com.microsoft.azure.cosmosdb.RequestOptions options, Object[] procedureParams)Executes a stored procedure by the stored procedure link.rx.Observable<com.microsoft.azure.cosmosdb.StoredProcedureResponse>executeStoredProcedure(String storedProcedureLink, Object[] procedureParams)Executes a stored procedure by the stored procedure link.com.microsoft.azure.cosmosdb.ConnectionPolicygetConnectionPolicy()Gets the connection policyrx.Observable<com.microsoft.azure.cosmosdb.DatabaseAccount>getDatabaseAccount()Gets database account information.URIgetReadEndpoint()Gets the current read endpoint chosen based on availability and preference.URIgetServiceEndpoint()Gets the default service endpoint as passed in by the user during construction.URIgetWriteEndpoint()Gets the current write endpoint chosen based on availability and preference.static voidmonitor(io.micrometer.core.instrument.MeterRegistry registry)Adds a meter registry for reporting Direct TCP metricsrx.Observable<com.microsoft.azure.cosmosdb.FeedResponse<com.microsoft.azure.cosmosdb.Attachment>>queryAttachments(String documentLink, com.microsoft.azure.cosmosdb.SqlQuerySpec querySpec, com.microsoft.azure.cosmosdb.FeedOptions options)Query for attachments.rx.Observable<com.microsoft.azure.cosmosdb.FeedResponse<com.microsoft.azure.cosmosdb.Attachment>>queryAttachments(String documentLink, String query, com.microsoft.azure.cosmosdb.FeedOptions options)Query for attachments.rx.Observable<com.microsoft.azure.cosmosdb.FeedResponse<com.microsoft.azure.cosmosdb.DocumentCollection>>queryCollections(String databaseLink, com.microsoft.azure.cosmosdb.SqlQuerySpec querySpec, com.microsoft.azure.cosmosdb.FeedOptions options)Query for document collections in a database.rx.Observable<com.microsoft.azure.cosmosdb.FeedResponse<com.microsoft.azure.cosmosdb.DocumentCollection>>queryCollections(String databaseLink, String query, com.microsoft.azure.cosmosdb.FeedOptions options)Query for document collections in a database.rx.Observable<com.microsoft.azure.cosmosdb.FeedResponse<com.microsoft.azure.cosmosdb.Conflict>>queryConflicts(String collectionLink, com.microsoft.azure.cosmosdb.SqlQuerySpec querySpec, com.microsoft.azure.cosmosdb.FeedOptions options)Query for conflicts.rx.Observable<com.microsoft.azure.cosmosdb.FeedResponse<com.microsoft.azure.cosmosdb.Conflict>>queryConflicts(String collectionLink, String query, com.microsoft.azure.cosmosdb.FeedOptions options)Query for conflicts.rx.Observable<com.microsoft.azure.cosmosdb.FeedResponse<com.microsoft.azure.cosmosdb.Database>>queryDatabases(com.microsoft.azure.cosmosdb.SqlQuerySpec querySpec, com.microsoft.azure.cosmosdb.FeedOptions options)Query for databases.rx.Observable<com.microsoft.azure.cosmosdb.FeedResponse<com.microsoft.azure.cosmosdb.Database>>queryDatabases(String query, com.microsoft.azure.cosmosdb.FeedOptions options)Query for databases.rx.Observable<com.microsoft.azure.cosmosdb.FeedResponse<com.microsoft.azure.cosmosdb.Document>>queryDocumentChangeFeed(String collectionLink, com.microsoft.azure.cosmosdb.ChangeFeedOptions changeFeedOptions)Query for documents change feed in a document collection.rx.Observable<com.microsoft.azure.cosmosdb.FeedResponse<com.microsoft.azure.cosmosdb.Document>>queryDocuments(String collectionLink, com.microsoft.azure.cosmosdb.SqlQuerySpec querySpec, com.microsoft.azure.cosmosdb.FeedOptions options)Query for documents in a document collection.rx.Observable<com.microsoft.azure.cosmosdb.FeedResponse<com.microsoft.azure.cosmosdb.Document>>queryDocuments(String collectionLink, String query, com.microsoft.azure.cosmosdb.FeedOptions options)Query for documents in a document collection.rx.Observable<com.microsoft.azure.cosmosdb.FeedResponse<com.microsoft.azure.cosmosdb.Offer>>queryOffers(com.microsoft.azure.cosmosdb.SqlQuerySpec querySpec, com.microsoft.azure.cosmosdb.FeedOptions options)Query for offers in a database.rx.Observable<com.microsoft.azure.cosmosdb.FeedResponse<com.microsoft.azure.cosmosdb.Offer>>queryOffers(String query, com.microsoft.azure.cosmosdb.FeedOptions options)Query for offers in a database.rx.Observable<com.microsoft.azure.cosmosdb.FeedResponse<com.microsoft.azure.cosmosdb.Permission>>queryPermissions(String permissionLink, com.microsoft.azure.cosmosdb.SqlQuerySpec querySpec, com.microsoft.azure.cosmosdb.FeedOptions options)Query for permissions.rx.Observable<com.microsoft.azure.cosmosdb.FeedResponse<com.microsoft.azure.cosmosdb.Permission>>queryPermissions(String permissionLink, String query, com.microsoft.azure.cosmosdb.FeedOptions options)Query for permissions.rx.Observable<com.microsoft.azure.cosmosdb.FeedResponse<com.microsoft.azure.cosmosdb.StoredProcedure>>queryStoredProcedures(String collectionLink, com.microsoft.azure.cosmosdb.SqlQuerySpec querySpec, com.microsoft.azure.cosmosdb.FeedOptions options)Query for stored procedures in a document collection.rx.Observable<com.microsoft.azure.cosmosdb.FeedResponse<com.microsoft.azure.cosmosdb.StoredProcedure>>queryStoredProcedures(String collectionLink, String query, com.microsoft.azure.cosmosdb.FeedOptions options)Query for stored procedures in a document collection.rx.Observable<com.microsoft.azure.cosmosdb.FeedResponse<com.microsoft.azure.cosmosdb.Trigger>>queryTriggers(String collectionLink, com.microsoft.azure.cosmosdb.SqlQuerySpec querySpec, com.microsoft.azure.cosmosdb.FeedOptions options)Query for triggers.rx.Observable<com.microsoft.azure.cosmosdb.FeedResponse<com.microsoft.azure.cosmosdb.Trigger>>queryTriggers(String collectionLink, String query, com.microsoft.azure.cosmosdb.FeedOptions options)Query for triggers.rx.Observable<com.microsoft.azure.cosmosdb.FeedResponse<com.microsoft.azure.cosmosdb.UserDefinedFunction>>queryUserDefinedFunctions(String collectionLink, com.microsoft.azure.cosmosdb.SqlQuerySpec querySpec, com.microsoft.azure.cosmosdb.FeedOptions options)Query for user defined functions.rx.Observable<com.microsoft.azure.cosmosdb.FeedResponse<com.microsoft.azure.cosmosdb.UserDefinedFunction>>queryUserDefinedFunctions(String collectionLink, String query, com.microsoft.azure.cosmosdb.FeedOptions options)Query for user defined functions.rx.Observable<com.microsoft.azure.cosmosdb.FeedResponse<com.microsoft.azure.cosmosdb.User>>queryUsers(String databaseLink, com.microsoft.azure.cosmosdb.SqlQuerySpec querySpec, com.microsoft.azure.cosmosdb.FeedOptions options)Query for users.rx.Observable<com.microsoft.azure.cosmosdb.FeedResponse<com.microsoft.azure.cosmosdb.User>>queryUsers(String databaseLink, String query, com.microsoft.azure.cosmosdb.FeedOptions options)Query for users.rx.Observable<com.microsoft.azure.cosmosdb.ResourceResponse<com.microsoft.azure.cosmosdb.Attachment>>readAttachment(String attachmentLink, com.microsoft.azure.cosmosdb.RequestOptions options)Reads an attachment.rx.Observable<com.microsoft.azure.cosmosdb.FeedResponse<com.microsoft.azure.cosmosdb.Attachment>>readAttachments(String documentLink, com.microsoft.azure.cosmosdb.FeedOptions options)Reads all attachments in a document.rx.Observable<com.microsoft.azure.cosmosdb.ResourceResponse<com.microsoft.azure.cosmosdb.DocumentCollection>>readCollection(String collectionLink, com.microsoft.azure.cosmosdb.RequestOptions options)Reads a document collection by the collection link.rx.Observable<com.microsoft.azure.cosmosdb.FeedResponse<com.microsoft.azure.cosmosdb.DocumentCollection>>readCollections(String databaseLink, com.microsoft.azure.cosmosdb.FeedOptions options)Reads all document collections in a database.rx.Observable<com.microsoft.azure.cosmosdb.ResourceResponse<com.microsoft.azure.cosmosdb.Conflict>>readConflict(String conflictLink, com.microsoft.azure.cosmosdb.RequestOptions options)Reads a conflict.rx.Observable<com.microsoft.azure.cosmosdb.FeedResponse<com.microsoft.azure.cosmosdb.Conflict>>readConflicts(String collectionLink, com.microsoft.azure.cosmosdb.FeedOptions options)Reads all conflicts in a document collection.rx.Observable<com.microsoft.azure.cosmosdb.ResourceResponse<com.microsoft.azure.cosmosdb.Database>>readDatabase(String databaseLink, com.microsoft.azure.cosmosdb.RequestOptions options)Reads a database.rx.Observable<com.microsoft.azure.cosmosdb.FeedResponse<com.microsoft.azure.cosmosdb.Database>>readDatabases(com.microsoft.azure.cosmosdb.FeedOptions options)Reads all databases.rx.Observable<com.microsoft.azure.cosmosdb.ResourceResponse<com.microsoft.azure.cosmosdb.Document>>readDocument(String documentLink, com.microsoft.azure.cosmosdb.RequestOptions options)Reads a document by the document link.rx.Observable<com.microsoft.azure.cosmosdb.FeedResponse<com.microsoft.azure.cosmosdb.Document>>readDocuments(String collectionLink, com.microsoft.azure.cosmosdb.FeedOptions options)Reads all documents in a document collection.rx.Observable<com.microsoft.azure.cosmosdb.MediaResponse>readMedia(String mediaLink)Reads a media by the media link.rx.Observable<com.microsoft.azure.cosmosdb.ResourceResponse<com.microsoft.azure.cosmosdb.Offer>>readOffer(String offerLink)Reads an offer.rx.Observable<com.microsoft.azure.cosmosdb.FeedResponse<com.microsoft.azure.cosmosdb.Offer>>readOffers(com.microsoft.azure.cosmosdb.FeedOptions options)Reads offers.rx.Observable<com.microsoft.azure.cosmosdb.FeedResponse<com.microsoft.azure.cosmosdb.PartitionKeyRange>>readPartitionKeyRanges(String collectionLink, com.microsoft.azure.cosmosdb.FeedOptions options)Reads all partition key ranges in a document collection.rx.Observable<com.microsoft.azure.cosmosdb.ResourceResponse<com.microsoft.azure.cosmosdb.Permission>>readPermission(String permissionLink, com.microsoft.azure.cosmosdb.RequestOptions options)Reads a permission.rx.Observable<com.microsoft.azure.cosmosdb.FeedResponse<com.microsoft.azure.cosmosdb.Permission>>readPermissions(String permissionLink, com.microsoft.azure.cosmosdb.FeedOptions options)Reads all permissions.rx.Observable<com.microsoft.azure.cosmosdb.ResourceResponse<com.microsoft.azure.cosmosdb.StoredProcedure>>readStoredProcedure(String storedProcedureLink, com.microsoft.azure.cosmosdb.RequestOptions options)Read a stored procedure by the stored procedure link.rx.Observable<com.microsoft.azure.cosmosdb.FeedResponse<com.microsoft.azure.cosmosdb.StoredProcedure>>readStoredProcedures(String collectionLink, com.microsoft.azure.cosmosdb.FeedOptions options)Reads all stored procedures in a document collection link.rx.Observable<com.microsoft.azure.cosmosdb.ResourceResponse<com.microsoft.azure.cosmosdb.Trigger>>readTrigger(String triggerLink, com.microsoft.azure.cosmosdb.RequestOptions options)Reads a trigger by the trigger link.rx.Observable<com.microsoft.azure.cosmosdb.FeedResponse<com.microsoft.azure.cosmosdb.Trigger>>readTriggers(String collectionLink, com.microsoft.azure.cosmosdb.FeedOptions options)Reads all triggers in a document collection.rx.Observable<com.microsoft.azure.cosmosdb.ResourceResponse<com.microsoft.azure.cosmosdb.User>>readUser(String userLink, com.microsoft.azure.cosmosdb.RequestOptions options)Reads a user.rx.Observable<com.microsoft.azure.cosmosdb.ResourceResponse<com.microsoft.azure.cosmosdb.UserDefinedFunction>>readUserDefinedFunction(String udfLink, com.microsoft.azure.cosmosdb.RequestOptions options)Read a user defined function.rx.Observable<com.microsoft.azure.cosmosdb.FeedResponse<com.microsoft.azure.cosmosdb.UserDefinedFunction>>readUserDefinedFunctions(String collectionLink, com.microsoft.azure.cosmosdb.FeedOptions options)Reads all user defined functions in a document collection.rx.Observable<com.microsoft.azure.cosmosdb.FeedResponse<com.microsoft.azure.cosmosdb.User>>readUsers(String databaseLink, com.microsoft.azure.cosmosdb.FeedOptions options)Reads all users in a database.rx.Observable<com.microsoft.azure.cosmosdb.ResourceResponse<com.microsoft.azure.cosmosdb.Attachment>>replaceAttachment(com.microsoft.azure.cosmosdb.Attachment attachment, com.microsoft.azure.cosmosdb.RequestOptions options)Replaces an attachment.rx.Observable<com.microsoft.azure.cosmosdb.ResourceResponse<com.microsoft.azure.cosmosdb.DocumentCollection>>replaceCollection(com.microsoft.azure.cosmosdb.DocumentCollection collection, com.microsoft.azure.cosmosdb.RequestOptions options)Replaces a document collection.rx.Observable<com.microsoft.azure.cosmosdb.ResourceResponse<com.microsoft.azure.cosmosdb.Document>>replaceDocument(com.microsoft.azure.cosmosdb.Document document, com.microsoft.azure.cosmosdb.RequestOptions options)Replaces a document with the passed in document.rx.Observable<com.microsoft.azure.cosmosdb.ResourceResponse<com.microsoft.azure.cosmosdb.Document>>replaceDocument(String documentLink, Object document, com.microsoft.azure.cosmosdb.RequestOptions options)Replaces a document using a POJO object.rx.Observable<com.microsoft.azure.cosmosdb.ResourceResponse<com.microsoft.azure.cosmosdb.Offer>>replaceOffer(com.microsoft.azure.cosmosdb.Offer offer)Replaces an offer.rx.Observable<com.microsoft.azure.cosmosdb.ResourceResponse<com.microsoft.azure.cosmosdb.Permission>>replacePermission(com.microsoft.azure.cosmosdb.Permission permission, com.microsoft.azure.cosmosdb.RequestOptions options)Replaces a permission.rx.Observable<com.microsoft.azure.cosmosdb.ResourceResponse<com.microsoft.azure.cosmosdb.StoredProcedure>>replaceStoredProcedure(com.microsoft.azure.cosmosdb.StoredProcedure storedProcedure, com.microsoft.azure.cosmosdb.RequestOptions options)Replaces a stored procedure.rx.Observable<com.microsoft.azure.cosmosdb.ResourceResponse<com.microsoft.azure.cosmosdb.Trigger>>replaceTrigger(com.microsoft.azure.cosmosdb.Trigger trigger, com.microsoft.azure.cosmosdb.RequestOptions options)Replaces a trigger.rx.Observable<com.microsoft.azure.cosmosdb.ResourceResponse<com.microsoft.azure.cosmosdb.User>>replaceUser(com.microsoft.azure.cosmosdb.User user, com.microsoft.azure.cosmosdb.RequestOptions options)Replaces a user.rx.Observable<com.microsoft.azure.cosmosdb.ResourceResponse<com.microsoft.azure.cosmosdb.UserDefinedFunction>>replaceUserDefinedFunction(com.microsoft.azure.cosmosdb.UserDefinedFunction udf, com.microsoft.azure.cosmosdb.RequestOptions options)Replaces a user defined function.rx.Observable<com.microsoft.azure.cosmosdb.MediaResponse>updateMedia(String mediaLink, InputStream mediaStream, com.microsoft.azure.cosmosdb.MediaOptions options)Updates a media by the media link.rx.Observable<com.microsoft.azure.cosmosdb.ResourceResponse<com.microsoft.azure.cosmosdb.Attachment>>upsertAttachment(String documentLink, com.microsoft.azure.cosmosdb.Attachment attachment, com.microsoft.azure.cosmosdb.RequestOptions options)Upserts an attachment.rx.Observable<com.microsoft.azure.cosmosdb.ResourceResponse<com.microsoft.azure.cosmosdb.Attachment>>upsertAttachment(String documentLink, InputStream mediaStream, com.microsoft.azure.cosmosdb.MediaOptions options, com.microsoft.azure.cosmosdb.RequestOptions requestOptions)Upserts an attachment to the media streamrx.Observable<com.microsoft.azure.cosmosdb.ResourceResponse<com.microsoft.azure.cosmosdb.Document>>upsertDocument(String collectionLink, Object document, com.microsoft.azure.cosmosdb.RequestOptions options, boolean disableAutomaticIdGeneration)Upserts a document.rx.Observable<com.microsoft.azure.cosmosdb.ResourceResponse<com.microsoft.azure.cosmosdb.Permission>>upsertPermission(String userLink, com.microsoft.azure.cosmosdb.Permission permission, com.microsoft.azure.cosmosdb.RequestOptions options)Upserts a permission.rx.Observable<com.microsoft.azure.cosmosdb.ResourceResponse<com.microsoft.azure.cosmosdb.StoredProcedure>>upsertStoredProcedure(String collectionLink, com.microsoft.azure.cosmosdb.StoredProcedure storedProcedure, com.microsoft.azure.cosmosdb.RequestOptions options)Upserts a stored procedure.rx.Observable<com.microsoft.azure.cosmosdb.ResourceResponse<com.microsoft.azure.cosmosdb.Trigger>>upsertTrigger(String collectionLink, com.microsoft.azure.cosmosdb.Trigger trigger, com.microsoft.azure.cosmosdb.RequestOptions options)Upserts a trigger.rx.Observable<com.microsoft.azure.cosmosdb.ResourceResponse<com.microsoft.azure.cosmosdb.User>>upsertUser(String databaseLink, com.microsoft.azure.cosmosdb.User user, com.microsoft.azure.cosmosdb.RequestOptions options)Upserts a user.rx.Observable<com.microsoft.azure.cosmosdb.ResourceResponse<com.microsoft.azure.cosmosdb.UserDefinedFunction>>upsertUserDefinedFunction(String collectionLink, com.microsoft.azure.cosmosdb.UserDefinedFunction udf, com.microsoft.azure.cosmosdb.RequestOptions options)Upserts a user defined function.
-
-
-
Method Detail
-
monitor
static void monitor(io.micrometer.core.instrument.MeterRegistry registry)
Adds a meter registry for reporting Direct TCP metrics- Parameters:
registry- a meter registry to use for reporting Direct TCP metrics
-
getServiceEndpoint
URI getServiceEndpoint()
Gets the default service endpoint as passed in by the user during construction.- Returns:
- the service endpoint URI
-
getWriteEndpoint
URI getWriteEndpoint()
Gets the current write endpoint chosen based on availability and preference.- Returns:
- the write endpoint URI
-
getReadEndpoint
URI getReadEndpoint()
Gets the current read endpoint chosen based on availability and preference.- Returns:
- the read endpoint URI
-
getConnectionPolicy
com.microsoft.azure.cosmosdb.ConnectionPolicy getConnectionPolicy()
Gets the connection policy- Returns:
- the connection policy
-
createDatabase
rx.Observable<com.microsoft.azure.cosmosdb.ResourceResponse<com.microsoft.azure.cosmosdb.Database>> createDatabase(com.microsoft.azure.cosmosdb.Database database, com.microsoft.azure.cosmosdb.RequestOptions options)Creates a database.After subscription the operation will be performed. The
Observableupon successful completion will contain a single resource response with the created database. In case of failure theObservablewill error.- Parameters:
database- the database.options- the request options.- Returns:
- an
Observablecontaining the single resource response with the created database or an error.
-
deleteDatabase
rx.Observable<com.microsoft.azure.cosmosdb.ResourceResponse<com.microsoft.azure.cosmosdb.Database>> deleteDatabase(String databaseLink, com.microsoft.azure.cosmosdb.RequestOptions options)
Deletes a database.After subscription the operation will be performed. The
Observableupon successful completion will contain a single resource response with the deleted database. In case of failure theObservablewill error.- Parameters:
databaseLink- the database link.options- the request options.- Returns:
- an
Observablecontaining the single resource response with the deleted database or an error.
-
readDatabase
rx.Observable<com.microsoft.azure.cosmosdb.ResourceResponse<com.microsoft.azure.cosmosdb.Database>> readDatabase(String databaseLink, com.microsoft.azure.cosmosdb.RequestOptions options)
Reads a database.After subscription the operation will be performed. The
Observableupon successful completion will contain a single resource response with the read database. In case of failure theObservablewill error.- Parameters:
databaseLink- the database link.options- the request options.- Returns:
- an
Observablecontaining the single resource response with the read database or an error.
-
readDatabases
rx.Observable<com.microsoft.azure.cosmosdb.FeedResponse<com.microsoft.azure.cosmosdb.Database>> readDatabases(com.microsoft.azure.cosmosdb.FeedOptions options)
Reads all databases.After subscription the operation will be performed. The
Observablewill contain one or several feed response of the read databases. In case of failure theObservablewill error.- Parameters:
options- the feed options.- Returns:
- an
Observablecontaining one or several feed response pages of read databases or an error.
-
queryDatabases
rx.Observable<com.microsoft.azure.cosmosdb.FeedResponse<com.microsoft.azure.cosmosdb.Database>> queryDatabases(String query, com.microsoft.azure.cosmosdb.FeedOptions options)
Query for databases.After subscription the operation will be performed. The
Observablewill contain one or several feed response of the read databases. In case of failure theObservablewill error.- Parameters:
query- the query.options- the feed options.- Returns:
- an
Observablecontaining one or several feed response pages of read databases or an error.
-
queryDatabases
rx.Observable<com.microsoft.azure.cosmosdb.FeedResponse<com.microsoft.azure.cosmosdb.Database>> queryDatabases(com.microsoft.azure.cosmosdb.SqlQuerySpec querySpec, com.microsoft.azure.cosmosdb.FeedOptions options)Query for databases.After subscription the operation will be performed. The
Observablewill contain one or several feed response of the obtained databases. In case of failure theObservablewill error.- Parameters:
querySpec- the SQL query specification.options- the feed options.- Returns:
- an
Observablecontaining one or several feed response pages of the obtained databases or an error.
-
createCollection
rx.Observable<com.microsoft.azure.cosmosdb.ResourceResponse<com.microsoft.azure.cosmosdb.DocumentCollection>> createCollection(String databaseLink, com.microsoft.azure.cosmosdb.DocumentCollection collection, com.microsoft.azure.cosmosdb.RequestOptions options)
Creates a document collection.After subscription the operation will be performed. The
Observableupon successful completion will contain a single resource response with the created collection. In case of failure theObservablewill error.- Parameters:
databaseLink- the database link.collection- the collection.options- the request options.- Returns:
- an
Observablecontaining the single resource response with the created collection or an error.
-
replaceCollection
rx.Observable<com.microsoft.azure.cosmosdb.ResourceResponse<com.microsoft.azure.cosmosdb.DocumentCollection>> replaceCollection(com.microsoft.azure.cosmosdb.DocumentCollection collection, com.microsoft.azure.cosmosdb.RequestOptions options)Replaces a document collection.After subscription the operation will be performed. The
Observableupon successful completion will contain a single resource response with the replaced document collection. In case of failure theObservablewill error.- Parameters:
collection- the document collection to use.options- the request options.- Returns:
- an
Observablecontaining the single resource response with the replaced document collection or an error.
-
deleteCollection
rx.Observable<com.microsoft.azure.cosmosdb.ResourceResponse<com.microsoft.azure.cosmosdb.DocumentCollection>> deleteCollection(String collectionLink, com.microsoft.azure.cosmosdb.RequestOptions options)
Deletes a document collection by the collection link.After subscription the operation will be performed. The
Observableupon successful completion will contain a single resource response for the deleted database. In case of failure theObservablewill error.- Parameters:
collectionLink- the collection link.options- the request options.- Returns:
- an
Observablecontaining the single resource response for the deleted database or an error.
-
readCollection
rx.Observable<com.microsoft.azure.cosmosdb.ResourceResponse<com.microsoft.azure.cosmosdb.DocumentCollection>> readCollection(String collectionLink, com.microsoft.azure.cosmosdb.RequestOptions options)
Reads a document collection by the collection link.After subscription the operation will be performed. The
Observableupon successful completion will contain a single resource response with the read collection. In case of failure theObservablewill error.- Parameters:
collectionLink- the collection link.options- the request options.- Returns:
- an
Observablecontaining the single resource response with the read collection or an error.
-
readCollections
rx.Observable<com.microsoft.azure.cosmosdb.FeedResponse<com.microsoft.azure.cosmosdb.DocumentCollection>> readCollections(String databaseLink, com.microsoft.azure.cosmosdb.FeedOptions options)
Reads all document collections in a database.After subscription the operation will be performed. The
Observablewill contain one or several feed response of the read collections. In case of failure theObservablewill error.- Parameters:
databaseLink- the database link.options- the fee options.- Returns:
- an
Observablecontaining one or several feed response pages of the read collections or an error.
-
queryCollections
rx.Observable<com.microsoft.azure.cosmosdb.FeedResponse<com.microsoft.azure.cosmosdb.DocumentCollection>> queryCollections(String databaseLink, String query, com.microsoft.azure.cosmosdb.FeedOptions options)
Query for document collections in a database.After subscription the operation will be performed. The
Observablewill contain one or several feed response of the obtained collections. In case of failure theObservablewill error.- Parameters:
databaseLink- the database link.query- the query.options- the feed options.- Returns:
- an
Observablecontaining one or several feed response pages of the obtained collections or an error.
-
queryCollections
rx.Observable<com.microsoft.azure.cosmosdb.FeedResponse<com.microsoft.azure.cosmosdb.DocumentCollection>> queryCollections(String databaseLink, com.microsoft.azure.cosmosdb.SqlQuerySpec querySpec, com.microsoft.azure.cosmosdb.FeedOptions options)
Query for document collections in a database.After subscription the operation will be performed. The
Observablewill contain one or several feed response of the obtained collections. In case of failure theObservablewill error.- Parameters:
databaseLink- the database link.querySpec- the SQL query specification.options- the feed options.- Returns:
- an
Observablecontaining one or several feed response pages of the obtained collections or an error.
-
createDocument
rx.Observable<com.microsoft.azure.cosmosdb.ResourceResponse<com.microsoft.azure.cosmosdb.Document>> createDocument(String collectionLink, Object document, com.microsoft.azure.cosmosdb.RequestOptions options, boolean disableAutomaticIdGeneration)
Creates a document.After subscription the operation will be performed. The
Observableupon successful completion will contain a single resource response with the created document. In case of failure theObservablewill error.- Parameters:
collectionLink- the link to the parent document collection.document- the document represented as a POJO or Document object.options- the request options.disableAutomaticIdGeneration- the flag for disabling automatic id generation.- Returns:
- an
Observablecontaining the single resource response with the created document or an error.
-
upsertDocument
rx.Observable<com.microsoft.azure.cosmosdb.ResourceResponse<com.microsoft.azure.cosmosdb.Document>> upsertDocument(String collectionLink, Object document, com.microsoft.azure.cosmosdb.RequestOptions options, boolean disableAutomaticIdGeneration)
Upserts a document.After subscription the operation will be performed. The
Observableupon successful completion will contain a single resource response with the upserted document. In case of failure theObservablewill error.- Parameters:
collectionLink- the link to the parent document collection.document- the document represented as a POJO or Document object to upsert.options- the request options.disableAutomaticIdGeneration- the flag for disabling automatic id generation.- Returns:
- an
Observablecontaining the single resource response with the upserted document or an error.
-
replaceDocument
rx.Observable<com.microsoft.azure.cosmosdb.ResourceResponse<com.microsoft.azure.cosmosdb.Document>> replaceDocument(String documentLink, Object document, com.microsoft.azure.cosmosdb.RequestOptions options)
Replaces a document using a POJO object.After subscription the operation will be performed. The
Observableupon successful completion will contain a single resource response with the replaced document. In case of failure theObservablewill error.- Parameters:
documentLink- the document link.document- the document represented as a POJO or Document object.options- the request options.- Returns:
- an
Observablecontaining the single resource response with the replaced document or an error.
-
replaceDocument
rx.Observable<com.microsoft.azure.cosmosdb.ResourceResponse<com.microsoft.azure.cosmosdb.Document>> replaceDocument(com.microsoft.azure.cosmosdb.Document document, com.microsoft.azure.cosmosdb.RequestOptions options)Replaces a document with the passed in document.After subscription the operation will be performed. The
Observableupon successful completion will contain a single resource response with the replaced document. In case of failure theObservablewill error.- Parameters:
document- the document to replace (containing the document id).options- the request options.- Returns:
- an
Observablecontaining the single resource response with the replaced document or an error.
-
deleteDocument
rx.Observable<com.microsoft.azure.cosmosdb.ResourceResponse<com.microsoft.azure.cosmosdb.Document>> deleteDocument(String documentLink, com.microsoft.azure.cosmosdb.RequestOptions options)
Deletes a document by the document link.After subscription the operation will be performed. The
Observableupon successful completion will contain a single resource response for the deleted document. In case of failure theObservablewill error.- Parameters:
documentLink- the document link.options- the request options.- Returns:
- an
Observablecontaining the single resource response for the deleted document or an error.
-
readDocument
rx.Observable<com.microsoft.azure.cosmosdb.ResourceResponse<com.microsoft.azure.cosmosdb.Document>> readDocument(String documentLink, com.microsoft.azure.cosmosdb.RequestOptions options)
Reads a document by the document link.After subscription the operation will be performed. The
Observableupon successful completion will contain a single resource response with the read document. In case of failure theObservablewill error.- Parameters:
documentLink- the document link.options- the request options.- Returns:
- an
Observablecontaining the single resource response with the read document or an error.
-
readDocuments
rx.Observable<com.microsoft.azure.cosmosdb.FeedResponse<com.microsoft.azure.cosmosdb.Document>> readDocuments(String collectionLink, com.microsoft.azure.cosmosdb.FeedOptions options)
Reads all documents in a document collection.After subscription the operation will be performed. The
Observablewill contain one or several feed response of the read documents. In case of failure theObservablewill error.- Parameters:
collectionLink- the collection link.options- the feed options.- Returns:
- an
Observablecontaining one or several feed response pages of the read documents or an error.
-
queryDocuments
rx.Observable<com.microsoft.azure.cosmosdb.FeedResponse<com.microsoft.azure.cosmosdb.Document>> queryDocuments(String collectionLink, String query, com.microsoft.azure.cosmosdb.FeedOptions options)
Query for documents in a document collection.After subscription the operation will be performed. The
Observablewill contain one or several feed response of the obtained documents. In case of failure theObservablewill error.- Parameters:
collectionLink- the link to the parent document collection.query- the query.options- the feed options.- Returns:
- an
Observablecontaining one or several feed response pages of the obtained document or an error.
-
queryDocuments
rx.Observable<com.microsoft.azure.cosmosdb.FeedResponse<com.microsoft.azure.cosmosdb.Document>> queryDocuments(String collectionLink, com.microsoft.azure.cosmosdb.SqlQuerySpec querySpec, com.microsoft.azure.cosmosdb.FeedOptions options)
Query for documents in a document collection.After subscription the operation will be performed. The
Observablewill contain one or several feed response of the obtained documents. In case of failure theObservablewill error.- Parameters:
collectionLink- the link to the parent document collection.querySpec- the SQL query specification.options- the feed options.- Returns:
- an
Observablecontaining one or several feed response pages of the obtained documents or an error.
-
queryDocumentChangeFeed
rx.Observable<com.microsoft.azure.cosmosdb.FeedResponse<com.microsoft.azure.cosmosdb.Document>> queryDocumentChangeFeed(String collectionLink, com.microsoft.azure.cosmosdb.ChangeFeedOptions changeFeedOptions)
Query for documents change feed in a document collection. After subscription the operation will be performed. TheObservablewill contain one or several feed response pages of the obtained documents. In case of failure theObservablewill error.- Parameters:
collectionLink- the link to the parent document collection.changeFeedOptions- the change feed options.- Returns:
- an
Observablecontaining one or several feed response pages of the obtained documents or an error.
-
readPartitionKeyRanges
rx.Observable<com.microsoft.azure.cosmosdb.FeedResponse<com.microsoft.azure.cosmosdb.PartitionKeyRange>> readPartitionKeyRanges(String collectionLink, com.microsoft.azure.cosmosdb.FeedOptions options)
Reads all partition key ranges in a document collection. After subscription the operation will be performed. TheObservablewill contain one or several feed response pages of the obtained partition key ranges. In case of failure theObservablewill error.- Parameters:
collectionLink- the link to the parent document collection.options- the feed options.- Returns:
- an
Observablecontaining one or several feed response pages of the obtained partition key ranges or an error.
-
createStoredProcedure
rx.Observable<com.microsoft.azure.cosmosdb.ResourceResponse<com.microsoft.azure.cosmosdb.StoredProcedure>> createStoredProcedure(String collectionLink, com.microsoft.azure.cosmosdb.StoredProcedure storedProcedure, com.microsoft.azure.cosmosdb.RequestOptions options)
Creates a stored procedure.After subscription the operation will be performed. The
Observableupon successful completion will contain a single resource response with the created stored procedure. In case of failure theObservablewill error.- Parameters:
collectionLink- the collection link.storedProcedure- the stored procedure to create.options- the request options.- Returns:
- an
Observablecontaining the single resource response with the created stored procedure or an error.
-
upsertStoredProcedure
rx.Observable<com.microsoft.azure.cosmosdb.ResourceResponse<com.microsoft.azure.cosmosdb.StoredProcedure>> upsertStoredProcedure(String collectionLink, com.microsoft.azure.cosmosdb.StoredProcedure storedProcedure, com.microsoft.azure.cosmosdb.RequestOptions options)
Upserts a stored procedure.After subscription the operation will be performed. The
Observableupon successful completion will contain a single resource response with the upserted stored procedure. In case of failure theObservablewill error.- Parameters:
collectionLink- the collection link.storedProcedure- the stored procedure to upsert.options- the request options.- Returns:
- an
Observablecontaining the single resource response with the upserted stored procedure or an error.
-
replaceStoredProcedure
rx.Observable<com.microsoft.azure.cosmosdb.ResourceResponse<com.microsoft.azure.cosmosdb.StoredProcedure>> replaceStoredProcedure(com.microsoft.azure.cosmosdb.StoredProcedure storedProcedure, com.microsoft.azure.cosmosdb.RequestOptions options)Replaces a stored procedure.After subscription the operation will be performed. The
Observableupon successful completion will contain a single resource response with the replaced stored procedure. In case of failure theObservablewill error.- Parameters:
storedProcedure- the stored procedure to use.options- the request options.- Returns:
- an
Observablecontaining the single resource response with the replaced stored procedure or an error.
-
deleteStoredProcedure
rx.Observable<com.microsoft.azure.cosmosdb.ResourceResponse<com.microsoft.azure.cosmosdb.StoredProcedure>> deleteStoredProcedure(String storedProcedureLink, com.microsoft.azure.cosmosdb.RequestOptions options)
Deletes a stored procedure by the stored procedure link.After subscription the operation will be performed. The
Observableupon successful completion will contain a single resource response for the deleted stored procedure. In case of failure theObservablewill error.- Parameters:
storedProcedureLink- the stored procedure link.options- the request options.- Returns:
- an
Observablecontaining the single resource response for the deleted stored procedure or an error.
-
readStoredProcedure
rx.Observable<com.microsoft.azure.cosmosdb.ResourceResponse<com.microsoft.azure.cosmosdb.StoredProcedure>> readStoredProcedure(String storedProcedureLink, com.microsoft.azure.cosmosdb.RequestOptions options)
Read a stored procedure by the stored procedure link.After subscription the operation will be performed. The
Observableupon successful completion will contain a single resource response with the read stored procedure. In case of failure theObservablewill error.- Parameters:
storedProcedureLink- the stored procedure link.options- the request options.- Returns:
- an
Observablecontaining the single resource response with the read stored procedure or an error.
-
readStoredProcedures
rx.Observable<com.microsoft.azure.cosmosdb.FeedResponse<com.microsoft.azure.cosmosdb.StoredProcedure>> readStoredProcedures(String collectionLink, com.microsoft.azure.cosmosdb.FeedOptions options)
Reads all stored procedures in a document collection link.After subscription the operation will be performed. The
Observablewill contain one or several feed response pages of the read stored procedures. In case of failure theObservablewill error.- Parameters:
collectionLink- the collection link.options- the feed options.- Returns:
- an
Observablecontaining one or several feed response pages of the read stored procedures or an error.
-
queryStoredProcedures
rx.Observable<com.microsoft.azure.cosmosdb.FeedResponse<com.microsoft.azure.cosmosdb.StoredProcedure>> queryStoredProcedures(String collectionLink, String query, com.microsoft.azure.cosmosdb.FeedOptions options)
Query for stored procedures in a document collection.After subscription the operation will be performed. The
Observablewill contain one or several feed response pages of the obtained stored procedures. In case of failure theObservablewill error.- Parameters:
collectionLink- the collection link.query- the query.options- the feed options.- Returns:
- an
Observablecontaining one or several feed response pages of the obtained stored procedures or an error.
-
queryStoredProcedures
rx.Observable<com.microsoft.azure.cosmosdb.FeedResponse<com.microsoft.azure.cosmosdb.StoredProcedure>> queryStoredProcedures(String collectionLink, com.microsoft.azure.cosmosdb.SqlQuerySpec querySpec, com.microsoft.azure.cosmosdb.FeedOptions options)
Query for stored procedures in a document collection.After subscription the operation will be performed. The
Observablewill contain one or several feed response pages of the obtained stored procedures. In case of failure theObservablewill error.- Parameters:
collectionLink- the collection link.querySpec- the SQL query specification.options- the feed options.- Returns:
- an
Observablecontaining one or several feed response pages of the obtained stored procedures or an error.
-
executeStoredProcedure
rx.Observable<com.microsoft.azure.cosmosdb.StoredProcedureResponse> executeStoredProcedure(String storedProcedureLink, Object[] procedureParams)
Executes a stored procedure by the stored procedure link.After subscription the operation will be performed. The
Observableupon successful completion will contain a single resource response with the stored procedure response. In case of failure theObservablewill error.- Parameters:
storedProcedureLink- the stored procedure link.procedureParams- the array of procedure parameter values.- Returns:
- an
Observablecontaining the single resource response with the stored procedure response or an error.
-
executeStoredProcedure
rx.Observable<com.microsoft.azure.cosmosdb.StoredProcedureResponse> executeStoredProcedure(String storedProcedureLink, com.microsoft.azure.cosmosdb.RequestOptions options, Object[] procedureParams)
Executes a stored procedure by the stored procedure link.After subscription the operation will be performed. The
Observableupon successful completion will contain a single resource response with the stored procedure response. In case of failure theObservablewill error.- Parameters:
storedProcedureLink- the stored procedure link.options- the request options.procedureParams- the array of procedure parameter values.- Returns:
- an
Observablecontaining the single resource response with the stored procedure response or an error.
-
createTrigger
rx.Observable<com.microsoft.azure.cosmosdb.ResourceResponse<com.microsoft.azure.cosmosdb.Trigger>> createTrigger(String collectionLink, com.microsoft.azure.cosmosdb.Trigger trigger, com.microsoft.azure.cosmosdb.RequestOptions options)
Creates a trigger.After subscription the operation will be performed. The
Observableupon successful completion will contain a single resource response with the created trigger. In case of failure theObservablewill error.- Parameters:
collectionLink- the collection link.trigger- the trigger.options- the request options.- Returns:
- an
Observablecontaining the single resource response with the created trigger or an error.
-
upsertTrigger
rx.Observable<com.microsoft.azure.cosmosdb.ResourceResponse<com.microsoft.azure.cosmosdb.Trigger>> upsertTrigger(String collectionLink, com.microsoft.azure.cosmosdb.Trigger trigger, com.microsoft.azure.cosmosdb.RequestOptions options)
Upserts a trigger.After subscription the operation will be performed. The
Observableupon successful completion will contain a single resource response with the upserted trigger. In case of failure theObservablewill error.- Parameters:
collectionLink- the collection link.trigger- the trigger to upsert.options- the request options.- Returns:
- an
Observablecontaining the single resource response with the upserted trigger or an error.
-
replaceTrigger
rx.Observable<com.microsoft.azure.cosmosdb.ResourceResponse<com.microsoft.azure.cosmosdb.Trigger>> replaceTrigger(com.microsoft.azure.cosmosdb.Trigger trigger, com.microsoft.azure.cosmosdb.RequestOptions options)Replaces a trigger.After subscription the operation will be performed. The
Observableupon successful completion will contain a single resource response with the replaced trigger. In case of failure theObservablewill error.- Parameters:
trigger- the trigger to use.options- the request options.- Returns:
- an
Observablecontaining the single resource response with the replaced trigger or an error.
-
deleteTrigger
rx.Observable<com.microsoft.azure.cosmosdb.ResourceResponse<com.microsoft.azure.cosmosdb.Trigger>> deleteTrigger(String triggerLink, com.microsoft.azure.cosmosdb.RequestOptions options)
Deletes a trigger.After subscription the operation will be performed. The
Observableupon successful completion will contain a single resource response for the deleted trigger. In case of failure theObservablewill error.- Parameters:
triggerLink- the trigger link.options- the request options.- Returns:
- an
Observablecontaining the single resource response for the deleted trigger or an error.
-
readTrigger
rx.Observable<com.microsoft.azure.cosmosdb.ResourceResponse<com.microsoft.azure.cosmosdb.Trigger>> readTrigger(String triggerLink, com.microsoft.azure.cosmosdb.RequestOptions options)
Reads a trigger by the trigger link.After subscription the operation will be performed. The
Observableupon successful completion will contain a single resource response for the read trigger. In case of failure theObservablewill error.- Parameters:
triggerLink- the trigger link.options- the request options.- Returns:
- an
Observablecontaining the single resource response for the read trigger or an error.
-
readTriggers
rx.Observable<com.microsoft.azure.cosmosdb.FeedResponse<com.microsoft.azure.cosmosdb.Trigger>> readTriggers(String collectionLink, com.microsoft.azure.cosmosdb.FeedOptions options)
Reads all triggers in a document collection.After subscription the operation will be performed. The
Observablewill contain one or several feed response pages of the read triggers. In case of failure theObservablewill error.- Parameters:
collectionLink- the collection link.options- the feed options.- Returns:
- an
Observablecontaining one or several feed response pages of the read triggers or an error.
-
queryTriggers
rx.Observable<com.microsoft.azure.cosmosdb.FeedResponse<com.microsoft.azure.cosmosdb.Trigger>> queryTriggers(String collectionLink, String query, com.microsoft.azure.cosmosdb.FeedOptions options)
Query for triggers.After subscription the operation will be performed. The
Observablewill contain one or several feed response pages of the obtained triggers. In case of failure theObservablewill error.- Parameters:
collectionLink- the collection link.query- the query.options- the feed options.- Returns:
- an
Observablecontaining one or several feed response pages of the obtained triggers or an error.
-
queryTriggers
rx.Observable<com.microsoft.azure.cosmosdb.FeedResponse<com.microsoft.azure.cosmosdb.Trigger>> queryTriggers(String collectionLink, com.microsoft.azure.cosmosdb.SqlQuerySpec querySpec, com.microsoft.azure.cosmosdb.FeedOptions options)
Query for triggers.After subscription the operation will be performed. The
Observablewill contain one or several feed response pages of the obtained triggers. In case of failure theObservablewill error.- Parameters:
collectionLink- the collection link.querySpec- the SQL query specification.options- the feed options.- Returns:
- an
Observablecontaining one or several feed response pages of the obtained triggers or an error.
-
createUserDefinedFunction
rx.Observable<com.microsoft.azure.cosmosdb.ResourceResponse<com.microsoft.azure.cosmosdb.UserDefinedFunction>> createUserDefinedFunction(String collectionLink, com.microsoft.azure.cosmosdb.UserDefinedFunction udf, com.microsoft.azure.cosmosdb.RequestOptions options)
Creates a user defined function.After subscription the operation will be performed. The
Observableupon successful completion will contain a single resource response with the created user defined function. In case of failure theObservablewill error.- Parameters:
collectionLink- the collection link.udf- the user defined function.options- the request options.- Returns:
- an
Observablecontaining the single resource response with the created user defined function or an error.
-
upsertUserDefinedFunction
rx.Observable<com.microsoft.azure.cosmosdb.ResourceResponse<com.microsoft.azure.cosmosdb.UserDefinedFunction>> upsertUserDefinedFunction(String collectionLink, com.microsoft.azure.cosmosdb.UserDefinedFunction udf, com.microsoft.azure.cosmosdb.RequestOptions options)
Upserts a user defined function.After subscription the operation will be performed. The
Observableupon successful completion will contain a single resource response with the upserted user defined function. In case of failure theObservablewill error.- Parameters:
collectionLink- the collection link.udf- the user defined function to upsert.options- the request options.- Returns:
- an
Observablecontaining the single resource response with the upserted user defined function or an error.
-
replaceUserDefinedFunction
rx.Observable<com.microsoft.azure.cosmosdb.ResourceResponse<com.microsoft.azure.cosmosdb.UserDefinedFunction>> replaceUserDefinedFunction(com.microsoft.azure.cosmosdb.UserDefinedFunction udf, com.microsoft.azure.cosmosdb.RequestOptions options)Replaces a user defined function.After subscription the operation will be performed. The
Observableupon successful completion will contain a single resource response with the replaced user defined function. In case of failure theObservablewill error.- Parameters:
udf- the user defined function.options- the request options.- Returns:
- an
Observablecontaining the single resource response with the replaced user defined function or an error.
-
deleteUserDefinedFunction
rx.Observable<com.microsoft.azure.cosmosdb.ResourceResponse<com.microsoft.azure.cosmosdb.UserDefinedFunction>> deleteUserDefinedFunction(String udfLink, com.microsoft.azure.cosmosdb.RequestOptions options)
Deletes a user defined function.After subscription the operation will be performed. The
Observableupon successful completion will contain a single resource response for the deleted user defined function. In case of failure theObservablewill error.- Parameters:
udfLink- the user defined function link.options- the request options.- Returns:
- an
Observablecontaining the single resource response for the deleted user defined function or an error.
-
readUserDefinedFunction
rx.Observable<com.microsoft.azure.cosmosdb.ResourceResponse<com.microsoft.azure.cosmosdb.UserDefinedFunction>> readUserDefinedFunction(String udfLink, com.microsoft.azure.cosmosdb.RequestOptions options)
Read a user defined function.After subscription the operation will be performed. The
Observableupon successful completion will contain a single resource response for the read user defined function. In case of failure theObservablewill error.- Parameters:
udfLink- the user defined function link.options- the request options.- Returns:
- an
Observablecontaining the single resource response for the read user defined function or an error.
-
readUserDefinedFunctions
rx.Observable<com.microsoft.azure.cosmosdb.FeedResponse<com.microsoft.azure.cosmosdb.UserDefinedFunction>> readUserDefinedFunctions(String collectionLink, com.microsoft.azure.cosmosdb.FeedOptions options)
Reads all user defined functions in a document collection.After subscription the operation will be performed. The
Observablewill contain one or several feed response pages of the read user defined functions. In case of failure theObservablewill error.- Parameters:
collectionLink- the collection link.options- the feed options.- Returns:
- an
Observablecontaining one or several feed response pages of the read user defined functions or an error.
-
queryUserDefinedFunctions
rx.Observable<com.microsoft.azure.cosmosdb.FeedResponse<com.microsoft.azure.cosmosdb.UserDefinedFunction>> queryUserDefinedFunctions(String collectionLink, String query, com.microsoft.azure.cosmosdb.FeedOptions options)
Query for user defined functions.After subscription the operation will be performed. The
Observablewill contain one or several feed response pages of the obtained user defined functions. In case of failure theObservablewill error.- Parameters:
collectionLink- the collection link.query- the query.options- the feed options.- Returns:
- an
Observablecontaining one or several feed response pages of the obtained user defined functions or an error.
-
queryUserDefinedFunctions
rx.Observable<com.microsoft.azure.cosmosdb.FeedResponse<com.microsoft.azure.cosmosdb.UserDefinedFunction>> queryUserDefinedFunctions(String collectionLink, com.microsoft.azure.cosmosdb.SqlQuerySpec querySpec, com.microsoft.azure.cosmosdb.FeedOptions options)
Query for user defined functions.After subscription the operation will be performed. The
Observablewill contain one or several feed response pages of the obtained user defined functions. In case of failure theObservablewill error.- Parameters:
collectionLink- the collection link.querySpec- the SQL query specification.options- the feed options.- Returns:
- an
Observablecontaining one or several feed response pages of the obtained user defined functions or an error.
-
createAttachment
rx.Observable<com.microsoft.azure.cosmosdb.ResourceResponse<com.microsoft.azure.cosmosdb.Attachment>> createAttachment(String documentLink, com.microsoft.azure.cosmosdb.Attachment attachment, com.microsoft.azure.cosmosdb.RequestOptions options)
Creates an attachment.After subscription the operation will be performed. The
Observableupon successful completion will contain a single resource response with the created attachment. In case of failure theObservablewill error.- Parameters:
documentLink- the document link.attachment- the attachment to create.options- the request options.- Returns:
- an
Observablecontaining the single resource response with the created attachment or an error.
-
upsertAttachment
rx.Observable<com.microsoft.azure.cosmosdb.ResourceResponse<com.microsoft.azure.cosmosdb.Attachment>> upsertAttachment(String documentLink, com.microsoft.azure.cosmosdb.Attachment attachment, com.microsoft.azure.cosmosdb.RequestOptions options)
Upserts an attachment.After subscription the operation will be performed. The
Observableupon successful completion will contain a single resource response with the upserted attachment. In case of failure theObservablewill error.- Parameters:
documentLink- the document link.attachment- the attachment to upsert.options- the request options.- Returns:
- an
Observablecontaining the single resource response with the upserted attachment or an error.
-
replaceAttachment
rx.Observable<com.microsoft.azure.cosmosdb.ResourceResponse<com.microsoft.azure.cosmosdb.Attachment>> replaceAttachment(com.microsoft.azure.cosmosdb.Attachment attachment, com.microsoft.azure.cosmosdb.RequestOptions options)Replaces an attachment.After subscription the operation will be performed. The
Observableupon successful completion will contain a single resource response with the replaced attachment. In case of failure theObservablewill error.- Parameters:
attachment- the attachment to use.options- the request options.- Returns:
- an
Observablecontaining the single resource response with the replaced attachment or an error.
-
deleteAttachment
rx.Observable<com.microsoft.azure.cosmosdb.ResourceResponse<com.microsoft.azure.cosmosdb.Attachment>> deleteAttachment(String attachmentLink, com.microsoft.azure.cosmosdb.RequestOptions options)
Deletes an attachment.After subscription the operation will be performed. The
Observableupon successful completion will contain a single resource response for the deleted attachment. In case of failure theObservablewill error.- Parameters:
attachmentLink- the attachment link.options- the request options.- Returns:
- an
Observablecontaining the single resource response for the deleted attachment or an error.
-
readAttachment
rx.Observable<com.microsoft.azure.cosmosdb.ResourceResponse<com.microsoft.azure.cosmosdb.Attachment>> readAttachment(String attachmentLink, com.microsoft.azure.cosmosdb.RequestOptions options)
Reads an attachment.After subscription the operation will be performed. The
Observableupon successful completion will contain a single resource response with the read attachment. In case of failure theObservablewill error.- Parameters:
attachmentLink- the attachment link.options- the request options.- Returns:
- an
Observablecontaining the single resource response with the read attachment or an error.
-
readAttachments
rx.Observable<com.microsoft.azure.cosmosdb.FeedResponse<com.microsoft.azure.cosmosdb.Attachment>> readAttachments(String documentLink, com.microsoft.azure.cosmosdb.FeedOptions options)
Reads all attachments in a document.After subscription the operation will be performed. The
Observablewill contain one or several feed response pages of the read attachments. In case of failure theObservablewill error.- Parameters:
documentLink- the document link.options- the feed options.- Returns:
- an
Observablecontaining one or several feed response pages of the read attachments or an error.
-
readMedia
rx.Observable<com.microsoft.azure.cosmosdb.MediaResponse> readMedia(String mediaLink)
Reads a media by the media link.- Parameters:
mediaLink- the media link.- Returns:
- the media response.
-
updateMedia
rx.Observable<com.microsoft.azure.cosmosdb.MediaResponse> updateMedia(String mediaLink, InputStream mediaStream, com.microsoft.azure.cosmosdb.MediaOptions options)
Updates a media by the media link.- Parameters:
mediaLink- the media link.mediaStream- the media stream to upload.options- the media options.- Returns:
- the media response.
-
queryAttachments
rx.Observable<com.microsoft.azure.cosmosdb.FeedResponse<com.microsoft.azure.cosmosdb.Attachment>> queryAttachments(String documentLink, String query, com.microsoft.azure.cosmosdb.FeedOptions options)
Query for attachments.After subscription the operation will be performed. The
Observablewill contain one or several feed response pages of the obtained attachments. In case of failure theObservablewill error.- Parameters:
documentLink- the document link.query- the query.options- the feed options.- Returns:
- an
Observablecontaining one or several feed response pages of the obtained attachments or an error.
-
queryAttachments
rx.Observable<com.microsoft.azure.cosmosdb.FeedResponse<com.microsoft.azure.cosmosdb.Attachment>> queryAttachments(String documentLink, com.microsoft.azure.cosmosdb.SqlQuerySpec querySpec, com.microsoft.azure.cosmosdb.FeedOptions options)
Query for attachments.After subscription the operation will be performed. The
Observablewill contain one or several feed response pages of the obtained attachments. In case of failure theObservablewill error.- Parameters:
documentLink- the document link.querySpec- the SQL query specification.options- the feed options.- Returns:
- an
Observablecontaining one or several feed response pages of the obtained attachments or an error.
-
createAttachment
rx.Observable<com.microsoft.azure.cosmosdb.ResourceResponse<com.microsoft.azure.cosmosdb.Attachment>> createAttachment(String documentLink, InputStream mediaStream, com.microsoft.azure.cosmosdb.MediaOptions options, com.microsoft.azure.cosmosdb.RequestOptions requestOptions)
Creates an attachment.After subscription the operation will be performed. The
Observableupon successful completion will contain a single resource response with the created attachment. In case of failure theObservablewill error.- Parameters:
documentLink- the document link.mediaStream- the media stream for creating the attachment.options- the media options.requestOptions- the request options- Returns:
- an
Observablecontaining the single resource response with the created attachment or an error.
-
upsertAttachment
rx.Observable<com.microsoft.azure.cosmosdb.ResourceResponse<com.microsoft.azure.cosmosdb.Attachment>> upsertAttachment(String documentLink, InputStream mediaStream, com.microsoft.azure.cosmosdb.MediaOptions options, com.microsoft.azure.cosmosdb.RequestOptions requestOptions)
Upserts an attachment to the media streamAfter subscription the operation will be performed. The
Observableupon successful completion will contain a single resource response with the upserted attachment. In case of failure theObservablewill error.- Parameters:
documentLink- the document link.mediaStream- the media stream for upserting the attachment.options- the media options.requestOptions- the request options- Returns:
- an
Observablecontaining the single resource response with the upserted attachment or an error.
-
readConflict
rx.Observable<com.microsoft.azure.cosmosdb.ResourceResponse<com.microsoft.azure.cosmosdb.Conflict>> readConflict(String conflictLink, com.microsoft.azure.cosmosdb.RequestOptions options)
Reads a conflict.After subscription the operation will be performed. The
Observableupon successful completion will contain a single resource response with the read conflict. In case of failure theObservablewill error.- Parameters:
conflictLink- the conflict link.options- the request options.- Returns:
- an
Observablecontaining the single resource response with the read conflict or an error.
-
readConflicts
rx.Observable<com.microsoft.azure.cosmosdb.FeedResponse<com.microsoft.azure.cosmosdb.Conflict>> readConflicts(String collectionLink, com.microsoft.azure.cosmosdb.FeedOptions options)
Reads all conflicts in a document collection.After subscription the operation will be performed. The
Observablewill contain one or several feed response pages of the read conflicts. In case of failure theObservablewill error.- Parameters:
collectionLink- the collection link.options- the feed options.- Returns:
- an
Observablecontaining one or several feed response pages of the read conflicts or an error.
-
queryConflicts
rx.Observable<com.microsoft.azure.cosmosdb.FeedResponse<com.microsoft.azure.cosmosdb.Conflict>> queryConflicts(String collectionLink, String query, com.microsoft.azure.cosmosdb.FeedOptions options)
Query for conflicts.After subscription the operation will be performed. The
Observablewill contain one or several feed response pages of the obtained conflicts. In case of failure theObservablewill error.- Parameters:
collectionLink- the collection link.query- the query.options- the feed options.- Returns:
- an
Observablecontaining one or several feed response pages of the obtained conflicts or an error.
-
queryConflicts
rx.Observable<com.microsoft.azure.cosmosdb.FeedResponse<com.microsoft.azure.cosmosdb.Conflict>> queryConflicts(String collectionLink, com.microsoft.azure.cosmosdb.SqlQuerySpec querySpec, com.microsoft.azure.cosmosdb.FeedOptions options)
Query for conflicts.After subscription the operation will be performed. The
Observablewill contain one or several feed response pages of the obtained conflicts. In case of failure theObservablewill error.- Parameters:
collectionLink- the collection link.querySpec- the SQL query specification.options- the feed options.- Returns:
- an
Observablecontaining one or several feed response pages of the obtained conflicts or an error.
-
deleteConflict
rx.Observable<com.microsoft.azure.cosmosdb.ResourceResponse<com.microsoft.azure.cosmosdb.Conflict>> deleteConflict(String conflictLink, com.microsoft.azure.cosmosdb.RequestOptions options)
Deletes a conflict.After subscription the operation will be performed. The
Observableupon successful completion will contain a single resource response for the deleted conflict. In case of failure theObservablewill error.- Parameters:
conflictLink- the conflict link.options- the request options.- Returns:
- an
Observablecontaining the single resource response for the deleted conflict or an error.
-
createUser
rx.Observable<com.microsoft.azure.cosmosdb.ResourceResponse<com.microsoft.azure.cosmosdb.User>> createUser(String databaseLink, com.microsoft.azure.cosmosdb.User user, com.microsoft.azure.cosmosdb.RequestOptions options)
Creates a user.After subscription the operation will be performed. The
Observableupon successful completion will contain a single resource response with the created user. In case of failure theObservablewill error.- Parameters:
databaseLink- the database link.user- the user to create.options- the request options.- Returns:
- an
Observablecontaining the single resource response with the created user or an error.
-
upsertUser
rx.Observable<com.microsoft.azure.cosmosdb.ResourceResponse<com.microsoft.azure.cosmosdb.User>> upsertUser(String databaseLink, com.microsoft.azure.cosmosdb.User user, com.microsoft.azure.cosmosdb.RequestOptions options)
Upserts a user.After subscription the operation will be performed. The
Observableupon successful completion will contain a single resource response with the upserted user. In case of failure theObservablewill error.- Parameters:
databaseLink- the database link.user- the user to upsert.options- the request options.- Returns:
- an
Observablecontaining the single resource response with the upserted user or an error.
-
replaceUser
rx.Observable<com.microsoft.azure.cosmosdb.ResourceResponse<com.microsoft.azure.cosmosdb.User>> replaceUser(com.microsoft.azure.cosmosdb.User user, com.microsoft.azure.cosmosdb.RequestOptions options)Replaces a user.After subscription the operation will be performed. The
Observableupon successful completion will contain a single resource response with the replaced user. In case of failure theObservablewill error.- Parameters:
user- the user to use.options- the request options.- Returns:
- an
Observablecontaining the single resource response with the replaced user or an error.
-
deleteUser
rx.Observable<com.microsoft.azure.cosmosdb.ResourceResponse<com.microsoft.azure.cosmosdb.User>> deleteUser(String userLink, com.microsoft.azure.cosmosdb.RequestOptions options)
Deletes a user.After subscription the operation will be performed. The
Observableupon successful completion will contain a single resource response for the deleted user. In case of failure theObservablewill error.- Parameters:
userLink- the user link.options- the request options.- Returns:
- an
Observablecontaining the single resource response for the deleted user or an error.
-
readUser
rx.Observable<com.microsoft.azure.cosmosdb.ResourceResponse<com.microsoft.azure.cosmosdb.User>> readUser(String userLink, com.microsoft.azure.cosmosdb.RequestOptions options)
Reads a user.After subscription the operation will be performed. The
Observableupon successful completion will contain a single resource response with the read user. In case of failure theObservablewill error.- Parameters:
userLink- the user link.options- the request options.- Returns:
- an
Observablecontaining the single resource response with the read user or an error.
-
readUsers
rx.Observable<com.microsoft.azure.cosmosdb.FeedResponse<com.microsoft.azure.cosmosdb.User>> readUsers(String databaseLink, com.microsoft.azure.cosmosdb.FeedOptions options)
Reads all users in a database.After subscription the operation will be performed. The
Observablewill contain one or several feed response pages of the read users. In case of failure theObservablewill error.- Parameters:
databaseLink- the database link.options- the feed options.- Returns:
- an
Observablecontaining one or several feed response pages of the read users or an error.
-
queryUsers
rx.Observable<com.microsoft.azure.cosmosdb.FeedResponse<com.microsoft.azure.cosmosdb.User>> queryUsers(String databaseLink, String query, com.microsoft.azure.cosmosdb.FeedOptions options)
Query for users.After subscription the operation will be performed. The
Observablewill contain one or several feed response pages of the obtained users. In case of failure theObservablewill error.- Parameters:
databaseLink- the database link.query- the query.options- the feed options.- Returns:
- an
Observablecontaining one or several feed response pages of the obtained users or an error.
-
queryUsers
rx.Observable<com.microsoft.azure.cosmosdb.FeedResponse<com.microsoft.azure.cosmosdb.User>> queryUsers(String databaseLink, com.microsoft.azure.cosmosdb.SqlQuerySpec querySpec, com.microsoft.azure.cosmosdb.FeedOptions options)
Query for users.After subscription the operation will be performed. The
Observablewill contain one or several feed response pages of the obtained users. In case of failure theObservablewill error.- Parameters:
databaseLink- the database link.querySpec- the SQL query specification.options- the feed options.- Returns:
- an
Observablecontaining one or several feed response pages of the obtained users or an error.
-
createPermission
rx.Observable<com.microsoft.azure.cosmosdb.ResourceResponse<com.microsoft.azure.cosmosdb.Permission>> createPermission(String userLink, com.microsoft.azure.cosmosdb.Permission permission, com.microsoft.azure.cosmosdb.RequestOptions options)
Creates a permission.After subscription the operation will be performed. The
Observableupon successful completion will contain a single resource response with the created permission. In case of failure theObservablewill error.- Parameters:
userLink- the user link.permission- the permission to create.options- the request options.- Returns:
- an
Observablecontaining the single resource response with the created permission or an error.
-
upsertPermission
rx.Observable<com.microsoft.azure.cosmosdb.ResourceResponse<com.microsoft.azure.cosmosdb.Permission>> upsertPermission(String userLink, com.microsoft.azure.cosmosdb.Permission permission, com.microsoft.azure.cosmosdb.RequestOptions options)
Upserts a permission.After subscription the operation will be performed. The
Observableupon successful completion will contain a single resource response with the upserted permission. In case of failure theObservablewill error.- Parameters:
userLink- the user link.permission- the permission to upsert.options- the request options.- Returns:
- an
Observablecontaining the single resource response with the upserted permission or an error.
-
replacePermission
rx.Observable<com.microsoft.azure.cosmosdb.ResourceResponse<com.microsoft.azure.cosmosdb.Permission>> replacePermission(com.microsoft.azure.cosmosdb.Permission permission, com.microsoft.azure.cosmosdb.RequestOptions options)Replaces a permission.After subscription the operation will be performed. The
Observableupon successful completion will contain a single resource response with the replaced permission. In case of failure theObservablewill error.- Parameters:
permission- the permission to use.options- the request options.- Returns:
- an
Observablecontaining the single resource response with the replaced permission or an error.
-
deletePermission
rx.Observable<com.microsoft.azure.cosmosdb.ResourceResponse<com.microsoft.azure.cosmosdb.Permission>> deletePermission(String permissionLink, com.microsoft.azure.cosmosdb.RequestOptions options)
Deletes a permission.After subscription the operation will be performed. The
Observableupon successful completion will contain a single resource response for the deleted permission. In case of failure theObservablewill error.- Parameters:
permissionLink- the permission link.options- the request options.- Returns:
- an
Observablecontaining the single resource response for the deleted permission or an error.
-
readPermission
rx.Observable<com.microsoft.azure.cosmosdb.ResourceResponse<com.microsoft.azure.cosmosdb.Permission>> readPermission(String permissionLink, com.microsoft.azure.cosmosdb.RequestOptions options)
Reads a permission.After subscription the operation will be performed. The
Observableupon successful completion will contain a single resource response with the read permission. In case of failure theObservablewill error.- Parameters:
permissionLink- the permission link.options- the request options.- Returns:
- an
Observablecontaining the single resource response with the read permission or an error.
-
readPermissions
rx.Observable<com.microsoft.azure.cosmosdb.FeedResponse<com.microsoft.azure.cosmosdb.Permission>> readPermissions(String permissionLink, com.microsoft.azure.cosmosdb.FeedOptions options)
Reads all permissions.After subscription the operation will be performed. The
Observablewill contain one or several feed response pages of the read permissions. In case of failure theObservablewill error.- Parameters:
permissionLink- the permission link.options- the feed options.- Returns:
- an
Observablecontaining one or several feed response pages of the read permissions or an error.
-
queryPermissions
rx.Observable<com.microsoft.azure.cosmosdb.FeedResponse<com.microsoft.azure.cosmosdb.Permission>> queryPermissions(String permissionLink, String query, com.microsoft.azure.cosmosdb.FeedOptions options)
Query for permissions.After subscription the operation will be performed. The
Observablewill contain one or several feed response pages of the obtained permissions. In case of failure theObservablewill error.- Parameters:
permissionLink- the permission link.query- the query.options- the feed options.- Returns:
- an
Observablecontaining one or several feed response pages of the obtained permissions or an error.
-
queryPermissions
rx.Observable<com.microsoft.azure.cosmosdb.FeedResponse<com.microsoft.azure.cosmosdb.Permission>> queryPermissions(String permissionLink, com.microsoft.azure.cosmosdb.SqlQuerySpec querySpec, com.microsoft.azure.cosmosdb.FeedOptions options)
Query for permissions.After subscription the operation will be performed. The
Observablewill contain one or several feed response pages of the obtained permissions. In case of failure theObservablewill error.- Parameters:
permissionLink- the permission link.querySpec- the SQL query specification.options- the feed options.- Returns:
- an
Observablecontaining one or several feed response pages of the obtained permissions or an error.
-
replaceOffer
rx.Observable<com.microsoft.azure.cosmosdb.ResourceResponse<com.microsoft.azure.cosmosdb.Offer>> replaceOffer(com.microsoft.azure.cosmosdb.Offer offer)
Replaces an offer.After subscription the operation will be performed. The
Observableupon successful completion will contain a single resource response with the replaced offer. In case of failure theObservablewill error.- Parameters:
offer- the offer to use.- Returns:
- an
Observablecontaining the single resource response with the replaced offer or an error.
-
readOffer
rx.Observable<com.microsoft.azure.cosmosdb.ResourceResponse<com.microsoft.azure.cosmosdb.Offer>> readOffer(String offerLink)
Reads an offer.After subscription the operation will be performed. The
Observableupon successful completion will contain a single resource response with the read offer. In case of failure theObservablewill error.- Parameters:
offerLink- the offer link.- Returns:
- an
Observablecontaining the single resource response with the read offer or an error.
-
readOffers
rx.Observable<com.microsoft.azure.cosmosdb.FeedResponse<com.microsoft.azure.cosmosdb.Offer>> readOffers(com.microsoft.azure.cosmosdb.FeedOptions options)
Reads offers.After subscription the operation will be performed. The
Observablewill contain one or several feed response pages of the read offers. In case of failure theObservablewill error.- Parameters:
options- the feed options.- Returns:
- an
Observablecontaining one or several feed response pages of the read offers or an error.
-
queryOffers
rx.Observable<com.microsoft.azure.cosmosdb.FeedResponse<com.microsoft.azure.cosmosdb.Offer>> queryOffers(String query, com.microsoft.azure.cosmosdb.FeedOptions options)
Query for offers in a database.After subscription the operation will be performed. The
Observablewill contain one or several feed response pages of obtained obtained offers. In case of failure theObservablewill error.- Parameters:
query- the query.options- the feed options.- Returns:
- an
Observablecontaining one or several feed response pages of the obtained offers or an error.
-
queryOffers
rx.Observable<com.microsoft.azure.cosmosdb.FeedResponse<com.microsoft.azure.cosmosdb.Offer>> queryOffers(com.microsoft.azure.cosmosdb.SqlQuerySpec querySpec, com.microsoft.azure.cosmosdb.FeedOptions options)Query for offers in a database.After subscription the operation will be performed. The
Observablewill contain one or several feed response pages of obtained obtained offers. In case of failure theObservablewill error.- Parameters:
querySpec- the query specification.options- the feed options.- Returns:
- an
Observablecontaining one or several feed response pages of the obtained offers or an error.
-
getDatabaseAccount
rx.Observable<com.microsoft.azure.cosmosdb.DatabaseAccount> getDatabaseAccount()
Gets database account information.After subscription the operation will be performed. The
Observableupon successful completion will contain a single resource response with the database account. In case of failure theObservablewill error.- Returns:
- an
Observablecontaining the single resource response with the database account or an error.
-
close
void close()
Close thisAsyncDocumentClientinstance and cleans up the resources.
-
-