openapi: 3.2.0 info: title: DataFactoryManagementClient Datasets API version: '2018-06-01' x-typespec-generated: - emitter: '@azure-tools/typespec-autorest' servers: - url: https://management.azure.com security: - azure_auth: - user_impersonation tags: - name: Datasets paths: ? /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/datasets : get: operationId: Datasets_ListByFactory tags: - Datasets description: Lists datasets. parameters: - $ref: ../../../../../../common-types/resource-management/v6/types.json#/parameters/ApiVersionParameter - $ref: ../../../../../../common-types/resource-management/v6/types.json#/parameters/SubscriptionIdParameter - $ref: ../../../../../../common-types/resource-management/v6/types.json#/parameters/ResourceGroupNameParameter - name: factoryName in: path description: The factory name. required: true schema: type: string maxLength: 63 minLength: 3 pattern: ^[A-Za-z0-9]+(?:-[A-Za-z0-9]+)*$ responses: '200': description: Azure operation completed successfully. content: application/json: schema: $ref: '#/components/schemas/DatasetListResponse' default: description: An unexpected error response. content: application/json: schema: $ref: '#/components/schemas/CloudError' x-ms-examples: Datasets_ListByFactory: $ref: ./examples/Datasets_ListByFactory.json x-ms-pageable: nextLinkName: nextLink summary: Datasets list by factory x-summary-source: derived ? /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/datasets/{datasetName} : get: operationId: Datasets_Get tags: - Datasets description: Gets a dataset. parameters: - $ref: ../../../../../../common-types/resource-management/v6/types.json#/parameters/ApiVersionParameter - $ref: ../../../../../../common-types/resource-management/v6/types.json#/parameters/SubscriptionIdParameter - $ref: ../../../../../../common-types/resource-management/v6/types.json#/parameters/ResourceGroupNameParameter - name: factoryName in: path description: The factory name. required: true schema: type: string maxLength: 63 minLength: 3 pattern: ^[A-Za-z0-9]+(?:-[A-Za-z0-9]+)*$ - name: datasetName in: path description: The dataset name. required: true schema: type: string maxLength: 260 minLength: 1 pattern: ^[A-Za-z0-9_][^<>*#.%&:\\+?/]*$ - name: if-none-match in: header description: ETag of the dataset entity. Should only be specified for get. If the ETag matches the existing entity tag, or if * was provided, then no content will be returned. required: false x-ms-client-name: If-None-Match schema: type: string responses: '200': description: Azure operation completed successfully. content: application/json: schema: $ref: '#/components/schemas/DatasetResource' '304': description: The client has made a conditional request and the resource has not been modified. default: description: An unexpected error response. content: application/json: schema: $ref: '#/components/schemas/CloudError' x-ms-examples: Datasets_Get: $ref: ./examples/Datasets_Get.json summary: Datasets get x-summary-source: derived put: operationId: Datasets_CreateOrUpdate tags: - Datasets description: Creates or updates a dataset. parameters: - $ref: ../../../../../../common-types/resource-management/v6/types.json#/parameters/ApiVersionParameter - $ref: ../../../../../../common-types/resource-management/v6/types.json#/parameters/SubscriptionIdParameter - $ref: ../../../../../../common-types/resource-management/v6/types.json#/parameters/ResourceGroupNameParameter - name: factoryName in: path description: The factory name. required: true schema: type: string maxLength: 63 minLength: 3 pattern: ^[A-Za-z0-9]+(?:-[A-Za-z0-9]+)*$ - name: datasetName in: path description: The dataset name. required: true schema: type: string maxLength: 260 minLength: 1 pattern: ^[A-Za-z0-9_][^<>*#.%&:\\+?/]*$ - name: if-match in: header description: ETag of the dataset entity. Should only be specified for update, for which it should match existing entity or can be * for unconditional update. required: false x-ms-client-name: If-Match schema: type: string responses: '200': description: Resource 'DatasetResource' update operation succeeded content: application/json: schema: $ref: '#/components/schemas/DatasetResource' default: description: An unexpected error response. content: application/json: schema: $ref: '#/components/schemas/CloudError' x-ms-examples: Datasets_Create: $ref: ./examples/Datasets_Create.json Datasets_Update: $ref: ./examples/Datasets_Update.json requestBody: content: application/json: schema: $ref: '#/components/schemas/DatasetResource' description: Dataset resource definition. required: true summary: Datasets create or update x-summary-source: derived delete: operationId: Datasets_Delete tags: - Datasets description: Deletes a dataset. parameters: - $ref: ../../../../../../common-types/resource-management/v6/types.json#/parameters/ApiVersionParameter - $ref: ../../../../../../common-types/resource-management/v6/types.json#/parameters/SubscriptionIdParameter - $ref: ../../../../../../common-types/resource-management/v6/types.json#/parameters/ResourceGroupNameParameter - name: factoryName in: path description: The factory name. required: true schema: type: string maxLength: 63 minLength: 3 pattern: ^[A-Za-z0-9]+(?:-[A-Za-z0-9]+)*$ - name: datasetName in: path description: The dataset name. required: true schema: type: string maxLength: 260 minLength: 1 pattern: ^[A-Za-z0-9_][^<>*#.%&:\\+?/]*$ responses: '200': description: Resource deleted successfully. '204': description: Resource does not exist. default: description: An unexpected error response. content: application/json: schema: $ref: '#/components/schemas/CloudError' x-ms-examples: Datasets_Delete: $ref: ./examples/Datasets_Delete.json summary: Datasets delete x-summary-source: derived components: schemas: DatasetFolder: type: object description: The folder that this Dataset is in. If not specified, Dataset will appear at the root level. properties: name: type: string description: The name of the folder that this Dataset is in. CloudError: type: object description: The object that defines the structure of an Azure Data Factory error response. properties: error: $ref: '#/components/schemas/CloudErrorBody' description: Error data x-ms-client-flatten: true required: - error x-ms-external: true ParameterType: type: string description: Parameter type. enum: - Object - String - Int - Float - Bool - Array - SecureString x-ms-enum: name: ParameterType modelAsString: true values: - name: Object value: Object description: Object - name: String value: String description: String - name: Int value: Int description: Int - name: Float value: Float description: Float - name: Bool value: Bool description: Bool - name: Array value: Array description: Array - name: SecureString value: SecureString description: SecureString Dataset: type: object description: The Azure Data Factory nested object which identifies data within different data stores, such as tables, files, folders, and documents. properties: type: type: string description: Type of dataset. description: type: string description: Dataset description. structure: description: 'Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement.' schema: description: 'Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: DatasetSchemaDataElement.' linkedServiceName: $ref: '#/components/schemas/LinkedServiceReference' description: Linked service reference. parameters: type: object description: Parameters for dataset. additionalProperties: $ref: '#/components/schemas/ParameterSpecification' annotations: type: array description: List of tags that can be used for describing the Dataset. items: {} folder: $ref: '#/components/schemas/DatasetFolder' description: The folder that this Dataset is in. If not specified, Dataset will appear at the root level. discriminator: propertyName: type required: - type - linkedServiceName additionalProperties: {} LinkedServiceReference: type: object description: Linked service reference type. properties: type: $ref: '#/components/schemas/Type' description: Linked service reference type. referenceName: type: string description: Reference LinkedService name. parameters: type: object description: Arguments for LinkedService. additionalProperties: {} required: - type - referenceName Type: type: string description: Linked service reference type. enum: - LinkedServiceReference x-ms-enum: name: Type modelAsString: true values: - name: LinkedServiceReference value: LinkedServiceReference description: LinkedServiceReference CloudErrorBody: type: object description: The object that defines the structure of an Azure Data Factory error. properties: code: type: string description: Error code. message: type: string description: Error message. target: type: string description: Property name/path in request associated with error. details: type: array description: Array with additional error details. items: $ref: '#/components/schemas/CloudError' x-ms-identifiers: [] required: - code - message x-ms-external: true ParameterSpecification: type: object description: Definition of a single parameter for an entity. properties: type: $ref: '#/components/schemas/ParameterType' description: Parameter type. defaultValue: description: Default value of parameter. required: - type DatasetResource: type: object description: Dataset resource type. properties: properties: $ref: '#/components/schemas/Dataset' description: Dataset properties. etag: type: string description: '"If etag is provided in the response body, it may also be provided as a header per the normal etag convention. Entity tags are used for comparing two or more entities from the same requested resource. HTTP/1.1 uses entity tags in the etag (section 14.19), If-Match (section 14.24), If-None-Match (section 14.26), and If-Range (section 14.27) header fields.")' readOnly: true required: - properties allOf: - $ref: ../../../../../../common-types/resource-management/v6/types.json#/definitions/ProxyResource DatasetListResponse: type: object description: A list of dataset resources. properties: value: type: array description: The DatasetResource items on this page items: $ref: '#/components/schemas/DatasetResource' nextLink: type: string format: uri description: The link to the next page of items required: - value securitySchemes: azure_auth: type: oauth2 flows: implicit: scopes: user_impersonation: impersonate your user account authorizationUrl: https://login.microsoftonline.com/common/oauth2/authorize description: Azure Active Directory OAuth2 Flow.