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