swagger: '2.0' info: version: 2020-08-01-preview title: Microsoft Azure AccessControlClient AccessConnector documentModels:authorizeCopy API schemes: - https tags: - name: documentModels:authorizeCopy paths: /documentModels:authorizeCopy: post: operationId: microsoftAzureDocumentmodelsAuthorizemodelcopy description: Generates authorization to copy a document model to this location with
specified modelId and optional description. parameters: - $ref: '#/parameters/Azure.Core.Foundations.ApiVersionParameter' - name: authorizeCopyRequest in: body description: Authorize copy request parameters. required: true schema: $ref: '#/definitions/AuthorizeCopyRequest' responses: '200': description: The request has succeeded. schema: $ref: '#/definitions/CopyAuthorization' default: description: An unexpected error response. schema: $ref: '#/definitions/ErrorResponse' x-ms-examples: Authorize Copy of Document Model: $ref: ./examples/AuthorizeCopyDocumentModel.json summary: Microsoft Azure Post Documentmodels:authorizecopy tags: - documentModels:authorizeCopy definitions: ErrorResponse: type: object description: Error response object. properties: error: $ref: '#/definitions/Error' description: Error info. required: - error CopyAuthorization: type: object description: 'Authorization to copy a document model to the specified target resource and modelId.' properties: targetResourceId: type: string description: ID of the target Azure resource where the document model should be copied to. x-ms-azure-resource: true targetResourceRegion: type: string description: 'Location of the target Azure resource where the document model should be copied to.' targetModelId: type: string description: Identifier of the target document model. pattern: ^[a-zA-Z0-9][a-zA-Z0-9._~-]{1,63}$ targetModelLocation: type: string format: uri description: URL of the copied document model in the target account. accessToken: type: string description: Token used to authorize the request. expirationDateTime: type: string format: date-time description: Date/time when the access token expires. required: - targetResourceId - targetResourceRegion - targetModelId - targetModelLocation - accessToken - expirationDateTime AuthorizeCopyRequest: type: object description: Request body to authorize document model copy. properties: modelId: type: string description: Unique document model name. pattern: ^[a-zA-Z0-9][a-zA-Z0-9._~-]{1,63}$ description: type: string description: Document model description. maxLength: 4096 tags: type: object description: List of key-value tag attributes associated with the document model. additionalProperties: type: string required: - modelId InnerError: type: object description: An object containing more specific information about the error. 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. innererror: $ref: '#/definitions/InnerError' description: Inner error. 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/Error' x-ms-identifiers: [] innererror: $ref: '#/definitions/InnerError' description: An object containing more specific information than the current object about the error. required: - code - message 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'