From 96f7e0e92aa6cc628e24a8273271708aa10a9475 Mon Sep 17 00:00:00 2001 From: daminia-ms <61069715+daminia-ms@users.noreply.github.com> Date: Mon, 20 Nov 2023 09:42:42 -0800 Subject: [PATCH] Purview RP Data Plane - Add new API Version 2023-10-01-preview (#26738) * Base version for comparison from 2019-11-01-preview to 2023-10-01-preview * Adding new api version 2023-10-01-preview * "Removing createOrUpdate, delete domain and updating containerType information"" * Update readme.md * Delete Accounts_RegenerateAccessKey.json Remove duplicate file * Adding read me file for go. * removed go readme file * Update readme.md --- .../preview/2023-10-01-preview/account.json | 2681 +++++++++++++++++ .../examples/Accounts_GetAccessKeys.json | 20 + .../Accounts_GetAccountProperties.json | 81 + .../Accounts_RegenerateAccessKeys.json | 23 + .../Accounts_UpdateAccountProperties.json | 70 + .../Collections_CreateOrUpdateCollection.json | 32 + .../Collections_DeleteCollection.json | 16 + .../examples/Collections_GetCollection.json | 26 + .../Collections_GetCollectionPath.json | 27 + .../Collections_ListChildCollectionNames.json | 33 + .../examples/Collections_ListCollections.json | 35 + ...ments_CreateOrUpdateContactAssignment.json | 39 + ...ctAssignments_DeleteContactAssignment.json | 16 + ...ntactAssignments_GetContactAssignment.json | 28 + ...actAssignments_ListContactAssignments.json | 34 + ...signments_ListScopedContactGroupNames.json | 24 + ..._CreateOrUpdateContactGroupDefinition.json | 24 + ...initions_DeleteContactGroupDefinition.json | 16 + ...Definitions_GetContactGroupDefinition.json | 21 + ...finitions_ListContactGroupDefinitions.json | 24 + .../examples/Domains_GetDomain.json | 39 + .../examples/Domains_ListDomains.json | 42 + .../examples/ExposureControl_GetFeatures.json | 27 + ...etRules_CreateOrUpdateResourceSetRule.json | 455 +++ ...esourceSetRules_DeleteResourceSetRule.json | 25 + .../ResourceSetRules_GetResourceSetRule.json | 243 ++ ...ResourceSetRules_ListResourceSetRules.json | 247 ++ .../Azure.Analytics.Purview.Account/readme.md | 87 +- 28 files changed, 4424 insertions(+), 11 deletions(-) create mode 100644 specification/purview/data-plane/Azure.Analytics.Purview.Account/preview/2023-10-01-preview/account.json create mode 100644 specification/purview/data-plane/Azure.Analytics.Purview.Account/preview/2023-10-01-preview/examples/Accounts_GetAccessKeys.json create mode 100644 specification/purview/data-plane/Azure.Analytics.Purview.Account/preview/2023-10-01-preview/examples/Accounts_GetAccountProperties.json create mode 100644 specification/purview/data-plane/Azure.Analytics.Purview.Account/preview/2023-10-01-preview/examples/Accounts_RegenerateAccessKeys.json create mode 100644 specification/purview/data-plane/Azure.Analytics.Purview.Account/preview/2023-10-01-preview/examples/Accounts_UpdateAccountProperties.json create mode 100644 specification/purview/data-plane/Azure.Analytics.Purview.Account/preview/2023-10-01-preview/examples/Collections_CreateOrUpdateCollection.json create mode 100644 specification/purview/data-plane/Azure.Analytics.Purview.Account/preview/2023-10-01-preview/examples/Collections_DeleteCollection.json create mode 100644 specification/purview/data-plane/Azure.Analytics.Purview.Account/preview/2023-10-01-preview/examples/Collections_GetCollection.json create mode 100644 specification/purview/data-plane/Azure.Analytics.Purview.Account/preview/2023-10-01-preview/examples/Collections_GetCollectionPath.json create mode 100644 specification/purview/data-plane/Azure.Analytics.Purview.Account/preview/2023-10-01-preview/examples/Collections_ListChildCollectionNames.json create mode 100644 specification/purview/data-plane/Azure.Analytics.Purview.Account/preview/2023-10-01-preview/examples/Collections_ListCollections.json create mode 100644 specification/purview/data-plane/Azure.Analytics.Purview.Account/preview/2023-10-01-preview/examples/ContactAssignments_CreateOrUpdateContactAssignment.json create mode 100644 specification/purview/data-plane/Azure.Analytics.Purview.Account/preview/2023-10-01-preview/examples/ContactAssignments_DeleteContactAssignment.json create mode 100644 specification/purview/data-plane/Azure.Analytics.Purview.Account/preview/2023-10-01-preview/examples/ContactAssignments_GetContactAssignment.json create mode 100644 specification/purview/data-plane/Azure.Analytics.Purview.Account/preview/2023-10-01-preview/examples/ContactAssignments_ListContactAssignments.json create mode 100644 specification/purview/data-plane/Azure.Analytics.Purview.Account/preview/2023-10-01-preview/examples/ContactAssignments_ListScopedContactGroupNames.json create mode 100644 specification/purview/data-plane/Azure.Analytics.Purview.Account/preview/2023-10-01-preview/examples/ContactGroupDefinitions_CreateOrUpdateContactGroupDefinition.json create mode 100644 specification/purview/data-plane/Azure.Analytics.Purview.Account/preview/2023-10-01-preview/examples/ContactGroupDefinitions_DeleteContactGroupDefinition.json create mode 100644 specification/purview/data-plane/Azure.Analytics.Purview.Account/preview/2023-10-01-preview/examples/ContactGroupDefinitions_GetContactGroupDefinition.json create mode 100644 specification/purview/data-plane/Azure.Analytics.Purview.Account/preview/2023-10-01-preview/examples/ContactGroupDefinitions_ListContactGroupDefinitions.json create mode 100644 specification/purview/data-plane/Azure.Analytics.Purview.Account/preview/2023-10-01-preview/examples/Domains_GetDomain.json create mode 100644 specification/purview/data-plane/Azure.Analytics.Purview.Account/preview/2023-10-01-preview/examples/Domains_ListDomains.json create mode 100644 specification/purview/data-plane/Azure.Analytics.Purview.Account/preview/2023-10-01-preview/examples/ExposureControl_GetFeatures.json create mode 100644 specification/purview/data-plane/Azure.Analytics.Purview.Account/preview/2023-10-01-preview/examples/ResourceSetRules_CreateOrUpdateResourceSetRule.json create mode 100644 specification/purview/data-plane/Azure.Analytics.Purview.Account/preview/2023-10-01-preview/examples/ResourceSetRules_DeleteResourceSetRule.json create mode 100644 specification/purview/data-plane/Azure.Analytics.Purview.Account/preview/2023-10-01-preview/examples/ResourceSetRules_GetResourceSetRule.json create mode 100644 specification/purview/data-plane/Azure.Analytics.Purview.Account/preview/2023-10-01-preview/examples/ResourceSetRules_ListResourceSetRules.json diff --git a/specification/purview/data-plane/Azure.Analytics.Purview.Account/preview/2023-10-01-preview/account.json b/specification/purview/data-plane/Azure.Analytics.Purview.Account/preview/2023-10-01-preview/account.json new file mode 100644 index 000000000000..639ea7e55adf --- /dev/null +++ b/specification/purview/data-plane/Azure.Analytics.Purview.Account/preview/2023-10-01-preview/account.json @@ -0,0 +1,2681 @@ +{ + "swagger": "2.0", + "info": { + "title": "DataPlaneAccountClient", + "description": "Creates a Microsoft.Purview data plane account client.", + "version": "2023-10-01-preview" + }, + "host": "purview.azure.com", + "basePath": "/account/", + "schemes": [ + "https" + ], + "paths": { + "/": { + "get": { + "tags": [ + "Account" + ], + "description": "Get an account", + "operationId": "Accounts_GetAccountProperties", + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "#/parameters/api-version" + } + ], + "responses": { + "200": { + "description": "Success", + "schema": { + "$ref": "#/definitions/Account" + } + }, + "default": { + "description": "An error response received from the provider.", + "schema": { + "$ref": "#/definitions/ErrorResponseModel" + } + } + }, + "x-ms-examples": { + "Accounts_GetAccountProperties": { + "$ref": "./examples/Accounts_GetAccountProperties.json" + } + } + }, + "patch": { + "tags": [ + "Account" + ], + "description": "Updates an account", + "operationId": "Accounts_UpdateAccountProperties", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "#/parameters/api-version" + }, + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/DataPlaneAccountUpdateParameters" + } + } + ], + "responses": { + "200": { + "description": "Success", + "schema": { + "$ref": "#/definitions/Account" + } + }, + "default": { + "description": "An error response received from the provider.", + "schema": { + "$ref": "#/definitions/ErrorResponseModel" + } + } + }, + "x-ms-examples": { + "Accounts_UpdateAccountProperties": { + "$ref": "./examples/Accounts_UpdateAccountProperties.json" + } + } + } + }, + "/listkeys": { + "post": { + "tags": [ + "Account" + ], + "description": "Lists the connection strings that allow connecting with the Managed Event Hub, if it is provisioned. Those connection strings are aimed to receive messages from the ATLAS_ENTITIES hub or to send messages to the ATLAS_HOOK hub.", + "operationId": "Accounts_GetAccessKeys", + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "#/parameters/api-version" + } + ], + "responses": { + "200": { + "description": "Success", + "schema": { + "$ref": "#/definitions/AccessKeys" + } + }, + "default": { + "description": "An error response received from the provider.", + "schema": { + "$ref": "#/definitions/ErrorResponseModel" + } + } + }, + "x-ms-examples": { + "Accounts_GetAccessKeys": { + "$ref": "./examples/Accounts_GetAccessKeys.json" + } + } + } + }, + "/regeneratekeys": { + "post": { + "tags": [ + "Account" + ], + "description": "Regenerates either the primary or secondary key of the Managed Event Hub, if it is provisioned.", + "operationId": "Accounts_RegenerateAccessKeys", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "#/parameters/api-version" + }, + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/AccessKeyOptions" + } + } + ], + "responses": { + "200": { + "description": "Success", + "schema": { + "$ref": "#/definitions/AccessKeys" + } + }, + "default": { + "description": "An error response received from the provider.", + "schema": { + "$ref": "#/definitions/ErrorResponseModel" + } + } + }, + "x-ms-examples": { + "Accounts_RegenerateAccessKeys": { + "$ref": "./examples/Accounts_RegenerateAccessKeys.json" + } + } + } + }, + "/collections/{collectionName}": { + "get": { + "tags": [ + "Collection" + ], + "description": "Get a collection", + "operationId": "Collections_GetCollection", + "produces": [ + "application/json" + ], + "parameters": [ + { + "in": "path", + "name": "collectionName", + "required": true, + "type": "string" + }, + { + "$ref": "#/parameters/api-version" + } + ], + "responses": { + "200": { + "description": "Success", + "schema": { + "$ref": "#/definitions/Collection" + } + }, + "default": { + "description": "An error response received from the provider.", + "schema": { + "$ref": "#/definitions/ErrorResponseModel" + } + } + }, + "x-ms-examples": { + "Collections_GetCollection": { + "$ref": "./examples/Collections_GetCollection.json" + } + } + }, + "put": { + "tags": [ + "Collection" + ], + "description": "Creates or updates a collection entity.", + "operationId": "Collections_CreateOrUpdateCollection", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "parameters": [ + { + "in": "path", + "name": "collectionName", + "required": true, + "type": "string" + }, + { + "$ref": "#/parameters/api-version" + }, + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/Collection" + } + } + ], + "responses": { + "200": { + "description": "Success", + "schema": { + "$ref": "#/definitions/Collection" + } + }, + "default": { + "description": "An error response received from the provider.", + "schema": { + "$ref": "#/definitions/ErrorResponseModel" + } + } + }, + "x-ms-examples": { + "Collections_CreateOrUpdateCollection": { + "$ref": "./examples/Collections_CreateOrUpdateCollection.json" + } + } + }, + "delete": { + "tags": [ + "Collection" + ], + "description": "Deletes a Collection entity.", + "operationId": "Collections_DeleteCollection", + "produces": [ + "application/json" + ], + "parameters": [ + { + "in": "path", + "name": "collectionName", + "required": true, + "type": "string" + }, + { + "$ref": "#/parameters/api-version" + } + ], + "responses": { + "204": { + "description": "No Content" + }, + "default": { + "description": "An error response received from the provider.", + "schema": { + "$ref": "#/definitions/ErrorResponseModel" + } + } + }, + "x-ms-examples": { + "Collections_DeleteCollection": { + "$ref": "./examples/Collections_DeleteCollection.json" + } + } + } + }, + "/collections": { + "get": { + "tags": [ + "Collection" + ], + "description": "List the collections in the account.", + "operationId": "Collections_ListCollections", + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "#/parameters/api-version" + }, + { + "in": "query", + "name": "$skipToken", + "type": "string" + } + ], + "responses": { + "200": { + "description": "Success", + "schema": { + "$ref": "#/definitions/CollectionList" + } + }, + "default": { + "description": "An error response received from the provider.", + "schema": { + "$ref": "#/definitions/ErrorResponseModel" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + }, + "x-ms-examples": { + "Collections_ListCollections": { + "$ref": "./examples/Collections_ListCollections.json" + } + } + } + }, + "/collections/{collectionName}/getChildCollectionNames": { + "get": { + "tags": [ + "Collection" + ], + "description": "Lists the child collections names in the collection.", + "operationId": "Collections_ListChildCollectionNames", + "produces": [ + "application/json" + ], + "parameters": [ + { + "in": "path", + "name": "collectionName", + "required": true, + "type": "string" + }, + { + "$ref": "#/parameters/api-version" + }, + { + "in": "query", + "name": "$skipToken", + "type": "string" + } + ], + "responses": { + "200": { + "description": "Success", + "schema": { + "$ref": "#/definitions/CollectionNameResponseList" + } + }, + "default": { + "description": "An error response received from the provider.", + "schema": { + "$ref": "#/definitions/ErrorResponseModel" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + }, + "x-ms-examples": { + "Collections_ListChildCollectionNames": { + "$ref": "./examples/Collections_ListChildCollectionNames.json" + } + } + } + }, + "/collections/{collectionName}/getCollectionPath": { + "get": { + "tags": [ + "Collection" + ], + "description": "Gets the parent name and parent friendly name chains that represent the collection path.", + "operationId": "Collections_GetCollectionPath", + "produces": [ + "application/json" + ], + "parameters": [ + { + "in": "path", + "name": "collectionName", + "required": true, + "type": "string" + }, + { + "$ref": "#/parameters/api-version" + }, + { + "in": "query", + "name": "$skipToken", + "type": "string" + } + ], + "responses": { + "200": { + "description": "Success", + "schema": { + "$ref": "#/definitions/CollectionPathResponse" + } + }, + "default": { + "description": "An error response received from the provider.", + "schema": { + "$ref": "#/definitions/ErrorResponseModel" + } + } + }, + "x-ms-examples": { + "Collections_GetCollectionPath": { + "$ref": "./examples/Collections_GetCollectionPath.json" + } + } + } + }, + "/contactAssignments/{contactAssignmentId}": { + "get": { + "tags": [ + "ContactAssignment" + ], + "description": "Get a contactAssignment", + "operationId": "ContactAssignments_GetContactAssignment", + "produces": [ + "application/json" + ], + "parameters": [ + { + "in": "path", + "name": "contactAssignmentId", + "required": true, + "type": "string" + }, + { + "$ref": "#/parameters/api-version" + } + ], + "responses": { + "200": { + "description": "Success", + "schema": { + "$ref": "#/definitions/ContactAssignment" + } + }, + "default": { + "description": "An error response received from the provider.", + "schema": { + "$ref": "#/definitions/ErrorResponseModel" + } + } + }, + "x-ms-examples": { + "ContactAssignments_GetContactAssignment": { + "$ref": "./examples/ContactAssignments_GetContactAssignment.json" + } + } + }, + "put": { + "tags": [ + "ContactAssignment" + ], + "description": "Creates or updates a contactAssignment entity.", + "operationId": "ContactAssignments_CreateOrUpdateContactAssignment", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "parameters": [ + { + "in": "path", + "name": "contactAssignmentId", + "required": true, + "type": "string" + }, + { + "$ref": "#/parameters/api-version" + }, + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/ContactAssignment" + } + } + ], + "responses": { + "200": { + "description": "Success", + "schema": { + "$ref": "#/definitions/ContactAssignment" + } + }, + "default": { + "description": "An error response received from the provider.", + "schema": { + "$ref": "#/definitions/ErrorResponseModel" + } + } + }, + "x-ms-examples": { + "ContactAssignments_CreateOrUpdateContactAssignment": { + "$ref": "./examples/ContactAssignments_CreateOrUpdateContactAssignment.json" + } + } + }, + "delete": { + "tags": [ + "ContactAssignment" + ], + "description": "Deletes a ContactAssignment entity.", + "operationId": "ContactAssignments_DeleteContactAssignment", + "produces": [ + "application/json" + ], + "parameters": [ + { + "in": "path", + "name": "contactAssignmentId", + "required": true, + "type": "string" + }, + { + "$ref": "#/parameters/api-version" + } + ], + "responses": { + "204": { + "description": "No Content" + }, + "default": { + "description": "An error response received from the provider.", + "schema": { + "$ref": "#/definitions/ErrorResponseModel" + } + } + }, + "x-ms-examples": { + "ContactAssignments_DeleteContactAssignment": { + "$ref": "./examples/ContactAssignments_DeleteContactAssignment.json" + } + } + } + }, + "/contactAssignments": { + "get": { + "tags": [ + "ContactAssignment" + ], + "description": "List the contactAssignments in the account.", + "operationId": "ContactAssignments_ListContactAssignments", + "produces": [ + "application/json" + ], + "parameters": [ + { + "in": "query", + "name": "scope", + "type": "string" + }, + { + "in": "query", + "name": "contactGroupDefinition", + "type": "string" + }, + { + "in": "query", + "name": "referenceType", + "type": "string", + "enum": [ + "Unknown", + "CollectionReference", + "ContactGroupDefinitionReference", + "DatasourceReference", + "ScanReference", + "AdaptiveScopeReference" + ], + "x-ms-enum": { + "name": "EntityReferenceType", + "modelAsString": true + } + }, + { + "$ref": "#/parameters/api-version" + }, + { + "in": "query", + "name": "$skipToken", + "type": "string" + } + ], + "responses": { + "200": { + "description": "Success", + "schema": { + "$ref": "#/definitions/ContactAssignmentList" + } + }, + "default": { + "description": "An error response received from the provider.", + "schema": { + "$ref": "#/definitions/ErrorResponseModel" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + }, + "x-ms-examples": { + "ContactAssignments_ListContactAssignments": { + "$ref": "./examples/ContactAssignments_ListContactAssignments.json" + } + } + } + }, + "/getScopedContactGroupNames": { + "get": { + "tags": [ + "ContactAssignment" + ], + "description": "Gets the distinct list of contact group names for the provided scope.", + "operationId": "ContactAssignments_ListScopedContactGroupNames", + "produces": [ + "application/json" + ], + "parameters": [ + { + "in": "query", + "name": "scope", + "type": "string" + }, + { + "in": "query", + "name": "referenceType", + "type": "string", + "enum": [ + "Unknown", + "CollectionReference", + "ContactGroupDefinitionReference", + "DatasourceReference", + "ScanReference", + "AdaptiveScopeReference" + ], + "x-ms-enum": { + "name": "EntityReferenceType", + "modelAsString": true + } + }, + { + "$ref": "#/parameters/api-version" + }, + { + "in": "query", + "name": "$skipToken", + "type": "string" + } + ], + "responses": { + "200": { + "description": "Success", + "schema": { + "$ref": "#/definitions/ContactGroupNameList" + } + }, + "default": { + "description": "An error response received from the provider.", + "schema": { + "$ref": "#/definitions/ErrorResponseModel" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + }, + "x-ms-examples": { + "ContactAssignments_ListScopedContactGroupNames": { + "$ref": "./examples/ContactAssignments_ListScopedContactGroupNames.json" + } + } + } + }, + "/contactGroupDefinitions/{contactGroupDefinitionName}": { + "get": { + "tags": [ + "ContactGroupDefinition" + ], + "description": "Get a contactGroupDefinition", + "operationId": "ContactGroupDefinitions_GetContactGroupDefinition", + "produces": [ + "application/json" + ], + "parameters": [ + { + "in": "path", + "name": "contactGroupDefinitionName", + "required": true, + "type": "string" + }, + { + "$ref": "#/parameters/api-version" + } + ], + "responses": { + "200": { + "description": "Success", + "schema": { + "$ref": "#/definitions/ContactGroupDefinition" + } + }, + "default": { + "description": "An error response received from the provider.", + "schema": { + "$ref": "#/definitions/ErrorResponseModel" + } + } + }, + "x-ms-examples": { + "ContactGroupDefinitions_GetContactGroupDefinition": { + "$ref": "./examples/ContactGroupDefinitions_GetContactGroupDefinition.json" + } + } + }, + "put": { + "tags": [ + "ContactGroupDefinition" + ], + "description": "Creates or updates a contact group definition entity.", + "operationId": "ContactGroupDefinitions_CreateOrUpdateContactGroupDefinition", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "parameters": [ + { + "in": "path", + "name": "contactGroupDefinitionName", + "required": true, + "type": "string" + }, + { + "$ref": "#/parameters/api-version" + }, + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/ContactGroupDefinition" + } + } + ], + "responses": { + "200": { + "description": "Success", + "schema": { + "$ref": "#/definitions/ContactGroupDefinition" + } + }, + "default": { + "description": "An error response received from the provider.", + "schema": { + "$ref": "#/definitions/ErrorResponseModel" + } + } + }, + "x-ms-examples": { + "ContactGroupDefinitions_CreateOrUpdateContactGroupDefinition": { + "$ref": "./examples/ContactGroupDefinitions_CreateOrUpdateContactGroupDefinition.json" + } + } + }, + "delete": { + "tags": [ + "ContactGroupDefinition" + ], + "description": "Deletes a ContactGroupDefinition entity.", + "operationId": "ContactGroupDefinitions_DeleteContactGroupDefinition", + "produces": [ + "application/json" + ], + "parameters": [ + { + "in": "path", + "name": "contactGroupDefinitionName", + "required": true, + "type": "string" + }, + { + "$ref": "#/parameters/api-version" + } + ], + "responses": { + "204": { + "description": "No Content" + }, + "default": { + "description": "An error response received from the provider.", + "schema": { + "$ref": "#/definitions/ErrorResponseModel" + } + } + }, + "x-ms-examples": { + "ContactGroupDefinitions_DeleteContactGroupDefinition": { + "$ref": "./examples/ContactGroupDefinitions_DeleteContactGroupDefinition.json" + } + } + } + }, + "/contactGroupDefinitions": { + "get": { + "tags": [ + "ContactGroupDefinition" + ], + "description": "List the contactGroupDefinitions in the account.", + "operationId": "ContactGroupDefinitions_ListContactGroupDefinitions", + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "#/parameters/api-version" + }, + { + "in": "query", + "name": "$skipToken", + "type": "string" + } + ], + "responses": { + "200": { + "description": "Success", + "schema": { + "$ref": "#/definitions/ContactGroupDefinitionList" + } + }, + "default": { + "description": "An error response received from the provider.", + "schema": { + "$ref": "#/definitions/ErrorResponseModel" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + }, + "x-ms-examples": { + "ContactGroupDefinitions_ListContactGroupDefinitions": { + "$ref": "./examples/ContactGroupDefinitions_ListContactGroupDefinitions.json" + } + } + } + }, + "/domains/{domainName}": { + "get": { + "tags": [ + "Domain" + ], + "description": "Get a domain", + "operationId": "Domains_GetDomain", + "produces": [ + "application/json" + ], + "parameters": [ + { + "in": "path", + "name": "domainName", + "required": true, + "type": "string" + }, + { + "$ref": "#/parameters/api-version" + } + ], + "responses": { + "200": { + "description": "Success", + "schema": { + "$ref": "#/definitions/Domain" + } + }, + "default": { + "description": "An error response received from the provider.", + "schema": { + "$ref": "#/definitions/ErrorResponseModel" + } + } + }, + "x-ms-examples": { + "Domains_GetDomain": { + "$ref": "./examples/Domains_GetDomain.json" + } + } + } + }, + "/domains": { + "get": { + "tags": [ + "Domain" + ], + "description": "List the domains in the account.", + "operationId": "Domains_ListDomains", + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "#/parameters/api-version" + }, + { + "in": "query", + "name": "$skipToken", + "type": "string" + } + ], + "responses": { + "200": { + "description": "Success", + "schema": { + "$ref": "#/definitions/DomainList" + } + }, + "default": { + "description": "An error response received from the provider.", + "schema": { + "$ref": "#/definitions/ErrorResponseModel" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + }, + "x-ms-examples": { + "Domains_ListDomains": { + "$ref": "./examples/Domains_ListDomains.json" + } + } + } + }, + "/features": { + "post": { + "tags": [ + "ExposureControl" + ], + "description": "Gets details from a list of features.", + "operationId": "ExposureControl_GetFeatures", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "#/parameters/api-version" + }, + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/BatchFeatureRequest" + } + } + ], + "responses": { + "200": { + "description": "Success", + "schema": { + "$ref": "#/definitions/BatchFeatureStatus" + } + }, + "default": { + "description": "An error response received from the provider.", + "schema": { + "$ref": "#/definitions/ErrorResponseModel" + } + } + }, + "x-ms-examples": { + "ExposureControl_GetFeatures": { + "$ref": "./examples/ExposureControl_GetFeatures.json" + } + } + } + }, + "/resourceSetRuleConfigs/defaultResourceSetRuleConfig": { + "get": { + "tags": [ + "ResourceSetRuleConfig" + ], + "description": "Get a resource set config service model.", + "operationId": "ResourceSetRules_GetResourceSetRule", + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "#/parameters/api-version" + } + ], + "responses": { + "200": { + "description": "Success", + "schema": { + "$ref": "#/definitions/ResourceSetRuleConfig" + } + }, + "default": { + "description": "An error response received from the provider.", + "schema": { + "$ref": "#/definitions/ErrorResponseModel" + } + } + }, + "x-ms-examples": { + "ResourceSetRules_GetResourceSetRule": { + "$ref": "./examples/ResourceSetRules_GetResourceSetRule.json" + } + } + }, + "put": { + "tags": [ + "ResourceSetRuleConfig" + ], + "description": "Creates or updates an resource set config.", + "operationId": "ResourceSetRules_CreateOrUpdateResourceSetRule", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "#/parameters/api-version" + }, + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/ResourceSetRuleConfig" + } + } + ], + "responses": { + "200": { + "description": "Success", + "schema": { + "$ref": "#/definitions/ResourceSetRuleConfig" + } + }, + "default": { + "description": "An error response received from the provider.", + "schema": { + "$ref": "#/definitions/ErrorResponseModel" + } + } + }, + "x-ms-examples": { + "ResourceSetRules_CreateOrUpdateResourceSetRule": { + "$ref": "./examples/ResourceSetRules_CreateOrUpdateResourceSetRule.json" + } + } + }, + "delete": { + "tags": [ + "ResourceSetRuleConfig" + ], + "description": "Deletes a ResourceSetRuleConfig resource.", + "operationId": "ResourceSetRules_DeleteResourceSetRule", + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "#/parameters/api-version" + } + ], + "responses": { + "200": { + "description": "Success" + }, + "204": { + "description": "No Content" + }, + "default": { + "description": "An error response received from the provider.", + "schema": { + "$ref": "#/definitions/ErrorResponseModel" + } + } + }, + "x-ms-examples": { + "ResourceSetRules_DeleteResourceSetRule": { + "$ref": "./examples/ResourceSetRules_DeleteResourceSetRule.json" + } + } + } + }, + "/resourceSetRuleConfigs": { + "get": { + "tags": [ + "ResourceSetRuleConfig" + ], + "description": "Get a resource set config service model.", + "operationId": "ResourceSetRules_ListResourceSetRules", + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "#/parameters/api-version" + }, + { + "in": "query", + "name": "$skipToken", + "type": "string" + } + ], + "responses": { + "200": { + "description": "Success", + "schema": { + "$ref": "#/definitions/ResourceSetRuleConfigList" + } + }, + "default": { + "description": "An error response received from the provider.", + "schema": { + "$ref": "#/definitions/ErrorResponseModel" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + }, + "x-ms-examples": { + "ResourceSetRules_ListResourceSetRules": { + "$ref": "./examples/ResourceSetRules_ListResourceSetRules.json" + } + } + } + } + }, + "definitions": { + "AccessKeyOptions": { + "description": "A access key options used for regeneration.", + "type": "object", + "properties": { + "keyType": { + "description": "The access key type.", + "enum": [ + "PrimaryAtlasKafkaKey", + "SecondaryAtlasKafkaKey" + ], + "type": "string", + "x-ms-enum": { + "name": "AccessKeyType", + "modelAsString": true + } + } + } + }, + "AccessKeys": { + "description": "The Account access keys.", + "type": "object", + "properties": { + "atlasKafkaPrimaryEndpoint": { + "description": "Gets or sets the primary connection string.", + "type": "string" + }, + "atlasKafkaSecondaryEndpoint": { + "description": "Gets or sets the secondary connection string.", + "type": "string" + } + } + }, + "Account": { + "description": "Account resource", + "type": "object", + "properties": { + "id": { + "description": "Gets or sets the identifier.", + "type": "string", + "readOnly": true + }, + "identity": { + "$ref": "#/definitions/Identity" + }, + "location": { + "description": "Gets or sets the location.", + "type": "string" + }, + "name": { + "description": "Gets or sets the name.", + "type": "string", + "readOnly": true + }, + "properties": { + "$ref": "#/definitions/AccountProperties" + }, + "sku": { + "$ref": "#/definitions/AccountSku" + }, + "systemData": { + "$ref": "#/definitions/SystemData" + }, + "tags": { + "description": "Tags on the azure resource.", + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "type": { + "description": "Gets or sets the type.", + "type": "string", + "readOnly": true + } + } + }, + "AccountEndpoints": { + "description": "The account endpoints", + "type": "object", + "properties": { + "catalog": { + "description": "Gets the catalog endpoint.", + "type": "string", + "readOnly": true + }, + "scan": { + "description": "Gets the scan endpoint.", + "type": "string", + "readOnly": true + } + } + }, + "AccountMergeInfo": { + "description": "The public Account Merge Info model.", + "type": "object", + "properties": { + "accountLocation": { + "description": "The account location of the *other* account in the merge operation.", + "type": "string", + "readOnly": true + }, + "accountName": { + "description": "The account name of the *other* account in the merge operation.", + "type": "string", + "readOnly": true + }, + "accountResourceGroupName": { + "description": "The resource group name of the *other* account in the merge operation.", + "type": "string", + "readOnly": true + }, + "accountSubscriptionId": { + "description": "The subscription id of the *other* account in the merge operation.", + "type": "string", + "readOnly": true + }, + "mergeStatus": { + "description": "The status of the merge operation.", + "enum": [ + "Succeeded", + "Failed", + "InProgress" + ], + "type": "string", + "readOnly": true, + "x-ms-enum": { + "name": "MergeStatus", + "modelAsString": true + } + }, + "typeOfAccount": { + "description": "The type of account this account is for the merge operation.", + "enum": [ + "Primary", + "Secondary" + ], + "type": "string", + "readOnly": true, + "x-ms-enum": { + "name": "MergeAccountType", + "modelAsString": true + } + } + } + }, + "AccountProperties": { + "description": "The account properties", + "type": "object", + "properties": { + "accountStatus": { + "$ref": "#/definitions/AccountStatus" + }, + "cloudConnectors": { + "$ref": "#/definitions/CloudConnectors" + }, + "createdAt": { + "format": "date-time", + "description": "Gets the time at which the entity was created.", + "type": "string", + "readOnly": true + }, + "createdBy": { + "description": "Gets the creator of the entity.", + "type": "string", + "readOnly": true + }, + "createdByObjectId": { + "description": "Gets the creators of the entity's object id.", + "type": "string", + "readOnly": true + }, + "defaultDomain": { + "description": "Gets or sets the default domain in the account.", + "type": "string", + "readOnly": true + }, + "endpoints": { + "$ref": "#/definitions/AccountEndpoints" + }, + "friendlyName": { + "description": "Gets or sets the friendly name.", + "type": "string", + "readOnly": true + }, + "ingestionStorage": { + "$ref": "#/definitions/IngestionStorage" + }, + "managedEventHubState": { + "description": "Gets or sets the state of managed eventhub. If enabled managed eventhub will be created, if disabled the managed eventhub will be removed.", + "default": "NotSpecified", + "enum": [ + "NotSpecified", + "Disabled", + "Enabled" + ], + "type": "string", + "x-ms-enum": { + "name": "ManagedEventHubState", + "modelAsString": true + } + }, + "managedResourceGroupName": { + "description": "Gets or sets the managed resource group name", + "type": "string" + }, + "managedResources": { + "$ref": "#/definitions/ManagedResources" + }, + "managedResourcesPublicNetworkAccess": { + "description": "Gets or sets the public network access for managed resources", + "enum": [ + "NotSpecified", + "Enabled", + "Disabled" + ], + "type": "string", + "x-ms-enum": { + "name": "PublicNetworkAccess", + "modelAsString": true + } + }, + "mergeInfo": { + "$ref": "#/definitions/AccountMergeInfo" + }, + "privateEndpointConnections": { + "description": "Gets the private endpoint connections information.", + "type": "array", + "items": { + "$ref": "#/definitions/PrivateEndpointConnection" + }, + "readOnly": true + }, + "provisioningState": { + "description": "Gets or sets the state of the provisioning.", + "enum": [ + "Unknown", + "Creating", + "Moving", + "Deleting", + "SoftDeleting", + "SoftDeleted", + "Failed", + "Succeeded", + "Canceled" + ], + "type": "string", + "readOnly": true, + "x-ms-enum": { + "name": "ProvisioningState", + "modelAsString": true + } + }, + "publicNetworkAccess": { + "description": "Gets or sets the public network access.", + "default": "Enabled", + "enum": [ + "NotSpecified", + "Enabled", + "Disabled" + ], + "type": "string", + "x-ms-enum": { + "name": "PublicNetworkAccess", + "modelAsString": true + } + } + } + }, + "AccountSku": { + "description": "The Sku", + "type": "object", + "properties": { + "capacity": { + "format": "int32", + "description": "Gets or sets the sku capacity.", + "type": "integer" + }, + "name": { + "description": "Gets or sets the sku name.", + "enum": [ + "Standard", + "Free" + ], + "type": "string", + "x-ms-enum": { + "name": "AccountSkuName", + "modelAsString": true + } + } + } + }, + "AccountStatus": { + "description": "The account status.", + "type": "object", + "properties": { + "accountProvisioningState": { + "description": "Gets the account status code.", + "enum": [ + "Unknown", + "Creating", + "Updating", + "Moving", + "Deleting", + "SoftDeleting", + "SoftDeleted", + "Failed", + "Succeeded", + "Canceled" + ], + "type": "string", + "readOnly": true, + "x-ms-enum": { + "name": "AccountProvisioningState", + "modelAsString": true + } + }, + "errorDetails": { + "$ref": "#/definitions/ErrorModel" + } + } + }, + "AdvancedResourceSet": { + "description": "The resource set processing property of the account.", + "type": "object", + "properties": { + "modifiedAt": { + "format": "date-time", + "description": "Date at which ResourceSetProcessing property of the account is updated.", + "type": "string" + }, + "resourceSetProcessing": { + "description": "The advanced resource property of the account.", + "enum": [ + "Default", + "Advanced" + ], + "type": "string", + "x-ms-enum": { + "name": "resourceSetProcessing", + "modelAsString": true + } + } + } + }, + "BatchFeatureRequest": { + "description": "Feature request model", + "type": "object", + "properties": { + "features": { + "description": "Set of features", + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + } + } + }, + "BatchFeatureStatus": { + "description": "List of features with enabled status", + "type": "object", + "properties": { + "features": { + "description": "Features with enabled status", + "type": "object", + "additionalProperties": { + "type": "boolean" + }, + "readOnly": true + } + } + }, + "CloudConnectors": { + "description": "External Cloud Service connectors", + "type": "object", + "properties": { + "awsExternalId": { + "description": "AWS external identifier.\r\nConfigured in AWS to allow use of the role arn used for scanning", + "type": "string", + "readOnly": true + } + } + }, + "Collection": { + "description": "Collection resource.", + "type": "object", + "properties": { + "collectionProvisioningState": { + "description": "Gets the state of the provisioning.", + "enum": [ + "Unknown", + "Creating", + "Moving", + "Deleting", + "Failed", + "Succeeded" + ], + "type": "string", + "readOnly": true, + "x-ms-enum": { + "name": "CollectionProvisioningState", + "modelAsString": true + } + }, + "description": { + "description": "Gets or sets the description.", + "type": "string" + }, + "domain": { + "description": "Gets the domain.", + "type": "string", + "readOnly": true + }, + "friendlyName": { + "description": "Gets or sets the friendly name of the collection.", + "type": "string" + }, + "name": { + "description": "Gets the name.", + "type": "string", + "readOnly": true + }, + "parentCollection": { + "$ref": "#/definitions/CollectionReference" + }, + "systemData": { + "$ref": "#/definitions/SystemData" + } + } + }, + "CollectionList": { + "description": "Paged list of collections.", + "required": [ + "value" + ], + "type": "object", + "properties": { + "count": { + "format": "int64", + "description": "Total item count.", + "type": "integer" + }, + "nextLink": { + "description": "The Url of next result page.", + "type": "string" + }, + "value": { + "description": "Collection of items of type results.", + "type": "array", + "items": { + "$ref": "#/definitions/Collection" + } + } + } + }, + "CollectionNameResponse": { + "description": "Collection resource.", + "type": "object", + "properties": { + "friendlyName": { + "description": "Gets or sets the friendly name of the collection.", + "type": "string", + "readOnly": true + }, + "name": { + "description": "Gets the name.", + "type": "string", + "readOnly": true + } + } + }, + "CollectionNameResponseList": { + "description": "Paged list of collections.", + "required": [ + "value" + ], + "type": "object", + "properties": { + "count": { + "format": "int64", + "description": "Total item count.", + "type": "integer" + }, + "nextLink": { + "description": "The Url of next result page.", + "type": "string" + }, + "value": { + "description": "Collection of items of type results.", + "type": "array", + "items": { + "$ref": "#/definitions/CollectionNameResponse" + } + } + } + }, + "CollectionPathResponse": { + "description": "Collection resource.", + "type": "object", + "properties": { + "parentFriendlyNameChain": { + "description": "The friendly names of ancestors starting from the default (root) collection and ending with the immediate parent.", + "type": "array", + "items": { + "type": "string" + }, + "readOnly": true + }, + "parentNameChain": { + "description": "The names of ancestors starting from the default (root) collection and ending with the immediate parent.", + "type": "array", + "items": { + "type": "string" + }, + "readOnly": true + } + } + }, + "CollectionReference": { + "description": "Reference to a Collection.", + "type": "object", + "properties": { + "referenceName": { + "description": "Gets or sets the reference name.", + "type": "string" + }, + "type": { + "description": "Gets or sets the reference type property.", + "type": "string" + } + } + }, + "ComplexReplacerConfig": { + "type": "object", + "properties": { + "createdBy": { + "type": "string" + }, + "description": { + "type": "string" + }, + "disabled": { + "type": "boolean" + }, + "disableRecursiveReplacerApplication": { + "type": "boolean" + }, + "lastUpdatedTimestamp": { + "format": "int64", + "type": "integer" + }, + "modifiedBy": { + "type": "string" + }, + "name": { + "type": "string" + }, + "typeName": { + "type": "string" + } + } + }, + "ContactAssignment": { + "description": "ContactAssignment resource.", + "type": "object", + "properties": { + "assignmentId": { + "format": "uuid", + "description": "Gets or sets the id of the assignment.", + "type": "string" + }, + "contactGroup": { + "$ref": "#/definitions/EntityReference" + }, + "principalId": { + "description": "Gets or sets the principal Id.", + "type": "string" + }, + "scope": { + "$ref": "#/definitions/EntityReference" + }, + "systemData": { + "$ref": "#/definitions/SystemData" + } + } + }, + "ContactAssignmentList": { + "description": "Paged list of contactAssignment.", + "required": [ + "value" + ], + "type": "object", + "properties": { + "count": { + "format": "int64", + "description": "Total item count.", + "type": "integer" + }, + "nextLink": { + "description": "The Url of next result page.", + "type": "string" + }, + "value": { + "description": "Collection of items of type results.", + "type": "array", + "items": { + "$ref": "#/definitions/ContactAssignment" + } + } + } + }, + "ContactGroupDefinition": { + "description": "ContactGroupDefinition resource.", + "type": "object", + "properties": { + "contactGroupType": { + "description": "Gets or sets the contact group definition type.", + "enum": [ + "Custom", + "System" + ], + "type": "string", + "readOnly": true, + "x-ms-enum": { + "name": "ContactGroupType", + "modelAsString": true + } + }, + "description": { + "description": "Gets or sets the description.", + "type": "string" + }, + "friendlyName": { + "description": "Gets or sets the friendly name.", + "type": "string" + }, + "name": { + "description": "Gets the name.", + "type": "string", + "readOnly": true + } + } + }, + "ContactGroupDefinitionList": { + "description": "Paged list of contactGroupDefinition.", + "required": [ + "value" + ], + "type": "object", + "properties": { + "count": { + "format": "int64", + "description": "Total item count.", + "type": "integer" + }, + "nextLink": { + "description": "The Url of next result page.", + "type": "string" + }, + "value": { + "description": "Collection of items of type results.", + "type": "array", + "items": { + "$ref": "#/definitions/ContactGroupDefinition" + } + } + } + }, + "ContactGroupNameList": { + "description": "Paged list of contact group names.", + "required": [ + "value" + ], + "type": "object", + "properties": { + "count": { + "format": "int64", + "description": "Total item count.", + "type": "integer" + }, + "nextLink": { + "description": "The Url of next result page.", + "type": "string" + }, + "value": { + "description": "Collection of items of type results.", + "type": "array", + "items": { + "type": "string" + } + } + } + }, + "DataPlaneAccountUpdateParameters": { + "description": "The account properties that can be updated through data plane.", + "type": "object", + "properties": { + "friendlyName": { + "description": "The friendly name for the azure resource.", + "type": "string" + } + } + }, + "Domain": { + "description": "Domain resource.", + "type": "object", + "properties": { + "containerType": { + "description": "Gets the container type.", + "enum": [ + "Domain", + "Collection" + ], + "type": "string", + "x-ms-enum": { + "name": "ContainerType", + "modelAsString": true + } + }, + "description": { + "description": "Gets or sets the description.", + "type": "string" + }, + "environment": { + "description": "Gets the environment of the domain.", + "enum": [ + "Prod", + "Test" + ], + "type": "string", + "x-ms-enum": { + "name": "DomainEnvironment", + "modelAsString": true + } + }, + "friendlyName": { + "description": "Gets or sets the friendly name of the domain.", + "type": "string" + }, + "identity": { + "$ref": "#/definitions/Identity", + "readOnly": true + }, + "mergeInfo": { + "$ref": "#/definitions/DomainMergeInfo", + "readOnly": true + }, + "name": { + "description": "Gets the name.", + "type": "string", + "readOnly": true + }, + "provisioningState": { + "description": "Gets the state of the provisioning.", + "enum": [ + "Unknown", + "Creating", + "Moving", + "Deleting", + "Failed", + "Succeeded" + ], + "type": "string", + "readOnly": true, + "x-ms-enum": { + "name": "DomainProvisioningState", + "modelAsString": true + } + }, + "systemData": { + "$ref": "#/definitions/SystemData" + } + } + }, + "DomainList": { + "description": "Paged list of domains.", + "required": [ + "value" + ], + "type": "object", + "properties": { + "count": { + "format": "int64", + "description": "Total item count.", + "type": "integer" + }, + "nextLink": { + "description": "The Url of next result page.", + "type": "string" + }, + "value": { + "description": "Collection of items of type results.", + "type": "array", + "items": { + "$ref": "#/definitions/Domain" + } + } + } + }, + "DomainMergeInfo": { + "description": "The public Domain Merge Info model.", + "type": "object", + "properties": { + "accountLocation": { + "description": "The account location of the source account in the merge operation.", + "type": "string", + "readOnly": true + }, + "accountName": { + "description": "The account name of the source account in the merge operation.", + "type": "string", + "readOnly": true + }, + "accountResourceGroupName": { + "description": "The resource group name of the source account in the merge operation.", + "type": "string", + "readOnly": true + }, + "accountSubscriptionId": { + "description": "The subscription id of the source account in the merge operation.", + "type": "string", + "readOnly": true + }, + "mergeStatus": { + "description": "The status of the merge operation.", + "enum": [ + "Succeeded", + "Failed", + "InProgress" + ], + "type": "string", + "readOnly": true, + "x-ms-enum": { + "name": "MergeStatus", + "modelAsString": true + } + } + } + }, + "EntityReference": { + "description": "Entity reference type.", + "type": "object", + "properties": { + "referenceName": { + "description": "Gets or sets the reference name.", + "type": "string" + }, + "type": { + "description": "Gets or sets the reference type property.", + "enum": [ + "Unknown", + "CollectionReference", + "ContactGroupDefinitionReference", + "DatasourceReference", + "ScanReference", + "AdaptiveScopeReference" + ], + "type": "string", + "x-ms-enum": { + "name": "EntityReferenceType", + "modelAsString": true + } + } + } + }, + "ErrorModel": { + "description": "Default error model", + "type": "object", + "properties": { + "code": { + "description": "Gets or sets the code.", + "type": "string", + "readOnly": true + }, + "details": { + "description": "Gets or sets the details.", + "type": "array", + "items": { + "$ref": "#/definitions/ErrorModel" + }, + "readOnly": true + }, + "message": { + "description": "Gets or sets the messages.", + "type": "string", + "readOnly": true + }, + "target": { + "description": "Gets or sets the target.", + "type": "string", + "readOnly": true + } + } + }, + "ErrorResponseModel": { + "description": "Default error response model", + "type": "object", + "properties": { + "error": { + "$ref": "#/definitions/ErrorModel" + } + } + }, + "FastRegex": { + "type": "object", + "properties": { + "maxDigits": { + "format": "int32", + "type": "integer" + }, + "maxLetters": { + "format": "int32", + "type": "integer" + }, + "minDashes": { + "format": "int32", + "type": "integer" + }, + "minDigits": { + "format": "int32", + "type": "integer" + }, + "minDigitsOrLetters": { + "format": "int32", + "type": "integer" + }, + "minDots": { + "format": "int32", + "type": "integer" + }, + "minHex": { + "format": "int32", + "type": "integer" + }, + "minLetters": { + "format": "int32", + "type": "integer" + }, + "minUnderscores": { + "format": "int32", + "type": "integer" + }, + "options": { + "format": "int32", + "type": "integer" + }, + "regexStr": { + "type": "string" + } + } + }, + "Filter": { + "required": [ + "name", + "path" + ], + "type": "object", + "properties": { + "createdBy": { + "default": "AzureDataCatalog", + "type": "string" + }, + "filterType": { + "enum": [ + "Pattern", + "Regex" + ], + "type": "string", + "x-ms-enum": { + "name": "FilterType", + "modelAsString": true + } + }, + "lastUpdatedTimestamp": { + "format": "int64", + "type": "integer" + }, + "modifiedBy": { + "default": "AzureDataCatalog", + "type": "string" + }, + "name": { + "type": "string" + }, + "path": { + "type": "string" + } + } + }, + "Identity": { + "description": "The Managed Identity of the resource", + "type": "object", + "properties": { + "principalId": { + "description": "Service principal object Id", + "type": "string", + "readOnly": true + }, + "tenantId": { + "description": "Tenant Id", + "type": "string", + "readOnly": true + }, + "type": { + "description": "Identity Type", + "enum": [ + "None", + "SystemAssigned", + "UserAssigned" + ], + "type": "string", + "x-ms-enum": { + "name": "ManagedIdentityType", + "modelAsString": true + } + }, + "userAssignedIdentities": { + "description": "User Assigned Identities", + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/UserAssignedIdentity" + } + } + } + }, + "IngestionStorage": { + "description": "Ingestion Storage Account Info", + "type": "object", + "properties": { + "id": { + "description": "Gets or sets the Id.", + "type": "string", + "readOnly": true + }, + "primaryEndpoint": { + "description": "Gets or sets the primary endpoint.", + "type": "string", + "readOnly": true + }, + "publicNetworkAccess": { + "description": "Gets or sets the public network access setting", + "enum": [ + "NotSpecified", + "Enabled", + "Disabled" + ], + "type": "string", + "x-ms-enum": { + "name": "PublicNetworkAccess", + "modelAsString": true + } + } + } + }, + "ManagedResources": { + "description": "The managed resources in customer subscription.", + "type": "object", + "properties": { + "eventHubNamespace": { + "description": "Gets the managed event hub namespace resource identifier.", + "type": "string", + "readOnly": true + }, + "resourceGroup": { + "description": "Gets the managed resource group resource identifier. This resource group will host resource dependencies for the account.", + "type": "string", + "readOnly": true + }, + "storageAccount": { + "description": "Gets the managed storage account resource identifier.", + "type": "string", + "readOnly": true + } + } + }, + "NormalizationRule": { + "type": "object", + "properties": { + "description": { + "type": "string" + }, + "disabled": { + "type": "boolean" + }, + "dynamicReplacement": { + "type": "boolean" + }, + "entityTypes": { + "type": "array", + "items": { + "type": "string" + } + }, + "lastUpdatedTimestamp": { + "format": "int64", + "type": "integer" + }, + "name": { + "type": "string" + }, + "regex": { + "$ref": "#/definitions/FastRegex" + }, + "replaceWith": { + "type": "string" + }, + "version": { + "format": "double", + "type": "number" + } + } + }, + "PathPatternExtractorConfig": { + "required": [ + "createdBy", + "enableDefaultPatterns" + ], + "type": "object", + "properties": { + "acceptedPatterns": { + "type": "array", + "items": { + "$ref": "#/definitions/Filter" + } + }, + "complexReplacers": { + "type": "array", + "items": { + "$ref": "#/definitions/ComplexReplacerConfig" + } + }, + "createdBy": { + "type": "string" + }, + "enableDefaultPatterns": { + "type": "boolean" + }, + "lastUpdatedTimestamp": { + "format": "int64", + "type": "integer" + }, + "modifiedBy": { + "default": "AzureDataCatalog", + "type": "string" + }, + "normalizationRules": { + "type": "array", + "items": { + "$ref": "#/definitions/NormalizationRule" + } + }, + "regexReplacers": { + "type": "array", + "items": { + "$ref": "#/definitions/RegexReplacer" + } + }, + "rejectedPatterns": { + "type": "array", + "items": { + "$ref": "#/definitions/Filter" + } + }, + "scopedRules": { + "type": "array", + "items": { + "$ref": "#/definitions/ScopedRule" + } + }, + "version": { + "format": "int32", + "default": 0, + "type": "integer" + } + } + }, + "PrivateEndpoint": { + "description": "A private endpoint class.", + "type": "object", + "properties": { + "id": { + "description": "The private endpoint identifier.", + "type": "string" + } + } + }, + "PrivateEndpointConnection": { + "description": "A private endpoint connection class.", + "type": "object", + "properties": { + "id": { + "description": "Gets or sets the identifier.", + "type": "string", + "readOnly": true + }, + "name": { + "description": "Gets or sets the name.", + "type": "string", + "readOnly": true + }, + "properties": { + "$ref": "#/definitions/PrivateEndpointConnectionProperties" + }, + "systemData": { + "$ref": "#/definitions/SystemData" + }, + "type": { + "description": "Gets or sets the type.", + "type": "string", + "readOnly": true + } + } + }, + "PrivateEndpointConnectionProperties": { + "description": "A private endpoint connection properties class.", + "type": "object", + "properties": { + "privateEndpoint": { + "$ref": "#/definitions/PrivateEndpoint" + }, + "privateLinkServiceConnectionState": { + "$ref": "#/definitions/PrivateLinkServiceConnectionState" + }, + "provisioningState": { + "description": "The provisioning state.", + "type": "string", + "readOnly": true + } + } + }, + "PrivateLinkServiceConnectionState": { + "description": "The private link service connection state.", + "type": "object", + "properties": { + "actionsRequired": { + "description": "The required actions.", + "type": "string" + }, + "description": { + "description": "The description.", + "type": "string" + }, + "status": { + "description": "The status.", + "enum": [ + "Unknown", + "Pending", + "Approved", + "Rejected", + "Disconnected" + ], + "type": "string", + "x-ms-enum": { + "name": "PrivateEndpointConnectionStatus", + "modelAsString": true + } + } + } + }, + "RegexReplacer": { + "required": [ + "disabled", + "name" + ], + "type": "object", + "properties": { + "condition": { + "type": "string" + }, + "createdBy": { + "default": "AzureDataCatalog", + "type": "string" + }, + "description": { + "type": "string" + }, + "disabled": { + "type": "boolean" + }, + "disableRecursiveReplacerApplication": { + "type": "boolean" + }, + "doNotReplaceRegex": { + "$ref": "#/definitions/FastRegex" + }, + "lastUpdatedTimestamp": { + "format": "int64", + "type": "integer" + }, + "modifiedBy": { + "default": "AzureDataCatalog", + "type": "string" + }, + "name": { + "type": "string" + }, + "regex": { + "$ref": "#/definitions/FastRegex" + }, + "replaceWith": { + "type": "string" + } + } + }, + "ResourceSetRuleConfig": { + "description": "ResourceSetRuleConfig implementation class.", + "type": "object", + "properties": { + "advancedResourceSet": { + "$ref": "#/definitions/AdvancedResourceSet" + }, + "name": { + "description": "The name of the rule", + "type": "string", + "readOnly": true + }, + "pathPatternConfig": { + "$ref": "#/definitions/PathPatternExtractorConfig" + } + } + }, + "ResourceSetRuleConfigList": { + "description": "Paged list of account resources", + "required": [ + "value" + ], + "type": "object", + "properties": { + "count": { + "format": "int64", + "description": "Total item count.", + "type": "integer" + }, + "nextLink": { + "description": "The Url of next result page.", + "type": "string" + }, + "value": { + "description": "Collection of items of type results.", + "type": "array", + "items": { + "$ref": "#/definitions/ResourceSetRuleConfig" + } + } + } + }, + "Rule": { + "required": [ + "qualifiedName" + ], + "type": "object", + "properties": { + "displayName": { + "type": "string" + }, + "isResourceSet": { + "default": true, + "type": "boolean" + }, + "lastUpdatedTimestamp": { + "format": "int64", + "type": "integer" + }, + "name": { + "type": "string" + }, + "qualifiedName": { + "type": "string" + } + } + }, + "ScopedRule": { + "required": [ + "bindingUrl", + "storeType" + ], + "type": "object", + "properties": { + "bindingUrl": { + "type": "string" + }, + "rules": { + "type": "array", + "items": { + "$ref": "#/definitions/Rule" + } + }, + "storeType": { + "type": "string" + } + } + }, + "SystemData": { + "description": "Metadata pertaining to creation and last modification of the resource.", + "type": "object", + "properties": { + "createdAt": { + "format": "date-time", + "description": "The timestamp of resource creation (UTC).", + "type": "string", + "readOnly": true + }, + "createdBy": { + "description": "The identity that created the resource.", + "type": "string", + "readOnly": true + }, + "createdByType": { + "description": "The type of identity that created the resource.", + "enum": [ + "User", + "Application", + "ManagedIdentity", + "Key" + ], + "type": "string", + "readOnly": true, + "x-ms-enum": { + "name": "IdentityType", + "modelAsString": true + } + }, + "lastModifiedAt": { + "format": "date-time", + "description": "The timestamp of the last modification the resource (UTC).", + "type": "string", + "readOnly": true + }, + "lastModifiedBy": { + "description": "The identity that last modified the resource.", + "type": "string", + "readOnly": true + }, + "lastModifiedByType": { + "description": "The type of identity that last modified the resource.", + "enum": [ + "User", + "Application", + "ManagedIdentity", + "Key" + ], + "type": "string", + "readOnly": true, + "x-ms-enum": { + "name": "IdentityType", + "modelAsString": true + } + } + } + }, + "UserAssignedIdentity": { + "description": "Uses client ID and Principal ID", + "type": "object", + "properties": { + "clientId": { + "description": "Gets or Sets Client ID", + "type": "string", + "readOnly": true + }, + "principalId": { + "description": "Gets or Sets Principal ID", + "type": "string", + "readOnly": true + } + } + } + }, + "parameters": { + "Endpoint": { + "in": "path", + "name": "Endpoint", + "description": "The endpoint. Example: https://{accountName}.purview.azure.com", + "required": true, + "type": "string", + "x-ms-parameter-location": "client", + "x-ms-skip-url-encoding": true + }, + "api-version": { + "in": "query", + "name": "api-version", + "description": "The api version to use.", + "required": true, + "type": "string", + "x-ms-client-name": "ApiVersion" + } + }, + "securityDefinitions": { + "azure_auth": { + "type": "oauth2", + "flow": "implicit", + "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", + "scopes": { + "user_impersonation": "impersonate your user account" + }, + "description": "Azure Active Directory OAuth2 Flow." + } + } +} diff --git a/specification/purview/data-plane/Azure.Analytics.Purview.Account/preview/2023-10-01-preview/examples/Accounts_GetAccessKeys.json b/specification/purview/data-plane/Azure.Analytics.Purview.Account/preview/2023-10-01-preview/examples/Accounts_GetAccessKeys.json new file mode 100644 index 000000000000..ff9b963d4b1f --- /dev/null +++ b/specification/purview/data-plane/Azure.Analytics.Purview.Account/preview/2023-10-01-preview/examples/Accounts_GetAccessKeys.json @@ -0,0 +1,20 @@ +{ + "parameters": { + "api-version": "2023-10-01-preview" + }, + "responses": { + "200": { + "headers": { + "Date": "Wed, 13 Sep 2017 18:04:32 GMT", + "x-ms-request-id": "d5496da4-9c52-402f-b067-83cc9ddea888", + "X-Content-Type-Options": "nosniff", + "x-ms-ratelimit-remaining-tenant-reads": "14999", + "x-ms-correlation-request-id": "25c78f97-0b0a-4fe9-ad39-883a482265cd" + }, + "body": { + "atlasKafkaPrimaryEndpoint": "Endpoint=sb://fake_objectId.servicebus.windows.net/;SharedAccessKeyName=AlternateSharedAccessKey;SharedAccessKey=ASDASasdfmasdf123412341234=", + "atlasKafkaSecondaryEndpoint": "Endpoint=sb://fake_objectId.servicebus.windows.net/;SharedAccessKeyName=AlternateSharedAccessKey;SharedAccessKey=BSDASasdfmasdf123412341234=" + } + } + } +} diff --git a/specification/purview/data-plane/Azure.Analytics.Purview.Account/preview/2023-10-01-preview/examples/Accounts_GetAccountProperties.json b/specification/purview/data-plane/Azure.Analytics.Purview.Account/preview/2023-10-01-preview/examples/Accounts_GetAccountProperties.json new file mode 100644 index 000000000000..a46a33870943 --- /dev/null +++ b/specification/purview/data-plane/Azure.Analytics.Purview.Account/preview/2023-10-01-preview/examples/Accounts_GetAccountProperties.json @@ -0,0 +1,81 @@ +{ + "parameters": { + "api-version": "2023-10-01-preview" + }, + "responses": { + "200": { + "headers": { + "Date": "Wed, 13 Sep 2017 18:04:32 GMT", + "x-ms-request-id": "d5496da4-9c52-402f-b067-83cc9ddea888", + "X-Content-Type-Options": "nosniff", + "x-ms-ratelimit-remaining-tenant-reads": "14999", + "x-ms-correlation-request-id": "25c78f97-0b0a-4fe9-ad39-883a482265cd" + }, + "body": { + "location": "West US 2", + "id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/SampleResourceGroup/providers/Microsoft.ProjectBabylon/accounts/account1", + "name": "account1", + "type": "Microsoft.ProjectBabylon/accounts", + "sku": { + "name": "Standard", + "capacity": 1 + }, + "systemData": { + "createdBy": "client-name", + "createdByType": "User", + "createdAt": "2019-11-22T18:39:58.6929344Z", + "lastModifiedBy": "client-name", + "lastModifiedByType": "User", + "lastModifiedAt": "2021-03-16T23:24:34.3430059Z" + }, + "properties": { + "friendlyName": "friendly-account1", + "createdBy": "client-name", + "createdByObjectId": "client-objectId", + "createdAt": "2019-11-22T18:39:58.6929344Z", + "provisioningState": "Succeeded", + "endpoints": { + "catalog": "https://account1.catalog.babylon.azure-test.com", + "scan": "https://account1.scan.babylon.azure-test.com" + }, + "privateEndpointConnections": [ + { + "properties": { + "provisioningState": "Succeeded", + "privateEndpoint": { + "id": "/subscriptions/baca8a88-4527-4c35-a13e-b2775ce0d7fc/resourceGroups/nrpResourceGroupName/providers/Microsoft.Network/privateEndpoints/peName" + }, + "privateLinkServiceConnectionState": { + "status": "Pending", + "description": "Please approve my connection, thanks.", + "actionsRequired": "None" + } + }, + "id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/SampleResourceGroup/providers/Microsoft.ProjectBabylon/accounts/account1/privateEndpointConnections/peName-8536c337-7b36-4d67-a7ce-081655baf59e", + "name": "peName-8536c337-7b36-4d67-a7ce-081655baf59e", + "type": "Microsoft.ProjectBabylon/accounts/privateEndpointConnections" + } + ], + "managedResources": { + "resourceGroup": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/managed-rg-mwjotkl", + "storageAccount": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/managed-rg-mwjotkl/providers/Microsoft.Storage/storageAccounts/scanwestustzaagzr", + "eventHubNamespace": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/managed-rg-mwjotkl/providers/Microsoft.EventHub/namespaces/atlas-westusdddnbtp" + }, + "ingestionStorage": { + "id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/ingestion-storage-rg-mwjotkl", + "primaryEndpoint": "https://ingestioneastusddnpkar.z31.blob.storage.azure.net/", + "publicNetworkAccess": "Enabled" + }, + "mergeInfo": { + "accountLocation": "westus2", + "accountName": "account2", + "accountResourceGroupName": "SampleResourceGroup", + "accountSubscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", + "typeOfAccount": "Secondary", + "mergeStatus": "Succeeded" + } + } + } + } + } +} diff --git a/specification/purview/data-plane/Azure.Analytics.Purview.Account/preview/2023-10-01-preview/examples/Accounts_RegenerateAccessKeys.json b/specification/purview/data-plane/Azure.Analytics.Purview.Account/preview/2023-10-01-preview/examples/Accounts_RegenerateAccessKeys.json new file mode 100644 index 000000000000..b9f064930527 --- /dev/null +++ b/specification/purview/data-plane/Azure.Analytics.Purview.Account/preview/2023-10-01-preview/examples/Accounts_RegenerateAccessKeys.json @@ -0,0 +1,23 @@ +{ + "parameters": { + "api-version": "2023-10-01-preview", + "body": { + "keyType": "PrimaryAtlasKafkaKey" + } + }, + "responses": { + "200": { + "headers": { + "Date": "Wed, 13 Sep 2017 18:04:32 GMT", + "x-ms-request-id": "d5496da4-9c52-402f-b067-83cc9ddea888", + "X-Content-Type-Options": "nosniff", + "x-ms-ratelimit-remaining-tenant-reads": "14999", + "x-ms-correlation-request-id": "25c78f97-0b0a-4fe9-ad39-883a482265cd" + }, + "body": { + "atlasKafkaPrimaryEndpoint": "Endpoint=sb://fake_objectId.servicebus.windows.net/;SharedAccessKeyName=RootManageSharedAccessKey;SharedAccessKey=ASDASasdfmasdf123412341234=", + "atlasKafkaSecondaryEndpoint": "Endpoint=sb://fake_objectId.servicebus.windows.net/;SharedAccessKeyName=AlternateSharedAccessKey;SharedAccessKey=BSDASasdfmasdf123412341234=" + } + } + } +} diff --git a/specification/purview/data-plane/Azure.Analytics.Purview.Account/preview/2023-10-01-preview/examples/Accounts_UpdateAccountProperties.json b/specification/purview/data-plane/Azure.Analytics.Purview.Account/preview/2023-10-01-preview/examples/Accounts_UpdateAccountProperties.json new file mode 100644 index 000000000000..45f824312f8b --- /dev/null +++ b/specification/purview/data-plane/Azure.Analytics.Purview.Account/preview/2023-10-01-preview/examples/Accounts_UpdateAccountProperties.json @@ -0,0 +1,70 @@ +{ + "parameters": { + "accountName": "account1", + "api-version": "2023-10-01-preview", + "body": { + "friendlyName": "friendly-account1" + } + }, + "responses": { + "200": { + "headers": { + "Date": "Wed, 13 Sep 2017 18:04:32 GMT", + "x-ms-request-id": "d5496da4-9c52-402f-b067-83cc9ddea888", + "X-Content-Type-Options": "nosniff", + "x-ms-ratelimit-remaining-tenant-reads": "14999", + "x-ms-correlation-request-id": "25c78f97-0b0a-4fe9-ad39-883a482265cd" + }, + "body": { + "location": "westus2", + "id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/SampleResourceGroup/providers/Microsoft.ProjectBabylon/accounts/account1", + "name": "account1", + "type": "Microsoft.ProjectBabylon/accounts", + "sku": { + "name": "Standard", + "capacity": 1 + }, + "systemData": { + "createdBy": "client-name", + "createdByType": "User", + "createdAt": "2019-11-22T18:39:58.6929344Z", + "lastModifiedBy": "client-name", + "lastModifiedByType": "User", + "lastModifiedAt": "2021-03-16T23:24:34.3430059Z" + }, + "properties": { + "friendlyName": "friendly-account1", + "createdBy": "client-name", + "createdByObjectId": "client-objectId", + "createdAt": "2019-11-22T18:39:58.6929344Z", + "provisioningState": "Succeeded", + "endpoints": { + "catalog": "https://account2.catalog.babylon.azure-test.com", + "scan": "https://account2.scan.babylon.azure-test.com" + }, + "managedResources": { + "resourceGroup": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/managed-rg-mwjotkl", + "storageAccount": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/managed-rg-mwjotkl/providers/Microsoft.Storage/storageAccounts/scanwestustzaagzr", + "eventHubNamespace": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/managed-rg-mwjotkl/providers/Microsoft.EventHub/namespaces/atlas-westusdddnbtp" + }, + "ingestionStorage": { + "id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/ingestion-storage-rg-mwjotkl", + "primaryEndpoint": "https://ingestioneastusddnpkar.z31.blob.storage.azure.net/", + "publicNetworkAccess": "Enabled" + }, + "mergeInfo": { + "accountLocation": "westus2", + "accountName": "account2", + "accountResourceGroupName": "SampleResourceGroup", + "accountSubscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", + "typeOfAccount": "Secondary", + "mergeStatus": "Succeeded" + } + }, + "tags": { + "tag": "tag value." + } + } + } + } +} diff --git a/specification/purview/data-plane/Azure.Analytics.Purview.Account/preview/2023-10-01-preview/examples/Collections_CreateOrUpdateCollection.json b/specification/purview/data-plane/Azure.Analytics.Purview.Account/preview/2023-10-01-preview/examples/Collections_CreateOrUpdateCollection.json new file mode 100644 index 000000000000..60de720142e8 --- /dev/null +++ b/specification/purview/data-plane/Azure.Analytics.Purview.Account/preview/2023-10-01-preview/examples/Collections_CreateOrUpdateCollection.json @@ -0,0 +1,32 @@ +{ + "parameters": { + "collectionName": "myCollection1", + "api-version": "2023-10-01-preview", + "body": { + "friendlyName": "My Collection 1", + "parentCollection": { + "referenceName": "myParentCollection1" + } + } + }, + "responses": { + "200": { + "headers": { + "Date": "Wed, 13 Sep 2017 18:04:32 GMT", + "x-ms-request-id": "d5496da4-9c52-402f-b067-83cc9ddea888", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "25c78f97-0b0a-4fe9-ad39-883a482265cd" + }, + "body": { + "name": "myCollection1", + "friendlyName": "My Collection 1", + "parentCollection": { + "type": "CollectionReference", + "referenceName": "myParentCollection1" + }, + "collectionProvisioningState": "Succeeded", + "domain": "myDomain1" + } + } + } +} diff --git a/specification/purview/data-plane/Azure.Analytics.Purview.Account/preview/2023-10-01-preview/examples/Collections_DeleteCollection.json b/specification/purview/data-plane/Azure.Analytics.Purview.Account/preview/2023-10-01-preview/examples/Collections_DeleteCollection.json new file mode 100644 index 000000000000..3cbf47d6cf76 --- /dev/null +++ b/specification/purview/data-plane/Azure.Analytics.Purview.Account/preview/2023-10-01-preview/examples/Collections_DeleteCollection.json @@ -0,0 +1,16 @@ +{ + "parameters": { + "collectionName": "myCollection1", + "api-version": "2023-10-01-preview" + }, + "responses": { + "204": { + "headers": { + "Date": "Wed, 13 Sep 2017 18:04:32 GMT", + "x-ms-request-id": "d5496da4-9c52-402f-b067-83cc9ddea888", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "25c78f97-0b0a-4fe9-ad39-883a482265cd" + } + } + } +} diff --git a/specification/purview/data-plane/Azure.Analytics.Purview.Account/preview/2023-10-01-preview/examples/Collections_GetCollection.json b/specification/purview/data-plane/Azure.Analytics.Purview.Account/preview/2023-10-01-preview/examples/Collections_GetCollection.json new file mode 100644 index 000000000000..707e21086e1b --- /dev/null +++ b/specification/purview/data-plane/Azure.Analytics.Purview.Account/preview/2023-10-01-preview/examples/Collections_GetCollection.json @@ -0,0 +1,26 @@ +{ + "parameters": { + "collectionName": "myCollection1", + "api-version": "2023-10-01-preview" + }, + "responses": { + "200": { + "headers": { + "Date": "Wed, 13 Sep 2017 18:04:32 GMT", + "x-ms-request-id": "d5496da4-9c52-402f-b067-83cc9ddea888", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "25c78f97-0b0a-4fe9-ad39-883a482265cd" + }, + "body": { + "name": "mycollection1", + "friendlyName": "My Collection 1", + "parentCollection": { + "type": "CollectionReference", + "referenceName": "myParentCollection1" + }, + "collectionProvisioningState": "Succeeded", + "domain": "mydomain1" + } + } + } +} diff --git a/specification/purview/data-plane/Azure.Analytics.Purview.Account/preview/2023-10-01-preview/examples/Collections_GetCollectionPath.json b/specification/purview/data-plane/Azure.Analytics.Purview.Account/preview/2023-10-01-preview/examples/Collections_GetCollectionPath.json new file mode 100644 index 000000000000..28c9ff789eb0 --- /dev/null +++ b/specification/purview/data-plane/Azure.Analytics.Purview.Account/preview/2023-10-01-preview/examples/Collections_GetCollectionPath.json @@ -0,0 +1,27 @@ +{ + "parameters": { + "collectionName": "myCollection1", + "api-version": "2023-10-01-preview" + }, + "responses": { + "200": { + "headers": { + "Date": "Wed, 13 Sep 2017 18:04:32 GMT", + "x-ms-request-id": "d5496da4-9c52-402f-b067-83cc9ddea888", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "25c78f97-0b0a-4fe9-ad39-883a482265cd" + }, + "body": { + "parentNameChain": [ + "myDomain1", + "myParentCollection1" + ], + "parentFriendlyNameChain": [ + "Test Account Friendly Name", + "My Domain 1", + "My Parent Collection 1" + ] + } + } + } +} diff --git a/specification/purview/data-plane/Azure.Analytics.Purview.Account/preview/2023-10-01-preview/examples/Collections_ListChildCollectionNames.json b/specification/purview/data-plane/Azure.Analytics.Purview.Account/preview/2023-10-01-preview/examples/Collections_ListChildCollectionNames.json new file mode 100644 index 000000000000..61d2c4c9dfe7 --- /dev/null +++ b/specification/purview/data-plane/Azure.Analytics.Purview.Account/preview/2023-10-01-preview/examples/Collections_ListChildCollectionNames.json @@ -0,0 +1,33 @@ +{ + "parameters": { + "collectionName": "myParentCollection1", + "api-version": "2023-10-01-preview" + }, + "responses": { + "200": { + "headers": { + "Date": "Wed, 13 Sep 2017 18:04:32 GMT", + "x-ms-request-id": "d5496da4-9c52-402f-b067-83cc9ddea888", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "25c78f97-0b0a-4fe9-ad39-883a482265cd" + }, + "body": { + "value": [ + { + "name": "myCollection1", + "friendlyName": "My Collection 1" + }, + { + "name": "mycollection2", + "friendlyName": "Some collection" + }, + { + "name": "myParentCollection2", + "friendlyName": "Some other parent collection" + } + ], + "count": 3 + } + } + } +} diff --git a/specification/purview/data-plane/Azure.Analytics.Purview.Account/preview/2023-10-01-preview/examples/Collections_ListCollections.json b/specification/purview/data-plane/Azure.Analytics.Purview.Account/preview/2023-10-01-preview/examples/Collections_ListCollections.json new file mode 100644 index 000000000000..b763aeec24a4 --- /dev/null +++ b/specification/purview/data-plane/Azure.Analytics.Purview.Account/preview/2023-10-01-preview/examples/Collections_ListCollections.json @@ -0,0 +1,35 @@ +{ + "parameters": { + "api-version": "2023-10-01-preview" + }, + "responses": { + "200": { + "headers": { + "Date": "Wed, 13 Sep 2017 18:04:32 GMT", + "x-ms-request-id": "d5496da4-9c52-402f-b067-83cc9ddea888", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "25c78f97-0b0a-4fe9-ad39-883a482265cd" + }, + "body": { + "value": [ + { + "name": "mycollection1", + "friendlyName": "My Collection 1", + "parentCollection": { + "type": "CollectionReference", + "referenceName": "myParentCollection1" + }, + "collectionProvisioningState": "Succeeded", + "domain": "mydomain1" + }, + { + "name": "myParentCollection1", + "friendlyName": "My Parent Collection 1", + "collectionProvisioningState": "Succeeded", + "domain": "mydomain1" + } + ] + } + } + } +} diff --git a/specification/purview/data-plane/Azure.Analytics.Purview.Account/preview/2023-10-01-preview/examples/ContactAssignments_CreateOrUpdateContactAssignment.json b/specification/purview/data-plane/Azure.Analytics.Purview.Account/preview/2023-10-01-preview/examples/ContactAssignments_CreateOrUpdateContactAssignment.json new file mode 100644 index 000000000000..c9e791ace926 --- /dev/null +++ b/specification/purview/data-plane/Azure.Analytics.Purview.Account/preview/2023-10-01-preview/examples/ContactAssignments_CreateOrUpdateContactAssignment.json @@ -0,0 +1,39 @@ +{ + "parameters": { + "contactAssignmentId": "92da5bf4-f7ed-4118-bce7-df3807017cce", + "api-version": "2023-10-01-preview", + "body": { + "principalId": "12341234-1234-4379-8609-9572491ea3e0", + "contactGroup": { + "type": "ContactGroupDefinitionReference", + "referenceName": "experts" + }, + "scope": { + "type": "CollectionReference", + "referenceName": "coll1" + } + } + }, + "responses": { + "200": { + "headers": { + "Date": "Wed, 13 Sep 2017 18:04:32 GMT", + "x-ms-request-id": "d5496da4-9c52-402f-b067-83cc9ddea888", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "25c78f97-0b0a-4fe9-ad39-883a482265cd" + }, + "body": { + "assignmentId": "92da5bf4-f7ed-4118-bce7-df3807017cce", + "principalId": "12341234-1234-4379-8609-9572491ea3e0", + "contactGroup": { + "type": "ContactGroupDefinitionReference", + "referenceName": "experts" + }, + "scope": { + "type": "CollectionReference", + "referenceName": "coll1" + } + } + } + } +} diff --git a/specification/purview/data-plane/Azure.Analytics.Purview.Account/preview/2023-10-01-preview/examples/ContactAssignments_DeleteContactAssignment.json b/specification/purview/data-plane/Azure.Analytics.Purview.Account/preview/2023-10-01-preview/examples/ContactAssignments_DeleteContactAssignment.json new file mode 100644 index 000000000000..d5c0c75c359e --- /dev/null +++ b/specification/purview/data-plane/Azure.Analytics.Purview.Account/preview/2023-10-01-preview/examples/ContactAssignments_DeleteContactAssignment.json @@ -0,0 +1,16 @@ +{ + "parameters": { + "contactAssignmentId": "92da5bf4-f7ed-4118-bce7-df3807017cce", + "api-version": "2023-10-01-preview" + }, + "responses": { + "204": { + "headers": { + "Date": "Wed, 13 Sep 2017 18:04:32 GMT", + "x-ms-request-id": "d5496da4-9c52-402f-b067-83cc9ddea888", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "25c78f97-0b0a-4fe9-ad39-883a482265cd" + } + } + } +} diff --git a/specification/purview/data-plane/Azure.Analytics.Purview.Account/preview/2023-10-01-preview/examples/ContactAssignments_GetContactAssignment.json b/specification/purview/data-plane/Azure.Analytics.Purview.Account/preview/2023-10-01-preview/examples/ContactAssignments_GetContactAssignment.json new file mode 100644 index 000000000000..4e47a985d18e --- /dev/null +++ b/specification/purview/data-plane/Azure.Analytics.Purview.Account/preview/2023-10-01-preview/examples/ContactAssignments_GetContactAssignment.json @@ -0,0 +1,28 @@ +{ + "parameters": { + "contactAssignmentId": "92da5bf4-f7ed-4118-bce7-df3807017cce", + "api-version": "2023-10-01-preview" + }, + "responses": { + "200": { + "headers": { + "Date": "Wed, 13 Sep 2017 18:04:32 GMT", + "x-ms-request-id": "d5496da4-9c52-402f-b067-83cc9ddea888", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "25c78f97-0b0a-4fe9-ad39-883a482265cd" + }, + "body": { + "assignmentId": "92da5bf4-f7ed-4118-bce7-df3807017cce", + "principalId": "12341234-1234-4379-8609-9572491ea3e0", + "contactGroup": { + "type": "ContactGroupDefinitionReference", + "referenceName": "experts" + }, + "scope": { + "type": "CollectionReference", + "referenceName": "coll1" + } + } + } + } +} diff --git a/specification/purview/data-plane/Azure.Analytics.Purview.Account/preview/2023-10-01-preview/examples/ContactAssignments_ListContactAssignments.json b/specification/purview/data-plane/Azure.Analytics.Purview.Account/preview/2023-10-01-preview/examples/ContactAssignments_ListContactAssignments.json new file mode 100644 index 000000000000..6715a0b09642 --- /dev/null +++ b/specification/purview/data-plane/Azure.Analytics.Purview.Account/preview/2023-10-01-preview/examples/ContactAssignments_ListContactAssignments.json @@ -0,0 +1,34 @@ +{ + "parameters": { + "scope": "collection1", + "contactGroupDefinition": "Experts", + "referenceType": "CollectionReference", + "api-version": "2023-10-01-preview" + }, + "responses": { + "200": { + "headers": { + "Date": "Wed, 13 Sep 2017 18:04:32 GMT", + "x-ms-request-id": "d5496da4-9c52-402f-b067-83cc9ddea888", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "25c78f97-0b0a-4fe9-ad39-883a482265cd" + }, + "body": { + "value": [ + { + "assignmentId": "92da5bf4-f7ed-4118-bce7-df3807017cce", + "principalId": "12341234-1234-4379-8609-9572491ea3e0", + "contactGroup": { + "type": "ContactGroupDefinitionReference", + "referenceName": "experts" + }, + "scope": { + "type": "CollectionReference", + "referenceName": "coll1" + } + } + ] + } + } + } +} diff --git a/specification/purview/data-plane/Azure.Analytics.Purview.Account/preview/2023-10-01-preview/examples/ContactAssignments_ListScopedContactGroupNames.json b/specification/purview/data-plane/Azure.Analytics.Purview.Account/preview/2023-10-01-preview/examples/ContactAssignments_ListScopedContactGroupNames.json new file mode 100644 index 000000000000..bf6cf4cc0509 --- /dev/null +++ b/specification/purview/data-plane/Azure.Analytics.Purview.Account/preview/2023-10-01-preview/examples/ContactAssignments_ListScopedContactGroupNames.json @@ -0,0 +1,24 @@ +{ + "parameters": { + "scope": "collection1", + "referenceType": "CollectionReference", + "api-version": "2023-10-01-preview" + }, + "responses": { + "200": { + "headers": { + "Date": "Wed, 13 Sep 2017 18:04:32 GMT", + "x-ms-request-id": "d5496da4-9c52-402f-b067-83cc9ddea888", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "25c78f97-0b0a-4fe9-ad39-883a482265cd" + }, + "body": { + "value": [ + "experts", + "reviewers" + ], + "count": 2 + } + } + } +} diff --git a/specification/purview/data-plane/Azure.Analytics.Purview.Account/preview/2023-10-01-preview/examples/ContactGroupDefinitions_CreateOrUpdateContactGroupDefinition.json b/specification/purview/data-plane/Azure.Analytics.Purview.Account/preview/2023-10-01-preview/examples/ContactGroupDefinitions_CreateOrUpdateContactGroupDefinition.json new file mode 100644 index 000000000000..20b51cac9783 --- /dev/null +++ b/specification/purview/data-plane/Azure.Analytics.Purview.Account/preview/2023-10-01-preview/examples/ContactGroupDefinitions_CreateOrUpdateContactGroupDefinition.json @@ -0,0 +1,24 @@ +{ + "parameters": { + "contactGroupDefinitionName": "myOwnerGroup1", + "api-version": "2023-10-01-preview", + "body": { + "description": "People to contact for data security." + } + }, + "responses": { + "200": { + "headers": { + "Date": "Wed, 13 Sep 2017 18:04:32 GMT", + "x-ms-request-id": "d5496da4-9c52-402f-b067-83cc9ddea888", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "25c78f97-0b0a-4fe9-ad39-883a482265cd" + }, + "body": { + "name": "myOwnerGroup1", + "description": "People to contact for data security.", + "contactGroupType": "Custom" + } + } + } +} diff --git a/specification/purview/data-plane/Azure.Analytics.Purview.Account/preview/2023-10-01-preview/examples/ContactGroupDefinitions_DeleteContactGroupDefinition.json b/specification/purview/data-plane/Azure.Analytics.Purview.Account/preview/2023-10-01-preview/examples/ContactGroupDefinitions_DeleteContactGroupDefinition.json new file mode 100644 index 000000000000..b59ad17e8844 --- /dev/null +++ b/specification/purview/data-plane/Azure.Analytics.Purview.Account/preview/2023-10-01-preview/examples/ContactGroupDefinitions_DeleteContactGroupDefinition.json @@ -0,0 +1,16 @@ +{ + "parameters": { + "contactGroupDefinitionName": "myOwnerGroup1", + "api-version": "2023-10-01-preview" + }, + "responses": { + "204": { + "headers": { + "Date": "Wed, 13 Sep 2017 18:04:32 GMT", + "x-ms-request-id": "d5496da4-9c52-402f-b067-83cc9ddea888", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "25c78f97-0b0a-4fe9-ad39-883a482265cd" + } + } + } +} diff --git a/specification/purview/data-plane/Azure.Analytics.Purview.Account/preview/2023-10-01-preview/examples/ContactGroupDefinitions_GetContactGroupDefinition.json b/specification/purview/data-plane/Azure.Analytics.Purview.Account/preview/2023-10-01-preview/examples/ContactGroupDefinitions_GetContactGroupDefinition.json new file mode 100644 index 000000000000..5dc064a732d2 --- /dev/null +++ b/specification/purview/data-plane/Azure.Analytics.Purview.Account/preview/2023-10-01-preview/examples/ContactGroupDefinitions_GetContactGroupDefinition.json @@ -0,0 +1,21 @@ +{ + "parameters": { + "contactGroupDefinitionName": "myOwnerGroup1", + "api-version": "2023-10-01-preview" + }, + "responses": { + "200": { + "headers": { + "Date": "Wed, 13 Sep 2017 18:04:32 GMT", + "x-ms-request-id": "d5496da4-9c52-402f-b067-83cc9ddea888", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "25c78f97-0b0a-4fe9-ad39-883a482265cd" + }, + "body": { + "name": "myOwnerGroup1", + "description": "People to contact for data security.", + "contactGroupType": "Custom" + } + } + } +} diff --git a/specification/purview/data-plane/Azure.Analytics.Purview.Account/preview/2023-10-01-preview/examples/ContactGroupDefinitions_ListContactGroupDefinitions.json b/specification/purview/data-plane/Azure.Analytics.Purview.Account/preview/2023-10-01-preview/examples/ContactGroupDefinitions_ListContactGroupDefinitions.json new file mode 100644 index 000000000000..86c705a3005c --- /dev/null +++ b/specification/purview/data-plane/Azure.Analytics.Purview.Account/preview/2023-10-01-preview/examples/ContactGroupDefinitions_ListContactGroupDefinitions.json @@ -0,0 +1,24 @@ +{ + "parameters": { + "api-version": "2023-10-01-preview" + }, + "responses": { + "200": { + "headers": { + "Date": "Wed, 13 Sep 2017 18:04:32 GMT", + "x-ms-request-id": "d5496da4-9c52-402f-b067-83cc9ddea888", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "25c78f97-0b0a-4fe9-ad39-883a482265cd" + }, + "body": { + "value": [ + { + "name": "myOwnerGroup1", + "description": "People to contact for data security.", + "contactGroupType": "Custom" + } + ] + } + } + } +} diff --git a/specification/purview/data-plane/Azure.Analytics.Purview.Account/preview/2023-10-01-preview/examples/Domains_GetDomain.json b/specification/purview/data-plane/Azure.Analytics.Purview.Account/preview/2023-10-01-preview/examples/Domains_GetDomain.json new file mode 100644 index 000000000000..6f9bb258582a --- /dev/null +++ b/specification/purview/data-plane/Azure.Analytics.Purview.Account/preview/2023-10-01-preview/examples/Domains_GetDomain.json @@ -0,0 +1,39 @@ +{ + "parameters": { + "domainName": "myDomain1", + "api-version": "2023-10-01-preview" + }, + "responses": { + "200": { + "headers": { + "Date": "Wed, 13 Sep 2017 18:04:32 GMT", + "x-ms-request-id": "d5496da4-9c52-402f-b067-83cc9ddea888", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "25c78f97-0b0a-4fe9-ad39-883a482265cd" + }, + "body": { + "name": "myDomain1", + "friendlyName": "My Domain 1", + "description": "Sample description of myDomain1", + "systemData": { + "createdBy": "client-name", + "createdByType": "User", + "createdAt": "2019-11-22T18:39:58.6929344Z", + "lastModifiedBy": "client-name", + "lastModifiedByType": "User", + "lastModifiedAt": "2021-03-16T23:24:34.3430059Z" + }, + "provisioningState": "Succeeded", + "containerType": "Domain", + "environment": "Prod", + "mergeInfo": { + "accountLocation": "westus2", + "accountName": "account2", + "accountResourceGroupName": "SampleResourceGroup", + "accountSubscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", + "mergeStatus": "Succeeded" + } + } + } + } +} diff --git a/specification/purview/data-plane/Azure.Analytics.Purview.Account/preview/2023-10-01-preview/examples/Domains_ListDomains.json b/specification/purview/data-plane/Azure.Analytics.Purview.Account/preview/2023-10-01-preview/examples/Domains_ListDomains.json new file mode 100644 index 000000000000..1438d666771b --- /dev/null +++ b/specification/purview/data-plane/Azure.Analytics.Purview.Account/preview/2023-10-01-preview/examples/Domains_ListDomains.json @@ -0,0 +1,42 @@ +{ + "parameters": { + "api-version": "2023-10-01-preview" + }, + "responses": { + "200": { + "headers": { + "Date": "Wed, 13 Sep 2017 18:04:32 GMT", + "x-ms-request-id": "d5496da4-9c52-402f-b067-83cc9ddea888", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "25c78f97-0b0a-4fe9-ad39-883a482265cd" + }, + "body": { + "value": [ + { + "name": "myDomain1", + "friendlyName": "My Domain 1", + "description": "Sample description of myDomain1", + "systemData": { + "createdBy": "client-name", + "createdByType": "User", + "createdAt": "2019-11-22T18:39:58.6929344Z", + "lastModifiedBy": "client-name", + "lastModifiedByType": "User", + "lastModifiedAt": "2021-03-16T23:24:34.3430059Z" + }, + "provisioningState": "Succeeded", + "containerType": "Domain", + "environment": "Prod", + "mergeInfo": { + "accountLocation": "westus2", + "accountName": "account2", + "accountResourceGroupName": "SampleResourceGroup", + "accountSubscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", + "mergeStatus": "Succeeded" + } + } + ] + } + } + } +} diff --git a/specification/purview/data-plane/Azure.Analytics.Purview.Account/preview/2023-10-01-preview/examples/ExposureControl_GetFeatures.json b/specification/purview/data-plane/Azure.Analytics.Purview.Account/preview/2023-10-01-preview/examples/ExposureControl_GetFeatures.json new file mode 100644 index 000000000000..10e79e41ec4e --- /dev/null +++ b/specification/purview/data-plane/Azure.Analytics.Purview.Account/preview/2023-10-01-preview/examples/ExposureControl_GetFeatures.json @@ -0,0 +1,27 @@ +{ + "parameters": { + "body": { + "features": [ + "Feature1", + "Feature2" + ] + }, + "api-version": "2023-10-01-preview" + }, + "responses": { + "200": { + "headers": { + "Date": "Wed, 13 Sep 2017 18:04:32 GMT", + "x-ms-request-id": "d5496da4-9c52-402f-b067-83cc9ddea888", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "25c78f97-0b0a-4fe9-ad39-883a482265cd" + }, + "body": { + "features": { + "Feature1": true, + "Feature2": false + } + } + } + } +} diff --git a/specification/purview/data-plane/Azure.Analytics.Purview.Account/preview/2023-10-01-preview/examples/ResourceSetRules_CreateOrUpdateResourceSetRule.json b/specification/purview/data-plane/Azure.Analytics.Purview.Account/preview/2023-10-01-preview/examples/ResourceSetRules_CreateOrUpdateResourceSetRule.json new file mode 100644 index 000000000000..e428aaa185b5 --- /dev/null +++ b/specification/purview/data-plane/Azure.Analytics.Purview.Account/preview/2023-10-01-preview/examples/ResourceSetRules_CreateOrUpdateResourceSetRule.json @@ -0,0 +1,455 @@ +{ + "parameters": { + "accountId": "11349e3d-b23d-47fe-aaf2-3d4c3d9a3f5b", + "resourceSetRuleConfigName": "myNewresourceSetRuleConfigName", + "api-version": "2023-10-01-preview", + "body": { + "pathPatternConfig": { + "rejectedPatterns": [ + { + "name": "OfficeDocuments", + "filterType": "Regex", + "path": "^.*\\.(?i)(DOC|DOCM|DOCX|DOT|ODP|ODS|ODT|PDF|POT|PPS|PPSX|PPT|PPTM|PPTX|XLC|XLS|XLSB|XLSM|XLSX|XLT)(?-i)$", + "createdBy": "AzureDataCatalog", + "modifiedBy": "AzureDataCatalog", + "lastUpdatedTimestamp": 0 + } + ], + "acceptedPatterns": [], + "enableDefaultPatterns": true, + "createdBy": "AzureDataCatalog", + "modifiedBy": "AzureDataCatalog", + "lastUpdatedTimestamp": 0, + "regexReplacers": [ + { + "name": "Guid", + "disabled": false, + "description": null, + "regex": { + "regexStr": "([0-9A-F]{32}|[0-9A-F]{8}-[0-9A-F]{4}-[0-9A-F]{4}-[0-9A-F]{4}-[0-9A-F]{12})", + "options": 9, + "minHex": 32 + }, + "replaceWith": "{GUID}", + "createdBy": "AzureDataCatalog", + "modifiedBy": "AzureDataCatalog", + "lastUpdatedTimestamp": 0 + }, + { + "name": "Number", + "disabled": false, + "description": null, + "regex": { + "regexStr": "^\\d+$", + "options": 8, + "minDigits": 1 + }, + "replaceWith": "{N}", + "createdBy": "AzureDataCatalog", + "modifiedBy": "AzureDataCatalog", + "lastUpdatedTimestamp": 0 + }, + { + "name": "yyyy-mm-ddThh-MM-ss", + "disabled": false, + "description": null, + "regex": { + "regexStr": "(20)[1-9][0-9]([-\\._@]?)(0[1-9]|1[012])([-\\._@]?)(0[1-9]|[12][0-9]|3[01])([T])(2[0-3]|[01]?[0-9])([-\\._@]?)([0-5][0-9])([-\\._@]?)([0-5][0-9])(Z)?", + "options": 8, + "minDigits": 12 + }, + "replaceWith": "{N}$2{N}$4{N}$6{N}$8{N}$10{N}$12", + "createdBy": "AzureDataCatalog", + "modifiedBy": "AzureDataCatalog", + "lastUpdatedTimestamp": 0 + }, + { + "name": "yyyy-mm-ddThh", + "disabled": false, + "description": null, + "regex": { + "regexStr": "(20)[1-9][0-9]([-\\._@]?)(0[1-9]|1[012])([-\\._@]?)(0[1-9]|[12][0-9]|3[01])([T])(2[0-3]|[01]?[0-9])(Z)?", + "options": 8, + "minDigits": 8 + }, + "replaceWith": "{N}$2{N}$4{N}$6{N}$8", + "condition": "ApplyToNonFileName", + "createdBy": "AzureDataCatalog", + "modifiedBy": "AzureDataCatalog", + "lastUpdatedTimestamp": 0 + }, + { + "name": "yyyy-mm-ddZ", + "disabled": false, + "description": null, + "regex": { + "regexStr": "(20)[1-9][0-9]([-\\._@]?)(0[1-9]|1[012])([-\\._@]?)(0[1-9]|[12][0-9]|3[01])(Z)", + "options": 8, + "minDigits": 6 + }, + "replaceWith": "{N}$2{N}$4{N}$6", + "createdBy": "AzureDataCatalog", + "modifiedBy": "AzureDataCatalog", + "lastUpdatedTimestamp": 0 + }, + { + "name": "yyyy-mm-dd-hhZ", + "disabled": false, + "description": null, + "regex": { + "regexStr": "(20)[1-9][0-9]([-\\._@]?)(0[1-9]|1[012])([-\\._@]?)(0[1-9]|[12][0-9]|3[01])([-\\._@]?)(2[0-3]|[01]?[0-9])(Z)", + "options": 8, + "minDigits": 8 + }, + "replaceWith": "{N}$2{N}$4{N}$6{N}$8", + "createdBy": "AzureDataCatalog", + "modifiedBy": "AzureDataCatalog", + "lastUpdatedTimestamp": 0 + }, + { + "name": "NumberBetweenDelimiter", + "disabled": false, + "description": null, + "regex": { + "regexStr": "(?<=[-\\._@])([\\d]+)(?=[-\\._@])|^(\\d+)(?=[-\\._@])|(?<=[-\\._@])(\\d+)$", + "options": 8, + "minDigits": 1 + }, + "replaceWith": "{N}", + "doNotReplaceRegex": { + "regexStr": "(?<=[-\\._@]|^)[v](\\d+)[\\.](\\d+)[\\.]?(\\d+)?(?=[-\\._@]|$)", + "options": 9, + "minDigits": 1, + "minLetters": 1 + }, + "condition": "ApplyToFileNameOrNonVersionString", + "createdBy": "AzureDataCatalog", + "modifiedBy": "AzureDataCatalog", + "lastUpdatedTimestamp": 0 + }, + { + "name": "4ByteHex", + "disabled": false, + "description": null, + "regex": { + "regexStr": "(?<=[-\\._@]|^)([0-9A-F]{8,16})(?=[-\\._@]|$)", + "options": 9, + "minDigitsOrLetters": 8 + }, + "replaceWith": "{HEX}", + "doNotReplaceRegex": { + "regexStr": "(?<=[-\\._@]|^)[v](\\d+)[\\.](\\d+)[\\.]?(\\d+)?(?=[-\\._@]|$)", + "options": 9, + "minDigits": 1, + "minLetters": 1 + }, + "createdBy": "AzureDataCatalog", + "modifiedBy": "AzureDataCatalog", + "lastUpdatedTimestamp": 0 + }, + { + "name": "NumberInFile", + "disabled": false, + "description": null, + "regex": { + "regexStr": "(\\d+)", + "options": 8, + "minDigits": 1 + }, + "replaceWith": "{N}", + "doNotReplaceRegex": { + "regexStr": "(?<=[-\\._@]|^)[v](\\d+)[\\.](\\d+)[\\.]?(\\d+)?(?=[-\\._@]|$)", + "options": 9, + "minDigits": 1, + "minLetters": 1 + }, + "condition": "ApplyToFileName", + "createdBy": "AzureDataCatalog", + "modifiedBy": "AzureDataCatalog", + "lastUpdatedTimestamp": 0 + }, + { + "name": "Localization(DashSeparated)", + "disabled": false, + "description": null, + "regex": { + "regexStr": "(?<=[-\\._@]|^)(ar-eg|ar-sa|cy-gb|da-dk|de-at|de-ch|de-de|en-au|en-ca|en-gb|en-ie|en-in|en-my|en-nz|en-ph|en-sg|en-us|en-ww|en-xa|en-za|es-ar|es-cl|es-es|es-mx|es-us|es-xl|fi-fi|fr-be|fr-ca|fr-ch|fr-fr|gu-in|hi-in|id-id|it-it|ja-jp|nb-no|nl-nl|nl-be|pt-br|pt-pt|pl-pl|ru-ru|sv-se|ta-in|te-in|zh-cn|zh-hk|zh-tw|ko-kr|tr-tr)(?=[-\\._@]|$)", + "options": 9, + "minLetters": 4, + "minDashes": 1 + }, + "replaceWith": "{LOC}", + "createdBy": "AzureDataCatalog", + "modifiedBy": "AzureDataCatalog", + "lastUpdatedTimestamp": 0 + }, + { + "name": "Localization(UnderscoreSeparated)", + "disabled": false, + "description": null, + "regex": { + "regexStr": "(?<=[-\\._@]|^)(ar_eg|ar_sa|cy_gb|da_dk|de_at|de_ch|de_de|en_au|en_ca|en_gb|en_ie|en_in|en_my|en_nz|en_ph|en_sg|en_us|en_ww|en_xa|en_za|es_ar|es_cl|es_es|es_mx|es_us|es_xl|fi_fi|fr_be|fr_ca|fr_ch|fr_fr|gu_in|hi_in|id_id|it_it|ja_jp|nb_no|nl_nl|nl_be|pt_br|pt_pt|pl_pl|ru_ru|sv_se|ta_in|te_in|zh_cn|zh_hk|zh_tw|ko_kr|tr_tr)(?=[-\\._@]|$)", + "options": 9, + "minLetters": 4, + "minUnderscores": 1 + }, + "replaceWith": "{LOC}", + "createdBy": "AzureDataCatalog", + "modifiedBy": "AzureDataCatalog", + "lastUpdatedTimestamp": 0 + } + ], + "complexReplacers": [ + { + "name": "SparkPath", + "disabled": false, + "description": null, + "typeName": "Microsoft.DataMap.PathPattern.SparkPathReplacer", + "createdBy": "AzureDataCatalog", + "modifiedBy": "AzureDataCatalog", + "lastUpdatedTimestamp": 0 + } + ] + }, + "advancedResourceSet": { + "resourceSetProcessing": "Default" + } + } + }, + "responses": { + "200": { + "headers": { + "Date": "Wed, 13 Sep 2017 18:04:32 GMT", + "x-ms-request-id": "d5496da4-9c52-402f-b067-83cc9ddea888", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "25c78f97-0b0a-4fe9-ad39-883a482265cd" + }, + "body": { + "name": "myNewresourceSetRuleConfigName", + "pathPatternConfig": { + "rejectedPatterns": [ + { + "name": "OfficeDocuments", + "filterType": "Regex", + "path": "^.*\\.(?i)(DOC|DOCM|DOCX|DOT|ODP|ODS|ODT|PDF|POT|PPS|PPSX|PPT|PPTM|PPTX|XLC|XLS|XLSB|XLSM|XLSX|XLT)(?-i)$", + "createdBy": "AzureDataCatalog", + "modifiedBy": "AzureDataCatalog", + "lastUpdatedTimestamp": 0 + } + ], + "acceptedPatterns": [], + "enableDefaultPatterns": true, + "createdBy": "AzureDataCatalog", + "modifiedBy": "AzureDataCatalog", + "lastUpdatedTimestamp": 1585257544, + "regexReplacers": [ + { + "name": "Guid", + "disabled": false, + "description": null, + "regex": { + "regexStr": "([0-9A-F]{32}|[0-9A-F]{8}-[0-9A-F]{4}-[0-9A-F]{4}-[0-9A-F]{4}-[0-9A-F]{12})", + "options": 9, + "minHex": 32 + }, + "replaceWith": "{GUID}", + "createdBy": "AzureDataCatalog", + "modifiedBy": "AzureDataCatalog", + "lastUpdatedTimestamp": 0, + "disableRecursiveReplacerApplication": false + }, + { + "name": "Number", + "disabled": false, + "description": null, + "regex": { + "regexStr": "^\\d+$", + "options": 8, + "minDigits": 1 + }, + "replaceWith": "{N}", + "createdBy": "AzureDataCatalog", + "modifiedBy": "AzureDataCatalog", + "lastUpdatedTimestamp": 0, + "disableRecursiveReplacerApplication": false + }, + { + "name": "yyyy-mm-ddThh-MM-ss", + "disabled": false, + "description": null, + "regex": { + "regexStr": "(20)[1-9][0-9]([-\\._@]?)(0[1-9]|1[012])([-\\._@]?)(0[1-9]|[12][0-9]|3[01])([T])(2[0-3]|[01]?[0-9])([-\\._@]?)([0-5][0-9])([-\\._@]?)([0-5][0-9])(Z)?", + "options": 8, + "minDigits": 12 + }, + "replaceWith": "{N}$2{N}$4{N}$6{N}$8{N}$10{N}$12", + "createdBy": "AzureDataCatalog", + "modifiedBy": "AzureDataCatalog", + "lastUpdatedTimestamp": 0, + "disableRecursiveReplacerApplication": false + }, + { + "name": "yyyy-mm-ddThh", + "disabled": false, + "description": null, + "regex": { + "regexStr": "(20)[1-9][0-9]([-\\._@]?)(0[1-9]|1[012])([-\\._@]?)(0[1-9]|[12][0-9]|3[01])([T])(2[0-3]|[01]?[0-9])(Z)?", + "options": 8, + "minDigits": 8 + }, + "replaceWith": "{N}$2{N}$4{N}$6{N}$8", + "createdBy": "AzureDataCatalog", + "modifiedBy": "AzureDataCatalog", + "lastUpdatedTimestamp": 0, + "disableRecursiveReplacerApplication": false, + "condition": "ApplyToNonFileName" + }, + { + "name": "yyyy-mm-ddZ", + "disabled": false, + "description": null, + "regex": { + "regexStr": "(20)[1-9][0-9]([-\\._@]?)(0[1-9]|1[012])([-\\._@]?)(0[1-9]|[12][0-9]|3[01])(Z)", + "options": 8, + "minDigits": 6 + }, + "replaceWith": "{N}$2{N}$4{N}$6", + "createdBy": "AzureDataCatalog", + "modifiedBy": "AzureDataCatalog", + "lastUpdatedTimestamp": 0, + "disableRecursiveReplacerApplication": false + }, + { + "name": "yyyy-mm-dd-hhZ", + "disabled": false, + "description": null, + "regex": { + "regexStr": "(20)[1-9][0-9]([-\\._@]?)(0[1-9]|1[012])([-\\._@]?)(0[1-9]|[12][0-9]|3[01])([-\\._@]?)(2[0-3]|[01]?[0-9])(Z)", + "options": 8, + "minDigits": 8 + }, + "replaceWith": "{N}$2{N}$4{N}$6{N}$8", + "createdBy": "AzureDataCatalog", + "modifiedBy": "AzureDataCatalog", + "lastUpdatedTimestamp": 0, + "disableRecursiveReplacerApplication": false + }, + { + "name": "NumberBetweenDelimiter", + "disabled": false, + "description": null, + "regex": { + "regexStr": "(?<=[-\\._@])([\\d]+)(?=[-\\._@])|^(\\d+)(?=[-\\._@])|(?<=[-\\._@])(\\d+)$", + "options": 8, + "minDigits": 1 + }, + "replaceWith": "{N}", + "doNotReplaceRegex": { + "regexStr": "(?<=[-\\._@]|^)[v](\\d+)[\\.](\\d+)[\\.]?(\\d+)?(?=[-\\._@]|$)", + "options": 9, + "minDigits": 1, + "minLetters": 1 + }, + "createdBy": "AzureDataCatalog", + "modifiedBy": "AzureDataCatalog", + "lastUpdatedTimestamp": 0, + "disableRecursiveReplacerApplication": false, + "condition": "ApplyToFileNameOrNonVersionString" + }, + { + "name": "4ByteHex", + "disabled": false, + "description": null, + "regex": { + "regexStr": "(?<=[-\\._@]|^)([0-9A-F]{8,16})(?=[-\\._@]|$)", + "options": 9, + "minDigitsOrLetters": 8 + }, + "replaceWith": "{HEX}", + "doNotReplaceRegex": { + "regexStr": "(?<=[-\\._@]|^)[v](\\d+)[\\.](\\d+)[\\.]?(\\d+)?(?=[-\\._@]|$)", + "options": 9, + "minDigits": 1, + "minLetters": 1 + }, + "createdBy": "AzureDataCatalog", + "modifiedBy": "AzureDataCatalog", + "lastUpdatedTimestamp": 0, + "disableRecursiveReplacerApplication": false + }, + { + "name": "NumberInFile", + "disabled": false, + "description": null, + "regex": { + "regexStr": "(\\d+)", + "options": 8, + "minDigits": 1 + }, + "replaceWith": "{N}", + "doNotReplaceRegex": { + "regexStr": "(?<=[-\\._@]|^)[v](\\d+)[\\.](\\d+)[\\.]?(\\d+)?(?=[-\\._@]|$)", + "options": 9, + "minDigits": 1, + "minLetters": 1 + }, + "createdBy": "AzureDataCatalog", + "modifiedBy": "AzureDataCatalog", + "lastUpdatedTimestamp": 0, + "disableRecursiveReplacerApplication": false, + "condition": "ApplyToFileName" + }, + { + "name": "Localization(DashSeparated)", + "disabled": false, + "description": null, + "regex": { + "regexStr": "(?<=[-\\._@]|^)(ar-eg|ar-sa|cy-gb|da-dk|de-at|de-ch|de-de|en-au|en-ca|en-gb|en-ie|en-in|en-my|en-nz|en-ph|en-sg|en-us|en-ww|en-xa|en-za|es-ar|es-cl|es-es|es-mx|es-us|es-xl|fi-fi|fr-be|fr-ca|fr-ch|fr-fr|gu-in|hi-in|id-id|it-it|ja-jp|nb-no|nl-nl|nl-be|pt-br|pt-pt|pl-pl|ru-ru|sv-se|ta-in|te-in|zh-cn|zh-hk|zh-tw|ko-kr|tr-tr)(?=[-\\._@]|$)", + "options": 9, + "minLetters": 4, + "minDashes": 1 + }, + "replaceWith": "{LOC}", + "createdBy": "AzureDataCatalog", + "modifiedBy": "AzureDataCatalog", + "lastUpdatedTimestamp": 0, + "disableRecursiveReplacerApplication": false + }, + { + "name": "Localization(UnderscoreSeparated)", + "disabled": false, + "description": null, + "regex": { + "regexStr": "(?<=[-\\._@]|^)(ar_eg|ar_sa|cy_gb|da_dk|de_at|de_ch|de_de|en_au|en_ca|en_gb|en_ie|en_in|en_my|en_nz|en_ph|en_sg|en_us|en_ww|en_xa|en_za|es_ar|es_cl|es_es|es_mx|es_us|es_xl|fi_fi|fr_be|fr_ca|fr_ch|fr_fr|gu_in|hi_in|id_id|it_it|ja_jp|nb_no|nl_nl|nl_be|pt_br|pt_pt|pl_pl|ru_ru|sv_se|ta_in|te_in|zh_cn|zh_hk|zh_tw|ko_kr|tr_tr)(?=[-\\._@]|$)", + "options": 9, + "minLetters": 4, + "minUnderscores": 1 + }, + "replaceWith": "{LOC}", + "createdBy": "AzureDataCatalog", + "modifiedBy": "AzureDataCatalog", + "lastUpdatedTimestamp": 0, + "disableRecursiveReplacerApplication": false + } + ], + "complexReplacers": [ + { + "name": "SparkPath", + "disabled": false, + "description": null, + "createdBy": "AzureDataCatalog", + "modifiedBy": "AzureDataCatalog", + "lastUpdatedTimestamp": 0, + "disableRecursiveReplacerApplication": false, + "typeName": "Microsoft.DataMap.PathPattern.SparkPathReplacer" + } + ] + }, + "advancedResourceSet": { + "resourceSetProcessing": "Default", + "modifiedAt": "2021-07-08T23:14:06.4084575Z" + } + } + } + } +} diff --git a/specification/purview/data-plane/Azure.Analytics.Purview.Account/preview/2023-10-01-preview/examples/ResourceSetRules_DeleteResourceSetRule.json b/specification/purview/data-plane/Azure.Analytics.Purview.Account/preview/2023-10-01-preview/examples/ResourceSetRules_DeleteResourceSetRule.json new file mode 100644 index 000000000000..27200f5ebc6b --- /dev/null +++ b/specification/purview/data-plane/Azure.Analytics.Purview.Account/preview/2023-10-01-preview/examples/ResourceSetRules_DeleteResourceSetRule.json @@ -0,0 +1,25 @@ +{ + "parameters": { + "accountId": "11349e3d-b23d-47fe-aaf2-3d4c3d9a3f5b", + "resourceSetRuleConfigName": "myNewresourceSetRuleConfigName", + "api-version": "2023-10-01-preview" + }, + "responses": { + "200": { + "headers": { + "Date": "Wed, 13 Sep 2017 18:04:32 GMT", + "x-ms-request-id": "d5496da4-9c52-402f-b067-83cc9ddea888", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "25c78f97-0b0a-4fe9-ad39-883a482265cd" + } + }, + "204": { + "headers": { + "Date": "Wed, 13 Sep 2017 18:04:32 GMT", + "x-ms-request-id": "d5496da4-9c52-402f-b067-83cc9ddea888", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "25c78f97-0b0a-4fe9-ad39-883a482265cd" + } + } + } +} diff --git a/specification/purview/data-plane/Azure.Analytics.Purview.Account/preview/2023-10-01-preview/examples/ResourceSetRules_GetResourceSetRule.json b/specification/purview/data-plane/Azure.Analytics.Purview.Account/preview/2023-10-01-preview/examples/ResourceSetRules_GetResourceSetRule.json new file mode 100644 index 000000000000..5ddd4fa73691 --- /dev/null +++ b/specification/purview/data-plane/Azure.Analytics.Purview.Account/preview/2023-10-01-preview/examples/ResourceSetRules_GetResourceSetRule.json @@ -0,0 +1,243 @@ +{ + "parameters": { + "accountId": "11349e3d-b23d-47fe-aaf2-3d4c3d9a3f5b", + "resourceSetRuleConfigName": "myNewresourceSetRuleConfigName", + "api-version": "2023-10-01-preview" + }, + "responses": { + "200": { + "headers": { + "Date": "Wed, 13 Sep 2017 18:04:32 GMT", + "x-ms-request-id": "d5496da4-9c52-402f-b067-83cc9ddea888", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "25c78f97-0b0a-4fe9-ad39-883a482265cd" + }, + "body": { + "name": "myNewresourceSetRuleConfigName", + "pathPatternConfig": { + "rejectedPatterns": [ + { + "name": "OfficeDocuments", + "filterType": "Regex", + "path": "^.*\\.(?i)(DOC|DOCM|DOCX|DOT|ODP|ODS|ODT|PDF|POT|PPS|PPSX|PPT|PPTM|PPTX|XLC|XLS|XLSB|XLSM|XLSX|XLT)(?-i)$", + "createdBy": "AzureDataCatalog", + "modifiedBy": "AzureDataCatalog", + "lastUpdatedTimestamp": 0 + } + ], + "acceptedPatterns": [], + "enableDefaultPatterns": true, + "createdBy": "AzureDataCatalog", + "modifiedBy": "AzureDataCatalog", + "lastUpdatedTimestamp": 1585257544, + "regexReplacers": [ + { + "name": "Guid", + "disabled": false, + "description": null, + "regex": { + "regexStr": "([0-9A-F]{32}|[0-9A-F]{8}-[0-9A-F]{4}-[0-9A-F]{4}-[0-9A-F]{4}-[0-9A-F]{12})", + "options": 9, + "minHex": 32 + }, + "replaceWith": "{GUID}", + "createdBy": "AzureDataCatalog", + "modifiedBy": "AzureDataCatalog", + "lastUpdatedTimestamp": 0, + "disableRecursiveReplacerApplication": false + }, + { + "name": "Number", + "disabled": false, + "description": null, + "regex": { + "regexStr": "^\\d+$", + "options": 8, + "minDigits": 1 + }, + "replaceWith": "{N}", + "createdBy": "AzureDataCatalog", + "modifiedBy": "AzureDataCatalog", + "lastUpdatedTimestamp": 0, + "disableRecursiveReplacerApplication": false + }, + { + "name": "yyyy-mm-ddThh-MM-ss", + "disabled": false, + "description": null, + "regex": { + "regexStr": "(20)[1-9][0-9]([-\\._@]?)(0[1-9]|1[012])([-\\._@]?)(0[1-9]|[12][0-9]|3[01])([T])(2[0-3]|[01]?[0-9])([-\\._@]?)([0-5][0-9])([-\\._@]?)([0-5][0-9])(Z)?", + "options": 8, + "minDigits": 12 + }, + "replaceWith": "{N}$2{N}$4{N}$6{N}$8{N}$10{N}$12", + "createdBy": "AzureDataCatalog", + "modifiedBy": "AzureDataCatalog", + "lastUpdatedTimestamp": 0, + "disableRecursiveReplacerApplication": false + }, + { + "name": "yyyy-mm-ddThh", + "disabled": false, + "description": null, + "regex": { + "regexStr": "(20)[1-9][0-9]([-\\._@]?)(0[1-9]|1[012])([-\\._@]?)(0[1-9]|[12][0-9]|3[01])([T])(2[0-3]|[01]?[0-9])(Z)?", + "options": 8, + "minDigits": 8 + }, + "replaceWith": "{N}$2{N}$4{N}$6{N}$8", + "createdBy": "AzureDataCatalog", + "modifiedBy": "AzureDataCatalog", + "lastUpdatedTimestamp": 0, + "disableRecursiveReplacerApplication": false, + "condition": "ApplyToNonFileName" + }, + { + "name": "yyyy-mm-ddZ", + "disabled": false, + "description": null, + "regex": { + "regexStr": "(20)[1-9][0-9]([-\\._@]?)(0[1-9]|1[012])([-\\._@]?)(0[1-9]|[12][0-9]|3[01])(Z)", + "options": 8, + "minDigits": 6 + }, + "replaceWith": "{N}$2{N}$4{N}$6", + "createdBy": "AzureDataCatalog", + "modifiedBy": "AzureDataCatalog", + "lastUpdatedTimestamp": 0, + "disableRecursiveReplacerApplication": false + }, + { + "name": "yyyy-mm-dd-hhZ", + "disabled": false, + "description": null, + "regex": { + "regexStr": "(20)[1-9][0-9]([-\\._@]?)(0[1-9]|1[012])([-\\._@]?)(0[1-9]|[12][0-9]|3[01])([-\\._@]?)(2[0-3]|[01]?[0-9])(Z)", + "options": 8, + "minDigits": 8 + }, + "replaceWith": "{N}$2{N}$4{N}$6{N}$8", + "createdBy": "AzureDataCatalog", + "modifiedBy": "AzureDataCatalog", + "lastUpdatedTimestamp": 0, + "disableRecursiveReplacerApplication": false + }, + { + "name": "NumberBetweenDelimiter", + "disabled": false, + "description": null, + "regex": { + "regexStr": "(?<=[-\\._@])([\\d]+)(?=[-\\._@])|^(\\d+)(?=[-\\._@])|(?<=[-\\._@])(\\d+)$", + "options": 8, + "minDigits": 1 + }, + "replaceWith": "{N}", + "doNotReplaceRegex": { + "regexStr": "(?<=[-\\._@]|^)[v](\\d+)[\\.](\\d+)[\\.]?(\\d+)?(?=[-\\._@]|$)", + "options": 9, + "minDigits": 1, + "minLetters": 1 + }, + "createdBy": "AzureDataCatalog", + "modifiedBy": "AzureDataCatalog", + "lastUpdatedTimestamp": 0, + "disableRecursiveReplacerApplication": false, + "condition": "ApplyToFileNameOrNonVersionString" + }, + { + "name": "4ByteHex", + "disabled": false, + "description": null, + "regex": { + "regexStr": "(?<=[-\\._@]|^)([0-9A-F]{8,16})(?=[-\\._@]|$)", + "options": 9, + "minDigitsOrLetters": 8 + }, + "replaceWith": "{HEX}", + "doNotReplaceRegex": { + "regexStr": "(?<=[-\\._@]|^)[v](\\d+)[\\.](\\d+)[\\.]?(\\d+)?(?=[-\\._@]|$)", + "options": 9, + "minDigits": 1, + "minLetters": 1 + }, + "createdBy": "AzureDataCatalog", + "modifiedBy": "AzureDataCatalog", + "lastUpdatedTimestamp": 0, + "disableRecursiveReplacerApplication": false + }, + { + "name": "NumberInFile", + "disabled": false, + "description": null, + "regex": { + "regexStr": "(\\d+)", + "options": 8, + "minDigits": 1 + }, + "replaceWith": "{N}", + "doNotReplaceRegex": { + "regexStr": "(?<=[-\\._@]|^)[v](\\d+)[\\.](\\d+)[\\.]?(\\d+)?(?=[-\\._@]|$)", + "options": 9, + "minDigits": 1, + "minLetters": 1 + }, + "createdBy": "AzureDataCatalog", + "modifiedBy": "AzureDataCatalog", + "lastUpdatedTimestamp": 0, + "disableRecursiveReplacerApplication": false, + "condition": "ApplyToFileName" + }, + { + "name": "Localization(DashSeparated)", + "disabled": false, + "description": null, + "regex": { + "regexStr": "(?<=[-\\._@]|^)(ar-eg|ar-sa|cy-gb|da-dk|de-at|de-ch|de-de|en-au|en-ca|en-gb|en-ie|en-in|en-my|en-nz|en-ph|en-sg|en-us|en-ww|en-xa|en-za|es-ar|es-cl|es-es|es-mx|es-us|es-xl|fi-fi|fr-be|fr-ca|fr-ch|fr-fr|gu-in|hi-in|id-id|it-it|ja-jp|nb-no|nl-nl|nl-be|pt-br|pt-pt|pl-pl|ru-ru|sv-se|ta-in|te-in|zh-cn|zh-hk|zh-tw|ko-kr|tr-tr)(?=[-\\._@]|$)", + "options": 9, + "minLetters": 4, + "minDashes": 1 + }, + "replaceWith": "{LOC}", + "createdBy": "AzureDataCatalog", + "modifiedBy": "AzureDataCatalog", + "lastUpdatedTimestamp": 0, + "disableRecursiveReplacerApplication": false + }, + { + "name": "Localization(UnderscoreSeparated)", + "disabled": false, + "description": null, + "regex": { + "regexStr": "(?<=[-\\._@]|^)(ar_eg|ar_sa|cy_gb|da_dk|de_at|de_ch|de_de|en_au|en_ca|en_gb|en_ie|en_in|en_my|en_nz|en_ph|en_sg|en_us|en_ww|en_xa|en_za|es_ar|es_cl|es_es|es_mx|es_us|es_xl|fi_fi|fr_be|fr_ca|fr_ch|fr_fr|gu_in|hi_in|id_id|it_it|ja_jp|nb_no|nl_nl|nl_be|pt_br|pt_pt|pl_pl|ru_ru|sv_se|ta_in|te_in|zh_cn|zh_hk|zh_tw|ko_kr|tr_tr)(?=[-\\._@]|$)", + "options": 9, + "minLetters": 4, + "minUnderscores": 1 + }, + "replaceWith": "{LOC}", + "createdBy": "AzureDataCatalog", + "modifiedBy": "AzureDataCatalog", + "lastUpdatedTimestamp": 0, + "disableRecursiveReplacerApplication": false + } + ], + "complexReplacers": [ + { + "name": "SparkPath", + "disabled": false, + "description": null, + "createdBy": "AzureDataCatalog", + "modifiedBy": "AzureDataCatalog", + "lastUpdatedTimestamp": 0, + "disableRecursiveReplacerApplication": false, + "typeName": "Microsoft.DataMap.PathPattern.SparkPathReplacer" + } + ] + }, + "advancedResourceSet": { + "resourceSetProcessing": "Advanced", + "modifiedAt": "2021-07-08T23:14:06.4084575Z" + } + } + } + } +} diff --git a/specification/purview/data-plane/Azure.Analytics.Purview.Account/preview/2023-10-01-preview/examples/ResourceSetRules_ListResourceSetRules.json b/specification/purview/data-plane/Azure.Analytics.Purview.Account/preview/2023-10-01-preview/examples/ResourceSetRules_ListResourceSetRules.json new file mode 100644 index 000000000000..93ded5cefa1f --- /dev/null +++ b/specification/purview/data-plane/Azure.Analytics.Purview.Account/preview/2023-10-01-preview/examples/ResourceSetRules_ListResourceSetRules.json @@ -0,0 +1,247 @@ +{ + "parameters": { + "accountId": "11349e3d-b23d-47fe-aaf2-3d4c3d9a3f5b", + "resourceSetRuleConfigName": "myNewresourceSetRuleConfigName", + "api-version": "2023-10-01-preview" + }, + "responses": { + "200": { + "headers": { + "Date": "Wed, 13 Sep 2017 18:04:32 GMT", + "x-ms-request-id": "d5496da4-9c52-402f-b067-83cc9ddea888", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "25c78f97-0b0a-4fe9-ad39-883a482265cd" + }, + "body": { + "value": [ + { + "name": "myNewresourceSetRuleConfigName", + "pathPatternConfig": { + "rejectedPatterns": [ + { + "name": "OfficeDocuments", + "filterType": "Regex", + "path": "^.*\\.(?i)(DOC|DOCM|DOCX|DOT|ODP|ODS|ODT|PDF|POT|PPS|PPSX|PPT|PPTM|PPTX|XLC|XLS|XLSB|XLSM|XLSX|XLT)(?-i)$", + "createdBy": "AzureDataCatalog", + "modifiedBy": "AzureDataCatalog", + "lastUpdatedTimestamp": 0 + } + ], + "acceptedPatterns": [], + "enableDefaultPatterns": true, + "createdBy": "AzureDataCatalog", + "modifiedBy": "AzureDataCatalog", + "lastUpdatedTimestamp": 1585257544, + "regexReplacers": [ + { + "name": "Guid", + "disabled": false, + "description": null, + "regex": { + "regexStr": "([0-9A-F]{32}|[0-9A-F]{8}-[0-9A-F]{4}-[0-9A-F]{4}-[0-9A-F]{4}-[0-9A-F]{12})", + "options": 9, + "minHex": 32 + }, + "replaceWith": "{GUID}", + "createdBy": "AzureDataCatalog", + "modifiedBy": "AzureDataCatalog", + "lastUpdatedTimestamp": 0, + "disableRecursiveReplacerApplication": false + }, + { + "name": "Number", + "disabled": false, + "description": null, + "regex": { + "regexStr": "^\\d+$", + "options": 8, + "minDigits": 1 + }, + "replaceWith": "{N}", + "createdBy": "AzureDataCatalog", + "modifiedBy": "AzureDataCatalog", + "lastUpdatedTimestamp": 0, + "disableRecursiveReplacerApplication": false + }, + { + "name": "yyyy-mm-ddThh-MM-ss", + "disabled": false, + "description": null, + "regex": { + "regexStr": "(20)[1-9][0-9]([-\\._@]?)(0[1-9]|1[012])([-\\._@]?)(0[1-9]|[12][0-9]|3[01])([T])(2[0-3]|[01]?[0-9])([-\\._@]?)([0-5][0-9])([-\\._@]?)([0-5][0-9])(Z)?", + "options": 8, + "minDigits": 12 + }, + "replaceWith": "{N}$2{N}$4{N}$6{N}$8{N}$10{N}$12", + "createdBy": "AzureDataCatalog", + "modifiedBy": "AzureDataCatalog", + "lastUpdatedTimestamp": 0, + "disableRecursiveReplacerApplication": false + }, + { + "name": "yyyy-mm-ddThh", + "disabled": false, + "description": null, + "regex": { + "regexStr": "(20)[1-9][0-9]([-\\._@]?)(0[1-9]|1[012])([-\\._@]?)(0[1-9]|[12][0-9]|3[01])([T])(2[0-3]|[01]?[0-9])(Z)?", + "options": 8, + "minDigits": 8 + }, + "replaceWith": "{N}$2{N}$4{N}$6{N}$8", + "createdBy": "AzureDataCatalog", + "modifiedBy": "AzureDataCatalog", + "lastUpdatedTimestamp": 0, + "disableRecursiveReplacerApplication": false, + "condition": "ApplyToNonFileName" + }, + { + "name": "yyyy-mm-ddZ", + "disabled": false, + "description": null, + "regex": { + "regexStr": "(20)[1-9][0-9]([-\\._@]?)(0[1-9]|1[012])([-\\._@]?)(0[1-9]|[12][0-9]|3[01])(Z)", + "options": 8, + "minDigits": 6 + }, + "replaceWith": "{N}$2{N}$4{N}$6", + "createdBy": "AzureDataCatalog", + "modifiedBy": "AzureDataCatalog", + "lastUpdatedTimestamp": 0, + "disableRecursiveReplacerApplication": false + }, + { + "name": "yyyy-mm-dd-hhZ", + "disabled": false, + "description": null, + "regex": { + "regexStr": "(20)[1-9][0-9]([-\\._@]?)(0[1-9]|1[012])([-\\._@]?)(0[1-9]|[12][0-9]|3[01])([-\\._@]?)(2[0-3]|[01]?[0-9])(Z)", + "options": 8, + "minDigits": 8 + }, + "replaceWith": "{N}$2{N}$4{N}$6{N}$8", + "createdBy": "AzureDataCatalog", + "modifiedBy": "AzureDataCatalog", + "lastUpdatedTimestamp": 0, + "disableRecursiveReplacerApplication": false + }, + { + "name": "NumberBetweenDelimiter", + "disabled": false, + "description": null, + "regex": { + "regexStr": "(?<=[-\\._@])([\\d]+)(?=[-\\._@])|^(\\d+)(?=[-\\._@])|(?<=[-\\._@])(\\d+)$", + "options": 8, + "minDigits": 1 + }, + "replaceWith": "{N}", + "doNotReplaceRegex": { + "regexStr": "(?<=[-\\._@]|^)[v](\\d+)[\\.](\\d+)[\\.]?(\\d+)?(?=[-\\._@]|$)", + "options": 9, + "minDigits": 1, + "minLetters": 1 + }, + "createdBy": "AzureDataCatalog", + "modifiedBy": "AzureDataCatalog", + "lastUpdatedTimestamp": 0, + "disableRecursiveReplacerApplication": false, + "condition": "ApplyToFileNameOrNonVersionString" + }, + { + "name": "4ByteHex", + "disabled": false, + "description": null, + "regex": { + "regexStr": "(?<=[-\\._@]|^)([0-9A-F]{8,16})(?=[-\\._@]|$)", + "options": 9, + "minDigitsOrLetters": 8 + }, + "replaceWith": "{HEX}", + "doNotReplaceRegex": { + "regexStr": "(?<=[-\\._@]|^)[v](\\d+)[\\.](\\d+)[\\.]?(\\d+)?(?=[-\\._@]|$)", + "options": 9, + "minDigits": 1, + "minLetters": 1 + }, + "createdBy": "AzureDataCatalog", + "modifiedBy": "AzureDataCatalog", + "lastUpdatedTimestamp": 0, + "disableRecursiveReplacerApplication": false + }, + { + "name": "NumberInFile", + "disabled": false, + "description": null, + "regex": { + "regexStr": "(\\d+)", + "options": 8, + "minDigits": 1 + }, + "replaceWith": "{N}", + "doNotReplaceRegex": { + "regexStr": "(?<=[-\\._@]|^)[v](\\d+)[\\.](\\d+)[\\.]?(\\d+)?(?=[-\\._@]|$)", + "options": 9, + "minDigits": 1, + "minLetters": 1 + }, + "createdBy": "AzureDataCatalog", + "modifiedBy": "AzureDataCatalog", + "lastUpdatedTimestamp": 0, + "disableRecursiveReplacerApplication": false, + "condition": "ApplyToFileName" + }, + { + "name": "Localization(DashSeparated)", + "disabled": false, + "description": null, + "regex": { + "regexStr": "(?<=[-\\._@]|^)(ar-eg|ar-sa|cy-gb|da-dk|de-at|de-ch|de-de|en-au|en-ca|en-gb|en-ie|en-in|en-my|en-nz|en-ph|en-sg|en-us|en-ww|en-xa|en-za|es-ar|es-cl|es-es|es-mx|es-us|es-xl|fi-fi|fr-be|fr-ca|fr-ch|fr-fr|gu-in|hi-in|id-id|it-it|ja-jp|nb-no|nl-nl|nl-be|pt-br|pt-pt|pl-pl|ru-ru|sv-se|ta-in|te-in|zh-cn|zh-hk|zh-tw|ko-kr|tr-tr)(?=[-\\._@]|$)", + "options": 9, + "minLetters": 4, + "minDashes": 1 + }, + "replaceWith": "{LOC}", + "createdBy": "AzureDataCatalog", + "modifiedBy": "AzureDataCatalog", + "lastUpdatedTimestamp": 0, + "disableRecursiveReplacerApplication": false + }, + { + "name": "Localization(UnderscoreSeparated)", + "disabled": false, + "description": null, + "regex": { + "regexStr": "(?<=[-\\._@]|^)(ar_eg|ar_sa|cy_gb|da_dk|de_at|de_ch|de_de|en_au|en_ca|en_gb|en_ie|en_in|en_my|en_nz|en_ph|en_sg|en_us|en_ww|en_xa|en_za|es_ar|es_cl|es_es|es_mx|es_us|es_xl|fi_fi|fr_be|fr_ca|fr_ch|fr_fr|gu_in|hi_in|id_id|it_it|ja_jp|nb_no|nl_nl|nl_be|pt_br|pt_pt|pl_pl|ru_ru|sv_se|ta_in|te_in|zh_cn|zh_hk|zh_tw|ko_kr|tr_tr)(?=[-\\._@]|$)", + "options": 9, + "minLetters": 4, + "minUnderscores": 1 + }, + "replaceWith": "{LOC}", + "createdBy": "AzureDataCatalog", + "modifiedBy": "AzureDataCatalog", + "lastUpdatedTimestamp": 0, + "disableRecursiveReplacerApplication": false + } + ], + "complexReplacers": [ + { + "name": "SparkPath", + "disabled": false, + "description": null, + "createdBy": "AzureDataCatalog", + "modifiedBy": "AzureDataCatalog", + "lastUpdatedTimestamp": 0, + "disableRecursiveReplacerApplication": false, + "typeName": "Microsoft.DataMap.PathPattern.SparkPathReplacer" + } + ] + }, + "advancedResourceSet": { + "resourceSetProcessing": "Default", + "modifiedAt": "2021-07-08T23:14:06.4084575Z" + } + } + ] + } + } + } +} diff --git a/specification/purview/data-plane/Azure.Analytics.Purview.Account/readme.md b/specification/purview/data-plane/Azure.Analytics.Purview.Account/readme.md index befe41ceb425..1569b75ba790 100644 --- a/specification/purview/data-plane/Azure.Analytics.Purview.Account/readme.md +++ b/specification/purview/data-plane/Azure.Analytics.Purview.Account/readme.md @@ -1,34 +1,42 @@ -# Purview - +# ProjectBabylon + > see https://aka.ms/autorest -This is the AutoRest configuration file for Purview Account Service. +This is the AutoRest configuration file for ProjectBabylon Account Management Service. ---- -## Getting Started -To build the SDK for Purview Account Service, simply [Install AutoRest](https://aka.ms/autorest/install) and in this folder, run: +--- +## Getting Started +To build the SDK for ProjectBabylon Account Management Service, simply [Install AutoRest](https://aka.ms/autorest/install) and in this folder, run: > `autorest` To see additional help and options, run: > `autorest --help` - --- ## Configuration -### Basic Information -These are the global settings for the Azure Purview Account API. + + +### Basic Information +These are the global settings for the ProjectBabylon Account Management Service API. ``` yaml openapi-type: data-plane -tag: package-2019-11-01-preview -title: PurviewAccountClient +tag: package-2023-10-01-preview ``` +### Tag: package-2023-10-01-preview + +These settings apply only when `--tag=package-2023-10-01-preview` is specified on the command line. + +``` yaml $(tag) == 'package-2023-10-01-preview' +input-file: +- preview/2023-10-01-preview/account.json +``` ### Tag: package-2019-11-01-preview @@ -38,3 +46,60 @@ These settings apply only when `--tag=package-2019-11-01-preview` is specified o input-file: - preview/2019-11-01-preview/account.json ``` + +--- +# Code Generation + + +## Swagger to SDK + +This section describes what SDK should be generated by the automatic system. +This is not used by Autorest itself. + +``` yaml $(swagger-to-sdk) +swagger-to-sdk: + - repo: azure-sdk-for-python +``` + + +## C# + +These settings apply only when `--csharp` is specified on the command line. +Please also specify `--csharp-sdks-folder=`. + +``` yaml $(csharp) +csharp: + azure-arm: true + license-header: MICROSOFT_MIT_NO_VERSION + namespace: Microsoft.Azure.Management.ProjectBabylon + output-folder: $(csharp-sdks-folder)/ProjectBabylon/Management.ProjectBabylon/Generated + clear-output-folder: true +``` + +## Python + +These settings apply only when `--python` is specified on the command line. +Please also specify `--python-sdks-folder=`. +Use `--python-mode=update` if you already have a setup.py and just want to update the code itself. + +``` yaml $(python) +python-mode: create +python: + azure-arm: true + license-header: MICROSOFT_MIT_NO_VERSION + payload-flattening-threshold: 2 + namespace: azure.mgmt.ProjectBabylon + package-name: azure-mgmt-ProjectBabylon + clear-output-folder: true +``` +``` yaml $(python) && $(python-mode) == 'update' +python: + no-namespace-folders: true + output-folder: $(python-sdks-folder)/azure-mgmt-ProjectBabylon/azure/mgmt/ProjectBabylon +``` +``` yaml $(python) && $(python-mode) == 'create' +python: + basic-setup-py: true + output-folder: $(python-sdks-folder)/azure-mgmt-ProjectBabylon +``` +