swagger: '2.0' info: version: 2020-08-01-preview title: Microsoft Azure AccessControlClient AccessConnector Project API schemes: - https tags: - name: Project paths: /projects: get: tags: - Project description: Gets a list of projects for the authenticated Speech service resource. operationId: microsoftAzureProjectsList produces: - application/json parameters: - $ref: '#/parameters/QuerySkip' - $ref: '#/parameters/QueryMaxPageSize' - $ref: '#/parameters/QueryFilter' - $ref: '#/parameters/QueryApiVersion' responses: '200': description: Success schema: $ref: '#/definitions/PaginatedProjects' default: description: An error occurred. schema: $ref: '#/definitions/ErrorResponse' x-ms-pageable: nextLinkName: nextLink itemName: value x-ms-examples: Get all projects: $ref: ./examples/get_projects.json summary: Microsoft Azure Get Projects /projects/{id}: get: tags: - Project description: Gets the project identified by the given ID. operationId: microsoftAzureProjectsGet produces: - application/json parameters: - $ref: '#/parameters/PathId' - $ref: '#/parameters/QueryApiVersion' responses: '200': description: Success schema: $ref: '#/definitions/Project' default: description: An error occurred. schema: $ref: '#/definitions/ErrorResponse' x-ms-examples: Get a project: $ref: ./examples/get_project.json summary: Microsoft Azure Get Projects Id delete: tags: - Project description: Deletes the project identified by the given ID. All data (like consent, training set) in this project will be deleted automatically. operationId: microsoftAzureProjectsDelete produces: - application/json parameters: - $ref: '#/parameters/PathId' - in: query name: forceDelete type: boolean description: Set this to true if you want to delete a project with model and endpoint. Otherwise, the delete operation will fail. default: false - $ref: '#/parameters/QueryApiVersion' responses: '204': description: No Content default: description: An error occurred. schema: $ref: '#/definitions/ErrorResponse' x-ms-examples: Delete a project: $ref: ./examples/delete_project.json summary: Microsoft Azure Delete Projects Id put: tags: - Project description: Creates a new project. operationId: microsoftAzureProjectsCreate consumes: - application/json produces: - application/json parameters: - $ref: '#/parameters/PathId' - $ref: '#/parameters/QueryApiVersion' - in: body name: project description: project definition required: true schema: $ref: '#/definitions/Project' responses: '201': description: Created schema: $ref: '#/definitions/Project' default: description: An error occurred. schema: $ref: '#/definitions/ErrorResponse' x-ms-examples: Create a project: $ref: ./examples/create_project.json summary: Microsoft Azure Put Projects Id definitions: ErrorResponse: description: Error response follows Microsoft Azure REST API Guidelines which is available at https://github.com/microsoft/api-guidelines/blob/vNext/azure/Guidelines.md#handling-errors. required: - error type: object properties: error: $ref: '#/definitions/Error' ErrorCode: description: Top-level error code enum: - BadRequest - BadArgument - Unauthorized - Forbidden - NotFound - UnsupportedMediaType - TooManyRequests - InternalServerError - ServiceUnavailable type: string x-ms-enum: name: ErrorCode modelAsString: true ProjectKind: description: Project kind enum: - ProfessionalVoice - PersonalVoice type: string x-ms-enum: name: ProjectKind modelAsString: true ResourceId: description: Resource id type: string pattern: ^[a-zA-Z0-9][a-zA-Z0-9._-]{1,62}[a-zA-Z0-9]$ minLength: 3 maxLength: 64 PaginatedProjects: description: Paginated project list required: - value type: object properties: value: description: Project list type: array items: $ref: '#/definitions/Project' nextLink: description: Link to next page. format: uri type: string InnerError: description: Inner error follows Microsoft Azure REST API Guidelines which is available at https://github.com/microsoft/api-guidelines/blob/vNext/azure/Guidelines.md#handling-errors. This contains required properties error code, message and optional properties target, inner error(this can be nested). type: object properties: code: description: Detailed error code to help diagnostic. type: string target: description: The source of the error. For example it would be "model" or "model id" in case of invalid model. type: string message: description: Detailed error message. type: string innererror: $ref: '#/definitions/InnerError' Project: description: Project object. Consents, training sets, models, and endpoints are organized in a project. required: - kind type: object properties: id: $ref: '#/definitions/ResourceId' displayName: description: Project name minLength: 1 type: string description: description: Project description type: string kind: $ref: '#/definitions/ProjectKind' createdDateTime: description: The timestamp when the object was created. The timestamp is encoded as ISO 8601 date and time format ("YYYY-MM-DDThh:mm:ssZ", see https://en.wikipedia.org/wiki/ISO_8601#Combined_date_and_time_representations). format: date-time type: string readOnly: true Error: description: Top-level error follows Microsoft Azure REST API Guidelines which is available at https://github.com/microsoft/api-guidelines/blob/vNext/azure/Guidelines.md#handling-errors. This contains an top-level error with error code, message, details, target and an inner error with more descriptive details. required: - code - message type: object properties: code: $ref: '#/definitions/ErrorCode' target: description: The source of the error. For example it would be "model" or "model id" in case of invalid model. type: string message: description: Top-level error message. type: string details: description: Additional supportive details regarding the error and/or expected policies. type: array items: $ref: '#/definitions/Error' innererror: $ref: '#/definitions/InnerError' parameters: QueryMaxPageSize: name: maxpagesize in: query description: The maximum number of items to include in a single response. required: false type: integer format: int32 default: 100 x-ms-parameter-location: method QueryFilter: name: filter in: query description: "Filter condition.\r\n - **Supported properties:** projectId, createdDateTime, locale, kind\r\n - **Operators:**\r\n - eq, ne are supported for all properties.\r\n - gt, ge, lt, le are supported for createdDateTime.\r\n - **Example:**\r\n - ```filter=projectId eq 'Jessica'``` (filter by project ID)\r\n - ```filter=kind eq 'ProfessionalVoice'``` (filter project by kind)\r\n - ```filter=locale eq 'en-US'``` (filter training set and model by locale)\r\n - ```filter=createdDateTime gt 2022-12-30T23:59:59.99Z``` (filter resource created time after 2023-11-01)" required: false type: string x-ms-parameter-location: method PathId: name: id in: path description: The ID of the resource. required: true type: string pattern: ^[a-zA-Z0-9][a-zA-Z0-9._-]{1,62}[a-zA-Z0-9]$ minLength: 3 maxLength: 64 x-ms-parameter-location: method QueryApiVersion: 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 QuerySkip: name: skip in: query description: The number of result items to skip. required: false type: integer format: int32 default: 0 x-ms-parameter-location: method x-ms-parameterized-host: hostTemplate: '{endpoint}' useSchemePrefix: false parameters: - $ref: '#/parameters/Endpoint'