/
StoredProcedure.yml
149 lines (144 loc) · 4.9 KB
/
StoredProcedure.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
### YamlMime:TSType
name: StoredProcedure
uid: '@azure/cosmos.StoredProcedure'
package: '@azure/cosmos'
summary: >-
Operations for reading, replacing, deleting, or executing a specific, existing
stored procedure by id.
For operations to create, read all, or query Stored Procedures,
fullName: StoredProcedure
remarks: ''
isDeprecated: false
type: class
properties:
- name: container
uid: '@azure/cosmos.StoredProcedure.container'
package: '@azure/cosmos'
summary: ''
fullName: container
remarks: ''
isDeprecated: false
syntax:
content: 'container: Container'
return:
description: ''
type: <xref uid="@azure/cosmos.Container" />
- name: id
uid: '@azure/cosmos.StoredProcedure.id'
package: '@azure/cosmos'
summary: ''
fullName: id
remarks: ''
isDeprecated: false
syntax:
content: 'id: string'
return:
description: ''
type: string
- name: url
uid: '@azure/cosmos.StoredProcedure.url'
package: '@azure/cosmos'
summary: Returns a reference URL to the resource. Used for linking in Permissions.
fullName: url
remarks: ''
isDeprecated: false
syntax:
content: string url
return:
description: ''
type: string
methods:
- name: delete(RequestOptions)
uid: '@azure/cosmos.StoredProcedure.delete'
package: '@azure/cosmos'
summary: Delete the given [StoredProcedure](xref:@azure/cosmos.StoredProcedure).
remarks: ''
isDeprecated: false
syntax:
content: >-
function delete(options?: RequestOptions):
Promise<StoredProcedureResponse>
parameters:
- id: options
type: <xref uid="@azure/cosmos.RequestOptions" />
description: ''
return:
description: ''
type: Promise<<xref uid="@azure/cosmos.StoredProcedureResponse" />>
- name: execute<T>(PartitionKey, any[], RequestOptions)
uid: '@azure/cosmos.StoredProcedure.execute'
package: '@azure/cosmos'
summary: >-
Execute the given [StoredProcedure](xref:@azure/cosmos.StoredProcedure).
The specified type, T, is not enforced by the client.
Be sure to validate the response from the stored procedure matches the
type, T, you provide.
remarks: ''
isDeprecated: false
syntax:
content: >-
function execute<T>(partitionKey: PartitionKey, params?: any[],
options?: RequestOptions): Promise<ResourceResponse<T>>
parameters:
- id: partitionKey
type: <xref uid="@azure/cosmos.PartitionKey" />
description: The partition key to use when executing the stored procedure
- id: params
type: any[]
description: >-
Array of parameters to pass as arguments to the given
[StoredProcedure](xref:@azure/cosmos.StoredProcedure).
- id: options
type: <xref uid="@azure/cosmos.RequestOptions" />
description: >-
Additional options, such as the partition key to invoke the
[StoredProcedure](xref:@azure/cosmos.StoredProcedure) on.
return:
description: ''
type: Promise<<xref uid="@azure/cosmos.ResourceResponse" /><T>>
- name: read(RequestOptions)
uid: '@azure/cosmos.StoredProcedure.read'
package: '@azure/cosmos'
summary: >-
Read the
[StoredProcedureDefinition](xref:@azure/cosmos.StoredProcedureDefinition)
for the given [StoredProcedure](xref:@azure/cosmos.StoredProcedure).
remarks: ''
isDeprecated: false
syntax:
content: >-
function read(options?: RequestOptions):
Promise<StoredProcedureResponse>
parameters:
- id: options
type: <xref uid="@azure/cosmos.RequestOptions" />
description: ''
return:
description: ''
type: Promise<<xref uid="@azure/cosmos.StoredProcedureResponse" />>
- name: replace(StoredProcedureDefinition, RequestOptions)
uid: '@azure/cosmos.StoredProcedure.replace'
package: '@azure/cosmos'
summary: >-
Replace the given [StoredProcedure](xref:@azure/cosmos.StoredProcedure)
with the specified
[StoredProcedureDefinition](xref:@azure/cosmos.StoredProcedureDefinition).
remarks: ''
isDeprecated: false
syntax:
content: >-
function replace(body: StoredProcedureDefinition, options?:
RequestOptions): Promise<StoredProcedureResponse>
parameters:
- id: body
type: <xref uid="@azure/cosmos.StoredProcedureDefinition" />
description: >-
The specified
[StoredProcedureDefinition](xref:@azure/cosmos.StoredProcedureDefinition)
to replace the existing definition.
- id: options
type: <xref uid="@azure/cosmos.RequestOptions" />
description: ''
return:
description: ''
type: Promise<<xref uid="@azure/cosmos.StoredProcedureResponse" />>