Skip to content

Commit 5405df1

Browse files
niteshvijay1995anujtoshniwalabhijitkaranjkar89kavskalyanvivek-microsoft
authored
[Hub Generated] Review request for Microsoft.DocumentDB to add version preview/2021-10-15-preview (Azure#16211)
* Adds base for updating Microsoft.DocumentDB from version preview/2021-07-01-preview to version 2021-10-15-preview * Updates readme * Updates API version in new specs and examples * Antoshni cosmos db 2021 10 15 preview cek management (#1) * Adds base for updating Microsoft.DocumentDB from version preview/2021-07-01-preview to version 2021-10-15-preview * Updates readme * Updates API version in new specs and examples * ClientEncryptionKey management API changes * Address semantics validation errors * Fix representation of wrappedDek * fix Swagger prettier formatting check * minor edits to address comments" * fix LintDiff error * Adds base for updating Microsoft.DocumentDB from version preview/2021-07-01-preview to version 2021-10-15-preview * Updates readme * Updates API version in new specs and examples * remove CreateUpdateOptions as they arent applicable for CEK * fix Model validation check Co-authored-by: anujtoshniwal <[email protected]> Co-authored-by: Anuj Toshniwal <[email protected]> * mongo rbac cherry-pick (#5) * mongo rbac cherry-pick * Removing entry for 07 preview Co-authored-by: kavskalyan <[email protected]> * Revert "mongo rbac cherry-pick (#5)" (#7) This reverts commit 8392017. * preview swagger for managed cassandra (#8) * preview swagger for managed cassandra * add cassandraAuditLoggingEnabled property * change property name in CommandPostBody Co-authored-by: Vivek Sundararajan <[email protected]> * fix validation, remove connectivity (#11) Co-authored-by: Vivek Sundararajan <[email protected]> * Add data transfer job api (#2) * Adds base for updating Microsoft.DocumentDB from version preview/2021-07-01-preview to version 2021-10-15-preview * Updates readme * Updates API version in new specs and examples * Add DataTransfer job apis * Fix api version * Rename connection to endpointUrl * Rename connection to endpointUrl * Add dataTransferService in readme.md * Fix keys * Fix checks * Add worker count * Fix worker count * MaterializedViewsBuilder (#12) * Adding LatestRestorableTimestamp support for MongoDB collections. (#9) * Adding LatestRestorableTimestamp support for MongoDB * Fixing api version for examples. * Mongo RBAC Swagger Changes (#10) * mongo rbac cherry-pick * Removing entry for 07 preview * Fixing swagger issues * Fixing swagger error for param * Fixing misplaced Description * Fixing model validation issues * Json pretty formatting * Fixing more model validation issues * Fixing type issue * Add password field for userdef request * Fixing URL param * Fixing URL param issue Co-authored-by: kavskalyan <[email protected]> * TotalThroughput limit 10-15 preview API changes (#6) * add backupStorageCustomerKeyUri and fix response status code (#13) * fix validation, remove connectivity * add backupStorageCustomerKeyUri property * fix response status code Co-authored-by: Vivek Sundararajan <[email protected]> * Prettier fix * Fix Avocado check * Fix operationId * Fix operationId * Fix breaking change * Fix breaking change (managedCassandra invokeCommand) * Fix breaking change * Fix status code in example * Fix review comment * Use v3 version for resource-management * Fix client encryption review comments * update location header in example (#15) Co-authored-by: Vivek Sundararajan <[email protected]> * Prettier fix * update header in response * formating json Co-authored-by: anujtoshniwal <[email protected]> Co-authored-by: Anuj Toshniwal <[email protected]> Co-authored-by: Abhijit Karanjkar <[email protected]> Co-authored-by: kavskalyan <[email protected]> Co-authored-by: vivek-microsoft <[email protected]> Co-authored-by: Vivek Sundararajan <[email protected]> Co-authored-by: Ajay Parulekar <[email protected]> Co-authored-by: Amit Singh <[email protected]> Co-authored-by: pjohari-ms <[email protected]>
1 parent 1e3988d commit 5405df1

File tree

222 files changed

+24383
-1
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

222 files changed

+24383
-1
lines changed

specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/cosmos-db.json

Lines changed: 9985 additions & 0 deletions
Large diffs are not rendered by default.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,350 @@
1+
{
2+
"swagger": "2.0",
3+
"info": {
4+
"title": "Cosmos DB",
5+
"description": "Azure Cosmos DB Database Data Transfer Service Resource Provider REST API",
6+
"version": "2021-10-15-preview"
7+
},
8+
"host": "management.azure.com",
9+
"schemes": [
10+
"https"
11+
],
12+
"consumes": [
13+
"application/json"
14+
],
15+
"produces": [
16+
"application/json"
17+
],
18+
"security": [
19+
{
20+
"azure_auth": [
21+
"user_impersonation"
22+
]
23+
}
24+
],
25+
"securityDefinitions": {
26+
"azure_auth": {
27+
"type": "oauth2",
28+
"authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize",
29+
"flow": "implicit",
30+
"description": "Azure Active Directory OAuth2 Flow",
31+
"scopes": {
32+
"user_impersonation": "Impersonate your user account"
33+
}
34+
}
35+
},
36+
"paths": {
37+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/dataTransferJobs/{jobName}": {
38+
"put": {
39+
"operationId": "DataTransferJobs_Create",
40+
"description": "Creates a Data Transfer Job.",
41+
"x-ms-examples": {
42+
"CosmosDBDataTransferJobCreate": {
43+
"$ref": "./examples/data-transfer-service/CosmosDBDataTransferJobCreate.json"
44+
}
45+
},
46+
"parameters": [
47+
{
48+
"$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter"
49+
},
50+
{
51+
"$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter"
52+
},
53+
{
54+
"$ref": "./cosmos-db.json#/parameters/accountNameParameter"
55+
},
56+
{
57+
"$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter"
58+
},
59+
{
60+
"$ref": "#/parameters/JobNameParameter"
61+
},
62+
{
63+
"name": "jobCreateParameters",
64+
"in": "body",
65+
"required": true,
66+
"schema": {
67+
"$ref": "#/definitions/CreateJobRequest"
68+
}
69+
}
70+
],
71+
"responses": {
72+
"201": {
73+
"description": "Successful CreateJob response",
74+
"schema": {
75+
"$ref": "#/definitions/DataTransferJobGetResults"
76+
}
77+
},
78+
"default": {
79+
"description": "Error response describing why the operation failed.",
80+
"schema": {
81+
"$ref": "cosmos-db.json#/definitions/CloudError"
82+
}
83+
}
84+
}
85+
},
86+
"get": {
87+
"operationId": "DataTransferJobs_Get",
88+
"description": "Get a Data Transfer Job.",
89+
"x-ms-examples": {
90+
"CosmosDBDataTransferJobGet": {
91+
"$ref": "./examples/data-transfer-service/CosmosDBDataTransferJobGet.json"
92+
}
93+
},
94+
"parameters": [
95+
{
96+
"$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter"
97+
},
98+
{
99+
"$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter"
100+
},
101+
{
102+
"$ref": "./cosmos-db.json#/parameters/accountNameParameter"
103+
},
104+
{
105+
"$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter"
106+
},
107+
{
108+
"$ref": "#/parameters/JobNameParameter"
109+
}
110+
],
111+
"responses": {
112+
"200": {
113+
"description": "The Data Transfer Job Properties retrieved successfully",
114+
"schema": {
115+
"$ref": "#/definitions/DataTransferJobGetResults"
116+
}
117+
},
118+
"default": {
119+
"description": "Error response describing why the operation failed.",
120+
"schema": {
121+
"$ref": "cosmos-db.json#/definitions/CloudError"
122+
}
123+
}
124+
}
125+
}
126+
},
127+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/dataTransferJobs": {
128+
"get": {
129+
"operationId": "DataTransferJobs_ListByDatabaseAccount",
130+
"description": "Get a list of Data Transfer jobs.",
131+
"x-ms-examples": {
132+
"CosmosDBDataTransferJobFeed": {
133+
"$ref": "./examples/data-transfer-service/CosmosDBDataTransferJobFeed.json"
134+
}
135+
},
136+
"x-ms-pageable": {
137+
"nextLinkName": "nextLink"
138+
},
139+
"parameters": [
140+
{
141+
"$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter"
142+
},
143+
{
144+
"$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter"
145+
},
146+
{
147+
"$ref": "./cosmos-db.json#/parameters/accountNameParameter"
148+
},
149+
{
150+
"$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter"
151+
}
152+
],
153+
"responses": {
154+
"200": {
155+
"description": "All Data Transfer Jobs retrieved successfully",
156+
"schema": {
157+
"$ref": "#/definitions/DataTransferJobFeedResults"
158+
}
159+
},
160+
"default": {
161+
"description": "Error response describing why the operation failed.",
162+
"schema": {
163+
"$ref": "cosmos-db.json#/definitions/CloudError"
164+
}
165+
}
166+
}
167+
}
168+
}
169+
},
170+
"definitions": {
171+
"DataTransferDataSourceSink": {
172+
"type": "object",
173+
"description": "Base class for all DataTransfer source/sink",
174+
"properties": {
175+
"component": {
176+
"type": "string",
177+
"enum": [
178+
"CosmosDBCassandra",
179+
"AzureStorage"
180+
],
181+
"x-ms-enum": {
182+
"name": "DataTransferComponent",
183+
"modelAsString": true
184+
},
185+
"default": "CosmosDBCassandra"
186+
}
187+
},
188+
"discriminator": "component",
189+
"required": [
190+
"component"
191+
]
192+
},
193+
"CosmosCassandraDataTransferDataSourceSink": {
194+
"type": "object",
195+
"description": "A CosmosDB Cassandra API data source/sink",
196+
"properties": {
197+
"keyspaceName": {
198+
"type": "string"
199+
},
200+
"tableName": {
201+
"type": "string"
202+
}
203+
},
204+
"allOf": [
205+
{
206+
"$ref": "#/definitions/DataTransferDataSourceSink"
207+
}
208+
],
209+
"required": [
210+
"keyspaceName",
211+
"tableName"
212+
],
213+
"x-ms-discriminator-value": "CosmosDBCassandra"
214+
},
215+
"AzureBlobDataTransferDataSourceSink": {
216+
"type": "object",
217+
"description": "An Azure Blob Storage data source/sink",
218+
"allOf": [
219+
{
220+
"$ref": "#/definitions/DataTransferDataSourceSink"
221+
}
222+
],
223+
"properties": {
224+
"containerName": {
225+
"type": "string"
226+
},
227+
"endpointUrl": {
228+
"type": "string"
229+
}
230+
},
231+
"required": [
232+
"containerName"
233+
],
234+
"x-ms-discriminator-value": "AzureBlobStorage"
235+
},
236+
"DataTransferJobProperties": {
237+
"description": "The properties of a DataTransfer Job",
238+
"type": "object",
239+
"properties": {
240+
"jobName": {
241+
"readOnly": true,
242+
"type": "string",
243+
"description": "Job Name"
244+
},
245+
"source": {
246+
"$ref": "#/definitions/DataTransferDataSourceSink",
247+
"description": "Source DataStore details"
248+
},
249+
"destination": {
250+
"$ref": "#/definitions/DataTransferDataSourceSink",
251+
"description": "Destination DataStore details"
252+
},
253+
"status": {
254+
"readOnly": true,
255+
"type": "string",
256+
"description": "Job Status"
257+
},
258+
"percentageComplete": {
259+
"readOnly": true,
260+
"type": "number",
261+
"description": "Percentage of completion."
262+
},
263+
"lastUpdatedUtcTime": {
264+
"readOnly": true,
265+
"type": "string",
266+
"format": "date-time",
267+
"description": "Last Updated Time (ISO-8601 format)."
268+
},
269+
"workerCount": {
270+
"description": "Worker count",
271+
"type": "integer",
272+
"minimum": 0,
273+
"format": "int32"
274+
},
275+
"error": {
276+
"readOnly": true,
277+
"$ref": "./cosmos-db.json#/definitions/ErrorResponse",
278+
"description": "Error response for Faulted job"
279+
}
280+
},
281+
"required": [
282+
"source",
283+
"destination"
284+
]
285+
},
286+
"CreateJobRequest": {
287+
"description": "Parameters to create Data Transfer Job",
288+
"type": "object",
289+
"properties": {
290+
"properties": {
291+
"$ref": "#/definitions/DataTransferJobProperties",
292+
"description": "Data Transfer Create Job Properties"
293+
}
294+
},
295+
"required": [
296+
"properties"
297+
],
298+
"allOf": [
299+
{
300+
"$ref": "./cosmos-db.json#/definitions/ARMProxyResource"
301+
}
302+
]
303+
},
304+
"DataTransferJobGetResults": {
305+
"description": "A Cosmos DB Data Transfer Job",
306+
"type": "object",
307+
"properties": {
308+
"properties": {
309+
"x-ms-client-flatten": true,
310+
"type": "object",
311+
"$ref": "#/definitions/DataTransferJobProperties"
312+
}
313+
},
314+
"allOf": [
315+
{
316+
"$ref": "./cosmos-db.json#/definitions/ARMProxyResource"
317+
}
318+
]
319+
},
320+
"DataTransferJobFeedResults": {
321+
"description": "The List operation response, that contains the Data Transfer jobs and their properties.",
322+
"type": "object",
323+
"properties": {
324+
"value": {
325+
"readOnly": true,
326+
"type": "array",
327+
"items": {
328+
"$ref": "#/definitions/DataTransferJobGetResults"
329+
},
330+
"description": "List of Data Transfer jobs and their properties."
331+
},
332+
"nextLink": {
333+
"readOnly": true,
334+
"type": "string",
335+
"description": "URL to get the next set of Data Transfer job list results if there are any."
336+
}
337+
}
338+
}
339+
},
340+
"parameters": {
341+
"JobNameParameter": {
342+
"name": "jobName",
343+
"in": "path",
344+
"required": true,
345+
"type": "string",
346+
"x-ms-parameter-location": "method",
347+
"description": "Name of the Data Transfer Job"
348+
}
349+
}
350+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
{
2+
"parameters": {
3+
"accountName": "ddb1",
4+
"resourceGroupName": "rg1",
5+
"api-version": "2021-10-15-preview",
6+
"subscriptionId": "subid",
7+
"keyspaceName": "keyspaceName",
8+
"createUpdateCassandraKeyspaceParameters": {
9+
"location": "West US",
10+
"tags": {},
11+
"properties": {
12+
"resource": {
13+
"id": "keyspaceName"
14+
},
15+
"options": {}
16+
}
17+
}
18+
},
19+
"responses": {
20+
"200": {
21+
"body": {
22+
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.DocumentDB/databaseAccounts/ddb1/cassandraKeyspaces/keyspaceName",
23+
"name": "keyspaceName",
24+
"type": "Microsoft.DocumentDB/databaseAccounts/cassandraKeyspaces",
25+
"location": "West US",
26+
"tags": {},
27+
"properties": {
28+
"resource": {
29+
"id": "keyspaceName"
30+
}
31+
}
32+
}
33+
},
34+
"202": {}
35+
}
36+
}

0 commit comments

Comments
 (0)