Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[sdk-automation] test pr 586942 & add change for data-plane digitalwins #3545

Open
wants to merge 20 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
20 commits
Select commit Hold shift + click to select a range
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
Original file line number Diff line number Diff line change
Expand Up @@ -16,127 +16,6 @@
"application/json"
],
"paths": {
"/models": {
"parameters": [
{
"$ref": "#/parameters/traceparent"
},
{
"$ref": "#/parameters/tracestate"
}
],
"post": {
"tags": [
"Models"
],
"description": "Uploads one or more models. When any error occurs, no models are uploaded.\nStatus codes:\n* 201 Created\n* 400 Bad Request\n * DTDLParserError - The models provided are not valid DTDL.\n * InvalidArgument - The model id is invalid.\n * LimitExceeded - The maximum number of model ids allowed in 'dependenciesFor' has been reached.\n * ModelVersionNotSupported - The version of DTDL used is not supported.\n* 409 Conflict\n * ModelAlreadyExists - The model provided already exists.",
"operationId": "DigitalTwinModels_Add",
"x-ms-examples": {
"Add models": {
"$ref": "./examples/ModelAdd.json"
}
},
"parameters": [
{
"name": "models",
"in": "body",
"description": "An array of models to add.",
"required": true,
"schema": {
"type": "array",
"minItems": 1,
"uniqueItems": true,
"items": {
"type": "object"
}
}
},
{
"$ref": "#/parameters/api-version"
}
],
"responses": {
"201": {
"description": "Success",
"schema": {
"$ref": "#/definitions/NonPagedDigitalTwinsModelDataCollection"
}
},
"default": {
"description": "Default response.",
"headers": {
"x-ms-error-code": {
"type": "string",
"description": "Error code for specific error that occurred."
}
},
"schema": {
"$ref": "#/definitions/ErrorResponse"
}
}
}
},
"get": {
"tags": [
"Models"
],
"description": "Retrieves model metadata and, optionally, model definitions.\nStatus codes:\n* 200 OK\n* 400 Bad Request\n * InvalidArgument - The model id is invalid.\n * LimitExceeded - The maximum number of model ids allowed in 'dependenciesFor' has been reached.\n* 404 Not Found\n * ModelNotFound - The model was not found.",
"x-ms-pageable": {
"nextLinkName": "nextLink"
},
"operationId": "DigitalTwinModels_List",
"x-ms-examples": {
"List models": {
"$ref": "./examples/ModelsGet.json"
},
"List models (include dependencies and definitions)": {
"$ref": "./examples/ModelsGetWithDependenciesAndIncludeModelDefinition.json"
}
},
"parameters": [
{
"name": "dependenciesFor",
"in": "query",
"description": "If specified, only return the set of the specified models along with their dependencies. If omitted, all models are retrieved.",
"required": false,
"type": "array",
"collectionFormat": "multi",
"items": {
"type": "string"
}
},
{
"$ref": "#/parameters/includeModelDefinition"
},
{
"$ref": "#/parameters/max-items-per-page"
},
{
"$ref": "#/parameters/api-version"
}
],
"responses": {
"200": {
"description": "Success",
"schema": {
"$ref": "#/definitions/PagedDigitalTwinsModelDataCollection"
}
},
"default": {
"description": "Default response.",
"headers": {
"x-ms-error-code": {
"type": "string",
"description": "Error code for specific error that occurred."
}
},
"schema": {
"$ref": "#/definitions/ErrorResponse"
}
}
}
}
},
"/models/{id}": {
"parameters": [
{
Expand Down Expand Up @@ -282,77 +161,6 @@
}
}
},
"/query": {
"parameters": [
{
"$ref": "#/parameters/traceparent"
},
{
"$ref": "#/parameters/tracestate"
}
],
"post": {
"tags": [
"Query"
],
"operationId": "Query_QueryTwins",
"description": "Executes a query that allows traversing relationships and filtering by property values.\nStatus codes:\n* 200 OK\n* 400 Bad Request\n * BadRequest - The continuation token is invalid.\n * SqlQueryError - The query contains some errors.\n * TimeoutError - The query execution timed out after 60 seconds. Try simplifying the query or adding conditions to reduce the result size.\n * 429 Too Many Requests\n * QuotaReachedError - The maximum query rate limit has been reached.",
"x-ms-examples": {
"Query for digital twins": {
"$ref": "./examples/QueryFirstPage.json"
},
"Retrieve paged query results": {
"$ref": "./examples/QueryNextPage.json"
},
"Query for digital twins through a relationship": {
"$ref": "./examples/QueryJoin.json"
}
},
"parameters": [
{
"name": "querySpecification",
"in": "body",
"description": "The query specification to execute.",
"required": true,
"schema": {
"$ref": "#/definitions/QuerySpecification"
}
},
{
"$ref": "#/parameters/max-items-per-page"
},
{
"$ref": "#/parameters/api-version"
}
],
"responses": {
"200": {
"description": "Success",
"schema": {
"$ref": "#/definitions/QueryResult"
},
"headers": {
"query-charge": {
"description": "The query charge.",
"type": "number"
}
}
},
"default": {
"description": "Default response.",
"headers": {
"x-ms-error-code": {
"type": "string",
"description": "Error code for specific error that occurred."
}
},
"schema": {
"$ref": "#/definitions/ErrorResponse"
}
}
}
}
},
"/digitaltwins/{id}": {
"parameters": [
{
Expand Down
14 changes: 9 additions & 5 deletions specificationRepositoryConfiguration.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,20 @@
"sdkRepositoryMappings": {
"azure-sdk-for-go": {
"integrationRepository": "azure-sdk/azure-sdk-for-go",
"mainRepository": "Azure/azure-sdk-for-go",
"mainRepository": "Alancere/azure-sdk-for-go",
"mainBranch": "fix_generator_tool_0807",
"configFilePath": "eng/swagger_to_sdk_config.json"
},
"azure-sdk-for-java": {
"integrationRepository": "azure-sdk/azure-sdk-for-java",
"mainRepository": "Azure/azure-sdk-for-java",
"mainRepository": "XiaofeiCao/azure-sdk-for-java",
"mainBranch": "breaking_change_detection",
"configFilePath": "eng/automation/swagger_to_sdk_config.json"
},
"azure-sdk-for-js": {
"integrationRepository": "azure-sdk/azure-sdk-for-js",
"mainRepository": "Azure/azure-sdk-for-js"
"mainRepository": "test-repo-billy/azure-sdk-for-js",
"mainBranch": "test_repo_breaking_change_mlc"
},
"azure-sdk-for-net": {
"integrationRepository": "azure-sdk/azure-sdk-for-net",
Expand All @@ -27,7 +30,8 @@
},
"azure-sdk-for-python": {
"integrationRepository": "azure-sdk/azure-sdk-for-python",
"mainRepository": "Azure/azure-sdk-for-python"
"mainRepository": "Azure/azure-sdk-for-python",
"mainBranch": "pipeline-optimize-for-multi-input"
},
"azure-powershell": {
"integrationRepository": "azure-sdk/azure-powershell",
Expand Down Expand Up @@ -78,4 +82,4 @@
"@azure-tools/typespec-ts": "azure-sdk-for-js",
"@azure-tools/typespec-go": "azure-sdk-for-go"
}
}
}