Skip to content
Merged
Show file tree
Hide file tree
Changes from 23 commits
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
93949d1
Adds base for updating Microsoft.DocumentDB from version preview/2021…
amar-sagare Mar 2, 2022
753b66c
Updates readme
amar-sagare Mar 2, 2022
d019a94
Updates API version in new specs and examples
amar-sagare Mar 2, 2022
1be2cc4
Partition Merge RP API changes
amar-sagare Mar 2, 2022
a8b839d
fix spec to reflect the returned value
amar-sagare Mar 2, 2022
8494b3d
fix serialization of merge response
amar-sagare Mar 2, 2022
1b8c824
Add mongodb API
amar-sagare Mar 2, 2022
56b03e6
Merge branch 'Azure:main' into amarsa-cosmos-db-Microsoft.DocumentDB-…
amar-sagare Mar 3, 2022
20651d5
prettier fix
amar-sagare Mar 3, 2022
6037b12
fixed Linter and Prettier errors
amar-sagare Mar 3, 2022
ae10ffe
Merge branch 'amarsa-cosmos-db-Microsoft.DocumentDB-2022-02-15-previe…
amar-sagare Mar 3, 2022
b58d199
prettier fixes
amar-sagare Mar 3, 2022
a6b0e0c
fix linter errors
amar-sagare Mar 3, 2022
515749e
address CR feedback
amar-sagare Mar 9, 2022
b51a706
semantic validation fixes
amar-sagare Mar 9, 2022
a2a2c6c
fix mongodb merge example
amar-sagare Mar 9, 2022
b98532e
support for pitr basic/lite
vinhms Mar 15, 2022
44d62ae
fix pretty and add mongo 4.2
vinhms Mar 19, 2022
f274159
Adding Support for Client Encryption Policy in swagger spec
kr-santosh Mar 23, 2022
259cbb9
Update cosmos-db.json
kr-santosh Mar 23, 2022
6979761
Update cosmos-db.json
kr-santosh Mar 25, 2022
0534a72
Update CosmosDBSqlContainerCreateUpdate.json
kr-santosh Mar 25, 2022
53ab4fd
Merge pull request #4 from kr-santosh/CepSupportSwagger
kr-santosh Mar 29, 2022
9d44b44
Fixed prettier checl
kr-santosh Apr 8, 2022
7647776
Fixed prettier check
kr-santosh Apr 8, 2022
956d91d
Merge pull request #7 from kr-santosh/CepSupportSwagger
kr-santosh Apr 8, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -0,0 +1,373 @@
{
"swagger": "2.0",
"info": {
"title": "Cosmos DB",
"description": "Azure Cosmos DB Database Data Transfer Service Resource Provider REST API",
"version": "2022-02-15-preview"
},
"host": "management.azure.com",
"schemes": [
"https"
],
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"security": [
{
"azure_auth": [
"user_impersonation"
]
}
],
"securityDefinitions": {
"azure_auth": {
"type": "oauth2",
"authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize",
"flow": "implicit",
"description": "Azure Active Directory OAuth2 Flow",
"scopes": {
"user_impersonation": "Impersonate your user account"
}
}
},
"paths": {
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/dataTransferJobs/{jobName}": {
"put": {
"operationId": "DataTransferJobs_Create",
"description": "Creates a Data Transfer Job.",
"x-ms-examples": {
"CosmosDBDataTransferJobCreate": {
"$ref": "./examples/data-transfer-service/CosmosDBDataTransferJobCreate.json"
}
},
"parameters": [
{
"$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter"
},
{
"$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter"
},
{
"$ref": "./cosmos-db.json#/parameters/accountNameParameter"
},
{
"$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter"
},
{
"$ref": "#/parameters/JobNameParameter"
},
{
"name": "jobCreateParameters",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/CreateJobRequest"
}
}
],
"responses": {
"201": {
"description": "Successful CreateJob response",
"schema": {
"$ref": "#/definitions/DataTransferJobGetResults"
}
},
"default": {
"description": "Error response describing why the operation failed.",
"schema": {
"$ref": "cosmos-db.json#/definitions/CloudError"
}
}
}
},
"get": {
"operationId": "DataTransferJobs_Get",
"description": "Get a Data Transfer Job.",
"x-ms-examples": {
"CosmosDBDataTransferJobGet": {
"$ref": "./examples/data-transfer-service/CosmosDBDataTransferJobGet.json"
}
},
"parameters": [
{
"$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter"
},
{
"$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter"
},
{
"$ref": "./cosmos-db.json#/parameters/accountNameParameter"
},
{
"$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter"
},
{
"$ref": "#/parameters/JobNameParameter"
}
],
"responses": {
"200": {
"description": "The Data Transfer Job Properties retrieved successfully",
"schema": {
"$ref": "#/definitions/DataTransferJobGetResults"
}
},
"default": {
"description": "Error response describing why the operation failed.",
"schema": {
"$ref": "cosmos-db.json#/definitions/CloudError"
}
}
}
}
},
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/dataTransferJobs": {
"get": {
"operationId": "DataTransferJobs_ListByDatabaseAccount",
"description": "Get a list of Data Transfer jobs.",
"x-ms-examples": {
"CosmosDBDataTransferJobFeed": {
"$ref": "./examples/data-transfer-service/CosmosDBDataTransferJobFeed.json"
}
},
"x-ms-pageable": {
"nextLinkName": "nextLink"
},
"parameters": [
{
"$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter"
},
{
"$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter"
},
{
"$ref": "./cosmos-db.json#/parameters/accountNameParameter"
},
{
"$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter"
}
],
"responses": {
"200": {
"description": "All Data Transfer Jobs retrieved successfully",
"schema": {
"$ref": "#/definitions/DataTransferJobFeedResults"
}
},
"default": {
"description": "Error response describing why the operation failed.",
"schema": {
"$ref": "cosmos-db.json#/definitions/CloudError"
}
}
}
}
}
},
"definitions": {
"DataTransferDataSourceSink": {
"type": "object",
"description": "Base class for all DataTransfer source/sink",
"properties": {
"component": {
"type": "string",
"enum": [
"CosmosDBCassandra",
"CosmosDBSql",
"AzureBlobStorage"
],
"x-ms-enum": {
"name": "DataTransferComponent",
"modelAsString": true
},
"default": "CosmosDBCassandra"
}
},
"discriminator": "component",
"required": [
"component"
]
},
"CosmosCassandraDataTransferDataSourceSink": {
"type": "object",
"description": "A CosmosDB Cassandra API data source/sink",
"properties": {
"keyspaceName": {
"type": "string"
},
"tableName": {
"type": "string"
}
},
"allOf": [
{
"$ref": "#/definitions/DataTransferDataSourceSink"
}
],
"required": [
"keyspaceName",
"tableName"
],
"x-ms-discriminator-value": "CosmosDBCassandra"
},
"CosmosSqlDataTransferDataSourceSink": {
"type": "object",
"description": "A CosmosDB Cassandra API data source/sink",
"properties": {
"databaseName": {
"type": "string"
},
"containerName": {
"type": "string"
}
},
"allOf": [
{
"$ref": "#/definitions/DataTransferDataSourceSink"
}
],
"required": [
"databaseName",
"containerName"
],
"x-ms-discriminator-value": "CosmosDBSql"
},
"AzureBlobDataTransferDataSourceSink": {
"type": "object",
"description": "An Azure Blob Storage data source/sink",
"allOf": [
{
"$ref": "#/definitions/DataTransferDataSourceSink"
}
],
"properties": {
"containerName": {
"type": "string"
},
"endpointUrl": {
"type": "string"
}
},
"required": [
"containerName"
],
"x-ms-discriminator-value": "AzureBlobStorage"
},
"DataTransferJobProperties": {
"description": "The properties of a DataTransfer Job",
"type": "object",
"properties": {
"jobName": {
"readOnly": true,
"type": "string",
"description": "Job Name"
},
"source": {
"$ref": "#/definitions/DataTransferDataSourceSink",
"description": "Source DataStore details"
},
"destination": {
"$ref": "#/definitions/DataTransferDataSourceSink",
"description": "Destination DataStore details"
},
"status": {
"readOnly": true,
"type": "string",
"description": "Job Status"
},
"percentageComplete": {
"readOnly": true,
"type": "number",
"description": "Percentage of completion."
},
"lastUpdatedUtcTime": {
"readOnly": true,
"type": "string",
"format": "date-time",
"description": "Last Updated Time (ISO-8601 format)."
},
"workerCount": {
"description": "Worker count",
"type": "integer",
"minimum": 0,
"format": "int32"
},
"error": {
"readOnly": true,
"$ref": "./cosmos-db.json#/definitions/ErrorResponse",
"description": "Error response for Faulted job"
}
},
"required": [
"source",
"destination"
]
},
"CreateJobRequest": {
"description": "Parameters to create Data Transfer Job",
"type": "object",
"properties": {
"properties": {
"$ref": "#/definitions/DataTransferJobProperties",
"description": "Data Transfer Create Job Properties"
}
},
"required": [
"properties"
],
"allOf": [
{
"$ref": "./cosmos-db.json#/definitions/ARMProxyResource"
}
]
},
"DataTransferJobGetResults": {
"description": "A Cosmos DB Data Transfer Job",
"type": "object",
"properties": {
"properties": {
"x-ms-client-flatten": true,
"type": "object",
"$ref": "#/definitions/DataTransferJobProperties"
}
},
"allOf": [
{
"$ref": "./cosmos-db.json#/definitions/ARMProxyResource"
}
]
},
"DataTransferJobFeedResults": {
"description": "The List operation response, that contains the Data Transfer jobs and their properties.",
"type": "object",
"properties": {
"value": {
"readOnly": true,
"type": "array",
"items": {
"$ref": "#/definitions/DataTransferJobGetResults"
},
"description": "List of Data Transfer jobs and their properties."
},
"nextLink": {
"readOnly": true,
"type": "string",
"description": "URL to get the next set of Data Transfer job list results if there are any."
}
}
}
},
"parameters": {
"JobNameParameter": {
"name": "jobName",
"in": "path",
"required": true,
"type": "string",
"x-ms-parameter-location": "method",
"description": "Name of the Data Transfer Job"
}
}
}
Loading