public class CosmosScripts extends Object
public CosmosStoredProcedureResponse createStoredProcedure(CosmosStoredProcedureProperties properties)
properties
- the propertiespublic CosmosStoredProcedureResponse createStoredProcedure(CosmosStoredProcedureProperties properties, CosmosStoredProcedureRequestOptions options)
properties
- the propertiesoptions
- the optionspublic CosmosPagedIterable<CosmosStoredProcedureProperties> readAllStoredProcedures()
CosmosPagedIterable
.CosmosPagedIterable
public CosmosPagedIterable<CosmosStoredProcedureProperties> queryStoredProcedures(String query, CosmosQueryRequestOptions options)
CosmosPagedIterable
.query
- the queryoptions
- the optionsCosmosPagedIterable
public CosmosPagedIterable<CosmosStoredProcedureProperties> queryStoredProcedures(SqlQuerySpec querySpec, CosmosQueryRequestOptions options)
CosmosPagedIterable
.querySpec
- the query specoptions
- the optionsCosmosPagedIterable
public CosmosStoredProcedure getStoredProcedure(String id)
id
- the idpublic CosmosUserDefinedFunctionResponse createUserDefinedFunction(CosmosUserDefinedFunctionProperties properties)
properties
- the propertiespublic CosmosPagedIterable<CosmosUserDefinedFunctionProperties> readAllUserDefinedFunctions()
CosmosPagedIterable
.CosmosPagedIterable
public CosmosPagedIterable<CosmosUserDefinedFunctionProperties> queryUserDefinedFunctions(String query, CosmosQueryRequestOptions options)
CosmosPagedIterable
.query
- the queryoptions
- the optionsCosmosPagedIterable
public CosmosPagedIterable<CosmosUserDefinedFunctionProperties> queryUserDefinedFunctions(SqlQuerySpec querySpec, CosmosQueryRequestOptions options)
CosmosPagedIterable
.querySpec
- the query specoptions
- the optionsCosmosPagedIterable
public CosmosUserDefinedFunction getUserDefinedFunction(String id)
id
- the idpublic CosmosTriggerResponse createTrigger(CosmosTriggerProperties properties)
properties
- the propertiespublic CosmosPagedIterable<CosmosTriggerProperties> readAllTriggers()
CosmosPagedIterable
.CosmosPagedIterable
public CosmosPagedIterable<CosmosTriggerProperties> queryTriggers(String query, CosmosQueryRequestOptions options)
CosmosPagedIterable
.query
- the queryoptions
- the optionsCosmosPagedIterable
public CosmosPagedIterable<CosmosTriggerProperties> queryTriggers(SqlQuerySpec querySpec, CosmosQueryRequestOptions options)
CosmosPagedIterable
.querySpec
- the query specoptions
- the optionsCosmosPagedIterable
public CosmosTrigger getTrigger(String id)
id
- the idCopyright © 2021 Microsoft Corporation. All rights reserved.