swagger: '2.0' info: version: 2020-08-01-preview title: Microsoft Azure AccessControlClient AccessConnector text:detectProtectedMaterial API schemes: - https tags: - name: text:detectProtectedMaterial paths: /text:detectProtectedMaterial: post: operationId: microsoftAzureTextoperationsDetecttextprotectedmaterial summary: Microsoft Azure Analyze Protected Material description: A synchronous API for the analysis of protected material. parameters: - $ref: '#/parameters/Azure.Core.Foundations.ApiVersionParameter' - name: body in: body description: The text protected material analysis request. required: true schema: $ref: '#/definitions/AnalyzeTextProtectedMaterialOptions' responses: '200': description: The request has succeeded. schema: $ref: '#/definitions/AnalyzeTextProtectedMaterialResult' default: description: An unexpected error response. schema: $ref: '#/definitions/Azure.Core.Foundations.ErrorResponse' headers: x-ms-error-code: type: string description: String error code indicating what went wrong. x-ms-examples: Detect Protected Material: $ref: ./examples/DetectProtectedMaterial.json tags: - text:detectProtectedMaterial definitions: Azure.Core.Foundations.ErrorResponse: type: object description: A response containing error details. properties: error: $ref: '#/definitions/Azure.Core.Foundations.Error' description: The error object. required: - error Azure.Core.Foundations.InnerError: type: object description: An object containing more specific information about the error. As per Microsoft One API guidelines - https://github.com/Microsoft/api-guidelines/blob/vNext/Guidelines.md#7102-error-condition-responses. properties: code: type: string description: One of a server-defined set of error codes. innererror: $ref: '#/definitions/Azure.Core.Foundations.InnerError' description: Inner error. ProtectedMaterialAnalysisResult: type: object description: The text protected material analysis response. properties: detected: type: boolean description: Analysis result for protected material.. required: - detected AnalyzeTextProtectedMaterialResult: type: object description: The protected material analysis response. properties: protectedMaterialAnalysis: $ref: '#/definitions/ProtectedMaterialAnalysisResult' description: Analysis result for protected material. required: - protectedMaterialAnalysis Azure.Core.Foundations.Error: type: object description: The error object. properties: code: type: string description: One of a server-defined set of error codes. message: type: string description: A human-readable representation of the error. target: type: string description: The target of the error. details: type: array description: An array of details about specific errors that led to this reported error. items: $ref: '#/definitions/Azure.Core.Foundations.Error' x-ms-identifiers: [] innererror: $ref: '#/definitions/Azure.Core.Foundations.InnerError' description: An object containing more specific information than the current object about the error. required: - code - message AnalyzeTextProtectedMaterialOptions: type: object description: The protected material analysis request. properties: text: type: string description: The text needs to be analyzed. We support a maximum of 1k Unicode characters (Unicode code points) in the text of one request. maxLength: 1000 required: - text parameters: Azure.Core.Foundations.ApiVersionParameter: name: api-version in: query description: The API version to use for this operation. required: true type: string minLength: 1 x-ms-parameter-location: method x-ms-client-name: apiVersion x-ms-parameterized-host: hostTemplate: '{endpoint}' useSchemePrefix: false parameters: - $ref: '#/parameters/Endpoint'