diff --git a/specification/purview/resource-manager/Microsoft.Purview/Purview/Account.tsp b/specification/purview/resource-manager/Microsoft.Purview/Purview/Account.tsp new file mode 100644 index 000000000000..2c7c40afa68c --- /dev/null +++ b/specification/purview/resource-manager/Microsoft.Purview/Purview/Account.tsp @@ -0,0 +1,200 @@ +import "@azure-tools/typespec-azure-core"; +import "@azure-tools/typespec-azure-resource-manager"; +import "@typespec/openapi"; +import "@typespec/rest"; +import "./models.tsp"; + +using TypeSpec.Rest; +using Azure.ResourceManager; +using TypeSpec.Http; +using TypeSpec.OpenAPI; + +namespace Microsoft.Purview; +/** + * Account resource + */ +#suppress "@azure-tools/typespec-azure-core/no-legacy-usage" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" +model Account + is Azure.ResourceManager.Legacy.TrackedResourceWithOptionalLocation { + ...ResourceNameParameter< + Resource = Account, + KeyName = "accountName", + SegmentName = "accounts", + NamePattern = "^[A-Za-z0-9]+(?:-[A-Za-z0-9]+)*$" + >; + + /** + * The Managed Identity of the resource + */ + #suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-invalid-envelope-property" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" + identity?: Identity; + + /** + * Gets or sets the Sku. + */ + #suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-invalid-envelope-property" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" + sku?: AccountSku; +} + +@armResourceOperations +interface Accounts { + /** + * Get an account + */ + @summary("Gets the account resource.") + get is ArmResourceRead; + + /** + * Creates or updates an account + */ + @summary("Create or update an account resource.") + createOrUpdate is ArmResourceCreateOrReplaceAsync< + Account, + LroHeaders = ArmLroLocationHeader & + Azure.Core.Foundations.RetryAfterHeader, + Error = ErrorResponseModel + >; + + /** + * Updates an account + */ + #suppress "@azure-tools/typespec-azure-resource-manager/no-response-body" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" + @summary("Patches the account resource.") + @patch(#{ implicitOptionality: false }) + update is ArmCustomPatchAsync< + Account, + PatchModel = AccountUpdateParameters, + Response = ArmResponse | (ArmAcceptedLroResponse & + Azure.Core.Foundations.RetryAfterHeader> & { + @bodyRoot + _: Account; + }), + Error = ErrorResponseModel + >; + + /** + * Deletes an account resource + */ + #suppress "@azure-tools/typespec-azure-resource-manager/arm-delete-operation-response-codes" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" + @summary("Deletes the account resource.") + delete is ArmResourceDeleteWithoutOkAsync< + Account, + Response = ArmDeletedResponse | ArmDeleteAcceptedLroResponse | ArmDeletedNoContentResponse, + Error = ErrorResponseModel + >; + + /** + * List accounts in ResourceGroup + */ + @summary("Gets the accounts resources by resource group.") + listByResourceGroup is ArmResourceListByParent< + Account, + Parameters = { + /** + * The skip token. + */ + @query("$skipToken") + $skipToken?: string; + }, + Response = ArmResponse, + Error = ErrorResponseModel + >; + + /** + * List accounts in Subscription + */ + @summary("Gets the accounts resources by subscription.") + listBySubscription is ArmListBySubscription< + Account, + Parameters = { + /** + * The skip token. + */ + @query("$skipToken") + $skipToken?: string; + }, + Response = ArmResponse, + Error = ErrorResponseModel + >; + + /** + * Add the administrator for root collection associated with this account. + */ + @summary("Add the administrator for root collection.") + addRootCollectionAdmin is ArmResourceActionSync< + Account, + CollectionAdminUpdate, + OkResponse, + Error = ErrorResponseModel + >; + + /** + * List the authorization keys associated with this account. + */ + @summary("Lists the keys asynchronous.") + @action("listkeys") + listKeys is ArmResourceActionSync< + Account, + void, + ArmResponse, + Error = ErrorResponseModel + >; + + /** + * Gets details from a list of feature names. + */ + #suppress "@azure-tools/typespec-azure-core/no-openapi" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" + @summary("Gets a list of features and their status for the account.\r\nStatus of enabled features will be true. Status of disabled features will be false.\r\nFeatures that don't exist will be excluded from the results.") + @operationId("Features_AccountGet") + @action("listFeatures") + accountGet is ArmResourceActionSync< + Account, + BatchFeatureRequest, + ArmResponse, + Error = ErrorResponseModel + >; + + /** + * Lists all ingestion private endpoint connections + */ + #suppress "@azure-tools/typespec-azure-core/no-openapi" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" + @summary("Lists all ingestion private endpoint connections.") + @operationId("IngestionPrivateEndpointConnections_List") + @list + @get + @action("ingestionPrivateEndpointConnections") + list is ArmResourceActionSync< + Account, + void, + ArmResponse, + Error = ErrorResponseModel + >; + + /** + * Update ingestion private endpoint connection status + */ + #suppress "@azure-tools/typespec-azure-core/no-openapi" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" + @summary("Updates ingestion private endpoint connection status.") + @operationId("IngestionPrivateEndpointConnections_UpdateStatus") + @action("ingestionPrivateEndpointConnectionStatus") + updateStatus is ArmResourceActionSync< + Account, + PrivateEndpointConnectionStatusUpdateRequest, + ArmResponse, + Error = ErrorResponseModel + >; +} + +@@maxLength(Account.name, 63); +@@minLength(Account.name, 3); +@@doc(Account.name, "The name of the account."); +@@doc(Account.properties, "The account properties"); +@@doc(Accounts.createOrUpdate::parameters.resource, "The account."); +@@doc(Accounts.update::parameters.properties, "The account update parameters."); +@@doc(Accounts.addRootCollectionAdmin::parameters.body, + "The collection admin update payload." +); +@@doc(Accounts.accountGet::parameters.body, "Request body with feature names."); +@@doc(Accounts.updateStatus::parameters.body, + "The ingestion private endpoint connection status update request." +); diff --git a/specification/purview/resource-manager/Microsoft.Purview/Purview/KafkaConfiguration.tsp b/specification/purview/resource-manager/Microsoft.Purview/Purview/KafkaConfiguration.tsp new file mode 100644 index 000000000000..8ef039ab6e3b --- /dev/null +++ b/specification/purview/resource-manager/Microsoft.Purview/Purview/KafkaConfiguration.tsp @@ -0,0 +1,80 @@ +import "@azure-tools/typespec-azure-core"; +import "@azure-tools/typespec-azure-resource-manager"; +import "@typespec/openapi"; +import "@typespec/rest"; +import "./models.tsp"; +import "./Account.tsp"; + +using TypeSpec.Rest; +using Azure.ResourceManager; +using TypeSpec.Http; +using TypeSpec.OpenAPI; + +namespace Microsoft.Purview; +/** + * The configuration of the event streaming service resource attached to the Purview account for kafka notifications. + */ +@parentResource(Account) +model KafkaConfiguration + is Azure.ResourceManager.ProxyResource { + ...ResourceNameParameter< + Resource = KafkaConfiguration, + KeyName = "kafkaConfigurationName", + SegmentName = "kafkaConfigurations", + NamePattern = "^[A-Za-z0-9]+(?:-[A-Za-z0-9]+)*$" + >; +} + +@armResourceOperations +interface KafkaConfigurations { + /** + * Gets the kafka configuration for the account + */ + @summary("Gets the kafka configuration.") + get is ArmResourceRead; + + /** + * Create or update Kafka Configuration + */ + @summary("Create or update the kafka configuration.") + createOrUpdate is ArmResourceCreateOrReplaceSync< + KafkaConfiguration, + Error = ErrorResponseModel + >; + + /** + * Deletes a KafkaConfiguration resource. + */ + @summary("Deletes the kafka configuration on the account.") + delete is ArmResourceDeleteSync< + KafkaConfiguration, + Error = ErrorResponseModel + >; + + /** + * Lists the Kafka configurations in the Account + */ + @summary("Gets the list of Kafka configurations for the account.") + listByAccount is ArmResourceListByParent< + KafkaConfiguration, + Parameters = { + /** + * The skip token. + */ + @query("$skipToken") + $skipToken?: string; + }, + Response = ArmResponse, + Error = ErrorResponseModel + >; +} + +@@maxLength(KafkaConfiguration.name, 63); +@@minLength(KafkaConfiguration.name, 3); +@@doc(KafkaConfiguration.name, "Name of kafka configuration."); +@@doc(KafkaConfiguration.properties, + "The kafka configuration properties of the event streaming service attached to the Purview account for kafka notifications." +); +@@doc(KafkaConfigurations.createOrUpdate::parameters.resource, + "The kafka configuration of the account." +); diff --git a/specification/purview/resource-manager/Microsoft.Purview/Purview/PrivateEndpointConnection.tsp b/specification/purview/resource-manager/Microsoft.Purview/Purview/PrivateEndpointConnection.tsp new file mode 100644 index 000000000000..430fd0063986 --- /dev/null +++ b/specification/purview/resource-manager/Microsoft.Purview/Purview/PrivateEndpointConnection.tsp @@ -0,0 +1,82 @@ +import "@azure-tools/typespec-azure-core"; +import "@azure-tools/typespec-azure-resource-manager"; +import "@typespec/openapi"; +import "@typespec/rest"; +import "./models.tsp"; +import "./Account.tsp"; + +using TypeSpec.Rest; +using Azure.ResourceManager; +using TypeSpec.Http; +using TypeSpec.OpenAPI; + +namespace Microsoft.Purview; +/** + * A private endpoint connection class. + */ +@parentResource(Account) +model PrivateEndpointConnection + is Azure.ResourceManager.ProxyResource { + ...ResourceNameParameter< + Resource = PrivateEndpointConnection, + KeyName = "privateEndpointConnectionName", + SegmentName = "privateEndpointConnections", + NamePattern = "" + >; +} + +@armResourceOperations +interface PrivateEndpointConnections { + /** + * Get a private endpoint connection + */ + @summary("Gets private endpoint connection information.") + get is ArmResourceRead; + + /** + * Create or update a private endpoint connection + */ + @summary("Approves/Rejects private endpoint connection request.") + createOrUpdate is ArmResourceCreateOrReplaceAsync< + PrivateEndpointConnection, + LroHeaders = ArmLroLocationHeader & + Azure.Core.Foundations.RetryAfterHeader, + Error = ErrorResponseModel + >; + + /** + * Delete a private endpoint connection + */ + #suppress "@azure-tools/typespec-azure-resource-manager/arm-delete-operation-response-codes" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" + @summary("Deletes private endpoint connection.") + delete is ArmResourceDeleteWithoutOkAsync< + PrivateEndpointConnection, + Response = ArmDeletedResponse | ArmDeleteAcceptedLroResponse | ArmDeletedNoContentResponse, + Error = ErrorResponseModel + >; + + /** + * Get private endpoint connections for account + */ + @summary("Gets private endpoint connections.") + listByAccount is ArmResourceListByParent< + PrivateEndpointConnection, + Parameters = { + /** + * The skip token. + */ + @query("$skipToken") + $skipToken?: string; + }, + Response = ArmResponse, + Error = ErrorResponseModel + >; +} + +@@doc(PrivateEndpointConnection.name, + "Name of the private endpoint connection." +); +@@doc(PrivateEndpointConnection.properties, "The connection identifier."); +@@doc(PrivateEndpointConnections.createOrUpdate::parameters.resource, + "The request." +); diff --git a/specification/purview/resource-manager/Microsoft.Purview/Purview/PrivateLinkResource.tsp b/specification/purview/resource-manager/Microsoft.Purview/Purview/PrivateLinkResource.tsp new file mode 100644 index 000000000000..8d90327e897d --- /dev/null +++ b/specification/purview/resource-manager/Microsoft.Purview/Purview/PrivateLinkResource.tsp @@ -0,0 +1,51 @@ +import "@azure-tools/typespec-azure-core"; +import "@azure-tools/typespec-azure-resource-manager"; +import "@typespec/openapi"; +import "@typespec/rest"; +import "./models.tsp"; +import "./Account.tsp"; + +using TypeSpec.Rest; +using Azure.ResourceManager; +using TypeSpec.Http; +using TypeSpec.OpenAPI; + +namespace Microsoft.Purview; +/** + * A privately linkable resource. + */ +@parentResource(Account) +model PrivateLinkResource + is Azure.ResourceManager.ProxyResource { + ...ResourceNameParameter< + Resource = PrivateLinkResource, + KeyName = "groupId", + SegmentName = "privateLinkResources", + NamePattern = "" + >; +} + +@armResourceOperations +interface PrivateLinkResources { + /** + * Gets a privately linkable resources for an account with given group identifier + */ + @summary("Gets a privately linkable resources for an account with given group identifier.") + getByGroupId is ArmResourceRead< + PrivateLinkResource, + Error = ErrorResponseModel + >; + + /** + * Gets a list of privately linkable resources for an account + */ + @summary("Gets a list of privately linkable resources for an account.") + listByAccount is ArmResourceListByParent< + PrivateLinkResource, + Response = ArmResponse, + Error = ErrorResponseModel + >; +} + +@@doc(PrivateLinkResource.name, "The group identifier."); +@@doc(PrivateLinkResource.properties, "The private link resource properties."); diff --git a/specification/purview/resource-manager/Microsoft.Purview/Purview/back-compatible.tsp b/specification/purview/resource-manager/Microsoft.Purview/Purview/back-compatible.tsp new file mode 100644 index 000000000000..150695266a58 --- /dev/null +++ b/specification/purview/resource-manager/Microsoft.Purview/Purview/back-compatible.tsp @@ -0,0 +1,60 @@ +import "@azure-tools/typespec-client-generator-core"; + +using Azure.ClientGenerator.Core; +using Microsoft.Purview; + +#suppress "@azure-tools/typespec-azure-core/no-legacy-usage" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" +@@Legacy.flattenProperty(AccountUpdateParameters.properties); + +#suppress "@azure-tools/typespec-azure-core/no-legacy-usage" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" +@@Legacy.flattenProperty(Operation.properties); + +#suppress "@azure-tools/typespec-azure-core/no-legacy-usage" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" +@@Legacy.flattenProperty(Consent.properties); + +@@clientName(Accounts.createOrUpdate::parameters.resource, "account"); +@@clientName(Accounts.update::parameters.properties, "accountUpdateParameters"); +@@clientName(Accounts.addRootCollectionAdmin::parameters.body, + "collectionAdminUpdate" +); +@@clientLocation(Accounts.accountGet, "Features"); +@@clientName(Accounts.accountGet::parameters.body, "featureRequest"); +@@clientLocation(Accounts.list, "IngestionPrivateEndpointConnections"); +@@clientLocation(Accounts.updateStatus, "IngestionPrivateEndpointConnections"); +@@clientName(Accounts.updateStatus::parameters.body, "request"); +#suppress "@azure-tools/typespec-azure-core/no-legacy-usage" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" +@@Legacy.flattenProperty(Account.properties); + +@@clientName(PrivateEndpointConnections.createOrUpdate::parameters.resource, + "request" +); +#suppress "@azure-tools/typespec-azure-core/no-legacy-usage" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" +@@Legacy.flattenProperty(PrivateEndpointConnection.properties); + +@@clientName(KafkaConfigurations.createOrUpdate::parameters.resource, + "kafkaConfiguration" +); +#suppress "@azure-tools/typespec-azure-core/no-legacy-usage" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" +@@Legacy.flattenProperty(KafkaConfiguration.properties); + +#suppress "@azure-tools/typespec-azure-core/no-legacy-usage" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" +@@Legacy.flattenProperty(PrivateLinkResource.properties); + +@@clientLocation(AccountsOperationGroup.checkNameAvailability, Accounts); + +@@clientLocation(DefaultAccountsOperationGroup.get, "DefaultAccounts"); +@@clientLocation(DefaultAccountsOperationGroup.remove, "DefaultAccounts"); +@@clientLocation(DefaultAccountsOperationGroup.set, "DefaultAccounts"); + +@@clientLocation(FeaturesOperationGroup.subscriptionGet, "Features"); + +@@clientLocation(UsagesOperationGroup.get, "Usages"); +@@clientName(DefaultAccountsOperationGroup.set::parameters.body, + "defaultAccountPayload" +); +@@clientName(AccountsOperationGroup.checkNameAvailability::parameters.body, + "checkNameAvailabilityRequest" +); +@@clientName(FeaturesOperationGroup.subscriptionGet::parameters.body, + "featureRequest" +); diff --git a/specification/purview/resource-manager/Microsoft.Purview/Purview/client.tsp b/specification/purview/resource-manager/Microsoft.Purview/Purview/client.tsp new file mode 100644 index 000000000000..8900e23f97af --- /dev/null +++ b/specification/purview/resource-manager/Microsoft.Purview/Purview/client.tsp @@ -0,0 +1,12 @@ +import "@azure-tools/typespec-client-generator-core"; +import "./main.tsp"; + +using Azure.ClientGenerator.Core; + +@@clientName(Microsoft.Purview, "PurviewManagementClient", "javascript,python"); +@@clientName(Microsoft.Purview.AccountSkuName, "Name", "java"); +@@clientName(Microsoft.Purview.PrivateEndpointConnectionStatus, + "Status", + "java" +); +@@clientName(Microsoft.Purview.ManagedIdentityType, "Type", "java"); diff --git a/specification/purview/resource-manager/Microsoft.Purview/Purview/examples/2024-04-01-preview/Accounts_AddRootCollectionAdmin.json b/specification/purview/resource-manager/Microsoft.Purview/Purview/examples/2024-04-01-preview/Accounts_AddRootCollectionAdmin.json new file mode 100644 index 000000000000..4626738850df --- /dev/null +++ b/specification/purview/resource-manager/Microsoft.Purview/Purview/examples/2024-04-01-preview/Accounts_AddRootCollectionAdmin.json @@ -0,0 +1,24 @@ +{ + "parameters": { + "accountName": "account1", + "api-version": "2024-04-01-preview", + "collectionAdminUpdate": { + "objectId": "7e8de0e7-2bfc-4e1f-9659-2a5785e4356f" + }, + "resourceGroupName": "SampleResourceGroup", + "subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345" + }, + "responses": { + "200": { + "headers": { + "Date": "Wed, 13 Sep 2017 18:04:32 GMT", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "25c78f97-0b0a-4fe9-ad39-883a482265cd", + "x-ms-ratelimit-remaining-tenant-reads": "14999", + "x-ms-request-id": "d5496da4-9c52-402f-b067-83cc9ddea888" + } + } + }, + "operationId": "Accounts_AddRootCollectionAdmin", + "title": "Accounts_AddRootCollectionAdmin" +} diff --git a/specification/purview/resource-manager/Microsoft.Purview/Purview/examples/2024-04-01-preview/Accounts_CheckNameAvailability.json b/specification/purview/resource-manager/Microsoft.Purview/Purview/examples/2024-04-01-preview/Accounts_CheckNameAvailability.json new file mode 100644 index 000000000000..02b2562d62e8 --- /dev/null +++ b/specification/purview/resource-manager/Microsoft.Purview/Purview/examples/2024-04-01-preview/Accounts_CheckNameAvailability.json @@ -0,0 +1,26 @@ +{ + "parameters": { + "api-version": "2024-04-01-preview", + "checkNameAvailabilityRequest": { + "name": "account1", + "type": "Microsoft.Purview/accounts" + }, + "subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345" + }, + "responses": { + "200": { + "body": { + "nameAvailable": true + }, + "headers": { + "Date": "Wed, 13 Sep 2017 18:04:32 GMT", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "25c78f97-0b0a-4fe9-ad39-883a482265cd", + "x-ms-ratelimit-remaining-tenant-reads": "14999", + "x-ms-request-id": "d5496da4-9c52-402f-b067-83cc9ddea888" + } + } + }, + "operationId": "Accounts_CheckNameAvailability", + "title": "Accounts_CheckNameAvailability" +} diff --git a/specification/purview/resource-manager/Microsoft.Purview/Purview/examples/2024-04-01-preview/Accounts_CreateOrUpdate.json b/specification/purview/resource-manager/Microsoft.Purview/Purview/examples/2024-04-01-preview/Accounts_CreateOrUpdate.json new file mode 100644 index 000000000000..88ca28a6d5ce --- /dev/null +++ b/specification/purview/resource-manager/Microsoft.Purview/Purview/examples/2024-04-01-preview/Accounts_CreateOrUpdate.json @@ -0,0 +1,100 @@ +{ + "parameters": { + "account": { + "location": "West US 2" + }, + "accountName": "account1", + "api-version": "2024-04-01-preview", + "resourceGroupName": "SampleResourceGroup", + "subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345" + }, + "responses": { + "200": { + "body": { + "name": "account1", + "type": "Microsoft.Purview/accounts", + "id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/SampleResourceGroup/providers/Microsoft.Purview/accounts/account1", + "location": "West US 2", + "properties": { + "accountStatus": { + "accountProvisioningState": "Succeeded", + "errorDetails": {} + }, + "endpoints": { + "catalog": "https://account1.catalog.purview.azure-test.com", + "scan": "https://account1.scan.purview.azure-test.com" + }, + "friendlyName": "friendly-account1", + "ingestionStorage": { + "id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/ingestion-storage-rg-mwjotkl", + "primaryEndpoint": "https://ingestioneastusddnpkar.z31.blob.storage.azure.net/", + "publicNetworkAccess": "Enabled" + }, + "managedResourceGroupName": "custom-rgname", + "managedResources": { + "eventHubNamespace": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/custom-rgname/providers/Microsoft.EventHub/namespaces/atlas-westusdddnbtp", + "resourceGroup": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/custom-rgname", + "storageAccount": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/custom-rgname/providers/Microsoft.Storage/storageAccounts/scanwestustzaagzr" + }, + "managedResourcesPublicNetworkAccess": "Enabled", + "provisioningState": "Succeeded", + "publicNetworkAccess": "Enabled", + "tenantEndpointState": "Disabled" + }, + "sku": { + "name": "Standard", + "capacity": 1 + }, + "systemData": { + "createdAt": "2019-11-22T18:39:58.6929344Z", + "createdBy": "client-name", + "createdByType": "User", + "lastModifiedAt": "2021-03-16T23:24:34.3430059Z", + "lastModifiedBy": "client-name", + "lastModifiedByType": "User" + } + }, + "headers": { + "Date": "Wed, 13 Sep 2017 18:04:32 GMT", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "25c78f97-0b0a-4fe9-ad39-883a482265cd", + "x-ms-ratelimit-remaining-tenant-reads": "14999", + "x-ms-request-id": "d5496da4-9c52-402f-b067-83cc9ddea888" + } + }, + "201": { + "body": { + "name": "account1", + "type": "Microsoft.Purview/accounts", + "id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/SampleResourceGroup/providers/Microsoft.Purview/accounts/account1", + "location": "West US 2", + "properties": { + "accountStatus": { + "accountProvisioningState": "Succeeded", + "errorDetails": {} + }, + "endpoints": { + "catalog": "https://account1.catalog.purview.azure-test.com", + "scan": "https://account1.scan.purview.azure-test.com" + }, + "friendlyName": "friendly-account1", + "provisioningState": "Creating", + "publicNetworkAccess": "Enabled" + }, + "sku": { + "name": "Standard", + "capacity": 1 + } + }, + "headers": { + "Date": "Wed, 13 Sep 2017 18:04:32 GMT", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "25c78f97-0b0a-4fe9-ad39-883a482265cd", + "x-ms-ratelimit-remaining-tenant-reads": "14999", + "x-ms-request-id": "d5496da4-9c52-402f-b067-83cc9ddea888" + } + } + }, + "operationId": "Accounts_CreateOrUpdate", + "title": "Accounts_CreateOrUpdate" +} diff --git a/specification/purview/resource-manager/Microsoft.Purview/Purview/examples/2024-04-01-preview/Accounts_Delete.json b/specification/purview/resource-manager/Microsoft.Purview/Purview/examples/2024-04-01-preview/Accounts_Delete.json new file mode 100644 index 000000000000..887562763db2 --- /dev/null +++ b/specification/purview/resource-manager/Microsoft.Purview/Purview/examples/2024-04-01-preview/Accounts_Delete.json @@ -0,0 +1,41 @@ +{ + "parameters": { + "accountName": "account1", + "api-version": "2024-04-01-preview", + "resourceGroupName": "SampleResourceGroup", + "subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345" + }, + "responses": { + "200": { + "headers": { + "Date": "Wed, 13 Sep 2017 18:04:32 GMT", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "25c78f97-0b0a-4fe9-ad39-883a482265cd", + "x-ms-ratelimit-remaining-tenant-reads": "14999", + "x-ms-request-id": "d5496da4-9c52-402f-b067-83cc9ddea888" + } + }, + "202": { + "headers": { + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/SampleResourceGroup/providers/Microsoft.Purview/accounts/account1/operationResults/dad6baec-3a39-41df-a469-843a9ee94213?api-version=2021-07-01", + "Date": "Wed, 13 Sep 2017 18:04:32 GMT", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "25c78f97-0b0a-4fe9-ad39-883a482265cd", + "x-ms-long-running-operation": true, + "x-ms-ratelimit-remaining-tenant-reads": "14999", + "x-ms-request-id": "d5496da4-9c52-402f-b067-83cc9ddea888" + } + }, + "204": { + "headers": { + "Date": "Wed, 13 Sep 2017 18:04:32 GMT", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "25c78f97-0b0a-4fe9-ad39-883a482265cd", + "x-ms-ratelimit-remaining-tenant-reads": "14999", + "x-ms-request-id": "d5496da4-9c52-402f-b067-83cc9ddea888" + } + } + }, + "operationId": "Accounts_Delete", + "title": "Accounts_Delete" +} diff --git a/specification/purview/resource-manager/Microsoft.Purview/Purview/examples/2024-04-01-preview/Accounts_Get.json b/specification/purview/resource-manager/Microsoft.Purview/Purview/examples/2024-04-01-preview/Accounts_Get.json new file mode 100644 index 000000000000..ca6ec9ae970b --- /dev/null +++ b/specification/purview/resource-manager/Microsoft.Purview/Purview/examples/2024-04-01-preview/Accounts_Get.json @@ -0,0 +1,93 @@ +{ + "parameters": { + "accountName": "account1", + "api-version": "2024-04-01-preview", + "resourceGroupName": "SampleResourceGroup", + "subscriptionId": "12345678-1234-1234-12345678abc" + }, + "responses": { + "200": { + "body": { + "name": "account1", + "type": "Microsoft.Purview/accounts", + "id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/SampleResourceGroup/providers/Microsoft.Purview/accounts/account1", + "location": "West US 2", + "properties": { + "accountStatus": { + "accountProvisioningState": "Succeeded", + "errorDetails": {} + }, + "defaultDomain": "account1", + "endpoints": { + "catalog": "https://account1.catalog.purview.azure-test.com", + "scan": "https://account1.scan.purview.azure-test.com" + }, + "friendlyName": "friendly-account1", + "ingestionStorage": { + "id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/ingestion-storage-rg-mwjotkl", + "primaryEndpoint": "https://ingestioneastusddnpkar.z31.blob.storage.azure.net/", + "publicNetworkAccess": "Enabled" + }, + "managedResourceGroupName": "managed-rg-mwjotkl", + "managedResources": { + "eventHubNamespace": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/managed-rg-mwjotkl/providers/Microsoft.EventHub/namespaces/atlas-westusdddnbtp", + "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" + }, + "managedResourcesPublicNetworkAccess": "Enabled", + "mergeInfo": { + "accountLocation": "westus2", + "accountName": "otherAccount", + "accountResourceGroupName": "otherAccountRG", + "accountSubscriptionId": "92d4ce06-0032-4e6b-9103-88ba3e159551", + "deprovisioned": false, + "mergeStatus": "Succeeded", + "typeOfAccount": "Secondary" + }, + "privateEndpointConnections": [ + { + "name": "peName-8536c337-7b36-4d67-a7ce-081655baf59e", + "type": "Microsoft.Purview/accounts/privateEndpointConnections", + "id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/SampleResourceGroup/providers/Microsoft.Purview/accounts/account1/privateEndpointConnections/peName-8536c337-7b36-4d67-a7ce-081655baf59e", + "properties": { + "privateEndpoint": { + "id": "/subscriptions/baca8a88-4527-4c35-a13e-b2775ce0d7fc/resourceGroups/nrpResourceGroupName/providers/Microsoft.Network/privateEndpoints/peName" + }, + "privateLinkServiceConnectionState": { + "description": "Please approve my connection, thanks.", + "actionsRequired": "None", + "status": "Pending" + }, + "provisioningState": "Succeeded" + } + } + ], + "provisioningState": "Succeeded", + "publicNetworkAccess": "Enabled", + "tenantEndpointState": "Disabled" + }, + "sku": { + "name": "Standard", + "capacity": 1 + }, + "systemData": { + "createdAt": "2019-11-22T18:39:58.6929344Z", + "createdBy": "client-name", + "createdByType": "User", + "lastModifiedAt": "2021-03-16T23:24:34.3430059Z", + "lastModifiedBy": "client-name", + "lastModifiedByType": "User" + } + }, + "headers": { + "Date": "Wed, 13 Sep 2017 18:04:32 GMT", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "25c78f97-0b0a-4fe9-ad39-883a482265cd", + "x-ms-ratelimit-remaining-tenant-reads": "14999", + "x-ms-request-id": "d5496da4-9c52-402f-b067-83cc9ddea888" + } + } + }, + "operationId": "Accounts_Get", + "title": "Accounts_Get" +} diff --git a/specification/purview/resource-manager/Microsoft.Purview/Purview/examples/2024-04-01-preview/Accounts_ListByResourceGroup.json b/specification/purview/resource-manager/Microsoft.Purview/Purview/examples/2024-04-01-preview/Accounts_ListByResourceGroup.json new file mode 100644 index 000000000000..570f67614348 --- /dev/null +++ b/specification/purview/resource-manager/Microsoft.Purview/Purview/examples/2024-04-01-preview/Accounts_ListByResourceGroup.json @@ -0,0 +1,146 @@ +{ + "parameters": { + "api-version": "2024-04-01-preview", + "resourceGroupName": "SampleResourceGroup", + "subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "account1", + "type": "Microsoft.Purview/accounts", + "id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/SampleResourceGroup/providers/Microsoft.Purview/accounts/account1", + "location": "West US 2", + "properties": { + "accountStatus": { + "accountProvisioningState": "Succeeded", + "errorDetails": {} + }, + "endpoints": { + "catalog": "https://account1.catalog.purview.azure-test.com", + "scan": "https://account1.scan.purview.azure-test.com" + }, + "friendlyName": "friendly-account1", + "ingestionStorage": { + "id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/ingestion-storage-rg-mwjotkl", + "primaryEndpoint": "https://ingestioneastusddnpkar.z31.blob.storage.azure.net/", + "publicNetworkAccess": "Enabled" + }, + "managedResourceGroupName": "managed-rg-mwjotkl", + "managedResources": { + "eventHubNamespace": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/managed-rg-mwjotkl/providers/Microsoft.EventHub/namespaces/atlas-westusdddnbtp", + "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" + }, + "managedResourcesPublicNetworkAccess": "Enabled", + "privateEndpointConnections": [ + { + "name": "peName-8536c337-7b36-4d67-a7ce-081655baf59e", + "type": "Microsoft.Purview/accounts/privateEndpointConnections", + "id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/SampleResourceGroup/providers/Microsoft.Purview/accounts/account1/privateEndpointConnections/peName-8536c337-7b36-4d67-a7ce-081655baf59e", + "properties": { + "privateEndpoint": { + "id": "/subscriptions/baca8a88-4527-4c35-a13e-b2775ce0d7fc/resourceGroups/nrpResourceGroupName/providers/Microsoft.Network/privateEndpoints/peName" + }, + "privateLinkServiceConnectionState": { + "description": "Please approve my connection, thanks.", + "actionsRequired": "None", + "status": "Pending" + }, + "provisioningState": "Succeeded" + } + } + ], + "provisioningState": "Succeeded", + "publicNetworkAccess": "Enabled" + }, + "sku": { + "name": "Standard", + "capacity": 1 + }, + "systemData": { + "createdAt": "2019-11-22T18:39:58.6929344Z", + "createdBy": "client-name", + "createdByType": "User", + "lastModifiedAt": "2021-03-16T23:24:34.3430059Z", + "lastModifiedBy": "client-name", + "lastModifiedByType": "User" + } + }, + { + "name": "account2", + "type": "Microsoft.Purview/accounts", + "id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/SampleResourceGroup/providers/Microsoft.Purview/accounts/account2", + "location": "West US 2", + "properties": { + "accountStatus": { + "accountProvisioningState": "Succeeded", + "errorDetails": {} + }, + "endpoints": { + "catalog": "https://account2.catalog.purview.azure-test.com", + "scan": "https://account2.scan.purview.azure-test.com" + }, + "friendlyName": "friendly-account2", + "ingestionStorage": { + "id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/ingestion-storage-rg-mwjotkl", + "primaryEndpoint": "https://ingestioneastusddnpkar.z31.blob.storage.azure.net/", + "publicNetworkAccess": "Enabled" + }, + "managedResourceGroupName": "managed-rg-mwjotkl", + "managedResources": { + "eventHubNamespace": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/managed-rg-mwjotkl/providers/Microsoft.EventHub/namespaces/atlas-westusdddnbtp", + "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" + }, + "managedResourcesPublicNetworkAccess": "Enabled", + "privateEndpointConnections": [ + { + "name": "peName-8536c337-7b36-4d67-a7ce-081655baf59e", + "type": "Microsoft.Purview/accounts/privateEndpointConnections", + "id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/SampleResourceGroup/providers/Microsoft.Purview/accounts/account1/privateEndpointConnections/peName-8536c337-7b36-4d67-a7ce-081655baf59e", + "properties": { + "privateEndpoint": { + "id": "/subscriptions/baca8a88-4527-4c35-a13e-b2775ce0d7fc/resourceGroups/nrpResourceGroupName/providers/Microsoft.Network/privateEndpoints/peName" + }, + "privateLinkServiceConnectionState": { + "description": "Please approve my connection, thanks.", + "actionsRequired": "None", + "status": "Pending" + }, + "provisioningState": "Succeeded" + } + } + ], + "provisioningState": "Succeeded", + "publicNetworkAccess": "Enabled" + }, + "sku": { + "name": "Standard", + "capacity": 1 + }, + "systemData": { + "createdAt": "2019-11-22T18:39:58.6929344Z", + "createdBy": "client-name", + "createdByType": "User", + "lastModifiedAt": "2021-03-16T23:24:34.3430059Z", + "lastModifiedBy": "client-name", + "lastModifiedByType": "User" + } + } + ] + }, + "headers": { + "Date": "Wed, 13 Sep 2017 17:33:55 GMT", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "5d862c55-4de9-4a46-969d-cf1ed3e235ed", + "x-ms-ratelimit-remaining-subscription-reads": "14993", + "x-ms-request-id": "8e58266a-de42-40d5-b3c4-c6a7e159cfba" + } + } + }, + "operationId": "Accounts_ListByResourceGroup", + "title": "Accounts_ListByResourceGroup" +} diff --git a/specification/purview/resource-manager/Microsoft.Purview/Purview/examples/2024-04-01-preview/Accounts_ListBySubscription.json b/specification/purview/resource-manager/Microsoft.Purview/Purview/examples/2024-04-01-preview/Accounts_ListBySubscription.json new file mode 100644 index 000000000000..47b9d1975ae9 --- /dev/null +++ b/specification/purview/resource-manager/Microsoft.Purview/Purview/examples/2024-04-01-preview/Accounts_ListBySubscription.json @@ -0,0 +1,145 @@ +{ + "parameters": { + "api-version": "2024-04-01-preview", + "subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "account1", + "type": "Microsoft.Purview/accounts", + "id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/SampleResourceGroup/providers/Microsoft.Purview/accounts/account1", + "location": "West US 2", + "properties": { + "accountStatus": { + "accountProvisioningState": "Succeeded", + "errorDetails": {} + }, + "endpoints": { + "catalog": "https://account1.catalog.purview.azure-test.com", + "scan": "https://account1.scan.purview.azure-test.com" + }, + "friendlyName": "friendly-account1", + "ingestionStorage": { + "id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/ingestion-storage-rg-mwjotkl", + "primaryEndpoint": "https://ingestioneastusddnpkar.z31.blob.storage.azure.net/", + "publicNetworkAccess": "Enabled" + }, + "managedResourceGroupName": "managed-rg-mwjotkl", + "managedResources": { + "eventHubNamespace": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/managed-rg-mwjotkl/providers/Microsoft.EventHub/namespaces/atlas-westusdddnbtp", + "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" + }, + "managedResourcesPublicNetworkAccess": "Enabled", + "privateEndpointConnections": [ + { + "name": "peName-8536c337-7b36-4d67-a7ce-081655baf59e", + "type": "Microsoft.Purview/accounts/privateEndpointConnections", + "id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/SampleResourceGroup/providers/Microsoft.Purview/accounts/account1/privateEndpointConnections/peName-8536c337-7b36-4d67-a7ce-081655baf59e", + "properties": { + "privateEndpoint": { + "id": "/subscriptions/baca8a88-4527-4c35-a13e-b2775ce0d7fc/resourceGroups/nrpResourceGroupName/providers/Microsoft.Network/privateEndpoints/peName" + }, + "privateLinkServiceConnectionState": { + "description": "Please approve my connection, thanks.", + "actionsRequired": "None", + "status": "Pending" + }, + "provisioningState": "Succeeded" + } + } + ], + "provisioningState": "Succeeded", + "publicNetworkAccess": "Enabled" + }, + "sku": { + "name": "Standard", + "capacity": 1 + }, + "systemData": { + "createdAt": "2019-11-22T18:39:58.6929344Z", + "createdBy": "client-name", + "createdByType": "User", + "lastModifiedAt": "2021-03-16T23:24:34.3430059Z", + "lastModifiedBy": "client-name", + "lastModifiedByType": "User" + } + }, + { + "name": "account2", + "type": "Microsoft.Purview/accounts", + "id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/SampleResourceGroup/providers/Microsoft.Purview/accounts/account2", + "location": "West US 2", + "properties": { + "accountStatus": { + "accountProvisioningState": "Succeeded", + "errorDetails": {} + }, + "endpoints": { + "catalog": "https://account2.catalog.purview.azure-test.com", + "scan": "https://account2.scan.purview.azure-test.com" + }, + "friendlyName": "friendly-account2", + "ingestionStorage": { + "id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/ingestion-storage-rg-mwjotkl", + "primaryEndpoint": "https://ingestioneastusddnpkar.z31.blob.storage.azure.net/", + "publicNetworkAccess": "Enabled" + }, + "managedResourceGroupName": "managed-rg-mwjotkl", + "managedResources": { + "eventHubNamespace": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/managed-rg-mwjotkl/providers/Microsoft.EventHub/namespaces/atlas-westusdddnbtp", + "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" + }, + "managedResourcesPublicNetworkAccess": "Enabled", + "privateEndpointConnections": [ + { + "name": "peName-8536c337-7b36-4d67-a7ce-081655baf59e", + "type": "Microsoft.Purview/accounts/privateEndpointConnections", + "id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/SampleResourceGroup/providers/Microsoft.Purview/accounts/account1/privateEndpointConnections/peName-8536c337-7b36-4d67-a7ce-081655baf59e", + "properties": { + "privateEndpoint": { + "id": "/subscriptions/baca8a88-4527-4c35-a13e-b2775ce0d7fc/resourceGroups/nrpResourceGroupName/providers/Microsoft.Network/privateEndpoints/peName" + }, + "privateLinkServiceConnectionState": { + "description": "Please approve my connection, thanks.", + "actionsRequired": "None", + "status": "Pending" + }, + "provisioningState": "Succeeded" + } + } + ], + "provisioningState": "Succeeded", + "publicNetworkAccess": "Enabled" + }, + "sku": { + "name": "Standard", + "capacity": 1 + }, + "systemData": { + "createdAt": "2019-11-22T18:39:58.6929344Z", + "createdBy": "client-name", + "createdByType": "User", + "lastModifiedAt": "2021-03-16T23:24:34.3430059Z", + "lastModifiedBy": "client-name", + "lastModifiedByType": "User" + } + } + ] + }, + "headers": { + "Date": "Wed, 13 Sep 2017 17:33:55 GMT", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "5d862c55-4de9-4a46-969d-cf1ed3e235ed", + "x-ms-ratelimit-remaining-subscription-reads": "14993", + "x-ms-request-id": "8e58266a-de42-40d5-b3c4-c6a7e159cfba" + } + } + }, + "operationId": "Accounts_ListBySubscription", + "title": "Accounts_ListBySubscription" +} diff --git a/specification/purview/resource-manager/Microsoft.Purview/Purview/examples/2024-04-01-preview/Accounts_ListKeys.json b/specification/purview/resource-manager/Microsoft.Purview/Purview/examples/2024-04-01-preview/Accounts_ListKeys.json new file mode 100644 index 000000000000..f90d8ddb501c --- /dev/null +++ b/specification/purview/resource-manager/Microsoft.Purview/Purview/examples/2024-04-01-preview/Accounts_ListKeys.json @@ -0,0 +1,25 @@ +{ + "parameters": { + "accountName": "account1", + "api-version": "2024-04-01-preview", + "resourceGroupName": "SampleResourceGroup", + "subscriptionId": "12345678-1234-1234-12345678abc" + }, + "responses": { + "200": { + "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=" + }, + "headers": { + "Date": "Wed, 13 Sep 2017 18:04:32 GMT", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "25c78f97-0b0a-4fe9-ad39-883a482265cd", + "x-ms-ratelimit-remaining-tenant-reads": "14999", + "x-ms-request-id": "d5496da4-9c52-402f-b067-83cc9ddea888" + } + } + }, + "operationId": "Accounts_ListKeys", + "title": "Accounts_ListKeys" +} diff --git a/specification/purview/resource-manager/Microsoft.Purview/Purview/examples/2024-04-01-preview/Accounts_Update.json b/specification/purview/resource-manager/Microsoft.Purview/Purview/examples/2024-04-01-preview/Accounts_Update.json new file mode 100644 index 000000000000..f5d2ccc4a18c --- /dev/null +++ b/specification/purview/resource-manager/Microsoft.Purview/Purview/examples/2024-04-01-preview/Accounts_Update.json @@ -0,0 +1,131 @@ +{ + "parameters": { + "accountName": "account1", + "accountUpdateParameters": { + "properties": { + "cloudConnectors": {}, + "ingestionStorage": { + "publicNetworkAccess": "Disabled" + }, + "managedResourcesPublicNetworkAccess": "Disabled", + "publicNetworkAccess": "Disabled" + }, + "tags": { + "newTag": "New tag value." + } + }, + "api-version": "2024-04-01-preview", + "resourceGroupName": "SampleResourceGroup", + "subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345" + }, + "responses": { + "200": { + "body": { + "name": "account1", + "type": "Microsoft.Purview/accounts", + "id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/SampleResourceGroup/providers/Microsoft.Purview/accounts/account1", + "location": "West US 2", + "properties": { + "accountStatus": { + "accountProvisioningState": "Succeeded", + "errorDetails": {} + }, + "endpoints": { + "catalog": "https://account2.catalog.purview.azure-test.com", + "scan": "https://account2.scan.purview.azure-test.com" + }, + "friendlyName": "friendly-account1", + "ingestionStorage": { + "id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/ingestion-storage-rg-mwjotkl", + "primaryEndpoint": "https://ingestioneastusddnpkar.z31.blob.storage.azure.net/", + "publicNetworkAccess": "Disabled" + }, + "managedResources": { + "eventHubNamespace": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/managed-rg-mwjotkl/providers/Microsoft.EventHub/namespaces/atlas-westusdddnbtp", + "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" + }, + "provisioningState": "Succeeded", + "publicNetworkAccess": "Disabled", + "tenantEndpointState": "Disabled" + }, + "sku": { + "name": "Standard", + "capacity": 1 + }, + "systemData": { + "createdAt": "2019-11-22T18:39:58.6929344Z", + "createdBy": "client-name", + "createdByType": "User", + "lastModifiedAt": "2021-03-16T23:24:34.3430059Z", + "lastModifiedBy": "client-name", + "lastModifiedByType": "User" + }, + "tags": { + "newTag": "New tag value." + } + }, + "headers": { + "Date": "Wed, 13 Sep 2017 18:04:32 GMT", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "25c78f97-0b0a-4fe9-ad39-883a482265cd", + "x-ms-ratelimit-remaining-tenant-reads": "14999", + "x-ms-request-id": "d5496da4-9c52-402f-b067-83cc9ddea888" + } + }, + "202": { + "body": { + "name": "account1", + "type": "Microsoft.Purview/accounts", + "id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/SampleResourceGroup/providers/Microsoft.Purview/accounts/account1", + "location": "West US 2", + "properties": { + "endpoints": { + "catalog": "https://account2.catalog.purview.azure-test.com", + "scan": "https://account2.scan.purview.azure-test.com" + }, + "friendlyName": "friendly-account1", + "ingestionStorage": { + "id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/ingestion-storage-rg-mwjotkl", + "primaryEndpoint": "https://ingestioneastusddnpkar.z31.blob.storage.azure.net/", + "publicNetworkAccess": "Disabled" + }, + "managedResources": { + "eventHubNamespace": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/managed-rg-mwjotkl/providers/Microsoft.EventHub/namespaces/atlas-westusdddnbtp", + "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" + }, + "provisioningState": "Succeeded", + "publicNetworkAccess": "Disabled", + "tenantEndpointState": "Disabled" + }, + "sku": { + "name": "Standard", + "capacity": 1 + }, + "systemData": { + "createdAt": "2019-11-22T18:39:58.6929344Z", + "createdBy": "client-name", + "createdByType": "User", + "lastModifiedAt": "2021-03-16T23:24:34.3430059Z", + "lastModifiedBy": "client-name", + "lastModifiedByType": "User" + }, + "tags": { + "newTag": "New tag value." + } + }, + "headers": { + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/SampleResourceGroup/providers/Microsoft.Purview/accounts/account1/operationResults/dad6baec-3a39-41df-a469-843a9ee94213?api-version=2021-07-01", + "Date": "Wed, 13 Sep 2017 18:04:32 GMT", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "25c78f97-0b0a-4fe9-ad39-883a482265cd", + "x-ms-long-running-operation": true, + "x-ms-ratelimit-remaining-tenant-reads": "14999", + "x-ms-request-id": "d5496da4-9c52-402f-b067-83cc9ddea888" + } + } + }, + "operationId": "Accounts_Update", + "title": "Accounts_Update" +} diff --git a/specification/purview/resource-manager/Microsoft.Purview/Purview/examples/2024-04-01-preview/DefaultAccounts_Get.json b/specification/purview/resource-manager/Microsoft.Purview/Purview/examples/2024-04-01-preview/DefaultAccounts_Get.json new file mode 100644 index 000000000000..cdefa4ab7cf3 --- /dev/null +++ b/specification/purview/resource-manager/Microsoft.Purview/Purview/examples/2024-04-01-preview/DefaultAccounts_Get.json @@ -0,0 +1,29 @@ +{ + "parameters": { + "api-version": "2024-04-01-preview", + "scope": "12345678-1234-1234-1234-12345678abcd", + "scopeTenantId": "ee85a74c-405e-4adc-bb47-ffa8ca0c9f31", + "scopeType": "Tenant" + }, + "responses": { + "200": { + "body": { + "accountName": "myDefaultAccount", + "resourceGroupName": "rg-1", + "scope": "12345678-1234-1234-1234-12345678abcd", + "scopeTenantId": "12345678-1234-1234-1234-12345678abcd", + "scopeType": "Tenant", + "subscriptionId": "12345678-1234-1234-1234-12345678aaaa" + }, + "headers": { + "Date": "Wed, 13 Sep 2017 18:04:32 GMT", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "25c78f97-0b0a-4fe9-ad39-883a482265cd", + "x-ms-ratelimit-remaining-tenant-reads": "14999", + "x-ms-request-id": "d5496da4-9c52-402f-b067-83cc9ddea888" + } + } + }, + "operationId": "DefaultAccounts_Get", + "title": "DefaultAccounts_Get" +} diff --git a/specification/purview/resource-manager/Microsoft.Purview/Purview/examples/2024-04-01-preview/DefaultAccounts_Remove.json b/specification/purview/resource-manager/Microsoft.Purview/Purview/examples/2024-04-01-preview/DefaultAccounts_Remove.json new file mode 100644 index 000000000000..adb82d9b42fa --- /dev/null +++ b/specification/purview/resource-manager/Microsoft.Purview/Purview/examples/2024-04-01-preview/DefaultAccounts_Remove.json @@ -0,0 +1,30 @@ +{ + "parameters": { + "api-version": "2024-04-01-preview", + "scope": "12345678-1234-1234-1234-12345678abcd", + "scopeTenantId": "ee85a74c-405e-4adc-bb47-ffa8ca0c9f31", + "scopeType": "Tenant" + }, + "responses": { + "200": { + "headers": { + "Date": "Wed, 13 Sep 2017 18:04:32 GMT", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "25c78f97-0b0a-4fe9-ad39-883a482265cd", + "x-ms-ratelimit-remaining-tenant-reads": "14999", + "x-ms-request-id": "d5496da4-9c52-402f-b067-83cc9ddea888" + } + }, + "204": { + "headers": { + "Date": "Wed, 13 Sep 2017 18:04:32 GMT", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "25c78f97-0b0a-4fe9-ad39-883a482265cd", + "x-ms-ratelimit-remaining-tenant-reads": "14999", + "x-ms-request-id": "d5496da4-9c52-402f-b067-83cc9ddea888" + } + } + }, + "operationId": "DefaultAccounts_Remove", + "title": "DefaultAccounts_Remove" +} diff --git a/specification/purview/resource-manager/Microsoft.Purview/Purview/examples/2024-04-01-preview/DefaultAccounts_Set.json b/specification/purview/resource-manager/Microsoft.Purview/Purview/examples/2024-04-01-preview/DefaultAccounts_Set.json new file mode 100644 index 000000000000..34ba43bb822f --- /dev/null +++ b/specification/purview/resource-manager/Microsoft.Purview/Purview/examples/2024-04-01-preview/DefaultAccounts_Set.json @@ -0,0 +1,34 @@ +{ + "parameters": { + "api-version": "2024-04-01-preview", + "defaultAccountPayload": { + "accountName": "myDefaultAccount", + "resourceGroupName": "rg-1", + "scope": "12345678-1234-1234-1234-12345678abcd", + "scopeTenantId": "12345678-1234-1234-1234-12345678abcd", + "scopeType": "Tenant", + "subscriptionId": "12345678-1234-1234-1234-12345678aaaa" + } + }, + "responses": { + "200": { + "body": { + "accountName": "myDefaultAccount", + "resourceGroupName": "rg-1", + "scope": "12345678-1234-1234-1234-12345678abcd", + "scopeTenantId": "12345678-1234-1234-1234-12345678abcd", + "scopeType": "Tenant", + "subscriptionId": "12345678-1234-1234-1234-12345678aaaa" + }, + "headers": { + "Date": "Wed, 13 Sep 2017 18:04:32 GMT", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "25c78f97-0b0a-4fe9-ad39-883a482265cd", + "x-ms-ratelimit-remaining-tenant-reads": "14999", + "x-ms-request-id": "d5496da4-9c52-402f-b067-83cc9ddea888" + } + } + }, + "operationId": "DefaultAccounts_Set", + "title": "DefaultAccounts_Set" +} diff --git a/specification/purview/resource-manager/Microsoft.Purview/Purview/examples/2024-04-01-preview/Features_AccountGet.json b/specification/purview/resource-manager/Microsoft.Purview/Purview/examples/2024-04-01-preview/Features_AccountGet.json new file mode 100644 index 000000000000..de93b96aebc5 --- /dev/null +++ b/specification/purview/resource-manager/Microsoft.Purview/Purview/examples/2024-04-01-preview/Features_AccountGet.json @@ -0,0 +1,33 @@ +{ + "parameters": { + "accountName": "account1", + "api-version": "2024-04-01-preview", + "featureRequest": { + "features": [ + "Feature1", + "Feature2", + "FeatureThatDoesntExist" + ] + }, + "resourceGroupName": "SampleResourceGroup", + "subscriptionId": "12345678-1234-1234-12345678abc" + }, + "responses": { + "200": { + "body": { + "features": { + "Feature1": true, + "Feature2": false + } + }, + "headers": { + "Date": "Wed, 13 Sep 2017 18:04:32 GMT", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "25c78f97-0b0a-4fe9-ad39-883a482265cd", + "x-ms-request-id": "d5496da4-9c52-402f-b067-83cc9ddea888" + } + } + }, + "operationId": "Features_AccountGet", + "title": "Features_AccountGet" +} diff --git a/specification/purview/resource-manager/Microsoft.Purview/Purview/examples/2024-04-01-preview/Features_SubscriptionGet.json b/specification/purview/resource-manager/Microsoft.Purview/Purview/examples/2024-04-01-preview/Features_SubscriptionGet.json new file mode 100644 index 000000000000..835d7777a034 --- /dev/null +++ b/specification/purview/resource-manager/Microsoft.Purview/Purview/examples/2024-04-01-preview/Features_SubscriptionGet.json @@ -0,0 +1,32 @@ +{ + "parameters": { + "api-version": "2024-04-01-preview", + "featureRequest": { + "features": [ + "Feature1", + "Feature2", + "FeatureThatDoesntExist" + ] + }, + "locations": "eastus", + "subscriptionId": "12345678-1234-1234-12345678abc" + }, + "responses": { + "200": { + "body": { + "features": { + "Feature1": true, + "Feature2": false + } + }, + "headers": { + "Date": "Wed, 13 Sep 2017 18:04:32 GMT", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "25c78f97-0b0a-4fe9-ad39-883a482265cd", + "x-ms-request-id": "d5496da4-9c52-402f-b067-83cc9ddea888" + } + } + }, + "operationId": "Features_SubscriptionGet", + "title": "Features_SubscriptionGet" +} diff --git a/specification/purview/resource-manager/Microsoft.Purview/Purview/examples/2024-04-01-preview/IngestionPrivateEndpointConnections_List.json b/specification/purview/resource-manager/Microsoft.Purview/Purview/examples/2024-04-01-preview/IngestionPrivateEndpointConnections_List.json new file mode 100644 index 000000000000..b118060abc2b --- /dev/null +++ b/specification/purview/resource-manager/Microsoft.Purview/Purview/examples/2024-04-01-preview/IngestionPrivateEndpointConnections_List.json @@ -0,0 +1,53 @@ +{ + "parameters": { + "accountName": "account1", + "api-version": "2024-04-01-preview", + "resourceGroupName": "SampleResourceGroup", + "subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "type": "Microsoft.Storage/storageAccounts/privateEndpointConnections", + "id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/SampleResourceGroup/providers/Microsoft.Purview/accounts/account1/ingestionPrivateEndpointConnections/privateEndpointConnection1", + "properties": { + "privateEndpoint": { + "id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/SampleResourceGroup/providers/Microsoft.Network/privateEndpoints/myPrivateEndpoint1" + }, + "privateLinkServiceConnectionState": { + "description": "Approved by johndoe@company.com", + "status": "Approved" + }, + "provisioningState": "Succeeded" + } + }, + { + "type": "Microsoft.Storage/storageAccounts/privateEndpointConnections", + "id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/SampleResourceGroup/providers/Microsoft.Purview/accounts/account1/ingestionPrivateEndpointConnections/privateEndpointConnection2", + "properties": { + "privateEndpoint": { + "id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/SampleResourceGroup/providers/Microsoft.Network/privateEndpoints/myPrivateEndpoint" + }, + "privateLinkServiceConnectionState": { + "description": "Rejected by johndoe@company.com", + "status": "Rejected" + }, + "provisioningState": "Deleting" + } + } + ] + }, + "headers": { + "Date": "Wed, 13 Sep 2017 17:33:55 GMT", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "5d862c55-4de9-4a46-969d-cf1ed3e235ed", + "x-ms-ratelimit-remaining-subscription-reads": "14993", + "x-ms-request-id": "8e58266a-de42-40d5-b3c4-c6a7e159cfba" + } + } + }, + "operationId": "IngestionPrivateEndpointConnections_List", + "title": "IngestionPrivateEndpointConnections_List" +} diff --git a/specification/purview/resource-manager/Microsoft.Purview/Purview/examples/2024-04-01-preview/IngestionPrivateEndpointConnections_UpdateStatus.json b/specification/purview/resource-manager/Microsoft.Purview/Purview/examples/2024-04-01-preview/IngestionPrivateEndpointConnections_UpdateStatus.json new file mode 100644 index 000000000000..07d03ac230ef --- /dev/null +++ b/specification/purview/resource-manager/Microsoft.Purview/Purview/examples/2024-04-01-preview/IngestionPrivateEndpointConnections_UpdateStatus.json @@ -0,0 +1,29 @@ +{ + "parameters": { + "accountName": "account1", + "api-version": "2024-04-01-preview", + "resourceGroupName": "SampleResourceGroup", + "subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", + "request": { + "privateEndpointId": "/subscriptions/12345678-1234-1234-12345678abc/resourceGroups/SampleResourceGroup/providers/Microsoft.Purview/accounts/account1/privateEndpointConnections/privateEndpointConnection1", + "status": "Approved" + } + }, + "responses": { + "200": { + "body": { + "privateEndpointId": "/subscriptions/12345678-1234-1234-12345678abc/resourceGroups/SampleResourceGroup/providers/Microsoft.Purview/accounts/account1/privateEndpointConnections/privateEndpointConnection1", + "status": "Approved" + }, + "headers": { + "Date": "Wed, 13 Sep 2017 18:04:32 GMT", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "25c78f97-0b0a-4fe9-ad39-883a482265cd", + "x-ms-ratelimit-remaining-tenant-reads": "14999", + "x-ms-request-id": "d5496da4-9c52-402f-b067-83cc9ddea888" + } + } + }, + "operationId": "IngestionPrivateEndpointConnections_UpdateStatus", + "title": "IngestionPrivateEndpointConnections_UpdateStatus" +} diff --git a/specification/purview/resource-manager/Microsoft.Purview/Purview/examples/2024-04-01-preview/KafkaConfigurations_CreateOrUpdate.json b/specification/purview/resource-manager/Microsoft.Purview/Purview/examples/2024-04-01-preview/KafkaConfigurations_CreateOrUpdate.json new file mode 100644 index 000000000000..04d76a79bd09 --- /dev/null +++ b/specification/purview/resource-manager/Microsoft.Purview/Purview/examples/2024-04-01-preview/KafkaConfigurations_CreateOrUpdate.json @@ -0,0 +1,81 @@ +{ + "parameters": { + "accountName": "account1", + "api-version": "2024-04-01-preview", + "kafkaConfiguration": { + "properties": { + "consumerGroup": "consumerGroup", + "credentials": { + "type": "UserAssigned", + "identityId": "/subscriptions/47e8596d-ee73-4eb2-b6b4-cc13c2b87ssd/resourceGroups/testRG/providers/Microsoft.ManagedIdentity/userAssignedIdentities/testId" + }, + "eventHubPartitionId": "partitionId", + "eventHubResourceId": "/subscriptions/225be6fe-ec1c-4d51-a368-f69348d2e6c5/resourceGroups/testRG/providers/Microsoft.EventHub/namespaces/eventHubNameSpaceName", + "eventHubType": "Notification", + "eventStreamingState": "Enabled", + "eventStreamingType": "Azure" + } + }, + "kafkaConfigurationName": "kafkaConfigName", + "resourceGroupName": "rgpurview", + "subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345" + }, + "responses": { + "200": { + "body": { + "name": "kafkaConfigName", + "type": "Microsoft.Purview/accounts/kafkaconfiguration", + "id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/SampleResourceGroup/providers/Microsoft.Purview/accounts/account1/kafkaConfigurations/default", + "properties": { + "consumerGroup": "consumerGroup", + "credentials": { + "type": "UserAssigned", + "identityId": "/subscriptions/47e8596d-ee73-4eb2-b6b4-cc13c2b87ssd/resourceGroups/testRG/providers/Microsoft.ManagedIdentity/userAssignedIdentities/testId" + }, + "eventHubPartitionId": "aaaaa", + "eventHubResourceId": "/subscriptions/225be6fe-ec1c-4d51-a368-f69348d2e6c5/resourceGroups/testRG/providers/Microsoft.EventHub/namespaces/eventHubNameSpaceName", + "eventHubType": "Notification", + "eventStreamingState": "Enabled", + "eventStreamingType": "Azure" + }, + "systemData": { + "createdAt": "2022-03-09T01:36:27.637Z", + "createdBy": "User@user", + "createdByType": "User", + "lastModifiedAt": "2022-03-09T01:36:27.637Z", + "lastModifiedBy": "User", + "lastModifiedByType": "User" + } + } + }, + "201": { + "body": { + "name": "kafkaConfigName", + "type": "Microsoft.Purview/accounts/kafkaconfiguration", + "id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/SampleResourceGroup/providers/Microsoft.Purview/accounts/account1/kafkaConfigurations/default", + "properties": { + "consumerGroup": "consumerGroup", + "credentials": { + "type": "UserAssigned", + "identityId": "/subscriptions/47e8596d-ee73-4eb2-b6b4-cc13c2b87ssd/resourceGroups/testRG/providers/Microsoft.ManagedIdentity/userAssignedIdentities/testId" + }, + "eventHubPartitionId": "aaaaa", + "eventHubResourceId": "/subscriptions/225be6fe-ec1c-4d51-a368-f69348d2e6c5/resourceGroups/testRG/providers/Microsoft.EventHub/namespaces/eventHubNameSpaceName", + "eventHubType": "Notification", + "eventStreamingState": "Enabled", + "eventStreamingType": "Azure" + }, + "systemData": { + "createdAt": "2022-03-09T01:36:27.637Z", + "createdBy": "User@user", + "createdByType": "User", + "lastModifiedAt": "2022-03-09T01:36:27.637Z", + "lastModifiedBy": "User", + "lastModifiedByType": "User" + } + } + } + }, + "operationId": "KafkaConfigurations_CreateOrUpdate", + "title": "KafkaConfigurations_CreateOrUpdate" +} diff --git a/specification/purview/resource-manager/Microsoft.Purview/Purview/examples/2024-04-01-preview/KafkaConfigurations_Delete.json b/specification/purview/resource-manager/Microsoft.Purview/Purview/examples/2024-04-01-preview/KafkaConfigurations_Delete.json new file mode 100644 index 000000000000..7a1addd230c1 --- /dev/null +++ b/specification/purview/resource-manager/Microsoft.Purview/Purview/examples/2024-04-01-preview/KafkaConfigurations_Delete.json @@ -0,0 +1,15 @@ +{ + "parameters": { + "accountName": "account1", + "api-version": "2024-04-01-preview", + "kafkaConfigurationName": "kafkaConfigName", + "resourceGroupName": "rgpurview", + "subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345" + }, + "responses": { + "200": {}, + "204": {} + }, + "operationId": "KafkaConfigurations_Delete", + "title": "KafkaConfigurations_Delete" +} diff --git a/specification/purview/resource-manager/Microsoft.Purview/Purview/examples/2024-04-01-preview/KafkaConfigurations_Get.json b/specification/purview/resource-manager/Microsoft.Purview/Purview/examples/2024-04-01-preview/KafkaConfigurations_Get.json new file mode 100644 index 000000000000..c5b84eeb8cf2 --- /dev/null +++ b/specification/purview/resource-manager/Microsoft.Purview/Purview/examples/2024-04-01-preview/KafkaConfigurations_Get.json @@ -0,0 +1,40 @@ +{ + "parameters": { + "accountName": "account1", + "api-version": "2024-04-01-preview", + "kafkaConfigurationName": "kafkaConfigName", + "resourceGroupName": "rgpurview", + "subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345" + }, + "responses": { + "200": { + "body": { + "name": "kafkaConfigName", + "type": "Microsoft.Purview/accounts/kafkaconfiguration", + "id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/SampleResourceGroup/providers/Microsoft.Purview/accounts/account1/kafkaConfigurations/default", + "properties": { + "consumerGroup": "consumerGroup", + "credentials": { + "type": "UserAssigned", + "identityId": "/subscriptions/47e8596d-ee73-4eb2-b6b4-cc13c2b87ssd/resourceGroups/testRG/providers/Microsoft.ManagedIdentity/userAssignedIdentities/testId" + }, + "eventHubPartitionId": "partitionId", + "eventHubResourceId": "/subscriptions/225be6fe-ec1c-4d51-a368-f69348d2e6c5/resourceGroups/testRG/providers/Microsoft.EventHub/namespaces/eventHubNameSpaceName", + "eventHubType": "Notification", + "eventStreamingState": "Enabled", + "eventStreamingType": "Azure" + }, + "systemData": { + "createdAt": "2022-03-09T01:36:27.637Z", + "createdBy": "User@user", + "createdByType": "User", + "lastModifiedAt": "2022-03-09T01:36:27.637Z", + "lastModifiedBy": "User", + "lastModifiedByType": "User" + } + } + } + }, + "operationId": "KafkaConfigurations_Get", + "title": "KafkaConfigurations_Get" +} diff --git a/specification/purview/resource-manager/Microsoft.Purview/Purview/examples/2024-04-01-preview/KafkaConfigurations_ListByAccount.json b/specification/purview/resource-manager/Microsoft.Purview/Purview/examples/2024-04-01-preview/KafkaConfigurations_ListByAccount.json new file mode 100644 index 000000000000..6831f5ce6798 --- /dev/null +++ b/specification/purview/resource-manager/Microsoft.Purview/Purview/examples/2024-04-01-preview/KafkaConfigurations_ListByAccount.json @@ -0,0 +1,45 @@ +{ + "parameters": { + "$skipToken": "token", + "accountName": "account1", + "api-version": "2024-04-01-preview", + "resourceGroupName": "rgpurview", + "subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345" + }, + "responses": { + "200": { + "body": { + "nextLink": "https://management.azure.com/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rgpurview/providers/Microsoft.Purview/accounts/account1/kafkaConfigurations?api-version=2024-04-01-preview&$skipToken=token2", + "value": [ + { + "name": "kafkaconfigName", + "type": "Microsoft.Purview/accounts/kafkaconfiguration", + "id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/SampleResourceGroup/providers/Microsoft.Purview/accounts/account1/kafkaConfigurations/default", + "properties": { + "consumerGroup": "consumerGroup", + "credentials": { + "type": "UserAssigned", + "identityId": "/subscriptions/47e8596d-ee73-4eb2-b6b4-cc13c2b87ssd/resourceGroups/testRG/providers/Microsoft.ManagedIdentity/userAssignedIdentities/testId" + }, + "eventHubPartitionId": "partitionId", + "eventHubResourceId": "/subscriptions/225be6fe-ec1c-4d51-a368-f69348d2e6c5/resourceGroups/testRG/providers/Microsoft.EventHub/namespaces/eventHubNameSpaceName", + "eventHubType": "Notification", + "eventStreamingState": "Disabled", + "eventStreamingType": "None" + }, + "systemData": { + "createdAt": "2022-03-17T04:23:24.157Z", + "createdBy": "user", + "createdByType": "User", + "lastModifiedAt": "2022-03-17T04:23:24.157Z", + "lastModifiedBy": "user", + "lastModifiedByType": "User" + } + } + ] + } + } + }, + "operationId": "KafkaConfigurations_ListByAccount", + "title": "KafkaConfigurations_ListByAccount" +} diff --git a/specification/purview/resource-manager/Microsoft.Purview/Purview/examples/2024-04-01-preview/Operations_List.json b/specification/purview/resource-manager/Microsoft.Purview/Purview/examples/2024-04-01-preview/Operations_List.json new file mode 100644 index 000000000000..dbf2ff162851 --- /dev/null +++ b/specification/purview/resource-manager/Microsoft.Purview/Purview/examples/2024-04-01-preview/Operations_List.json @@ -0,0 +1,77 @@ +{ + "parameters": { + "api-version": "2024-04-01-preview", + "subscriptionId": "12345678-1234-1234-12345678abc" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "Microsoft.Purview/operations/read", + "display": { + "description": "Reads all available operations in Purview Resource Provider.", + "operation": "Read all operations", + "provider": "Microsoft Purview", + "resource": "Operations" + } + }, + { + "name": "Microsoft.Purview/register/action", + "display": { + "description": "Register the subscription for Purview Resource Provider", + "operation": "Register Purview Resource Provider", + "provider": "Microsoft Purview", + "resource": "Purview Resource Provider" + } + }, + { + "name": "Microsoft.Purview/unregister/action", + "display": { + "description": "Unregister the subscription for Purview Resource Provider", + "operation": "Unregister Purview Resource Provider", + "provider": "Microsoft Purview", + "resource": "Purview Resource Provider" + } + }, + { + "name": "Microsoft.Purview/accounts/read", + "display": { + "description": "Read account resource for Purview Resource Provider.", + "operation": "Read account resource", + "provider": "Microsoft Purview", + "resource": "Account" + } + }, + { + "name": "Microsoft.Purview/accounts/write", + "display": { + "description": "Write account resource for Purview Resource Provider.", + "operation": "Write account resource", + "provider": "Microsoft Purview", + "resource": "Account" + } + }, + { + "name": "Microsoft.Purview/accounts/delete", + "display": { + "description": "Delete account resource for Purview Resource Provider.", + "operation": "Delete account resource", + "provider": "Microsoft Purview", + "resource": "Account" + } + } + ] + }, + "headers": { + "Date": "Wed, 13 Sep 2017 18:04:32 GMT", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "25c78f97-0b0a-4fe9-ad39-883a482265cd", + "x-ms-ratelimit-remaining-tenant-reads": "14999", + "x-ms-request-id": "d5496da4-9c52-402f-b067-83cc9ddea888" + } + } + }, + "operationId": "Operations_List", + "title": "Operations_List" +} diff --git a/specification/purview/resource-manager/Microsoft.Purview/Purview/examples/2024-04-01-preview/PrivateEndpointConnections_CreateOrUpdate.json b/specification/purview/resource-manager/Microsoft.Purview/Purview/examples/2024-04-01-preview/PrivateEndpointConnections_CreateOrUpdate.json new file mode 100644 index 000000000000..e831822d9921 --- /dev/null +++ b/specification/purview/resource-manager/Microsoft.Purview/Purview/examples/2024-04-01-preview/PrivateEndpointConnections_CreateOrUpdate.json @@ -0,0 +1,71 @@ +{ + "parameters": { + "accountName": "account1", + "api-version": "2024-04-01-preview", + "privateEndpointConnectionName": "privateEndpointConnection1", + "resourceGroupName": "SampleResourceGroup", + "subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", + "request": { + "properties": { + "privateLinkServiceConnectionState": { + "description": "Approved by johndoe@company.com", + "status": "Approved" + } + } + } + }, + "responses": { + "200": { + "body": { + "name": "privateEndpointConnection1", + "type": "Microsoft.Purview/accounts/privateEndpointConnections", + "id": "/subscriptions/12345678-1234-1234-12345678abc/resourceGroups/SampleResourceGroup/providers/Microsoft.Purview/accounts/account1/privateEndpointConnections/privateEndpointConnection1", + "properties": { + "privateEndpoint": { + "id": "/subscriptions/12345678-1234-1234-12345678abc/resourceGroups/SampleResourceGroup/providers/Microsoft.Network/privateEndpoints/myPrivateEndpoint" + }, + "privateLinkServiceConnectionState": { + "description": "Approved by johndoe@company.com", + "status": "Approved" + }, + "provisioningState": "Succeeded" + } + }, + "headers": { + "Date": "Wed, 13 Sep 2017 18:04:32 GMT", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "25c78f97-0b0a-4fe9-ad39-883a482265cd", + "x-ms-ratelimit-remaining-tenant-reads": "14999", + "x-ms-request-id": "d5496da4-9c52-402f-b067-83cc9ddea888" + } + }, + "201": { + "body": { + "name": "privateEndpointConnection1", + "type": "Microsoft.Purview/accounts/privateEndpointConnections", + "id": "/subscriptions/12345678-1234-1234-12345678abc/resourceGroups/SampleResourceGroup/providers/Microsoft.Purview/accounts/account1/privateEndpointConnections/privateEndpointConnection1", + "properties": { + "privateEndpoint": { + "id": "/subscriptions/12345678-1234-1234-12345678abc/resourceGroups/SampleResourceGroup/providers/Microsoft.Network/privateEndpoints/myPrivateEndpoint" + }, + "privateLinkServiceConnectionState": { + "description": "Approved by johndoe@company.com", + "status": "Approved" + }, + "provisioningState": "Succeeded" + } + }, + "headers": { + "Azure-AsyncOperation": "https://management.azure.com/subscriptions34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/SampleResourceGroup/providers/Microsoft.Purview/accounts/account1/privateEndpointConnections/privateEndpointConnection1?api-version=2021-07-01", + "Date": "Wed, 13 Sep 2017 18:04:32 GMT", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "25c78f97-0b0a-4fe9-ad39-883a482265cd", + "x-ms-long-running-operation": true, + "x-ms-ratelimit-remaining-tenant-reads": "14999", + "x-ms-request-id": "d5496da4-9c52-402f-b067-83cc9ddea888" + } + } + }, + "operationId": "PrivateEndpointConnections_CreateOrUpdate", + "title": "PrivateEndpointConnections_CreateOrUpdate" +} diff --git a/specification/purview/resource-manager/Microsoft.Purview/Purview/examples/2024-04-01-preview/PrivateEndpointConnections_Delete.json b/specification/purview/resource-manager/Microsoft.Purview/Purview/examples/2024-04-01-preview/PrivateEndpointConnections_Delete.json new file mode 100644 index 000000000000..1d06af6418b9 --- /dev/null +++ b/specification/purview/resource-manager/Microsoft.Purview/Purview/examples/2024-04-01-preview/PrivateEndpointConnections_Delete.json @@ -0,0 +1,42 @@ +{ + "parameters": { + "accountName": "account1", + "api-version": "2024-04-01-preview", + "privateEndpointConnectionName": "privateEndpointConnection1", + "resourceGroupName": "SampleResourceGroup", + "subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345" + }, + "responses": { + "200": { + "headers": { + "Date": "Wed, 13 Sep 2017 18:04:32 GMT", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "25c78f97-0b0a-4fe9-ad39-883a482265cd", + "x-ms-ratelimit-remaining-tenant-reads": "14999", + "x-ms-request-id": "d5496da4-9c52-402f-b067-83cc9ddea888" + } + }, + "202": { + "headers": { + "Azure-AsyncOperation": "https://management.azure.com/subscriptions34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/SampleResourceGroup/providers/Microsoft.Purview/accounts/account1/privateEndpointConnections/privateEndpointConnection1?api-version=2021-07-01", + "Date": "Wed, 13 Sep 2017 18:04:32 GMT", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "25c78f97-0b0a-4fe9-ad39-883a482265cd", + "x-ms-long-running-operation": true, + "x-ms-ratelimit-remaining-tenant-reads": "14999", + "x-ms-request-id": "d5496da4-9c52-402f-b067-83cc9ddea888" + } + }, + "204": { + "headers": { + "Date": "Wed, 13 Sep 2017 18:04:32 GMT", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "25c78f97-0b0a-4fe9-ad39-883a482265cd", + "x-ms-ratelimit-remaining-tenant-reads": "14999", + "x-ms-request-id": "d5496da4-9c52-402f-b067-83cc9ddea888" + } + } + }, + "operationId": "PrivateEndpointConnections_Delete", + "title": "PrivateEndpointConnections_Delete" +} diff --git a/specification/purview/resource-manager/Microsoft.Purview/Purview/examples/2024-04-01-preview/PrivateEndpointConnections_Get.json b/specification/purview/resource-manager/Microsoft.Purview/Purview/examples/2024-04-01-preview/PrivateEndpointConnections_Get.json new file mode 100644 index 000000000000..b24f6dd36092 --- /dev/null +++ b/specification/purview/resource-manager/Microsoft.Purview/Purview/examples/2024-04-01-preview/PrivateEndpointConnections_Get.json @@ -0,0 +1,37 @@ +{ + "parameters": { + "accountName": "account1", + "api-version": "2024-04-01-preview", + "privateEndpointConnectionName": "privateEndpointConnection1", + "resourceGroupName": "SampleResourceGroup", + "subscriptionId": "12345678-1234-1234-12345678abc" + }, + "responses": { + "200": { + "body": { + "name": "privateEndpointConnection1", + "type": "Microsoft.Purview/accounts/privateEndpointConnections", + "id": "/subscriptions/12345678-1234-1234-12345678abc/resourceGroups/SampleResourceGroup/providers/Microsoft.Purview/accounts/account1/privateEndpointConnections/privateEndpointConnection1", + "properties": { + "privateEndpoint": { + "id": "/subscriptions/12345678-1234-1234-12345678abc/resourceGroups/SampleResourceGroup/providers/Microsoft.Network/privateEndpoints/myPrivateEndpoint" + }, + "privateLinkServiceConnectionState": { + "description": "Approved by johndoe@company.com", + "status": "Approved" + }, + "provisioningState": "Succeeded" + } + }, + "headers": { + "Date": "Wed, 13 Sep 2017 18:04:32 GMT", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "25c78f97-0b0a-4fe9-ad39-883a482265cd", + "x-ms-ratelimit-remaining-tenant-reads": "14999", + "x-ms-request-id": "d5496da4-9c52-402f-b067-83cc9ddea888" + } + } + }, + "operationId": "PrivateEndpointConnections_Get", + "title": "PrivateEndpointConnections_Get" +} diff --git a/specification/purview/resource-manager/Microsoft.Purview/Purview/examples/2024-04-01-preview/PrivateEndpointConnections_ListByAccount.json b/specification/purview/resource-manager/Microsoft.Purview/Purview/examples/2024-04-01-preview/PrivateEndpointConnections_ListByAccount.json new file mode 100644 index 000000000000..dad55bde1c09 --- /dev/null +++ b/specification/purview/resource-manager/Microsoft.Purview/Purview/examples/2024-04-01-preview/PrivateEndpointConnections_ListByAccount.json @@ -0,0 +1,55 @@ +{ + "parameters": { + "accountName": "account1", + "api-version": "2024-04-01-preview", + "resourceGroupName": "SampleResourceGroup", + "subscriptionId": "12345678-1234-1234-12345678abc" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "privateEndpointConnection1", + "type": "Microsoft.Purview/accounts/privateEndpointConnections", + "id": "/subscriptions/12345678-1234-1234-12345678abc/resourceGroups/SampleResourceGroup/providers/Microsoft.Purview/accounts/account1/privateEndpointConnections/privateEndpointConnection1", + "properties": { + "privateEndpoint": { + "id": "/subscriptions/12345678-1234-1234-12345678abc/resourceGroups/SampleResourceGroup/providers/Microsoft.Network/privateEndpoints/myPrivateEndpoint1" + }, + "privateLinkServiceConnectionState": { + "description": "Approved by johndoe@company.com", + "status": "Approved" + }, + "provisioningState": "Succeeded" + } + }, + { + "name": "privateEndpointConnection2", + "type": "Microsoft.Purview/accounts/privateEndpointConnections", + "id": "/subscriptions/12345678-1234-1234-12345678abc/resourceGroups/SampleResourceGroup/providers/Microsoft.Purview/accounts/account1/privateEndpointConnections/privateEndpointConnection2", + "properties": { + "privateEndpoint": { + "id": "/subscriptions/12345678-1234-1234-12345678abc/resourceGroups/SampleResourceGroup/providers/Microsoft.Network/privateEndpoints/myPrivateEndpoint" + }, + "privateLinkServiceConnectionState": { + "description": "Rejected by johndoe@company.com", + "status": "Rejected" + }, + "provisioningState": "Deleting" + } + } + ] + }, + "headers": { + "Date": "Wed, 13 Sep 2017 17:33:55 GMT", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "5d862c55-4de9-4a46-969d-cf1ed3e235ed", + "x-ms-ratelimit-remaining-subscription-reads": "14993", + "x-ms-request-id": "8e58266a-de42-40d5-b3c4-c6a7e159cfba" + } + } + }, + "operationId": "PrivateEndpointConnections_ListByAccount", + "title": "PrivateEndpointConnections_ListByAccount" +} diff --git a/specification/purview/resource-manager/Microsoft.Purview/Purview/examples/2024-04-01-preview/PrivateLinkResources_GetByGroupId.json b/specification/purview/resource-manager/Microsoft.Purview/Purview/examples/2024-04-01-preview/PrivateLinkResources_GetByGroupId.json new file mode 100644 index 000000000000..51572ccebc36 --- /dev/null +++ b/specification/purview/resource-manager/Microsoft.Purview/Purview/examples/2024-04-01-preview/PrivateLinkResources_GetByGroupId.json @@ -0,0 +1,36 @@ +{ + "parameters": { + "accountName": "account1", + "api-version": "2024-04-01-preview", + "groupId": "group1", + "resourceGroupName": "SampleResourceGroup", + "subscriptionId": "12345678-1234-1234-12345678abc" + }, + "responses": { + "200": { + "body": { + "name": "plr1", + "type": "Microsoft.Purview/accounts/privateLinkResources", + "id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/SampleResourceGroup/providers/Microsoft.Purview/accounts/account1/privateLinkResources/plr1", + "properties": { + "groupId": "group1", + "requiredMembers": [ + "group1" + ], + "requiredZoneNames": [ + "privatelinkzone1.service.azure.com" + ] + } + }, + "headers": { + "Date": "Wed, 13 Sep 2017 18:04:32 GMT", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "25c78f97-0b0a-4fe9-ad39-883a482265cd", + "x-ms-ratelimit-remaining-tenant-reads": "14999", + "x-ms-request-id": "d5496da4-9c52-402f-b067-83cc9ddea888" + } + } + }, + "operationId": "PrivateLinkResources_GetByGroupId", + "title": "PrivateLinkResources_GetByGroupId" +} diff --git a/specification/purview/resource-manager/Microsoft.Purview/Purview/examples/2024-04-01-preview/PrivateLinkResources_ListByAccount.json b/specification/purview/resource-manager/Microsoft.Purview/Purview/examples/2024-04-01-preview/PrivateLinkResources_ListByAccount.json new file mode 100644 index 000000000000..00d1c9f8a4bd --- /dev/null +++ b/specification/purview/resource-manager/Microsoft.Purview/Purview/examples/2024-04-01-preview/PrivateLinkResources_ListByAccount.json @@ -0,0 +1,53 @@ +{ + "parameters": { + "accountName": "account1", + "api-version": "2024-04-01-preview", + "resourceGroupName": "SampleResourceGroup", + "subscriptionId": "12345678-1234-1234-12345678abc" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "plr1", + "type": "Microsoft.Purview/accounts/privateLinkResources", + "id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/SampleResourceGroup/providers/Microsoft.Purview/accounts/account1/privateLinkResources/plr1", + "properties": { + "groupId": "account1", + "requiredMembers": [ + "account1" + ], + "requiredZoneNames": [ + "privatelinkzone1.service.azure.com" + ] + } + }, + { + "name": "plr2", + "type": "Microsoft.Purview/accounts/privateLinkResources", + "id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/SampleResourceGroup/providers/Microsoft.Purview/accounts/account1/privateLinkResources/plr2", + "properties": { + "groupId": "account2", + "requiredMembers": [ + "account2" + ], + "requiredZoneNames": [ + "privatelinkzone2.service.azure.com" + ] + } + } + ] + }, + "headers": { + "Date": "Wed, 13 Sep 2017 18:04:32 GMT", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "25c78f97-0b0a-4fe9-ad39-883a482265cd", + "x-ms-ratelimit-remaining-tenant-reads": "14999", + "x-ms-request-id": "d5496da4-9c52-402f-b067-83cc9ddea888" + } + } + }, + "operationId": "PrivateLinkResources_ListByAccount", + "title": "PrivateLinkResources_ListByAccount" +} diff --git a/specification/purview/resource-manager/Microsoft.Purview/Purview/examples/2024-04-01-preview/Usages_Get.json b/specification/purview/resource-manager/Microsoft.Purview/Purview/examples/2024-04-01-preview/Usages_Get.json new file mode 100644 index 000000000000..dfc53ae897c7 --- /dev/null +++ b/specification/purview/resource-manager/Microsoft.Purview/Purview/examples/2024-04-01-preview/Usages_Get.json @@ -0,0 +1,44 @@ +{ + "parameters": { + "api-version": "2024-04-01-preview", + "location": "West US 2", + "subscriptionId": "12345678-1234-1234-12345678abc" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": { + "localizedValue": "Purview-Account-Subscription", + "value": "Purview-Account-Subscription" + }, + "currentValue": 1, + "id": "", + "limit": 3, + "unit": "Count" + }, + { + "name": { + "localizedValue": "Purview-Account-Tenant", + "value": "Purview-Account-Tenant" + }, + "currentValue": 2, + "id": "", + "limit": 3, + "unit": "Count" + } + ] + }, + "headers": { + "Date": "Wed, 13 Sep 2017 18:04:32 GMT", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "25c78f97-0b0a-4fe9-ad39-883a482265cd", + "x-ms-ratelimit-remaining-tenant-reads": "14999", + "x-ms-request-id": "d5496da4-9c52-402f-b067-83cc9ddea888" + } + } + }, + "operationId": "Usages_Get", + "title": "Usages_Get" +} diff --git a/specification/purview/resource-manager/Microsoft.Purview/Purview/main.tsp b/specification/purview/resource-manager/Microsoft.Purview/Purview/main.tsp new file mode 100644 index 000000000000..9880b2536d6d --- /dev/null +++ b/specification/purview/resource-manager/Microsoft.Purview/Purview/main.tsp @@ -0,0 +1,55 @@ +/** + * PLEASE DO NOT REMOVE - USED FOR CONVERTER METRICS + * Generated by package: @autorest/openapi-to-typespec + * Parameters used: + * isFullCompatible: true + * guessResourceKey: false + * Version: 0.11.12 + * Date: 2026-01-06T05:20:35.883Z + */ +import "@typespec/rest"; +import "@typespec/versioning"; +import "@azure-tools/typespec-azure-core"; +import "@azure-tools/typespec-azure-resource-manager"; +import "./models.tsp"; +import "./back-compatible.tsp"; +import "./Account.tsp"; +import "./KafkaConfiguration.tsp"; +import "./PrivateEndpointConnection.tsp"; +import "./PrivateLinkResource.tsp"; +import "./routes.tsp"; + +using TypeSpec.Rest; +using TypeSpec.Http; +using Azure.ResourceManager.Foundations; +using Azure.Core; +using Azure.ResourceManager; +using TypeSpec.Versioning; +/** + * Creates a Microsoft.Purview management client. + */ +@armProviderNamespace +@service(#{ title: "PurviewManagementClient" }) +@versioned(Versions) +// FIXME: Common type version not set. Set to v3. +@armCommonTypesVersion(Azure.ResourceManager.CommonTypes.Versions.v3) +namespace Microsoft.Purview; + +/** + * The available API versions. + */ +enum Versions { + /** + * The 2024-04-01-preview API version. + */ + v2024_04_01_preview: "2024-04-01-preview", +} + +interface Operations + extends Azure.ResourceManager.Legacy.Operations< + ArmResponse, + ErrorResponseModel + > {} + +@@doc(Operations.list, "List of available operations"); +@@summary(Operations.list, "Lists the available operations"); diff --git a/specification/purview/resource-manager/Microsoft.Purview/Purview/models.tsp b/specification/purview/resource-manager/Microsoft.Purview/Purview/models.tsp new file mode 100644 index 000000000000..2076b3045b9e --- /dev/null +++ b/specification/purview/resource-manager/Microsoft.Purview/Purview/models.tsp @@ -0,0 +1,1678 @@ +import "@typespec/rest"; +import "@typespec/http"; +import "@azure-tools/typespec-azure-core"; +import "@azure-tools/typespec-azure-resource-manager"; + +using TypeSpec.Rest; +using TypeSpec.Http; +using Azure.ResourceManager; +using Azure.ResourceManager.Foundations; + +namespace Microsoft.Purview; + +/** + * Paged list of operation resources + */ +model OperationList { + /** Total item count. */ + count?: int64; + + /** The Url of next result page. */ + @nextLink + nextLink?: string; + + /** Collection of items of type results. */ + @pageItems + @identifiers(#[]) + value: Operation[]; +} + +/** + * Gets the account status code. + */ +union AccountProvisioningState { + string, + + /** + * Unknown + */ + Unknown: "Unknown", + + /** + * Creating + */ + Creating: "Creating", + + /** + * Updating + */ + Updating: "Updating", + + /** + * Moving + */ + Moving: "Moving", + + /** + * Deleting + */ + Deleting: "Deleting", + + /** + * SoftDeleting + */ + SoftDeleting: "SoftDeleting", + + /** + * SoftDeleted + */ + SoftDeleted: "SoftDeleted", + + /** + * Failed + */ + Failed: "Failed", + + /** + * Succeeded + */ + Succeeded: "Succeeded", + + /** + * Canceled + */ + Canceled: "Canceled", +} + +/** + * Gets or sets the public network access for managed resources. + */ +union PublicNetworkAccess { + string, + + /** + * NotSpecified + */ + NotSpecified: "NotSpecified", + + /** + * Enabled + */ + Enabled: "Enabled", + + /** + * Disabled + */ + Disabled: "Disabled", +} + +/** + * Gets or sets the state of managed eventhub. If enabled managed eventhub will be created, if disabled the managed eventhub will be removed. + */ +union ManagedEventHubState { + string, + + /** + * NotSpecified + */ + NotSpecified: "NotSpecified", + + /** + * Disabled + */ + Disabled: "Disabled", + + /** + * Enabled + */ + Enabled: "Enabled", +} + +/** + * The status of the merge operation. + */ +union MergeStatus { + string, + + /** + * Succeeded + */ + Succeeded: "Succeeded", + + /** + * Failed + */ + Failed: "Failed", + + /** + * InProgress + */ + InProgress: "InProgress", +} + +/** + * The account's type for the merge operation. + */ +union MergeAccountType { + string, + + /** + * Primary + */ + Primary: "Primary", + + /** + * Secondary + */ + Secondary: "Secondary", +} + +/** + * The status. + */ +union PrivateEndpointConnectionStatus { + string, + + /** + * Unknown + */ + Unknown: "Unknown", + + /** + * Pending + */ + Pending: "Pending", + + /** + * Approved + */ + Approved: "Approved", + + /** + * Rejected + */ + Rejected: "Rejected", + + /** + * Disconnected + */ + Disconnected: "Disconnected", +} + +/** + * The type of identity that created the resource. + */ +union CreatedByType { + string, + + /** + * User + */ + User: "User", + + /** + * Application + */ + Application: "Application", + + /** + * ManagedIdentity + */ + ManagedIdentity: "ManagedIdentity", + + /** + * Key + */ + Key: "Key", +} + +/** + * The type of identity that last modified the resource. + */ +union LastModifiedByType { + string, + + /** + * User + */ + User: "User", + + /** + * Application + */ + Application: "Application", + + /** + * ManagedIdentity + */ + ManagedIdentity: "ManagedIdentity", + + /** + * Key + */ + Key: "Key", +} + +/** + * Gets or sets the state of the provisioning. + */ +union ProvisioningState { + string, + + /** + * Unknown + */ + Unknown: "Unknown", + + /** + * Creating + */ + Creating: "Creating", + + /** + * Moving + */ + Moving: "Moving", + + /** + * Deleting + */ + Deleting: "Deleting", + + /** + * SoftDeleting + */ + SoftDeleting: "SoftDeleting", + + /** + * SoftDeleted + */ + SoftDeleted: "SoftDeleted", + + /** + * Failed + */ + Failed: "Failed", + + /** + * Succeeded + */ + Succeeded: "Succeeded", + + /** + * Canceled + */ + Canceled: "Canceled", +} + +/** + * Gets or sets the state of tenant endpoint. + */ +union TenantEndpointState { + string, + + /** + * NotSpecified + */ + NotSpecified: "NotSpecified", + + /** + * Disabled + */ + Disabled: "Disabled", + + /** + * Enabled + */ + Enabled: "Enabled", +} + +/** + * Gets or sets the sku name. + */ +union AccountSkuName { + string, + + /** + * Standard + */ + Standard: "Standard", + + /** + * Free + */ + Free: "Free", +} + +/** + * Identity Type + */ +union ManagedIdentityType { + string, + + /** + * None + */ + None: "None", + + /** + * SystemAssigned + */ + SystemAssigned: "SystemAssigned", + + /** + * UserAssigned + */ + UserAssigned: "UserAssigned", +} + +/** + * The scope where the default account is set. + */ +union ScopeType { + string, + + /** + * Tenant + */ + Tenant: "Tenant", + + /** + * Subscription + */ + Subscription: "Subscription", +} + +/** + * Identity Type. + */ +union KafkaConfigurationIdentityType { + string, + + /** + * None + */ + None: "None", + + /** + * SystemAssigned + */ + SystemAssigned: "SystemAssigned", + + /** + * UserAssigned + */ + UserAssigned: "UserAssigned", +} + +/** + * The event hub type. + */ +union EventHubType { + string, + + /** + * Notification + */ + Notification: "Notification", + + /** + * Hook + */ + Hook: "Hook", +} + +/** + * The state of the event streaming service + */ +union EventStreamingState { + string, + + /** + * Disabled + */ + Disabled: "Disabled", + + /** + * Enabled + */ + Enabled: "Enabled", +} + +/** + * The event streaming service type + */ +union EventStreamingType { + string, + + /** + * None + */ + None: "None", + + /** + * Managed + */ + Managed: "Managed", + + /** + * Azure + */ + Azure: "Azure", +} + +/** + * The reason the name is not available. + */ +union Reason { + string, + + /** + * Invalid + */ + Invalid: "Invalid", + + /** + * AlreadyExists + */ + AlreadyExists: "AlreadyExists", +} + +/** + * Gets or sets the consent kind. + */ +union ConsentKind { + string, + + /** + * Metadata + */ + Metadata: "Metadata", + + /** + * Governance + */ + Governance: "Governance", +} + +/** + * Defines consent scope type. + */ +union ConsentScopeType { + string, + + /** + * Azure + */ + Azure: "Azure", + + /** + * Fabric + */ + Fabric: "Fabric", + + /** + * Databricks + */ + Databricks: "Databricks", + + /** + * Snowflake + */ + Snowflake: "Snowflake", + + /** + * S3 + */ + S3: "S3", +} + +/** + * Defines consent status. + */ +union ConsentStatus { + string, + + /** + * NotSpecified + */ + NotSpecified: "NotSpecified", + + /** + * Enabled + */ + Enabled: "Enabled", + + /** + * Disabled + */ + Disabled: "Disabled", +} + +/** + * Paged list of Account resources + */ +model AccountList is Azure.Core.Page; + +/** + * The account properties + */ +model AccountProperties { + /** + * Gets or sets the status of the account. + */ + @visibility(Lifecycle.Read) + accountStatus?: AccountPropertiesAccountStatus; + + /** + * External Cloud Service connectors + */ + cloudConnectors?: CloudConnectors; + + /** + * Gets the time at which the entity was created. + */ + @visibility(Lifecycle.Read) + // FIXME: (utcDateTime) Please double check that this is the correct type for your scenario. + createdAt?: utcDateTime; + + /** + * Gets the creator of the entity. + */ + @visibility(Lifecycle.Read) + createdBy?: string; + + /** + * Gets the creators of the entity's object id. + */ + @visibility(Lifecycle.Read) + createdByObjectId?: string; + + /** + * Gets the default domain in the account. + */ + @visibility(Lifecycle.Read) + defaultDomain?: string; + + /** + * The URIs that are the public endpoints of the account. + */ + @visibility(Lifecycle.Read) + endpoints?: AccountPropertiesEndpoints; + + /** + * Gets or sets the friendly name. + */ + @visibility(Lifecycle.Read) + friendlyName?: string; + + /** + * Ingestion Storage Account Info + */ + ingestionStorage?: IngestionStorage; + + /** + * Gets or sets the state of managed eventhub. If enabled managed eventhub will be created, if disabled the managed eventhub will be removed. + */ + managedEventHubState?: ManagedEventHubState = ManagedEventHubState.NotSpecified; + + /** + * Gets or sets the managed resource group name + */ + @visibility(Lifecycle.Read, Lifecycle.Create) + managedResourceGroupName?: string; + + /** + * Gets the resource identifiers of the managed resources. + */ + @visibility(Lifecycle.Read) + managedResources?: AccountPropertiesManagedResources; + + /** + * Gets or sets the public network access for managed resources. + */ + managedResourcesPublicNetworkAccess?: PublicNetworkAccess = PublicNetworkAccess.NotSpecified; + + /** + * Gets or sets the Merge Info. + */ + mergeInfo?: AccountMergeInfo; + + /** + * Gets the private endpoint connections information. + */ + @visibility(Lifecycle.Read) + @identifiers(#[]) + privateEndpointConnections?: PrivateEndpointConnection[]; + + /** + * Gets or sets the state of the provisioning. + */ + @visibility(Lifecycle.Read) + provisioningState?: ProvisioningState; + + /** + * Gets or sets the public network access. + */ + publicNetworkAccess?: PublicNetworkAccess = PublicNetworkAccess.Enabled; + + /** + * Gets or sets the state of tenant endpoint. + */ + tenantEndpointState?: TenantEndpointState; +} + +/** + * Gets or sets the status of the account. + */ +#suppress "@azure-tools/typespec-azure-core/composition-over-inheritance" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" +#suppress "@azure-tools/typespec-azure-resource-manager/no-empty-model" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" +model AccountPropertiesAccountStatus extends AccountStatus {} + +/** + * The account status. + */ +model AccountStatus { + /** + * Gets the account status code. + */ + @visibility(Lifecycle.Read) + accountProvisioningState?: AccountProvisioningState; + + /** + * Gets the account error details. + */ + @visibility(Lifecycle.Read) + errorDetails?: AccountStatusErrorDetails; +} + +/** + * Gets the account error details. + */ +#suppress "@azure-tools/typespec-azure-core/composition-over-inheritance" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" +#suppress "@azure-tools/typespec-azure-resource-manager/no-empty-model" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" +model AccountStatusErrorDetails extends ErrorModel {} + +/** + * Default error model + */ +model ErrorModel { + /** + * Gets or sets the code. + */ + @visibility(Lifecycle.Read) + code?: string; + + /** + * Gets or sets the details. + */ + @visibility(Lifecycle.Read) + @identifiers(#[]) + details?: ErrorModel[]; + + /** + * Gets or sets the messages. + */ + @visibility(Lifecycle.Read) + message?: string; + + /** + * Gets or sets the target. + */ + @visibility(Lifecycle.Read) + target?: string; +} + +/** + * External Cloud Service connectors + */ +model CloudConnectors { + /** + * AWS external identifier. + * Configured in AWS to allow use of the role arn used for scanning + */ + @visibility(Lifecycle.Read) + awsExternalId?: string; +} + +/** + * The URIs that are the public endpoints of the account. + */ +#suppress "@azure-tools/typespec-azure-core/composition-over-inheritance" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" +#suppress "@azure-tools/typespec-azure-resource-manager/no-empty-model" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" +model AccountPropertiesEndpoints extends AccountEndpoints {} + +/** + * The account endpoints + */ +model AccountEndpoints { + /** + * Gets the catalog endpoint. + */ + @visibility(Lifecycle.Read) + catalog?: string; + + /** + * Gets the scan endpoint. + */ + @visibility(Lifecycle.Read) + scan?: string; +} + +/** + * Ingestion Storage Account Info + */ +model IngestionStorage { + /** + * Gets or sets the Id. + */ + @visibility(Lifecycle.Read) + id?: string; + + /** + * Gets or sets the primary endpoint. + */ + @visibility(Lifecycle.Read) + primaryEndpoint?: string; + + /** + * Gets or sets the public network access setting + */ + publicNetworkAccess?: PublicNetworkAccess; +} + +/** + * Gets the resource identifiers of the managed resources. + */ +#suppress "@azure-tools/typespec-azure-core/composition-over-inheritance" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" +#suppress "@azure-tools/typespec-azure-resource-manager/no-empty-model" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" +model AccountPropertiesManagedResources extends ManagedResources {} + +/** + * The managed resources in customer subscription. + */ +model ManagedResources { + /** + * Gets the managed event hub namespace resource identifier. + */ + @visibility(Lifecycle.Read) + eventHubNamespace?: string; + + /** + * Gets the managed resource group resource identifier. This resource group will host resource dependencies for the account. + */ + @visibility(Lifecycle.Read) + resourceGroup?: string; + + /** + * Gets the managed storage account resource identifier. + */ + @visibility(Lifecycle.Read) + storageAccount?: string; +} + +/** + * The public Account Merge Info model. + */ +model AccountMergeInfo { + /** + * The account location of the *other* account in the merge operation. + */ + @visibility(Lifecycle.Read) + accountLocation?: string; + + /** + * The account name of the *other* account in the merge operation. + */ + @visibility(Lifecycle.Read) + accountName?: string; + + /** + * The resource group name of the *other* account in the merge operation. + */ + @visibility(Lifecycle.Read) + accountResourceGroupName?: string; + + /** + * The subscription id of the *other* account in the merge operation. + */ + @visibility(Lifecycle.Read) + accountSubscriptionId?: string; + + /** + * The deprovisioned status of the account. + * Only applicable for the secondary account. + */ + @visibility(Lifecycle.Read) + deprovisioned?: boolean; + + /** + * The status of the merge operation. + */ + @visibility(Lifecycle.Read) + mergeStatus?: MergeStatus; + + /** + * The account's type for the merge operation. + */ + @visibility(Lifecycle.Read) + typeOfAccount?: MergeAccountType; +} + +/** + * A private endpoint connection properties class. + */ +model PrivateEndpointConnectionProperties { + /** + * The private endpoint information. + */ + privateEndpoint?: PrivateEndpoint; + + /** + * The private link service connection state. + */ + privateLinkServiceConnectionState?: PrivateLinkServiceConnectionState; + + /** + * The provisioning state. + */ + #suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-provisioning-state" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" + @visibility(Lifecycle.Read) + provisioningState?: string; +} + +/** + * A private endpoint class. + */ +model PrivateEndpoint { + /** + * The private endpoint identifier. + */ + id?: string; +} + +/** + * The private link service connection state. + */ +model PrivateLinkServiceConnectionState { + /** + * The required actions. + */ + actionsRequired?: string; + + /** + * The description. + */ + description?: string; + + /** + * The status. + */ + status?: PrivateEndpointConnectionStatus; +} + +/** + * Proxy Azure Resource + */ +model ProxyResource { + /** + * Gets or sets the identifier. + */ + @visibility(Lifecycle.Read) + id?: string; + + /** + * Gets or sets the name. + */ + @visibility(Lifecycle.Read) + name?: string; + + /** + * Metadata pertaining to creation and last modification of the resource. + */ + @visibility(Lifecycle.Read) + systemData?: ProxyResourceSystemData; + + /** + * Gets or sets the type. + */ + @visibility(Lifecycle.Read) + type?: string; +} + +/** + * Metadata pertaining to creation and last modification of the resource. + */ +#suppress "@azure-tools/typespec-azure-resource-manager/no-empty-model" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" +#suppress "@azure-tools/typespec-azure-core/composition-over-inheritance" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" +model ProxyResourceSystemData extends SystemData {} + +/** + * Metadata pertaining to creation and last modification of the resource. + */ +model SystemData { + /** + * The timestamp of resource creation (UTC). + */ + @visibility(Lifecycle.Read) + // FIXME: (utcDateTime) Please double check that this is the correct type for your scenario. + createdAt?: utcDateTime; + + /** + * The identity that created the resource. + */ + @visibility(Lifecycle.Read) + createdBy?: string; + + /** + * The type of identity that created the resource. + */ + @visibility(Lifecycle.Read) + createdByType?: CreatedByType; + + /** + * The timestamp of the last modification the resource (UTC). + */ + @visibility(Lifecycle.Read) + // FIXME: (utcDateTime) Please double check that this is the correct type for your scenario. + lastModifiedAt?: utcDateTime; + + /** + * The identity that last modified the resource. + */ + @visibility(Lifecycle.Read) + lastModifiedBy?: string; + + /** + * The type of identity that last modified the resource. + */ + @visibility(Lifecycle.Read) + lastModifiedByType?: LastModifiedByType; +} + +/** + * The Sku + */ +model AccountSku { + /** + * Gets or sets the sku capacity. + */ + capacity?: int32; + + /** + * Gets or sets the sku name. + */ + name?: AccountSkuName; +} + +/** + * Azure ARM Tracked Resource + */ +model TrackedResource { + /** + * Gets or sets the identifier. + */ + @visibility(Lifecycle.Read) + id?: string; + + /** + * The Managed Identity of the resource + */ + identity?: Identity; + + /** + * Gets or sets the location. + */ + location?: string; + + /** + * Gets or sets the name. + */ + @visibility(Lifecycle.Read) + name?: string; + + /** + * Metadata pertaining to creation and last modification of the resource. + */ + @visibility(Lifecycle.Read) + systemData?: TrackedResourceSystemData; + + /** + * Tags on the azure resource. + */ + #suppress "@azure-tools/typespec-azure-resource-manager/arm-no-record" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" + tags?: Record; + + /** + * Gets or sets the type. + */ + @visibility(Lifecycle.Read) + type?: string; +} + +/** + * The Managed Identity of the resource + */ +model Identity { + /** + * Service principal object Id + */ + @visibility(Lifecycle.Read) + principalId?: string; + + /** + * Tenant Id + */ + @visibility(Lifecycle.Read) + tenantId?: string; + + /** + * Identity Type + */ + type?: ManagedIdentityType; + + /** + * User Assigned Identities + */ + #suppress "@azure-tools/typespec-azure-resource-manager/arm-no-record" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" + userAssignedIdentities?: Record; +} + +/** + * Uses client ID and Principal ID + */ +model UserAssignedIdentity { + /** + * Gets or Sets Client ID + */ + @visibility(Lifecycle.Read) + clientId?: string; + + /** + * Gets or Sets Principal ID + */ + @visibility(Lifecycle.Read) + principalId?: string; +} + +/** + * Metadata pertaining to creation and last modification of the resource. + */ +#suppress "@azure-tools/typespec-azure-resource-manager/no-empty-model" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" +#suppress "@azure-tools/typespec-azure-core/composition-over-inheritance" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" +model TrackedResourceSystemData extends SystemData {} + +/** + * Default error response model + */ +@error +model ErrorResponseModel { + /** + * Gets or sets the error. + */ + @visibility(Lifecycle.Read) + error?: ErrorResponseModelError; +} + +/** + * Gets or sets the error. + */ +#suppress "@azure-tools/typespec-azure-core/composition-over-inheritance" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" +#suppress "@azure-tools/typespec-azure-resource-manager/no-empty-model" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" +model ErrorResponseModelError extends ErrorModel {} + +/** + * The account update properties. + */ +#suppress "@azure-tools/typespec-azure-resource-manager/patch-envelope" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" +model AccountUpdateParameters { + /** + * The Managed Identity of the resource + */ + identity?: Identity; + + /** + * The account properties + */ + properties?: AccountProperties; + + /** + * Tags on the azure resource. + */ + #suppress "@azure-tools/typespec-azure-resource-manager/arm-no-record" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" + tags?: Record; +} + +/** + * Collection administrator update. + */ +model CollectionAdminUpdate { + /** + * Gets or sets the object identifier of the admin. + */ + objectId?: string; +} + +/** + * The Purview Account access keys. + */ +model AccessKeys { + /** + * Gets or sets the primary connection string. + */ + atlasKafkaPrimaryEndpoint?: string; + + /** + * Gets or sets the secondary connection string. + */ + atlasKafkaSecondaryEndpoint?: string; +} + +/** + * Payload to get and set the default account in the given scope + */ +model DefaultAccountPayload { + /** + * The name of the account that is set as the default. + */ + accountName?: string; + + /** + * The resource group name of the account that is set as the default. + */ + resourceGroupName?: string; + + /** + * The scope object ID. For example, sub ID or tenant ID. + */ + scope?: string; + + /** + * The scope tenant in which the default account is set. + */ + scopeTenantId?: string; + + /** + * The scope where the default account is set. + */ + scopeType?: ScopeType; + + /** + * The subscription ID of the account that is set as the default. + */ + subscriptionId?: string; +} + +/** + * Feature request model + */ +model BatchFeatureRequest { + /** + * Set of features + */ + features?: string[]; +} + +/** + * List of features with enabled status + */ +model BatchFeatureStatus { + /** + * Features with enabled status + */ + #suppress "@azure-tools/typespec-azure-resource-manager/arm-no-record" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" + @visibility(Lifecycle.Read) + features?: Record; +} + +/** + * Paged list of private endpoint connections + */ +model PrivateEndpointConnectionList + is Azure.Core.Page; + +/** + * A private endpoint connection status update request class. + */ +model PrivateEndpointConnectionStatusUpdateRequest { + /** + * The private endpoint resource identifier. + */ + privateEndpointId?: string; + + /** + * The private endpoint connection status. + */ + status?: string; +} + +/** + * A private endpoint connection status update response class. + */ +model PrivateEndpointConnectionStatusUpdateResponse { + /** + * The private endpoint resource identifier. + */ + privateEndpointId?: string; + + /** + * The private endpoint connection status. + */ + status?: string; +} + +/** + * Paged list of kafka configuration resources + */ +model KafkaConfigurationList is Azure.Core.Page; + +/** + * The kafka configuration properties of the event streaming service attached to the Purview account for kafka notifications. + */ +#suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-provisioning-state" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" +model KafkaConfigurationProperties { + /** + * Consumer group for hook event hub. + */ + consumerGroup?: string; + + /** + * Credentials to access the event streaming service attached to the purview account. + */ + credentials?: Credentials; + + /** + * Optional partition Id for notification event hub. If not set, all partitions will be leveraged. + */ + eventHubPartitionId?: string; + + #suppress "@azure-tools/typespec-azure-core/documentation-required" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" + eventHubResourceId?: Azure.Core.armResourceIdentifier<[ + { + type: "Microsoft.EventHub/namespaces/eventHubs"; + } + ]>; + + /** + * The event hub type. + */ + eventHubType?: EventHubType; + + /** + * The state of the event streaming service + */ + eventStreamingState?: EventStreamingState = EventStreamingState.Enabled; + + /** + * The event streaming service type + */ + eventStreamingType?: EventStreamingType = EventStreamingType.None; +} + +/** + * Credentials to access the event streaming service attached to the purview account. + */ +model Credentials { + /** + * Identity identifier for UserAssign type. + */ + identityId?: string; + + /** + * Identity Type. + */ + type?: KafkaConfigurationIdentityType; +} + +/** + * Operation resource + */ +model Operation { + /** + * The response model for get operation properties + */ + display?: OperationDisplay; + + /** + * Whether operation is a data action + */ + isDataAction?: boolean; + + /** + * Operation name for display purposes + */ + name?: string; + + /** + * origin of the operation + */ + origin?: string; + + /** + * properties on meta info + */ + properties?: OperationProperties; +} + +/** + * The response model for get operation properties + */ +model OperationDisplay { + /** + * Description of the operation for display purposes + */ + description?: string; + + /** + * Name of the operation for display purposes + */ + operation?: string; + + /** + * Name of the provider for display purposes + */ + provider?: string; + + /** + * Name of the resource type for display purposes + */ + resource?: string; +} + +/** + * properties on meta info + */ +model OperationProperties { + /** + * The operation meta service specification + */ + serviceSpecification?: OperationMetaServiceSpecification; +} + +/** + * The operation meta service specification + */ +model OperationMetaServiceSpecification { + /** + * log specifications for the operation + */ + @identifiers(#[]) + logSpecifications?: OperationMetaLogSpecification[]; + + /** + * metric specifications for the operation + */ + @identifiers(#[]) + metricSpecifications?: OperationMetaMetricSpecification[]; +} + +/** + * log specifications for operation api + */ +model OperationMetaLogSpecification { + /** + * blob duration of the log + */ + blobDuration?: string; + + /** + * localized name of the log category + */ + displayName?: string; + + /** + * name of the log category + */ + name?: string; +} + +/** + * metric specifications for the operation + */ +model OperationMetaMetricSpecification { + /** + * aggregation type of metric + */ + aggregationType?: string; + + /** + * properties for dimension + */ + @identifiers(#[]) + dimensions?: DimensionProperties[]; + + /** + * description of the metric + */ + displayDescription?: string; + + /** + * localized name of the metric + */ + displayName?: string; + + /** + * enable regional mdm account + */ + enableRegionalMdmAccount?: string; + + /** + * internal metric name + */ + internalMetricName?: string; + + /** + * name of the metric + */ + name?: string; + + /** + * dimension name use to replace resource id if specified + */ + resourceIdDimensionNameOverride?: string; + + /** + * Metric namespace. + * Only set the namespace if different from the default value, + * leaving it empty makes it use the value from the ARM manifest. + */ + sourceMdmNamespace?: string; + + /** + * supported aggregation types + */ + supportedAggregationTypes?: string[]; + + /** + * supported time grain types + */ + supportedTimeGrainTypes?: string[]; + + /** + * units for the metric + */ + unit?: string; +} + +/** + * properties for dimension + */ +model DimensionProperties { + /** + * localized display name of the dimension to customer + */ + displayName?: string; + + /** + * dimension name + */ + name?: string; + + /** + * flag indicating whether this dimension should be included to the customer in Azure Monitor logs (aka Shoebox) + */ + toBeExportedForCustomer?: boolean; +} + +/** + * Paged list of private link resources + */ +model PrivateLinkResourceList is Azure.Core.Page; + +/** + * A privately linkable resource properties. + */ +#suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-provisioning-state" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" +model PrivateLinkResourceProperties { + /** + * The private link resource group identifier. + */ + @visibility(Lifecycle.Read) + groupId?: string; + + /** + * This translates to how many Private IPs should be created for each privately linkable resource. + */ + @visibility(Lifecycle.Read) + requiredMembers?: string[]; + + /** + * The required zone names for private link resource. + */ + @visibility(Lifecycle.Read) + requiredZoneNames?: string[]; +} + +/** + * The request payload for CheckNameAvailability API + */ +model CheckNameAvailabilityRequest { + /** + * Resource name to verify for availability + */ + name?: string; + + /** + * Fully qualified resource type which includes provider namespace + */ + type?: string; +} + +/** + * The response payload for CheckNameAvailability API + */ +model CheckNameAvailabilityResult { + /** + * Error message + */ + message?: string; + + /** + * Indicates if name is valid and available. + */ + nameAvailable?: boolean; + + /** + * The reason the name is not available. + */ + reason?: Reason; +} + +/** + * List of usage information + */ +model UsageList is Azure.Core.Page; + +/** + * Response for usage information + */ +model Usage { + /** + * Current usage quota value + */ + @visibility(Lifecycle.Read) + currentValue?: int32; + + /** + * Fully qualified resource Id + */ + @visibility(Lifecycle.Read) + id?: string; + + /** + * Usage quota limit + */ + @visibility(Lifecycle.Read) + limit?: int32; + + /** + * Quota name + */ + @visibility(Lifecycle.Read) + name?: UsageName; + + /** + * Quota usage unit. + */ + @visibility(Lifecycle.Read) + unit?: string; +} + +/** + * Quota name + */ +#suppress "@azure-tools/typespec-azure-resource-manager/no-empty-model" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" +#suppress "@azure-tools/typespec-azure-core/composition-over-inheritance" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" +model UsageName extends QuotaName {} + +/** + * Quota name + */ +model QuotaName { + /** + * Gets or sets the localized name value. + */ + localizedValue?: string; + + /** + * Gets or sets the name value. + */ + value?: string; +} + +/** + * Consent extension resource + */ +#suppress "@azure-tools/typespec-azure-core/composition-over-inheritance" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" +model Consent extends ProxyResource { + /** + * Gets or sets the consent kind. + */ + kind?: ConsentKind; + + /** + * The consent properties + */ + properties?: ConsentProperties; +} + +/** + * The consent properties + */ +model ConsentProperties { + #suppress "@azure-tools/typespec-azure-core/documentation-required" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" + @visibility(Lifecycle.Read) + scope?: string; + + /** + * Defines consent scope type. + */ + @visibility(Lifecycle.Read) + scopeType?: ConsentScopeType; + + /** + * Defines consent status. + */ + @visibility(Lifecycle.Read) + status?: ConsentStatus; +} diff --git a/specification/purview/resource-manager/Microsoft.Purview/Purview/preview/2024-04-01-preview/examples/Accounts_AddRootCollectionAdmin.json b/specification/purview/resource-manager/Microsoft.Purview/Purview/preview/2024-04-01-preview/examples/Accounts_AddRootCollectionAdmin.json index c3250bf6baa5..4626738850df 100644 --- a/specification/purview/resource-manager/Microsoft.Purview/Purview/preview/2024-04-01-preview/examples/Accounts_AddRootCollectionAdmin.json +++ b/specification/purview/resource-manager/Microsoft.Purview/Purview/preview/2024-04-01-preview/examples/Accounts_AddRootCollectionAdmin.json @@ -1,22 +1,24 @@ { "parameters": { - "subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", - "resourceGroupName": "SampleResourceGroup", "accountName": "account1", "api-version": "2024-04-01-preview", "collectionAdminUpdate": { "objectId": "7e8de0e7-2bfc-4e1f-9659-2a5785e4356f" - } + }, + "resourceGroupName": "SampleResourceGroup", + "subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345" }, "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", "x-ms-ratelimit-remaining-tenant-reads": "14999", - "x-ms-correlation-request-id": "25c78f97-0b0a-4fe9-ad39-883a482265cd" + "x-ms-request-id": "d5496da4-9c52-402f-b067-83cc9ddea888" } } - } + }, + "operationId": "Accounts_AddRootCollectionAdmin", + "title": "Accounts_AddRootCollectionAdmin" } diff --git a/specification/purview/resource-manager/Microsoft.Purview/Purview/preview/2024-04-01-preview/examples/Accounts_CheckNameAvailability.json b/specification/purview/resource-manager/Microsoft.Purview/Purview/preview/2024-04-01-preview/examples/Accounts_CheckNameAvailability.json index f0c9448a752a..02b2562d62e8 100644 --- a/specification/purview/resource-manager/Microsoft.Purview/Purview/preview/2024-04-01-preview/examples/Accounts_CheckNameAvailability.json +++ b/specification/purview/resource-manager/Microsoft.Purview/Purview/preview/2024-04-01-preview/examples/Accounts_CheckNameAvailability.json @@ -1,24 +1,26 @@ { "parameters": { + "api-version": "2024-04-01-preview", "checkNameAvailabilityRequest": { "name": "account1", "type": "Microsoft.Purview/accounts" }, - "api-version": "2024-04-01-preview", "subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345" }, "responses": { "200": { + "body": { + "nameAvailable": true + }, "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", "x-ms-ratelimit-remaining-tenant-reads": "14999", - "x-ms-correlation-request-id": "25c78f97-0b0a-4fe9-ad39-883a482265cd" - }, - "body": { - "nameAvailable": true + "x-ms-request-id": "d5496da4-9c52-402f-b067-83cc9ddea888" } } - } + }, + "operationId": "Accounts_CheckNameAvailability", + "title": "Accounts_CheckNameAvailability" } diff --git a/specification/purview/resource-manager/Microsoft.Purview/Purview/preview/2024-04-01-preview/examples/Accounts_CreateOrUpdate.json b/specification/purview/resource-manager/Microsoft.Purview/Purview/preview/2024-04-01-preview/examples/Accounts_CreateOrUpdate.json index f394c32ed045..88ca28a6d5ce 100644 --- a/specification/purview/resource-manager/Microsoft.Purview/Purview/preview/2024-04-01-preview/examples/Accounts_CreateOrUpdate.json +++ b/specification/purview/resource-manager/Microsoft.Purview/Purview/preview/2024-04-01-preview/examples/Accounts_CreateOrUpdate.json @@ -1,34 +1,21 @@ { "parameters": { - "subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", - "resourceGroupName": "SampleResourceGroup", - "accountName": "account1", - "api-version": "2024-04-01-preview", "account": { "location": "West US 2" - } + }, + "accountName": "account1", + "api-version": "2024-04-01-preview", + "resourceGroupName": "SampleResourceGroup", + "subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345" }, "responses": { - "201": { - "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" - }, + "200": { "body": { - "location": "West US 2", - "id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/SampleResourceGroup/providers/Microsoft.Purview/accounts/account1", "name": "account1", "type": "Microsoft.Purview/accounts", - "sku": { - "name": "Standard", - "capacity": 1 - }, + "id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/SampleResourceGroup/providers/Microsoft.Purview/accounts/account1", + "location": "West US 2", "properties": { - "friendlyName": "friendly-account1", - "provisioningState": "Creating", "accountStatus": { "accountProvisioningState": "Succeeded", "errorDetails": {} @@ -37,38 +24,51 @@ "catalog": "https://account1.catalog.purview.azure-test.com", "scan": "https://account1.scan.purview.azure-test.com" }, - "publicNetworkAccess": "Enabled" - } - } - }, - "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.Purview/accounts/account1", - "name": "account1", - "type": "Microsoft.Purview/accounts", + "friendlyName": "friendly-account1", + "ingestionStorage": { + "id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/ingestion-storage-rg-mwjotkl", + "primaryEndpoint": "https://ingestioneastusddnpkar.z31.blob.storage.azure.net/", + "publicNetworkAccess": "Enabled" + }, + "managedResourceGroupName": "custom-rgname", + "managedResources": { + "eventHubNamespace": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/custom-rgname/providers/Microsoft.EventHub/namespaces/atlas-westusdddnbtp", + "resourceGroup": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/custom-rgname", + "storageAccount": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/custom-rgname/providers/Microsoft.Storage/storageAccounts/scanwestustzaagzr" + }, + "managedResourcesPublicNetworkAccess": "Enabled", + "provisioningState": "Succeeded", + "publicNetworkAccess": "Enabled", + "tenantEndpointState": "Disabled" + }, "sku": { "name": "Standard", "capacity": 1 }, "systemData": { + "createdAt": "2019-11-22T18:39:58.6929344Z", "createdBy": "client-name", "createdByType": "User", - "createdAt": "2019-11-22T18:39:58.6929344Z", + "lastModifiedAt": "2021-03-16T23:24:34.3430059Z", "lastModifiedBy": "client-name", - "lastModifiedByType": "User", - "lastModifiedAt": "2021-03-16T23:24:34.3430059Z" - }, + "lastModifiedByType": "User" + } + }, + "headers": { + "Date": "Wed, 13 Sep 2017 18:04:32 GMT", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "25c78f97-0b0a-4fe9-ad39-883a482265cd", + "x-ms-ratelimit-remaining-tenant-reads": "14999", + "x-ms-request-id": "d5496da4-9c52-402f-b067-83cc9ddea888" + } + }, + "201": { + "body": { + "name": "account1", + "type": "Microsoft.Purview/accounts", + "id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/SampleResourceGroup/providers/Microsoft.Purview/accounts/account1", + "location": "West US 2", "properties": { - "friendlyName": "friendly-account1", - "provisioningState": "Succeeded", "accountStatus": { "accountProvisioningState": "Succeeded", "errorDetails": {} @@ -77,22 +77,24 @@ "catalog": "https://account1.catalog.purview.azure-test.com", "scan": "https://account1.scan.purview.azure-test.com" }, - "publicNetworkAccess": "Enabled", - "managedResourceGroupName": "custom-rgname", - "managedResourcesPublicNetworkAccess": "Enabled", - "managedResources": { - "resourceGroup": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/custom-rgname", - "storageAccount": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/custom-rgname/providers/Microsoft.Storage/storageAccounts/scanwestustzaagzr", - "eventHubNamespace": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/custom-rgname/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" - }, - "tenantEndpointState": "Disabled" + "friendlyName": "friendly-account1", + "provisioningState": "Creating", + "publicNetworkAccess": "Enabled" + }, + "sku": { + "name": "Standard", + "capacity": 1 } + }, + "headers": { + "Date": "Wed, 13 Sep 2017 18:04:32 GMT", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "25c78f97-0b0a-4fe9-ad39-883a482265cd", + "x-ms-ratelimit-remaining-tenant-reads": "14999", + "x-ms-request-id": "d5496da4-9c52-402f-b067-83cc9ddea888" } } - } + }, + "operationId": "Accounts_CreateOrUpdate", + "title": "Accounts_CreateOrUpdate" } diff --git a/specification/purview/resource-manager/Microsoft.Purview/Purview/preview/2024-04-01-preview/examples/Accounts_Delete.json b/specification/purview/resource-manager/Microsoft.Purview/Purview/preview/2024-04-01-preview/examples/Accounts_Delete.json index b3adff3a32f2..887562763db2 100644 --- a/specification/purview/resource-manager/Microsoft.Purview/Purview/preview/2024-04-01-preview/examples/Accounts_Delete.json +++ b/specification/purview/resource-manager/Microsoft.Purview/Purview/preview/2024-04-01-preview/examples/Accounts_Delete.json @@ -1,39 +1,41 @@ { "parameters": { - "subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", - "resourceGroupName": "SampleResourceGroup", "accountName": "account1", - "api-version": "2024-04-01-preview" + "api-version": "2024-04-01-preview", + "resourceGroupName": "SampleResourceGroup", + "subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345" }, "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", "x-ms-ratelimit-remaining-tenant-reads": "14999", - "x-ms-correlation-request-id": "25c78f97-0b0a-4fe9-ad39-883a482265cd" + "x-ms-request-id": "d5496da4-9c52-402f-b067-83cc9ddea888" } }, "202": { "headers": { + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/SampleResourceGroup/providers/Microsoft.Purview/accounts/account1/operationResults/dad6baec-3a39-41df-a469-843a9ee94213?api-version=2021-07-01", "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", "x-ms-long-running-operation": true, - "Azure-AsyncOperation": "https://management.azure.com/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/SampleResourceGroup/providers/Microsoft.Purview/accounts/account1/operationResults/dad6baec-3a39-41df-a469-843a9ee94213?api-version=2021-07-01" + "x-ms-ratelimit-remaining-tenant-reads": "14999", + "x-ms-request-id": "d5496da4-9c52-402f-b067-83cc9ddea888" } }, "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", "x-ms-ratelimit-remaining-tenant-reads": "14999", - "x-ms-correlation-request-id": "25c78f97-0b0a-4fe9-ad39-883a482265cd" + "x-ms-request-id": "d5496da4-9c52-402f-b067-83cc9ddea888" } } - } + }, + "operationId": "Accounts_Delete", + "title": "Accounts_Delete" } diff --git a/specification/purview/resource-manager/Microsoft.Purview/Purview/preview/2024-04-01-preview/examples/Accounts_Get.json b/specification/purview/resource-manager/Microsoft.Purview/Purview/preview/2024-04-01-preview/examples/Accounts_Get.json index 0c6543391a1b..ca6ec9ae970b 100644 --- a/specification/purview/resource-manager/Microsoft.Purview/Purview/preview/2024-04-01-preview/examples/Accounts_Get.json +++ b/specification/purview/resource-manager/Microsoft.Purview/Purview/preview/2024-04-01-preview/examples/Accounts_Get.json @@ -1,91 +1,93 @@ { "parameters": { - "subscriptionId": "12345678-1234-1234-12345678abc", - "resourceGroupName": "SampleResourceGroup", "accountName": "account1", - "api-version": "2024-04-01-preview" + "api-version": "2024-04-01-preview", + "resourceGroupName": "SampleResourceGroup", + "subscriptionId": "12345678-1234-1234-12345678abc" }, "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.Purview/accounts/account1", "name": "account1", "type": "Microsoft.Purview/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" - }, + "id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/SampleResourceGroup/providers/Microsoft.Purview/accounts/account1", + "location": "West US 2", "properties": { - "friendlyName": "friendly-account1", - "provisioningState": "Succeeded", "accountStatus": { "accountProvisioningState": "Succeeded", "errorDetails": {} }, + "defaultDomain": "account1", "endpoints": { "catalog": "https://account1.catalog.purview.azure-test.com", "scan": "https://account1.scan.purview.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.Purview/accounts/account1/privateEndpointConnections/peName-8536c337-7b36-4d67-a7ce-081655baf59e", - "name": "peName-8536c337-7b36-4d67-a7ce-081655baf59e", - "type": "Microsoft.Purview/accounts/privateEndpointConnections" - } - ], - "publicNetworkAccess": "Enabled", - "managedResourceGroupName": "managed-rg-mwjotkl", - "managedResourcesPublicNetworkAccess": "Enabled", - "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" - }, + "friendlyName": "friendly-account1", "ingestionStorage": { "id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/ingestion-storage-rg-mwjotkl", "primaryEndpoint": "https://ingestioneastusddnpkar.z31.blob.storage.azure.net/", "publicNetworkAccess": "Enabled" }, + "managedResourceGroupName": "managed-rg-mwjotkl", + "managedResources": { + "eventHubNamespace": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/managed-rg-mwjotkl/providers/Microsoft.EventHub/namespaces/atlas-westusdddnbtp", + "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" + }, + "managedResourcesPublicNetworkAccess": "Enabled", "mergeInfo": { "accountLocation": "westus2", "accountName": "otherAccount", "accountResourceGroupName": "otherAccountRG", "accountSubscriptionId": "92d4ce06-0032-4e6b-9103-88ba3e159551", - "typeOfAccount": "Secondary", + "deprovisioned": false, "mergeStatus": "Succeeded", - "deprovisioned": false + "typeOfAccount": "Secondary" }, - "defaultDomain": "account1", + "privateEndpointConnections": [ + { + "name": "peName-8536c337-7b36-4d67-a7ce-081655baf59e", + "type": "Microsoft.Purview/accounts/privateEndpointConnections", + "id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/SampleResourceGroup/providers/Microsoft.Purview/accounts/account1/privateEndpointConnections/peName-8536c337-7b36-4d67-a7ce-081655baf59e", + "properties": { + "privateEndpoint": { + "id": "/subscriptions/baca8a88-4527-4c35-a13e-b2775ce0d7fc/resourceGroups/nrpResourceGroupName/providers/Microsoft.Network/privateEndpoints/peName" + }, + "privateLinkServiceConnectionState": { + "description": "Please approve my connection, thanks.", + "actionsRequired": "None", + "status": "Pending" + }, + "provisioningState": "Succeeded" + } + } + ], + "provisioningState": "Succeeded", + "publicNetworkAccess": "Enabled", "tenantEndpointState": "Disabled" + }, + "sku": { + "name": "Standard", + "capacity": 1 + }, + "systemData": { + "createdAt": "2019-11-22T18:39:58.6929344Z", + "createdBy": "client-name", + "createdByType": "User", + "lastModifiedAt": "2021-03-16T23:24:34.3430059Z", + "lastModifiedBy": "client-name", + "lastModifiedByType": "User" } + }, + "headers": { + "Date": "Wed, 13 Sep 2017 18:04:32 GMT", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "25c78f97-0b0a-4fe9-ad39-883a482265cd", + "x-ms-ratelimit-remaining-tenant-reads": "14999", + "x-ms-request-id": "d5496da4-9c52-402f-b067-83cc9ddea888" } } - } + }, + "operationId": "Accounts_Get", + "title": "Accounts_Get" } diff --git a/specification/purview/resource-manager/Microsoft.Purview/Purview/preview/2024-04-01-preview/examples/Accounts_ListByResourceGroup.json b/specification/purview/resource-manager/Microsoft.Purview/Purview/preview/2024-04-01-preview/examples/Accounts_ListByResourceGroup.json index 3e284955734f..570f67614348 100644 --- a/specification/purview/resource-manager/Microsoft.Purview/Purview/preview/2024-04-01-preview/examples/Accounts_ListByResourceGroup.json +++ b/specification/purview/resource-manager/Microsoft.Purview/Purview/preview/2024-04-01-preview/examples/Accounts_ListByResourceGroup.json @@ -1,40 +1,19 @@ { "parameters": { "api-version": "2024-04-01-preview", - "subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", - "resourceGroupName": "SampleResourceGroup" + "resourceGroupName": "SampleResourceGroup", + "subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345" }, "responses": { "200": { - "headers": { - "Date": "Wed, 13 Sep 2017 17:33:55 GMT", - "x-ms-request-id": "8e58266a-de42-40d5-b3c4-c6a7e159cfba", - "X-Content-Type-Options": "nosniff", - "x-ms-ratelimit-remaining-subscription-reads": "14993", - "x-ms-correlation-request-id": "5d862c55-4de9-4a46-969d-cf1ed3e235ed" - }, "body": { "value": [ { - "location": "West US 2", - "id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/SampleResourceGroup/providers/Microsoft.Purview/accounts/account1", "name": "account1", "type": "Microsoft.Purview/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" - }, + "id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/SampleResourceGroup/providers/Microsoft.Purview/accounts/account1", + "location": "West US 2", "properties": { - "friendlyName": "friendly-account1", - "provisioningState": "Succeeded", "accountStatus": { "accountProvisioningState": "Succeeded", "errorDetails": {} @@ -43,59 +22,59 @@ "catalog": "https://account1.catalog.purview.azure-test.com", "scan": "https://account1.scan.purview.azure-test.com" }, + "friendlyName": "friendly-account1", + "ingestionStorage": { + "id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/ingestion-storage-rg-mwjotkl", + "primaryEndpoint": "https://ingestioneastusddnpkar.z31.blob.storage.azure.net/", + "publicNetworkAccess": "Enabled" + }, + "managedResourceGroupName": "managed-rg-mwjotkl", + "managedResources": { + "eventHubNamespace": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/managed-rg-mwjotkl/providers/Microsoft.EventHub/namespaces/atlas-westusdddnbtp", + "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" + }, + "managedResourcesPublicNetworkAccess": "Enabled", "privateEndpointConnections": [ { + "name": "peName-8536c337-7b36-4d67-a7ce-081655baf59e", + "type": "Microsoft.Purview/accounts/privateEndpointConnections", + "id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/SampleResourceGroup/providers/Microsoft.Purview/accounts/account1/privateEndpointConnections/peName-8536c337-7b36-4d67-a7ce-081655baf59e", "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.Purview/accounts/account1/privateEndpointConnections/peName-8536c337-7b36-4d67-a7ce-081655baf59e", - "name": "peName-8536c337-7b36-4d67-a7ce-081655baf59e", - "type": "Microsoft.Purview/accounts/privateEndpointConnections" + "actionsRequired": "None", + "status": "Pending" + }, + "provisioningState": "Succeeded" + } } ], - "publicNetworkAccess": "Enabled", - "managedResourceGroupName": "managed-rg-mwjotkl", - "managedResourcesPublicNetworkAccess": "Enabled", - "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" - } - } - }, - { - "location": "West US 2", - "id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/SampleResourceGroup/providers/Microsoft.Purview/accounts/account2", - "name": "account2", - "type": "Microsoft.Purview/accounts", + "provisioningState": "Succeeded", + "publicNetworkAccess": "Enabled" + }, "sku": { "name": "Standard", "capacity": 1 }, "systemData": { + "createdAt": "2019-11-22T18:39:58.6929344Z", "createdBy": "client-name", "createdByType": "User", - "createdAt": "2019-11-22T18:39:58.6929344Z", + "lastModifiedAt": "2021-03-16T23:24:34.3430059Z", "lastModifiedBy": "client-name", - "lastModifiedByType": "User", - "lastModifiedAt": "2021-03-16T23:24:34.3430059Z" - }, + "lastModifiedByType": "User" + } + }, + { + "name": "account2", + "type": "Microsoft.Purview/accounts", + "id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/SampleResourceGroup/providers/Microsoft.Purview/accounts/account2", + "location": "West US 2", "properties": { - "friendlyName": "friendly-account2", - "provisioningState": "Succeeded", "accountStatus": { "accountProvisioningState": "Succeeded", "errorDetails": {} @@ -104,41 +83,64 @@ "catalog": "https://account2.catalog.purview.azure-test.com", "scan": "https://account2.scan.purview.azure-test.com" }, + "friendlyName": "friendly-account2", + "ingestionStorage": { + "id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/ingestion-storage-rg-mwjotkl", + "primaryEndpoint": "https://ingestioneastusddnpkar.z31.blob.storage.azure.net/", + "publicNetworkAccess": "Enabled" + }, + "managedResourceGroupName": "managed-rg-mwjotkl", + "managedResources": { + "eventHubNamespace": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/managed-rg-mwjotkl/providers/Microsoft.EventHub/namespaces/atlas-westusdddnbtp", + "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" + }, + "managedResourcesPublicNetworkAccess": "Enabled", "privateEndpointConnections": [ { + "name": "peName-8536c337-7b36-4d67-a7ce-081655baf59e", + "type": "Microsoft.Purview/accounts/privateEndpointConnections", + "id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/SampleResourceGroup/providers/Microsoft.Purview/accounts/account1/privateEndpointConnections/peName-8536c337-7b36-4d67-a7ce-081655baf59e", "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.Purview/accounts/account1/privateEndpointConnections/peName-8536c337-7b36-4d67-a7ce-081655baf59e", - "name": "peName-8536c337-7b36-4d67-a7ce-081655baf59e", - "type": "Microsoft.Purview/accounts/privateEndpointConnections" + "actionsRequired": "None", + "status": "Pending" + }, + "provisioningState": "Succeeded" + } } ], - "publicNetworkAccess": "Enabled", - "managedResourceGroupName": "managed-rg-mwjotkl", - "managedResourcesPublicNetworkAccess": "Enabled", - "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" - } + "provisioningState": "Succeeded", + "publicNetworkAccess": "Enabled" + }, + "sku": { + "name": "Standard", + "capacity": 1 + }, + "systemData": { + "createdAt": "2019-11-22T18:39:58.6929344Z", + "createdBy": "client-name", + "createdByType": "User", + "lastModifiedAt": "2021-03-16T23:24:34.3430059Z", + "lastModifiedBy": "client-name", + "lastModifiedByType": "User" } } ] + }, + "headers": { + "Date": "Wed, 13 Sep 2017 17:33:55 GMT", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "5d862c55-4de9-4a46-969d-cf1ed3e235ed", + "x-ms-ratelimit-remaining-subscription-reads": "14993", + "x-ms-request-id": "8e58266a-de42-40d5-b3c4-c6a7e159cfba" } } - } + }, + "operationId": "Accounts_ListByResourceGroup", + "title": "Accounts_ListByResourceGroup" } diff --git a/specification/purview/resource-manager/Microsoft.Purview/Purview/preview/2024-04-01-preview/examples/Accounts_ListBySubscription.json b/specification/purview/resource-manager/Microsoft.Purview/Purview/preview/2024-04-01-preview/examples/Accounts_ListBySubscription.json index 0912545f98f4..47b9d1975ae9 100644 --- a/specification/purview/resource-manager/Microsoft.Purview/Purview/preview/2024-04-01-preview/examples/Accounts_ListBySubscription.json +++ b/specification/purview/resource-manager/Microsoft.Purview/Purview/preview/2024-04-01-preview/examples/Accounts_ListBySubscription.json @@ -5,35 +5,14 @@ }, "responses": { "200": { - "headers": { - "Date": "Wed, 13 Sep 2017 17:33:55 GMT", - "x-ms-request-id": "8e58266a-de42-40d5-b3c4-c6a7e159cfba", - "X-Content-Type-Options": "nosniff", - "x-ms-ratelimit-remaining-subscription-reads": "14993", - "x-ms-correlation-request-id": "5d862c55-4de9-4a46-969d-cf1ed3e235ed" - }, "body": { "value": [ { - "location": "West US 2", - "id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/SampleResourceGroup/providers/Microsoft.Purview/accounts/account1", "name": "account1", "type": "Microsoft.Purview/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" - }, + "id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/SampleResourceGroup/providers/Microsoft.Purview/accounts/account1", + "location": "West US 2", "properties": { - "friendlyName": "friendly-account1", - "provisioningState": "Succeeded", "accountStatus": { "accountProvisioningState": "Succeeded", "errorDetails": {} @@ -42,59 +21,59 @@ "catalog": "https://account1.catalog.purview.azure-test.com", "scan": "https://account1.scan.purview.azure-test.com" }, + "friendlyName": "friendly-account1", + "ingestionStorage": { + "id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/ingestion-storage-rg-mwjotkl", + "primaryEndpoint": "https://ingestioneastusddnpkar.z31.blob.storage.azure.net/", + "publicNetworkAccess": "Enabled" + }, + "managedResourceGroupName": "managed-rg-mwjotkl", + "managedResources": { + "eventHubNamespace": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/managed-rg-mwjotkl/providers/Microsoft.EventHub/namespaces/atlas-westusdddnbtp", + "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" + }, + "managedResourcesPublicNetworkAccess": "Enabled", "privateEndpointConnections": [ { + "name": "peName-8536c337-7b36-4d67-a7ce-081655baf59e", + "type": "Microsoft.Purview/accounts/privateEndpointConnections", + "id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/SampleResourceGroup/providers/Microsoft.Purview/accounts/account1/privateEndpointConnections/peName-8536c337-7b36-4d67-a7ce-081655baf59e", "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.Purview/accounts/account1/privateEndpointConnections/peName-8536c337-7b36-4d67-a7ce-081655baf59e", - "name": "peName-8536c337-7b36-4d67-a7ce-081655baf59e", - "type": "Microsoft.Purview/accounts/privateEndpointConnections" + "actionsRequired": "None", + "status": "Pending" + }, + "provisioningState": "Succeeded" + } } ], - "publicNetworkAccess": "Enabled", - "managedResourceGroupName": "managed-rg-mwjotkl", - "managedResourcesPublicNetworkAccess": "Enabled", - "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" - } - } - }, - { - "location": "West US 2", - "id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/SampleResourceGroup/providers/Microsoft.Purview/accounts/account2", - "name": "account2", - "type": "Microsoft.Purview/accounts", + "provisioningState": "Succeeded", + "publicNetworkAccess": "Enabled" + }, "sku": { "name": "Standard", "capacity": 1 }, "systemData": { + "createdAt": "2019-11-22T18:39:58.6929344Z", "createdBy": "client-name", "createdByType": "User", - "createdAt": "2019-11-22T18:39:58.6929344Z", + "lastModifiedAt": "2021-03-16T23:24:34.3430059Z", "lastModifiedBy": "client-name", - "lastModifiedByType": "User", - "lastModifiedAt": "2021-03-16T23:24:34.3430059Z" - }, + "lastModifiedByType": "User" + } + }, + { + "name": "account2", + "type": "Microsoft.Purview/accounts", + "id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/SampleResourceGroup/providers/Microsoft.Purview/accounts/account2", + "location": "West US 2", "properties": { - "friendlyName": "friendly-account2", - "provisioningState": "Succeeded", "accountStatus": { "accountProvisioningState": "Succeeded", "errorDetails": {} @@ -103,41 +82,64 @@ "catalog": "https://account2.catalog.purview.azure-test.com", "scan": "https://account2.scan.purview.azure-test.com" }, + "friendlyName": "friendly-account2", + "ingestionStorage": { + "id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/ingestion-storage-rg-mwjotkl", + "primaryEndpoint": "https://ingestioneastusddnpkar.z31.blob.storage.azure.net/", + "publicNetworkAccess": "Enabled" + }, + "managedResourceGroupName": "managed-rg-mwjotkl", + "managedResources": { + "eventHubNamespace": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/managed-rg-mwjotkl/providers/Microsoft.EventHub/namespaces/atlas-westusdddnbtp", + "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" + }, + "managedResourcesPublicNetworkAccess": "Enabled", "privateEndpointConnections": [ { + "name": "peName-8536c337-7b36-4d67-a7ce-081655baf59e", + "type": "Microsoft.Purview/accounts/privateEndpointConnections", + "id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/SampleResourceGroup/providers/Microsoft.Purview/accounts/account1/privateEndpointConnections/peName-8536c337-7b36-4d67-a7ce-081655baf59e", "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.Purview/accounts/account1/privateEndpointConnections/peName-8536c337-7b36-4d67-a7ce-081655baf59e", - "name": "peName-8536c337-7b36-4d67-a7ce-081655baf59e", - "type": "Microsoft.Purview/accounts/privateEndpointConnections" + "actionsRequired": "None", + "status": "Pending" + }, + "provisioningState": "Succeeded" + } } ], - "publicNetworkAccess": "Enabled", - "managedResourceGroupName": "managed-rg-mwjotkl", - "managedResourcesPublicNetworkAccess": "Enabled", - "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" - } + "provisioningState": "Succeeded", + "publicNetworkAccess": "Enabled" + }, + "sku": { + "name": "Standard", + "capacity": 1 + }, + "systemData": { + "createdAt": "2019-11-22T18:39:58.6929344Z", + "createdBy": "client-name", + "createdByType": "User", + "lastModifiedAt": "2021-03-16T23:24:34.3430059Z", + "lastModifiedBy": "client-name", + "lastModifiedByType": "User" } } ] + }, + "headers": { + "Date": "Wed, 13 Sep 2017 17:33:55 GMT", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "5d862c55-4de9-4a46-969d-cf1ed3e235ed", + "x-ms-ratelimit-remaining-subscription-reads": "14993", + "x-ms-request-id": "8e58266a-de42-40d5-b3c4-c6a7e159cfba" } } - } + }, + "operationId": "Accounts_ListBySubscription", + "title": "Accounts_ListBySubscription" } diff --git a/specification/purview/resource-manager/Microsoft.Purview/Purview/preview/2024-04-01-preview/examples/Accounts_ListKeys.json b/specification/purview/resource-manager/Microsoft.Purview/Purview/preview/2024-04-01-preview/examples/Accounts_ListKeys.json index eadb136f81cf..f90d8ddb501c 100644 --- a/specification/purview/resource-manager/Microsoft.Purview/Purview/preview/2024-04-01-preview/examples/Accounts_ListKeys.json +++ b/specification/purview/resource-manager/Microsoft.Purview/Purview/preview/2024-04-01-preview/examples/Accounts_ListKeys.json @@ -1,23 +1,25 @@ { "parameters": { - "subscriptionId": "12345678-1234-1234-12345678abc", - "resourceGroupName": "SampleResourceGroup", "accountName": "account1", - "api-version": "2024-04-01-preview" + "api-version": "2024-04-01-preview", + "resourceGroupName": "SampleResourceGroup", + "subscriptionId": "12345678-1234-1234-12345678abc" }, "responses": { "200": { + "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=" + }, "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", "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=" + "x-ms-request-id": "d5496da4-9c52-402f-b067-83cc9ddea888" } } - } + }, + "operationId": "Accounts_ListKeys", + "title": "Accounts_ListKeys" } diff --git a/specification/purview/resource-manager/Microsoft.Purview/Purview/preview/2024-04-01-preview/examples/Accounts_Update.json b/specification/purview/resource-manager/Microsoft.Purview/Purview/preview/2024-04-01-preview/examples/Accounts_Update.json index db8c1d594d06..f5d2ccc4a18c 100644 --- a/specification/purview/resource-manager/Microsoft.Purview/Purview/preview/2024-04-01-preview/examples/Accounts_Update.json +++ b/specification/purview/resource-manager/Microsoft.Purview/Purview/preview/2024-04-01-preview/examples/Accounts_Update.json @@ -1,52 +1,31 @@ { "parameters": { - "subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", - "resourceGroupName": "SampleResourceGroup", "accountName": "account1", - "api-version": "2024-04-01-preview", "accountUpdateParameters": { "properties": { "cloudConnectors": {}, - "publicNetworkAccess": "Disabled", - "managedResourcesPublicNetworkAccess": "Disabled", "ingestionStorage": { "publicNetworkAccess": "Disabled" - } + }, + "managedResourcesPublicNetworkAccess": "Disabled", + "publicNetworkAccess": "Disabled" }, "tags": { "newTag": "New tag value." } - } + }, + "api-version": "2024-04-01-preview", + "resourceGroupName": "SampleResourceGroup", + "subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345" }, "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.Purview/accounts/account1", "name": "account1", "type": "Microsoft.Purview/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" - }, + "id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/SampleResourceGroup/providers/Microsoft.Purview/accounts/account1", + "location": "West US 2", "properties": { - "friendlyName": "friendly-account1", - "provisioningState": "Succeeded", "accountStatus": { "accountProvisioningState": "Succeeded", "errorDetails": {} @@ -55,75 +34,98 @@ "catalog": "https://account2.catalog.purview.azure-test.com", "scan": "https://account2.scan.purview.azure-test.com" }, - "publicNetworkAccess": "Disabled", - "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" - }, + "friendlyName": "friendly-account1", "ingestionStorage": { "id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/ingestion-storage-rg-mwjotkl", "primaryEndpoint": "https://ingestioneastusddnpkar.z31.blob.storage.azure.net/", "publicNetworkAccess": "Disabled" }, + "managedResources": { + "eventHubNamespace": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/managed-rg-mwjotkl/providers/Microsoft.EventHub/namespaces/atlas-westusdddnbtp", + "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" + }, + "provisioningState": "Succeeded", + "publicNetworkAccess": "Disabled", "tenantEndpointState": "Disabled" }, + "sku": { + "name": "Standard", + "capacity": 1 + }, + "systemData": { + "createdAt": "2019-11-22T18:39:58.6929344Z", + "createdBy": "client-name", + "createdByType": "User", + "lastModifiedAt": "2021-03-16T23:24:34.3430059Z", + "lastModifiedBy": "client-name", + "lastModifiedByType": "User" + }, "tags": { "newTag": "New tag value." } - } - }, - "202": { + }, "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", - "x-ms-long-running-operation": true, - "Azure-AsyncOperation": "https://management.azure.com/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/SampleResourceGroup/providers/Microsoft.Purview/accounts/account1/operationResults/dad6baec-3a39-41df-a469-843a9ee94213?api-version=2021-07-01" - }, + "x-ms-ratelimit-remaining-tenant-reads": "14999", + "x-ms-request-id": "d5496da4-9c52-402f-b067-83cc9ddea888" + } + }, + "202": { "body": { - "location": "West US 2", - "id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/SampleResourceGroup/providers/Microsoft.Purview/accounts/account1", "name": "account1", "type": "Microsoft.Purview/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" - }, + "id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/SampleResourceGroup/providers/Microsoft.Purview/accounts/account1", + "location": "West US 2", "properties": { - "friendlyName": "friendly-account1", - "provisioningState": "Succeeded", "endpoints": { "catalog": "https://account2.catalog.purview.azure-test.com", "scan": "https://account2.scan.purview.azure-test.com" }, - "publicNetworkAccess": "Disabled", - "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" - }, + "friendlyName": "friendly-account1", "ingestionStorage": { "id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/ingestion-storage-rg-mwjotkl", "primaryEndpoint": "https://ingestioneastusddnpkar.z31.blob.storage.azure.net/", "publicNetworkAccess": "Disabled" }, + "managedResources": { + "eventHubNamespace": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/managed-rg-mwjotkl/providers/Microsoft.EventHub/namespaces/atlas-westusdddnbtp", + "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" + }, + "provisioningState": "Succeeded", + "publicNetworkAccess": "Disabled", "tenantEndpointState": "Disabled" }, + "sku": { + "name": "Standard", + "capacity": 1 + }, + "systemData": { + "createdAt": "2019-11-22T18:39:58.6929344Z", + "createdBy": "client-name", + "createdByType": "User", + "lastModifiedAt": "2021-03-16T23:24:34.3430059Z", + "lastModifiedBy": "client-name", + "lastModifiedByType": "User" + }, "tags": { "newTag": "New tag value." } + }, + "headers": { + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/SampleResourceGroup/providers/Microsoft.Purview/accounts/account1/operationResults/dad6baec-3a39-41df-a469-843a9ee94213?api-version=2021-07-01", + "Date": "Wed, 13 Sep 2017 18:04:32 GMT", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "25c78f97-0b0a-4fe9-ad39-883a482265cd", + "x-ms-long-running-operation": true, + "x-ms-ratelimit-remaining-tenant-reads": "14999", + "x-ms-request-id": "d5496da4-9c52-402f-b067-83cc9ddea888" } } - } + }, + "operationId": "Accounts_Update", + "title": "Accounts_Update" } diff --git a/specification/purview/resource-manager/Microsoft.Purview/Purview/preview/2024-04-01-preview/examples/DefaultAccounts_Get.json b/specification/purview/resource-manager/Microsoft.Purview/Purview/preview/2024-04-01-preview/examples/DefaultAccounts_Get.json index 68ec56027047..cdefa4ab7cf3 100644 --- a/specification/purview/resource-manager/Microsoft.Purview/Purview/preview/2024-04-01-preview/examples/DefaultAccounts_Get.json +++ b/specification/purview/resource-manager/Microsoft.Purview/Purview/preview/2024-04-01-preview/examples/DefaultAccounts_Get.json @@ -1,27 +1,29 @@ { "parameters": { - "scopeTenantId": "ee85a74c-405e-4adc-bb47-ffa8ca0c9f31", - "scopeType": "Tenant", + "api-version": "2024-04-01-preview", "scope": "12345678-1234-1234-1234-12345678abcd", - "api-version": "2024-04-01-preview" + "scopeTenantId": "ee85a74c-405e-4adc-bb47-ffa8ca0c9f31", + "scopeType": "Tenant" }, "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": { - "scopeTenantId": "12345678-1234-1234-1234-12345678abcd", - "scopeType": "Tenant", - "scope": "12345678-1234-1234-1234-12345678abcd", "accountName": "myDefaultAccount", "resourceGroupName": "rg-1", + "scope": "12345678-1234-1234-1234-12345678abcd", + "scopeTenantId": "12345678-1234-1234-1234-12345678abcd", + "scopeType": "Tenant", "subscriptionId": "12345678-1234-1234-1234-12345678aaaa" + }, + "headers": { + "Date": "Wed, 13 Sep 2017 18:04:32 GMT", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "25c78f97-0b0a-4fe9-ad39-883a482265cd", + "x-ms-ratelimit-remaining-tenant-reads": "14999", + "x-ms-request-id": "d5496da4-9c52-402f-b067-83cc9ddea888" } } - } + }, + "operationId": "DefaultAccounts_Get", + "title": "DefaultAccounts_Get" } diff --git a/specification/purview/resource-manager/Microsoft.Purview/Purview/preview/2024-04-01-preview/examples/DefaultAccounts_Remove.json b/specification/purview/resource-manager/Microsoft.Purview/Purview/preview/2024-04-01-preview/examples/DefaultAccounts_Remove.json index 0a293adb9156..adb82d9b42fa 100644 --- a/specification/purview/resource-manager/Microsoft.Purview/Purview/preview/2024-04-01-preview/examples/DefaultAccounts_Remove.json +++ b/specification/purview/resource-manager/Microsoft.Purview/Purview/preview/2024-04-01-preview/examples/DefaultAccounts_Remove.json @@ -1,28 +1,30 @@ { "parameters": { - "scopeTenantId": "ee85a74c-405e-4adc-bb47-ffa8ca0c9f31", - "scopeType": "Tenant", + "api-version": "2024-04-01-preview", "scope": "12345678-1234-1234-1234-12345678abcd", - "api-version": "2024-04-01-preview" + "scopeTenantId": "ee85a74c-405e-4adc-bb47-ffa8ca0c9f31", + "scopeType": "Tenant" }, "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", "x-ms-ratelimit-remaining-tenant-reads": "14999", - "x-ms-correlation-request-id": "25c78f97-0b0a-4fe9-ad39-883a482265cd" + "x-ms-request-id": "d5496da4-9c52-402f-b067-83cc9ddea888" } }, "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", "x-ms-ratelimit-remaining-tenant-reads": "14999", - "x-ms-correlation-request-id": "25c78f97-0b0a-4fe9-ad39-883a482265cd" + "x-ms-request-id": "d5496da4-9c52-402f-b067-83cc9ddea888" } } - } + }, + "operationId": "DefaultAccounts_Remove", + "title": "DefaultAccounts_Remove" } diff --git a/specification/purview/resource-manager/Microsoft.Purview/Purview/preview/2024-04-01-preview/examples/DefaultAccounts_Set.json b/specification/purview/resource-manager/Microsoft.Purview/Purview/preview/2024-04-01-preview/examples/DefaultAccounts_Set.json index 8f5f4e730192..34ba43bb822f 100644 --- a/specification/purview/resource-manager/Microsoft.Purview/Purview/preview/2024-04-01-preview/examples/DefaultAccounts_Set.json +++ b/specification/purview/resource-manager/Microsoft.Purview/Purview/preview/2024-04-01-preview/examples/DefaultAccounts_Set.json @@ -2,31 +2,33 @@ "parameters": { "api-version": "2024-04-01-preview", "defaultAccountPayload": { - "scopeTenantId": "12345678-1234-1234-1234-12345678abcd", - "scopeType": "Tenant", - "scope": "12345678-1234-1234-1234-12345678abcd", "accountName": "myDefaultAccount", "resourceGroupName": "rg-1", + "scope": "12345678-1234-1234-1234-12345678abcd", + "scopeTenantId": "12345678-1234-1234-1234-12345678abcd", + "scopeType": "Tenant", "subscriptionId": "12345678-1234-1234-1234-12345678aaaa" } }, "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": { - "scopeTenantId": "12345678-1234-1234-1234-12345678abcd", - "scopeType": "Tenant", - "scope": "12345678-1234-1234-1234-12345678abcd", "accountName": "myDefaultAccount", "resourceGroupName": "rg-1", + "scope": "12345678-1234-1234-1234-12345678abcd", + "scopeTenantId": "12345678-1234-1234-1234-12345678abcd", + "scopeType": "Tenant", "subscriptionId": "12345678-1234-1234-1234-12345678aaaa" + }, + "headers": { + "Date": "Wed, 13 Sep 2017 18:04:32 GMT", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "25c78f97-0b0a-4fe9-ad39-883a482265cd", + "x-ms-ratelimit-remaining-tenant-reads": "14999", + "x-ms-request-id": "d5496da4-9c52-402f-b067-83cc9ddea888" } } - } + }, + "operationId": "DefaultAccounts_Set", + "title": "DefaultAccounts_Set" } diff --git a/specification/purview/resource-manager/Microsoft.Purview/Purview/preview/2024-04-01-preview/examples/Features_AccountGet.json b/specification/purview/resource-manager/Microsoft.Purview/Purview/preview/2024-04-01-preview/examples/Features_AccountGet.json index 089be2f1eb7a..de93b96aebc5 100644 --- a/specification/purview/resource-manager/Microsoft.Purview/Purview/preview/2024-04-01-preview/examples/Features_AccountGet.json +++ b/specification/purview/resource-manager/Microsoft.Purview/Purview/preview/2024-04-01-preview/examples/Features_AccountGet.json @@ -1,8 +1,7 @@ { "parameters": { - "subscriptionId": "12345678-1234-1234-12345678abc", - "resourceGroupName": "SampleResourceGroup", "accountName": "account1", + "api-version": "2024-04-01-preview", "featureRequest": { "features": [ "Feature1", @@ -10,22 +9,25 @@ "FeatureThatDoesntExist" ] }, - "api-version": "2024-04-01-preview" + "resourceGroupName": "SampleResourceGroup", + "subscriptionId": "12345678-1234-1234-12345678abc" }, "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 } + }, + "headers": { + "Date": "Wed, 13 Sep 2017 18:04:32 GMT", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "25c78f97-0b0a-4fe9-ad39-883a482265cd", + "x-ms-request-id": "d5496da4-9c52-402f-b067-83cc9ddea888" } } - } + }, + "operationId": "Features_AccountGet", + "title": "Features_AccountGet" } diff --git a/specification/purview/resource-manager/Microsoft.Purview/Purview/preview/2024-04-01-preview/examples/Features_SubscriptionGet.json b/specification/purview/resource-manager/Microsoft.Purview/Purview/preview/2024-04-01-preview/examples/Features_SubscriptionGet.json index cb9389619390..835d7777a034 100644 --- a/specification/purview/resource-manager/Microsoft.Purview/Purview/preview/2024-04-01-preview/examples/Features_SubscriptionGet.json +++ b/specification/purview/resource-manager/Microsoft.Purview/Purview/preview/2024-04-01-preview/examples/Features_SubscriptionGet.json @@ -1,7 +1,6 @@ { "parameters": { - "subscriptionId": "12345678-1234-1234-12345678abc", - "locations": "eastus", + "api-version": "2024-04-01-preview", "featureRequest": { "features": [ "Feature1", @@ -9,22 +8,25 @@ "FeatureThatDoesntExist" ] }, - "api-version": "2024-04-01-preview" + "locations": "eastus", + "subscriptionId": "12345678-1234-1234-12345678abc" }, "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 } + }, + "headers": { + "Date": "Wed, 13 Sep 2017 18:04:32 GMT", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "25c78f97-0b0a-4fe9-ad39-883a482265cd", + "x-ms-request-id": "d5496da4-9c52-402f-b067-83cc9ddea888" } } - } + }, + "operationId": "Features_SubscriptionGet", + "title": "Features_SubscriptionGet" } diff --git a/specification/purview/resource-manager/Microsoft.Purview/Purview/preview/2024-04-01-preview/examples/IngestionPrivateEndpointConnections_List.json b/specification/purview/resource-manager/Microsoft.Purview/Purview/preview/2024-04-01-preview/examples/IngestionPrivateEndpointConnections_List.json index c185136f60c5..b118060abc2b 100644 --- a/specification/purview/resource-manager/Microsoft.Purview/Purview/preview/2024-04-01-preview/examples/IngestionPrivateEndpointConnections_List.json +++ b/specification/purview/resource-manager/Microsoft.Purview/Purview/preview/2024-04-01-preview/examples/IngestionPrivateEndpointConnections_List.json @@ -1,51 +1,53 @@ { "parameters": { - "subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", - "resourceGroupName": "SampleResourceGroup", "accountName": "account1", - "api-version": "2024-04-01-preview" + "api-version": "2024-04-01-preview", + "resourceGroupName": "SampleResourceGroup", + "subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345" }, "responses": { "200": { - "headers": { - "Date": "Wed, 13 Sep 2017 17:33:55 GMT", - "x-ms-request-id": "8e58266a-de42-40d5-b3c4-c6a7e159cfba", - "X-Content-Type-Options": "nosniff", - "x-ms-ratelimit-remaining-subscription-reads": "14993", - "x-ms-correlation-request-id": "5d862c55-4de9-4a46-969d-cf1ed3e235ed" - }, "body": { "value": [ { - "id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/SampleResourceGroup/providers/Microsoft.Purview/accounts/account1/ingestionPrivateEndpointConnections/privateEndpointConnection1", "type": "Microsoft.Storage/storageAccounts/privateEndpointConnections", + "id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/SampleResourceGroup/providers/Microsoft.Purview/accounts/account1/ingestionPrivateEndpointConnections/privateEndpointConnection1", "properties": { - "provisioningState": "Succeeded", "privateEndpoint": { "id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/SampleResourceGroup/providers/Microsoft.Network/privateEndpoints/myPrivateEndpoint1" }, "privateLinkServiceConnectionState": { - "status": "Approved", - "description": "Approved by johndoe@company.com" - } + "description": "Approved by johndoe@company.com", + "status": "Approved" + }, + "provisioningState": "Succeeded" } }, { - "id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/SampleResourceGroup/providers/Microsoft.Purview/accounts/account1/ingestionPrivateEndpointConnections/privateEndpointConnection2", "type": "Microsoft.Storage/storageAccounts/privateEndpointConnections", + "id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/SampleResourceGroup/providers/Microsoft.Purview/accounts/account1/ingestionPrivateEndpointConnections/privateEndpointConnection2", "properties": { - "provisioningState": "Deleting", "privateEndpoint": { "id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/SampleResourceGroup/providers/Microsoft.Network/privateEndpoints/myPrivateEndpoint" }, "privateLinkServiceConnectionState": { - "status": "Rejected", - "description": "Rejected by johndoe@company.com" - } + "description": "Rejected by johndoe@company.com", + "status": "Rejected" + }, + "provisioningState": "Deleting" } } ] + }, + "headers": { + "Date": "Wed, 13 Sep 2017 17:33:55 GMT", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "5d862c55-4de9-4a46-969d-cf1ed3e235ed", + "x-ms-ratelimit-remaining-subscription-reads": "14993", + "x-ms-request-id": "8e58266a-de42-40d5-b3c4-c6a7e159cfba" } } - } + }, + "operationId": "IngestionPrivateEndpointConnections_List", + "title": "IngestionPrivateEndpointConnections_List" } diff --git a/specification/purview/resource-manager/Microsoft.Purview/Purview/preview/2024-04-01-preview/examples/IngestionPrivateEndpointConnections_UpdateStatus.json b/specification/purview/resource-manager/Microsoft.Purview/Purview/preview/2024-04-01-preview/examples/IngestionPrivateEndpointConnections_UpdateStatus.json index 38151c3a276a..07d03ac230ef 100644 --- a/specification/purview/resource-manager/Microsoft.Purview/Purview/preview/2024-04-01-preview/examples/IngestionPrivateEndpointConnections_UpdateStatus.json +++ b/specification/purview/resource-manager/Microsoft.Purview/Purview/preview/2024-04-01-preview/examples/IngestionPrivateEndpointConnections_UpdateStatus.json @@ -1,9 +1,9 @@ { "parameters": { - "subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", - "resourceGroupName": "SampleResourceGroup", "accountName": "account1", "api-version": "2024-04-01-preview", + "resourceGroupName": "SampleResourceGroup", + "subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", "request": { "privateEndpointId": "/subscriptions/12345678-1234-1234-12345678abc/resourceGroups/SampleResourceGroup/providers/Microsoft.Purview/accounts/account1/privateEndpointConnections/privateEndpointConnection1", "status": "Approved" @@ -11,17 +11,19 @@ }, "responses": { "200": { + "body": { + "privateEndpointId": "/subscriptions/12345678-1234-1234-12345678abc/resourceGroups/SampleResourceGroup/providers/Microsoft.Purview/accounts/account1/privateEndpointConnections/privateEndpointConnection1", + "status": "Approved" + }, "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", "x-ms-ratelimit-remaining-tenant-reads": "14999", - "x-ms-correlation-request-id": "25c78f97-0b0a-4fe9-ad39-883a482265cd" - }, - "body": { - "privateEndpointId": "/subscriptions/12345678-1234-1234-12345678abc/resourceGroups/SampleResourceGroup/providers/Microsoft.Purview/accounts/account1/privateEndpointConnections/privateEndpointConnection1", - "status": "Approved" + "x-ms-request-id": "d5496da4-9c52-402f-b067-83cc9ddea888" } } - } + }, + "operationId": "IngestionPrivateEndpointConnections_UpdateStatus", + "title": "IngestionPrivateEndpointConnections_UpdateStatus" } diff --git a/specification/purview/resource-manager/Microsoft.Purview/Purview/preview/2024-04-01-preview/examples/KafkaConfigurations_CreateOrUpdate.json b/specification/purview/resource-manager/Microsoft.Purview/Purview/preview/2024-04-01-preview/examples/KafkaConfigurations_CreateOrUpdate.json index 6c83a5ab9970..04d76a79bd09 100644 --- a/specification/purview/resource-manager/Microsoft.Purview/Purview/preview/2024-04-01-preview/examples/KafkaConfigurations_CreateOrUpdate.json +++ b/specification/purview/resource-manager/Microsoft.Purview/Purview/preview/2024-04-01-preview/examples/KafkaConfigurations_CreateOrUpdate.json @@ -1,42 +1,43 @@ { "parameters": { - "subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", - "resourceGroupName": "rgpurview", "accountName": "account1", - "kafkaConfigurationName": "kafkaConfigName", + "api-version": "2024-04-01-preview", "kafkaConfiguration": { "properties": { - "eventStreamingState": "Enabled", - "eventStreamingType": "Azure", "consumerGroup": "consumerGroup", "credentials": { - "identityId": "/subscriptions/47e8596d-ee73-4eb2-b6b4-cc13c2b87ssd/resourceGroups/testRG/providers/Microsoft.ManagedIdentity/userAssignedIdentities/testId", - "type": "UserAssigned" + "type": "UserAssigned", + "identityId": "/subscriptions/47e8596d-ee73-4eb2-b6b4-cc13c2b87ssd/resourceGroups/testRG/providers/Microsoft.ManagedIdentity/userAssignedIdentities/testId" }, - "eventHubType": "Notification", "eventHubPartitionId": "partitionId", - "eventHubResourceId": "/subscriptions/225be6fe-ec1c-4d51-a368-f69348d2e6c5/resourceGroups/testRG/providers/Microsoft.EventHub/namespaces/eventHubNameSpaceName" + "eventHubResourceId": "/subscriptions/225be6fe-ec1c-4d51-a368-f69348d2e6c5/resourceGroups/testRG/providers/Microsoft.EventHub/namespaces/eventHubNameSpaceName", + "eventHubType": "Notification", + "eventStreamingState": "Enabled", + "eventStreamingType": "Azure" } }, - "api-version": "2024-04-01-preview" + "kafkaConfigurationName": "kafkaConfigName", + "resourceGroupName": "rgpurview", + "subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345" }, "responses": { "200": { "body": { "name": "kafkaConfigName", + "type": "Microsoft.Purview/accounts/kafkaconfiguration", + "id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/SampleResourceGroup/providers/Microsoft.Purview/accounts/account1/kafkaConfigurations/default", "properties": { - "eventStreamingState": "Enabled", - "eventStreamingType": "Azure", "consumerGroup": "consumerGroup", "credentials": { - "identityId": "/subscriptions/47e8596d-ee73-4eb2-b6b4-cc13c2b87ssd/resourceGroups/testRG/providers/Microsoft.ManagedIdentity/userAssignedIdentities/testId", - "type": "UserAssigned" + "type": "UserAssigned", + "identityId": "/subscriptions/47e8596d-ee73-4eb2-b6b4-cc13c2b87ssd/resourceGroups/testRG/providers/Microsoft.ManagedIdentity/userAssignedIdentities/testId" }, - "eventHubType": "Notification", "eventHubPartitionId": "aaaaa", - "eventHubResourceId": "/subscriptions/225be6fe-ec1c-4d51-a368-f69348d2e6c5/resourceGroups/testRG/providers/Microsoft.EventHub/namespaces/eventHubNameSpaceName" + "eventHubResourceId": "/subscriptions/225be6fe-ec1c-4d51-a368-f69348d2e6c5/resourceGroups/testRG/providers/Microsoft.EventHub/namespaces/eventHubNameSpaceName", + "eventHubType": "Notification", + "eventStreamingState": "Enabled", + "eventStreamingType": "Azure" }, - "id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/SampleResourceGroup/providers/Microsoft.Purview/accounts/account1/kafkaConfigurations/default", "systemData": { "createdAt": "2022-03-09T01:36:27.637Z", "createdBy": "User@user", @@ -44,26 +45,26 @@ "lastModifiedAt": "2022-03-09T01:36:27.637Z", "lastModifiedBy": "User", "lastModifiedByType": "User" - }, - "type": "Microsoft.Purview/accounts/kafkaconfiguration" + } } }, "201": { "body": { "name": "kafkaConfigName", + "type": "Microsoft.Purview/accounts/kafkaconfiguration", + "id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/SampleResourceGroup/providers/Microsoft.Purview/accounts/account1/kafkaConfigurations/default", "properties": { - "eventStreamingState": "Enabled", - "eventStreamingType": "Azure", "consumerGroup": "consumerGroup", "credentials": { - "identityId": "/subscriptions/47e8596d-ee73-4eb2-b6b4-cc13c2b87ssd/resourceGroups/testRG/providers/Microsoft.ManagedIdentity/userAssignedIdentities/testId", - "type": "UserAssigned" + "type": "UserAssigned", + "identityId": "/subscriptions/47e8596d-ee73-4eb2-b6b4-cc13c2b87ssd/resourceGroups/testRG/providers/Microsoft.ManagedIdentity/userAssignedIdentities/testId" }, - "eventHubType": "Notification", "eventHubPartitionId": "aaaaa", - "eventHubResourceId": "/subscriptions/225be6fe-ec1c-4d51-a368-f69348d2e6c5/resourceGroups/testRG/providers/Microsoft.EventHub/namespaces/eventHubNameSpaceName" + "eventHubResourceId": "/subscriptions/225be6fe-ec1c-4d51-a368-f69348d2e6c5/resourceGroups/testRG/providers/Microsoft.EventHub/namespaces/eventHubNameSpaceName", + "eventHubType": "Notification", + "eventStreamingState": "Enabled", + "eventStreamingType": "Azure" }, - "id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/SampleResourceGroup/providers/Microsoft.Purview/accounts/account1/kafkaConfigurations/default", "systemData": { "createdAt": "2022-03-09T01:36:27.637Z", "createdBy": "User@user", @@ -71,9 +72,10 @@ "lastModifiedAt": "2022-03-09T01:36:27.637Z", "lastModifiedBy": "User", "lastModifiedByType": "User" - }, - "type": "Microsoft.Purview/accounts/kafkaconfiguration" + } } } - } + }, + "operationId": "KafkaConfigurations_CreateOrUpdate", + "title": "KafkaConfigurations_CreateOrUpdate" } diff --git a/specification/purview/resource-manager/Microsoft.Purview/Purview/preview/2024-04-01-preview/examples/KafkaConfigurations_Delete.json b/specification/purview/resource-manager/Microsoft.Purview/Purview/preview/2024-04-01-preview/examples/KafkaConfigurations_Delete.json index 8ebda25640de..7a1addd230c1 100644 --- a/specification/purview/resource-manager/Microsoft.Purview/Purview/preview/2024-04-01-preview/examples/KafkaConfigurations_Delete.json +++ b/specification/purview/resource-manager/Microsoft.Purview/Purview/preview/2024-04-01-preview/examples/KafkaConfigurations_Delete.json @@ -1,13 +1,15 @@ { "parameters": { - "subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", - "resourceGroupName": "rgpurview", "accountName": "account1", + "api-version": "2024-04-01-preview", "kafkaConfigurationName": "kafkaConfigName", - "api-version": "2024-04-01-preview" + "resourceGroupName": "rgpurview", + "subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345" }, "responses": { "200": {}, "204": {} - } + }, + "operationId": "KafkaConfigurations_Delete", + "title": "KafkaConfigurations_Delete" } diff --git a/specification/purview/resource-manager/Microsoft.Purview/Purview/preview/2024-04-01-preview/examples/KafkaConfigurations_Get.json b/specification/purview/resource-manager/Microsoft.Purview/Purview/preview/2024-04-01-preview/examples/KafkaConfigurations_Get.json index 4d80562730e7..c5b84eeb8cf2 100644 --- a/specification/purview/resource-manager/Microsoft.Purview/Purview/preview/2024-04-01-preview/examples/KafkaConfigurations_Get.json +++ b/specification/purview/resource-manager/Microsoft.Purview/Purview/preview/2024-04-01-preview/examples/KafkaConfigurations_Get.json @@ -1,28 +1,29 @@ { "parameters": { - "subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", - "resourceGroupName": "rgpurview", "accountName": "account1", + "api-version": "2024-04-01-preview", "kafkaConfigurationName": "kafkaConfigName", - "api-version": "2024-04-01-preview" + "resourceGroupName": "rgpurview", + "subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345" }, "responses": { "200": { "body": { + "name": "kafkaConfigName", + "type": "Microsoft.Purview/accounts/kafkaconfiguration", + "id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/SampleResourceGroup/providers/Microsoft.Purview/accounts/account1/kafkaConfigurations/default", "properties": { - "eventStreamingState": "Enabled", - "eventStreamingType": "Azure", "consumerGroup": "consumerGroup", "credentials": { - "identityId": "/subscriptions/47e8596d-ee73-4eb2-b6b4-cc13c2b87ssd/resourceGroups/testRG/providers/Microsoft.ManagedIdentity/userAssignedIdentities/testId", - "type": "UserAssigned" + "type": "UserAssigned", + "identityId": "/subscriptions/47e8596d-ee73-4eb2-b6b4-cc13c2b87ssd/resourceGroups/testRG/providers/Microsoft.ManagedIdentity/userAssignedIdentities/testId" }, - "eventHubType": "Notification", "eventHubPartitionId": "partitionId", - "eventHubResourceId": "/subscriptions/225be6fe-ec1c-4d51-a368-f69348d2e6c5/resourceGroups/testRG/providers/Microsoft.EventHub/namespaces/eventHubNameSpaceName" + "eventHubResourceId": "/subscriptions/225be6fe-ec1c-4d51-a368-f69348d2e6c5/resourceGroups/testRG/providers/Microsoft.EventHub/namespaces/eventHubNameSpaceName", + "eventHubType": "Notification", + "eventStreamingState": "Enabled", + "eventStreamingType": "Azure" }, - "id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/SampleResourceGroup/providers/Microsoft.Purview/accounts/account1/kafkaConfigurations/default", - "name": "kafkaConfigName", "systemData": { "createdAt": "2022-03-09T01:36:27.637Z", "createdBy": "User@user", @@ -30,9 +31,10 @@ "lastModifiedAt": "2022-03-09T01:36:27.637Z", "lastModifiedBy": "User", "lastModifiedByType": "User" - }, - "type": "Microsoft.Purview/accounts/kafkaconfiguration" + } } } - } + }, + "operationId": "KafkaConfigurations_Get", + "title": "KafkaConfigurations_Get" } diff --git a/specification/purview/resource-manager/Microsoft.Purview/Purview/preview/2024-04-01-preview/examples/KafkaConfigurations_ListByAccount.json b/specification/purview/resource-manager/Microsoft.Purview/Purview/preview/2024-04-01-preview/examples/KafkaConfigurations_ListByAccount.json index 6e681dfa89a2..6831f5ce6798 100644 --- a/specification/purview/resource-manager/Microsoft.Purview/Purview/preview/2024-04-01-preview/examples/KafkaConfigurations_ListByAccount.json +++ b/specification/purview/resource-manager/Microsoft.Purview/Purview/preview/2024-04-01-preview/examples/KafkaConfigurations_ListByAccount.json @@ -1,30 +1,31 @@ { "parameters": { - "subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", - "resourceGroupName": "rgpurview", + "$skipToken": "token", "accountName": "account1", "api-version": "2024-04-01-preview", - "$skipToken": "token" + "resourceGroupName": "rgpurview", + "subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345" }, "responses": { "200": { "body": { + "nextLink": "https://management.azure.com/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rgpurview/providers/Microsoft.Purview/accounts/account1/kafkaConfigurations?api-version=2024-04-01-preview&$skipToken=token2", "value": [ { - "id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/SampleResourceGroup/providers/Microsoft.Purview/accounts/account1/kafkaConfigurations/default", "name": "kafkaconfigName", "type": "Microsoft.Purview/accounts/kafkaconfiguration", + "id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/SampleResourceGroup/providers/Microsoft.Purview/accounts/account1/kafkaConfigurations/default", "properties": { - "eventStreamingState": "Disabled", - "eventStreamingType": "None", "consumerGroup": "consumerGroup", "credentials": { - "identityId": "/subscriptions/47e8596d-ee73-4eb2-b6b4-cc13c2b87ssd/resourceGroups/testRG/providers/Microsoft.ManagedIdentity/userAssignedIdentities/testId", - "type": "UserAssigned" + "type": "UserAssigned", + "identityId": "/subscriptions/47e8596d-ee73-4eb2-b6b4-cc13c2b87ssd/resourceGroups/testRG/providers/Microsoft.ManagedIdentity/userAssignedIdentities/testId" }, - "eventHubType": "Notification", "eventHubPartitionId": "partitionId", - "eventHubResourceId": "/subscriptions/225be6fe-ec1c-4d51-a368-f69348d2e6c5/resourceGroups/testRG/providers/Microsoft.EventHub/namespaces/eventHubNameSpaceName" + "eventHubResourceId": "/subscriptions/225be6fe-ec1c-4d51-a368-f69348d2e6c5/resourceGroups/testRG/providers/Microsoft.EventHub/namespaces/eventHubNameSpaceName", + "eventHubType": "Notification", + "eventStreamingState": "Disabled", + "eventStreamingType": "None" }, "systemData": { "createdAt": "2022-03-17T04:23:24.157Z", @@ -35,9 +36,10 @@ "lastModifiedByType": "User" } } - ], - "nextLink": "nextLink" + ] } } - } + }, + "operationId": "KafkaConfigurations_ListByAccount", + "title": "KafkaConfigurations_ListByAccount" } diff --git a/specification/purview/resource-manager/Microsoft.Purview/Purview/preview/2024-04-01-preview/examples/Operations_List.json b/specification/purview/resource-manager/Microsoft.Purview/Purview/preview/2024-04-01-preview/examples/Operations_List.json index 61f85e4e6f43..dbf2ff162851 100644 --- a/specification/purview/resource-manager/Microsoft.Purview/Purview/preview/2024-04-01-preview/examples/Operations_List.json +++ b/specification/purview/resource-manager/Microsoft.Purview/Purview/preview/2024-04-01-preview/examples/Operations_List.json @@ -1,75 +1,77 @@ { "parameters": { - "subscriptionId": "12345678-1234-1234-12345678abc", - "api-version": "2024-04-01-preview" + "api-version": "2024-04-01-preview", + "subscriptionId": "12345678-1234-1234-12345678abc" }, "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": { "value": [ { "name": "Microsoft.Purview/operations/read", "display": { - "provider": "Microsoft Purview", - "resource": "Operations", + "description": "Reads all available operations in Purview Resource Provider.", "operation": "Read all operations", - "description": "Reads all available operations in Purview Resource Provider." + "provider": "Microsoft Purview", + "resource": "Operations" } }, { "name": "Microsoft.Purview/register/action", "display": { - "provider": "Microsoft Purview", - "resource": "Purview Resource Provider", + "description": "Register the subscription for Purview Resource Provider", "operation": "Register Purview Resource Provider", - "description": "Register the subscription for Purview Resource Provider" + "provider": "Microsoft Purview", + "resource": "Purview Resource Provider" } }, { "name": "Microsoft.Purview/unregister/action", "display": { - "provider": "Microsoft Purview", - "resource": "Purview Resource Provider", + "description": "Unregister the subscription for Purview Resource Provider", "operation": "Unregister Purview Resource Provider", - "description": "Unregister the subscription for Purview Resource Provider" + "provider": "Microsoft Purview", + "resource": "Purview Resource Provider" } }, { "name": "Microsoft.Purview/accounts/read", "display": { - "provider": "Microsoft Purview", - "resource": "Account", + "description": "Read account resource for Purview Resource Provider.", "operation": "Read account resource", - "description": "Read account resource for Purview Resource Provider." + "provider": "Microsoft Purview", + "resource": "Account" } }, { "name": "Microsoft.Purview/accounts/write", "display": { - "provider": "Microsoft Purview", - "resource": "Account", + "description": "Write account resource for Purview Resource Provider.", "operation": "Write account resource", - "description": "Write account resource for Purview Resource Provider." + "provider": "Microsoft Purview", + "resource": "Account" } }, { "name": "Microsoft.Purview/accounts/delete", "display": { - "provider": "Microsoft Purview", - "resource": "Account", + "description": "Delete account resource for Purview Resource Provider.", "operation": "Delete account resource", - "description": "Delete account resource for Purview Resource Provider." + "provider": "Microsoft Purview", + "resource": "Account" } } ] + }, + "headers": { + "Date": "Wed, 13 Sep 2017 18:04:32 GMT", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "25c78f97-0b0a-4fe9-ad39-883a482265cd", + "x-ms-ratelimit-remaining-tenant-reads": "14999", + "x-ms-request-id": "d5496da4-9c52-402f-b067-83cc9ddea888" } } - } + }, + "operationId": "Operations_List", + "title": "Operations_List" } diff --git a/specification/purview/resource-manager/Microsoft.Purview/Purview/preview/2024-04-01-preview/examples/PrivateEndpointConnections_CreateOrUpdate.json b/specification/purview/resource-manager/Microsoft.Purview/Purview/preview/2024-04-01-preview/examples/PrivateEndpointConnections_CreateOrUpdate.json index 5acc2c03ddfc..e831822d9921 100644 --- a/specification/purview/resource-manager/Microsoft.Purview/Purview/preview/2024-04-01-preview/examples/PrivateEndpointConnections_CreateOrUpdate.json +++ b/specification/purview/resource-manager/Microsoft.Purview/Purview/preview/2024-04-01-preview/examples/PrivateEndpointConnections_CreateOrUpdate.json @@ -1,69 +1,71 @@ { "parameters": { - "subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", - "resourceGroupName": "SampleResourceGroup", "accountName": "account1", - "privateEndpointConnectionName": "privateEndpointConnection1", "api-version": "2024-04-01-preview", + "privateEndpointConnectionName": "privateEndpointConnection1", + "resourceGroupName": "SampleResourceGroup", + "subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", "request": { "properties": { "privateLinkServiceConnectionState": { - "status": "Approved", - "description": "Approved by johndoe@company.com" + "description": "Approved by johndoe@company.com", + "status": "Approved" } } } }, "responses": { - "201": { - "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", - "x-ms-long-running-operation": true, - "Azure-AsyncOperation": "https://management.azure.com/subscriptions34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/SampleResourceGroup/providers/Microsoft.Purview/accounts/account1/privateEndpointConnections/privateEndpointConnection1?api-version=2021-07-01" - }, + "200": { "body": { "name": "privateEndpointConnection1", - "id": "/subscriptions/12345678-1234-1234-12345678abc/resourceGroups/SampleResourceGroup/providers/Microsoft.Purview/accounts/account1/privateEndpointConnections/privateEndpointConnection1", "type": "Microsoft.Purview/accounts/privateEndpointConnections", + "id": "/subscriptions/12345678-1234-1234-12345678abc/resourceGroups/SampleResourceGroup/providers/Microsoft.Purview/accounts/account1/privateEndpointConnections/privateEndpointConnection1", "properties": { - "provisioningState": "Succeeded", "privateEndpoint": { "id": "/subscriptions/12345678-1234-1234-12345678abc/resourceGroups/SampleResourceGroup/providers/Microsoft.Network/privateEndpoints/myPrivateEndpoint" }, "privateLinkServiceConnectionState": { - "status": "Approved", - "description": "Approved by johndoe@company.com" - } + "description": "Approved by johndoe@company.com", + "status": "Approved" + }, + "provisioningState": "Succeeded" } - } - }, - "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", "x-ms-ratelimit-remaining-tenant-reads": "14999", - "x-ms-correlation-request-id": "25c78f97-0b0a-4fe9-ad39-883a482265cd" - }, + "x-ms-request-id": "d5496da4-9c52-402f-b067-83cc9ddea888" + } + }, + "201": { "body": { "name": "privateEndpointConnection1", - "id": "/subscriptions/12345678-1234-1234-12345678abc/resourceGroups/SampleResourceGroup/providers/Microsoft.Purview/accounts/account1/privateEndpointConnections/privateEndpointConnection1", "type": "Microsoft.Purview/accounts/privateEndpointConnections", + "id": "/subscriptions/12345678-1234-1234-12345678abc/resourceGroups/SampleResourceGroup/providers/Microsoft.Purview/accounts/account1/privateEndpointConnections/privateEndpointConnection1", "properties": { - "provisioningState": "Succeeded", "privateEndpoint": { "id": "/subscriptions/12345678-1234-1234-12345678abc/resourceGroups/SampleResourceGroup/providers/Microsoft.Network/privateEndpoints/myPrivateEndpoint" }, "privateLinkServiceConnectionState": { - "status": "Approved", - "description": "Approved by johndoe@company.com" - } + "description": "Approved by johndoe@company.com", + "status": "Approved" + }, + "provisioningState": "Succeeded" } + }, + "headers": { + "Azure-AsyncOperation": "https://management.azure.com/subscriptions34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/SampleResourceGroup/providers/Microsoft.Purview/accounts/account1/privateEndpointConnections/privateEndpointConnection1?api-version=2021-07-01", + "Date": "Wed, 13 Sep 2017 18:04:32 GMT", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "25c78f97-0b0a-4fe9-ad39-883a482265cd", + "x-ms-long-running-operation": true, + "x-ms-ratelimit-remaining-tenant-reads": "14999", + "x-ms-request-id": "d5496da4-9c52-402f-b067-83cc9ddea888" } } - } + }, + "operationId": "PrivateEndpointConnections_CreateOrUpdate", + "title": "PrivateEndpointConnections_CreateOrUpdate" } diff --git a/specification/purview/resource-manager/Microsoft.Purview/Purview/preview/2024-04-01-preview/examples/PrivateEndpointConnections_Delete.json b/specification/purview/resource-manager/Microsoft.Purview/Purview/preview/2024-04-01-preview/examples/PrivateEndpointConnections_Delete.json index ffee7596c5aa..1d06af6418b9 100644 --- a/specification/purview/resource-manager/Microsoft.Purview/Purview/preview/2024-04-01-preview/examples/PrivateEndpointConnections_Delete.json +++ b/specification/purview/resource-manager/Microsoft.Purview/Purview/preview/2024-04-01-preview/examples/PrivateEndpointConnections_Delete.json @@ -1,40 +1,42 @@ { "parameters": { - "subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", - "resourceGroupName": "SampleResourceGroup", "accountName": "account1", + "api-version": "2024-04-01-preview", "privateEndpointConnectionName": "privateEndpointConnection1", - "api-version": "2024-04-01-preview" + "resourceGroupName": "SampleResourceGroup", + "subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345" }, "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", "x-ms-ratelimit-remaining-tenant-reads": "14999", - "x-ms-correlation-request-id": "25c78f97-0b0a-4fe9-ad39-883a482265cd" + "x-ms-request-id": "d5496da4-9c52-402f-b067-83cc9ddea888" } }, "202": { "headers": { + "Azure-AsyncOperation": "https://management.azure.com/subscriptions34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/SampleResourceGroup/providers/Microsoft.Purview/accounts/account1/privateEndpointConnections/privateEndpointConnection1?api-version=2021-07-01", "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", "x-ms-long-running-operation": true, - "Azure-AsyncOperation": "https://management.azure.com/subscriptions34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/SampleResourceGroup/providers/Microsoft.Purview/accounts/account1/privateEndpointConnections/privateEndpointConnection1?api-version=2021-07-01" + "x-ms-ratelimit-remaining-tenant-reads": "14999", + "x-ms-request-id": "d5496da4-9c52-402f-b067-83cc9ddea888" } }, "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", "x-ms-ratelimit-remaining-tenant-reads": "14999", - "x-ms-correlation-request-id": "25c78f97-0b0a-4fe9-ad39-883a482265cd" + "x-ms-request-id": "d5496da4-9c52-402f-b067-83cc9ddea888" } } - } + }, + "operationId": "PrivateEndpointConnections_Delete", + "title": "PrivateEndpointConnections_Delete" } diff --git a/specification/purview/resource-manager/Microsoft.Purview/Purview/preview/2024-04-01-preview/examples/PrivateEndpointConnections_Get.json b/specification/purview/resource-manager/Microsoft.Purview/Purview/preview/2024-04-01-preview/examples/PrivateEndpointConnections_Get.json index 0b9a27185891..b24f6dd36092 100644 --- a/specification/purview/resource-manager/Microsoft.Purview/Purview/preview/2024-04-01-preview/examples/PrivateEndpointConnections_Get.json +++ b/specification/purview/resource-manager/Microsoft.Purview/Purview/preview/2024-04-01-preview/examples/PrivateEndpointConnections_Get.json @@ -1,35 +1,37 @@ { "parameters": { - "subscriptionId": "12345678-1234-1234-12345678abc", - "resourceGroupName": "SampleResourceGroup", "accountName": "account1", + "api-version": "2024-04-01-preview", "privateEndpointConnectionName": "privateEndpointConnection1", - "api-version": "2024-04-01-preview" + "resourceGroupName": "SampleResourceGroup", + "subscriptionId": "12345678-1234-1234-12345678abc" }, "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": { "name": "privateEndpointConnection1", - "id": "/subscriptions/12345678-1234-1234-12345678abc/resourceGroups/SampleResourceGroup/providers/Microsoft.Purview/accounts/account1/privateEndpointConnections/privateEndpointConnection1", "type": "Microsoft.Purview/accounts/privateEndpointConnections", + "id": "/subscriptions/12345678-1234-1234-12345678abc/resourceGroups/SampleResourceGroup/providers/Microsoft.Purview/accounts/account1/privateEndpointConnections/privateEndpointConnection1", "properties": { - "provisioningState": "Succeeded", "privateEndpoint": { "id": "/subscriptions/12345678-1234-1234-12345678abc/resourceGroups/SampleResourceGroup/providers/Microsoft.Network/privateEndpoints/myPrivateEndpoint" }, "privateLinkServiceConnectionState": { - "status": "Approved", - "description": "Approved by johndoe@company.com" - } + "description": "Approved by johndoe@company.com", + "status": "Approved" + }, + "provisioningState": "Succeeded" } + }, + "headers": { + "Date": "Wed, 13 Sep 2017 18:04:32 GMT", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "25c78f97-0b0a-4fe9-ad39-883a482265cd", + "x-ms-ratelimit-remaining-tenant-reads": "14999", + "x-ms-request-id": "d5496da4-9c52-402f-b067-83cc9ddea888" } } - } + }, + "operationId": "PrivateEndpointConnections_Get", + "title": "PrivateEndpointConnections_Get" } diff --git a/specification/purview/resource-manager/Microsoft.Purview/Purview/preview/2024-04-01-preview/examples/PrivateEndpointConnections_ListByAccount.json b/specification/purview/resource-manager/Microsoft.Purview/Purview/preview/2024-04-01-preview/examples/PrivateEndpointConnections_ListByAccount.json index 9ea1f47d8543..dad55bde1c09 100644 --- a/specification/purview/resource-manager/Microsoft.Purview/Purview/preview/2024-04-01-preview/examples/PrivateEndpointConnections_ListByAccount.json +++ b/specification/purview/resource-manager/Microsoft.Purview/Purview/preview/2024-04-01-preview/examples/PrivateEndpointConnections_ListByAccount.json @@ -1,53 +1,55 @@ { "parameters": { - "subscriptionId": "12345678-1234-1234-12345678abc", - "resourceGroupName": "SampleResourceGroup", "accountName": "account1", - "api-version": "2024-04-01-preview" + "api-version": "2024-04-01-preview", + "resourceGroupName": "SampleResourceGroup", + "subscriptionId": "12345678-1234-1234-12345678abc" }, "responses": { "200": { - "headers": { - "Date": "Wed, 13 Sep 2017 17:33:55 GMT", - "x-ms-request-id": "8e58266a-de42-40d5-b3c4-c6a7e159cfba", - "X-Content-Type-Options": "nosniff", - "x-ms-ratelimit-remaining-subscription-reads": "14993", - "x-ms-correlation-request-id": "5d862c55-4de9-4a46-969d-cf1ed3e235ed" - }, "body": { "value": [ { "name": "privateEndpointConnection1", - "id": "/subscriptions/12345678-1234-1234-12345678abc/resourceGroups/SampleResourceGroup/providers/Microsoft.Purview/accounts/account1/privateEndpointConnections/privateEndpointConnection1", "type": "Microsoft.Purview/accounts/privateEndpointConnections", + "id": "/subscriptions/12345678-1234-1234-12345678abc/resourceGroups/SampleResourceGroup/providers/Microsoft.Purview/accounts/account1/privateEndpointConnections/privateEndpointConnection1", "properties": { - "provisioningState": "Succeeded", "privateEndpoint": { "id": "/subscriptions/12345678-1234-1234-12345678abc/resourceGroups/SampleResourceGroup/providers/Microsoft.Network/privateEndpoints/myPrivateEndpoint1" }, "privateLinkServiceConnectionState": { - "status": "Approved", - "description": "Approved by johndoe@company.com" - } + "description": "Approved by johndoe@company.com", + "status": "Approved" + }, + "provisioningState": "Succeeded" } }, { "name": "privateEndpointConnection2", - "id": "/subscriptions/12345678-1234-1234-12345678abc/resourceGroups/SampleResourceGroup/providers/Microsoft.Purview/accounts/account1/privateEndpointConnections/privateEndpointConnection2", "type": "Microsoft.Purview/accounts/privateEndpointConnections", + "id": "/subscriptions/12345678-1234-1234-12345678abc/resourceGroups/SampleResourceGroup/providers/Microsoft.Purview/accounts/account1/privateEndpointConnections/privateEndpointConnection2", "properties": { - "provisioningState": "Deleting", "privateEndpoint": { "id": "/subscriptions/12345678-1234-1234-12345678abc/resourceGroups/SampleResourceGroup/providers/Microsoft.Network/privateEndpoints/myPrivateEndpoint" }, "privateLinkServiceConnectionState": { - "status": "Rejected", - "description": "Rejected by johndoe@company.com" - } + "description": "Rejected by johndoe@company.com", + "status": "Rejected" + }, + "provisioningState": "Deleting" } } ] + }, + "headers": { + "Date": "Wed, 13 Sep 2017 17:33:55 GMT", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "5d862c55-4de9-4a46-969d-cf1ed3e235ed", + "x-ms-ratelimit-remaining-subscription-reads": "14993", + "x-ms-request-id": "8e58266a-de42-40d5-b3c4-c6a7e159cfba" } } - } + }, + "operationId": "PrivateEndpointConnections_ListByAccount", + "title": "PrivateEndpointConnections_ListByAccount" } diff --git a/specification/purview/resource-manager/Microsoft.Purview/Purview/preview/2024-04-01-preview/examples/PrivateLinkResources_GetByGroupId.json b/specification/purview/resource-manager/Microsoft.Purview/Purview/preview/2024-04-01-preview/examples/PrivateLinkResources_GetByGroupId.json index bc28978dda88..51572ccebc36 100644 --- a/specification/purview/resource-manager/Microsoft.Purview/Purview/preview/2024-04-01-preview/examples/PrivateLinkResources_GetByGroupId.json +++ b/specification/purview/resource-manager/Microsoft.Purview/Purview/preview/2024-04-01-preview/examples/PrivateLinkResources_GetByGroupId.json @@ -1,24 +1,17 @@ { "parameters": { - "subscriptionId": "12345678-1234-1234-12345678abc", - "resourceGroupName": "SampleResourceGroup", "accountName": "account1", + "api-version": "2024-04-01-preview", "groupId": "group1", - "api-version": "2024-04-01-preview" + "resourceGroupName": "SampleResourceGroup", + "subscriptionId": "12345678-1234-1234-12345678abc" }, "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": { - "id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/SampleResourceGroup/providers/Microsoft.Purview/accounts/account1/privateLinkResources/plr1", "name": "plr1", "type": "Microsoft.Purview/accounts/privateLinkResources", + "id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/SampleResourceGroup/providers/Microsoft.Purview/accounts/account1/privateLinkResources/plr1", "properties": { "groupId": "group1", "requiredMembers": [ @@ -28,7 +21,16 @@ "privatelinkzone1.service.azure.com" ] } + }, + "headers": { + "Date": "Wed, 13 Sep 2017 18:04:32 GMT", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "25c78f97-0b0a-4fe9-ad39-883a482265cd", + "x-ms-ratelimit-remaining-tenant-reads": "14999", + "x-ms-request-id": "d5496da4-9c52-402f-b067-83cc9ddea888" } } - } + }, + "operationId": "PrivateLinkResources_GetByGroupId", + "title": "PrivateLinkResources_GetByGroupId" } diff --git a/specification/purview/resource-manager/Microsoft.Purview/Purview/preview/2024-04-01-preview/examples/PrivateLinkResources_ListByAccount.json b/specification/purview/resource-manager/Microsoft.Purview/Purview/preview/2024-04-01-preview/examples/PrivateLinkResources_ListByAccount.json index 9bc245ff260c..00d1c9f8a4bd 100644 --- a/specification/purview/resource-manager/Microsoft.Purview/Purview/preview/2024-04-01-preview/examples/PrivateLinkResources_ListByAccount.json +++ b/specification/purview/resource-manager/Microsoft.Purview/Purview/preview/2024-04-01-preview/examples/PrivateLinkResources_ListByAccount.json @@ -1,25 +1,18 @@ { "parameters": { - "subscriptionId": "12345678-1234-1234-12345678abc", - "resourceGroupName": "SampleResourceGroup", "accountName": "account1", - "api-version": "2024-04-01-preview" + "api-version": "2024-04-01-preview", + "resourceGroupName": "SampleResourceGroup", + "subscriptionId": "12345678-1234-1234-12345678abc" }, "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": { "value": [ { - "id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/SampleResourceGroup/providers/Microsoft.Purview/accounts/account1/privateLinkResources/plr1", "name": "plr1", "type": "Microsoft.Purview/accounts/privateLinkResources", + "id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/SampleResourceGroup/providers/Microsoft.Purview/accounts/account1/privateLinkResources/plr1", "properties": { "groupId": "account1", "requiredMembers": [ @@ -31,9 +24,9 @@ } }, { - "id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/SampleResourceGroup/providers/Microsoft.Purview/accounts/account1/privateLinkResources/plr2", "name": "plr2", "type": "Microsoft.Purview/accounts/privateLinkResources", + "id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/SampleResourceGroup/providers/Microsoft.Purview/accounts/account1/privateLinkResources/plr2", "properties": { "groupId": "account2", "requiredMembers": [ @@ -45,7 +38,16 @@ } } ] + }, + "headers": { + "Date": "Wed, 13 Sep 2017 18:04:32 GMT", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "25c78f97-0b0a-4fe9-ad39-883a482265cd", + "x-ms-ratelimit-remaining-tenant-reads": "14999", + "x-ms-request-id": "d5496da4-9c52-402f-b067-83cc9ddea888" } } - } + }, + "operationId": "PrivateLinkResources_ListByAccount", + "title": "PrivateLinkResources_ListByAccount" } diff --git a/specification/purview/resource-manager/Microsoft.Purview/Purview/preview/2024-04-01-preview/examples/Usages_Get.json b/specification/purview/resource-manager/Microsoft.Purview/Purview/preview/2024-04-01-preview/examples/Usages_Get.json index 0e179735916b..dfc53ae897c7 100644 --- a/specification/purview/resource-manager/Microsoft.Purview/Purview/preview/2024-04-01-preview/examples/Usages_Get.json +++ b/specification/purview/resource-manager/Microsoft.Purview/Purview/preview/2024-04-01-preview/examples/Usages_Get.json @@ -1,42 +1,44 @@ { "parameters": { - "subscriptionId": "12345678-1234-1234-12345678abc", + "api-version": "2024-04-01-preview", "location": "West US 2", - "api-version": "2024-04-01-preview" + "subscriptionId": "12345678-1234-1234-12345678abc" }, "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": { "value": [ { - "unit": "Count", + "name": { + "localizedValue": "Purview-Account-Subscription", + "value": "Purview-Account-Subscription" + }, "currentValue": 1, - "limit": 3, "id": "", - "name": { - "value": "Purview-Account-Subscription", - "localizedValue": "Purview-Account-Subscription" - } + "limit": 3, + "unit": "Count" }, { - "unit": "Count", + "name": { + "localizedValue": "Purview-Account-Tenant", + "value": "Purview-Account-Tenant" + }, "currentValue": 2, - "limit": 3, "id": "", - "name": { - "value": "Purview-Account-Tenant", - "localizedValue": "Purview-Account-Tenant" - } + "limit": 3, + "unit": "Count" } ] + }, + "headers": { + "Date": "Wed, 13 Sep 2017 18:04:32 GMT", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "25c78f97-0b0a-4fe9-ad39-883a482265cd", + "x-ms-ratelimit-remaining-tenant-reads": "14999", + "x-ms-request-id": "d5496da4-9c52-402f-b067-83cc9ddea888" } } - } + }, + "operationId": "Usages_Get", + "title": "Usages_Get" } diff --git a/specification/purview/resource-manager/Microsoft.Purview/Purview/preview/2024-04-01-preview/purview.json b/specification/purview/resource-manager/Microsoft.Purview/Purview/preview/2024-04-01-preview/purview.json index 4e6d9614bb85..a5a73d6e153f 100644 --- a/specification/purview/resource-manager/Microsoft.Purview/Purview/preview/2024-04-01-preview/purview.json +++ b/specification/purview/resource-manager/Microsoft.Purview/Purview/preview/2024-04-01-preview/purview.json @@ -2,940 +2,1067 @@ "swagger": "2.0", "info": { "title": "PurviewManagementClient", + "version": "2024-04-01-preview", "description": "Creates a Microsoft.Purview management client.", - "version": "2024-04-01-preview" + "x-typespec-generated": [ + { + "emitter": "@azure-tools/typespec-autorest" + } + ] }, - "host": "management.azure.com", "schemes": [ "https" ], + "host": "management.azure.com", + "produces": [ + "application/json" + ], + "consumes": [ + "application/json" + ], + "security": [ + { + "azure_auth": [ + "user_impersonation" + ] + } + ], + "securityDefinitions": { + "azure_auth": { + "type": "oauth2", + "description": "Azure Active Directory OAuth2 Flow.", + "flow": "implicit", + "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", + "scopes": { + "user_impersonation": "impersonate your user account" + } + } + }, + "tags": [ + { + "name": "Operations" + }, + { + "name": "Accounts" + }, + { + "name": "KafkaConfigurations" + }, + { + "name": "PrivateEndpointConnections" + }, + { + "name": "PrivateLinkResources" + } + ], "paths": { - "/subscriptions/{subscriptionId}/providers/Microsoft.Purview/accounts": { + "/providers/Microsoft.Purview/getDefaultAccount": { "get": { - "tags": [ - "Account" - ], - "summary": "Gets the accounts resources by subscription.", - "description": "List accounts in Subscription", - "operationId": "Accounts_ListBySubscription", - "produces": [ - "application/json" - ], + "operationId": "DefaultAccounts_Get", + "summary": "Gets the default account information set for the scope.", + "description": "Get the default account for the scope.", "parameters": [ { - "$ref": "#/parameters/subscriptionId" + "$ref": "../../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" }, { - "$ref": "#/parameters/api-version" + "name": "scopeTenantId", + "in": "query", + "description": "The tenant ID.", + "required": true, + "type": "string", + "format": "uuid" }, { + "name": "scopeType", "in": "query", - "name": "$skipToken", - "description": "The skip token.", + "description": "The scope for the default account.", + "required": true, + "type": "string", + "enum": [ + "Tenant", + "Subscription" + ], + "x-ms-enum": { + "name": "ScopeType", + "modelAsString": true, + "values": [ + { + "name": "Tenant", + "value": "Tenant", + "description": "Tenant" + }, + { + "name": "Subscription", + "value": "Subscription", + "description": "Subscription" + } + ] + } + }, + { + "name": "scope", + "in": "query", + "description": "The Id of the scope object, for example if the scope is \"Subscription\" then it is the ID of that subscription.", + "required": false, "type": "string" } ], "responses": { "200": { - "description": "Success", + "description": "The request has succeeded.", "schema": { - "$ref": "#/definitions/AccountList" + "$ref": "#/definitions/DefaultAccountPayload" } }, "default": { - "description": "An error response received from the provider.", + "description": "An unexpected error response.", "schema": { "$ref": "#/definitions/ErrorResponseModel" } } }, - "x-ms-pageable": { - "nextLinkName": "nextLink" - }, "x-ms-examples": { - "Accounts_ListBySubscription": { - "$ref": "./examples/Accounts_ListBySubscription.json" + "DefaultAccounts_Get": { + "$ref": "./examples/DefaultAccounts_Get.json" } } } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Purview/accounts": { + "/providers/Microsoft.Purview/operations": { "get": { + "operationId": "Operations_List", "tags": [ - "Account" - ], - "summary": "Gets the accounts resources by resource group.", - "description": "List accounts in ResourceGroup", - "operationId": "Accounts_ListByResourceGroup", - "produces": [ - "application/json" + "Operations" ], + "summary": "Lists the available operations", + "description": "List of available operations", "parameters": [ { - "$ref": "#/parameters/subscriptionId" - }, - { - "$ref": "#/parameters/resourceGroupName" - }, - { - "$ref": "#/parameters/api-version" - }, - { - "in": "query", - "name": "$skipToken", - "description": "The skip token.", - "type": "string" + "$ref": "../../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" } ], "responses": { "200": { - "description": "Success", + "description": "Azure operation completed successfully.", "schema": { - "$ref": "#/definitions/AccountList" + "$ref": "#/definitions/OperationList" } }, "default": { - "description": "An error response received from the provider.", + "description": "An unexpected error response.", "schema": { "$ref": "#/definitions/ErrorResponseModel" } } }, - "x-ms-pageable": { - "nextLinkName": "nextLink" - }, "x-ms-examples": { - "Accounts_ListByResourceGroup": { - "$ref": "./examples/Accounts_ListByResourceGroup.json" + "Operations_List": { + "$ref": "./examples/Operations_List.json" } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" } } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Purview/accounts/{accountName}": { - "get": { - "tags": [ - "Account" - ], - "summary": "Gets the account resource.", - "description": "Get an account", - "operationId": "Accounts_Get", - "produces": [ - "application/json" - ], + "/providers/Microsoft.Purview/removeDefaultAccount": { + "post": { + "operationId": "DefaultAccounts_Remove", + "summary": "Removes the default account from the scope.", + "description": "Removes the default account from the scope.", "parameters": [ { - "$ref": "#/parameters/subscriptionId" + "$ref": "../../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" }, { - "$ref": "#/parameters/resourceGroupName" + "name": "scopeTenantId", + "in": "query", + "description": "The tenant ID.", + "required": true, + "type": "string", + "format": "uuid" }, { - "$ref": "#/parameters/accountName" + "name": "scopeType", + "in": "query", + "description": "The scope for the default account.", + "required": true, + "type": "string", + "enum": [ + "Tenant", + "Subscription" + ], + "x-ms-enum": { + "name": "ScopeType", + "modelAsString": true, + "values": [ + { + "name": "Tenant", + "value": "Tenant", + "description": "Tenant" + }, + { + "name": "Subscription", + "value": "Subscription", + "description": "Subscription" + } + ] + } }, { - "$ref": "#/parameters/api-version" + "name": "scope", + "in": "query", + "description": "The Id of the scope object, for example if the scope is \"Subscription\" then it is the ID of that subscription.", + "required": false, + "type": "string" } ], "responses": { "200": { - "description": "Success", - "schema": { - "$ref": "#/definitions/Account" - } + "description": "The request has succeeded." + }, + "204": { + "description": "There is no content to send for this request, but the headers may be useful." }, "default": { - "description": "An error response received from the provider.", + "description": "An unexpected error response.", "schema": { "$ref": "#/definitions/ErrorResponseModel" } } }, "x-ms-examples": { - "Accounts_Get": { - "$ref": "./examples/Accounts_Get.json" + "DefaultAccounts_Remove": { + "$ref": "./examples/DefaultAccounts_Remove.json" } } - }, - "put": { - "tags": [ - "Account" - ], - "summary": "Create or update an account resource.", - "description": "Creates or updates an account", - "operationId": "Accounts_CreateOrUpdate", - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], + } + }, + "/providers/Microsoft.Purview/setDefaultAccount": { + "post": { + "operationId": "DefaultAccounts_Set", + "summary": "Sets the default account for the scope.", + "description": "Sets the default account for the scope.", "parameters": [ { - "$ref": "#/parameters/subscriptionId" - }, - { - "$ref": "#/parameters/resourceGroupName" - }, - { - "$ref": "#/parameters/accountName" - }, - { - "$ref": "#/parameters/api-version" + "$ref": "../../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" }, { + "name": "defaultAccountPayload", "in": "body", - "name": "account", - "description": "The account.", + "description": "The request body", "required": true, "schema": { - "$ref": "#/definitions/Account" + "$ref": "#/definitions/DefaultAccountPayload" } } ], "responses": { "200": { - "description": "Success", + "description": "The request has succeeded.", "schema": { - "$ref": "#/definitions/Account" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/Account" + "$ref": "#/definitions/DefaultAccountPayload" } }, "default": { - "description": "An error response received from the provider.", + "description": "An unexpected error response.", "schema": { "$ref": "#/definitions/ErrorResponseModel" } } }, "x-ms-examples": { - "Accounts_CreateOrUpdate": { - "$ref": "./examples/Accounts_CreateOrUpdate.json" + "DefaultAccounts_Set": { + "$ref": "./examples/DefaultAccounts_Set.json" } - }, - "x-ms-long-running-operation": true - }, - "delete": { + } + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.Purview/accounts": { + "get": { + "operationId": "Accounts_ListBySubscription", "tags": [ - "Account" - ], - "summary": "Deletes the account resource.", - "description": "Deletes an account resource", - "operationId": "Accounts_Delete", - "produces": [ - "application/json" + "Accounts" ], + "summary": "Gets the accounts resources by subscription.", + "description": "List accounts in Subscription", "parameters": [ { - "$ref": "#/parameters/subscriptionId" + "$ref": "../../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" }, { - "$ref": "#/parameters/resourceGroupName" + "$ref": "../../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "#/parameters/accountName" - }, - { - "$ref": "#/parameters/api-version" + "name": "$skipToken", + "in": "query", + "description": "The skip token.", + "required": false, + "type": "string" } ], "responses": { "200": { - "description": "Success" - }, - "202": { - "description": "Accepted" - }, - "204": { - "description": "No Content" + "description": "Azure operation completed successfully.", + "schema": { + "$ref": "#/definitions/AccountList" + } }, "default": { - "description": "An error response received from the provider.", + "description": "An unexpected error response.", "schema": { "$ref": "#/definitions/ErrorResponseModel" } } }, "x-ms-examples": { - "Accounts_Delete": { - "$ref": "./examples/Accounts_Delete.json" + "Accounts_ListBySubscription": { + "$ref": "./examples/Accounts_ListBySubscription.json" } }, - "x-ms-long-running-operation": true - }, - "patch": { - "tags": [ - "Account" - ], - "summary": "Patches the account resource.", - "description": "Updates an account", - "operationId": "Accounts_Update", - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.Purview/checkNameAvailability": { + "post": { + "operationId": "Accounts_CheckNameAvailability", + "summary": "Checks the account name availability.", + "description": "Checks if account name is available.", "parameters": [ { - "$ref": "#/parameters/subscriptionId" - }, - { - "$ref": "#/parameters/resourceGroupName" - }, - { - "$ref": "#/parameters/accountName" + "$ref": "../../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" }, { - "$ref": "#/parameters/api-version" + "$ref": "../../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" }, { + "name": "checkNameAvailabilityRequest", "in": "body", - "name": "accountUpdateParameters", - "description": "The account update parameters.", + "description": "The request body", "required": true, "schema": { - "$ref": "#/definitions/AccountUpdateParameters" + "$ref": "#/definitions/CheckNameAvailabilityRequest" } } ], "responses": { "200": { - "description": "Success", - "schema": { - "$ref": "#/definitions/Account" - } - }, - "202": { - "description": "Accepted", + "description": "The request has succeeded.", "schema": { - "$ref": "#/definitions/Account" + "$ref": "#/definitions/CheckNameAvailabilityResult" } }, "default": { - "description": "An error response received from the provider.", + "description": "An unexpected error response.", "schema": { "$ref": "#/definitions/ErrorResponseModel" } } }, "x-ms-examples": { - "Accounts_Update": { - "$ref": "./examples/Accounts_Update.json" + "Accounts_CheckNameAvailability": { + "$ref": "./examples/Accounts_CheckNameAvailability.json" } - }, - "x-ms-long-running-operation": true + } } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Purview/accounts/{accountName}/addRootCollectionAdmin": { + "/subscriptions/{subscriptionId}/providers/Microsoft.Purview/locations/{locations}/listFeatures": { "post": { - "tags": [ - "Account" - ], - "summary": "Add the administrator for root collection.", - "description": "Add the administrator for root collection associated with this account.", - "operationId": "Accounts_AddRootCollectionAdmin", - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], + "operationId": "Features_SubscriptionGet", + "summary": "Gets a list of features and their status for the location and subscription.\nStatus of enabled features will be true. Status of disabled features will be false.\nFeatures that don't exist will be excluded from the results.", + "description": "Gets details from a list of feature names.", "parameters": [ { - "$ref": "#/parameters/subscriptionId" + "$ref": "../../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" }, { - "$ref": "#/parameters/resourceGroupName" + "$ref": "../../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "#/parameters/accountName" - }, - { - "$ref": "#/parameters/api-version" + "name": "locations", + "in": "path", + "description": "Location of feature.", + "required": true, + "type": "string" }, { + "name": "featureRequest", "in": "body", - "name": "collectionAdminUpdate", - "description": "The collection admin update payload.", + "description": "The request body", "required": true, "schema": { - "$ref": "#/definitions/CollectionAdminUpdate" + "$ref": "#/definitions/BatchFeatureRequest" } } ], "responses": { "200": { - "description": "Success" + "description": "The request has succeeded.", + "schema": { + "$ref": "#/definitions/BatchFeatureStatus" + } }, "default": { - "description": "An error response received from the provider.", + "description": "An unexpected error response.", "schema": { "$ref": "#/definitions/ErrorResponseModel" } } }, "x-ms-examples": { - "Accounts_AddRootCollectionAdmin": { - "$ref": "./examples/Accounts_AddRootCollectionAdmin.json" + "Features_SubscriptionGet": { + "$ref": "./examples/Features_SubscriptionGet.json" } } } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Purview/accounts/{accountName}/listkeys": { - "post": { - "tags": [ - "Account" - ], - "summary": "Lists the keys asynchronous.", - "description": "List the authorization keys associated with this account.", - "operationId": "Accounts_ListKeys", - "produces": [ - "application/json" - ], + "/subscriptions/{subscriptionId}/providers/Microsoft.Purview/locations/{location}/usages": { + "get": { + "operationId": "Usages_Get", + "summary": "Gets the Usage quota configuration.", + "description": "Get the usage quota configuration", "parameters": [ { - "$ref": "#/parameters/subscriptionId" + "$ref": "../../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" }, { - "$ref": "#/parameters/resourceGroupName" + "$ref": "../../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "#/parameters/accountName" + "$ref": "../../../../../../common-types/resource-management/v3/types.json#/parameters/LocationParameter" }, { - "$ref": "#/parameters/api-version" + "name": "$filter", + "in": "query", + "description": "The filter, currently unused.", + "required": false, + "type": "string" } ], "responses": { "200": { - "description": "Success", + "description": "The request has succeeded.", "schema": { - "$ref": "#/definitions/AccessKeys" + "$ref": "#/definitions/UsageList" } }, "default": { - "description": "An error response received from the provider.", + "description": "An unexpected error response.", "schema": { "$ref": "#/definitions/ErrorResponseModel" } } }, "x-ms-examples": { - "Accounts_ListKeys": { - "$ref": "./examples/Accounts_ListKeys.json" + "Usages_Get": { + "$ref": "./examples/Usages_Get.json" } } } }, - "/providers/Microsoft.Purview/getDefaultAccount": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Purview/accounts": { "get": { + "operationId": "Accounts_ListByResourceGroup", "tags": [ - "DefaultAccount" - ], - "summary": "Gets the default account information set for the scope.", - "description": "Get the default account for the scope.", - "operationId": "DefaultAccounts_Get", - "produces": [ - "application/json" + "Accounts" ], + "summary": "Gets the accounts resources by resource group.", + "description": "List accounts in ResourceGroup", "parameters": [ { - "in": "query", - "name": "scopeTenantId", - "description": "The tenant ID.", - "required": true, - "type": "string", - "format": "uuid" + "$ref": "../../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" }, { - "in": "query", - "name": "scopeType", - "description": "The scope for the default account.", - "required": true, - "type": "string", - "enum": [ - "Tenant", - "Subscription" - ], - "x-ms-enum": { - "name": "ScopeType", - "modelAsString": true - } + "$ref": "../../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" }, { - "in": "query", - "name": "scope", - "description": "The Id of the scope object, for example if the scope is \"Subscription\" then it is the ID of that subscription.", - "type": "string" + "$ref": "../../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { - "$ref": "#/parameters/api-version" + "name": "$skipToken", + "in": "query", + "description": "The skip token.", + "required": false, + "type": "string" } ], "responses": { "200": { - "description": "Success", + "description": "Azure operation completed successfully.", "schema": { - "$ref": "#/definitions/DefaultAccountPayload" + "$ref": "#/definitions/AccountList" } }, "default": { - "description": "An error response received from the provider.", + "description": "An unexpected error response.", "schema": { "$ref": "#/definitions/ErrorResponseModel" } } }, "x-ms-examples": { - "DefaultAccounts_Get": { - "$ref": "./examples/DefaultAccounts_Get.json" + "Accounts_ListByResourceGroup": { + "$ref": "./examples/Accounts_ListByResourceGroup.json" } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" } } }, - "/providers/Microsoft.Purview/removeDefaultAccount": { - "post": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Purview/accounts/{accountName}": { + "get": { + "operationId": "Accounts_Get", "tags": [ - "DefaultAccount" - ], - "summary": "Removes the default account from the scope.", - "description": "Removes the default account from the scope.", - "operationId": "DefaultAccounts_Remove", - "produces": [ - "application/json" + "Accounts" ], + "summary": "Gets the account resource.", + "description": "Get an account", "parameters": [ { - "in": "query", - "name": "scopeTenantId", - "description": "The tenant ID.", - "required": true, - "type": "string", - "format": "uuid" + "$ref": "../../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" }, { - "in": "query", - "name": "scopeType", - "description": "The scope for the default account.", + "$ref": "../../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "accountName", + "in": "path", + "description": "The name of the account.", "required": true, "type": "string", - "enum": [ - "Tenant", - "Subscription" - ], - "x-ms-enum": { - "name": "ScopeType", - "modelAsString": true + "minLength": 3, + "maxLength": 63, + "pattern": "^[A-Za-z0-9]+(?:-[A-Za-z0-9]+)*$" + } + ], + "responses": { + "200": { + "description": "Azure operation completed successfully.", + "schema": { + "$ref": "#/definitions/Account" } }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/ErrorResponseModel" + } + } + }, + "x-ms-examples": { + "Accounts_Get": { + "$ref": "./examples/Accounts_Get.json" + } + } + }, + "put": { + "operationId": "Accounts_CreateOrUpdate", + "tags": [ + "Accounts" + ], + "summary": "Create or update an account resource.", + "description": "Creates or updates an account", + "parameters": [ + { + "$ref": "../../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + }, { - "in": "query", - "name": "scope", - "description": "The Id of the scope object, for example if the scope is \"Subscription\" then it is the ID of that subscription.", - "type": "string" + "$ref": "../../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "accountName", + "in": "path", + "description": "The name of the account.", + "required": true, + "type": "string", + "minLength": 3, + "maxLength": 63, + "pattern": "^[A-Za-z0-9]+(?:-[A-Za-z0-9]+)*$" }, { - "$ref": "#/parameters/api-version" + "name": "account", + "in": "body", + "description": "The account.", + "required": true, + "schema": { + "$ref": "#/definitions/Account" + } } ], "responses": { "200": { - "description": "Success" + "description": "Resource 'Account' update operation succeeded", + "schema": { + "$ref": "#/definitions/Account" + } }, - "204": { - "description": "No Content" + "201": { + "description": "Resource 'Account' create operation succeeded", + "schema": { + "$ref": "#/definitions/Account" + }, + "headers": { + "Location": { + "type": "string", + "description": "The Location header contains the URL where the status of the long running operation can be checked." + }, + "Retry-After": { + "type": "integer", + "format": "int32", + "description": "The Retry-After header can indicate how long the client should wait before polling the operation status." + } + } }, "default": { - "description": "An error response received from the provider.", + "description": "An unexpected error response.", "schema": { "$ref": "#/definitions/ErrorResponseModel" } } }, "x-ms-examples": { - "DefaultAccounts_Remove": { - "$ref": "./examples/DefaultAccounts_Remove.json" + "Accounts_CreateOrUpdate": { + "$ref": "./examples/Accounts_CreateOrUpdate.json" } - } - } - }, - "/providers/Microsoft.Purview/setDefaultAccount": { - "post": { + }, + "x-ms-long-running-operation-options": { + "final-state-via": "location", + "final-state-schema": "#/definitions/Account" + }, + "x-ms-long-running-operation": true + }, + "patch": { + "operationId": "Accounts_Update", "tags": [ - "DefaultAccount" - ], - "summary": "Sets the default account for the scope.", - "description": "Sets the default account for the scope.", - "operationId": "DefaultAccounts_Set", - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" + "Accounts" ], + "summary": "Patches the account resource.", + "description": "Updates an account", "parameters": [ { - "$ref": "#/parameters/api-version" + "$ref": "../../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "accountName", + "in": "path", + "description": "The name of the account.", + "required": true, + "type": "string", + "minLength": 3, + "maxLength": 63, + "pattern": "^[A-Za-z0-9]+(?:-[A-Za-z0-9]+)*$" }, { + "name": "accountUpdateParameters", "in": "body", - "name": "defaultAccountPayload", - "description": "The payload containing the default account information and the scope.", + "description": "The account update parameters.", "required": true, "schema": { - "$ref": "#/definitions/DefaultAccountPayload" + "$ref": "#/definitions/AccountUpdateParameters" } } ], "responses": { "200": { - "description": "Success", + "description": "Azure operation completed successfully.", "schema": { - "$ref": "#/definitions/DefaultAccountPayload" + "$ref": "#/definitions/Account" + } + }, + "202": { + "description": "The request has been accepted for processing, but processing has not yet completed.", + "schema": { + "$ref": "#/definitions/Account" + }, + "headers": { + "Location": { + "type": "string", + "description": "The Location header contains the URL where the status of the long running operation can be checked." + }, + "Retry-After": { + "type": "integer", + "format": "int32", + "description": "The Retry-After header can indicate how long the client should wait before polling the operation status." + } } }, "default": { - "description": "An error response received from the provider.", + "description": "An unexpected error response.", "schema": { "$ref": "#/definitions/ErrorResponseModel" } } }, "x-ms-examples": { - "DefaultAccounts_Set": { - "$ref": "./examples/DefaultAccounts_Set.json" + "Accounts_Update": { + "$ref": "./examples/Accounts_Update.json" } - } - } - }, - "/subscriptions/{subscriptionId}/providers/Microsoft.Purview/locations/{locations}/listFeatures": { - "post": { + }, + "x-ms-long-running-operation-options": { + "final-state-via": "location", + "final-state-schema": "#/definitions/Account" + }, + "x-ms-long-running-operation": true + }, + "delete": { + "operationId": "Accounts_Delete", "tags": [ - "Feature" - ], - "summary": "Gets a list of features and their status for the location and subscription.\r\nStatus of enabled features will be true. Status of disabled features will be false.\r\nFeatures that don't exist will be excluded from the results.", - "description": "Gets details from a list of feature names.", - "operationId": "Features_SubscriptionGet", - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" + "Accounts" ], + "summary": "Deletes the account resource.", + "description": "Deletes an account resource", "parameters": [ { - "$ref": "#/parameters/subscriptionId" + "$ref": "../../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" }, { - "in": "path", - "name": "locations", - "description": "Location of feature.", - "required": true, - "type": "string" + "$ref": "../../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "#/parameters/api-version" + "$ref": "../../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { - "in": "body", - "name": "featureRequest", - "description": "Request body with feature names.", + "name": "accountName", + "in": "path", + "description": "The name of the account.", "required": true, - "schema": { - "$ref": "#/definitions/BatchFeatureRequest" - } + "type": "string", + "minLength": 3, + "maxLength": 63, + "pattern": "^[A-Za-z0-9]+(?:-[A-Za-z0-9]+)*$" } ], "responses": { "200": { - "description": "Success", - "schema": { - "$ref": "#/definitions/BatchFeatureStatus" + "description": "Resource deleted successfully." + }, + "202": { + "description": "Resource deletion accepted.", + "headers": { + "Location": { + "type": "string", + "description": "The Location header contains the URL where the status of the long running operation can be checked." + }, + "Retry-After": { + "type": "integer", + "format": "int32", + "description": "The Retry-After header can indicate how long the client should wait before polling the operation status." + } } }, + "204": { + "description": "Resource does not exist." + }, "default": { - "description": "An error response received from the provider.", + "description": "An unexpected error response.", "schema": { "$ref": "#/definitions/ErrorResponseModel" } } }, "x-ms-examples": { - "Features_SubscriptionGet": { - "$ref": "./examples/Features_SubscriptionGet.json" + "Accounts_Delete": { + "$ref": "./examples/Accounts_Delete.json" } - } + }, + "x-ms-long-running-operation-options": { + "final-state-via": "location" + }, + "x-ms-long-running-operation": true } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Purview/accounts/{accountName}/listFeatures": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Purview/accounts/{accountName}/addRootCollectionAdmin": { "post": { + "operationId": "Accounts_AddRootCollectionAdmin", "tags": [ - "Feature" - ], - "summary": "Gets a list of features and their status for the account.\r\nStatus of enabled features will be true. Status of disabled features will be false.\r\nFeatures that don't exist will be excluded from the results.", - "description": "Gets details from a list of feature names.", - "operationId": "Features_AccountGet", - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" + "Accounts" ], + "summary": "Add the administrator for root collection.", + "description": "Add the administrator for root collection associated with this account.", "parameters": [ { - "$ref": "#/parameters/subscriptionId" + "$ref": "../../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" }, { - "$ref": "#/parameters/resourceGroupName" + "$ref": "../../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "#/parameters/accountName" + "$ref": "../../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { - "$ref": "#/parameters/api-version" + "name": "accountName", + "in": "path", + "description": "The name of the account.", + "required": true, + "type": "string", + "minLength": 3, + "maxLength": 63, + "pattern": "^[A-Za-z0-9]+(?:-[A-Za-z0-9]+)*$" }, { + "name": "collectionAdminUpdate", "in": "body", - "name": "featureRequest", - "description": "Request body with feature names.", + "description": "The collection admin update payload.", "required": true, "schema": { - "$ref": "#/definitions/BatchFeatureRequest" + "$ref": "#/definitions/CollectionAdminUpdate" } } ], "responses": { "200": { - "description": "Success", - "schema": { - "$ref": "#/definitions/BatchFeatureStatus" - } + "description": "The request has succeeded." }, "default": { - "description": "An error response received from the provider.", + "description": "An unexpected error response.", "schema": { "$ref": "#/definitions/ErrorResponseModel" } } }, "x-ms-examples": { - "Features_AccountGet": { - "$ref": "./examples/Features_AccountGet.json" + "Accounts_AddRootCollectionAdmin": { + "$ref": "./examples/Accounts_AddRootCollectionAdmin.json" } } } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Purview/accounts/{accountName}/ingestionPrivateEndpointConnections": { - "get": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Purview/accounts/{accountName}/ingestionPrivateEndpointConnectionStatus": { + "post": { + "operationId": "IngestionPrivateEndpointConnections_UpdateStatus", "tags": [ - "IngestionPrivateEndpoint" - ], - "summary": "Lists all ingestion private endpoint connections.", - "description": "Lists all ingestion private endpoint connections", - "operationId": "IngestionPrivateEndpointConnections_List", - "produces": [ - "application/json" + "Accounts" ], + "summary": "Updates ingestion private endpoint connection status.", + "description": "Update ingestion private endpoint connection status", "parameters": [ { - "$ref": "#/parameters/subscriptionId" + "$ref": "../../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" }, { - "$ref": "#/parameters/resourceGroupName" + "$ref": "../../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "#/parameters/accountName" + "$ref": "../../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "accountName", + "in": "path", + "description": "The name of the account.", + "required": true, + "type": "string", + "minLength": 3, + "maxLength": 63, + "pattern": "^[A-Za-z0-9]+(?:-[A-Za-z0-9]+)*$" }, { - "$ref": "#/parameters/api-version" + "name": "request", + "in": "body", + "description": "The ingestion private endpoint connection status update request.", + "required": true, + "schema": { + "$ref": "#/definitions/PrivateEndpointConnectionStatusUpdateRequest" + } } ], "responses": { "200": { - "description": "Success", + "description": "Azure operation completed successfully.", "schema": { - "$ref": "#/definitions/PrivateEndpointConnectionList" + "$ref": "#/definitions/PrivateEndpointConnectionStatusUpdateResponse" } }, "default": { - "description": "An error response received from the provider.", + "description": "An unexpected error response.", "schema": { "$ref": "#/definitions/ErrorResponseModel" } } }, - "x-ms-pageable": { - "nextLinkName": "nextLink" - }, "x-ms-examples": { - "IngestionPrivateEndpointConnections_List": { - "$ref": "./examples/IngestionPrivateEndpointConnections_List.json" + "IngestionPrivateEndpointConnections_UpdateStatus": { + "$ref": "./examples/IngestionPrivateEndpointConnections_UpdateStatus.json" } } } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Purview/accounts/{accountName}/ingestionPrivateEndpointConnectionStatus": { - "post": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Purview/accounts/{accountName}/ingestionPrivateEndpointConnections": { + "get": { + "operationId": "IngestionPrivateEndpointConnections_List", "tags": [ - "IngestionPrivateEndpoint" - ], - "summary": "Updates ingestion private endpoint connection status.", - "description": "Update ingestion private endpoint connection status", - "operationId": "IngestionPrivateEndpointConnections_UpdateStatus", - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" + "Accounts" ], + "summary": "Lists all ingestion private endpoint connections.", + "description": "Lists all ingestion private endpoint connections", "parameters": [ { - "$ref": "#/parameters/subscriptionId" + "$ref": "../../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" }, { - "$ref": "#/parameters/resourceGroupName" + "$ref": "../../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "#/parameters/accountName" + "$ref": "../../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { - "$ref": "#/parameters/api-version" - }, - { - "in": "body", - "name": "request", - "description": "The ingestion private endpoint connection status update request.", + "name": "accountName", + "in": "path", + "description": "The name of the account.", "required": true, - "schema": { - "$ref": "#/definitions/PrivateEndpointConnectionStatusUpdateRequest" - } + "type": "string", + "minLength": 3, + "maxLength": 63, + "pattern": "^[A-Za-z0-9]+(?:-[A-Za-z0-9]+)*$" } ], "responses": { "200": { - "description": "Success", + "description": "Azure operation completed successfully.", "schema": { - "$ref": "#/definitions/PrivateEndpointConnectionStatusUpdateResponse" + "$ref": "#/definitions/PrivateEndpointConnectionList" } }, "default": { - "description": "An error response received from the provider.", + "description": "An unexpected error response.", "schema": { "$ref": "#/definitions/ErrorResponseModel" } } }, "x-ms-examples": { - "IngestionPrivateEndpointConnections_UpdateStatus": { - "$ref": "./examples/IngestionPrivateEndpointConnections_UpdateStatus.json" + "IngestionPrivateEndpointConnections_List": { + "$ref": "./examples/IngestionPrivateEndpointConnections_List.json" } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" } } }, "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Purview/accounts/{accountName}/kafkaConfigurations": { "get": { + "operationId": "KafkaConfigurations_ListByAccount", "tags": [ - "KafkaConfiguration" + "KafkaConfigurations" ], "summary": "Gets the list of Kafka configurations for the account.", "description": "Lists the Kafka configurations in the Account", - "operationId": "KafkaConfigurations_ListByAccount", - "produces": [ - "application/json" - ], "parameters": [ { - "$ref": "#/parameters/subscriptionId" + "$ref": "../../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" }, { - "$ref": "#/parameters/resourceGroupName" + "$ref": "../../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "#/parameters/accountName" + "$ref": "../../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { - "$ref": "#/parameters/api-version" + "name": "accountName", + "in": "path", + "description": "The name of the account.", + "required": true, + "type": "string", + "minLength": 3, + "maxLength": 63, + "pattern": "^[A-Za-z0-9]+(?:-[A-Za-z0-9]+)*$" }, { - "in": "query", "name": "$skipToken", + "in": "query", "description": "The skip token.", + "required": false, "type": "string" } ], "responses": { "200": { - "description": "Success", + "description": "Azure operation completed successfully.", "schema": { "$ref": "#/definitions/KafkaConfigurationList" } }, "default": { - "description": "An error response received from the provider.", + "description": "An unexpected error response.", "schema": { "$ref": "#/definitions/ErrorResponseModel" } } }, - "x-ms-pageable": { - "nextLinkName": "nextLink" - }, "x-ms-examples": { "KafkaConfigurations_ListByAccount": { "$ref": "./examples/KafkaConfigurations_ListByAccount.json" } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" } } }, "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Purview/accounts/{accountName}/kafkaConfigurations/{kafkaConfigurationName}": { "get": { + "operationId": "KafkaConfigurations_Get", "tags": [ - "KafkaConfiguration" + "KafkaConfigurations" ], "summary": "Gets the kafka configuration.", "description": "Gets the kafka configuration for the account", - "operationId": "KafkaConfigurations_Get", - "produces": [ - "application/json" - ], "parameters": [ { - "$ref": "#/parameters/subscriptionId" + "$ref": "../../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" }, { - "$ref": "#/parameters/resourceGroupName" + "$ref": "../../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "#/parameters/accountName" + "$ref": "../../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { + "name": "accountName", "in": "path", - "name": "kafkaConfigurationName", - "description": "Name of kafka configuration.", + "description": "The name of the account.", "required": true, "type": "string", - "maxLength": 63, "minLength": 3, + "maxLength": 63, "pattern": "^[A-Za-z0-9]+(?:-[A-Za-z0-9]+)*$" }, { - "$ref": "#/parameters/api-version" + "name": "kafkaConfigurationName", + "in": "path", + "description": "Name of kafka configuration.", + "required": true, + "type": "string", + "minLength": 3, + "maxLength": 63, + "pattern": "^[A-Za-z0-9]+(?:-[A-Za-z0-9]+)*$" } ], "responses": { "200": { - "description": "Success", + "description": "Azure operation completed successfully.", "schema": { "$ref": "#/definitions/KafkaConfiguration" } }, "default": { - "description": "An error response received from the provider.", + "description": "An unexpected error response.", "schema": { "$ref": "#/definitions/ErrorResponseModel" } @@ -948,44 +1075,45 @@ } }, "put": { + "operationId": "KafkaConfigurations_CreateOrUpdate", "tags": [ - "KafkaConfiguration" + "KafkaConfigurations" ], "summary": "Create or update the kafka configuration.", "description": "Create or update Kafka Configuration", - "operationId": "KafkaConfigurations_CreateOrUpdate", - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], "parameters": [ { - "$ref": "#/parameters/subscriptionId" + "$ref": "../../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "#/parameters/resourceGroupName" + "$ref": "../../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { - "$ref": "#/parameters/accountName" + "name": "accountName", + "in": "path", + "description": "The name of the account.", + "required": true, + "type": "string", + "minLength": 3, + "maxLength": 63, + "pattern": "^[A-Za-z0-9]+(?:-[A-Za-z0-9]+)*$" }, { - "in": "path", "name": "kafkaConfigurationName", - "description": "The kafka configuration name.", + "in": "path", + "description": "Name of kafka configuration.", "required": true, "type": "string", - "maxLength": 63, "minLength": 3, + "maxLength": 63, "pattern": "^[A-Za-z0-9]+(?:-[A-Za-z0-9]+)*$" }, { - "$ref": "#/parameters/api-version" - }, - { - "in": "body", "name": "kafkaConfiguration", + "in": "body", "description": "The kafka configuration of the account.", "required": true, "schema": { @@ -995,19 +1123,19 @@ ], "responses": { "200": { - "description": "Create or Update Successful", + "description": "Resource 'KafkaConfiguration' update operation succeeded", "schema": { "$ref": "#/definitions/KafkaConfiguration" } }, "201": { - "description": "Create or Update Successful", + "description": "Resource 'KafkaConfiguration' create operation succeeded", "schema": { "$ref": "#/definitions/KafkaConfiguration" } }, "default": { - "description": "An error response received from the provider.", + "description": "An unexpected error response.", "schema": { "$ref": "#/definitions/ErrorResponseModel" } @@ -1020,48 +1148,52 @@ } }, "delete": { + "operationId": "KafkaConfigurations_Delete", "tags": [ - "KafkaConfiguration" + "KafkaConfigurations" ], "summary": "Deletes the kafka configuration on the account.", "description": "Deletes a KafkaConfiguration resource.", - "operationId": "KafkaConfigurations_Delete", - "produces": [ - "application/json" - ], "parameters": [ { - "$ref": "#/parameters/subscriptionId" + "$ref": "../../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" }, { - "$ref": "#/parameters/resourceGroupName" + "$ref": "../../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "#/parameters/accountName" + "$ref": "../../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { + "name": "accountName", "in": "path", - "name": "kafkaConfigurationName", - "description": "Name of kafka configuration.", + "description": "The name of the account.", "required": true, "type": "string", - "maxLength": 63, "minLength": 3, + "maxLength": 63, "pattern": "^[A-Za-z0-9]+(?:-[A-Za-z0-9]+)*$" }, { - "$ref": "#/parameters/api-version" + "name": "kafkaConfigurationName", + "in": "path", + "description": "Name of kafka configuration.", + "required": true, + "type": "string", + "minLength": 3, + "maxLength": 63, + "pattern": "^[A-Za-z0-9]+(?:-[A-Za-z0-9]+)*$" } ], "responses": { "200": { - "description": "Success" + "description": "Resource deleted successfully." }, "204": { - "description": "No Content" + "description": "Resource does not exist." }, "default": { - "description": "An error response received from the provider.", + "description": "An unexpected error response.", "schema": { "$ref": "#/definitions/ErrorResponseModel" } @@ -1074,142 +1206,220 @@ } } }, - "/providers/Microsoft.Purview/operations": { - "get": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Purview/accounts/{accountName}/listFeatures": { + "post": { + "operationId": "Features_AccountGet", "tags": [ - "Operation" - ], - "summary": "Lists the available operations", - "description": "List of available operations", - "operationId": "Operations_List", - "produces": [ - "application/json" + "Accounts" ], + "summary": "Gets a list of features and their status for the account.\r\nStatus of enabled features will be true. Status of disabled features will be false.\r\nFeatures that don't exist will be excluded from the results.", + "description": "Gets details from a list of feature names.", "parameters": [ { - "$ref": "#/parameters/api-version" + "$ref": "../../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "accountName", + "in": "path", + "description": "The name of the account.", + "required": true, + "type": "string", + "minLength": 3, + "maxLength": 63, + "pattern": "^[A-Za-z0-9]+(?:-[A-Za-z0-9]+)*$" + }, + { + "name": "featureRequest", + "in": "body", + "description": "Request body with feature names.", + "required": true, + "schema": { + "$ref": "#/definitions/BatchFeatureRequest" + } } ], "responses": { "200": { - "description": "Success", + "description": "Azure operation completed successfully.", "schema": { - "$ref": "#/definitions/OperationList" + "$ref": "#/definitions/BatchFeatureStatus" } }, "default": { - "description": "An error response received from the provider.", + "description": "An unexpected error response.", "schema": { "$ref": "#/definitions/ErrorResponseModel" } } }, - "x-ms-pageable": { - "nextLinkName": "nextLink" + "x-ms-examples": { + "Features_AccountGet": { + "$ref": "./examples/Features_AccountGet.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Purview/accounts/{accountName}/listkeys": { + "post": { + "operationId": "Accounts_ListKeys", + "tags": [ + "Accounts" + ], + "summary": "Lists the keys asynchronous.", + "description": "List the authorization keys associated with this account.", + "parameters": [ + { + "$ref": "../../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "accountName", + "in": "path", + "description": "The name of the account.", + "required": true, + "type": "string", + "minLength": 3, + "maxLength": 63, + "pattern": "^[A-Za-z0-9]+(?:-[A-Za-z0-9]+)*$" + } + ], + "responses": { + "200": { + "description": "Azure operation completed successfully.", + "schema": { + "$ref": "#/definitions/AccessKeys" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/ErrorResponseModel" + } + } }, "x-ms-examples": { - "Operations_List": { - "$ref": "./examples/Operations_List.json" + "Accounts_ListKeys": { + "$ref": "./examples/Accounts_ListKeys.json" } } } }, "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Purview/accounts/{accountName}/privateEndpointConnections": { "get": { + "operationId": "PrivateEndpointConnections_ListByAccount", "tags": [ - "PrivateEndpointConnection" + "PrivateEndpointConnections" ], "summary": "Gets private endpoint connections.", "description": "Get private endpoint connections for account", - "operationId": "PrivateEndpointConnections_ListByAccount", - "produces": [ - "application/json" - ], "parameters": [ { - "$ref": "#/parameters/subscriptionId" + "$ref": "../../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" }, { - "$ref": "#/parameters/resourceGroupName" + "$ref": "../../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "#/parameters/accountName" + "$ref": "../../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { - "$ref": "#/parameters/api-version" + "name": "accountName", + "in": "path", + "description": "The name of the account.", + "required": true, + "type": "string", + "minLength": 3, + "maxLength": 63, + "pattern": "^[A-Za-z0-9]+(?:-[A-Za-z0-9]+)*$" }, { - "in": "query", "name": "$skipToken", + "in": "query", "description": "The skip token.", + "required": false, "type": "string" } ], "responses": { "200": { - "description": "Success", + "description": "Azure operation completed successfully.", "schema": { "$ref": "#/definitions/PrivateEndpointConnectionList" } }, "default": { - "description": "An error response received from the provider.", + "description": "An unexpected error response.", "schema": { "$ref": "#/definitions/ErrorResponseModel" } } }, - "x-ms-pageable": { - "nextLinkName": "nextLink" - }, "x-ms-examples": { "PrivateEndpointConnections_ListByAccount": { "$ref": "./examples/PrivateEndpointConnections_ListByAccount.json" } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" } } }, "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Purview/accounts/{accountName}/privateEndpointConnections/{privateEndpointConnectionName}": { "get": { + "operationId": "PrivateEndpointConnections_Get", "tags": [ - "PrivateEndpointConnection" + "PrivateEndpointConnections" ], "summary": "Gets private endpoint connection information.", "description": "Get a private endpoint connection", - "operationId": "PrivateEndpointConnections_Get", - "produces": [ - "application/json" - ], "parameters": [ { - "$ref": "#/parameters/subscriptionId" + "$ref": "../../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" }, { - "$ref": "#/parameters/resourceGroupName" + "$ref": "../../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "#/parameters/accountName" + "$ref": "../../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { + "name": "accountName", "in": "path", + "description": "The name of the account.", + "required": true, + "type": "string", + "minLength": 3, + "maxLength": 63, + "pattern": "^[A-Za-z0-9]+(?:-[A-Za-z0-9]+)*$" + }, + { "name": "privateEndpointConnectionName", + "in": "path", "description": "Name of the private endpoint connection.", "required": true, "type": "string" - }, - { - "$ref": "#/parameters/api-version" } ], "responses": { "200": { - "description": "Success", + "description": "Azure operation completed successfully.", "schema": { "$ref": "#/definitions/PrivateEndpointConnection" } }, "default": { - "description": "An error response received from the provider.", + "description": "An unexpected error response.", "schema": { "$ref": "#/definitions/ErrorResponseModel" } @@ -1222,41 +1432,42 @@ } }, "put": { + "operationId": "PrivateEndpointConnections_CreateOrUpdate", "tags": [ - "PrivateEndpointConnection" + "PrivateEndpointConnections" ], "summary": "Approves/Rejects private endpoint connection request.", "description": "Create or update a private endpoint connection", - "operationId": "PrivateEndpointConnections_CreateOrUpdate", - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], "parameters": [ { - "$ref": "#/parameters/subscriptionId" + "$ref": "../../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" }, { - "$ref": "#/parameters/resourceGroupName" + "$ref": "../../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "#/parameters/accountName" + "$ref": "../../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { + "name": "accountName", "in": "path", + "description": "The name of the account.", + "required": true, + "type": "string", + "minLength": 3, + "maxLength": 63, + "pattern": "^[A-Za-z0-9]+(?:-[A-Za-z0-9]+)*$" + }, + { "name": "privateEndpointConnectionName", + "in": "path", "description": "Name of the private endpoint connection.", "required": true, "type": "string" }, { - "$ref": "#/parameters/api-version" - }, - { - "in": "body", "name": "request", + "in": "body", "description": "The request.", "required": true, "schema": { @@ -1266,19 +1477,30 @@ ], "responses": { "200": { - "description": "Success", + "description": "Resource 'PrivateEndpointConnection' update operation succeeded", "schema": { "$ref": "#/definitions/PrivateEndpointConnection" } }, "201": { - "description": "Created", + "description": "Resource 'PrivateEndpointConnection' create operation succeeded", "schema": { "$ref": "#/definitions/PrivateEndpointConnection" + }, + "headers": { + "Location": { + "type": "string", + "description": "The Location header contains the URL where the status of the long running operation can be checked." + }, + "Retry-After": { + "type": "integer", + "format": "int32", + "description": "The Retry-After header can indicate how long the client should wait before polling the operation status." + } } }, "default": { - "description": "An error response received from the provider.", + "description": "An unexpected error response.", "schema": { "$ref": "#/definitions/ErrorResponseModel" } @@ -1289,51 +1511,70 @@ "$ref": "./examples/PrivateEndpointConnections_CreateOrUpdate.json" } }, + "x-ms-long-running-operation-options": { + "final-state-via": "location", + "final-state-schema": "#/definitions/PrivateEndpointConnection" + }, "x-ms-long-running-operation": true }, "delete": { + "operationId": "PrivateEndpointConnections_Delete", "tags": [ - "PrivateEndpointConnection" + "PrivateEndpointConnections" ], "summary": "Deletes private endpoint connection.", "description": "Delete a private endpoint connection", - "operationId": "PrivateEndpointConnections_Delete", - "produces": [ - "application/json" - ], "parameters": [ { - "$ref": "#/parameters/subscriptionId" + "$ref": "../../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" }, { - "$ref": "#/parameters/resourceGroupName" + "$ref": "../../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "#/parameters/accountName" + "$ref": "../../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { + "name": "accountName", "in": "path", + "description": "The name of the account.", + "required": true, + "type": "string", + "minLength": 3, + "maxLength": 63, + "pattern": "^[A-Za-z0-9]+(?:-[A-Za-z0-9]+)*$" + }, + { "name": "privateEndpointConnectionName", + "in": "path", "description": "Name of the private endpoint connection.", "required": true, "type": "string" - }, - { - "$ref": "#/parameters/api-version" } ], "responses": { "200": { - "description": "Success" + "description": "Resource deleted successfully." }, "202": { - "description": "Accepted" + "description": "Resource deletion accepted.", + "headers": { + "Location": { + "type": "string", + "description": "The Location header contains the URL where the status of the long running operation can be checked." + }, + "Retry-After": { + "type": "integer", + "format": "int32", + "description": "The Retry-After header can indicate how long the client should wait before polling the operation status." + } + } }, "204": { - "description": "No Content" + "description": "Resource does not exist." }, "default": { - "description": "An error response received from the provider.", + "description": "An unexpected error response.", "schema": { "$ref": "#/definitions/ErrorResponseModel" } @@ -1341,215 +1582,121 @@ }, "x-ms-examples": { "PrivateEndpointConnections_Delete": { - "$ref": "./examples/PrivateEndpointConnections_Delete.json" - } - }, - "x-ms-long-running-operation": true - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Purview/accounts/{accountName}/privateLinkResources": { - "get": { - "tags": [ - "PrivateLinkResource" - ], - "summary": "Gets a list of privately linkable resources for an account.", - "description": "Gets a list of privately linkable resources for an account", - "operationId": "PrivateLinkResources_ListByAccount", - "produces": [ - "application/json" - ], - "parameters": [ - { - "$ref": "#/parameters/subscriptionId" - }, - { - "$ref": "#/parameters/resourceGroupName" - }, - { - "$ref": "#/parameters/accountName" - }, - { - "$ref": "#/parameters/api-version" - } - ], - "responses": { - "200": { - "description": "Success", - "schema": { - "$ref": "#/definitions/PrivateLinkResourceList" - } - }, - "default": { - "description": "An error response received from the provider.", - "schema": { - "$ref": "#/definitions/ErrorResponseModel" - } - } - }, - "x-ms-pageable": { - "nextLinkName": "nextLink" - }, - "x-ms-examples": { - "PrivateLinkResources_ListByAccount": { - "$ref": "./examples/PrivateLinkResources_ListByAccount.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Purview/accounts/{accountName}/privateLinkResources/{groupId}": { - "get": { - "tags": [ - "PrivateLinkResource" - ], - "summary": "Gets a privately linkable resources for an account with given group identifier.", - "description": "Gets a privately linkable resources for an account with given group identifier", - "operationId": "PrivateLinkResources_GetByGroupId", - "produces": [ - "application/json" - ], - "parameters": [ - { - "$ref": "#/parameters/subscriptionId" - }, - { - "$ref": "#/parameters/resourceGroupName" - }, - { - "$ref": "#/parameters/accountName" - }, - { - "in": "path", - "name": "groupId", - "description": "The group identifier.", - "required": true, - "type": "string" - }, - { - "$ref": "#/parameters/api-version" - } - ], - "responses": { - "200": { - "description": "Success", - "schema": { - "$ref": "#/definitions/PrivateLinkResource" - } - }, - "default": { - "description": "An error response received from the provider.", - "schema": { - "$ref": "#/definitions/ErrorResponseModel" - } - } - }, - "x-ms-examples": { - "PrivateLinkResources_GetByGroupId": { - "$ref": "./examples/PrivateLinkResources_GetByGroupId.json" + "$ref": "./examples/PrivateEndpointConnections_Delete.json" } - } + }, + "x-ms-long-running-operation-options": { + "final-state-via": "location" + }, + "x-ms-long-running-operation": true } }, - "/subscriptions/{subscriptionId}/providers/Microsoft.Purview/checkNameAvailability": { - "post": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Purview/accounts/{accountName}/privateLinkResources": { + "get": { + "operationId": "PrivateLinkResources_ListByAccount", "tags": [ - "Provider" - ], - "summary": "Checks the account name availability.", - "description": "Checks if account name is available.", - "operationId": "Accounts_CheckNameAvailability", - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" + "PrivateLinkResources" ], + "summary": "Gets a list of privately linkable resources for an account.", + "description": "Gets a list of privately linkable resources for an account", "parameters": [ { - "$ref": "#/parameters/subscriptionId" + "$ref": "../../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" }, { - "$ref": "#/parameters/api-version" + "$ref": "../../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" }, { - "in": "body", - "name": "checkNameAvailabilityRequest", - "description": "The check name availability request.", + "$ref": "../../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "accountName", + "in": "path", + "description": "The name of the account.", "required": true, - "schema": { - "$ref": "#/definitions/CheckNameAvailabilityRequest" - } + "type": "string", + "minLength": 3, + "maxLength": 63, + "pattern": "^[A-Za-z0-9]+(?:-[A-Za-z0-9]+)*$" } ], "responses": { "200": { - "description": "Success", + "description": "Azure operation completed successfully.", "schema": { - "$ref": "#/definitions/CheckNameAvailabilityResult" + "$ref": "#/definitions/PrivateLinkResourceList" } }, "default": { - "description": "An error response received from the provider.", + "description": "An unexpected error response.", "schema": { "$ref": "#/definitions/ErrorResponseModel" } } }, "x-ms-examples": { - "Accounts_CheckNameAvailability": { - "$ref": "./examples/Accounts_CheckNameAvailability.json" + "PrivateLinkResources_ListByAccount": { + "$ref": "./examples/PrivateLinkResources_ListByAccount.json" } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" } } }, - "/subscriptions/{subscriptionId}/providers/Microsoft.Purview/locations/{location}/usages": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Purview/accounts/{accountName}/privateLinkResources/{groupId}": { "get": { + "operationId": "PrivateLinkResources_GetByGroupId", "tags": [ - "Usages" - ], - "summary": "Gets the Usage quota configuration.", - "description": "Get the usage quota configuration", - "operationId": "Usages_Get", - "produces": [ - "application/json" + "PrivateLinkResources" ], + "summary": "Gets a privately linkable resources for an account with given group identifier.", + "description": "Gets a privately linkable resources for an account with given group identifier", "parameters": [ { - "$ref": "#/parameters/subscriptionId" + "$ref": "../../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" }, { - "in": "path", - "name": "location", - "description": "The region.", - "required": true, - "type": "string" + "$ref": "../../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "#/parameters/api-version" + "$ref": "../../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { - "in": "query", - "name": "$filter", - "description": "The filter, currently unused.", + "name": "accountName", + "in": "path", + "description": "The name of the account.", + "required": true, + "type": "string", + "minLength": 3, + "maxLength": 63, + "pattern": "^[A-Za-z0-9]+(?:-[A-Za-z0-9]+)*$" + }, + { + "name": "groupId", + "in": "path", + "description": "The group identifier.", + "required": true, "type": "string" } ], "responses": { "200": { - "description": "Success", + "description": "Azure operation completed successfully.", "schema": { - "$ref": "#/definitions/UsageList" + "$ref": "#/definitions/PrivateLinkResource" } }, "default": { - "description": "An error response received from the provider.", + "description": "An unexpected error response.", "schema": { "$ref": "#/definitions/ErrorResponseModel" } } }, "x-ms-examples": { - "Usages_Get": { - "$ref": "./examples/Usages_Get.json" + "PrivateLinkResources_GetByGroupId": { + "$ref": "./examples/PrivateLinkResources_GetByGroupId.json" } } } @@ -1557,192 +1704,186 @@ }, "definitions": { "AccessKeys": { - "description": "The Purview Account access keys.", "type": "object", + "description": "The Purview Account access keys.", "properties": { "atlasKafkaPrimaryEndpoint": { - "description": "Gets or sets the primary connection string.", - "type": "string" + "type": "string", + "description": "Gets or sets the primary connection string." }, "atlasKafkaSecondaryEndpoint": { - "description": "Gets or sets the secondary connection string.", - "type": "string" + "type": "string", + "description": "Gets or sets the secondary connection string." } } }, "Account": { - "description": "Account resource", "type": "object", - "allOf": [ - { - "$ref": "#/definitions/TrackedResource" - } - ], + "description": "Account resource", "properties": { "properties": { "$ref": "#/definitions/AccountProperties", + "description": "The account properties", "x-ms-client-flatten": true }, - "sku": { - "description": "Gets or sets the Sku.", - "allOf": [ - { - "$ref": "#/definitions/AccountSku" - } + "tags": { + "type": "object", + "description": "Resource tags.", + "additionalProperties": { + "type": "string" + } + }, + "location": { + "type": "string", + "description": "The geo-location where the resource lives", + "x-ms-mutability": [ + "read", + "create" ] + }, + "identity": { + "$ref": "#/definitions/Identity", + "description": "The Managed Identity of the resource" + }, + "sku": { + "$ref": "#/definitions/AccountSku", + "description": "Gets or sets the Sku." } - } + }, + "allOf": [ + { + "$ref": "../../../../../../common-types/resource-management/v3/types.json#/definitions/Resource" + } + ] }, "AccountEndpoints": { - "description": "The account endpoints", "type": "object", + "description": "The account endpoints", "properties": { "catalog": { - "description": "Gets the catalog endpoint.", "type": "string", + "description": "Gets the catalog endpoint.", "readOnly": true }, "scan": { - "description": "Gets the scan endpoint.", "type": "string", + "description": "Gets the scan endpoint.", "readOnly": true } } }, "AccountList": { - "description": "Paged list of Account resources", - "required": [ - "value" - ], "type": "object", + "description": "Paged list of Account resources", "properties": { - "nextLink": { - "description": "The Url of next result page.", - "type": "string" - }, "value": { - "description": "Collection of items of type results.", "type": "array", + "description": "The Account items on this page", "items": { "$ref": "#/definitions/Account" - }, - "x-ms-identifiers": [] + } + }, + "nextLink": { + "type": "string", + "format": "uri", + "description": "The link to the next page of items" } - } + }, + "required": [ + "value" + ] }, "AccountMergeInfo": { - "description": "The public Account Merge Info model.", "type": "object", + "description": "The public Account Merge Info model.", "properties": { "accountLocation": { - "description": "The account location of the *other* account in the merge operation.", "type": "string", + "description": "The account location of the *other* account in the merge operation.", "readOnly": true }, "accountName": { - "description": "The account name of the *other* account in the merge operation.", "type": "string", + "description": "The account name of the *other* account in the merge operation.", "readOnly": true }, "accountResourceGroupName": { - "description": "The resource group name of the *other* account in the merge operation.", "type": "string", + "description": "The resource group name of the *other* account in the merge operation.", "readOnly": true }, "accountSubscriptionId": { - "description": "The subscription id of the *other* account in the merge operation.", "type": "string", + "description": "The subscription id of the *other* account in the merge operation.", "readOnly": true }, "deprovisioned": { - "description": "The deprovisioned status of the account.\r\nOnly applicable for the secondary account.", "type": "boolean", + "description": "The deprovisioned status of the account.\nOnly applicable for the secondary account.", "readOnly": true }, "mergeStatus": { + "$ref": "#/definitions/MergeStatus", "description": "The status of the merge operation.", - "enum": [ - "Succeeded", - "Failed", - "InProgress" - ], - "type": "string", - "readOnly": true, - "x-ms-enum": { - "name": "MergeStatus", - "modelAsString": true - } + "readOnly": true }, "typeOfAccount": { + "$ref": "#/definitions/MergeAccountType", "description": "The account's type for the merge operation.", - "enum": [ - "Primary", - "Secondary" - ], - "type": "string", - "readOnly": true, - "x-ms-enum": { - "name": "MergeAccountType", - "modelAsString": true - } + "readOnly": true } } }, "AccountProperties": { - "description": "The account properties", "type": "object", + "description": "The account properties", "properties": { "accountStatus": { + "$ref": "#/definitions/AccountPropertiesAccountStatus", "description": "Gets or sets the status of the account.", - "allOf": [ - { - "$ref": "#/definitions/AccountStatus" - } - ], "readOnly": true }, "cloudConnectors": { - "$ref": "#/definitions/CloudConnectors" + "$ref": "#/definitions/CloudConnectors", + "description": "External Cloud Service connectors" }, "createdAt": { + "type": "string", "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", + "description": "Gets the creator of the entity.", "readOnly": true }, "createdByObjectId": { - "description": "Gets the creators of the entity's object id.", "type": "string", + "description": "Gets the creators of the entity's object id.", "readOnly": true }, "defaultDomain": { - "description": "Gets the default domain in the account.", "type": "string", + "description": "Gets the default domain in the account.", "readOnly": true }, "endpoints": { + "$ref": "#/definitions/AccountPropertiesEndpoints", "description": "The URIs that are the public endpoints of the account.", - "allOf": [ - { - "$ref": "#/definitions/AccountEndpoints" - } - ], "readOnly": true }, "friendlyName": { - "description": "Gets or sets the friendly name.", "type": "string", + "description": "Gets or sets the friendly name.", "readOnly": true }, "ingestionStorage": { - "$ref": "#/definitions/IngestionStorage" + "$ref": "#/definitions/IngestionStorage", + "description": "Ingestion Storage Account Info" }, "managedEventHubState": { + "type": "string", "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": [ @@ -1750,30 +1891,43 @@ "Disabled", "Enabled" ], - "type": "string", "x-ms-enum": { "name": "ManagedEventHubState", - "modelAsString": true + "modelAsString": true, + "values": [ + { + "name": "NotSpecified", + "value": "NotSpecified", + "description": "NotSpecified" + }, + { + "name": "Disabled", + "value": "Disabled", + "description": "Disabled" + }, + { + "name": "Enabled", + "value": "Enabled", + "description": "Enabled" + } + ] } }, "managedResourceGroupName": { - "description": "Gets or sets the managed resource group name", "type": "string", + "description": "Gets or sets the managed resource group name", "x-ms-mutability": [ "read", "create" ] }, "managedResources": { + "$ref": "#/definitions/AccountPropertiesManagedResources", "description": "Gets the resource identifiers of the managed resources.", - "allOf": [ - { - "$ref": "#/definitions/ManagedResources" - } - ], "readOnly": true }, "managedResourcesPublicNetworkAccess": { + "type": "string", "description": "Gets or sets the public network access for managed resources.", "default": "NotSpecified", "enum": [ @@ -1781,147 +1935,262 @@ "Enabled", "Disabled" ], - "type": "string", "x-ms-enum": { "name": "PublicNetworkAccess", - "modelAsString": true + "modelAsString": true, + "values": [ + { + "name": "NotSpecified", + "value": "NotSpecified", + "description": "NotSpecified" + }, + { + "name": "Enabled", + "value": "Enabled", + "description": "Enabled" + }, + { + "name": "Disabled", + "value": "Disabled", + "description": "Disabled" + } + ] } }, "mergeInfo": { - "description": "Gets or sets the Merge Info.", - "$ref": "#/definitions/AccountMergeInfo" + "$ref": "#/definitions/AccountMergeInfo", + "description": "Gets or sets the Merge Info." }, "privateEndpointConnections": { - "description": "Gets the private endpoint connections information.", "type": "array", + "description": "Gets the private endpoint connections information.", "items": { "$ref": "#/definitions/PrivateEndpointConnection" }, - "readOnly": true, - "x-ms-identifiers": [] - }, - "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 - } - }, - "tenantEndpointState": { - "description": "Gets or sets the state of tenant endpoint.", - "enum": [ - "NotSpecified", - "Disabled", - "Enabled" - ], - "type": "string", - "x-ms-enum": { - "name": "TenantEndpointState", - "modelAsString": true + "readOnly": true, + "x-ms-identifiers": [] + }, + "provisioningState": { + "$ref": "#/definitions/ProvisioningState", + "description": "Gets or sets the state of the provisioning.", + "readOnly": true + }, + "publicNetworkAccess": { + "type": "string", + "description": "Gets or sets the public network access.", + "default": "Enabled", + "enum": [ + "NotSpecified", + "Enabled", + "Disabled" + ], + "x-ms-enum": { + "name": "PublicNetworkAccess", + "modelAsString": true, + "values": [ + { + "name": "NotSpecified", + "value": "NotSpecified", + "description": "NotSpecified" + }, + { + "name": "Enabled", + "value": "Enabled", + "description": "Enabled" + }, + { + "name": "Disabled", + "value": "Disabled", + "description": "Disabled" + } + ] + } + }, + "tenantEndpointState": { + "$ref": "#/definitions/TenantEndpointState", + "description": "Gets or sets the state of tenant endpoint." + } + } + }, + "AccountPropertiesAccountStatus": { + "type": "object", + "description": "Gets or sets the status of the account.", + "allOf": [ + { + "$ref": "#/definitions/AccountStatus" + } + ] + }, + "AccountPropertiesEndpoints": { + "type": "object", + "description": "The URIs that are the public endpoints of the account.", + "allOf": [ + { + "$ref": "#/definitions/AccountEndpoints" + } + ] + }, + "AccountPropertiesManagedResources": { + "type": "object", + "description": "Gets the resource identifiers of the managed resources.", + "allOf": [ + { + "$ref": "#/definitions/ManagedResources" + } + ] + }, + "AccountProvisioningState": { + "type": "string", + "description": "Gets the account status code.", + "enum": [ + "Unknown", + "Creating", + "Updating", + "Moving", + "Deleting", + "SoftDeleting", + "SoftDeleted", + "Failed", + "Succeeded", + "Canceled" + ], + "x-ms-enum": { + "name": "AccountProvisioningState", + "modelAsString": true, + "values": [ + { + "name": "Unknown", + "value": "Unknown", + "description": "Unknown" + }, + { + "name": "Creating", + "value": "Creating", + "description": "Creating" + }, + { + "name": "Updating", + "value": "Updating", + "description": "Updating" + }, + { + "name": "Moving", + "value": "Moving", + "description": "Moving" + }, + { + "name": "Deleting", + "value": "Deleting", + "description": "Deleting" + }, + { + "name": "SoftDeleting", + "value": "SoftDeleting", + "description": "SoftDeleting" + }, + { + "name": "SoftDeleted", + "value": "SoftDeleted", + "description": "SoftDeleted" + }, + { + "name": "Failed", + "value": "Failed", + "description": "Failed" + }, + { + "name": "Succeeded", + "value": "Succeeded", + "description": "Succeeded" + }, + { + "name": "Canceled", + "value": "Canceled", + "description": "Canceled" } - } + ] } }, "AccountSku": { - "description": "The Sku", "type": "object", + "description": "The Sku", "properties": { "capacity": { + "type": "integer", "format": "int32", - "description": "Gets or sets the sku capacity.", - "type": "integer" + "description": "Gets or sets the sku capacity." }, "name": { - "description": "Gets or sets the sku name.", - "enum": [ - "Standard", - "Free" - ], - "type": "string", - "x-ms-enum": { - "name": "AccountSkuName", - "modelAsString": true - } + "$ref": "#/definitions/AccountSkuName", + "description": "Gets or sets the sku name." } } }, + "AccountSkuName": { + "type": "string", + "description": "Gets or sets the sku name.", + "enum": [ + "Standard", + "Free" + ], + "x-ms-enum": { + "name": "AccountSkuName", + "modelAsString": true, + "values": [ + { + "name": "Standard", + "value": "Standard", + "description": "Standard" + }, + { + "name": "Free", + "value": "Free", + "description": "Free" + } + ] + } + }, "AccountStatus": { - "description": "The account status.", "type": "object", + "description": "The account status.", "properties": { "accountProvisioningState": { + "$ref": "#/definitions/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 - } + "readOnly": true }, "errorDetails": { + "$ref": "#/definitions/AccountStatusErrorDetails", "description": "Gets the account error details.", - "allOf": [ - { - "$ref": "#/definitions/ErrorModel" - } - ], "readOnly": true } } }, + "AccountStatusErrorDetails": { + "type": "object", + "description": "Gets the account error details.", + "allOf": [ + { + "$ref": "#/definitions/ErrorModel" + } + ] + }, "AccountUpdateParameters": { - "description": "The account update properties.", "type": "object", + "description": "The account update properties.", "properties": { "identity": { - "$ref": "#/definitions/Identity" + "$ref": "#/definitions/Identity", + "description": "The Managed Identity of the resource" }, "properties": { "$ref": "#/definitions/AccountProperties", + "description": "The account properties", "x-ms-client-flatten": true }, "tags": { - "description": "Tags on the azure resource.", "type": "object", + "description": "Tags on the azure resource.", "additionalProperties": { "type": "string" } @@ -1929,27 +2198,25 @@ } }, "BatchFeatureRequest": { - "description": "Feature request model", "type": "object", + "description": "Feature request model", "properties": { "features": { - "description": "Set of features", - "uniqueItems": true, "type": "array", + "description": "Set of features", "items": { "type": "string" - }, - "x-ms-identifiers": [] + } } } }, "BatchFeatureStatus": { - "description": "List of features with enabled status", "type": "object", + "description": "List of features with enabled status", "properties": { "features": { - "description": "Features with enabled status", "type": "object", + "description": "Features with enabled status", "additionalProperties": { "type": "boolean" }, @@ -1958,224 +2225,304 @@ } }, "CheckNameAvailabilityRequest": { - "description": "The request payload for CheckNameAvailability API", "type": "object", + "description": "The request payload for CheckNameAvailability API", "properties": { "name": { - "description": "Resource name to verify for availability", - "type": "string" + "type": "string", + "description": "Resource name to verify for availability" }, "type": { - "description": "Fully qualified resource type which includes provider namespace", - "type": "string" + "type": "string", + "description": "Fully qualified resource type which includes provider namespace" } } }, "CheckNameAvailabilityResult": { - "description": "The response payload for CheckNameAvailability API", "type": "object", + "description": "The response payload for CheckNameAvailability API", "properties": { "message": { - "description": "Error message", - "type": "string" + "type": "string", + "description": "Error message" }, "nameAvailable": { - "description": "Indicates if name is valid and available.", - "type": "boolean" + "type": "boolean", + "description": "Indicates if name is valid and available." }, "reason": { - "description": "The reason the name is not available.", - "enum": [ - "Invalid", - "AlreadyExists" - ], - "type": "string", - "x-ms-enum": { - "name": "reason", - "modelAsString": true - } + "$ref": "#/definitions/Reason", + "description": "The reason the name is not available." } } }, "CloudConnectors": { - "description": "External Cloud Service connectors", "type": "object", + "description": "External Cloud Service connectors", "properties": { "awsExternalId": { - "description": "AWS external identifier.\r\nConfigured in AWS to allow use of the role arn used for scanning", "type": "string", + "description": "AWS external identifier.\nConfigured in AWS to allow use of the role arn used for scanning", "readOnly": true } } }, "CollectionAdminUpdate": { - "description": "Collection administrator update.", "type": "object", + "description": "Collection administrator update.", "properties": { "objectId": { - "description": "Gets or sets the object identifier of the admin.", - "type": "string" + "type": "string", + "description": "Gets or sets the object identifier of the admin." } } }, "Consent": { - "description": "Consent extension resource", "type": "object", - "allOf": [ - { - "$ref": "#/definitions/ProxyResource" - } - ], + "description": "Consent extension resource", "properties": { "kind": { - "description": "Gets or sets the consent kind.", - "enum": [ - "Metadata", - "Governance" - ], - "type": "string", - "x-ms-enum": { - "name": "ConsentKind", - "modelAsString": true - } + "$ref": "#/definitions/ConsentKind", + "description": "Gets or sets the consent kind." }, "properties": { "$ref": "#/definitions/ConsentProperties", + "description": "The consent properties", "x-ms-client-flatten": true } + }, + "allOf": [ + { + "$ref": "#/definitions/ProxyResource" + } + ] + }, + "ConsentKind": { + "type": "string", + "description": "Gets or sets the consent kind.", + "enum": [ + "Metadata", + "Governance" + ], + "x-ms-enum": { + "name": "ConsentKind", + "modelAsString": true, + "values": [ + { + "name": "Metadata", + "value": "Metadata", + "description": "Metadata" + }, + { + "name": "Governance", + "value": "Governance", + "description": "Governance" + } + ] } }, "ConsentProperties": { - "description": "The consent properties", "type": "object", + "description": "The consent properties", "properties": { "scope": { "type": "string", "readOnly": true }, "scopeType": { + "$ref": "#/definitions/ConsentScopeType", "description": "Defines consent scope type.", - "enum": [ - "Azure", - "Fabric", - "Databricks", - "Snowflake", - "S3" - ], - "type": "string", - "readOnly": true, - "x-ms-enum": { - "name": "ConsentScopeType", - "modelAsString": true - } + "readOnly": true }, "status": { + "$ref": "#/definitions/ConsentStatus", "description": "Defines consent status.", - "enum": [ - "NotSpecified", - "Enabled", - "Disabled" - ], - "type": "string", - "readOnly": true, - "x-ms-enum": { - "name": "ConsentStatus", - "modelAsString": true - } + "readOnly": true } } }, + "ConsentScopeType": { + "type": "string", + "description": "Defines consent scope type.", + "enum": [ + "Azure", + "Fabric", + "Databricks", + "Snowflake", + "S3" + ], + "x-ms-enum": { + "name": "ConsentScopeType", + "modelAsString": true, + "values": [ + { + "name": "Azure", + "value": "Azure", + "description": "Azure" + }, + { + "name": "Fabric", + "value": "Fabric", + "description": "Fabric" + }, + { + "name": "Databricks", + "value": "Databricks", + "description": "Databricks" + }, + { + "name": "Snowflake", + "value": "Snowflake", + "description": "Snowflake" + }, + { + "name": "S3", + "value": "S3", + "description": "S3" + } + ] + } + }, + "ConsentStatus": { + "type": "string", + "description": "Defines consent status.", + "enum": [ + "NotSpecified", + "Enabled", + "Disabled" + ], + "x-ms-enum": { + "name": "ConsentStatus", + "modelAsString": true, + "values": [ + { + "name": "NotSpecified", + "value": "NotSpecified", + "description": "NotSpecified" + }, + { + "name": "Enabled", + "value": "Enabled", + "description": "Enabled" + }, + { + "name": "Disabled", + "value": "Disabled", + "description": "Disabled" + } + ] + } + }, + "CreatedByType": { + "type": "string", + "description": "The type of identity that created the resource.", + "enum": [ + "User", + "Application", + "ManagedIdentity", + "Key" + ], + "x-ms-enum": { + "name": "CreatedByType", + "modelAsString": true, + "values": [ + { + "name": "User", + "value": "User", + "description": "User" + }, + { + "name": "Application", + "value": "Application", + "description": "Application" + }, + { + "name": "ManagedIdentity", + "value": "ManagedIdentity", + "description": "ManagedIdentity" + }, + { + "name": "Key", + "value": "Key", + "description": "Key" + } + ] + } + }, "Credentials": { - "description": "Credentials to access the event streaming service attached to the purview account.", "type": "object", + "description": "Credentials to access the event streaming service attached to the purview account.", "properties": { "identityId": { - "description": "Identity identifier for UserAssign type.", - "type": "string" + "type": "string", + "description": "Identity identifier for UserAssign type." }, "type": { - "description": "Identity Type.", - "enum": [ - "None", - "SystemAssigned", - "UserAssigned" - ], - "type": "string", - "x-ms-enum": { - "name": "KafkaConfigurationIdentityType", - "modelAsString": true - } + "$ref": "#/definitions/KafkaConfigurationIdentityType", + "description": "Identity Type." } } }, "DefaultAccountPayload": { - "description": "Payload to get and set the default account in the given scope", "type": "object", + "description": "Payload to get and set the default account in the given scope", "properties": { "accountName": { - "description": "The name of the account that is set as the default.", - "type": "string" + "type": "string", + "description": "The name of the account that is set as the default." }, "resourceGroupName": { - "description": "The resource group name of the account that is set as the default.", - "type": "string" + "type": "string", + "description": "The resource group name of the account that is set as the default." }, "scope": { - "description": "The scope object ID. For example, sub ID or tenant ID.", - "type": "string" + "type": "string", + "description": "The scope object ID. For example, sub ID or tenant ID." }, "scopeTenantId": { - "description": "The scope tenant in which the default account is set.", - "type": "string" + "type": "string", + "description": "The scope tenant in which the default account is set." }, "scopeType": { - "description": "The scope where the default account is set.", - "enum": [ - "Tenant", - "Subscription" - ], - "type": "string", - "x-ms-enum": { - "name": "ScopeType", - "modelAsString": true - } + "$ref": "#/definitions/ScopeType", + "description": "The scope where the default account is set." }, "subscriptionId": { - "description": "The subscription ID of the account that is set as the default.", - "type": "string" + "type": "string", + "description": "The subscription ID of the account that is set as the default." } } }, "DimensionProperties": { - "description": "properties for dimension", "type": "object", + "description": "properties for dimension", "properties": { "displayName": { - "description": "localized display name of the dimension to customer", - "type": "string" + "type": "string", + "description": "localized display name of the dimension to customer" }, "name": { - "description": "dimension name", - "type": "string" + "type": "string", + "description": "dimension name" }, "toBeExportedForCustomer": { - "description": "flag indicating whether this dimension should be included to the customer in Azure Monitor logs (aka Shoebox)", - "type": "boolean" + "type": "boolean", + "description": "flag indicating whether this dimension should be included to the customer in Azure Monitor logs (aka Shoebox)" } } }, "ErrorModel": { - "description": "Default error model", "type": "object", + "description": "Default error model", "properties": { "code": { - "description": "Gets or sets the code.", "type": "string", + "description": "Gets or sets the code.", "readOnly": true }, "details": { - "description": "Gets or sets the details.", "type": "array", + "description": "Gets or sets the details.", "items": { "$ref": "#/definitions/ErrorModel" }, @@ -2183,62 +2530,136 @@ "x-ms-identifiers": [] }, "message": { - "description": "Gets or sets the messages.", "type": "string", + "description": "Gets or sets the messages.", "readOnly": true }, "target": { - "description": "Gets or sets the target.", "type": "string", + "description": "Gets or sets the target.", "readOnly": true } } }, "ErrorResponseModel": { - "description": "Default error response model", "type": "object", + "description": "Default error response model", "properties": { "error": { + "$ref": "#/definitions/ErrorResponseModelError", "description": "Gets or sets the error.", - "allOf": [ - { - "$ref": "#/definitions/ErrorModel" - } - ], "readOnly": true } } }, + "ErrorResponseModelError": { + "type": "object", + "description": "Gets or sets the error.", + "allOf": [ + { + "$ref": "#/definitions/ErrorModel" + } + ] + }, + "EventHubType": { + "type": "string", + "description": "The event hub type.", + "enum": [ + "Notification", + "Hook" + ], + "x-ms-enum": { + "name": "EventHubType", + "modelAsString": true, + "values": [ + { + "name": "Notification", + "value": "Notification", + "description": "Notification" + }, + { + "name": "Hook", + "value": "Hook", + "description": "Hook" + } + ] + } + }, + "EventStreamingState": { + "type": "string", + "description": "The state of the event streaming service", + "enum": [ + "Disabled", + "Enabled" + ], + "x-ms-enum": { + "name": "EventStreamingState", + "modelAsString": true, + "values": [ + { + "name": "Disabled", + "value": "Disabled", + "description": "Disabled" + }, + { + "name": "Enabled", + "value": "Enabled", + "description": "Enabled" + } + ] + } + }, + "EventStreamingType": { + "type": "string", + "description": "The event streaming service type", + "enum": [ + "None", + "Managed", + "Azure" + ], + "x-ms-enum": { + "name": "EventStreamingType", + "modelAsString": true, + "values": [ + { + "name": "None", + "value": "None", + "description": "None" + }, + { + "name": "Managed", + "value": "Managed", + "description": "Managed" + }, + { + "name": "Azure", + "value": "Azure", + "description": "Azure" + } + ] + } + }, "Identity": { - "description": "The Managed Identity of the resource", "type": "object", + "description": "The Managed Identity of the resource", "properties": { "principalId": { - "description": "Service principal object Id", "type": "string", + "description": "Service principal object Id", "readOnly": true }, "tenantId": { - "description": "Tenant Id", "type": "string", + "description": "Tenant Id", "readOnly": true }, "type": { - "description": "Identity Type", - "enum": [ - "None", - "SystemAssigned", - "UserAssigned" - ], - "type": "string", - "x-ms-enum": { - "name": "ManagedIdentityType", - "modelAsString": true - } + "$ref": "#/definitions/ManagedIdentityType", + "description": "Identity Type" }, "userAssignedIdentities": { - "description": "User Assigned Identities", "type": "object", + "description": "User Assigned Identities", "additionalProperties": { "$ref": "#/definitions/UserAssignedIdentity" } @@ -2246,88 +2667,112 @@ } }, "IngestionStorage": { - "description": "Ingestion Storage Account Info", "type": "object", + "description": "Ingestion Storage Account Info", "properties": { "id": { - "description": "Gets or sets the Id.", "type": "string", + "description": "Gets or sets the Id.", "readOnly": true }, "primaryEndpoint": { - "description": "Gets or sets the primary endpoint.", "type": "string", + "description": "Gets or sets the primary endpoint.", "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 - } + "$ref": "#/definitions/PublicNetworkAccess", + "description": "Gets or sets the public network access setting" } } }, "KafkaConfiguration": { - "description": "The configuration of the event streaming service resource attached to the Purview account for kafka notifications.", "type": "object", - "allOf": [ - { - "$ref": "#/definitions/ProxyResource" - } - ], + "description": "The configuration of the event streaming service resource attached to the Purview account for kafka notifications.", "properties": { "properties": { "$ref": "#/definitions/KafkaConfigurationProperties", + "description": "The kafka configuration properties of the event streaming service attached to the Purview account for kafka notifications.", "x-ms-client-flatten": true } + }, + "allOf": [ + { + "$ref": "../../../../../../common-types/resource-management/v3/types.json#/definitions/ProxyResource" + } + ] + }, + "KafkaConfigurationIdentityType": { + "type": "string", + "description": "Identity Type.", + "enum": [ + "None", + "SystemAssigned", + "UserAssigned" + ], + "x-ms-enum": { + "name": "KafkaConfigurationIdentityType", + "modelAsString": true, + "values": [ + { + "name": "None", + "value": "None", + "description": "None" + }, + { + "name": "SystemAssigned", + "value": "SystemAssigned", + "description": "SystemAssigned" + }, + { + "name": "UserAssigned", + "value": "UserAssigned", + "description": "UserAssigned" + } + ] } }, "KafkaConfigurationList": { - "description": "Paged list of kafka configuration resources", - "required": [ - "value" - ], "type": "object", + "description": "Paged list of kafka configuration resources", "properties": { - "nextLink": { - "description": "The Url of next result page.", - "type": "string" - }, "value": { - "description": "Collection of items of type results.", "type": "array", + "description": "The KafkaConfiguration items on this page", "items": { "$ref": "#/definitions/KafkaConfiguration" - }, - "x-ms-identifiers": [] + } + }, + "nextLink": { + "type": "string", + "format": "uri", + "description": "The link to the next page of items" } - } + }, + "required": [ + "value" + ] }, "KafkaConfigurationProperties": { - "description": "The kafka configuration properties of the event streaming service attached to the Purview account for kafka notifications.", "type": "object", + "description": "The kafka configuration properties of the event streaming service attached to the Purview account for kafka notifications.", "properties": { "consumerGroup": { - "description": "Consumer group for hook event hub.", - "type": "string" + "type": "string", + "description": "Consumer group for hook event hub." }, "credentials": { - "$ref": "#/definitions/Credentials" + "$ref": "#/definitions/Credentials", + "description": "Credentials to access the event streaming service attached to the purview account." }, "eventHubPartitionId": { - "description": "Optional partition Id for notification event hub. If not set, all partitions will be leveraged.", - "type": "string" + "type": "string", + "description": "Optional partition Id for notification event hub. If not set, all partitions will be leveraged." }, "eventHubResourceId": { "type": "string", "format": "arm-id", + "description": "A type definition that refers the id to an Azure Resource Manager resource.", "x-ms-arm-id-details": { "allowedResources": [ { @@ -2337,31 +2782,36 @@ } }, "eventHubType": { - "description": "The event hub type.", - "enum": [ - "Notification", - "Hook" - ], - "type": "string", - "x-ms-enum": { - "name": "EventHubType", - "modelAsString": true - } + "$ref": "#/definitions/EventHubType", + "description": "The event hub type." }, "eventStreamingState": { + "type": "string", "description": "The state of the event streaming service", "default": "Enabled", "enum": [ "Disabled", "Enabled" ], - "type": "string", "x-ms-enum": { "name": "EventStreamingState", - "modelAsString": true + "modelAsString": true, + "values": [ + { + "name": "Disabled", + "value": "Disabled", + "description": "Disabled" + }, + { + "name": "Enabled", + "value": "Enabled", + "description": "Enabled" + } + ] } }, "eventStreamingType": { + "type": "string", "description": "The event streaming service type", "default": "None", "enum": [ @@ -2369,207 +2819,373 @@ "Managed", "Azure" ], - "type": "string", "x-ms-enum": { "name": "EventStreamingType", - "modelAsString": true + "modelAsString": true, + "values": [ + { + "name": "None", + "value": "None", + "description": "None" + }, + { + "name": "Managed", + "value": "Managed", + "description": "Managed" + }, + { + "name": "Azure", + "value": "Azure", + "description": "Azure" + } + ] } } } }, + "LastModifiedByType": { + "type": "string", + "description": "The type of identity that last modified the resource.", + "enum": [ + "User", + "Application", + "ManagedIdentity", + "Key" + ], + "x-ms-enum": { + "name": "LastModifiedByType", + "modelAsString": true, + "values": [ + { + "name": "User", + "value": "User", + "description": "User" + }, + { + "name": "Application", + "value": "Application", + "description": "Application" + }, + { + "name": "ManagedIdentity", + "value": "ManagedIdentity", + "description": "ManagedIdentity" + }, + { + "name": "Key", + "value": "Key", + "description": "Key" + } + ] + } + }, + "ManagedEventHubState": { + "type": "string", + "description": "Gets or sets the state of managed eventhub. If enabled managed eventhub will be created, if disabled the managed eventhub will be removed.", + "enum": [ + "NotSpecified", + "Disabled", + "Enabled" + ], + "x-ms-enum": { + "name": "ManagedEventHubState", + "modelAsString": true, + "values": [ + { + "name": "NotSpecified", + "value": "NotSpecified", + "description": "NotSpecified" + }, + { + "name": "Disabled", + "value": "Disabled", + "description": "Disabled" + }, + { + "name": "Enabled", + "value": "Enabled", + "description": "Enabled" + } + ] + } + }, + "ManagedIdentityType": { + "type": "string", + "description": "Identity Type", + "enum": [ + "None", + "SystemAssigned", + "UserAssigned" + ], + "x-ms-enum": { + "name": "ManagedIdentityType", + "modelAsString": true, + "values": [ + { + "name": "None", + "value": "None", + "description": "None" + }, + { + "name": "SystemAssigned", + "value": "SystemAssigned", + "description": "SystemAssigned" + }, + { + "name": "UserAssigned", + "value": "UserAssigned", + "description": "UserAssigned" + } + ] + } + }, "ManagedResources": { - "description": "The managed resources in customer subscription.", "type": "object", + "description": "The managed resources in customer subscription.", "properties": { "eventHubNamespace": { - "description": "Gets the managed event hub namespace resource identifier.", "type": "string", + "description": "Gets the managed event hub namespace resource identifier.", "readOnly": true }, "resourceGroup": { - "description": "Gets the managed resource group resource identifier. This resource group will host resource dependencies for the account.", "type": "string", + "description": "Gets the managed resource group resource identifier. This resource group will host resource dependencies for the account.", "readOnly": true }, "storageAccount": { - "description": "Gets the managed storage account resource identifier.", "type": "string", + "description": "Gets the managed storage account resource identifier.", "readOnly": true } } }, + "MergeAccountType": { + "type": "string", + "description": "The account's type for the merge operation.", + "enum": [ + "Primary", + "Secondary" + ], + "x-ms-enum": { + "name": "MergeAccountType", + "modelAsString": true, + "values": [ + { + "name": "Primary", + "value": "Primary", + "description": "Primary" + }, + { + "name": "Secondary", + "value": "Secondary", + "description": "Secondary" + } + ] + } + }, + "MergeStatus": { + "type": "string", + "description": "The status of the merge operation.", + "enum": [ + "Succeeded", + "Failed", + "InProgress" + ], + "x-ms-enum": { + "name": "MergeStatus", + "modelAsString": true, + "values": [ + { + "name": "Succeeded", + "value": "Succeeded", + "description": "Succeeded" + }, + { + "name": "Failed", + "value": "Failed", + "description": "Failed" + }, + { + "name": "InProgress", + "value": "InProgress", + "description": "InProgress" + } + ] + } + }, "Operation": { - "description": "Operation resource", "type": "object", + "description": "Operation resource", "properties": { "display": { - "$ref": "#/definitions/OperationDisplay" + "$ref": "#/definitions/OperationDisplay", + "description": "The response model for get operation properties" }, "isDataAction": { - "description": "Whether operation is a data action", - "type": "boolean" + "type": "boolean", + "description": "Whether operation is a data action" }, "name": { - "description": "Operation name for display purposes", - "type": "string" + "type": "string", + "description": "Operation name for display purposes" }, "origin": { - "description": "origin of the operation", - "type": "string" + "type": "string", + "description": "origin of the operation" }, "properties": { "$ref": "#/definitions/OperationProperties", + "description": "properties on meta info", "x-ms-client-flatten": true } } }, "OperationDisplay": { - "description": "The response model for get operation properties", "type": "object", + "description": "The response model for get operation properties", "properties": { "description": { - "description": "Description of the operation for display purposes", - "type": "string" + "type": "string", + "description": "Description of the operation for display purposes" }, "operation": { - "description": "Name of the operation for display purposes", - "type": "string" + "type": "string", + "description": "Name of the operation for display purposes" }, "provider": { - "description": "Name of the provider for display purposes", - "type": "string" + "type": "string", + "description": "Name of the provider for display purposes" }, "resource": { - "description": "Name of the resource type for display purposes", - "type": "string" + "type": "string", + "description": "Name of the resource type for display purposes" } } }, "OperationList": { - "description": "Paged list of operation resources", - "required": [ - "value" - ], "type": "object", + "description": "Paged list of operation resources", "properties": { "count": { + "type": "integer", "format": "int64", - "description": "Total item count.", - "type": "integer" + "description": "Total item count." }, "nextLink": { - "description": "The Url of next result page.", - "type": "string" + "type": "string", + "description": "The Url of next result page." }, "value": { - "description": "Collection of items of type results.", "type": "array", + "description": "Collection of items of type results.", "items": { "$ref": "#/definitions/Operation" }, "x-ms-identifiers": [] } - } + }, + "required": [ + "value" + ] }, "OperationMetaLogSpecification": { - "description": "log specifications for operation api", "type": "object", + "description": "log specifications for operation api", "properties": { "blobDuration": { - "description": "blob duration of the log", - "type": "string" + "type": "string", + "description": "blob duration of the log" }, "displayName": { - "description": "localized name of the log category", - "type": "string" + "type": "string", + "description": "localized name of the log category" }, "name": { - "description": "name of the log category", - "type": "string" + "type": "string", + "description": "name of the log category" } } }, "OperationMetaMetricSpecification": { - "description": "metric specifications for the operation", "type": "object", + "description": "metric specifications for the operation", "properties": { "aggregationType": { - "description": "aggregation type of metric", - "type": "string" + "type": "string", + "description": "aggregation type of metric" }, "dimensions": { - "description": "properties for dimension", "type": "array", + "description": "properties for dimension", "items": { "$ref": "#/definitions/DimensionProperties" }, "x-ms-identifiers": [] }, "displayDescription": { - "description": "description of the metric", - "type": "string" + "type": "string", + "description": "description of the metric" }, "displayName": { - "description": "localized name of the metric", - "type": "string" + "type": "string", + "description": "localized name of the metric" }, "enableRegionalMdmAccount": { - "description": "enable regional mdm account", - "type": "string" + "type": "string", + "description": "enable regional mdm account" }, "internalMetricName": { - "description": "internal metric name", - "type": "string" + "type": "string", + "description": "internal metric name" }, "name": { - "description": "name of the metric", - "type": "string" + "type": "string", + "description": "name of the metric" }, "resourceIdDimensionNameOverride": { - "description": "dimension name use to replace resource id if specified", - "type": "string" + "type": "string", + "description": "dimension name use to replace resource id if specified" }, "sourceMdmNamespace": { - "description": "Metric namespace.\r\nOnly set the namespace if different from the default value, \r\nleaving it empty makes it use the value from the ARM manifest.", - "type": "string" + "type": "string", + "description": "Metric namespace.\nOnly set the namespace if different from the default value,\nleaving it empty makes it use the value from the ARM manifest." }, "supportedAggregationTypes": { - "description": "supported aggregation types", "type": "array", + "description": "supported aggregation types", "items": { "type": "string" - }, - "x-ms-identifiers": [] + } }, "supportedTimeGrainTypes": { - "description": "supported time grain types", "type": "array", + "description": "supported time grain types", "items": { "type": "string" - }, - "x-ms-identifiers": [] + } }, "unit": { - "description": "units for the metric", - "type": "string" + "type": "string", + "description": "units for the metric" } } }, "OperationMetaServiceSpecification": { - "description": "The operation meta service specification", "type": "object", + "description": "The operation meta service specification", "properties": { "logSpecifications": { - "description": "log specifications for the operation", "type": "array", + "description": "log specifications for the operation", "items": { "$ref": "#/definitions/OperationMetaLogSpecification" }, "x-ms-identifiers": [] }, "metricSpecifications": { - "description": "metric specifications for the operation", "type": "array", + "description": "metric specifications for the operation", "items": { "$ref": "#/definitions/OperationMetaMetricSpecification" }, @@ -2578,64 +3194,65 @@ } }, "OperationProperties": { - "description": "properties on meta info", "type": "object", + "description": "properties on meta info", "properties": { "serviceSpecification": { - "$ref": "#/definitions/OperationMetaServiceSpecification" + "$ref": "#/definitions/OperationMetaServiceSpecification", + "description": "The operation meta service specification" } } }, "PrivateEndpoint": { - "description": "A private endpoint class.", "type": "object", + "description": "A private endpoint class.", "properties": { "id": { - "description": "The private endpoint identifier.", - "type": "string" + "type": "string", + "description": "The private endpoint identifier." } } }, "PrivateEndpointConnection": { - "description": "A private endpoint connection class.", "type": "object", - "allOf": [ - { - "$ref": "#/definitions/ProxyResource" - } - ], + "description": "A private endpoint connection class.", "properties": { "properties": { "$ref": "#/definitions/PrivateEndpointConnectionProperties", "description": "The connection identifier.", "x-ms-client-flatten": true } - } + }, + "allOf": [ + { + "$ref": "../../../../../../common-types/resource-management/v3/types.json#/definitions/ProxyResource" + } + ] }, "PrivateEndpointConnectionList": { - "description": "Paged list of private endpoint connections", - "required": [ - "value" - ], "type": "object", + "description": "Paged list of private endpoint connections", "properties": { - "nextLink": { - "description": "The Url of next result page.", - "type": "string" - }, "value": { - "description": "Collection of items of type results.", "type": "array", + "description": "The PrivateEndpointConnection items on this page", "items": { "$ref": "#/definitions/PrivateEndpointConnection" - }, - "x-ms-identifiers": [] + } + }, + "nextLink": { + "type": "string", + "format": "uri", + "description": "The link to the next page of items" } - } + }, + "required": [ + "value" + ] }, "PrivateEndpointConnectionProperties": { - "description": "A private endpoint connection properties class.", "type": "object", + "description": "A private endpoint connection properties class.", "properties": { "privateEndpoint": { "$ref": "#/definitions/PrivateEndpoint", @@ -2646,108 +3263,139 @@ "description": "The private link service connection state." }, "provisioningState": { - "description": "The provisioning state.", "type": "string", + "description": "The provisioning state.", "readOnly": true } } }, + "PrivateEndpointConnectionStatus": { + "type": "string", + "description": "The status.", + "enum": [ + "Unknown", + "Pending", + "Approved", + "Rejected", + "Disconnected" + ], + "x-ms-enum": { + "name": "PrivateEndpointConnectionStatus", + "modelAsString": true, + "values": [ + { + "name": "Unknown", + "value": "Unknown", + "description": "Unknown" + }, + { + "name": "Pending", + "value": "Pending", + "description": "Pending" + }, + { + "name": "Approved", + "value": "Approved", + "description": "Approved" + }, + { + "name": "Rejected", + "value": "Rejected", + "description": "Rejected" + }, + { + "name": "Disconnected", + "value": "Disconnected", + "description": "Disconnected" + } + ] + } + }, "PrivateEndpointConnectionStatusUpdateRequest": { - "description": "A private endpoint connection status update request class.", "type": "object", + "description": "A private endpoint connection status update request class.", "properties": { "privateEndpointId": { - "description": "The private endpoint resource identifier.", - "type": "string" + "type": "string", + "description": "The private endpoint resource identifier." }, "status": { - "description": "The private endpoint connection status.", - "type": "string" + "type": "string", + "description": "The private endpoint connection status." } } }, "PrivateEndpointConnectionStatusUpdateResponse": { - "description": "A private endpoint connection status update response class.", "type": "object", + "description": "A private endpoint connection status update response class.", "properties": { "privateEndpointId": { - "description": "The private endpoint resource identifier.", - "type": "string" + "type": "string", + "description": "The private endpoint resource identifier." }, "status": { - "description": "The private endpoint connection status.", - "type": "string" + "type": "string", + "description": "The private endpoint connection status." } } }, "PrivateLinkResource": { - "description": "A privately linkable resource.", "type": "object", + "description": "A privately linkable resource.", "properties": { - "id": { - "description": "The private link resource identifier.", - "type": "string", - "readOnly": true - }, - "name": { - "description": "The private link resource name.", - "type": "string", - "readOnly": true - }, "properties": { "$ref": "#/definitions/PrivateLinkResourceProperties", "description": "The private link resource properties.", - "readOnly": true, "x-ms-client-flatten": true - }, - "type": { - "description": "The private link resource type.", - "type": "string", - "readOnly": true } - } + }, + "allOf": [ + { + "$ref": "../../../../../../common-types/resource-management/v3/types.json#/definitions/ProxyResource" + } + ] }, "PrivateLinkResourceList": { - "description": "Paged list of private link resources", - "required": [ - "value" - ], "type": "object", + "description": "Paged list of private link resources", "properties": { - "nextLink": { - "description": "The Url of next result page.", - "type": "string" - }, "value": { - "description": "Collection of items of type results.", "type": "array", + "description": "The PrivateLinkResource items on this page", "items": { "$ref": "#/definitions/PrivateLinkResource" - }, - "x-ms-identifiers": [] + } + }, + "nextLink": { + "type": "string", + "format": "uri", + "description": "The link to the next page of items" } - } + }, + "required": [ + "value" + ] }, "PrivateLinkResourceProperties": { - "description": "A privately linkable resource properties.", "type": "object", + "description": "A privately linkable resource properties.", "properties": { "groupId": { - "description": "The private link resource group identifier.", "type": "string", + "description": "The private link resource group identifier.", "readOnly": true }, "requiredMembers": { - "description": "This translates to how many Private IPs should be created for each privately linkable resource.", "type": "array", + "description": "This translates to how many Private IPs should be created for each privately linkable resource.", "items": { "type": "string" }, "readOnly": true }, "requiredZoneNames": { - "description": "The required zone names for private link resource.", "type": "array", + "description": "The required zone names for private link resource.", "items": { "type": "string" }, @@ -2756,305 +3404,413 @@ } }, "PrivateLinkServiceConnectionState": { - "description": "The private link service connection state.", "type": "object", + "description": "The private link service connection state.", "properties": { "actionsRequired": { - "description": "The required actions.", - "type": "string" + "type": "string", + "description": "The required actions." }, "description": { - "description": "The description.", - "type": "string" + "type": "string", + "description": "The description." }, "status": { - "description": "The status.", - "enum": [ - "Unknown", - "Pending", - "Approved", - "Rejected", - "Disconnected" - ], - "type": "string", - "x-ms-enum": { - "name": "PrivateEndpointConnectionStatus", - "modelAsString": true - } + "$ref": "#/definitions/PrivateEndpointConnectionStatus", + "description": "The status." } } }, + "ProvisioningState": { + "type": "string", + "description": "Gets or sets the state of the provisioning.", + "enum": [ + "Unknown", + "Creating", + "Moving", + "Deleting", + "SoftDeleting", + "SoftDeleted", + "Failed", + "Succeeded", + "Canceled" + ], + "x-ms-enum": { + "name": "ProvisioningState", + "modelAsString": true, + "values": [ + { + "name": "Unknown", + "value": "Unknown", + "description": "Unknown" + }, + { + "name": "Creating", + "value": "Creating", + "description": "Creating" + }, + { + "name": "Moving", + "value": "Moving", + "description": "Moving" + }, + { + "name": "Deleting", + "value": "Deleting", + "description": "Deleting" + }, + { + "name": "SoftDeleting", + "value": "SoftDeleting", + "description": "SoftDeleting" + }, + { + "name": "SoftDeleted", + "value": "SoftDeleted", + "description": "SoftDeleted" + }, + { + "name": "Failed", + "value": "Failed", + "description": "Failed" + }, + { + "name": "Succeeded", + "value": "Succeeded", + "description": "Succeeded" + }, + { + "name": "Canceled", + "value": "Canceled", + "description": "Canceled" + } + ] + } + }, "ProxyResource": { - "description": "Proxy Azure Resource", "type": "object", + "description": "Proxy Azure Resource", "properties": { "id": { - "description": "Gets or sets the identifier.", "type": "string", + "description": "Gets or sets the identifier.", "readOnly": true }, "name": { - "description": "Gets or sets the name.", "type": "string", + "description": "Gets or sets the name.", "readOnly": true }, "systemData": { + "$ref": "#/definitions/ProxyResourceSystemData", "description": "Metadata pertaining to creation and last modification of the resource.", - "allOf": [ - { - "$ref": "#/definitions/SystemData" - } - ], "readOnly": true }, "type": { - "description": "Gets or sets the type.", "type": "string", + "description": "Gets or sets the type.", "readOnly": true } - }, - "x-ms-azure-resource": true + } + }, + "ProxyResourceSystemData": { + "type": "object", + "description": "Metadata pertaining to creation and last modification of the resource.", + "allOf": [ + { + "$ref": "#/definitions/SystemData" + } + ] + }, + "PublicNetworkAccess": { + "type": "string", + "description": "Gets or sets the public network access for managed resources.", + "enum": [ + "NotSpecified", + "Enabled", + "Disabled" + ], + "x-ms-enum": { + "name": "PublicNetworkAccess", + "modelAsString": true, + "values": [ + { + "name": "NotSpecified", + "value": "NotSpecified", + "description": "NotSpecified" + }, + { + "name": "Enabled", + "value": "Enabled", + "description": "Enabled" + }, + { + "name": "Disabled", + "value": "Disabled", + "description": "Disabled" + } + ] + } }, "QuotaName": { - "description": "Quota name", "type": "object", + "description": "Quota name", "properties": { "localizedValue": { - "description": "Gets or sets the localized name value.", - "type": "string" + "type": "string", + "description": "Gets or sets the localized name value." }, "value": { - "description": "Gets or sets the name value.", - "type": "string" + "type": "string", + "description": "Gets or sets the name value." } } }, + "Reason": { + "type": "string", + "description": "The reason the name is not available.", + "enum": [ + "Invalid", + "AlreadyExists" + ], + "x-ms-enum": { + "name": "Reason", + "modelAsString": true, + "values": [ + { + "name": "Invalid", + "value": "Invalid", + "description": "Invalid" + }, + { + "name": "AlreadyExists", + "value": "AlreadyExists", + "description": "AlreadyExists" + } + ] + } + }, + "ScopeType": { + "type": "string", + "description": "The scope where the default account is set.", + "enum": [ + "Tenant", + "Subscription" + ], + "x-ms-enum": { + "name": "ScopeType", + "modelAsString": true, + "values": [ + { + "name": "Tenant", + "value": "Tenant", + "description": "Tenant" + }, + { + "name": "Subscription", + "value": "Subscription", + "description": "Subscription" + } + ] + } + }, "SystemData": { - "description": "Metadata pertaining to creation and last modification of the resource.", "type": "object", + "description": "Metadata pertaining to creation and last modification of the resource.", "properties": { "createdAt": { + "type": "string", "format": "date-time", "description": "The timestamp of resource creation (UTC).", - "type": "string", "readOnly": true }, "createdBy": { - "description": "The identity that created the resource.", "type": "string", + "description": "The identity that created the resource.", "readOnly": true }, "createdByType": { + "$ref": "#/definitions/CreatedByType", "description": "The type of identity that created the resource.", - "enum": [ - "User", - "Application", - "ManagedIdentity", - "Key" - ], - "type": "string", - "readOnly": true, - "x-ms-enum": { - "name": "createdByType", - "modelAsString": true - } + "readOnly": true }, "lastModifiedAt": { + "type": "string", "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", + "description": "The identity that last modified the resource.", "readOnly": true }, "lastModifiedByType": { + "$ref": "#/definitions/LastModifiedByType", "description": "The type of identity that last modified the resource.", - "enum": [ - "User", - "Application", - "ManagedIdentity", - "Key" - ], - "type": "string", - "readOnly": true, - "x-ms-enum": { - "name": "lastModifiedByType", - "modelAsString": true - } + "readOnly": true } } }, + "TenantEndpointState": { + "type": "string", + "description": "Gets or sets the state of tenant endpoint.", + "enum": [ + "NotSpecified", + "Disabled", + "Enabled" + ], + "x-ms-enum": { + "name": "TenantEndpointState", + "modelAsString": true, + "values": [ + { + "name": "NotSpecified", + "value": "NotSpecified", + "description": "NotSpecified" + }, + { + "name": "Disabled", + "value": "Disabled", + "description": "Disabled" + }, + { + "name": "Enabled", + "value": "Enabled", + "description": "Enabled" + } + ] + } + }, "TrackedResource": { - "description": "Azure ARM Tracked Resource", "type": "object", + "description": "Azure ARM Tracked Resource", "properties": { "id": { - "description": "Gets or sets the identifier.", "type": "string", + "description": "Gets or sets the identifier.", "readOnly": true }, "identity": { - "$ref": "#/definitions/Identity" + "$ref": "#/definitions/Identity", + "description": "The Managed Identity of the resource" }, "location": { - "description": "Gets or sets the location.", - "type": "string" + "type": "string", + "description": "Gets or sets the location." }, "name": { - "description": "Gets or sets the name.", "type": "string", + "description": "Gets or sets the name.", "readOnly": true }, "systemData": { + "$ref": "#/definitions/TrackedResourceSystemData", "description": "Metadata pertaining to creation and last modification of the resource.", - "allOf": [ - { - "$ref": "#/definitions/SystemData" - } - ], "readOnly": true }, "tags": { - "description": "Tags on the azure resource.", "type": "object", + "description": "Tags on the azure resource.", "additionalProperties": { "type": "string" } }, "type": { - "description": "Gets or sets the type.", "type": "string", + "description": "Gets or sets the type.", "readOnly": true } - }, - "x-ms-azure-resource": true + } + }, + "TrackedResourceSystemData": { + "type": "object", + "description": "Metadata pertaining to creation and last modification of the resource.", + "allOf": [ + { + "$ref": "#/definitions/SystemData" + } + ] }, "Usage": { - "description": "Response for usage information", "type": "object", + "description": "Response for usage information", "properties": { "currentValue": { + "type": "integer", "format": "int32", "description": "Current usage quota value", - "type": "integer", "readOnly": true }, "id": { - "description": "Fully qualified resource Id", "type": "string", + "description": "Fully qualified resource Id", "readOnly": true }, "limit": { + "type": "integer", "format": "int32", "description": "Usage quota limit", - "type": "integer", "readOnly": true }, "name": { + "$ref": "#/definitions/UsageName", "description": "Quota name", - "allOf": [ - { - "$ref": "#/definitions/QuotaName" - } - ], "readOnly": true }, "unit": { - "description": "Quota usage unit.", "type": "string", + "description": "Quota usage unit.", "readOnly": true } } }, "UsageList": { - "description": "List of usage information", "type": "object", + "description": "List of usage information", "properties": { - "nextLink": { - "description": "The Url of next link.", - "type": "string" - }, "value": { - "description": "Collection of usage values.", "type": "array", + "description": "The Usage items on this page", "items": { "$ref": "#/definitions/Usage" - }, - "readOnly": true + } + }, + "nextLink": { + "type": "string", + "format": "uri", + "description": "The link to the next page of items" } - } + }, + "required": [ + "value" + ] + }, + "UsageName": { + "type": "object", + "description": "Quota name", + "allOf": [ + { + "$ref": "#/definitions/QuotaName" + } + ] }, "UserAssignedIdentity": { - "description": "Uses client ID and Principal ID", "type": "object", + "description": "Uses client ID and Principal ID", "properties": { "clientId": { - "description": "Gets or Sets Client ID", "type": "string", + "description": "Gets or Sets Client ID", "readOnly": true }, "principalId": { - "description": "Gets or Sets Principal ID", "type": "string", + "description": "Gets or Sets Principal ID", "readOnly": true } } } }, - "parameters": { - "subscriptionId": { - "in": "path", - "name": "subscriptionId", - "description": "The subscription identifier", - "required": true, - "type": "string" - }, - "api-version": { - "in": "query", - "name": "api-version", - "description": "The api version to use.", - "required": true, - "type": "string" - }, - "accountName": { - "in": "path", - "name": "accountName", - "description": "The name of the account.", - "required": true, - "type": "string", - "maxLength": 63, - "minLength": 3, - "pattern": "^[A-Za-z0-9]+(?:-[A-Za-z0-9]+)*$", - "x-ms-parameter-location": "method" - }, - "resourceGroupName": { - "in": "path", - "name": "resourceGroupName", - "description": "The resource group name.", - "required": true, - "type": "string", - "x-ms-parameter-location": "method" - } - }, - "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." - } - }, - "security": [ - { - "azure_auth": [ - "user_impersonation" - ] - } - ] + "parameters": {} } diff --git a/specification/purview/resource-manager/Microsoft.Purview/Purview/routes.tsp b/specification/purview/resource-manager/Microsoft.Purview/Purview/routes.tsp new file mode 100644 index 000000000000..334bb5d4aecd --- /dev/null +++ b/specification/purview/resource-manager/Microsoft.Purview/Purview/routes.tsp @@ -0,0 +1,162 @@ +// FIXME: Operations in this file are not detected as a resource operation, please confirm the conversion result manually + +import "@azure-tools/typespec-azure-core"; +import "@typespec/rest"; +import "./models.tsp"; +import "@azure-tools/typespec-azure-resource-manager"; +import "@typespec/openapi"; + +using TypeSpec.Rest; +using TypeSpec.Http; +using Azure.ResourceManager; +using TypeSpec.OpenAPI; + +namespace Microsoft.Purview; + +#suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-interface-requires-decorator" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" +interface AccountsOperationGroup { + /** + * Checks if account name is available. + */ + @summary("Checks the account name availability.") + @autoRoute + checkNameAvailability is ArmProviderActionSync< + Request = CheckNameAvailabilityRequest, + Response = CheckNameAvailabilityResult, + Scope = SubscriptionActionScope, + Error = ErrorResponseModel + >; +} + +#suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-interface-requires-decorator" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" +interface DefaultAccountsOperationGroup { + /** + * Get the default account for the scope. + */ + @summary("Gets the default account information set for the scope.") + @autoRoute + @get + @action("getDefaultAccount") + get is ArmProviderActionSync< + Response = DefaultAccountPayload, + Parameters = { + /** + * The tenant ID. + */ + #suppress "@azure-tools/typespec-azure-core/no-format" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" + @format("uuid") + @query("scopeTenantId") + scopeTenantId: string; + + /** + * The scope for the default account. + */ + @query("scopeType") + scopeType: ScopeType; + + /** + * The Id of the scope object, for example if the scope is "Subscription" then it is the ID of that subscription. + */ + @query("scope") + scope?: string; + }, + Error = ErrorResponseModel + >; + /** + * Removes the default account from the scope. + */ + @summary("Removes the default account from the scope.") + @autoRoute + @action("removeDefaultAccount") + remove is ArmProviderActionSync< + Response = { + @body body: void; + } | NoContentResponse, + Parameters = { + /** + * The tenant ID. + */ + #suppress "@azure-tools/typespec-azure-core/no-format" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" + @format("uuid") + @query("scopeTenantId") + scopeTenantId: string; + + /** + * The scope for the default account. + */ + @query("scopeType") + scopeType: ScopeType; + + /** + * The Id of the scope object, for example if the scope is "Subscription" then it is the ID of that subscription. + */ + @query("scope") + scope?: string; + }, + Error = ErrorResponseModel + >; + /** + * Sets the default account for the scope. + */ + @summary("Sets the default account for the scope.") + @autoRoute + @action("setDefaultAccount") + set is ArmProviderActionSync< + Request = DefaultAccountPayload, + Response = DefaultAccountPayload, + Error = ErrorResponseModel + >; +} + +#suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-interface-requires-decorator" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" +interface FeaturesOperationGroup { + /** + * Gets details from a list of feature names. + */ + @summary(""" + Gets a list of features and their status for the location and subscription. + Status of enabled features will be true. Status of disabled features will be false. + Features that don't exist will be excluded from the results. + """) + @autoRoute + @action("listFeatures") + subscriptionGet is ArmProviderActionSync< + Request = BatchFeatureRequest, + Response = BatchFeatureStatus, + Scope = SubscriptionActionScope, + Parameters = { + /** + * Location of feature. + */ + @path + @segment("locations") + locations: string; + }, + Error = ErrorResponseModel + >; +} + +#suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-interface-requires-decorator" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" +interface UsagesOperationGroup { + /** + * Get the usage quota configuration + */ + @summary("Gets the Usage quota configuration.") + @autoRoute + @get + @action("usages") + get is ArmProviderActionSync< + Response = UsageList, + Scope = SubscriptionActionScope, + Parameters = { + ...LocationParameter; + + /** + * The filter, currently unused. + */ + @query("$filter") + $filter?: string; + }, + Error = ErrorResponseModel + >; +} diff --git a/specification/purview/resource-manager/Microsoft.Purview/Purview/suppressions.yaml b/specification/purview/resource-manager/Microsoft.Purview/Purview/suppressions.yaml index df946076c3c3..92c948b4702d 100644 --- a/specification/purview/resource-manager/Microsoft.Purview/Purview/suppressions.yaml +++ b/specification/purview/resource-manager/Microsoft.Purview/Purview/suppressions.yaml @@ -4,9 +4,6 @@ - tool: TypeSpecRequirement path: ./preview/2023-05-01-preview/*.json reason: Brownfield service not ready to migrate -- tool: TypeSpecRequirement - path: ./preview/2024-04-01-preview/*.json - reason: Brownfield service not ready to migrate - tool: TypeSpecRequirement path: ./stable/2021-07-01/*.json reason: Brownfield service not ready to migrate diff --git a/specification/purview/resource-manager/Microsoft.Purview/Purview/tspconfig.yaml b/specification/purview/resource-manager/Microsoft.Purview/Purview/tspconfig.yaml new file mode 100644 index 000000000000..f34087164fec --- /dev/null +++ b/specification/purview/resource-manager/Microsoft.Purview/Purview/tspconfig.yaml @@ -0,0 +1,45 @@ +parameters: + "service-dir": + default: "sdk/purview" +emit: + - "@azure-tools/typespec-autorest" +options: + "@azure-tools/typespec-autorest": + omit-unreachable-types: false + emitter-output-dir: "{project-root}" + azure-resource-provider-folder: "resource-manager" + output-file: "{version-status}/{version}/purview.json" + arm-types-dir: "{project-root}/../../../../common-types/resource-management" + emit-lro-options: "all" + examples-dir: "{project-root}/examples" + "@azure-tools/typespec-python": + emitter-output-dir: "{output-dir}/{service-dir}/azure-mgmt-purview" + namespace: "azure.mgmt.purview" + generate-test: true + generate-sample: true + flavor: "azure" + "@azure-tools/typespec-java": + emitter-output-dir: "{output-dir}/{service-dir}/azure-resourcemanager-purview" + namespace: "com.azure.resourcemanager.purview" + service-name: "Purview" # human-readable service name, whitespace allowed + flavor: azure + "@azure-tools/typespec-ts": + service-dir: sdk/purview + emitter-output-dir: "{output-dir}/{service-dir}/arm-purview" + flavor: "azure" + experimental-extensible-enums: true + package-details: + name: "@azure/arm-purview" + "@azure-tools/typespec-go": + service-dir: "sdk/resourcemanager/purview" + emitter-output-dir: "{output-dir}/{service-dir}/armpurview" + module: "github.com/Azure/azure-sdk-for-go/{service-dir}/armpurview" + fix-const-stuttering: true + flavor: "azure" + generate-samples: true + generate-fakes: true + head-as-boolean: true + inject-spans: true +linter: + extends: + - "@azure-tools/typespec-azure-rulesets/resource-manager"