public class CosmosScripts extends Object
public CosmosStoredProcedureResponse createStoredProcedure(CosmosStoredProcedureProperties properties) throws CosmosClientException
properties
- the propertiesCosmosClientException
- the cosmos client exceptionpublic CosmosStoredProcedureResponse createStoredProcedure(CosmosStoredProcedureProperties properties, CosmosStoredProcedureRequestOptions options) throws CosmosClientException
properties
- the propertiesoptions
- the optionsCosmosClientException
- the cosmos client exceptionpublic CosmosContinuablePagedIterable<CosmosStoredProcedureProperties> readAllStoredProcedures(FeedOptions options)
CosmosContinuablePagedIterable
.options
- the optionsCosmosContinuablePagedIterable
public CosmosContinuablePagedIterable<CosmosStoredProcedureProperties> queryStoredProcedures(String query, FeedOptions options)
CosmosContinuablePagedIterable
.query
- the queryoptions
- the optionsCosmosContinuablePagedIterable
public CosmosContinuablePagedIterable<CosmosStoredProcedureProperties> queryStoredProcedures(SqlQuerySpec querySpec, FeedOptions options)
CosmosContinuablePagedIterable
.querySpec
- the query specoptions
- the optionsCosmosContinuablePagedIterable
public CosmosStoredProcedure getStoredProcedure(String id)
id
- the idpublic CosmosUserDefinedFunctionResponse createUserDefinedFunction(CosmosUserDefinedFunctionProperties properties) throws CosmosClientException
properties
- the propertiesCosmosClientException
- the cosmos client exceptionpublic CosmosContinuablePagedIterable<CosmosUserDefinedFunctionProperties> readAllUserDefinedFunctions(FeedOptions options)
CosmosContinuablePagedIterable
.options
- the optionsCosmosContinuablePagedIterable
public CosmosContinuablePagedIterable<CosmosUserDefinedFunctionProperties> queryUserDefinedFunctions(String query, FeedOptions options)
CosmosContinuablePagedIterable
.query
- the queryoptions
- the optionsCosmosContinuablePagedIterable
public CosmosContinuablePagedIterable<CosmosUserDefinedFunctionProperties> queryUserDefinedFunctions(SqlQuerySpec querySpec, FeedOptions options)
CosmosContinuablePagedIterable
.querySpec
- the query specoptions
- the optionsCosmosContinuablePagedIterable
public CosmosUserDefinedFunction getUserDefinedFunction(String id)
id
- the idpublic CosmosTriggerResponse createTrigger(CosmosTriggerProperties properties) throws CosmosClientException
properties
- the propertiesCosmosClientException
- the cosmos client exceptionpublic CosmosContinuablePagedIterable<CosmosTriggerProperties> readAllTriggers(FeedOptions options)
CosmosContinuablePagedIterable
.options
- the optionsCosmosContinuablePagedIterable
public CosmosContinuablePagedIterable<CosmosTriggerProperties> queryTriggers(String query, FeedOptions options)
CosmosContinuablePagedIterable
.query
- the queryoptions
- the optionsCosmosContinuablePagedIterable
public CosmosContinuablePagedIterable<CosmosTriggerProperties> queryTriggers(SqlQuerySpec querySpec, FeedOptions options)
CosmosContinuablePagedIterable
.querySpec
- the query specoptions
- the optionsCosmosContinuablePagedIterable
public CosmosTrigger getTrigger(String id)
id
- the idCopyright © 2020 Microsoft Corporation. All rights reserved.