From 7bfabd6dc4b6443ee7b40c39bc926df311c0ef22 Mon Sep 17 00:00:00 2001 From: yurych Date: Wed, 22 Jun 2022 22:07:20 -0700 Subject: [PATCH] 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