From ad44417958114181d5027f9ef1f0220786edcd3f Mon Sep 17 00:00:00 2001 From: yurych Date: Sun, 13 Feb 2022 15:25:03 -0800 Subject: [PATCH 01/14] Initial commit of microsoft.syntex to RPSaaSMaster branch (#6063) * Initial commit of microsoft.syntex to RPSaaSMaster branch - Dev syntex microsoft.syntex 2021 10 20 preview (#5281) - Aligned resource type names with the guidelines (plural, camelCase) - Updated provider name in URIs to lower case and provider type to plural camelCase - Updated examples to match specification - Updated DocumentProperties with new required fields, added processDocuments request (#5971) - Changed suffix from -preview to -privatepreview (#6047) - Corrected description field (#6059) - Reverted back to -preview from -privatepreview (#6061) * Added Syntex to custom-words.txt * Fixed 'Missing required property: meterId' * Fixed "the 'openapi-subtype' is unset" error * Fixing Lint(RPaaS) errors: - x-ms-long-running-operation - provisioningState * More Lint(RPaaS) errors: - x-ms-long-running-operation-options - provisioningState directly in the properties bag * ModelValidation: fixed position of provisioningState * Fixed OneUnderscoreInOperationId LintDiff errors * Fixing "Resource provider naming must follow the pascal case" errors. * Fixing systemData error * Fixed location of the types.json, which is in common-types * Fixed location of systemData in the DocumentProcessorResource * Another re-positioning of systemData * Started referencing the Resource from common-types * Changed base resource of DocumentProcessorResource from Resource to TrackedResource * Corrected update example by adding location property * correctly placed location property in the update request * Fixed update LintDiff error * Fixed Delete 204 LintDiff error * Fixed XmsIdentifierValidation errors * Fixed operation response * Fixed errors related to x-ms-pageable * Fixed duplicate example Operation IDs * Fixed x-ms-long-running-operation - related error * Added description field to ResponseStatus * Fixed a spelling error * Fixed azure-asyncoperation - related error * fixed prettier errors * Addressed feedback from ARM review board meeting (#6107) * Removed processDocument operation * Removed DocumentProcessorProperties and ProvisioningState * Fixed examples after removing DocumentProperties and ProvisioningState * Removed x-ms-long-running-operation and 201/202 return codes * Revert "Removed DocumentProcessorProperties and ProvisioningState" This reverts commit 2e621471a91c6453a2e9a154604a608dbe059ee4. * Removed processorName property after reverting DocumentProperties back * Simplified ProvisioningState to have only 2 states to reflect non-async resource creation status * Removed depricated status codes from the examples * Made sure that only tags property of the DocumentProcessorResource can be patched. * Added "Canceled" terminal state per Sanjai's feedback. --- custom-words.txt | 1 + .../examples/DocumentProcessor_Create.json | 31 + .../examples/DocumentProcessor_Delete.json | 12 + .../examples/DocumentProcessor_Get.json | 23 + .../examples/DocumentProcessor_List.json | 36 + ...DocumentProcessor_ListByResourceGroup.json | 37 ++ .../DocumentProcessor_ProcessDocuments.json | 47 ++ .../examples/DocumentProcessor_Update.json | 30 + .../examples/Operations_List.json | 22 + .../preview/2021-10-20-preview/syntex.json | 618 ++++++++++++++++++ .../syntex/resource-manager/readme.az.md | 28 + .../syntex/resource-manager/readme.cli.md | 1 + .../syntex/resource-manager/readme.csharp.md | 19 + .../syntex/resource-manager/readme.go.md | 11 + .../syntex/resource-manager/readme.md | 79 +++ .../syntex/resource-manager/readme.python.md | 23 + .../resource-manager/readme.typescript.md | 14 + 17 files changed, 1032 insertions(+) create mode 100644 specification/syntex/resource-manager/Microsoft.Syntex/preview/2021-10-20-preview/examples/DocumentProcessor_Create.json create mode 100644 specification/syntex/resource-manager/Microsoft.Syntex/preview/2021-10-20-preview/examples/DocumentProcessor_Delete.json create mode 100644 specification/syntex/resource-manager/Microsoft.Syntex/preview/2021-10-20-preview/examples/DocumentProcessor_Get.json create mode 100644 specification/syntex/resource-manager/Microsoft.Syntex/preview/2021-10-20-preview/examples/DocumentProcessor_List.json create mode 100644 specification/syntex/resource-manager/Microsoft.Syntex/preview/2021-10-20-preview/examples/DocumentProcessor_ListByResourceGroup.json create mode 100644 specification/syntex/resource-manager/Microsoft.Syntex/preview/2021-10-20-preview/examples/DocumentProcessor_ProcessDocuments.json create mode 100644 specification/syntex/resource-manager/Microsoft.Syntex/preview/2021-10-20-preview/examples/DocumentProcessor_Update.json create mode 100644 specification/syntex/resource-manager/Microsoft.Syntex/preview/2021-10-20-preview/examples/Operations_List.json create mode 100644 specification/syntex/resource-manager/Microsoft.Syntex/preview/2021-10-20-preview/syntex.json create mode 100644 specification/syntex/resource-manager/readme.az.md create mode 100644 specification/syntex/resource-manager/readme.cli.md create mode 100644 specification/syntex/resource-manager/readme.csharp.md create mode 100644 specification/syntex/resource-manager/readme.go.md create mode 100644 specification/syntex/resource-manager/readme.md create mode 100644 specification/syntex/resource-manager/readme.python.md create mode 100644 specification/syntex/resource-manager/readme.typescript.md diff --git a/custom-words.txt b/custom-words.txt index 6ba0e9d0882e..78ba49df4caa 100644 --- a/custom-words.txt +++ b/custom-words.txt @@ -2141,6 +2141,7 @@ Sybase Syncer syncfunctiontriggers synonymmaps +Syntex syntheticmonitorlocations sysctl Sysctl diff --git a/specification/syntex/resource-manager/Microsoft.Syntex/preview/2021-10-20-preview/examples/DocumentProcessor_Create.json b/specification/syntex/resource-manager/Microsoft.Syntex/preview/2021-10-20-preview/examples/DocumentProcessor_Create.json new file mode 100644 index 000000000000..76bfd9c05897 --- /dev/null +++ b/specification/syntex/resource-manager/Microsoft.Syntex/preview/2021-10-20-preview/examples/DocumentProcessor_Create.json @@ -0,0 +1,31 @@ +{ + "parameters": { + "subscriptionId": "cd0d3cc8-cae2-4559-b882-cd707170799b", + "resourceGroupName": "mygroup", + "processorName": "myprocessor", + "api-version": "2021-10-20-preview", + "body": { + "location": "westus", + "tags": { + "additionalProp1": "string1", + "additionalProp2": "string2", + "additionalProp3": "string3" + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/cd0d3cc8-cae2-4559-b882-cd707170799b/resourceGroups/mygroup/providers/microsoft.syntex/documentProcessors/myprocessor", + "name": "myprocessor", + "type": "microsoft.syntex/documentprocessors", + "location": "westus", + "tags": { + "additionalProp1": "string1", + "additionalProp2": "string2", + "additionalProp3": "string3" + } + } + } + } +} diff --git a/specification/syntex/resource-manager/Microsoft.Syntex/preview/2021-10-20-preview/examples/DocumentProcessor_Delete.json b/specification/syntex/resource-manager/Microsoft.Syntex/preview/2021-10-20-preview/examples/DocumentProcessor_Delete.json new file mode 100644 index 000000000000..b7f1505d2234 --- /dev/null +++ b/specification/syntex/resource-manager/Microsoft.Syntex/preview/2021-10-20-preview/examples/DocumentProcessor_Delete.json @@ -0,0 +1,12 @@ +{ + "parameters": { + "subscriptionId": "cd0d3cc8-cae2-4559-b882-cd707170799b", + "resourceGroupName": "mygroup", + "processorName": "myprocessor", + "api-version": "2021-10-20-preview" + }, + "responses": { + "200": {}, + "204": {} + } +} diff --git a/specification/syntex/resource-manager/Microsoft.Syntex/preview/2021-10-20-preview/examples/DocumentProcessor_Get.json b/specification/syntex/resource-manager/Microsoft.Syntex/preview/2021-10-20-preview/examples/DocumentProcessor_Get.json new file mode 100644 index 000000000000..47e4cae31d9b --- /dev/null +++ b/specification/syntex/resource-manager/Microsoft.Syntex/preview/2021-10-20-preview/examples/DocumentProcessor_Get.json @@ -0,0 +1,23 @@ +{ + "parameters": { + "subscriptionId": "cd0d3cc8-cae2-4559-b882-cd707170799b", + "resourceGroupName": "mygroup", + "processorName": "myprocessor", + "api-version": "2021-10-20-preview" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/cd0d3cc8-cae2-4559-b882-cd707170799b/resourceGroups/mygroup/providers/microsoft.syntex/documentProcessors/myprocessor", + "name": "myprocessor", + "type": "microsoft.syntex/documentprocessors", + "location": "westus", + "tags": { + "additionalProp1": "string1", + "additionalProp2": "string2", + "additionalProp3": "string3" + } + } + } + } +} diff --git a/specification/syntex/resource-manager/Microsoft.Syntex/preview/2021-10-20-preview/examples/DocumentProcessor_List.json b/specification/syntex/resource-manager/Microsoft.Syntex/preview/2021-10-20-preview/examples/DocumentProcessor_List.json new file mode 100644 index 000000000000..96df9bd980fb --- /dev/null +++ b/specification/syntex/resource-manager/Microsoft.Syntex/preview/2021-10-20-preview/examples/DocumentProcessor_List.json @@ -0,0 +1,36 @@ +{ + "parameters": { + "subscriptionId": "cd0d3cc8-cae2-4559-b882-cd707170799b", + "api-version": "2021-10-20-preview" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/cd0d3cc8-cae2-4559-b882-cd707170799b/resourceGroups/mygroup/providers/microsoft.syntex/documentProcessors/myprocessor1", + "name": "myprocessor1", + "type": "microsoft.syntex/documentprocessors", + "location": "westus", + "tags": { + "additionalProp1": "string1", + "additionalProp2": "string2", + "additionalProp3": "string3" + } + }, + { + "id": "/subscriptions/cd0d3cc8-cae2-4559-b882-cd707170799b/resourceGroups/mygroup/providers/microsoft.syntex/documentProcessors/myprocessor2", + "name": "myprocessor2", + "type": "microsoft.syntex/documentprocessors", + "location": "westus", + "tags": { + "additionalProp1": "string1", + "additionalProp2": "string2", + "additionalProp3": "string3" + } + } + ] + } + } + } +} diff --git a/specification/syntex/resource-manager/Microsoft.Syntex/preview/2021-10-20-preview/examples/DocumentProcessor_ListByResourceGroup.json b/specification/syntex/resource-manager/Microsoft.Syntex/preview/2021-10-20-preview/examples/DocumentProcessor_ListByResourceGroup.json new file mode 100644 index 000000000000..37750c04f271 --- /dev/null +++ b/specification/syntex/resource-manager/Microsoft.Syntex/preview/2021-10-20-preview/examples/DocumentProcessor_ListByResourceGroup.json @@ -0,0 +1,37 @@ +{ + "parameters": { + "subscriptionId": "cd0d3cc8-cae2-4559-b882-cd707170799b", + "resourceGroupName": "mygroup", + "api-version": "2021-10-20-preview" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/cd0d3cc8-cae2-4559-b882-cd707170799b/resourceGroups/mygroup/providers/microsoft.syntex/documentProcessors/myprocessor1", + "name": "myprocessor1", + "type": "microsoft.syntex/documentprocessors", + "location": "westus", + "tags": { + "additionalProp1": "string1", + "additionalProp2": "string2", + "additionalProp3": "string3" + } + }, + { + "id": "/subscriptions/cd0d3cc8-cae2-4559-b882-cd707170799b/resourceGroups/mygroup/providers/microsoft.syntex/documentProcessors/myprocessor2", + "name": "myprocessor2", + "type": "microsoft.syntex/documentprocessors", + "location": "westus", + "tags": { + "additionalProp1": "string1", + "additionalProp2": "string2", + "additionalProp3": "string3" + } + } + ] + } + } + } +} diff --git a/specification/syntex/resource-manager/Microsoft.Syntex/preview/2021-10-20-preview/examples/DocumentProcessor_ProcessDocuments.json b/specification/syntex/resource-manager/Microsoft.Syntex/preview/2021-10-20-preview/examples/DocumentProcessor_ProcessDocuments.json new file mode 100644 index 000000000000..9b4671d214e4 --- /dev/null +++ b/specification/syntex/resource-manager/Microsoft.Syntex/preview/2021-10-20-preview/examples/DocumentProcessor_ProcessDocuments.json @@ -0,0 +1,47 @@ +{ + "parameters": { + "subscriptionId": "cd0d3cc8-cae2-4559-b882-cd707170799b", + "resourceGroupName": "mygroup", + "processorName": "myprocessor", + "api-version": "2021-10-20-preview", + "body": { + "value": [ + { + "documentId": "A6026870-6172-47CA-A3BE-4A3C8DC70A22", + "eventId": "AF91B20E-5440-44D1-B05C-677AEF30AF12", + "meterId": "9F27F6E2-97EC-4674-A4C1-EC630AD0D583", + "quantity": 17, + "eventDateTime": "2022-01-24T10:32:28Z" + }, + { + "documentId": "FC89016A-791F-44AB-90E6-F74D851D1C7C", + "eventId": "821E1C11-3E8E-495B-B96A-4EAD0AC179FF", + "meterId": "9F27F6E2-97EC-4674-A4C1-EC630AD0D583", + "quantity": 11, + "eventDateTime": "2022-01-24T10:32:28Z" + }, + { + "documentId": "74783E0B-2A0F-4B74-93ED-39F97836C0F2", + "eventId": "28EC2A8C-E618-49BC-A9E0-7D36C85948A8", + "meterId": "9F27F6E2-97EC-4674-A4C1-EC630AD0D583", + "quantity": 23, + "eventDateTime": "2022-01-24T10:32:28Z" + }, + { + "documentId": "991A1923-F7CB-43E8-ADA8-939787D5C56B", + "eventId": "2553462F-8435-4090-9A57-CF602E25D009", + "meterId": "9F27F6E2-97EC-4674-A4C1-EC630AD0D583", + "quantity": 31, + "eventDateTime": "2022-01-24T10:32:28Z" + } + ] + } + }, + "responses": { + "200": { + "body": { + "responseStatus": "Success" + } + } + } +} diff --git a/specification/syntex/resource-manager/Microsoft.Syntex/preview/2021-10-20-preview/examples/DocumentProcessor_Update.json b/specification/syntex/resource-manager/Microsoft.Syntex/preview/2021-10-20-preview/examples/DocumentProcessor_Update.json new file mode 100644 index 000000000000..dcbe286ae990 --- /dev/null +++ b/specification/syntex/resource-manager/Microsoft.Syntex/preview/2021-10-20-preview/examples/DocumentProcessor_Update.json @@ -0,0 +1,30 @@ +{ + "parameters": { + "subscriptionId": "cd0d3cc8-cae2-4559-b882-cd707170799b", + "resourceGroupName": "mygroup", + "processorName": "myprocessor", + "api-version": "2021-10-20-preview", + "body": { + "tags": { + "additionalProp1": "string4", + "additionalProp2": "string5", + "additionalProp3": "string6" + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/cd0d3cc8-cae2-4559-b882-cd707170799b/resourceGroups/mygroup/providers/microsoft.syntex/documentProcessors/myprocessor", + "name": "myprocessor", + "type": "microsoft.syntex/documentprocessors", + "location": "westus", + "tags": { + "additionalProp1": "string4", + "additionalProp2": "string5", + "additionalProp3": "string6" + } + } + } + } +} diff --git a/specification/syntex/resource-manager/Microsoft.Syntex/preview/2021-10-20-preview/examples/Operations_List.json b/specification/syntex/resource-manager/Microsoft.Syntex/preview/2021-10-20-preview/examples/Operations_List.json new file mode 100644 index 000000000000..4964f55fcc2b --- /dev/null +++ b/specification/syntex/resource-manager/Microsoft.Syntex/preview/2021-10-20-preview/examples/Operations_List.json @@ -0,0 +1,22 @@ +{ + "parameters": { + "api-version": "2021-10-20-preview" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "microsoft.syntex/documentProcessors/processorName/processDocument", + "display": { + "provider": "Microsoft.Syntex", + "resource": "microsoft.syntex/documentProcessors", + "operation": "POST", + "description": "Processes a document." + } + } + ] + } + } + } +} diff --git a/specification/syntex/resource-manager/Microsoft.Syntex/preview/2021-10-20-preview/syntex.json b/specification/syntex/resource-manager/Microsoft.Syntex/preview/2021-10-20-preview/syntex.json new file mode 100644 index 000000000000..528dc44bee8e --- /dev/null +++ b/specification/syntex/resource-manager/Microsoft.Syntex/preview/2021-10-20-preview/syntex.json @@ -0,0 +1,618 @@ +{ + "swagger": "2.0", + "info": { + "version": "2021-10-20-preview", + "title": "Syntex", + "description": "Syntex provider" + }, + "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}/providers/Microsoft.Syntex/documentProcessors": { + "get": { + "description": "Returns document processors in the subscription.", + "operationId": "DocumentProcessor_List", + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Document processor details.", + "schema": { + "$ref": "#/definitions/DocumentProcessorList" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + }, + "x-ms-examples": { + "DocumentProcessor_List": { + "$ref": "./examples/DocumentProcessor_List.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Syntex/documentProcessors": { + "get": { + "description": "Returns document processors in a resource group.", + "operationId": "DocumentProcessor_ListByResourceGroup", + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Document processor details.", + "schema": { + "$ref": "#/definitions/DocumentProcessorList" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + }, + "x-ms-examples": { + "DocumentProcessor_ListByResourceGroup": { + "$ref": "./examples/DocumentProcessor_ListByResourceGroup.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Syntex/documentProcessors/{processorName}": { + "get": { + "description": "Returns a document processor for a given name.", + "operationId": "DocumentProcessor_Get", + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/ProcessorNameParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Document processor details.", + "schema": { + "$ref": "#/definitions/DocumentProcessorResource" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "DocumentProcessor_Get": { + "$ref": "./examples/DocumentProcessor_Get.json" + } + } + }, + "delete": { + "description": "Deletes document processor resource for a given name.", + "operationId": "DocumentProcessor_Delete", + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/ProcessorNameParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Deletes the document processor details." + }, + "204": { + "description": "The document processor details are not present." + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "DocumentProcessor_Delete": { + "$ref": "./examples/DocumentProcessor_Delete.json" + } + } + }, + "put": { + "description": "Creates a document processor resource for a given name.", + "operationId": "DocumentProcessor_Create", + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/ProcessorNameParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "name": "body", + "description": "Document processor details.", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/DocumentProcessorResource" + } + } + ], + "responses": { + "200": { + "description": "Success", + "schema": { + "$ref": "#/definitions/DocumentProcessorResource" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "DocumentProcessor_Create": { + "$ref": "./examples/DocumentProcessor_Create.json" + } + } + }, + "patch": { + "description": "Updates a document processor resource for a given name.", + "operationId": "DocumentProcessor_Update", + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/ProcessorNameParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "name": "body", + "description": "Document processor details.", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/DocumentProcessorPatchableProperties" + } + } + ], + "responses": { + "200": { + "description": "Success", + "schema": { + "$ref": "#/definitions/DocumentProcessorResource" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "DocumentProcessor_Update": { + "$ref": "./examples/DocumentProcessor_Update.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Syntex/documentProcessors/{processorName}/processDocuments": { + "post": { + "operationId": "DocumentProcessor_ProcessDocuments", + "description": "Process a list of documents", + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/ProcessorNameParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "name": "body", + "description": "Documents processor request.", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/ProcessDocumentsRequest" + } + } + ], + "responses": { + "200": { + "description": "Successful.", + "schema": { + "$ref": "#/definitions/ProcessDocumentsResponse" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "DocumentProcessor_ProcessDocuments": { + "$ref": "./examples/DocumentProcessor_ProcessDocuments.json" + } + } + } + }, + "/providers/Microsoft.Syntex/operations": { + "get": { + "operationId": "Operations_List", + "description": "List of all REST operations supported by the Microsoft.Syntex provider.", + "tags": [ + "Operations" + ], + "parameters": [ + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Describes the result of a successful operation.", + "schema": { + "$ref": "#/definitions/OperationsListResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + }, + "x-ms-examples": { + "Operations_List": { + "$ref": "./examples/Operations_List.json" + } + } + } + } + }, + "definitions": { + "DocumentProcessorResource": { + "type": "object", + "description": "Document processor details", + "allOf": [ + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/TrackedResource" + } + ], + "properties": { + "systemData": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/systemData", + "readOnly": true + }, + "properties": { + "x-ms-client-flatten": false, + "description": "Document processor properties.", + "$ref": "#/definitions/DocumentProcessorProperties" + } + } + }, + "DocumentProcessorPatchableProperties": { + "type": "object", + "description": "Document processor properties that can be patched", + "properties": { + "tags": { + "type": "object", + "description": "Resource tags.", + "additionalProperties": { + "type": "string" + } + } + } + }, + "DocumentProcessorProperties": { + "type": "object", + "description": "Document processor properties", + "properties": { + "provisioningState": { + "readOnly": true, + "$ref": "#/definitions/ProvisioningState", + "description": "The managed resource provisioning state." + } + } + }, + "ProvisioningState": { + "description": "Provisioning status of the managed resource.", + "readOnly": true, + "enum": [ + "Succeeded", + "Failed", + "Canceled" + ], + "type": "string", + "x-ms-enum": { + "name": "ProvisioningState", + "modelAsString": true + } + }, + "DocumentProcessorList": { + "type": "object", + "description": "Document processor list", + "properties": { + "value": { + "description": "Array of document processors.", + "type": "array", + "items": { + "$ref": "#/definitions/DocumentProcessorResource" + }, + "x-ms-identifiers": [ + "name" + ], + "readOnly": true + }, + "nextLink": { + "description": "Link to retrieve next page of results.", + "type": "string", + "readOnly": true + } + } + }, + "ProcessDocumentsRequest": { + "type": "object", + "description": "Process documents request.", + "properties": { + "value": { + "description": "Array of document properties", + "type": "array", + "items": { + "$ref": "#/definitions/DocumentProperties" + }, + "x-ms-identifiers": [ + "documentId" + ] + } + }, + "required": [ + "value" + ] + }, + "ResponseStatus": { + "description": "Process document response status.", + "type": "string", + "enum": [ + "Success" + ], + "x-ms-enum": { + "name": "ResponseStatus", + "modelAsString": true + } + }, + "ProcessDocumentsResponse": { + "type": "object", + "description": "Process documents response.", + "properties": { + "responseStatus": { + "description": "Response status.", + "$ref": "#/definitions/ResponseStatus" + } + }, + "required": [ + "responseStatus" + ] + }, + "DocumentProperties": { + "type": "object", + "description": "Document properties.", + "properties": { + "documentId": { + "type": "string", + "description": "The ID of the processed document." + }, + "eventId": { + "type": "string", + "description": "A unique event id corresponding to a usage record." + }, + "meterId": { + "type": "string", + "description": "A logical meter id that Syntex billing service then translates to a corresponding commerce meter id." + }, + "quantity": { + "type": "number", + "format": "double", + "description": "Quantity corresponding to the logical meter id that Syntex billing service then translates to the unit expected by the commerce meter." + }, + "eventDateTime": { + "type": "string", + "format": "date-time", + "description": "The time the document was processed. It could be different from the time the Syntex billing service receives the usage event." + } + }, + "required": [ + "documentId", + "eventId", + "meterId", + "quantity", + "eventDateTime" + ] + }, + "OperationsListResult": { + "type": "object", + "description": "Lists the operations available.", + "properties": { + "value": { + "description": "Collection of available operation details", + "uniqueItems": false, + "type": "array", + "items": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/Operation" + }, + "x-ms-identifiers": [ + "name" + ] + }, + "nextLink": { + "type": "string", + "description": "URL to get the next set of operation list results (if there are any)." + } + }, + "required": [ + "value" + ] + }, + "ErrorResponse": { + "type": "object", + "description": "Error response.", + "properties": { + "error": { + "$ref": "#/definitions/ErrorDefinition", + "description": "The error details." + } + } + }, + "ErrorDefinition": { + "type": "object", + "description": "Error definition.", + "properties": { + "code": { + "description": "Service specific error code which serves as the substatus for the HTTP error code.", + "type": "string", + "readOnly": true + }, + "message": { + "description": "Description of the error.", + "type": "string", + "readOnly": true + }, + "details": { + "description": "Internal error details.", + "type": "array", + "items": { + "$ref": "#/definitions/ErrorDefinition" + }, + "x-ms-identifiers": [ + "code" + ], + "readOnly": true + } + } + } + }, + "parameters": { + "SubscriptionIdParameter": { + "name": "subscriptionId", + "in": "path", + "required": true, + "type": "string", + "description": "The Azure subscription ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000)" + }, + "ResourceGroupNameParameter": { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group.", + "x-ms-parameter-location": "method" + }, + "ApiVersionParameter": { + "name": "api-version", + "in": "query", + "required": true, + "type": "string", + "description": "The API version to be used with the HTTP request." + }, + "ProcessorNameParameter": { + "name": "processorName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of document processor resource.", + "x-ms-parameter-location": "method" + } + } +} diff --git a/specification/syntex/resource-manager/readme.az.md b/specification/syntex/resource-manager/readme.az.md new file mode 100644 index 000000000000..42c018ef531e --- /dev/null +++ b/specification/syntex/resource-manager/readme.az.md @@ -0,0 +1,28 @@ +## AZ + +These settings apply only when `--az` is specified on the command line. + +For new Resource Provider. It is highly recommended to onboard Azure CLI extensions. There's no differences in terms of customer usage. + +``` yaml $(az) && $(target-mode) != 'core' +az: + extensions: syntex + namespace: azure.mgmt.syntex + package-name: azure-mgmt-syntex +az-output-folder: $(azure-cli-extension-folder)/src/syntex +python-sdk-output-folder: "$(az-output-folder)/azext_syntex/vendored_sdks/syntex" +# add additional configuration here specific for Azure CLI +# refer to the faq.md for more details +``` + + + +This is for command modules that already in azure cli main repo. +``` yaml $(az) && $(target-mode) == 'core' +az: + extensions: syntex + namespace: azure.mgmt.syntex + package-name: azure-mgmt-syntex +az-output-folder: $(azure-cli-folder)/src/azure-cli/azure/cli/command_modules/syntex +python-sdk-output-folder: "$(az-output-folder)/vendored_sdks/syntex" +``` \ No newline at end of file diff --git a/specification/syntex/resource-manager/readme.cli.md b/specification/syntex/resource-manager/readme.cli.md new file mode 100644 index 000000000000..c6cf6ad37ea4 --- /dev/null +++ b/specification/syntex/resource-manager/readme.cli.md @@ -0,0 +1 @@ +## CLI Common Settings for all the command line tools \ No newline at end of file diff --git a/specification/syntex/resource-manager/readme.csharp.md b/specification/syntex/resource-manager/readme.csharp.md new file mode 100644 index 000000000000..ddddd9e46e42 --- /dev/null +++ b/specification/syntex/resource-manager/readme.csharp.md @@ -0,0 +1,19 @@ +## C# + +These settings apply only when `--csharp` is specified on the command line. +Please also specify `--csharp-sdks-folder=`. + +```yaml $(csharp) +azure-arm: true +license-header: MICROSOFT_MIT_NO_VERSION +payload-flattening-threshold: 1 +clear-output-folder: true +client-side-validation: false +namespace: Microsoft.SharePoint.Syntex.Client +output-folder: $(csharp-sdks-folder)/syntex/management/Microsoft.SharePoint.Syntex.Client/GeneratedProtocol +directive: + from: swagger-document + where: $.definitions.* + transform: > + $["x-accessibility"] = "public" +``` diff --git a/specification/syntex/resource-manager/readme.go.md b/specification/syntex/resource-manager/readme.go.md new file mode 100644 index 000000000000..ba28d50dba44 --- /dev/null +++ b/specification/syntex/resource-manager/readme.go.md @@ -0,0 +1,11 @@ +## Go + +These settings apply only when `--go` is specified on the command line. + +```yaml $(go) && $(track2) +azure-arm: true +license-header: MICROSOFT_MIT_NO_VERSION +module-name: sdk/resourcemanager/syntex/armsyntex +module: github.com/Azure/azure-sdk-for-go/$(module-name) +output-folder: $(go-sdk-folder)/$(module-name) +``` diff --git a/specification/syntex/resource-manager/readme.md b/specification/syntex/resource-manager/readme.md new file mode 100644 index 000000000000..e9d1f03e266c --- /dev/null +++ b/specification/syntex/resource-manager/readme.md @@ -0,0 +1,79 @@ +# syntex + +> see https://aka.ms/autorest + +This is the AutoRest configuration file for syntex. + +## Getting Started + +To build the SDKs for My API, simply install AutoRest via `npm` (`npm install -g autorest`) and then run: + +> `autorest readme.md` + +To see additional help and options, run: + +> `autorest --help` + +For other options on installation see [Installing AutoRest](https://aka.ms/autorest/install) on the AutoRest github page. + +--- + +## Configuration + +### Basic Information + +These are the global settings for the syntex. + +```yaml +openapi-type: arm +openapi-subtype: providerHub +clear-output-folder: true +tag: package-2021-10-20-preview +``` + +### Tag: package-2021-10-20-preview + +These settings apply only when `--tag=package-2021-10-20-preview` is specified on the command line. + +```yaml $(tag) == 'package-2021-10-20-preview' +input-file: + - Microsoft.Syntex/preview/2021-10-20-preview/syntex.json +``` + +--- + +# Code Generation + +## Swagger to SDK + +This section describes what SDK should be generated by the automatic system. +This is not used by Autorest itself. + +```yaml $(swagger-to-sdk) +swagger-to-sdk: + - repo: azure-sdk-for-python-track2 + - repo: azure-sdk-for-java + - repo: azure-sdk-for-go-track2 + - repo: azure-sdk-for-js + - repo: azure-resource-manager-schemas + - repo: azure-cli-extensions +``` +## Az + +See configuration in [readme.az.md](./readme.az.md) + +## Go + +See configuration in [readme.go.md](./readme.go.md) + +## Python + +See configuration in [readme.python.md](./readme.python.md) + +## TypeScript + +See configuration in [readme.typescript.md](./readme.typescript.md) + +## CSharp + +See configuration in [readme.csharp.md](./readme.csharp.md) diff --git a/specification/syntex/resource-manager/readme.python.md b/specification/syntex/resource-manager/readme.python.md new file mode 100644 index 000000000000..62a33e3a7930 --- /dev/null +++ b/specification/syntex/resource-manager/readme.python.md @@ -0,0 +1,23 @@ +## Python + +These settings apply only when `--python` is specified on the command line. +Please also specify `--python-sdks-folder=`. + +``` yaml $(track2) +azure-arm: true +license-header: MICROSOFT_MIT_NO_VERSION +package-name: azure-mgmt-syntex +no-namespace-folders: true +package-version: 1.0.0b1 +clear-output-folder: true +``` + +``` yaml $(python-mode) == 'update' && $(track2) +no-namespace-folders: true +output-folder: $(python-sdks-folder)/syntex/azure-mgmt-syntex/azure/mgmt/syntex +``` + +``` yaml $(python-mode) == 'create' && $(track2) +basic-setup-py: true +output-folder: $(python-sdks-folder)/syntex/azure-mgmt-syntex +``` diff --git a/specification/syntex/resource-manager/readme.typescript.md b/specification/syntex/resource-manager/readme.typescript.md new file mode 100644 index 000000000000..d68c6a183ac4 --- /dev/null +++ b/specification/syntex/resource-manager/readme.typescript.md @@ -0,0 +1,14 @@ +## TypeScript + +These settings apply only when `--typescript` is specified on the command line. +Please also specify `--typescript-sdks-folder=`. + +``` yaml $(typescript) +typescript: + azure-arm: true + package-name: "@azure/arm-syntex" + output-folder: "$(typescript-sdks-folder)/sdk/syntex/arm-syntex" + payload-flattening-threshold: 1 + clear-output-folder: true + generate-metadata: true +``` From 7bfabd6dc4b6443ee7b40c39bc926df311c0ef22 Mon Sep 17 00:00:00 2001 From: yurych Date: Wed, 22 Jun 2022 22:07:20 -0700 Subject: [PATCH 02/14] Added a new API version to accommodate a new spoTenantAdminUrl property (#7579) * copied 2021-10-20 to 2022-06-15 * - Added spoTenantAdminUrl property - Updated examples and the spec to make sure spoAdminTenantUrl is patchable. - Fixed prettier errors - copied 2021-10-20 to 2022-06-15 - corrected API version in 2022-06-15 folder - Restored 2021-10-20 version to its original state - made the latest API version a default tag in readme.md - made spoTenantAdminUrl required in the new API (#7586) - Fixed required property for spoTenantAdminUrl (#7588) * Corrected PATCH schema and example (#7601) --- .../examples/DocumentProcessor_Create.json | 37 + .../examples/DocumentProcessor_Delete.json | 12 + .../examples/DocumentProcessor_Get.json | 26 + .../examples/DocumentProcessor_List.json | 42 ++ ...DocumentProcessor_ListByResourceGroup.json | 43 ++ .../DocumentProcessor_ProcessDocuments.json | 47 ++ .../examples/DocumentProcessor_Update.json | 36 + .../examples/Operations_List.json | 22 + .../preview/2022-06-15-preview/syntex.json | 636 ++++++++++++++++++ .../syntex/resource-manager/readme.md | 11 +- 10 files changed, 911 insertions(+), 1 deletion(-) create mode 100644 specification/syntex/resource-manager/Microsoft.Syntex/preview/2022-06-15-preview/examples/DocumentProcessor_Create.json create mode 100644 specification/syntex/resource-manager/Microsoft.Syntex/preview/2022-06-15-preview/examples/DocumentProcessor_Delete.json create mode 100644 specification/syntex/resource-manager/Microsoft.Syntex/preview/2022-06-15-preview/examples/DocumentProcessor_Get.json create mode 100644 specification/syntex/resource-manager/Microsoft.Syntex/preview/2022-06-15-preview/examples/DocumentProcessor_List.json create mode 100644 specification/syntex/resource-manager/Microsoft.Syntex/preview/2022-06-15-preview/examples/DocumentProcessor_ListByResourceGroup.json create mode 100644 specification/syntex/resource-manager/Microsoft.Syntex/preview/2022-06-15-preview/examples/DocumentProcessor_ProcessDocuments.json create mode 100644 specification/syntex/resource-manager/Microsoft.Syntex/preview/2022-06-15-preview/examples/DocumentProcessor_Update.json create mode 100644 specification/syntex/resource-manager/Microsoft.Syntex/preview/2022-06-15-preview/examples/Operations_List.json create mode 100644 specification/syntex/resource-manager/Microsoft.Syntex/preview/2022-06-15-preview/syntex.json diff --git a/specification/syntex/resource-manager/Microsoft.Syntex/preview/2022-06-15-preview/examples/DocumentProcessor_Create.json b/specification/syntex/resource-manager/Microsoft.Syntex/preview/2022-06-15-preview/examples/DocumentProcessor_Create.json new file mode 100644 index 000000000000..5a0161307311 --- /dev/null +++ b/specification/syntex/resource-manager/Microsoft.Syntex/preview/2022-06-15-preview/examples/DocumentProcessor_Create.json @@ -0,0 +1,37 @@ +{ + "parameters": { + "subscriptionId": "cd0d3cc8-cae2-4559-b882-cd707170799b", + "resourceGroupName": "mygroup", + "processorName": "myprocessor", + "api-version": "2022-06-15-preview", + "body": { + "location": "westus", + "tags": { + "additionalProp1": "string1", + "additionalProp2": "string2", + "additionalProp3": "string3" + }, + "properties": { + "spoTenantAdminUrl": "https://test123-admin.sharepoint.com" + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/cd0d3cc8-cae2-4559-b882-cd707170799b/resourceGroups/mygroup/providers/microsoft.syntex/documentProcessors/myprocessor", + "name": "myprocessor", + "type": "microsoft.syntex/documentprocessors", + "location": "westus", + "tags": { + "additionalProp1": "string1", + "additionalProp2": "string2", + "additionalProp3": "string3" + }, + "properties": { + "spoTenantAdminUrl": "https://test123-admin.sharepoint.com" + } + } + } + } +} diff --git a/specification/syntex/resource-manager/Microsoft.Syntex/preview/2022-06-15-preview/examples/DocumentProcessor_Delete.json b/specification/syntex/resource-manager/Microsoft.Syntex/preview/2022-06-15-preview/examples/DocumentProcessor_Delete.json new file mode 100644 index 000000000000..13ae33ce8e4f --- /dev/null +++ b/specification/syntex/resource-manager/Microsoft.Syntex/preview/2022-06-15-preview/examples/DocumentProcessor_Delete.json @@ -0,0 +1,12 @@ +{ + "parameters": { + "subscriptionId": "cd0d3cc8-cae2-4559-b882-cd707170799b", + "resourceGroupName": "mygroup", + "processorName": "myprocessor", + "api-version": "2022-06-15-preview" + }, + "responses": { + "200": {}, + "204": {} + } +} diff --git a/specification/syntex/resource-manager/Microsoft.Syntex/preview/2022-06-15-preview/examples/DocumentProcessor_Get.json b/specification/syntex/resource-manager/Microsoft.Syntex/preview/2022-06-15-preview/examples/DocumentProcessor_Get.json new file mode 100644 index 000000000000..bb23cb9a3871 --- /dev/null +++ b/specification/syntex/resource-manager/Microsoft.Syntex/preview/2022-06-15-preview/examples/DocumentProcessor_Get.json @@ -0,0 +1,26 @@ +{ + "parameters": { + "subscriptionId": "cd0d3cc8-cae2-4559-b882-cd707170799b", + "resourceGroupName": "mygroup", + "processorName": "myprocessor", + "api-version": "2022-06-15-preview" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/cd0d3cc8-cae2-4559-b882-cd707170799b/resourceGroups/mygroup/providers/microsoft.syntex/documentProcessors/myprocessor", + "name": "myprocessor", + "type": "microsoft.syntex/documentprocessors", + "location": "westus", + "tags": { + "additionalProp1": "string1", + "additionalProp2": "string2", + "additionalProp3": "string3" + }, + "properties": { + "spoTenantAdminUrl": "https://test123-admin.sharepoint.com" + } + } + } + } +} diff --git a/specification/syntex/resource-manager/Microsoft.Syntex/preview/2022-06-15-preview/examples/DocumentProcessor_List.json b/specification/syntex/resource-manager/Microsoft.Syntex/preview/2022-06-15-preview/examples/DocumentProcessor_List.json new file mode 100644 index 000000000000..5fdc87e66713 --- /dev/null +++ b/specification/syntex/resource-manager/Microsoft.Syntex/preview/2022-06-15-preview/examples/DocumentProcessor_List.json @@ -0,0 +1,42 @@ +{ + "parameters": { + "subscriptionId": "cd0d3cc8-cae2-4559-b882-cd707170799b", + "api-version": "2022-06-15-preview" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/cd0d3cc8-cae2-4559-b882-cd707170799b/resourceGroups/mygroup/providers/microsoft.syntex/documentProcessors/myprocessor1", + "name": "myprocessor1", + "type": "microsoft.syntex/documentprocessors", + "location": "westus", + "tags": { + "additionalProp1": "string1", + "additionalProp2": "string2", + "additionalProp3": "string3" + }, + "properties": { + "spoTenantAdminUrl": "https://test123-admin.sharepoint.com" + } + }, + { + "id": "/subscriptions/cd0d3cc8-cae2-4559-b882-cd707170799b/resourceGroups/mygroup/providers/microsoft.syntex/documentProcessors/myprocessor2", + "name": "myprocessor2", + "type": "microsoft.syntex/documentprocessors", + "location": "westus", + "tags": { + "additionalProp1": "string1", + "additionalProp2": "string2", + "additionalProp3": "string3" + }, + "properties": { + "spoTenantAdminUrl": "https://test456-admin.sharepoint.com" + } + } + ] + } + } + } +} diff --git a/specification/syntex/resource-manager/Microsoft.Syntex/preview/2022-06-15-preview/examples/DocumentProcessor_ListByResourceGroup.json b/specification/syntex/resource-manager/Microsoft.Syntex/preview/2022-06-15-preview/examples/DocumentProcessor_ListByResourceGroup.json new file mode 100644 index 000000000000..e9594e2bb358 --- /dev/null +++ b/specification/syntex/resource-manager/Microsoft.Syntex/preview/2022-06-15-preview/examples/DocumentProcessor_ListByResourceGroup.json @@ -0,0 +1,43 @@ +{ + "parameters": { + "subscriptionId": "cd0d3cc8-cae2-4559-b882-cd707170799b", + "resourceGroupName": "mygroup", + "api-version": "2022-06-15-preview" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/cd0d3cc8-cae2-4559-b882-cd707170799b/resourceGroups/mygroup/providers/microsoft.syntex/documentProcessors/myprocessor1", + "name": "myprocessor1", + "type": "microsoft.syntex/documentprocessors", + "location": "westus", + "tags": { + "additionalProp1": "string1", + "additionalProp2": "string2", + "additionalProp3": "string3" + }, + "properties": { + "spoTenantAdminUrl": "https://test123-admin.sharepoint.com" + } + }, + { + "id": "/subscriptions/cd0d3cc8-cae2-4559-b882-cd707170799b/resourceGroups/mygroup/providers/microsoft.syntex/documentProcessors/myprocessor2", + "name": "myprocessor2", + "type": "microsoft.syntex/documentprocessors", + "location": "westus", + "tags": { + "additionalProp1": "string1", + "additionalProp2": "string2", + "additionalProp3": "string3" + }, + "properties": { + "spoTenantAdminUrl": "https://test456-admin.sharepoint.com" + } + } + ] + } + } + } +} diff --git a/specification/syntex/resource-manager/Microsoft.Syntex/preview/2022-06-15-preview/examples/DocumentProcessor_ProcessDocuments.json b/specification/syntex/resource-manager/Microsoft.Syntex/preview/2022-06-15-preview/examples/DocumentProcessor_ProcessDocuments.json new file mode 100644 index 000000000000..9cb732904b2b --- /dev/null +++ b/specification/syntex/resource-manager/Microsoft.Syntex/preview/2022-06-15-preview/examples/DocumentProcessor_ProcessDocuments.json @@ -0,0 +1,47 @@ +{ + "parameters": { + "subscriptionId": "cd0d3cc8-cae2-4559-b882-cd707170799b", + "resourceGroupName": "mygroup", + "processorName": "myprocessor", + "api-version": "2022-06-15-preview", + "body": { + "value": [ + { + "documentId": "A6026870-6172-47CA-A3BE-4A3C8DC70A22", + "eventId": "AF91B20E-5440-44D1-B05C-677AEF30AF12", + "meterId": "9F27F6E2-97EC-4674-A4C1-EC630AD0D583", + "quantity": 17, + "eventDateTime": "2022-01-24T10:32:28Z" + }, + { + "documentId": "FC89016A-791F-44AB-90E6-F74D851D1C7C", + "eventId": "821E1C11-3E8E-495B-B96A-4EAD0AC179FF", + "meterId": "9F27F6E2-97EC-4674-A4C1-EC630AD0D583", + "quantity": 11, + "eventDateTime": "2022-01-24T10:32:28Z" + }, + { + "documentId": "74783E0B-2A0F-4B74-93ED-39F97836C0F2", + "eventId": "28EC2A8C-E618-49BC-A9E0-7D36C85948A8", + "meterId": "9F27F6E2-97EC-4674-A4C1-EC630AD0D583", + "quantity": 23, + "eventDateTime": "2022-01-24T10:32:28Z" + }, + { + "documentId": "991A1923-F7CB-43E8-ADA8-939787D5C56B", + "eventId": "2553462F-8435-4090-9A57-CF602E25D009", + "meterId": "9F27F6E2-97EC-4674-A4C1-EC630AD0D583", + "quantity": 31, + "eventDateTime": "2022-01-24T10:32:28Z" + } + ] + } + }, + "responses": { + "200": { + "body": { + "responseStatus": "Success" + } + } + } +} diff --git a/specification/syntex/resource-manager/Microsoft.Syntex/preview/2022-06-15-preview/examples/DocumentProcessor_Update.json b/specification/syntex/resource-manager/Microsoft.Syntex/preview/2022-06-15-preview/examples/DocumentProcessor_Update.json new file mode 100644 index 000000000000..bd8a20422804 --- /dev/null +++ b/specification/syntex/resource-manager/Microsoft.Syntex/preview/2022-06-15-preview/examples/DocumentProcessor_Update.json @@ -0,0 +1,36 @@ +{ + "parameters": { + "subscriptionId": "cd0d3cc8-cae2-4559-b882-cd707170799b", + "resourceGroupName": "mygroup", + "processorName": "myprocessor", + "api-version": "2022-06-15-preview", + "body": { + "tags": { + "additionalProp1": "string4", + "additionalProp2": "string5", + "additionalProp3": "string6" + }, + "properties": { + "spoTenantAdminUrl": "https://test123-admin.sharepoint.com" + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/cd0d3cc8-cae2-4559-b882-cd707170799b/resourceGroups/mygroup/providers/microsoft.syntex/documentProcessors/myprocessor", + "name": "myprocessor", + "type": "microsoft.syntex/documentprocessors", + "location": "westus", + "tags": { + "additionalProp1": "string4", + "additionalProp2": "string5", + "additionalProp3": "string6" + }, + "properties": { + "spoTenantAdminUrl": "https://test123-admin.sharepoint.com" + } + } + } + } +} diff --git a/specification/syntex/resource-manager/Microsoft.Syntex/preview/2022-06-15-preview/examples/Operations_List.json b/specification/syntex/resource-manager/Microsoft.Syntex/preview/2022-06-15-preview/examples/Operations_List.json new file mode 100644 index 000000000000..7b1290766e5f --- /dev/null +++ b/specification/syntex/resource-manager/Microsoft.Syntex/preview/2022-06-15-preview/examples/Operations_List.json @@ -0,0 +1,22 @@ +{ + "parameters": { + "api-version": "2022-06-15-preview" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "microsoft.syntex/documentProcessors/processorName/processDocument", + "display": { + "provider": "Microsoft.Syntex", + "resource": "microsoft.syntex/documentProcessors", + "operation": "POST", + "description": "Processes a document." + } + } + ] + } + } + } +} diff --git a/specification/syntex/resource-manager/Microsoft.Syntex/preview/2022-06-15-preview/syntex.json b/specification/syntex/resource-manager/Microsoft.Syntex/preview/2022-06-15-preview/syntex.json new file mode 100644 index 000000000000..3b334b7a4032 --- /dev/null +++ b/specification/syntex/resource-manager/Microsoft.Syntex/preview/2022-06-15-preview/syntex.json @@ -0,0 +1,636 @@ +{ + "swagger": "2.0", + "info": { + "version": "2022-06-15-preview", + "title": "Syntex", + "description": "Syntex provider" + }, + "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}/providers/Microsoft.Syntex/documentProcessors": { + "get": { + "description": "Returns document processors in the subscription.", + "operationId": "DocumentProcessor_List", + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Document processor details.", + "schema": { + "$ref": "#/definitions/DocumentProcessorList" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + }, + "x-ms-examples": { + "DocumentProcessor_List": { + "$ref": "./examples/DocumentProcessor_List.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Syntex/documentProcessors": { + "get": { + "description": "Returns document processors in a resource group.", + "operationId": "DocumentProcessor_ListByResourceGroup", + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Document processor details.", + "schema": { + "$ref": "#/definitions/DocumentProcessorList" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + }, + "x-ms-examples": { + "DocumentProcessor_ListByResourceGroup": { + "$ref": "./examples/DocumentProcessor_ListByResourceGroup.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Syntex/documentProcessors/{processorName}": { + "get": { + "description": "Returns a document processor for a given name.", + "operationId": "DocumentProcessor_Get", + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/ProcessorNameParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Document processor details.", + "schema": { + "$ref": "#/definitions/DocumentProcessorResource" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "DocumentProcessor_Get": { + "$ref": "./examples/DocumentProcessor_Get.json" + } + } + }, + "delete": { + "description": "Deletes document processor resource for a given name.", + "operationId": "DocumentProcessor_Delete", + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/ProcessorNameParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Deletes the document processor details." + }, + "204": { + "description": "The document processor details are not present." + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "DocumentProcessor_Delete": { + "$ref": "./examples/DocumentProcessor_Delete.json" + } + } + }, + "put": { + "description": "Creates a document processor resource for a given name.", + "operationId": "DocumentProcessor_Create", + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/ProcessorNameParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "name": "body", + "description": "Document processor details.", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/DocumentProcessorResource" + } + } + ], + "responses": { + "200": { + "description": "Success", + "schema": { + "$ref": "#/definitions/DocumentProcessorResource" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "DocumentProcessor_Create": { + "$ref": "./examples/DocumentProcessor_Create.json" + } + } + }, + "patch": { + "description": "Updates a document processor resource for a given name.", + "operationId": "DocumentProcessor_Update", + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/ProcessorNameParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "name": "body", + "description": "Document processor details.", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/DocumentProcessorPatchableProperties" + } + } + ], + "responses": { + "200": { + "description": "Success", + "schema": { + "$ref": "#/definitions/DocumentProcessorResource" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "DocumentProcessor_Update": { + "$ref": "./examples/DocumentProcessor_Update.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Syntex/documentProcessors/{processorName}/processDocuments": { + "post": { + "operationId": "DocumentProcessor_ProcessDocuments", + "description": "Process a list of documents", + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/ProcessorNameParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "name": "body", + "description": "Documents processor request.", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/ProcessDocumentsRequest" + } + } + ], + "responses": { + "200": { + "description": "Successful.", + "schema": { + "$ref": "#/definitions/ProcessDocumentsResponse" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "DocumentProcessor_ProcessDocuments": { + "$ref": "./examples/DocumentProcessor_ProcessDocuments.json" + } + } + } + }, + "/providers/Microsoft.Syntex/operations": { + "get": { + "operationId": "Operations_List", + "description": "List of all REST operations supported by the Microsoft.Syntex provider.", + "tags": [ + "Operations" + ], + "parameters": [ + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Describes the result of a successful operation.", + "schema": { + "$ref": "#/definitions/OperationsListResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + }, + "x-ms-examples": { + "Operations_List": { + "$ref": "./examples/Operations_List.json" + } + } + } + } + }, + "definitions": { + "DocumentProcessorResource": { + "type": "object", + "description": "Document processor details", + "allOf": [ + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/TrackedResource" + } + ], + "properties": { + "systemData": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/systemData", + "readOnly": true + }, + "properties": { + "x-ms-client-flatten": false, + "description": "Document processor properties.", + "$ref": "#/definitions/DocumentProcessorProperties" + } + } + }, + "DocumentProcessorPatchableProperties": { + "type": "object", + "description": "Document processor properties that can be patched", + "properties": { + "tags": { + "type": "object", + "description": "Resource tags.", + "additionalProperties": { + "type": "string" + } + }, + "properties": { + "type": "object", + "x-ms-client-flatten": true, + "description": "Syntex properties for PATCH.", + "properties": { + "spoTenantAdminUrl": { + "type": "string", + "description": "The URL of admin tenant associated with this document processor resource" + } + } + } + } + }, + "DocumentProcessorProperties": { + "type": "object", + "description": "Document processor properties", + "properties": { + "provisioningState": { + "readOnly": true, + "$ref": "#/definitions/ProvisioningState", + "description": "The managed resource provisioning state." + }, + "spoTenantAdminUrl": { + "type": "string", + "description": "The URL of admin tenant associated with this document processor resource" + } + }, + "required": [ + "spoTenantAdminUrl" + ] + }, + "ProvisioningState": { + "description": "Provisioning status of the managed resource.", + "readOnly": true, + "enum": [ + "Succeeded", + "Failed", + "Canceled" + ], + "type": "string", + "x-ms-enum": { + "name": "ProvisioningState", + "modelAsString": true + } + }, + "DocumentProcessorList": { + "type": "object", + "description": "Document processor list", + "properties": { + "value": { + "description": "Array of document processors.", + "type": "array", + "items": { + "$ref": "#/definitions/DocumentProcessorResource" + }, + "x-ms-identifiers": [ + "name" + ], + "readOnly": true + }, + "nextLink": { + "description": "Link to retrieve next page of results.", + "type": "string", + "readOnly": true + } + } + }, + "ProcessDocumentsRequest": { + "type": "object", + "description": "Process documents request.", + "properties": { + "value": { + "description": "Array of document properties", + "type": "array", + "items": { + "$ref": "#/definitions/DocumentProperties" + }, + "x-ms-identifiers": [ + "documentId" + ] + } + }, + "required": [ + "value" + ] + }, + "ResponseStatus": { + "description": "Process document response status.", + "type": "string", + "enum": [ + "Success" + ], + "x-ms-enum": { + "name": "ResponseStatus", + "modelAsString": true + } + }, + "ProcessDocumentsResponse": { + "type": "object", + "description": "Process documents response.", + "properties": { + "responseStatus": { + "description": "Response status.", + "$ref": "#/definitions/ResponseStatus" + } + }, + "required": [ + "responseStatus" + ] + }, + "DocumentProperties": { + "type": "object", + "description": "Document properties.", + "properties": { + "documentId": { + "type": "string", + "description": "The ID of the processed document." + }, + "eventId": { + "type": "string", + "description": "A unique event id corresponding to a usage record." + }, + "meterId": { + "type": "string", + "description": "A logical meter id that Syntex billing service then translates to a corresponding commerce meter id." + }, + "quantity": { + "type": "number", + "format": "double", + "description": "Quantity corresponding to the logical meter id that Syntex billing service then translates to the unit expected by the commerce meter." + }, + "eventDateTime": { + "type": "string", + "format": "date-time", + "description": "The time the document was processed. It could be different from the time the Syntex billing service receives the usage event." + } + }, + "required": [ + "documentId", + "eventId", + "meterId", + "quantity", + "eventDateTime" + ] + }, + "OperationsListResult": { + "type": "object", + "description": "Lists the operations available.", + "properties": { + "value": { + "description": "Collection of available operation details", + "uniqueItems": false, + "type": "array", + "items": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/Operation" + }, + "x-ms-identifiers": [ + "name" + ] + }, + "nextLink": { + "type": "string", + "description": "URL to get the next set of operation list results (if there are any)." + } + }, + "required": [ + "value" + ] + }, + "ErrorResponse": { + "type": "object", + "description": "Error response.", + "properties": { + "error": { + "$ref": "#/definitions/ErrorDefinition", + "description": "The error details." + } + } + }, + "ErrorDefinition": { + "type": "object", + "description": "Error definition.", + "properties": { + "code": { + "description": "Service specific error code which serves as the substatus for the HTTP error code.", + "type": "string", + "readOnly": true + }, + "message": { + "description": "Description of the error.", + "type": "string", + "readOnly": true + }, + "details": { + "description": "Internal error details.", + "type": "array", + "items": { + "$ref": "#/definitions/ErrorDefinition" + }, + "x-ms-identifiers": [ + "code" + ], + "readOnly": true + } + } + } + }, + "parameters": { + "SubscriptionIdParameter": { + "name": "subscriptionId", + "in": "path", + "required": true, + "type": "string", + "description": "The Azure subscription ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000)" + }, + "ResourceGroupNameParameter": { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group.", + "x-ms-parameter-location": "method" + }, + "ApiVersionParameter": { + "name": "api-version", + "in": "query", + "required": true, + "type": "string", + "description": "The API version to be used with the HTTP request." + }, + "ProcessorNameParameter": { + "name": "processorName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of document processor resource.", + "x-ms-parameter-location": "method" + } + } +} diff --git a/specification/syntex/resource-manager/readme.md b/specification/syntex/resource-manager/readme.md index e9d1f03e266c..1936667b56eb 100644 --- a/specification/syntex/resource-manager/readme.md +++ b/specification/syntex/resource-manager/readme.md @@ -28,7 +28,16 @@ These are the global settings for the syntex. openapi-type: arm openapi-subtype: providerHub clear-output-folder: true -tag: package-2021-10-20-preview +tag: package-2022-06-15-preview +``` + +### Tag: package-2022-06-15-preview + +These settings apply only when `--tag=package-2022-06-15-preview` is specified on the command line. + +```yaml $(tag) == 'package-2022-06-15-preview' +input-file: + - Microsoft.Syntex/preview/2022-06-15-preview/syntex.json ``` ### Tag: package-2021-10-20-preview From 323d9c6b733f2d5b70b791d5fb2031b447449b12 Mon Sep 17 00:00:00 2001 From: yurych Date: Tue, 20 Sep 2022 20:36:29 -0700 Subject: [PATCH 03/14] New API version: 2022-09-15-preview (#8815) * initial copy of 2022-06-15-preview API * changed API version * Updated readme.md to incorporate a new version * Updated resource schema * removed processDocuments operation, associated types and examples * Updated examples to match new schema * Fixed prettier errors --- .../examples/DocumentProcessor_Create.json | 39 ++ .../examples/DocumentProcessor_Delete.json | 12 + .../examples/DocumentProcessor_Get.json | 27 + .../examples/DocumentProcessor_List.json | 44 ++ ...DocumentProcessor_ListByResourceGroup.json | 45 ++ .../examples/DocumentProcessor_Update.json | 38 ++ .../examples/Operations_List.json | 12 + .../preview/2022-09-15-preview/syntex.json | 519 ++++++++++++++++++ .../syntex/resource-manager/readme.md | 11 +- 9 files changed, 746 insertions(+), 1 deletion(-) create mode 100644 specification/syntex/resource-manager/Microsoft.Syntex/preview/2022-09-15-preview/examples/DocumentProcessor_Create.json create mode 100644 specification/syntex/resource-manager/Microsoft.Syntex/preview/2022-09-15-preview/examples/DocumentProcessor_Delete.json create mode 100644 specification/syntex/resource-manager/Microsoft.Syntex/preview/2022-09-15-preview/examples/DocumentProcessor_Get.json create mode 100644 specification/syntex/resource-manager/Microsoft.Syntex/preview/2022-09-15-preview/examples/DocumentProcessor_List.json create mode 100644 specification/syntex/resource-manager/Microsoft.Syntex/preview/2022-09-15-preview/examples/DocumentProcessor_ListByResourceGroup.json create mode 100644 specification/syntex/resource-manager/Microsoft.Syntex/preview/2022-09-15-preview/examples/DocumentProcessor_Update.json create mode 100644 specification/syntex/resource-manager/Microsoft.Syntex/preview/2022-09-15-preview/examples/Operations_List.json create mode 100644 specification/syntex/resource-manager/Microsoft.Syntex/preview/2022-09-15-preview/syntex.json diff --git a/specification/syntex/resource-manager/Microsoft.Syntex/preview/2022-09-15-preview/examples/DocumentProcessor_Create.json b/specification/syntex/resource-manager/Microsoft.Syntex/preview/2022-09-15-preview/examples/DocumentProcessor_Create.json new file mode 100644 index 000000000000..2183963b5f91 --- /dev/null +++ b/specification/syntex/resource-manager/Microsoft.Syntex/preview/2022-09-15-preview/examples/DocumentProcessor_Create.json @@ -0,0 +1,39 @@ +{ + "parameters": { + "subscriptionId": "cd0d3cc8-cae2-4559-b882-cd707170799b", + "resourceGroupName": "mygroup", + "processorName": "myprocessor", + "api-version": "2022-09-15-preview", + "body": { + "location": "westus", + "tags": { + "additionalProp1": "string1", + "additionalProp2": "string2", + "additionalProp3": "string3" + }, + "properties": { + "spoTenantUrl": "https://test123.sharepoint.com", + "spoTenantId": "e9bb744b-9558-4dc6-9e50-a3297e3332fa" + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/cd0d3cc8-cae2-4559-b882-cd707170799b/resourceGroups/mygroup/providers/microsoft.syntex/documentProcessors/myprocessor", + "name": "myprocessor", + "type": "microsoft.syntex/documentprocessors", + "location": "westus", + "tags": { + "additionalProp1": "string1", + "additionalProp2": "string2", + "additionalProp3": "string3" + }, + "properties": { + "spoTenantUrl": "https://test123.sharepoint.com", + "spoTenantId": "e9bb744b-9558-4dc6-9e50-a3297e3332fa" + } + } + } + } +} diff --git a/specification/syntex/resource-manager/Microsoft.Syntex/preview/2022-09-15-preview/examples/DocumentProcessor_Delete.json b/specification/syntex/resource-manager/Microsoft.Syntex/preview/2022-09-15-preview/examples/DocumentProcessor_Delete.json new file mode 100644 index 000000000000..5fc83f733fe7 --- /dev/null +++ b/specification/syntex/resource-manager/Microsoft.Syntex/preview/2022-09-15-preview/examples/DocumentProcessor_Delete.json @@ -0,0 +1,12 @@ +{ + "parameters": { + "subscriptionId": "cd0d3cc8-cae2-4559-b882-cd707170799b", + "resourceGroupName": "mygroup", + "processorName": "myprocessor", + "api-version": "2022-09-15-preview" + }, + "responses": { + "200": {}, + "204": {} + } +} diff --git a/specification/syntex/resource-manager/Microsoft.Syntex/preview/2022-09-15-preview/examples/DocumentProcessor_Get.json b/specification/syntex/resource-manager/Microsoft.Syntex/preview/2022-09-15-preview/examples/DocumentProcessor_Get.json new file mode 100644 index 000000000000..dd23902dd701 --- /dev/null +++ b/specification/syntex/resource-manager/Microsoft.Syntex/preview/2022-09-15-preview/examples/DocumentProcessor_Get.json @@ -0,0 +1,27 @@ +{ + "parameters": { + "subscriptionId": "cd0d3cc8-cae2-4559-b882-cd707170799b", + "resourceGroupName": "mygroup", + "processorName": "myprocessor", + "api-version": "2022-09-15-preview" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/cd0d3cc8-cae2-4559-b882-cd707170799b/resourceGroups/mygroup/providers/microsoft.syntex/documentProcessors/myprocessor", + "name": "myprocessor", + "type": "microsoft.syntex/documentprocessors", + "location": "westus", + "tags": { + "additionalProp1": "string1", + "additionalProp2": "string2", + "additionalProp3": "string3" + }, + "properties": { + "spoTenantUrl": "https://test123.sharepoint.com", + "spoTenantId": "e9bb744b-9558-4dc6-9e50-a3297e3332fa" + } + } + } + } +} diff --git a/specification/syntex/resource-manager/Microsoft.Syntex/preview/2022-09-15-preview/examples/DocumentProcessor_List.json b/specification/syntex/resource-manager/Microsoft.Syntex/preview/2022-09-15-preview/examples/DocumentProcessor_List.json new file mode 100644 index 000000000000..8e10575343b4 --- /dev/null +++ b/specification/syntex/resource-manager/Microsoft.Syntex/preview/2022-09-15-preview/examples/DocumentProcessor_List.json @@ -0,0 +1,44 @@ +{ + "parameters": { + "subscriptionId": "cd0d3cc8-cae2-4559-b882-cd707170799b", + "api-version": "2022-09-15-preview" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/cd0d3cc8-cae2-4559-b882-cd707170799b/resourceGroups/mygroup/providers/microsoft.syntex/documentProcessors/myprocessor1", + "name": "myprocessor1", + "type": "microsoft.syntex/documentprocessors", + "location": "westus", + "tags": { + "additionalProp1": "string1", + "additionalProp2": "string2", + "additionalProp3": "string3" + }, + "properties": { + "spoTenantUrl": "https://test123.sharepoint.com", + "spoTenantId": "e9bb744b-9558-4dc6-9e50-a3297e3332fa" + } + }, + { + "id": "/subscriptions/cd0d3cc8-cae2-4559-b882-cd707170799b/resourceGroups/mygroup/providers/microsoft.syntex/documentProcessors/myprocessor2", + "name": "myprocessor2", + "type": "microsoft.syntex/documentprocessors", + "location": "westus", + "tags": { + "additionalProp1": "string1", + "additionalProp2": "string2", + "additionalProp3": "string3" + }, + "properties": { + "spoTenantUrl": "https://test123.sharepoint.com", + "spoTenantId": "e9bb744b-9558-4dc6-9e50-a3297e3332fa" + } + } + ] + } + } + } +} diff --git a/specification/syntex/resource-manager/Microsoft.Syntex/preview/2022-09-15-preview/examples/DocumentProcessor_ListByResourceGroup.json b/specification/syntex/resource-manager/Microsoft.Syntex/preview/2022-09-15-preview/examples/DocumentProcessor_ListByResourceGroup.json new file mode 100644 index 000000000000..c5f7029e0259 --- /dev/null +++ b/specification/syntex/resource-manager/Microsoft.Syntex/preview/2022-09-15-preview/examples/DocumentProcessor_ListByResourceGroup.json @@ -0,0 +1,45 @@ +{ + "parameters": { + "subscriptionId": "cd0d3cc8-cae2-4559-b882-cd707170799b", + "resourceGroupName": "mygroup", + "api-version": "2022-09-15-preview" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/cd0d3cc8-cae2-4559-b882-cd707170799b/resourceGroups/mygroup/providers/microsoft.syntex/documentProcessors/myprocessor1", + "name": "myprocessor1", + "type": "microsoft.syntex/documentprocessors", + "location": "westus", + "tags": { + "additionalProp1": "string1", + "additionalProp2": "string2", + "additionalProp3": "string3" + }, + "properties": { + "spoTenantUrl": "https://test123.sharepoint.com", + "spoTenantId": "e9bb744b-9558-4dc6-9e50-a3297e3332fa" + } + }, + { + "id": "/subscriptions/cd0d3cc8-cae2-4559-b882-cd707170799b/resourceGroups/mygroup/providers/microsoft.syntex/documentProcessors/myprocessor2", + "name": "myprocessor2", + "type": "microsoft.syntex/documentprocessors", + "location": "westus", + "tags": { + "additionalProp1": "string1", + "additionalProp2": "string2", + "additionalProp3": "string3" + }, + "properties": { + "spoTenantUrl": "https://test123.sharepoint.com", + "spoTenantId": "e9bb744b-9558-4dc6-9e50-a3297e3332fa" + } + } + ] + } + } + } +} diff --git a/specification/syntex/resource-manager/Microsoft.Syntex/preview/2022-09-15-preview/examples/DocumentProcessor_Update.json b/specification/syntex/resource-manager/Microsoft.Syntex/preview/2022-09-15-preview/examples/DocumentProcessor_Update.json new file mode 100644 index 000000000000..ee25759543cd --- /dev/null +++ b/specification/syntex/resource-manager/Microsoft.Syntex/preview/2022-09-15-preview/examples/DocumentProcessor_Update.json @@ -0,0 +1,38 @@ +{ + "parameters": { + "subscriptionId": "cd0d3cc8-cae2-4559-b882-cd707170799b", + "resourceGroupName": "mygroup", + "processorName": "myprocessor", + "api-version": "2022-09-15-preview", + "body": { + "tags": { + "additionalProp1": "string4", + "additionalProp2": "string5", + "additionalProp3": "string6" + }, + "properties": { + "spoTenantUrl": "https://test123.sharepoint.com", + "spoTenantId": "e9bb744b-9558-4dc6-9e50-a3297e3332fa" + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/cd0d3cc8-cae2-4559-b882-cd707170799b/resourceGroups/mygroup/providers/microsoft.syntex/documentProcessors/myprocessor", + "name": "myprocessor", + "type": "microsoft.syntex/documentprocessors", + "location": "westus", + "tags": { + "additionalProp1": "string4", + "additionalProp2": "string5", + "additionalProp3": "string6" + }, + "properties": { + "spoTenantUrl": "https://test123.sharepoint.com", + "spoTenantId": "e9bb744b-9558-4dc6-9e50-a3297e3332fa" + } + } + } + } +} diff --git a/specification/syntex/resource-manager/Microsoft.Syntex/preview/2022-09-15-preview/examples/Operations_List.json b/specification/syntex/resource-manager/Microsoft.Syntex/preview/2022-09-15-preview/examples/Operations_List.json new file mode 100644 index 000000000000..b7e66adb38e7 --- /dev/null +++ b/specification/syntex/resource-manager/Microsoft.Syntex/preview/2022-09-15-preview/examples/Operations_List.json @@ -0,0 +1,12 @@ +{ + "parameters": { + "api-version": "2022-09-15-preview" + }, + "responses": { + "200": { + "body": { + "value": [] + } + } + } +} diff --git a/specification/syntex/resource-manager/Microsoft.Syntex/preview/2022-09-15-preview/syntex.json b/specification/syntex/resource-manager/Microsoft.Syntex/preview/2022-09-15-preview/syntex.json new file mode 100644 index 000000000000..fa9d415f9607 --- /dev/null +++ b/specification/syntex/resource-manager/Microsoft.Syntex/preview/2022-09-15-preview/syntex.json @@ -0,0 +1,519 @@ +{ + "swagger": "2.0", + "info": { + "version": "2022-09-15-preview", + "title": "Syntex", + "description": "Syntex provider" + }, + "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}/providers/Microsoft.Syntex/documentProcessors": { + "get": { + "description": "Returns document processors in the subscription.", + "operationId": "DocumentProcessor_List", + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Document processor details.", + "schema": { + "$ref": "#/definitions/DocumentProcessorList" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + }, + "x-ms-examples": { + "DocumentProcessor_List": { + "$ref": "./examples/DocumentProcessor_List.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Syntex/documentProcessors": { + "get": { + "description": "Returns document processors in a resource group.", + "operationId": "DocumentProcessor_ListByResourceGroup", + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Document processor details.", + "schema": { + "$ref": "#/definitions/DocumentProcessorList" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + }, + "x-ms-examples": { + "DocumentProcessor_ListByResourceGroup": { + "$ref": "./examples/DocumentProcessor_ListByResourceGroup.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Syntex/documentProcessors/{processorName}": { + "get": { + "description": "Returns a document processor for a given name.", + "operationId": "DocumentProcessor_Get", + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/ProcessorNameParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Document processor details.", + "schema": { + "$ref": "#/definitions/DocumentProcessorResource" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "DocumentProcessor_Get": { + "$ref": "./examples/DocumentProcessor_Get.json" + } + } + }, + "delete": { + "description": "Deletes document processor resource for a given name.", + "operationId": "DocumentProcessor_Delete", + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/ProcessorNameParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Deletes the document processor details." + }, + "204": { + "description": "The document processor details are not present." + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "DocumentProcessor_Delete": { + "$ref": "./examples/DocumentProcessor_Delete.json" + } + } + }, + "put": { + "description": "Creates a document processor resource for a given name.", + "operationId": "DocumentProcessor_Create", + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/ProcessorNameParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "name": "body", + "description": "Document processor details.", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/DocumentProcessorResource" + } + } + ], + "responses": { + "200": { + "description": "Success", + "schema": { + "$ref": "#/definitions/DocumentProcessorResource" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "DocumentProcessor_Create": { + "$ref": "./examples/DocumentProcessor_Create.json" + } + } + }, + "patch": { + "description": "Updates a document processor resource for a given name.", + "operationId": "DocumentProcessor_Update", + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/ProcessorNameParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "name": "body", + "description": "Document processor details.", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/DocumentProcessorPatchableProperties" + } + } + ], + "responses": { + "200": { + "description": "Success", + "schema": { + "$ref": "#/definitions/DocumentProcessorResource" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "DocumentProcessor_Update": { + "$ref": "./examples/DocumentProcessor_Update.json" + } + } + } + }, + "/providers/Microsoft.Syntex/operations": { + "get": { + "operationId": "Operations_List", + "description": "List of all REST operations supported by the Microsoft.Syntex provider.", + "tags": [ + "Operations" + ], + "parameters": [ + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Describes the result of a successful operation.", + "schema": { + "$ref": "#/definitions/OperationsListResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + }, + "x-ms-examples": { + "Operations_List": { + "$ref": "./examples/Operations_List.json" + } + } + } + } + }, + "definitions": { + "DocumentProcessorResource": { + "type": "object", + "description": "Document processor details", + "allOf": [ + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/TrackedResource" + } + ], + "properties": { + "systemData": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/systemData", + "readOnly": true + }, + "properties": { + "x-ms-client-flatten": false, + "description": "Document processor properties.", + "$ref": "#/definitions/DocumentProcessorProperties" + } + } + }, + "DocumentProcessorPatchableProperties": { + "type": "object", + "description": "Document processor properties that can be patched", + "properties": { + "tags": { + "type": "object", + "description": "Resource tags.", + "additionalProperties": { + "type": "string" + } + }, + "properties": { + "type": "object", + "x-ms-client-flatten": true, + "description": "Syntex properties for PATCH.", + "properties": { + "spoTenantUrl": { + "type": "string", + "description": "The URL of an SPO tenant associated with this document processor resource" + }, + "spoTenantId": { + "type": "string", + "description": "The Id (GUID) of an SPO tenant associated with this document processor resource" + } + } + } + } + }, + "DocumentProcessorProperties": { + "type": "object", + "description": "Document processor properties", + "properties": { + "provisioningState": { + "readOnly": true, + "$ref": "#/definitions/ProvisioningState", + "description": "The managed resource provisioning state." + }, + "spoTenantUrl": { + "type": "string", + "description": "The URL of an SPO tenant associated with this document processor resource" + }, + "spoTenantId": { + "type": "string", + "description": "The Id (GUID) of an SPO tenant associated with this document processor resource" + } + }, + "required": [ + "spoTenantUrl", + "spoTenantId" + ] + }, + "ProvisioningState": { + "description": "Provisioning status of the managed resource.", + "readOnly": true, + "enum": [ + "Succeeded", + "Failed", + "Canceled" + ], + "type": "string", + "x-ms-enum": { + "name": "ProvisioningState", + "modelAsString": true + } + }, + "DocumentProcessorList": { + "type": "object", + "description": "Document processor list", + "properties": { + "value": { + "description": "Array of document processors.", + "type": "array", + "items": { + "$ref": "#/definitions/DocumentProcessorResource" + }, + "x-ms-identifiers": [ + "name" + ], + "readOnly": true + }, + "nextLink": { + "description": "Link to retrieve next page of results.", + "type": "string", + "readOnly": true + } + } + }, + "OperationsListResult": { + "type": "object", + "description": "Lists the operations available.", + "properties": { + "value": { + "description": "Collection of available operation details", + "uniqueItems": false, + "type": "array", + "items": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/Operation" + }, + "x-ms-identifiers": [ + "name" + ] + }, + "nextLink": { + "type": "string", + "description": "URL to get the next set of operation list results (if there are any)." + } + }, + "required": [ + "value" + ] + }, + "ErrorResponse": { + "type": "object", + "description": "Error response.", + "properties": { + "error": { + "$ref": "#/definitions/ErrorDefinition", + "description": "The error details." + } + } + }, + "ErrorDefinition": { + "type": "object", + "description": "Error definition.", + "properties": { + "code": { + "description": "Service specific error code which serves as the substatus for the HTTP error code.", + "type": "string", + "readOnly": true + }, + "message": { + "description": "Description of the error.", + "type": "string", + "readOnly": true + }, + "details": { + "description": "Internal error details.", + "type": "array", + "items": { + "$ref": "#/definitions/ErrorDefinition" + }, + "x-ms-identifiers": [ + "code" + ], + "readOnly": true + } + } + } + }, + "parameters": { + "SubscriptionIdParameter": { + "name": "subscriptionId", + "in": "path", + "required": true, + "type": "string", + "description": "The Azure subscription ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000)" + }, + "ResourceGroupNameParameter": { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group.", + "x-ms-parameter-location": "method" + }, + "ApiVersionParameter": { + "name": "api-version", + "in": "query", + "required": true, + "type": "string", + "description": "The API version to be used with the HTTP request." + }, + "ProcessorNameParameter": { + "name": "processorName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of document processor resource.", + "x-ms-parameter-location": "method" + } + } +} diff --git a/specification/syntex/resource-manager/readme.md b/specification/syntex/resource-manager/readme.md index 1936667b56eb..9e850b968fa7 100644 --- a/specification/syntex/resource-manager/readme.md +++ b/specification/syntex/resource-manager/readme.md @@ -28,7 +28,16 @@ These are the global settings for the syntex. openapi-type: arm openapi-subtype: providerHub clear-output-folder: true -tag: package-2022-06-15-preview +tag: package-2022-09-15-preview +``` + +### Tag: package-2022-09-15-preview + +These settings apply only when `--tag=package-2022-09-15-preview` is specified on the command line. + +```yaml $(tag) == 'package-2022-09-15-preview' +input-file: + - Microsoft.Syntex/preview/2022-09-15-preview/syntex.json ``` ### Tag: package-2022-06-15-preview From fb1f524c4baba151cf41f4506ab52911f7294b7b Mon Sep 17 00:00:00 2001 From: yurych Date: Fri, 30 Sep 2022 15:59:43 -0700 Subject: [PATCH 04/14] Removed API versions that we don't want to move from azure-rest-api-specs-pr/RPSaaSMaster to azure-rest-api-specs/main: - 2021-10-20-preview - 2022-06-15-preview Left only 2022-09-15-preview version. --- .../examples/DocumentProcessor_Create.json | 31 - .../examples/DocumentProcessor_Delete.json | 12 - .../examples/DocumentProcessor_Get.json | 23 - .../examples/DocumentProcessor_List.json | 36 - ...DocumentProcessor_ListByResourceGroup.json | 37 - .../DocumentProcessor_ProcessDocuments.json | 47 -- .../examples/DocumentProcessor_Update.json | 30 - .../examples/Operations_List.json | 22 - .../preview/2021-10-20-preview/syntex.json | 618 ----------------- .../examples/DocumentProcessor_Create.json | 37 - .../examples/DocumentProcessor_Delete.json | 12 - .../examples/DocumentProcessor_Get.json | 26 - .../examples/DocumentProcessor_List.json | 42 -- ...DocumentProcessor_ListByResourceGroup.json | 43 -- .../DocumentProcessor_ProcessDocuments.json | 47 -- .../examples/DocumentProcessor_Update.json | 36 - .../examples/Operations_List.json | 22 - .../preview/2022-06-15-preview/syntex.json | 636 ------------------ .../syntex/resource-manager/readme.md | 18 - 19 files changed, 1775 deletions(-) delete mode 100644 specification/syntex/resource-manager/Microsoft.Syntex/preview/2021-10-20-preview/examples/DocumentProcessor_Create.json delete mode 100644 specification/syntex/resource-manager/Microsoft.Syntex/preview/2021-10-20-preview/examples/DocumentProcessor_Delete.json delete mode 100644 specification/syntex/resource-manager/Microsoft.Syntex/preview/2021-10-20-preview/examples/DocumentProcessor_Get.json delete mode 100644 specification/syntex/resource-manager/Microsoft.Syntex/preview/2021-10-20-preview/examples/DocumentProcessor_List.json delete mode 100644 specification/syntex/resource-manager/Microsoft.Syntex/preview/2021-10-20-preview/examples/DocumentProcessor_ListByResourceGroup.json delete mode 100644 specification/syntex/resource-manager/Microsoft.Syntex/preview/2021-10-20-preview/examples/DocumentProcessor_ProcessDocuments.json delete mode 100644 specification/syntex/resource-manager/Microsoft.Syntex/preview/2021-10-20-preview/examples/DocumentProcessor_Update.json delete mode 100644 specification/syntex/resource-manager/Microsoft.Syntex/preview/2021-10-20-preview/examples/Operations_List.json delete mode 100644 specification/syntex/resource-manager/Microsoft.Syntex/preview/2021-10-20-preview/syntex.json delete mode 100644 specification/syntex/resource-manager/Microsoft.Syntex/preview/2022-06-15-preview/examples/DocumentProcessor_Create.json delete mode 100644 specification/syntex/resource-manager/Microsoft.Syntex/preview/2022-06-15-preview/examples/DocumentProcessor_Delete.json delete mode 100644 specification/syntex/resource-manager/Microsoft.Syntex/preview/2022-06-15-preview/examples/DocumentProcessor_Get.json delete mode 100644 specification/syntex/resource-manager/Microsoft.Syntex/preview/2022-06-15-preview/examples/DocumentProcessor_List.json delete mode 100644 specification/syntex/resource-manager/Microsoft.Syntex/preview/2022-06-15-preview/examples/DocumentProcessor_ListByResourceGroup.json delete mode 100644 specification/syntex/resource-manager/Microsoft.Syntex/preview/2022-06-15-preview/examples/DocumentProcessor_ProcessDocuments.json delete mode 100644 specification/syntex/resource-manager/Microsoft.Syntex/preview/2022-06-15-preview/examples/DocumentProcessor_Update.json delete mode 100644 specification/syntex/resource-manager/Microsoft.Syntex/preview/2022-06-15-preview/examples/Operations_List.json delete mode 100644 specification/syntex/resource-manager/Microsoft.Syntex/preview/2022-06-15-preview/syntex.json diff --git a/specification/syntex/resource-manager/Microsoft.Syntex/preview/2021-10-20-preview/examples/DocumentProcessor_Create.json b/specification/syntex/resource-manager/Microsoft.Syntex/preview/2021-10-20-preview/examples/DocumentProcessor_Create.json deleted file mode 100644 index 76bfd9c05897..000000000000 --- a/specification/syntex/resource-manager/Microsoft.Syntex/preview/2021-10-20-preview/examples/DocumentProcessor_Create.json +++ /dev/null @@ -1,31 +0,0 @@ -{ - "parameters": { - "subscriptionId": "cd0d3cc8-cae2-4559-b882-cd707170799b", - "resourceGroupName": "mygroup", - "processorName": "myprocessor", - "api-version": "2021-10-20-preview", - "body": { - "location": "westus", - "tags": { - "additionalProp1": "string1", - "additionalProp2": "string2", - "additionalProp3": "string3" - } - } - }, - "responses": { - "200": { - "body": { - "id": "/subscriptions/cd0d3cc8-cae2-4559-b882-cd707170799b/resourceGroups/mygroup/providers/microsoft.syntex/documentProcessors/myprocessor", - "name": "myprocessor", - "type": "microsoft.syntex/documentprocessors", - "location": "westus", - "tags": { - "additionalProp1": "string1", - "additionalProp2": "string2", - "additionalProp3": "string3" - } - } - } - } -} diff --git a/specification/syntex/resource-manager/Microsoft.Syntex/preview/2021-10-20-preview/examples/DocumentProcessor_Delete.json b/specification/syntex/resource-manager/Microsoft.Syntex/preview/2021-10-20-preview/examples/DocumentProcessor_Delete.json deleted file mode 100644 index b7f1505d2234..000000000000 --- a/specification/syntex/resource-manager/Microsoft.Syntex/preview/2021-10-20-preview/examples/DocumentProcessor_Delete.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "parameters": { - "subscriptionId": "cd0d3cc8-cae2-4559-b882-cd707170799b", - "resourceGroupName": "mygroup", - "processorName": "myprocessor", - "api-version": "2021-10-20-preview" - }, - "responses": { - "200": {}, - "204": {} - } -} diff --git a/specification/syntex/resource-manager/Microsoft.Syntex/preview/2021-10-20-preview/examples/DocumentProcessor_Get.json b/specification/syntex/resource-manager/Microsoft.Syntex/preview/2021-10-20-preview/examples/DocumentProcessor_Get.json deleted file mode 100644 index 47e4cae31d9b..000000000000 --- a/specification/syntex/resource-manager/Microsoft.Syntex/preview/2021-10-20-preview/examples/DocumentProcessor_Get.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "parameters": { - "subscriptionId": "cd0d3cc8-cae2-4559-b882-cd707170799b", - "resourceGroupName": "mygroup", - "processorName": "myprocessor", - "api-version": "2021-10-20-preview" - }, - "responses": { - "200": { - "body": { - "id": "/subscriptions/cd0d3cc8-cae2-4559-b882-cd707170799b/resourceGroups/mygroup/providers/microsoft.syntex/documentProcessors/myprocessor", - "name": "myprocessor", - "type": "microsoft.syntex/documentprocessors", - "location": "westus", - "tags": { - "additionalProp1": "string1", - "additionalProp2": "string2", - "additionalProp3": "string3" - } - } - } - } -} diff --git a/specification/syntex/resource-manager/Microsoft.Syntex/preview/2021-10-20-preview/examples/DocumentProcessor_List.json b/specification/syntex/resource-manager/Microsoft.Syntex/preview/2021-10-20-preview/examples/DocumentProcessor_List.json deleted file mode 100644 index 96df9bd980fb..000000000000 --- a/specification/syntex/resource-manager/Microsoft.Syntex/preview/2021-10-20-preview/examples/DocumentProcessor_List.json +++ /dev/null @@ -1,36 +0,0 @@ -{ - "parameters": { - "subscriptionId": "cd0d3cc8-cae2-4559-b882-cd707170799b", - "api-version": "2021-10-20-preview" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "id": "/subscriptions/cd0d3cc8-cae2-4559-b882-cd707170799b/resourceGroups/mygroup/providers/microsoft.syntex/documentProcessors/myprocessor1", - "name": "myprocessor1", - "type": "microsoft.syntex/documentprocessors", - "location": "westus", - "tags": { - "additionalProp1": "string1", - "additionalProp2": "string2", - "additionalProp3": "string3" - } - }, - { - "id": "/subscriptions/cd0d3cc8-cae2-4559-b882-cd707170799b/resourceGroups/mygroup/providers/microsoft.syntex/documentProcessors/myprocessor2", - "name": "myprocessor2", - "type": "microsoft.syntex/documentprocessors", - "location": "westus", - "tags": { - "additionalProp1": "string1", - "additionalProp2": "string2", - "additionalProp3": "string3" - } - } - ] - } - } - } -} diff --git a/specification/syntex/resource-manager/Microsoft.Syntex/preview/2021-10-20-preview/examples/DocumentProcessor_ListByResourceGroup.json b/specification/syntex/resource-manager/Microsoft.Syntex/preview/2021-10-20-preview/examples/DocumentProcessor_ListByResourceGroup.json deleted file mode 100644 index 37750c04f271..000000000000 --- a/specification/syntex/resource-manager/Microsoft.Syntex/preview/2021-10-20-preview/examples/DocumentProcessor_ListByResourceGroup.json +++ /dev/null @@ -1,37 +0,0 @@ -{ - "parameters": { - "subscriptionId": "cd0d3cc8-cae2-4559-b882-cd707170799b", - "resourceGroupName": "mygroup", - "api-version": "2021-10-20-preview" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "id": "/subscriptions/cd0d3cc8-cae2-4559-b882-cd707170799b/resourceGroups/mygroup/providers/microsoft.syntex/documentProcessors/myprocessor1", - "name": "myprocessor1", - "type": "microsoft.syntex/documentprocessors", - "location": "westus", - "tags": { - "additionalProp1": "string1", - "additionalProp2": "string2", - "additionalProp3": "string3" - } - }, - { - "id": "/subscriptions/cd0d3cc8-cae2-4559-b882-cd707170799b/resourceGroups/mygroup/providers/microsoft.syntex/documentProcessors/myprocessor2", - "name": "myprocessor2", - "type": "microsoft.syntex/documentprocessors", - "location": "westus", - "tags": { - "additionalProp1": "string1", - "additionalProp2": "string2", - "additionalProp3": "string3" - } - } - ] - } - } - } -} diff --git a/specification/syntex/resource-manager/Microsoft.Syntex/preview/2021-10-20-preview/examples/DocumentProcessor_ProcessDocuments.json b/specification/syntex/resource-manager/Microsoft.Syntex/preview/2021-10-20-preview/examples/DocumentProcessor_ProcessDocuments.json deleted file mode 100644 index 9b4671d214e4..000000000000 --- a/specification/syntex/resource-manager/Microsoft.Syntex/preview/2021-10-20-preview/examples/DocumentProcessor_ProcessDocuments.json +++ /dev/null @@ -1,47 +0,0 @@ -{ - "parameters": { - "subscriptionId": "cd0d3cc8-cae2-4559-b882-cd707170799b", - "resourceGroupName": "mygroup", - "processorName": "myprocessor", - "api-version": "2021-10-20-preview", - "body": { - "value": [ - { - "documentId": "A6026870-6172-47CA-A3BE-4A3C8DC70A22", - "eventId": "AF91B20E-5440-44D1-B05C-677AEF30AF12", - "meterId": "9F27F6E2-97EC-4674-A4C1-EC630AD0D583", - "quantity": 17, - "eventDateTime": "2022-01-24T10:32:28Z" - }, - { - "documentId": "FC89016A-791F-44AB-90E6-F74D851D1C7C", - "eventId": "821E1C11-3E8E-495B-B96A-4EAD0AC179FF", - "meterId": "9F27F6E2-97EC-4674-A4C1-EC630AD0D583", - "quantity": 11, - "eventDateTime": "2022-01-24T10:32:28Z" - }, - { - "documentId": "74783E0B-2A0F-4B74-93ED-39F97836C0F2", - "eventId": "28EC2A8C-E618-49BC-A9E0-7D36C85948A8", - "meterId": "9F27F6E2-97EC-4674-A4C1-EC630AD0D583", - "quantity": 23, - "eventDateTime": "2022-01-24T10:32:28Z" - }, - { - "documentId": "991A1923-F7CB-43E8-ADA8-939787D5C56B", - "eventId": "2553462F-8435-4090-9A57-CF602E25D009", - "meterId": "9F27F6E2-97EC-4674-A4C1-EC630AD0D583", - "quantity": 31, - "eventDateTime": "2022-01-24T10:32:28Z" - } - ] - } - }, - "responses": { - "200": { - "body": { - "responseStatus": "Success" - } - } - } -} diff --git a/specification/syntex/resource-manager/Microsoft.Syntex/preview/2021-10-20-preview/examples/DocumentProcessor_Update.json b/specification/syntex/resource-manager/Microsoft.Syntex/preview/2021-10-20-preview/examples/DocumentProcessor_Update.json deleted file mode 100644 index dcbe286ae990..000000000000 --- a/specification/syntex/resource-manager/Microsoft.Syntex/preview/2021-10-20-preview/examples/DocumentProcessor_Update.json +++ /dev/null @@ -1,30 +0,0 @@ -{ - "parameters": { - "subscriptionId": "cd0d3cc8-cae2-4559-b882-cd707170799b", - "resourceGroupName": "mygroup", - "processorName": "myprocessor", - "api-version": "2021-10-20-preview", - "body": { - "tags": { - "additionalProp1": "string4", - "additionalProp2": "string5", - "additionalProp3": "string6" - } - } - }, - "responses": { - "200": { - "body": { - "id": "/subscriptions/cd0d3cc8-cae2-4559-b882-cd707170799b/resourceGroups/mygroup/providers/microsoft.syntex/documentProcessors/myprocessor", - "name": "myprocessor", - "type": "microsoft.syntex/documentprocessors", - "location": "westus", - "tags": { - "additionalProp1": "string4", - "additionalProp2": "string5", - "additionalProp3": "string6" - } - } - } - } -} diff --git a/specification/syntex/resource-manager/Microsoft.Syntex/preview/2021-10-20-preview/examples/Operations_List.json b/specification/syntex/resource-manager/Microsoft.Syntex/preview/2021-10-20-preview/examples/Operations_List.json deleted file mode 100644 index 4964f55fcc2b..000000000000 --- a/specification/syntex/resource-manager/Microsoft.Syntex/preview/2021-10-20-preview/examples/Operations_List.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "parameters": { - "api-version": "2021-10-20-preview" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "name": "microsoft.syntex/documentProcessors/processorName/processDocument", - "display": { - "provider": "Microsoft.Syntex", - "resource": "microsoft.syntex/documentProcessors", - "operation": "POST", - "description": "Processes a document." - } - } - ] - } - } - } -} diff --git a/specification/syntex/resource-manager/Microsoft.Syntex/preview/2021-10-20-preview/syntex.json b/specification/syntex/resource-manager/Microsoft.Syntex/preview/2021-10-20-preview/syntex.json deleted file mode 100644 index 528dc44bee8e..000000000000 --- a/specification/syntex/resource-manager/Microsoft.Syntex/preview/2021-10-20-preview/syntex.json +++ /dev/null @@ -1,618 +0,0 @@ -{ - "swagger": "2.0", - "info": { - "version": "2021-10-20-preview", - "title": "Syntex", - "description": "Syntex provider" - }, - "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}/providers/Microsoft.Syntex/documentProcessors": { - "get": { - "description": "Returns document processors in the subscription.", - "operationId": "DocumentProcessor_List", - "parameters": [ - { - "$ref": "#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "#/parameters/ApiVersionParameter" - } - ], - "responses": { - "200": { - "description": "Document processor details.", - "schema": { - "$ref": "#/definitions/DocumentProcessorList" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "#/definitions/ErrorResponse" - } - } - }, - "x-ms-pageable": { - "nextLinkName": "nextLink" - }, - "x-ms-examples": { - "DocumentProcessor_List": { - "$ref": "./examples/DocumentProcessor_List.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Syntex/documentProcessors": { - "get": { - "description": "Returns document processors in a resource group.", - "operationId": "DocumentProcessor_ListByResourceGroup", - "parameters": [ - { - "$ref": "#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "#/parameters/ApiVersionParameter" - } - ], - "responses": { - "200": { - "description": "Document processor details.", - "schema": { - "$ref": "#/definitions/DocumentProcessorList" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "#/definitions/ErrorResponse" - } - } - }, - "x-ms-pageable": { - "nextLinkName": "nextLink" - }, - "x-ms-examples": { - "DocumentProcessor_ListByResourceGroup": { - "$ref": "./examples/DocumentProcessor_ListByResourceGroup.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Syntex/documentProcessors/{processorName}": { - "get": { - "description": "Returns a document processor for a given name.", - "operationId": "DocumentProcessor_Get", - "parameters": [ - { - "$ref": "#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "#/parameters/ProcessorNameParameter" - }, - { - "$ref": "#/parameters/ApiVersionParameter" - } - ], - "responses": { - "200": { - "description": "Document processor details.", - "schema": { - "$ref": "#/definitions/DocumentProcessorResource" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "#/definitions/ErrorResponse" - } - } - }, - "x-ms-examples": { - "DocumentProcessor_Get": { - "$ref": "./examples/DocumentProcessor_Get.json" - } - } - }, - "delete": { - "description": "Deletes document processor resource for a given name.", - "operationId": "DocumentProcessor_Delete", - "parameters": [ - { - "$ref": "#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "#/parameters/ProcessorNameParameter" - }, - { - "$ref": "#/parameters/ApiVersionParameter" - } - ], - "responses": { - "200": { - "description": "Deletes the document processor details." - }, - "204": { - "description": "The document processor details are not present." - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "#/definitions/ErrorResponse" - } - } - }, - "x-ms-examples": { - "DocumentProcessor_Delete": { - "$ref": "./examples/DocumentProcessor_Delete.json" - } - } - }, - "put": { - "description": "Creates a document processor resource for a given name.", - "operationId": "DocumentProcessor_Create", - "parameters": [ - { - "$ref": "#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "#/parameters/ProcessorNameParameter" - }, - { - "$ref": "#/parameters/ApiVersionParameter" - }, - { - "name": "body", - "description": "Document processor details.", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/DocumentProcessorResource" - } - } - ], - "responses": { - "200": { - "description": "Success", - "schema": { - "$ref": "#/definitions/DocumentProcessorResource" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "#/definitions/ErrorResponse" - } - } - }, - "x-ms-examples": { - "DocumentProcessor_Create": { - "$ref": "./examples/DocumentProcessor_Create.json" - } - } - }, - "patch": { - "description": "Updates a document processor resource for a given name.", - "operationId": "DocumentProcessor_Update", - "parameters": [ - { - "$ref": "#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "#/parameters/ProcessorNameParameter" - }, - { - "$ref": "#/parameters/ApiVersionParameter" - }, - { - "name": "body", - "description": "Document processor details.", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/DocumentProcessorPatchableProperties" - } - } - ], - "responses": { - "200": { - "description": "Success", - "schema": { - "$ref": "#/definitions/DocumentProcessorResource" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "#/definitions/ErrorResponse" - } - } - }, - "x-ms-examples": { - "DocumentProcessor_Update": { - "$ref": "./examples/DocumentProcessor_Update.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Syntex/documentProcessors/{processorName}/processDocuments": { - "post": { - "operationId": "DocumentProcessor_ProcessDocuments", - "description": "Process a list of documents", - "parameters": [ - { - "$ref": "#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "#/parameters/ProcessorNameParameter" - }, - { - "$ref": "#/parameters/ApiVersionParameter" - }, - { - "name": "body", - "description": "Documents processor request.", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/ProcessDocumentsRequest" - } - } - ], - "responses": { - "200": { - "description": "Successful.", - "schema": { - "$ref": "#/definitions/ProcessDocumentsResponse" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "#/definitions/ErrorResponse" - } - } - }, - "x-ms-examples": { - "DocumentProcessor_ProcessDocuments": { - "$ref": "./examples/DocumentProcessor_ProcessDocuments.json" - } - } - } - }, - "/providers/Microsoft.Syntex/operations": { - "get": { - "operationId": "Operations_List", - "description": "List of all REST operations supported by the Microsoft.Syntex provider.", - "tags": [ - "Operations" - ], - "parameters": [ - { - "$ref": "#/parameters/ApiVersionParameter" - } - ], - "responses": { - "200": { - "description": "Describes the result of a successful operation.", - "schema": { - "$ref": "#/definitions/OperationsListResult" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "#/definitions/ErrorResponse" - } - } - }, - "x-ms-pageable": { - "nextLinkName": "nextLink" - }, - "x-ms-examples": { - "Operations_List": { - "$ref": "./examples/Operations_List.json" - } - } - } - } - }, - "definitions": { - "DocumentProcessorResource": { - "type": "object", - "description": "Document processor details", - "allOf": [ - { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/TrackedResource" - } - ], - "properties": { - "systemData": { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/systemData", - "readOnly": true - }, - "properties": { - "x-ms-client-flatten": false, - "description": "Document processor properties.", - "$ref": "#/definitions/DocumentProcessorProperties" - } - } - }, - "DocumentProcessorPatchableProperties": { - "type": "object", - "description": "Document processor properties that can be patched", - "properties": { - "tags": { - "type": "object", - "description": "Resource tags.", - "additionalProperties": { - "type": "string" - } - } - } - }, - "DocumentProcessorProperties": { - "type": "object", - "description": "Document processor properties", - "properties": { - "provisioningState": { - "readOnly": true, - "$ref": "#/definitions/ProvisioningState", - "description": "The managed resource provisioning state." - } - } - }, - "ProvisioningState": { - "description": "Provisioning status of the managed resource.", - "readOnly": true, - "enum": [ - "Succeeded", - "Failed", - "Canceled" - ], - "type": "string", - "x-ms-enum": { - "name": "ProvisioningState", - "modelAsString": true - } - }, - "DocumentProcessorList": { - "type": "object", - "description": "Document processor list", - "properties": { - "value": { - "description": "Array of document processors.", - "type": "array", - "items": { - "$ref": "#/definitions/DocumentProcessorResource" - }, - "x-ms-identifiers": [ - "name" - ], - "readOnly": true - }, - "nextLink": { - "description": "Link to retrieve next page of results.", - "type": "string", - "readOnly": true - } - } - }, - "ProcessDocumentsRequest": { - "type": "object", - "description": "Process documents request.", - "properties": { - "value": { - "description": "Array of document properties", - "type": "array", - "items": { - "$ref": "#/definitions/DocumentProperties" - }, - "x-ms-identifiers": [ - "documentId" - ] - } - }, - "required": [ - "value" - ] - }, - "ResponseStatus": { - "description": "Process document response status.", - "type": "string", - "enum": [ - "Success" - ], - "x-ms-enum": { - "name": "ResponseStatus", - "modelAsString": true - } - }, - "ProcessDocumentsResponse": { - "type": "object", - "description": "Process documents response.", - "properties": { - "responseStatus": { - "description": "Response status.", - "$ref": "#/definitions/ResponseStatus" - } - }, - "required": [ - "responseStatus" - ] - }, - "DocumentProperties": { - "type": "object", - "description": "Document properties.", - "properties": { - "documentId": { - "type": "string", - "description": "The ID of the processed document." - }, - "eventId": { - "type": "string", - "description": "A unique event id corresponding to a usage record." - }, - "meterId": { - "type": "string", - "description": "A logical meter id that Syntex billing service then translates to a corresponding commerce meter id." - }, - "quantity": { - "type": "number", - "format": "double", - "description": "Quantity corresponding to the logical meter id that Syntex billing service then translates to the unit expected by the commerce meter." - }, - "eventDateTime": { - "type": "string", - "format": "date-time", - "description": "The time the document was processed. It could be different from the time the Syntex billing service receives the usage event." - } - }, - "required": [ - "documentId", - "eventId", - "meterId", - "quantity", - "eventDateTime" - ] - }, - "OperationsListResult": { - "type": "object", - "description": "Lists the operations available.", - "properties": { - "value": { - "description": "Collection of available operation details", - "uniqueItems": false, - "type": "array", - "items": { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/Operation" - }, - "x-ms-identifiers": [ - "name" - ] - }, - "nextLink": { - "type": "string", - "description": "URL to get the next set of operation list results (if there are any)." - } - }, - "required": [ - "value" - ] - }, - "ErrorResponse": { - "type": "object", - "description": "Error response.", - "properties": { - "error": { - "$ref": "#/definitions/ErrorDefinition", - "description": "The error details." - } - } - }, - "ErrorDefinition": { - "type": "object", - "description": "Error definition.", - "properties": { - "code": { - "description": "Service specific error code which serves as the substatus for the HTTP error code.", - "type": "string", - "readOnly": true - }, - "message": { - "description": "Description of the error.", - "type": "string", - "readOnly": true - }, - "details": { - "description": "Internal error details.", - "type": "array", - "items": { - "$ref": "#/definitions/ErrorDefinition" - }, - "x-ms-identifiers": [ - "code" - ], - "readOnly": true - } - } - } - }, - "parameters": { - "SubscriptionIdParameter": { - "name": "subscriptionId", - "in": "path", - "required": true, - "type": "string", - "description": "The Azure subscription ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000)" - }, - "ResourceGroupNameParameter": { - "name": "resourceGroupName", - "in": "path", - "required": true, - "type": "string", - "description": "The name of the resource group.", - "x-ms-parameter-location": "method" - }, - "ApiVersionParameter": { - "name": "api-version", - "in": "query", - "required": true, - "type": "string", - "description": "The API version to be used with the HTTP request." - }, - "ProcessorNameParameter": { - "name": "processorName", - "in": "path", - "required": true, - "type": "string", - "description": "The name of document processor resource.", - "x-ms-parameter-location": "method" - } - } -} diff --git a/specification/syntex/resource-manager/Microsoft.Syntex/preview/2022-06-15-preview/examples/DocumentProcessor_Create.json b/specification/syntex/resource-manager/Microsoft.Syntex/preview/2022-06-15-preview/examples/DocumentProcessor_Create.json deleted file mode 100644 index 5a0161307311..000000000000 --- a/specification/syntex/resource-manager/Microsoft.Syntex/preview/2022-06-15-preview/examples/DocumentProcessor_Create.json +++ /dev/null @@ -1,37 +0,0 @@ -{ - "parameters": { - "subscriptionId": "cd0d3cc8-cae2-4559-b882-cd707170799b", - "resourceGroupName": "mygroup", - "processorName": "myprocessor", - "api-version": "2022-06-15-preview", - "body": { - "location": "westus", - "tags": { - "additionalProp1": "string1", - "additionalProp2": "string2", - "additionalProp3": "string3" - }, - "properties": { - "spoTenantAdminUrl": "https://test123-admin.sharepoint.com" - } - } - }, - "responses": { - "200": { - "body": { - "id": "/subscriptions/cd0d3cc8-cae2-4559-b882-cd707170799b/resourceGroups/mygroup/providers/microsoft.syntex/documentProcessors/myprocessor", - "name": "myprocessor", - "type": "microsoft.syntex/documentprocessors", - "location": "westus", - "tags": { - "additionalProp1": "string1", - "additionalProp2": "string2", - "additionalProp3": "string3" - }, - "properties": { - "spoTenantAdminUrl": "https://test123-admin.sharepoint.com" - } - } - } - } -} diff --git a/specification/syntex/resource-manager/Microsoft.Syntex/preview/2022-06-15-preview/examples/DocumentProcessor_Delete.json b/specification/syntex/resource-manager/Microsoft.Syntex/preview/2022-06-15-preview/examples/DocumentProcessor_Delete.json deleted file mode 100644 index 13ae33ce8e4f..000000000000 --- a/specification/syntex/resource-manager/Microsoft.Syntex/preview/2022-06-15-preview/examples/DocumentProcessor_Delete.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "parameters": { - "subscriptionId": "cd0d3cc8-cae2-4559-b882-cd707170799b", - "resourceGroupName": "mygroup", - "processorName": "myprocessor", - "api-version": "2022-06-15-preview" - }, - "responses": { - "200": {}, - "204": {} - } -} diff --git a/specification/syntex/resource-manager/Microsoft.Syntex/preview/2022-06-15-preview/examples/DocumentProcessor_Get.json b/specification/syntex/resource-manager/Microsoft.Syntex/preview/2022-06-15-preview/examples/DocumentProcessor_Get.json deleted file mode 100644 index bb23cb9a3871..000000000000 --- a/specification/syntex/resource-manager/Microsoft.Syntex/preview/2022-06-15-preview/examples/DocumentProcessor_Get.json +++ /dev/null @@ -1,26 +0,0 @@ -{ - "parameters": { - "subscriptionId": "cd0d3cc8-cae2-4559-b882-cd707170799b", - "resourceGroupName": "mygroup", - "processorName": "myprocessor", - "api-version": "2022-06-15-preview" - }, - "responses": { - "200": { - "body": { - "id": "/subscriptions/cd0d3cc8-cae2-4559-b882-cd707170799b/resourceGroups/mygroup/providers/microsoft.syntex/documentProcessors/myprocessor", - "name": "myprocessor", - "type": "microsoft.syntex/documentprocessors", - "location": "westus", - "tags": { - "additionalProp1": "string1", - "additionalProp2": "string2", - "additionalProp3": "string3" - }, - "properties": { - "spoTenantAdminUrl": "https://test123-admin.sharepoint.com" - } - } - } - } -} diff --git a/specification/syntex/resource-manager/Microsoft.Syntex/preview/2022-06-15-preview/examples/DocumentProcessor_List.json b/specification/syntex/resource-manager/Microsoft.Syntex/preview/2022-06-15-preview/examples/DocumentProcessor_List.json deleted file mode 100644 index 5fdc87e66713..000000000000 --- a/specification/syntex/resource-manager/Microsoft.Syntex/preview/2022-06-15-preview/examples/DocumentProcessor_List.json +++ /dev/null @@ -1,42 +0,0 @@ -{ - "parameters": { - "subscriptionId": "cd0d3cc8-cae2-4559-b882-cd707170799b", - "api-version": "2022-06-15-preview" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "id": "/subscriptions/cd0d3cc8-cae2-4559-b882-cd707170799b/resourceGroups/mygroup/providers/microsoft.syntex/documentProcessors/myprocessor1", - "name": "myprocessor1", - "type": "microsoft.syntex/documentprocessors", - "location": "westus", - "tags": { - "additionalProp1": "string1", - "additionalProp2": "string2", - "additionalProp3": "string3" - }, - "properties": { - "spoTenantAdminUrl": "https://test123-admin.sharepoint.com" - } - }, - { - "id": "/subscriptions/cd0d3cc8-cae2-4559-b882-cd707170799b/resourceGroups/mygroup/providers/microsoft.syntex/documentProcessors/myprocessor2", - "name": "myprocessor2", - "type": "microsoft.syntex/documentprocessors", - "location": "westus", - "tags": { - "additionalProp1": "string1", - "additionalProp2": "string2", - "additionalProp3": "string3" - }, - "properties": { - "spoTenantAdminUrl": "https://test456-admin.sharepoint.com" - } - } - ] - } - } - } -} diff --git a/specification/syntex/resource-manager/Microsoft.Syntex/preview/2022-06-15-preview/examples/DocumentProcessor_ListByResourceGroup.json b/specification/syntex/resource-manager/Microsoft.Syntex/preview/2022-06-15-preview/examples/DocumentProcessor_ListByResourceGroup.json deleted file mode 100644 index e9594e2bb358..000000000000 --- a/specification/syntex/resource-manager/Microsoft.Syntex/preview/2022-06-15-preview/examples/DocumentProcessor_ListByResourceGroup.json +++ /dev/null @@ -1,43 +0,0 @@ -{ - "parameters": { - "subscriptionId": "cd0d3cc8-cae2-4559-b882-cd707170799b", - "resourceGroupName": "mygroup", - "api-version": "2022-06-15-preview" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "id": "/subscriptions/cd0d3cc8-cae2-4559-b882-cd707170799b/resourceGroups/mygroup/providers/microsoft.syntex/documentProcessors/myprocessor1", - "name": "myprocessor1", - "type": "microsoft.syntex/documentprocessors", - "location": "westus", - "tags": { - "additionalProp1": "string1", - "additionalProp2": "string2", - "additionalProp3": "string3" - }, - "properties": { - "spoTenantAdminUrl": "https://test123-admin.sharepoint.com" - } - }, - { - "id": "/subscriptions/cd0d3cc8-cae2-4559-b882-cd707170799b/resourceGroups/mygroup/providers/microsoft.syntex/documentProcessors/myprocessor2", - "name": "myprocessor2", - "type": "microsoft.syntex/documentprocessors", - "location": "westus", - "tags": { - "additionalProp1": "string1", - "additionalProp2": "string2", - "additionalProp3": "string3" - }, - "properties": { - "spoTenantAdminUrl": "https://test456-admin.sharepoint.com" - } - } - ] - } - } - } -} diff --git a/specification/syntex/resource-manager/Microsoft.Syntex/preview/2022-06-15-preview/examples/DocumentProcessor_ProcessDocuments.json b/specification/syntex/resource-manager/Microsoft.Syntex/preview/2022-06-15-preview/examples/DocumentProcessor_ProcessDocuments.json deleted file mode 100644 index 9cb732904b2b..000000000000 --- a/specification/syntex/resource-manager/Microsoft.Syntex/preview/2022-06-15-preview/examples/DocumentProcessor_ProcessDocuments.json +++ /dev/null @@ -1,47 +0,0 @@ -{ - "parameters": { - "subscriptionId": "cd0d3cc8-cae2-4559-b882-cd707170799b", - "resourceGroupName": "mygroup", - "processorName": "myprocessor", - "api-version": "2022-06-15-preview", - "body": { - "value": [ - { - "documentId": "A6026870-6172-47CA-A3BE-4A3C8DC70A22", - "eventId": "AF91B20E-5440-44D1-B05C-677AEF30AF12", - "meterId": "9F27F6E2-97EC-4674-A4C1-EC630AD0D583", - "quantity": 17, - "eventDateTime": "2022-01-24T10:32:28Z" - }, - { - "documentId": "FC89016A-791F-44AB-90E6-F74D851D1C7C", - "eventId": "821E1C11-3E8E-495B-B96A-4EAD0AC179FF", - "meterId": "9F27F6E2-97EC-4674-A4C1-EC630AD0D583", - "quantity": 11, - "eventDateTime": "2022-01-24T10:32:28Z" - }, - { - "documentId": "74783E0B-2A0F-4B74-93ED-39F97836C0F2", - "eventId": "28EC2A8C-E618-49BC-A9E0-7D36C85948A8", - "meterId": "9F27F6E2-97EC-4674-A4C1-EC630AD0D583", - "quantity": 23, - "eventDateTime": "2022-01-24T10:32:28Z" - }, - { - "documentId": "991A1923-F7CB-43E8-ADA8-939787D5C56B", - "eventId": "2553462F-8435-4090-9A57-CF602E25D009", - "meterId": "9F27F6E2-97EC-4674-A4C1-EC630AD0D583", - "quantity": 31, - "eventDateTime": "2022-01-24T10:32:28Z" - } - ] - } - }, - "responses": { - "200": { - "body": { - "responseStatus": "Success" - } - } - } -} diff --git a/specification/syntex/resource-manager/Microsoft.Syntex/preview/2022-06-15-preview/examples/DocumentProcessor_Update.json b/specification/syntex/resource-manager/Microsoft.Syntex/preview/2022-06-15-preview/examples/DocumentProcessor_Update.json deleted file mode 100644 index bd8a20422804..000000000000 --- a/specification/syntex/resource-manager/Microsoft.Syntex/preview/2022-06-15-preview/examples/DocumentProcessor_Update.json +++ /dev/null @@ -1,36 +0,0 @@ -{ - "parameters": { - "subscriptionId": "cd0d3cc8-cae2-4559-b882-cd707170799b", - "resourceGroupName": "mygroup", - "processorName": "myprocessor", - "api-version": "2022-06-15-preview", - "body": { - "tags": { - "additionalProp1": "string4", - "additionalProp2": "string5", - "additionalProp3": "string6" - }, - "properties": { - "spoTenantAdminUrl": "https://test123-admin.sharepoint.com" - } - } - }, - "responses": { - "200": { - "body": { - "id": "/subscriptions/cd0d3cc8-cae2-4559-b882-cd707170799b/resourceGroups/mygroup/providers/microsoft.syntex/documentProcessors/myprocessor", - "name": "myprocessor", - "type": "microsoft.syntex/documentprocessors", - "location": "westus", - "tags": { - "additionalProp1": "string4", - "additionalProp2": "string5", - "additionalProp3": "string6" - }, - "properties": { - "spoTenantAdminUrl": "https://test123-admin.sharepoint.com" - } - } - } - } -} diff --git a/specification/syntex/resource-manager/Microsoft.Syntex/preview/2022-06-15-preview/examples/Operations_List.json b/specification/syntex/resource-manager/Microsoft.Syntex/preview/2022-06-15-preview/examples/Operations_List.json deleted file mode 100644 index 7b1290766e5f..000000000000 --- a/specification/syntex/resource-manager/Microsoft.Syntex/preview/2022-06-15-preview/examples/Operations_List.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "parameters": { - "api-version": "2022-06-15-preview" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "name": "microsoft.syntex/documentProcessors/processorName/processDocument", - "display": { - "provider": "Microsoft.Syntex", - "resource": "microsoft.syntex/documentProcessors", - "operation": "POST", - "description": "Processes a document." - } - } - ] - } - } - } -} diff --git a/specification/syntex/resource-manager/Microsoft.Syntex/preview/2022-06-15-preview/syntex.json b/specification/syntex/resource-manager/Microsoft.Syntex/preview/2022-06-15-preview/syntex.json deleted file mode 100644 index 3b334b7a4032..000000000000 --- a/specification/syntex/resource-manager/Microsoft.Syntex/preview/2022-06-15-preview/syntex.json +++ /dev/null @@ -1,636 +0,0 @@ -{ - "swagger": "2.0", - "info": { - "version": "2022-06-15-preview", - "title": "Syntex", - "description": "Syntex provider" - }, - "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}/providers/Microsoft.Syntex/documentProcessors": { - "get": { - "description": "Returns document processors in the subscription.", - "operationId": "DocumentProcessor_List", - "parameters": [ - { - "$ref": "#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "#/parameters/ApiVersionParameter" - } - ], - "responses": { - "200": { - "description": "Document processor details.", - "schema": { - "$ref": "#/definitions/DocumentProcessorList" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "#/definitions/ErrorResponse" - } - } - }, - "x-ms-pageable": { - "nextLinkName": "nextLink" - }, - "x-ms-examples": { - "DocumentProcessor_List": { - "$ref": "./examples/DocumentProcessor_List.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Syntex/documentProcessors": { - "get": { - "description": "Returns document processors in a resource group.", - "operationId": "DocumentProcessor_ListByResourceGroup", - "parameters": [ - { - "$ref": "#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "#/parameters/ApiVersionParameter" - } - ], - "responses": { - "200": { - "description": "Document processor details.", - "schema": { - "$ref": "#/definitions/DocumentProcessorList" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "#/definitions/ErrorResponse" - } - } - }, - "x-ms-pageable": { - "nextLinkName": "nextLink" - }, - "x-ms-examples": { - "DocumentProcessor_ListByResourceGroup": { - "$ref": "./examples/DocumentProcessor_ListByResourceGroup.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Syntex/documentProcessors/{processorName}": { - "get": { - "description": "Returns a document processor for a given name.", - "operationId": "DocumentProcessor_Get", - "parameters": [ - { - "$ref": "#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "#/parameters/ProcessorNameParameter" - }, - { - "$ref": "#/parameters/ApiVersionParameter" - } - ], - "responses": { - "200": { - "description": "Document processor details.", - "schema": { - "$ref": "#/definitions/DocumentProcessorResource" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "#/definitions/ErrorResponse" - } - } - }, - "x-ms-examples": { - "DocumentProcessor_Get": { - "$ref": "./examples/DocumentProcessor_Get.json" - } - } - }, - "delete": { - "description": "Deletes document processor resource for a given name.", - "operationId": "DocumentProcessor_Delete", - "parameters": [ - { - "$ref": "#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "#/parameters/ProcessorNameParameter" - }, - { - "$ref": "#/parameters/ApiVersionParameter" - } - ], - "responses": { - "200": { - "description": "Deletes the document processor details." - }, - "204": { - "description": "The document processor details are not present." - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "#/definitions/ErrorResponse" - } - } - }, - "x-ms-examples": { - "DocumentProcessor_Delete": { - "$ref": "./examples/DocumentProcessor_Delete.json" - } - } - }, - "put": { - "description": "Creates a document processor resource for a given name.", - "operationId": "DocumentProcessor_Create", - "parameters": [ - { - "$ref": "#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "#/parameters/ProcessorNameParameter" - }, - { - "$ref": "#/parameters/ApiVersionParameter" - }, - { - "name": "body", - "description": "Document processor details.", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/DocumentProcessorResource" - } - } - ], - "responses": { - "200": { - "description": "Success", - "schema": { - "$ref": "#/definitions/DocumentProcessorResource" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "#/definitions/ErrorResponse" - } - } - }, - "x-ms-examples": { - "DocumentProcessor_Create": { - "$ref": "./examples/DocumentProcessor_Create.json" - } - } - }, - "patch": { - "description": "Updates a document processor resource for a given name.", - "operationId": "DocumentProcessor_Update", - "parameters": [ - { - "$ref": "#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "#/parameters/ProcessorNameParameter" - }, - { - "$ref": "#/parameters/ApiVersionParameter" - }, - { - "name": "body", - "description": "Document processor details.", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/DocumentProcessorPatchableProperties" - } - } - ], - "responses": { - "200": { - "description": "Success", - "schema": { - "$ref": "#/definitions/DocumentProcessorResource" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "#/definitions/ErrorResponse" - } - } - }, - "x-ms-examples": { - "DocumentProcessor_Update": { - "$ref": "./examples/DocumentProcessor_Update.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Syntex/documentProcessors/{processorName}/processDocuments": { - "post": { - "operationId": "DocumentProcessor_ProcessDocuments", - "description": "Process a list of documents", - "parameters": [ - { - "$ref": "#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "#/parameters/ProcessorNameParameter" - }, - { - "$ref": "#/parameters/ApiVersionParameter" - }, - { - "name": "body", - "description": "Documents processor request.", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/ProcessDocumentsRequest" - } - } - ], - "responses": { - "200": { - "description": "Successful.", - "schema": { - "$ref": "#/definitions/ProcessDocumentsResponse" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "#/definitions/ErrorResponse" - } - } - }, - "x-ms-examples": { - "DocumentProcessor_ProcessDocuments": { - "$ref": "./examples/DocumentProcessor_ProcessDocuments.json" - } - } - } - }, - "/providers/Microsoft.Syntex/operations": { - "get": { - "operationId": "Operations_List", - "description": "List of all REST operations supported by the Microsoft.Syntex provider.", - "tags": [ - "Operations" - ], - "parameters": [ - { - "$ref": "#/parameters/ApiVersionParameter" - } - ], - "responses": { - "200": { - "description": "Describes the result of a successful operation.", - "schema": { - "$ref": "#/definitions/OperationsListResult" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "#/definitions/ErrorResponse" - } - } - }, - "x-ms-pageable": { - "nextLinkName": "nextLink" - }, - "x-ms-examples": { - "Operations_List": { - "$ref": "./examples/Operations_List.json" - } - } - } - } - }, - "definitions": { - "DocumentProcessorResource": { - "type": "object", - "description": "Document processor details", - "allOf": [ - { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/TrackedResource" - } - ], - "properties": { - "systemData": { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/systemData", - "readOnly": true - }, - "properties": { - "x-ms-client-flatten": false, - "description": "Document processor properties.", - "$ref": "#/definitions/DocumentProcessorProperties" - } - } - }, - "DocumentProcessorPatchableProperties": { - "type": "object", - "description": "Document processor properties that can be patched", - "properties": { - "tags": { - "type": "object", - "description": "Resource tags.", - "additionalProperties": { - "type": "string" - } - }, - "properties": { - "type": "object", - "x-ms-client-flatten": true, - "description": "Syntex properties for PATCH.", - "properties": { - "spoTenantAdminUrl": { - "type": "string", - "description": "The URL of admin tenant associated with this document processor resource" - } - } - } - } - }, - "DocumentProcessorProperties": { - "type": "object", - "description": "Document processor properties", - "properties": { - "provisioningState": { - "readOnly": true, - "$ref": "#/definitions/ProvisioningState", - "description": "The managed resource provisioning state." - }, - "spoTenantAdminUrl": { - "type": "string", - "description": "The URL of admin tenant associated with this document processor resource" - } - }, - "required": [ - "spoTenantAdminUrl" - ] - }, - "ProvisioningState": { - "description": "Provisioning status of the managed resource.", - "readOnly": true, - "enum": [ - "Succeeded", - "Failed", - "Canceled" - ], - "type": "string", - "x-ms-enum": { - "name": "ProvisioningState", - "modelAsString": true - } - }, - "DocumentProcessorList": { - "type": "object", - "description": "Document processor list", - "properties": { - "value": { - "description": "Array of document processors.", - "type": "array", - "items": { - "$ref": "#/definitions/DocumentProcessorResource" - }, - "x-ms-identifiers": [ - "name" - ], - "readOnly": true - }, - "nextLink": { - "description": "Link to retrieve next page of results.", - "type": "string", - "readOnly": true - } - } - }, - "ProcessDocumentsRequest": { - "type": "object", - "description": "Process documents request.", - "properties": { - "value": { - "description": "Array of document properties", - "type": "array", - "items": { - "$ref": "#/definitions/DocumentProperties" - }, - "x-ms-identifiers": [ - "documentId" - ] - } - }, - "required": [ - "value" - ] - }, - "ResponseStatus": { - "description": "Process document response status.", - "type": "string", - "enum": [ - "Success" - ], - "x-ms-enum": { - "name": "ResponseStatus", - "modelAsString": true - } - }, - "ProcessDocumentsResponse": { - "type": "object", - "description": "Process documents response.", - "properties": { - "responseStatus": { - "description": "Response status.", - "$ref": "#/definitions/ResponseStatus" - } - }, - "required": [ - "responseStatus" - ] - }, - "DocumentProperties": { - "type": "object", - "description": "Document properties.", - "properties": { - "documentId": { - "type": "string", - "description": "The ID of the processed document." - }, - "eventId": { - "type": "string", - "description": "A unique event id corresponding to a usage record." - }, - "meterId": { - "type": "string", - "description": "A logical meter id that Syntex billing service then translates to a corresponding commerce meter id." - }, - "quantity": { - "type": "number", - "format": "double", - "description": "Quantity corresponding to the logical meter id that Syntex billing service then translates to the unit expected by the commerce meter." - }, - "eventDateTime": { - "type": "string", - "format": "date-time", - "description": "The time the document was processed. It could be different from the time the Syntex billing service receives the usage event." - } - }, - "required": [ - "documentId", - "eventId", - "meterId", - "quantity", - "eventDateTime" - ] - }, - "OperationsListResult": { - "type": "object", - "description": "Lists the operations available.", - "properties": { - "value": { - "description": "Collection of available operation details", - "uniqueItems": false, - "type": "array", - "items": { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/Operation" - }, - "x-ms-identifiers": [ - "name" - ] - }, - "nextLink": { - "type": "string", - "description": "URL to get the next set of operation list results (if there are any)." - } - }, - "required": [ - "value" - ] - }, - "ErrorResponse": { - "type": "object", - "description": "Error response.", - "properties": { - "error": { - "$ref": "#/definitions/ErrorDefinition", - "description": "The error details." - } - } - }, - "ErrorDefinition": { - "type": "object", - "description": "Error definition.", - "properties": { - "code": { - "description": "Service specific error code which serves as the substatus for the HTTP error code.", - "type": "string", - "readOnly": true - }, - "message": { - "description": "Description of the error.", - "type": "string", - "readOnly": true - }, - "details": { - "description": "Internal error details.", - "type": "array", - "items": { - "$ref": "#/definitions/ErrorDefinition" - }, - "x-ms-identifiers": [ - "code" - ], - "readOnly": true - } - } - } - }, - "parameters": { - "SubscriptionIdParameter": { - "name": "subscriptionId", - "in": "path", - "required": true, - "type": "string", - "description": "The Azure subscription ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000)" - }, - "ResourceGroupNameParameter": { - "name": "resourceGroupName", - "in": "path", - "required": true, - "type": "string", - "description": "The name of the resource group.", - "x-ms-parameter-location": "method" - }, - "ApiVersionParameter": { - "name": "api-version", - "in": "query", - "required": true, - "type": "string", - "description": "The API version to be used with the HTTP request." - }, - "ProcessorNameParameter": { - "name": "processorName", - "in": "path", - "required": true, - "type": "string", - "description": "The name of document processor resource.", - "x-ms-parameter-location": "method" - } - } -} diff --git a/specification/syntex/resource-manager/readme.md b/specification/syntex/resource-manager/readme.md index 9e850b968fa7..3e873f1910b0 100644 --- a/specification/syntex/resource-manager/readme.md +++ b/specification/syntex/resource-manager/readme.md @@ -40,24 +40,6 @@ input-file: - Microsoft.Syntex/preview/2022-09-15-preview/syntex.json ``` -### Tag: package-2022-06-15-preview - -These settings apply only when `--tag=package-2022-06-15-preview` is specified on the command line. - -```yaml $(tag) == 'package-2022-06-15-preview' -input-file: - - Microsoft.Syntex/preview/2022-06-15-preview/syntex.json -``` - -### Tag: package-2021-10-20-preview - -These settings apply only when `--tag=package-2021-10-20-preview` is specified on the command line. - -```yaml $(tag) == 'package-2021-10-20-preview' -input-file: - - Microsoft.Syntex/preview/2021-10-20-preview/syntex.json -``` - --- # Code Generation From 0ffa86abdc72c367f84a4c19563f9fe69a8d4af6 Mon Sep 17 00:00:00 2001 From: yurych Date: Fri, 30 Sep 2022 16:55:38 -0700 Subject: [PATCH 05/14] Added "x-ms-parameter-location": "method" to fix XmsParameterLocation LintDiff error. --- .../Microsoft.Syntex/preview/2022-09-15-preview/syntex.json | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/specification/syntex/resource-manager/Microsoft.Syntex/preview/2022-09-15-preview/syntex.json b/specification/syntex/resource-manager/Microsoft.Syntex/preview/2022-09-15-preview/syntex.json index fa9d415f9607..280a492be56d 100644 --- a/specification/syntex/resource-manager/Microsoft.Syntex/preview/2022-09-15-preview/syntex.json +++ b/specification/syntex/resource-manager/Microsoft.Syntex/preview/2022-09-15-preview/syntex.json @@ -490,7 +490,8 @@ "in": "path", "required": true, "type": "string", - "description": "The Azure subscription ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000)" + "description": "The Azure subscription ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000)", + "x-ms-parameter-location": "method" }, "ResourceGroupNameParameter": { "name": "resourceGroupName", @@ -505,7 +506,8 @@ "in": "query", "required": true, "type": "string", - "description": "The API version to be used with the HTTP request." + "description": "The API version to be used with the HTTP request.", + "x-ms-parameter-location": "method" }, "ProcessorNameParameter": { "name": "processorName", From 8999b5547ec93bb0f9213391f530edc9ece1aa4b Mon Sep 17 00:00:00 2001 From: yurych Date: Tue, 4 Oct 2022 16:25:56 -0700 Subject: [PATCH 06/14] Tim's feedback: - Expanded SPO achronym in comments - Started referencing common-types v3 instead of v2 - Started referencing OperationListResult from common-types v3, removed local OperationsListResult - Removed systemData from DocumentProcessorResource - Added provisioningState to Create, Get, and List responses - Changed capitalization: microsoft.syntex -> Microsoft.Syntex - Added operation list to the Operations_list.json example --- .../examples/DocumentProcessor_Create.json | 5 +- .../examples/DocumentProcessor_Get.json | 5 +- .../examples/DocumentProcessor_List.json | 10 +- ...DocumentProcessor_ListByResourceGroup.json | 10 +- .../examples/DocumentProcessor_Update.json | 5 +- .../examples/Operations_List.json | 95 ++++++++++++++++++- .../preview/2022-09-15-preview/syntex.json | 40 ++------ 7 files changed, 120 insertions(+), 50 deletions(-) diff --git a/specification/syntex/resource-manager/Microsoft.Syntex/preview/2022-09-15-preview/examples/DocumentProcessor_Create.json b/specification/syntex/resource-manager/Microsoft.Syntex/preview/2022-09-15-preview/examples/DocumentProcessor_Create.json index 2183963b5f91..3e63d98d84d4 100644 --- a/specification/syntex/resource-manager/Microsoft.Syntex/preview/2022-09-15-preview/examples/DocumentProcessor_Create.json +++ b/specification/syntex/resource-manager/Microsoft.Syntex/preview/2022-09-15-preview/examples/DocumentProcessor_Create.json @@ -22,7 +22,7 @@ "body": { "id": "/subscriptions/cd0d3cc8-cae2-4559-b882-cd707170799b/resourceGroups/mygroup/providers/microsoft.syntex/documentProcessors/myprocessor", "name": "myprocessor", - "type": "microsoft.syntex/documentprocessors", + "type": "Microsoft.Syntex/documentprocessors", "location": "westus", "tags": { "additionalProp1": "string1", @@ -31,7 +31,8 @@ }, "properties": { "spoTenantUrl": "https://test123.sharepoint.com", - "spoTenantId": "e9bb744b-9558-4dc6-9e50-a3297e3332fa" + "spoTenantId": "e9bb744b-9558-4dc6-9e50-a3297e3332fa", + "provisioningState": "Succeeded" } } } diff --git a/specification/syntex/resource-manager/Microsoft.Syntex/preview/2022-09-15-preview/examples/DocumentProcessor_Get.json b/specification/syntex/resource-manager/Microsoft.Syntex/preview/2022-09-15-preview/examples/DocumentProcessor_Get.json index dd23902dd701..0c635ff0f9e9 100644 --- a/specification/syntex/resource-manager/Microsoft.Syntex/preview/2022-09-15-preview/examples/DocumentProcessor_Get.json +++ b/specification/syntex/resource-manager/Microsoft.Syntex/preview/2022-09-15-preview/examples/DocumentProcessor_Get.json @@ -10,7 +10,7 @@ "body": { "id": "/subscriptions/cd0d3cc8-cae2-4559-b882-cd707170799b/resourceGroups/mygroup/providers/microsoft.syntex/documentProcessors/myprocessor", "name": "myprocessor", - "type": "microsoft.syntex/documentprocessors", + "type": "Microsoft.Syntex/documentprocessors", "location": "westus", "tags": { "additionalProp1": "string1", @@ -19,7 +19,8 @@ }, "properties": { "spoTenantUrl": "https://test123.sharepoint.com", - "spoTenantId": "e9bb744b-9558-4dc6-9e50-a3297e3332fa" + "spoTenantId": "e9bb744b-9558-4dc6-9e50-a3297e3332fa", + "provisioningState": "Succeeded" } } } diff --git a/specification/syntex/resource-manager/Microsoft.Syntex/preview/2022-09-15-preview/examples/DocumentProcessor_List.json b/specification/syntex/resource-manager/Microsoft.Syntex/preview/2022-09-15-preview/examples/DocumentProcessor_List.json index 8e10575343b4..5dbdb36b4d43 100644 --- a/specification/syntex/resource-manager/Microsoft.Syntex/preview/2022-09-15-preview/examples/DocumentProcessor_List.json +++ b/specification/syntex/resource-manager/Microsoft.Syntex/preview/2022-09-15-preview/examples/DocumentProcessor_List.json @@ -10,7 +10,7 @@ { "id": "/subscriptions/cd0d3cc8-cae2-4559-b882-cd707170799b/resourceGroups/mygroup/providers/microsoft.syntex/documentProcessors/myprocessor1", "name": "myprocessor1", - "type": "microsoft.syntex/documentprocessors", + "type": "Microsoft.Syntex/documentprocessors", "location": "westus", "tags": { "additionalProp1": "string1", @@ -19,13 +19,14 @@ }, "properties": { "spoTenantUrl": "https://test123.sharepoint.com", - "spoTenantId": "e9bb744b-9558-4dc6-9e50-a3297e3332fa" + "spoTenantId": "e9bb744b-9558-4dc6-9e50-a3297e3332fa", + "provisioningState": "Succeeded" } }, { "id": "/subscriptions/cd0d3cc8-cae2-4559-b882-cd707170799b/resourceGroups/mygroup/providers/microsoft.syntex/documentProcessors/myprocessor2", "name": "myprocessor2", - "type": "microsoft.syntex/documentprocessors", + "type": "Microsoft.Syntex/documentprocessors", "location": "westus", "tags": { "additionalProp1": "string1", @@ -34,7 +35,8 @@ }, "properties": { "spoTenantUrl": "https://test123.sharepoint.com", - "spoTenantId": "e9bb744b-9558-4dc6-9e50-a3297e3332fa" + "spoTenantId": "e9bb744b-9558-4dc6-9e50-a3297e3332fa", + "provisioningState": "Succeeded" } } ] diff --git a/specification/syntex/resource-manager/Microsoft.Syntex/preview/2022-09-15-preview/examples/DocumentProcessor_ListByResourceGroup.json b/specification/syntex/resource-manager/Microsoft.Syntex/preview/2022-09-15-preview/examples/DocumentProcessor_ListByResourceGroup.json index c5f7029e0259..98cd7635b7cc 100644 --- a/specification/syntex/resource-manager/Microsoft.Syntex/preview/2022-09-15-preview/examples/DocumentProcessor_ListByResourceGroup.json +++ b/specification/syntex/resource-manager/Microsoft.Syntex/preview/2022-09-15-preview/examples/DocumentProcessor_ListByResourceGroup.json @@ -11,7 +11,7 @@ { "id": "/subscriptions/cd0d3cc8-cae2-4559-b882-cd707170799b/resourceGroups/mygroup/providers/microsoft.syntex/documentProcessors/myprocessor1", "name": "myprocessor1", - "type": "microsoft.syntex/documentprocessors", + "type": "Microsoft.Syntex/documentprocessors", "location": "westus", "tags": { "additionalProp1": "string1", @@ -20,13 +20,14 @@ }, "properties": { "spoTenantUrl": "https://test123.sharepoint.com", - "spoTenantId": "e9bb744b-9558-4dc6-9e50-a3297e3332fa" + "spoTenantId": "e9bb744b-9558-4dc6-9e50-a3297e3332fa", + "provisioningState": "Succeeded" } }, { "id": "/subscriptions/cd0d3cc8-cae2-4559-b882-cd707170799b/resourceGroups/mygroup/providers/microsoft.syntex/documentProcessors/myprocessor2", "name": "myprocessor2", - "type": "microsoft.syntex/documentprocessors", + "type": "Microsoft.Syntex/documentprocessors", "location": "westus", "tags": { "additionalProp1": "string1", @@ -35,7 +36,8 @@ }, "properties": { "spoTenantUrl": "https://test123.sharepoint.com", - "spoTenantId": "e9bb744b-9558-4dc6-9e50-a3297e3332fa" + "spoTenantId": "e9bb744b-9558-4dc6-9e50-a3297e3332fa", + "provisioningState": "Succeeded" } } ] diff --git a/specification/syntex/resource-manager/Microsoft.Syntex/preview/2022-09-15-preview/examples/DocumentProcessor_Update.json b/specification/syntex/resource-manager/Microsoft.Syntex/preview/2022-09-15-preview/examples/DocumentProcessor_Update.json index ee25759543cd..b46854bb033d 100644 --- a/specification/syntex/resource-manager/Microsoft.Syntex/preview/2022-09-15-preview/examples/DocumentProcessor_Update.json +++ b/specification/syntex/resource-manager/Microsoft.Syntex/preview/2022-09-15-preview/examples/DocumentProcessor_Update.json @@ -21,7 +21,7 @@ "body": { "id": "/subscriptions/cd0d3cc8-cae2-4559-b882-cd707170799b/resourceGroups/mygroup/providers/microsoft.syntex/documentProcessors/myprocessor", "name": "myprocessor", - "type": "microsoft.syntex/documentprocessors", + "type": "Microsoft.Syntex/documentprocessors", "location": "westus", "tags": { "additionalProp1": "string4", @@ -30,7 +30,8 @@ }, "properties": { "spoTenantUrl": "https://test123.sharepoint.com", - "spoTenantId": "e9bb744b-9558-4dc6-9e50-a3297e3332fa" + "spoTenantId": "e9bb744b-9558-4dc6-9e50-a3297e3332fa", + "provisioningState": "Succeeded" } } } diff --git a/specification/syntex/resource-manager/Microsoft.Syntex/preview/2022-09-15-preview/examples/Operations_List.json b/specification/syntex/resource-manager/Microsoft.Syntex/preview/2022-09-15-preview/examples/Operations_List.json index b7e66adb38e7..4aed7f81a849 100644 --- a/specification/syntex/resource-manager/Microsoft.Syntex/preview/2022-09-15-preview/examples/Operations_List.json +++ b/specification/syntex/resource-manager/Microsoft.Syntex/preview/2022-09-15-preview/examples/Operations_List.json @@ -5,8 +5,99 @@ "responses": { "200": { "body": { - "value": [] + "value": [ + { + "name": "Microsoft.Syntex/documentProcessors/read", + "isDataAction": false, + "display": { + "provider": "Microsoft.Syntex", + "resource": "documentProcessors", + "operation": "DocumentProcessor_List", + "description": "Returns document processors in the subscription." + } + }, + { + "name": "Microsoft.Syntex/documentProcessors/read", + "isDataAction": false, + "display": { + "provider": "Microsoft.Syntex", + "resource": "documentProcessors", + "operation": "DocumentProcessor_ListByResourceGroup", + "description": "Returns document processors in a resource group." + } + }, + { + "name": "Microsoft.Syntex/documentProcessors/read", + "isDataAction": false, + "display": { + "provider": "Microsoft.Syntex", + "resource": "documentProcessors", + "operation": "DocumentProcessor_Get", + "description": "Returns a document processor for a given name." + } + }, + { + "name": "Microsoft.Syntex/documentProcessors/write", + "isDataAction": false, + "display": { + "provider": "Microsoft.Syntex", + "resource": "documentProcessors", + "operation": "DocumentProcessor_Create", + "description": "Creates a document processor resource for a given name." + } + }, + { + "name": "Microsoft.Syntex/documentProcessors/delete", + "isDataAction": false, + "display": { + "provider": "Microsoft.Syntex", + "resource": "documentProcessors", + "operation": "DocumentProcessor_Delete", + "description": "Deletes document processor resource for a given name." + } + }, + { + "name": "Microsoft.Syntex/documentProcessors/write", + "isDataAction": false, + "display": { + "provider": "Microsoft.Syntex", + "resource": "documentProcessors", + "operation": "DocumentProcessor_Update", + "description": "Updates a document processor resource for a given name." + } + }, + { + "name": "microsoft.syntex/operations/read", + "isDataAction": false, + "display": { + "provider": "microsoft.syntex", + "resource": "operations", + "operation": "read_operations", + "description": "read operations" + } + }, + { + "name": "microsoft.syntex/register/action", + "isDataAction": false, + "display": { + "provider": "microsoft.syntex", + "resource": "microsoft.syntex", + "operation": "Register the microsoft.syntex", + "description": "Register the subscription for microsoft.syntex" + } + }, + { + "name": "microsoft.syntex/unregister/action", + "isDataAction": false, + "display": { + "provider": "microsoft.syntex", + "resource": "microsoft.syntex", + "operation": "Unregister the microsoft.syntex", + "description": "Unregister the subscription for microsoft.syntex" + } + } + ] } } } -} +} \ No newline at end of file diff --git a/specification/syntex/resource-manager/Microsoft.Syntex/preview/2022-09-15-preview/syntex.json b/specification/syntex/resource-manager/Microsoft.Syntex/preview/2022-09-15-preview/syntex.json index 280a492be56d..dd1d4777e9a5 100644 --- a/specification/syntex/resource-manager/Microsoft.Syntex/preview/2022-09-15-preview/syntex.json +++ b/specification/syntex/resource-manager/Microsoft.Syntex/preview/2022-09-15-preview/syntex.json @@ -293,7 +293,7 @@ "200": { "description": "Describes the result of a successful operation.", "schema": { - "$ref": "#/definitions/OperationsListResult" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/OperationListResult" } }, "default": { @@ -320,14 +320,10 @@ "description": "Document processor details", "allOf": [ { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/TrackedResource" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/TrackedResource" } ], "properties": { - "systemData": { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/systemData", - "readOnly": true - }, "properties": { "x-ms-client-flatten": false, "description": "Document processor properties.", @@ -353,11 +349,11 @@ "properties": { "spoTenantUrl": { "type": "string", - "description": "The URL of an SPO tenant associated with this document processor resource" + "description": "The URL of an SharePoint Online (SPO) tenant associated with this document processor resource" }, "spoTenantId": { "type": "string", - "description": "The Id (GUID) of an SPO tenant associated with this document processor resource" + "description": "The Id (GUID) of an SharePoint Online (SPO) tenant associated with this document processor resource" } } } @@ -374,11 +370,11 @@ }, "spoTenantUrl": { "type": "string", - "description": "The URL of an SPO tenant associated with this document processor resource" + "description": "The URL of an SharePoint Online (SPO) tenant associated with this document processor resource" }, "spoTenantId": { "type": "string", - "description": "The Id (GUID) of an SPO tenant associated with this document processor resource" + "description": "The Id (GUID) of an SharePoint Online (SPO) tenant associated with this document processor resource" } }, "required": [ @@ -422,30 +418,6 @@ } } }, - "OperationsListResult": { - "type": "object", - "description": "Lists the operations available.", - "properties": { - "value": { - "description": "Collection of available operation details", - "uniqueItems": false, - "type": "array", - "items": { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/Operation" - }, - "x-ms-identifiers": [ - "name" - ] - }, - "nextLink": { - "type": "string", - "description": "URL to get the next set of operation list results (if there are any)." - } - }, - "required": [ - "value" - ] - }, "ErrorResponse": { "type": "object", "description": "Error response.", From 3240f7e723e59314bbf6b436d22f1cce424bd007 Mon Sep 17 00:00:00 2001 From: yurych Date: Tue, 4 Oct 2022 20:57:00 -0700 Subject: [PATCH 07/14] Fixed prettier errors --- .../preview/2022-09-15-preview/examples/Operations_List.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/specification/syntex/resource-manager/Microsoft.Syntex/preview/2022-09-15-preview/examples/Operations_List.json b/specification/syntex/resource-manager/Microsoft.Syntex/preview/2022-09-15-preview/examples/Operations_List.json index 4aed7f81a849..d04ccef591ff 100644 --- a/specification/syntex/resource-manager/Microsoft.Syntex/preview/2022-09-15-preview/examples/Operations_List.json +++ b/specification/syntex/resource-manager/Microsoft.Syntex/preview/2022-09-15-preview/examples/Operations_List.json @@ -100,4 +100,4 @@ } } } -} \ No newline at end of file +} From 22bf4f672521a481dea5ab6606960fc52f519119 Mon Sep 17 00:00:00 2001 From: yurych Date: Wed, 5 Oct 2022 09:30:06 -0700 Subject: [PATCH 08/14] Tim's feedback: - Added 201 response code for PUT request - Added an example for 201 PUT response --- .../examples/DocumentProcessor_Create.json | 18 ++++++++++++++++++ .../preview/2022-09-15-preview/syntex.json | 6 ++++++ 2 files changed, 24 insertions(+) diff --git a/specification/syntex/resource-manager/Microsoft.Syntex/preview/2022-09-15-preview/examples/DocumentProcessor_Create.json b/specification/syntex/resource-manager/Microsoft.Syntex/preview/2022-09-15-preview/examples/DocumentProcessor_Create.json index 3e63d98d84d4..64f61baa723a 100644 --- a/specification/syntex/resource-manager/Microsoft.Syntex/preview/2022-09-15-preview/examples/DocumentProcessor_Create.json +++ b/specification/syntex/resource-manager/Microsoft.Syntex/preview/2022-09-15-preview/examples/DocumentProcessor_Create.json @@ -35,6 +35,24 @@ "provisioningState": "Succeeded" } } + }, + "201": { + "body": { + "id": "/subscriptions/cd0d3cc8-cae2-4559-b882-cd707170799b/resourceGroups/mygroup/providers/microsoft.syntex/documentProcessors/myprocessor", + "name": "myprocessor", + "type": "Microsoft.Syntex/documentprocessors", + "location": "westus", + "tags": { + "additionalProp1": "string1", + "additionalProp2": "string2", + "additionalProp3": "string3" + }, + "properties": { + "spoTenantUrl": "https://test123.sharepoint.com", + "spoTenantId": "e9bb744b-9558-4dc6-9e50-a3297e3332fa", + "provisioningState": "Succeeded" + } + } } } } diff --git a/specification/syntex/resource-manager/Microsoft.Syntex/preview/2022-09-15-preview/syntex.json b/specification/syntex/resource-manager/Microsoft.Syntex/preview/2022-09-15-preview/syntex.json index dd1d4777e9a5..c3a3f9778508 100644 --- a/specification/syntex/resource-manager/Microsoft.Syntex/preview/2022-09-15-preview/syntex.json +++ b/specification/syntex/resource-manager/Microsoft.Syntex/preview/2022-09-15-preview/syntex.json @@ -217,6 +217,12 @@ "$ref": "#/definitions/DocumentProcessorResource" } }, + "201": { + "description": "Success", + "schema": { + "$ref": "#/definitions/DocumentProcessorResource" + } + }, "default": { "description": "Error response describing why the operation failed.", "schema": { From 1bb3c97a0c6163ee1e3568321ffa3b4e9f1e9743 Mon Sep 17 00:00:00 2001 From: yurych Date: Wed, 5 Oct 2022 10:34:32 -0700 Subject: [PATCH 09/14] Tim's feedback: - Changed Id -> ID --- .../Microsoft.Syntex/preview/2022-09-15-preview/syntex.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/specification/syntex/resource-manager/Microsoft.Syntex/preview/2022-09-15-preview/syntex.json b/specification/syntex/resource-manager/Microsoft.Syntex/preview/2022-09-15-preview/syntex.json index c3a3f9778508..498d52ea7668 100644 --- a/specification/syntex/resource-manager/Microsoft.Syntex/preview/2022-09-15-preview/syntex.json +++ b/specification/syntex/resource-manager/Microsoft.Syntex/preview/2022-09-15-preview/syntex.json @@ -359,7 +359,7 @@ }, "spoTenantId": { "type": "string", - "description": "The Id (GUID) of an SharePoint Online (SPO) tenant associated with this document processor resource" + "description": "The ID (GUID) of an SharePoint Online (SPO) tenant associated with this document processor resource" } } } @@ -380,7 +380,7 @@ }, "spoTenantId": { "type": "string", - "description": "The Id (GUID) of an SharePoint Online (SPO) tenant associated with this document processor resource" + "description": "The ID (GUID) of an SharePoint Online (SPO) tenant associated with this document processor resource" } }, "required": [ From 1feb74c502d686b822b14cbb581e9a2a1e8c7a6f Mon Sep 17 00:00:00 2001 From: yurych Date: Wed, 5 Oct 2022 10:42:22 -0700 Subject: [PATCH 10/14] Tim's feedback: - Started using SubscriptionId, ResourceGroupName and ApiVersion parameters from common-types v3 --- .../preview/2022-09-15-preview/syntex.json | 60 ++++++------------- 1 file changed, 18 insertions(+), 42 deletions(-) diff --git a/specification/syntex/resource-manager/Microsoft.Syntex/preview/2022-09-15-preview/syntex.json b/specification/syntex/resource-manager/Microsoft.Syntex/preview/2022-09-15-preview/syntex.json index 498d52ea7668..4b3760410217 100644 --- a/specification/syntex/resource-manager/Microsoft.Syntex/preview/2022-09-15-preview/syntex.json +++ b/specification/syntex/resource-manager/Microsoft.Syntex/preview/2022-09-15-preview/syntex.json @@ -40,10 +40,10 @@ "operationId": "DocumentProcessor_List", "parameters": [ { - "$ref": "#/parameters/SubscriptionIdParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" } ], "responses": { @@ -76,13 +76,13 @@ "operationId": "DocumentProcessor_ListByResourceGroup", "parameters": [ { - "$ref": "#/parameters/SubscriptionIdParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "#/parameters/ResourceGroupNameParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { - "$ref": "#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" } ], "responses": { @@ -115,16 +115,16 @@ "operationId": "DocumentProcessor_Get", "parameters": [ { - "$ref": "#/parameters/SubscriptionIdParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "#/parameters/ResourceGroupNameParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { "$ref": "#/parameters/ProcessorNameParameter" }, { - "$ref": "#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" } ], "responses": { @@ -152,16 +152,16 @@ "operationId": "DocumentProcessor_Delete", "parameters": [ { - "$ref": "#/parameters/SubscriptionIdParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "#/parameters/ResourceGroupNameParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { "$ref": "#/parameters/ProcessorNameParameter" }, { - "$ref": "#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" } ], "responses": { @@ -189,16 +189,16 @@ "operationId": "DocumentProcessor_Create", "parameters": [ { - "$ref": "#/parameters/SubscriptionIdParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "#/parameters/ResourceGroupNameParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { "$ref": "#/parameters/ProcessorNameParameter" }, { - "$ref": "#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" }, { "name": "body", @@ -241,16 +241,16 @@ "operationId": "DocumentProcessor_Update", "parameters": [ { - "$ref": "#/parameters/SubscriptionIdParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "#/parameters/ResourceGroupNameParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { "$ref": "#/parameters/ProcessorNameParameter" }, { - "$ref": "#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" }, { "name": "body", @@ -292,7 +292,7 @@ ], "parameters": [ { - "$ref": "#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" } ], "responses": { @@ -463,30 +463,6 @@ } }, "parameters": { - "SubscriptionIdParameter": { - "name": "subscriptionId", - "in": "path", - "required": true, - "type": "string", - "description": "The Azure subscription ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000)", - "x-ms-parameter-location": "method" - }, - "ResourceGroupNameParameter": { - "name": "resourceGroupName", - "in": "path", - "required": true, - "type": "string", - "description": "The name of the resource group.", - "x-ms-parameter-location": "method" - }, - "ApiVersionParameter": { - "name": "api-version", - "in": "query", - "required": true, - "type": "string", - "description": "The API version to be used with the HTTP request.", - "x-ms-parameter-location": "method" - }, "ProcessorNameParameter": { "name": "processorName", "in": "path", From 6bfd85ef06dde0c983854716b903b9726796998b Mon Sep 17 00:00:00 2001 From: yurych Date: Wed, 5 Oct 2022 10:46:56 -0700 Subject: [PATCH 11/14] Tim's feedback - Fixed casing in resource IDs --- .../2022-09-15-preview/examples/DocumentProcessor_Create.json | 4 ++-- .../2022-09-15-preview/examples/DocumentProcessor_Get.json | 2 +- .../2022-09-15-preview/examples/DocumentProcessor_List.json | 4 ++-- .../examples/DocumentProcessor_ListByResourceGroup.json | 4 ++-- .../2022-09-15-preview/examples/DocumentProcessor_Update.json | 2 +- 5 files changed, 8 insertions(+), 8 deletions(-) diff --git a/specification/syntex/resource-manager/Microsoft.Syntex/preview/2022-09-15-preview/examples/DocumentProcessor_Create.json b/specification/syntex/resource-manager/Microsoft.Syntex/preview/2022-09-15-preview/examples/DocumentProcessor_Create.json index 64f61baa723a..fa38253f66e9 100644 --- a/specification/syntex/resource-manager/Microsoft.Syntex/preview/2022-09-15-preview/examples/DocumentProcessor_Create.json +++ b/specification/syntex/resource-manager/Microsoft.Syntex/preview/2022-09-15-preview/examples/DocumentProcessor_Create.json @@ -20,7 +20,7 @@ "responses": { "200": { "body": { - "id": "/subscriptions/cd0d3cc8-cae2-4559-b882-cd707170799b/resourceGroups/mygroup/providers/microsoft.syntex/documentProcessors/myprocessor", + "id": "/subscriptions/cd0d3cc8-cae2-4559-b882-cd707170799b/resourceGroups/mygroup/providers/Microsoft.Syntex/documentProcessors/myprocessor", "name": "myprocessor", "type": "Microsoft.Syntex/documentprocessors", "location": "westus", @@ -38,7 +38,7 @@ }, "201": { "body": { - "id": "/subscriptions/cd0d3cc8-cae2-4559-b882-cd707170799b/resourceGroups/mygroup/providers/microsoft.syntex/documentProcessors/myprocessor", + "id": "/subscriptions/cd0d3cc8-cae2-4559-b882-cd707170799b/resourceGroups/mygroup/providers/Microsoft.Syntex/documentProcessors/myprocessor", "name": "myprocessor", "type": "Microsoft.Syntex/documentprocessors", "location": "westus", diff --git a/specification/syntex/resource-manager/Microsoft.Syntex/preview/2022-09-15-preview/examples/DocumentProcessor_Get.json b/specification/syntex/resource-manager/Microsoft.Syntex/preview/2022-09-15-preview/examples/DocumentProcessor_Get.json index 0c635ff0f9e9..382647651c4c 100644 --- a/specification/syntex/resource-manager/Microsoft.Syntex/preview/2022-09-15-preview/examples/DocumentProcessor_Get.json +++ b/specification/syntex/resource-manager/Microsoft.Syntex/preview/2022-09-15-preview/examples/DocumentProcessor_Get.json @@ -8,7 +8,7 @@ "responses": { "200": { "body": { - "id": "/subscriptions/cd0d3cc8-cae2-4559-b882-cd707170799b/resourceGroups/mygroup/providers/microsoft.syntex/documentProcessors/myprocessor", + "id": "/subscriptions/cd0d3cc8-cae2-4559-b882-cd707170799b/resourceGroups/mygroup/providers/Microsoft.Syntex/documentProcessors/myprocessor", "name": "myprocessor", "type": "Microsoft.Syntex/documentprocessors", "location": "westus", diff --git a/specification/syntex/resource-manager/Microsoft.Syntex/preview/2022-09-15-preview/examples/DocumentProcessor_List.json b/specification/syntex/resource-manager/Microsoft.Syntex/preview/2022-09-15-preview/examples/DocumentProcessor_List.json index 5dbdb36b4d43..f33c478bac8a 100644 --- a/specification/syntex/resource-manager/Microsoft.Syntex/preview/2022-09-15-preview/examples/DocumentProcessor_List.json +++ b/specification/syntex/resource-manager/Microsoft.Syntex/preview/2022-09-15-preview/examples/DocumentProcessor_List.json @@ -8,7 +8,7 @@ "body": { "value": [ { - "id": "/subscriptions/cd0d3cc8-cae2-4559-b882-cd707170799b/resourceGroups/mygroup/providers/microsoft.syntex/documentProcessors/myprocessor1", + "id": "/subscriptions/cd0d3cc8-cae2-4559-b882-cd707170799b/resourceGroups/mygroup/providers/Microsoft.Syntex/documentProcessors/myprocessor1", "name": "myprocessor1", "type": "Microsoft.Syntex/documentprocessors", "location": "westus", @@ -24,7 +24,7 @@ } }, { - "id": "/subscriptions/cd0d3cc8-cae2-4559-b882-cd707170799b/resourceGroups/mygroup/providers/microsoft.syntex/documentProcessors/myprocessor2", + "id": "/subscriptions/cd0d3cc8-cae2-4559-b882-cd707170799b/resourceGroups/mygroup/providers/Microsoft.Syntex/documentProcessors/myprocessor2", "name": "myprocessor2", "type": "Microsoft.Syntex/documentprocessors", "location": "westus", diff --git a/specification/syntex/resource-manager/Microsoft.Syntex/preview/2022-09-15-preview/examples/DocumentProcessor_ListByResourceGroup.json b/specification/syntex/resource-manager/Microsoft.Syntex/preview/2022-09-15-preview/examples/DocumentProcessor_ListByResourceGroup.json index 98cd7635b7cc..aee96ab64e90 100644 --- a/specification/syntex/resource-manager/Microsoft.Syntex/preview/2022-09-15-preview/examples/DocumentProcessor_ListByResourceGroup.json +++ b/specification/syntex/resource-manager/Microsoft.Syntex/preview/2022-09-15-preview/examples/DocumentProcessor_ListByResourceGroup.json @@ -9,7 +9,7 @@ "body": { "value": [ { - "id": "/subscriptions/cd0d3cc8-cae2-4559-b882-cd707170799b/resourceGroups/mygroup/providers/microsoft.syntex/documentProcessors/myprocessor1", + "id": "/subscriptions/cd0d3cc8-cae2-4559-b882-cd707170799b/resourceGroups/mygroup/providers/Microsoft.Syntex/documentProcessors/myprocessor1", "name": "myprocessor1", "type": "Microsoft.Syntex/documentprocessors", "location": "westus", @@ -25,7 +25,7 @@ } }, { - "id": "/subscriptions/cd0d3cc8-cae2-4559-b882-cd707170799b/resourceGroups/mygroup/providers/microsoft.syntex/documentProcessors/myprocessor2", + "id": "/subscriptions/cd0d3cc8-cae2-4559-b882-cd707170799b/resourceGroups/mygroup/providers/Microsoft.Syntex/documentProcessors/myprocessor2", "name": "myprocessor2", "type": "Microsoft.Syntex/documentprocessors", "location": "westus", diff --git a/specification/syntex/resource-manager/Microsoft.Syntex/preview/2022-09-15-preview/examples/DocumentProcessor_Update.json b/specification/syntex/resource-manager/Microsoft.Syntex/preview/2022-09-15-preview/examples/DocumentProcessor_Update.json index b46854bb033d..5236ce0b381c 100644 --- a/specification/syntex/resource-manager/Microsoft.Syntex/preview/2022-09-15-preview/examples/DocumentProcessor_Update.json +++ b/specification/syntex/resource-manager/Microsoft.Syntex/preview/2022-09-15-preview/examples/DocumentProcessor_Update.json @@ -19,7 +19,7 @@ "responses": { "200": { "body": { - "id": "/subscriptions/cd0d3cc8-cae2-4559-b882-cd707170799b/resourceGroups/mygroup/providers/microsoft.syntex/documentProcessors/myprocessor", + "id": "/subscriptions/cd0d3cc8-cae2-4559-b882-cd707170799b/resourceGroups/mygroup/providers/Microsoft.Syntex/documentProcessors/myprocessor", "name": "myprocessor", "type": "Microsoft.Syntex/documentprocessors", "location": "westus", From dc9aa5f0180d18db3904a6570df5bac7a81b0b41 Mon Sep 17 00:00:00 2001 From: yurych Date: Wed, 5 Oct 2022 10:53:47 -0700 Subject: [PATCH 12/14] Tim's feedback: - correciton: patched -> updated --- .../Microsoft.Syntex/preview/2022-09-15-preview/syntex.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/specification/syntex/resource-manager/Microsoft.Syntex/preview/2022-09-15-preview/syntex.json b/specification/syntex/resource-manager/Microsoft.Syntex/preview/2022-09-15-preview/syntex.json index 4b3760410217..59339fde54a1 100644 --- a/specification/syntex/resource-manager/Microsoft.Syntex/preview/2022-09-15-preview/syntex.json +++ b/specification/syntex/resource-manager/Microsoft.Syntex/preview/2022-09-15-preview/syntex.json @@ -339,7 +339,7 @@ }, "DocumentProcessorPatchableProperties": { "type": "object", - "description": "Document processor properties that can be patched", + "description": "Document processor properties that can be updated", "properties": { "tags": { "type": "object", From 09048380f0514b7c134c8a2bf8c3b958fd29c0c1 Mon Sep 17 00:00:00 2001 From: yurych Date: Wed, 5 Oct 2022 10:58:37 -0700 Subject: [PATCH 13/14] Tim's feedback: - Started referencing ErrorResponse from common-types v3 --- .../preview/2022-09-15-preview/syntex.json | 51 +++---------------- 1 file changed, 7 insertions(+), 44 deletions(-) diff --git a/specification/syntex/resource-manager/Microsoft.Syntex/preview/2022-09-15-preview/syntex.json b/specification/syntex/resource-manager/Microsoft.Syntex/preview/2022-09-15-preview/syntex.json index 59339fde54a1..d8cd60bb6c53 100644 --- a/specification/syntex/resource-manager/Microsoft.Syntex/preview/2022-09-15-preview/syntex.json +++ b/specification/syntex/resource-manager/Microsoft.Syntex/preview/2022-09-15-preview/syntex.json @@ -56,7 +56,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "#/definitions/ErrorResponse" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" } } }, @@ -95,7 +95,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "#/definitions/ErrorResponse" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" } } }, @@ -137,7 +137,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "#/definitions/ErrorResponse" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" } } }, @@ -174,7 +174,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "#/definitions/ErrorResponse" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" } } }, @@ -226,7 +226,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "#/definitions/ErrorResponse" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" } } }, @@ -272,7 +272,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "#/definitions/ErrorResponse" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" } } }, @@ -305,7 +305,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "#/definitions/ErrorResponse" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" } } }, @@ -423,43 +423,6 @@ "readOnly": true } } - }, - "ErrorResponse": { - "type": "object", - "description": "Error response.", - "properties": { - "error": { - "$ref": "#/definitions/ErrorDefinition", - "description": "The error details." - } - } - }, - "ErrorDefinition": { - "type": "object", - "description": "Error definition.", - "properties": { - "code": { - "description": "Service specific error code which serves as the substatus for the HTTP error code.", - "type": "string", - "readOnly": true - }, - "message": { - "description": "Description of the error.", - "type": "string", - "readOnly": true - }, - "details": { - "description": "Internal error details.", - "type": "array", - "items": { - "$ref": "#/definitions/ErrorDefinition" - }, - "x-ms-identifiers": [ - "code" - ], - "readOnly": true - } - } } }, "parameters": { From 70f6cb43c04c24c3696b1b5d0ba7d78bc95f0b9b Mon Sep 17 00:00:00 2001 From: yurych Date: Wed, 5 Oct 2022 11:38:20 -0700 Subject: [PATCH 14/14] Tim's feedback: - Removed namd from x-ms-identifiers --- .../Microsoft.Syntex/preview/2022-09-15-preview/syntex.json | 3 --- 1 file changed, 3 deletions(-) diff --git a/specification/syntex/resource-manager/Microsoft.Syntex/preview/2022-09-15-preview/syntex.json b/specification/syntex/resource-manager/Microsoft.Syntex/preview/2022-09-15-preview/syntex.json index d8cd60bb6c53..38d5f73fab94 100644 --- a/specification/syntex/resource-manager/Microsoft.Syntex/preview/2022-09-15-preview/syntex.json +++ b/specification/syntex/resource-manager/Microsoft.Syntex/preview/2022-09-15-preview/syntex.json @@ -412,9 +412,6 @@ "items": { "$ref": "#/definitions/DocumentProcessorResource" }, - "x-ms-identifiers": [ - "name" - ], "readOnly": true }, "nextLink": {