Skip to content

Commit

Permalink
SqlDedicatedGateway DistributedQuery stable changes (#28747)
Browse files Browse the repository at this point in the history
* Distributed Query changes

* Nits

* Fixed model validation

* More fixes
  • Loading branch information
pjohari-ms authored Apr 23, 2024
1 parent d11a274 commit 1ed0f49
Show file tree
Hide file tree
Showing 4 changed files with 72 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@
"properties": {
"instanceSize": "Cosmos.D4s",
"instanceCount": 1,
"serviceType": "SqlDedicatedGateway"
"serviceType": "SqlDedicatedGateway",
"dedicatedGatewayType": "IntegratedCache"
}
}
},
Expand All @@ -26,6 +27,7 @@
"instanceSize": "Cosmos.D4s",
"instanceCount": 1,
"serviceType": "SqlDedicatedGateway",
"dedicatedGatewayType": "IntegratedCache",
"sqlDedicatedGatewayEndpoint": "https://sqlDedicatedGateway.sqlx.cosmos.windows-int.net/",
"locations": [
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
"instanceSize": "Cosmos.D4s",
"instanceCount": 1,
"serviceType": "SqlDedicatedGateway",
"dedicatedGatewayType": "IntegratedCache",
"sqlDedicatedGatewayEndpoint": "https://sqlDedicatedGateway.sqlx.cosmos.windows-int.net/",
"locations": [
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@
"$ref": "./examples/CosmosDBDataTransferServiceCreate.json"
},
"SqlDedicatedGatewayServiceCreate": {
"$ref": "./examples/CosmosDBSqlDedicatedGatewayServiceCreate.json"
"$ref": "./examples/services/sqldedicatedgateway/CosmosDBSqlDedicatedGatewayServiceCreate.json"
},
"GraphAPIComputeServiceCreate": {
"$ref": "./examples/CosmosDBGraphAPIComputeServiceCreate.json"
Expand Down Expand Up @@ -170,7 +170,7 @@
"$ref": "./examples/CosmosDBGraphAPIComputeServiceGet.json"
},
"SqlDedicatedGatewayServiceGet": {
"$ref": "./examples/CosmosDBSqlDedicatedGatewayServiceGet.json"
"$ref": "./examples/services/sqldedicatedgateway/CosmosDBSqlDedicatedGatewayServiceGet.json"
},
"MaterializedViewsBuilderServiceGet": {
"$ref": "./examples/CosmosDBMaterializedViewsBuilderServiceGet.json"
Expand Down Expand Up @@ -222,7 +222,7 @@
"$ref": "./examples/CosmosDBDataTransferServiceDelete.json"
},
"SqlDedicatedGatewayServiceDelete": {
"$ref": "./examples/CosmosDBSqlDedicatedGatewayServiceDelete.json"
"$ref": "./examples/services/sqldedicatedgateway/CosmosDBSqlDedicatedGatewayServiceDelete.json"
},
"GraphAPIComputeServiceDelete": {
"$ref": "./examples/CosmosDBGraphAPIComputeServiceDelete.json"
Expand Down Expand Up @@ -328,6 +328,7 @@
"ServiceResourceCreateUpdateProperties": {
"description": "Properties in ServiceResourceCreateUpdateParameters.",
"type": "object",
"discriminator": "serviceType",
"properties": {
"instanceSize": {
"$ref": "#/definitions/ServiceResourceInstanceSize"
Expand All @@ -341,7 +342,10 @@
"serviceType": {
"$ref": "#/definitions/ServiceType"
}
}
},
"required": [
"serviceType"
]
},
"ServiceResource": {
"description": "Properties for the database account.",
Expand Down Expand Up @@ -402,6 +406,43 @@
}
}
},
"DataTransferServiceResourceCreateUpdateParameters": {
"description": "Parameters for Create or Update Request for SqlDedicatedGatewayServiceResource",
"type": "object",
"x-ms-discriminator-value": "DataTransfer",
"allOf": [
{
"$ref": "#/definitions/ServiceResourceCreateUpdateProperties"
}
]
},
"SqlDedicatedGatewayServiceResourceCreateUpdateParameters": {
"description": "Parameters for Create or Update Request for SqlDedicatedGatewayServiceResource",
"type": "object",
"x-ms-discriminator-value": "SqlDedicatedGateway",
"allOf": [
{
"$ref": "#/definitions/ServiceResourceCreateUpdateProperties"
}
],
"properties": {
"dedicatedGatewayType": {
"$ref": "#/definitions/SqlDedicatedGatewayType"
}
}
},
"SqlDedicatedGatewayType": {
"type": "string",
"enum": [
"IntegratedCache",
"DistributedQuery"
],
"description": "DedicatedGatewayType for the service.",
"x-ms-enum": {
"modelAsString": true,
"name": "DedicatedGatewayType"
}
},
"SqlDedicatedGatewayServiceResource": {
"description": "Describes the service response property for SqlDedicatedGateway.",
"type": "object",
Expand All @@ -426,6 +467,9 @@
"type": "string",
"description": "SqlDedicatedGateway endpoint for the service."
},
"dedicatedGatewayType": {
"$ref": "#/definitions/SqlDedicatedGatewayType"
},
"locations": {
"type": "array",
"readOnly": true,
Expand Down Expand Up @@ -470,6 +514,16 @@
}
}
},
"GraphAPIComputeServiceResourceCreateUpdateParameters": {
"description": "Parameters for Create or Update Request for SqlDedicatedGatewayServiceResource",
"type": "object",
"x-ms-discriminator-value": "GraphAPICompute",
"allOf": [
{
"$ref": "#/definitions/ServiceResourceCreateUpdateProperties"
}
]
},
"MaterializedViewsBuilderServiceResource": {
"description": "Describes the service response property for MaterializedViewsBuilder.",
"type": "object",
Expand Down Expand Up @@ -500,6 +554,16 @@
}
}
},
"MaterializedViewsBuilderServiceResourceCreateUpdateParameters": {
"description": "Parameters for Create or Update Request for SqlDedicatedGatewayServiceResource",
"type": "object",
"x-ms-discriminator-value": "MaterializedViewsBuilder",
"allOf": [
{
"$ref": "#/definitions/ServiceResourceCreateUpdateProperties"
}
]
},
"RegionalServiceResource": {
"description": "Resource for a regional service location.",
"type": "object",
Expand Down

0 comments on commit 1ed0f49

Please sign in to comment.