From d80feb59016550fc30d463ae6886e82eb8a73686 Mon Sep 17 00:00:00 2001 From: begoldsm Date: Fri, 14 Jul 2017 18:14:09 -0700 Subject: [PATCH] Adding Swagger example files for all of ADLA and ADLS (#1418) * Make readOnly properties readOnly * Translation of master -> current for ADL This takes all of the new x-ms-examples from PR: * https://github.com/begoldsm/azure-rest-api-specs/pull/9 And puts them into the correct format for the new branch structure. * Fix pathing and add newlines Added new lines to the end of all example files to make GitHub happy. Fixed the ../examples to be ./examples due to the new folder structure. * Undoing readOnly change for this PR Current PR is focused only on adding examples. I will make functional updates to the spec in a separate branch. * Fixes to specs due to missing requirements Fixed query params and moved one operation back into "paths" due to missing requirements documented in this github issue: https://github.com/Azure/autorest/issues/2440 * Update examples to include OP now. * Fix a couple validation issues 1. copy paste fail for LISTSTATUS 2. A change that should be in a different branch ended up in this PR. Reverted it (for the account_list payload). * Fix validation error because exception is required. * Missed the x-ms-azure-resource tag --- .../2016-11-01/catalog.json | 206 +++++++--- .../examples/AdlCatalogGetPackage.json | 21 - .../examples/AdlCatalogListPackages.json | 26 -- .../AdlCatalogListStatisticsInDatabase.json | 35 -- ...CatalogListStatisticsInDatabaseSchema.json | 36 -- ...logListTableValuedFunctionsInDatabase.json | 24 -- .../AdlCatalogListTablesInDatabase.json | 57 --- .../AdlCatalogListViewsInDatabase.json | 25 -- .../2016-11-01/examples/AdlJobCreate.json | 52 --- .../2016-11-01/examples/AdlPipelineGet.json | 32 -- .../2016-11-01/examples/AdlPipelineList.json | 25 -- .../2016-11-01/examples/AdlRecurrenceGet.json | 22 -- .../examples/AdlRecurrenceList.json | 35 -- .../Adla_Catalog_CreateCredential.json | 16 + .../examples/Adla_Catalog_CreateSecret.json | 15 + .../Adla_Catalog_DeleteAllSecrets.json | 10 + .../Adla_Catalog_DeleteCredential.json | 15 + .../examples/Adla_Catalog_DeleteSecret.json | 11 + .../examples/Adla_Catalog_GetAssembly.json | 36 ++ .../examples/Adla_Catalog_GetCredential.json | 16 + .../examples/Adla_Catalog_GetDatabase.json | 15 + .../Adla_Catalog_GetExternalDataSource.json | 22 ++ .../examples/Adla_Catalog_GetPackage.json | 20 + .../examples/Adla_Catalog_GetProcedure.json | 20 + .../examples/Adla_Catalog_GetSchema.json | 17 + .../examples/Adla_Catalog_GetSecret.json | 20 + .../examples/Adla_Catalog_GetTable.json | 76 ++++ .../Adla_Catalog_GetTablePartition.json | 27 ++ .../Adla_Catalog_GetTableStatistic.json | 33 ++ .../examples/Adla_Catalog_GetTableType.json | 35 ++ .../Adla_Catalog_GetTableValuedFunction.json | 20 + .../examples/Adla_Catalog_GetView.json | 20 + .../examples/Adla_Catalog_ListAssemblies.json | 26 ++ .../Adla_Catalog_ListCredentials.json | 24 ++ .../examples/Adla_Catalog_ListDatabases.json | 23 ++ .../Adla_Catalog_ListExternalDataSources.json | 30 ++ .../examples/Adla_Catalog_ListPackages.json | 28 ++ .../examples/Adla_Catalog_ListProcedures.json | 28 ++ .../examples/Adla_Catalog_ListSchemas.json | 25 ++ .../Adla_Catalog_ListTablePartitions.json | 35 ++ .../Adla_Catalog_ListTableStatistics.json | 41 ++ ...Catalog_ListTableStatisticsByDatabase.json | 39 ++ ...istTableStatisticsByDatabaseAndSchema.json | 40 ++ .../examples/Adla_Catalog_ListTableTypes.json | 43 +++ ...Adla_Catalog_ListTableValuedFunctions.json | 28 ++ ...og_ListTableValuedFunctionsByDatabase.json | 27 ++ .../examples/Adla_Catalog_ListTables.json | 85 +++++ .../Adla_Catalog_ListTablesByDatabase.json | 84 ++++ .../examples/Adla_Catalog_ListTypes.json | 39 ++ .../examples/Adla_Catalog_ListViews.json | 28 ++ .../Adla_Catalog_ListViewsByDatabase.json | 27 ++ .../Adla_Catalog_UpdateCredential.json | 17 + .../examples/Adla_Catalog_UpdateSecret.json | 15 + .../2016-11-01/examples/Adla_Job_Build.json | 139 +++++++ .../2016-11-01/examples/Adla_Job_Cancel.json | 10 + .../2016-11-01/examples/Adla_Job_Create.json | 140 +++++++ .../2016-11-01/examples/Adla_Job_Get.json | 75 ++++ .../examples/Adla_Job_GetDebugDataPath.json | 18 + .../examples/Adla_Job_GetStatistics.json | 36 ++ .../2016-11-01/examples/Adla_Job_List.json | 83 ++++ .../examples/Adla_Pipeline_Get.json | 32 ++ .../examples/Adla_Pipeline_List.json | 34 ++ .../examples/Adla_Recurrence_Get.json | 23 ++ .../examples/Adla_Recurrence_List.json | 25 ++ .../2016-11-01/job.json | 29 +- .../2016-11-01/account.json | 360 +++++++++++------- .../examples/Adla_Account_Create.json | 192 ++++++++++ .../examples/Adla_Account_Delete.json | 16 + .../2016-11-01/examples/Adla_Account_Get.json | 75 ++++ .../examples/Adla_Account_List.json | 82 ++++ .../Adla_Account_ListByResourceGroup.json | 83 ++++ .../examples/Adla_Account_Update.json | 173 +++++++++ ... Adla_ComputePolicies_CreateOrUpdate.json} | 8 +- .../examples/Adla_ComputePolicies_Delete.json | 15 + ...Get.json => Adla_ComputePolicies_Get.json} | 10 +- ...> Adla_ComputePolicies_ListByAccount.json} | 23 +- ....json => Adla_ComputePolicies_Update.json} | 12 +- .../Adla_DataLakeStoreAccounts_Add.json | 18 + .../Adla_DataLakeStoreAccounts_Delete.json | 13 + .../Adla_DataLakeStoreAccounts_Get.json | 21 + ...a_DataLakeStoreAccounts_ListByAccount.json | 29 ++ .../Adla_FirewallRules_CreateOrUpdate.json | 29 ++ .../examples/Adla_FirewallRules_Delete.json | 15 + .../examples/Adla_FirewallRules_Get.json | 22 ++ .../Adla_FirewallRules_ListByAccount.json | 24 ++ .../examples/Adla_FirewallRules_Update.json | 28 ++ .../examples/Adla_StorageAccounts_Add.json | 19 + .../examples/Adla_StorageAccounts_Delete.json | 13 + .../examples/Adla_StorageAccounts_Get.json | 22 ++ ...a_StorageAccounts_GetStorageContainer.json | 22 ++ .../Adla_StorageAccounts_ListByAccount.json | 30 ++ .../Adla_StorageAccounts_ListSasTokens.json | 20 + ...StorageAccounts_ListStorageContainers.json | 24 ++ .../examples/Adla_StorageAccounts_Update.json | 19 + .../examples/Adls_FileSystem_Append.json | 17 + .../examples/Adls_FileSystem_CheckAccess.json | 12 + .../examples/Adls_FileSystem_Concat.json | 15 + .../Adls_FileSystem_ConcurrentAppend.json | 15 + .../examples/Adls_FileSystem_Create.json | 17 + .../examples/Adls_FileSystem_Delete.json | 15 + .../Adls_FileSystem_GetAclStatus.json | 22 ++ .../Adls_FileSystem_GetContentSummary.json | 19 + .../Adls_FileSystem_GetFileStatus.json | 28 ++ .../Adls_FileSystem_ListFileStatus.json | 33 ++ .../examples/Adls_FileSystem_Mkdirs.json | 15 + .../Adls_FileSystem_ModifyAclEntries.json | 12 + .../examples/Adls_FileSystem_MsConcat.json | 13 + .../examples/Adls_FileSystem_Open.json | 16 + .../examples/Adls_FileSystem_RemoveAcl.json | 11 + .../Adls_FileSystem_RemoveAclEntries.json | 12 + .../Adls_FileSystem_RemoveDefaultAcl.json | 11 + .../examples/Adls_FileSystem_Rename.json | 15 + .../examples/Adls_FileSystem_SetAcl.json | 12 + .../Adls_FileSystem_SetFileExpiry.json | 13 + .../examples/Adls_FileSystem_SetOwner.json | 13 + .../Adls_FileSystem_SetPermission.json | 12 + .../2016-11-01/filesystem.json | 333 +++++++++------- .../2016-11-01/account.json | 54 ++- .../examples/Adls_Account_Create.json | 160 ++++++++ .../examples/Adls_Account_Delete.json | 16 + .../Adls_Account_EnableKeyVault.json} | 4 +- .../2016-11-01/examples/Adls_Account_Get.json | 66 ++++ .../examples/Adls_Account_List.json | 73 ++++ .../Adls_Account_ListByResourceGroup.json | 74 ++++ .../examples/Adls_Account_Update.json | 139 +++++++ .../Adls_FirewallRules_CreateOrUpdate.json | 29 ++ .../examples/Adls_FirewallRules_Delete.json | 15 + .../examples/Adls_FirewallRules_Get.json | 22 ++ .../Adls_FirewallRules_ListByAccount.json | 24 ++ .../examples/Adls_FirewallRules_Update.json | 28 ++ ...dls_TrustedIdProviders_CreateOrUpdate.json | 27 ++ .../Adls_TrustedIdProviders_Delete.json | 15 + .../examples/Adls_TrustedIdProviders_Get.json | 21 + ...Adls_TrustedIdProviders_ListByAccount.json | 23 ++ .../Adls_TrustedIdProviders_Update.json | 26 ++ 135 files changed, 4587 insertions(+), 743 deletions(-) delete mode 100644 specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/2016-11-01/examples/AdlCatalogGetPackage.json delete mode 100644 specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/2016-11-01/examples/AdlCatalogListPackages.json delete mode 100644 specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/2016-11-01/examples/AdlCatalogListStatisticsInDatabase.json delete mode 100644 specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/2016-11-01/examples/AdlCatalogListStatisticsInDatabaseSchema.json delete mode 100644 specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/2016-11-01/examples/AdlCatalogListTableValuedFunctionsInDatabase.json delete mode 100644 specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/2016-11-01/examples/AdlCatalogListTablesInDatabase.json delete mode 100644 specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/2016-11-01/examples/AdlCatalogListViewsInDatabase.json delete mode 100644 specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/2016-11-01/examples/AdlJobCreate.json delete mode 100644 specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/2016-11-01/examples/AdlPipelineGet.json delete mode 100644 specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/2016-11-01/examples/AdlPipelineList.json delete mode 100644 specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/2016-11-01/examples/AdlRecurrenceGet.json delete mode 100644 specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/2016-11-01/examples/AdlRecurrenceList.json create mode 100644 specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/2016-11-01/examples/Adla_Catalog_CreateCredential.json create mode 100644 specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/2016-11-01/examples/Adla_Catalog_CreateSecret.json create mode 100644 specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/2016-11-01/examples/Adla_Catalog_DeleteAllSecrets.json create mode 100644 specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/2016-11-01/examples/Adla_Catalog_DeleteCredential.json create mode 100644 specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/2016-11-01/examples/Adla_Catalog_DeleteSecret.json create mode 100644 specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/2016-11-01/examples/Adla_Catalog_GetAssembly.json create mode 100644 specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/2016-11-01/examples/Adla_Catalog_GetCredential.json create mode 100644 specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/2016-11-01/examples/Adla_Catalog_GetDatabase.json create mode 100644 specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/2016-11-01/examples/Adla_Catalog_GetExternalDataSource.json create mode 100644 specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/2016-11-01/examples/Adla_Catalog_GetPackage.json create mode 100644 specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/2016-11-01/examples/Adla_Catalog_GetProcedure.json create mode 100644 specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/2016-11-01/examples/Adla_Catalog_GetSchema.json create mode 100644 specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/2016-11-01/examples/Adla_Catalog_GetSecret.json create mode 100644 specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/2016-11-01/examples/Adla_Catalog_GetTable.json create mode 100644 specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/2016-11-01/examples/Adla_Catalog_GetTablePartition.json create mode 100644 specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/2016-11-01/examples/Adla_Catalog_GetTableStatistic.json create mode 100644 specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/2016-11-01/examples/Adla_Catalog_GetTableType.json create mode 100644 specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/2016-11-01/examples/Adla_Catalog_GetTableValuedFunction.json create mode 100644 specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/2016-11-01/examples/Adla_Catalog_GetView.json create mode 100644 specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/2016-11-01/examples/Adla_Catalog_ListAssemblies.json create mode 100644 specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/2016-11-01/examples/Adla_Catalog_ListCredentials.json create mode 100644 specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/2016-11-01/examples/Adla_Catalog_ListDatabases.json create mode 100644 specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/2016-11-01/examples/Adla_Catalog_ListExternalDataSources.json create mode 100644 specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/2016-11-01/examples/Adla_Catalog_ListPackages.json create mode 100644 specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/2016-11-01/examples/Adla_Catalog_ListProcedures.json create mode 100644 specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/2016-11-01/examples/Adla_Catalog_ListSchemas.json create mode 100644 specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/2016-11-01/examples/Adla_Catalog_ListTablePartitions.json create mode 100644 specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/2016-11-01/examples/Adla_Catalog_ListTableStatistics.json create mode 100644 specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/2016-11-01/examples/Adla_Catalog_ListTableStatisticsByDatabase.json create mode 100644 specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/2016-11-01/examples/Adla_Catalog_ListTableStatisticsByDatabaseAndSchema.json create mode 100644 specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/2016-11-01/examples/Adla_Catalog_ListTableTypes.json create mode 100644 specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/2016-11-01/examples/Adla_Catalog_ListTableValuedFunctions.json create mode 100644 specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/2016-11-01/examples/Adla_Catalog_ListTableValuedFunctionsByDatabase.json create mode 100644 specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/2016-11-01/examples/Adla_Catalog_ListTables.json create mode 100644 specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/2016-11-01/examples/Adla_Catalog_ListTablesByDatabase.json create mode 100644 specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/2016-11-01/examples/Adla_Catalog_ListTypes.json create mode 100644 specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/2016-11-01/examples/Adla_Catalog_ListViews.json create mode 100644 specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/2016-11-01/examples/Adla_Catalog_ListViewsByDatabase.json create mode 100644 specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/2016-11-01/examples/Adla_Catalog_UpdateCredential.json create mode 100644 specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/2016-11-01/examples/Adla_Catalog_UpdateSecret.json create mode 100644 specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/2016-11-01/examples/Adla_Job_Build.json create mode 100644 specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/2016-11-01/examples/Adla_Job_Cancel.json create mode 100644 specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/2016-11-01/examples/Adla_Job_Create.json create mode 100644 specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/2016-11-01/examples/Adla_Job_Get.json create mode 100644 specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/2016-11-01/examples/Adla_Job_GetDebugDataPath.json create mode 100644 specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/2016-11-01/examples/Adla_Job_GetStatistics.json create mode 100644 specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/2016-11-01/examples/Adla_Job_List.json create mode 100644 specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/2016-11-01/examples/Adla_Pipeline_Get.json create mode 100644 specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/2016-11-01/examples/Adla_Pipeline_List.json create mode 100644 specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/2016-11-01/examples/Adla_Recurrence_Get.json create mode 100644 specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/2016-11-01/examples/Adla_Recurrence_List.json create mode 100644 specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/2016-11-01/examples/Adla_Account_Create.json create mode 100644 specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/2016-11-01/examples/Adla_Account_Delete.json create mode 100644 specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/2016-11-01/examples/Adla_Account_Get.json create mode 100644 specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/2016-11-01/examples/Adla_Account_List.json create mode 100644 specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/2016-11-01/examples/Adla_Account_ListByResourceGroup.json create mode 100644 specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/2016-11-01/examples/Adla_Account_Update.json rename specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/2016-11-01/examples/{AdlaComputePolicyCreateUpdate.json => Adla_ComputePolicies_CreateOrUpdate.json} (90%) create mode 100644 specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/2016-11-01/examples/Adla_ComputePolicies_Delete.json rename specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/2016-11-01/examples/{AdlaComputePolicyGet.json => Adla_ComputePolicies_Get.json} (80%) rename specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/2016-11-01/examples/{AdlaComputePolicyList.json => Adla_ComputePolicies_ListByAccount.json} (80%) rename specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/2016-11-01/examples/{AdlaComputePolicyUpdate.json => Adla_ComputePolicies_Update.json} (79%) create mode 100644 specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/2016-11-01/examples/Adla_DataLakeStoreAccounts_Add.json create mode 100644 specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/2016-11-01/examples/Adla_DataLakeStoreAccounts_Delete.json create mode 100644 specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/2016-11-01/examples/Adla_DataLakeStoreAccounts_Get.json create mode 100644 specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/2016-11-01/examples/Adla_DataLakeStoreAccounts_ListByAccount.json create mode 100644 specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/2016-11-01/examples/Adla_FirewallRules_CreateOrUpdate.json create mode 100644 specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/2016-11-01/examples/Adla_FirewallRules_Delete.json create mode 100644 specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/2016-11-01/examples/Adla_FirewallRules_Get.json create mode 100644 specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/2016-11-01/examples/Adla_FirewallRules_ListByAccount.json create mode 100644 specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/2016-11-01/examples/Adla_FirewallRules_Update.json create mode 100644 specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/2016-11-01/examples/Adla_StorageAccounts_Add.json create mode 100644 specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/2016-11-01/examples/Adla_StorageAccounts_Delete.json create mode 100644 specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/2016-11-01/examples/Adla_StorageAccounts_Get.json create mode 100644 specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/2016-11-01/examples/Adla_StorageAccounts_GetStorageContainer.json create mode 100644 specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/2016-11-01/examples/Adla_StorageAccounts_ListByAccount.json create mode 100644 specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/2016-11-01/examples/Adla_StorageAccounts_ListSasTokens.json create mode 100644 specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/2016-11-01/examples/Adla_StorageAccounts_ListStorageContainers.json create mode 100644 specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/2016-11-01/examples/Adla_StorageAccounts_Update.json create mode 100644 specification/datalake-store/data-plane/Microsoft.DataLakeStore/2016-11-01/examples/Adls_FileSystem_Append.json create mode 100644 specification/datalake-store/data-plane/Microsoft.DataLakeStore/2016-11-01/examples/Adls_FileSystem_CheckAccess.json create mode 100644 specification/datalake-store/data-plane/Microsoft.DataLakeStore/2016-11-01/examples/Adls_FileSystem_Concat.json create mode 100644 specification/datalake-store/data-plane/Microsoft.DataLakeStore/2016-11-01/examples/Adls_FileSystem_ConcurrentAppend.json create mode 100644 specification/datalake-store/data-plane/Microsoft.DataLakeStore/2016-11-01/examples/Adls_FileSystem_Create.json create mode 100644 specification/datalake-store/data-plane/Microsoft.DataLakeStore/2016-11-01/examples/Adls_FileSystem_Delete.json create mode 100644 specification/datalake-store/data-plane/Microsoft.DataLakeStore/2016-11-01/examples/Adls_FileSystem_GetAclStatus.json create mode 100644 specification/datalake-store/data-plane/Microsoft.DataLakeStore/2016-11-01/examples/Adls_FileSystem_GetContentSummary.json create mode 100644 specification/datalake-store/data-plane/Microsoft.DataLakeStore/2016-11-01/examples/Adls_FileSystem_GetFileStatus.json create mode 100644 specification/datalake-store/data-plane/Microsoft.DataLakeStore/2016-11-01/examples/Adls_FileSystem_ListFileStatus.json create mode 100644 specification/datalake-store/data-plane/Microsoft.DataLakeStore/2016-11-01/examples/Adls_FileSystem_Mkdirs.json create mode 100644 specification/datalake-store/data-plane/Microsoft.DataLakeStore/2016-11-01/examples/Adls_FileSystem_ModifyAclEntries.json create mode 100644 specification/datalake-store/data-plane/Microsoft.DataLakeStore/2016-11-01/examples/Adls_FileSystem_MsConcat.json create mode 100644 specification/datalake-store/data-plane/Microsoft.DataLakeStore/2016-11-01/examples/Adls_FileSystem_Open.json create mode 100644 specification/datalake-store/data-plane/Microsoft.DataLakeStore/2016-11-01/examples/Adls_FileSystem_RemoveAcl.json create mode 100644 specification/datalake-store/data-plane/Microsoft.DataLakeStore/2016-11-01/examples/Adls_FileSystem_RemoveAclEntries.json create mode 100644 specification/datalake-store/data-plane/Microsoft.DataLakeStore/2016-11-01/examples/Adls_FileSystem_RemoveDefaultAcl.json create mode 100644 specification/datalake-store/data-plane/Microsoft.DataLakeStore/2016-11-01/examples/Adls_FileSystem_Rename.json create mode 100644 specification/datalake-store/data-plane/Microsoft.DataLakeStore/2016-11-01/examples/Adls_FileSystem_SetAcl.json create mode 100644 specification/datalake-store/data-plane/Microsoft.DataLakeStore/2016-11-01/examples/Adls_FileSystem_SetFileExpiry.json create mode 100644 specification/datalake-store/data-plane/Microsoft.DataLakeStore/2016-11-01/examples/Adls_FileSystem_SetOwner.json create mode 100644 specification/datalake-store/data-plane/Microsoft.DataLakeStore/2016-11-01/examples/Adls_FileSystem_SetPermission.json create mode 100644 specification/datalake-store/resource-manager/Microsoft.DataLakeStore/2016-11-01/examples/Adls_Account_Create.json create mode 100644 specification/datalake-store/resource-manager/Microsoft.DataLakeStore/2016-11-01/examples/Adls_Account_Delete.json rename specification/{datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/2016-11-01/examples/AdlaComputePolicyDelete.json => datalake-store/resource-manager/Microsoft.DataLakeStore/2016-11-01/examples/Adls_Account_EnableKeyVault.json} (74%) create mode 100644 specification/datalake-store/resource-manager/Microsoft.DataLakeStore/2016-11-01/examples/Adls_Account_Get.json create mode 100644 specification/datalake-store/resource-manager/Microsoft.DataLakeStore/2016-11-01/examples/Adls_Account_List.json create mode 100644 specification/datalake-store/resource-manager/Microsoft.DataLakeStore/2016-11-01/examples/Adls_Account_ListByResourceGroup.json create mode 100644 specification/datalake-store/resource-manager/Microsoft.DataLakeStore/2016-11-01/examples/Adls_Account_Update.json create mode 100644 specification/datalake-store/resource-manager/Microsoft.DataLakeStore/2016-11-01/examples/Adls_FirewallRules_CreateOrUpdate.json create mode 100644 specification/datalake-store/resource-manager/Microsoft.DataLakeStore/2016-11-01/examples/Adls_FirewallRules_Delete.json create mode 100644 specification/datalake-store/resource-manager/Microsoft.DataLakeStore/2016-11-01/examples/Adls_FirewallRules_Get.json create mode 100644 specification/datalake-store/resource-manager/Microsoft.DataLakeStore/2016-11-01/examples/Adls_FirewallRules_ListByAccount.json create mode 100644 specification/datalake-store/resource-manager/Microsoft.DataLakeStore/2016-11-01/examples/Adls_FirewallRules_Update.json create mode 100644 specification/datalake-store/resource-manager/Microsoft.DataLakeStore/2016-11-01/examples/Adls_TrustedIdProviders_CreateOrUpdate.json create mode 100644 specification/datalake-store/resource-manager/Microsoft.DataLakeStore/2016-11-01/examples/Adls_TrustedIdProviders_Delete.json create mode 100644 specification/datalake-store/resource-manager/Microsoft.DataLakeStore/2016-11-01/examples/Adls_TrustedIdProviders_Get.json create mode 100644 specification/datalake-store/resource-manager/Microsoft.DataLakeStore/2016-11-01/examples/Adls_TrustedIdProviders_ListByAccount.json create mode 100644 specification/datalake-store/resource-manager/Microsoft.DataLakeStore/2016-11-01/examples/Adls_TrustedIdProviders_Update.json diff --git a/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/2016-11-01/catalog.json b/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/2016-11-01/catalog.json index c13bfeb157ba..42cf7462ed60 100644 --- a/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/2016-11-01/catalog.json +++ b/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/2016-11-01/catalog.json @@ -43,6 +43,9 @@ "deprecated": true, "operationId": "Catalog_CreateSecret", "description": "Creates the specified secret for use with external data sources in the specified database. This is deprecated and will be removed in the next release. Please use CreateCredential instead.", + "x-ms-examples": { + "Creates the specified secret for use with external data sources in the specified database": { "$ref": "./examples/Adla_Catalog_CreateSecret.json" } + }, "parameters": [ { "name": "databaseName", @@ -84,6 +87,9 @@ "deprecated": true, "operationId": "Catalog_UpdateSecret", "description": "Modifies the specified secret for use with external data sources in the specified database. This is deprecated and will be removed in the next release. Please use UpdateCredential instead.", + "x-ms-examples": { + "Modifies the specified secret for use with external data sources in the specified database": { "$ref": "./examples/Adla_Catalog_UpdateSecret.json" } + }, "parameters": [ { "name": "databaseName", @@ -118,13 +124,16 @@ } } }, - "get": { + "delete": { "tags": [ "Catalog" ], + "operationId": "Catalog_DeleteSecret", "deprecated": true, - "operationId": "Catalog_GetSecret", - "description": "Gets the specified secret in the specified database. This is deprecated and will be removed in the next release. Please use GetCredential instead.", + "description": "Deletes the specified secret in the specified database. This is deprecated and will be removed in the next release. Please use DeleteCredential instead.", + "x-ms-examples": { + "Deletes the specified secret in the specified database": { "$ref": "./examples/Adla_Catalog_DeleteSecret.json" } + }, "parameters": [ { "name": "databaseName", @@ -138,7 +147,7 @@ "in": "path", "required": true, "type": "string", - "description": "The name of the secret to get" + "description": "The name of the secret to delete" }, { "$ref": "#/parameters/ApiVersionParameter" @@ -146,20 +155,20 @@ ], "responses": { "200": { - "description": "Successfully retrieved details of the specified secret in the specified database.", - "schema": { - "$ref": "#/definitions/USqlSecret" - } + "description": "Successfully deleted the specified secret from the specified database." } } }, - "delete": { + "get": { "tags": [ "Catalog" ], - "operationId": "Catalog_DeleteSecret", "deprecated": true, - "description": "Deletes the specified secret in the specified database. This is deprecated and will be removed in the next release. Please use DeleteCredential instead.", + "operationId": "Catalog_GetSecret", + "description": "Gets the specified secret in the specified database. This is deprecated and will be removed in the next release. Please use GetCredential instead.", + "x-ms-examples": { + "Gets the specified secret in the specified database": { "$ref": "./examples/Adla_Catalog_GetSecret.json" } + }, "parameters": [ { "name": "databaseName", @@ -173,7 +182,7 @@ "in": "path", "required": true, "type": "string", - "description": "The name of the secret to delete" + "description": "The name of the secret to get" }, { "$ref": "#/parameters/ApiVersionParameter" @@ -181,7 +190,10 @@ ], "responses": { "200": { - "description": "Successfully deleted the specified secret from the specified database." + "description": "Successfully retrieved details of the specified secret in the specified database.", + "schema": { + "$ref": "#/definitions/USqlSecret" + } } } } @@ -191,8 +203,12 @@ "tags": [ "Catalog" ], + "deprecated": true, "operationId": "Catalog_DeleteAllSecrets", "description": "Deletes all secrets in the specified database. This is deprecated and will be removed in the next release. In the future, please only drop individual credentials using DeleteCredential", + "x-ms-examples": { + "Deletes all secrets in the specified database": { "$ref": "./examples/Adla_Catalog_DeleteAllSecrets.json" } + }, "parameters": [ { "name": "databaseName", @@ -219,6 +235,9 @@ ], "operationId": "Catalog_CreateCredential", "description": "Creates the specified credential for use with external data sources in the specified database.", + "x-ms-examples": { + "Creates the specified credential for use with external data sources in the specified database": { "$ref": "./examples/Adla_Catalog_CreateCredential.json" } + }, "parameters": [ { "name": "databaseName", @@ -259,6 +278,9 @@ ], "operationId": "Catalog_UpdateCredential", "description": "Modifies the specified credential for use with external data sources in the specified database", + "x-ms-examples": { + "Modifies the specified credential for use with external data sources in the specified database": { "$ref": "./examples/Adla_Catalog_UpdateCredential.json" } + }, "parameters": [ { "name": "databaseName", @@ -293,26 +315,46 @@ } } }, - "get": { + "post": { "tags": [ "Catalog" ], - "operationId": "Catalog_GetCredential", - "description": "Retrieves the specified credential from the Data Lake Analytics catalog.", + "operationId": "Catalog_DeleteCredential", + "description": "Deletes the specified credential in the specified database", + "x-ms-examples": { + "Deletes the specified credential in the specified database": { "$ref": "./examples/Adla_Catalog_DeleteCredential.json" } + }, "parameters": [ { "name": "databaseName", "in": "path", "required": true, "type": "string", - "description": "The name of the database containing the schema." + "description": "The name of the database containing the credential." }, { "name": "credentialName", "in": "path", "required": true, "type": "string", - "description": "The name of the credential." + "description": "The name of the credential to delete" + }, + { + "name": "parameters", + "in": "body", + "required": false, + "schema": { + "$ref": "#/definitions/DataLakeAnalyticsCatalogCredentialDeleteParameters" + }, + "description": "The parameters to delete a credential if the current user is not the account owner." + }, + { + "name": "cascade", + "in": "query", + "required": false, + "description": "Indicates if the delete should be a cascading delete (which deletes all resources dependent on the credential as well as the credential) or not. If false will fail if there are any resources relying on the credential.", + "type": "boolean", + "default": false }, { "$ref": "#/parameters/ApiVersionParameter" @@ -320,50 +362,33 @@ ], "responses": { "200": { - "description": "Successfully retrieved the specified credential (name only) from the specified database.", - "schema": { - "$ref": "#/definitions/USqlCredential" - } + "description": "Successfully deleted the specified credential from the specified database." } } }, - "post": { + "get": { "tags": [ "Catalog" ], - "operationId": "Catalog_DeleteCredential", - "description": "Deletes the specified credential in the specified database", + "operationId": "Catalog_GetCredential", + "description": "Retrieves the specified credential from the Data Lake Analytics catalog.", + "x-ms-examples": { + "Retrieves the specified credential from the Data Lake Analytics catalog": { "$ref": "./examples/Adla_Catalog_GetCredential.json" } + }, "parameters": [ { "name": "databaseName", "in": "path", "required": true, "type": "string", - "description": "The name of the database containing the credential." + "description": "The name of the database containing the schema." }, { "name": "credentialName", "in": "path", "required": true, "type": "string", - "description": "The name of the credential to delete" - }, - { - "name": "parameters", - "in": "body", - "required": false, - "schema": { - "$ref": "#/definitions/DataLakeAnalyticsCatalogCredentialDeleteParameters" - }, - "description": "The parameters to delete a credential if the current user is not the account owner." - }, - { - "name": "cascade", - "in": "query", - "required": false, - "description": "Indicates if the delete should be a cascading delete (which deletes all resources dependent on the credential as well as the credential) or not. If false will fail if there are any resources relying on the credential.", - "type": "boolean", - "default": false + "description": "The name of the credential." }, { "$ref": "#/parameters/ApiVersionParameter" @@ -371,7 +396,10 @@ ], "responses": { "200": { - "description": "Successfully deleted the specified credential from the specified database." + "description": "Successfully retrieved the specified credential (name only) from the specified database.", + "schema": { + "$ref": "#/definitions/USqlCredential" + } } } } @@ -383,6 +411,9 @@ ], "operationId": "Catalog_ListCredentials", "description": "Retrieves the list of credentials from the Data Lake Analytics catalog.", + "x-ms-examples": { + "Retrieves the list of credentials from the Data Lake Analytics catalog": { "$ref": "./examples/Adla_Catalog_ListCredentials.json" } + }, "parameters": [ { "name": "databaseName", @@ -462,6 +493,9 @@ ], "operationId": "Catalog_GetExternalDataSource", "description": "Retrieves the specified external data source from the Data Lake Analytics catalog.", + "x-ms-examples": { + "Retrieves the specified external data source from the Data Lake Analytics catalog": { "$ref": "./examples/Adla_Catalog_GetExternalDataSource.json" } + }, "parameters": [ { "name": "databaseName", @@ -498,6 +532,9 @@ ], "operationId": "Catalog_ListExternalDataSources", "description": "Retrieves the list of external data sources from the Data Lake Analytics catalog.", + "x-ms-examples": { + "Retrieves the list of external data sources from the Data Lake Analytics catalog": { "$ref": "./examples/Adla_Catalog_ListExternalDataSources.json" } + }, "parameters": [ { "name": "databaseName", @@ -577,6 +614,9 @@ ], "operationId": "Catalog_GetProcedure", "description": "Retrieves the specified procedure from the Data Lake Analytics catalog.", + "x-ms-examples": { + "Retrieves the specified procedure from the Data Lake Analytics catalog": { "$ref": "./examples/Adla_Catalog_GetProcedure.json" } + }, "parameters": [ { "name": "databaseName", @@ -620,6 +660,9 @@ ], "operationId": "Catalog_ListProcedures", "description": "Retrieves the list of procedures from the Data Lake Analytics catalog.", + "x-ms-examples": { + "Retrieves the list of procedures from the Data Lake Analytics catalog": { "$ref": "./examples/Adla_Catalog_ListProcedures.json" } + }, "parameters": [ { "name": "databaseName", @@ -706,6 +749,9 @@ ], "operationId": "Catalog_GetTable", "description": "Retrieves the specified table from the Data Lake Analytics catalog.", + "x-ms-examples": { + "Retrieves the specified table from the Data Lake Analytics catalog": { "$ref": "./examples/Adla_Catalog_GetTable.json" } + }, "parameters": [ { "name": "databaseName", @@ -749,6 +795,9 @@ ], "operationId": "Catalog_ListTables", "description": "Retrieves the list of tables from the Data Lake Analytics catalog.", + "x-ms-examples": { + "Retrieves the list of tables from the Data Lake Analytics catalog": { "$ref": "./examples/Adla_Catalog_ListTables.json" } + }, "parameters": [ { "name": "databaseName", @@ -844,7 +893,7 @@ "operationId": "Catalog_ListTableStatisticsByDatabaseAndSchema", "description": "Retrieves the list of all table statistics within the specified schema from the Data Lake Analytics catalog.", "x-ms-examples": { - "List all table statistics in a database and schema": { "$ref": "./examples/AdlCatalogListStatisticsInDatabaseSchema.json" } + "Retrieves the list of all table statistics within the specified schema from the Data Lake Analytics catalog": { "$ref": "./examples/Adla_Catalog_ListTableStatisticsByDatabaseAndSchema.json" } }, "parameters": [ { @@ -932,6 +981,9 @@ ], "operationId": "Catalog_GetTableType", "description": "Retrieves the specified table type from the Data Lake Analytics catalog.", + "x-ms-examples": { + "Retrieves the specified table type from the Data Lake Analytics catalog": { "$ref": "./examples/Adla_Catalog_GetTableType.json" } + }, "parameters": [ { "name": "databaseName", @@ -975,6 +1027,9 @@ ], "operationId": "Catalog_ListTableTypes", "description": "Retrieves the list of table types from the Data Lake Analytics catalog.", + "x-ms-examples": { + "Retrieves the list of table types from the Data Lake Analytics catalog": { "$ref": "./examples/Adla_Catalog_ListTableTypes.json" } + }, "parameters": [ { "name": "databaseName", @@ -1062,7 +1117,7 @@ "operationId": "Catalog_GetPackage", "description": "Retrieves the specified package from the Data Lake Analytics catalog.", "x-ms-examples": { - "Get a specific package": { "$ref": "./examples/AdlCatalogGetPackage.json" } + "Retrieves the specified package from the Data Lake Analytics catalog": { "$ref": "./examples/Adla_Catalog_GetPackage.json" } }, "parameters": [ { @@ -1108,7 +1163,7 @@ "operationId": "Catalog_ListPackages", "description": "Retrieves the list of packages from the Data Lake Analytics catalog.", "x-ms-examples": { - "List all packages in a database and schema": { "$ref": "./examples/AdlCatalogListPackages.json" } + "Retrieves the list of packages from the Data Lake Analytics catalog": { "$ref": "./examples/Adla_Catalog_ListPackages.json" } }, "parameters": [ { @@ -1196,6 +1251,9 @@ ], "operationId": "Catalog_GetView", "description": "Retrieves the specified view from the Data Lake Analytics catalog.", + "x-ms-examples": { + "Retrieves the specified view from the Data Lake Analytics catalog": { "$ref": "./examples/Adla_Catalog_GetView.json" } + }, "parameters": [ { "name": "databaseName", @@ -1239,6 +1297,9 @@ ], "operationId": "Catalog_ListViews", "description": "Retrieves the list of views from the Data Lake Analytics catalog.", + "x-ms-examples": { + "Retrieves the list of views from the Data Lake Analytics catalog": { "$ref": "./examples/Adla_Catalog_ListViews.json" } + }, "parameters": [ { "name": "databaseName", @@ -1325,6 +1386,9 @@ ], "operationId": "Catalog_GetTableStatistic", "description": "Retrieves the specified table statistics from the Data Lake Analytics catalog.", + "x-ms-examples": { + "Retrieves the specified table statistics from the Data Lake Analytics catalog": { "$ref": "./examples/Adla_Catalog_GetTableStatistic.json" } + }, "parameters": [ { "name": "databaseName", @@ -1375,6 +1439,9 @@ ], "operationId": "Catalog_ListTableStatistics", "description": "Retrieves the list of table statistics from the Data Lake Analytics catalog.", + "x-ms-examples": { + "Retrieves the list of table statistics from the Data Lake Analytics catalog": { "$ref": "./examples/Adla_Catalog_ListTableStatistics.json" } + }, "parameters": [ { "name": "databaseName", @@ -1468,6 +1535,9 @@ ], "operationId": "Catalog_GetTablePartition", "description": "Retrieves the specified table partition from the Data Lake Analytics catalog.", + "x-ms-examples": { + "Retrieves the specified table partition from the Data Lake Analytics catalog": { "$ref": "./examples/Adla_Catalog_GetTablePartition.json" } + }, "parameters": [ { "name": "databaseName", @@ -1518,6 +1588,9 @@ ], "operationId": "Catalog_ListTablePartitions", "description": "Retrieves the list of table partitions from the Data Lake Analytics catalog.", + "x-ms-examples": { + "Retrieves the list of table partitions from the Data Lake Analytics catalog": { "$ref": "./examples/Adla_Catalog_ListTablePartitions.json" } + }, "parameters": [ { "name": "databaseName", @@ -1611,6 +1684,9 @@ ], "operationId": "Catalog_ListTypes", "description": "Retrieves the list of types within the specified database and schema from the Data Lake Analytics catalog.", + "x-ms-examples": { + "Retrieves the list of types within the specified database and schema from the Data Lake Analytics catalog": { "$ref": "./examples/Adla_Catalog_ListTypes.json" } + }, "parameters": [ { "name": "databaseName", @@ -1697,6 +1773,9 @@ ], "operationId": "Catalog_GetTableValuedFunction", "description": "Retrieves the specified table valued function from the Data Lake Analytics catalog.", + "x-ms-examples": { + "Retrieves the specified table valued function from the Data Lake Analytics catalog": { "$ref": "./examples/Adla_Catalog_GetTableValuedFunction.json" } + }, "parameters": [ { "name": "databaseName", @@ -1740,6 +1819,9 @@ ], "operationId": "Catalog_ListTableValuedFunctions", "description": "Retrieves the list of table valued functions from the Data Lake Analytics catalog.", + "x-ms-examples": { + "Retrieves the list of table valued functions from the Data Lake Analytics catalog": { "$ref": "./examples/Adla_Catalog_ListTableValuedFunctions.json" } + }, "parameters": [ { "name": "databaseName", @@ -1826,6 +1908,9 @@ ], "operationId": "Catalog_GetAssembly", "description": "Retrieves the specified assembly from the Data Lake Analytics catalog.", + "x-ms-examples": { + "Retrieves the specified assembly from the Data Lake Analytics catalog": { "$ref": "./examples/Adla_Catalog_GetAssembly.json" } + }, "parameters": [ { "name": "databaseName", @@ -1862,6 +1947,9 @@ ], "operationId": "Catalog_ListAssemblies", "description": "Retrieves the list of assemblies from the Data Lake Analytics catalog.", + "x-ms-examples": { + "Retrieves the list of assemblies from the Data Lake Analytics catalog": { "$ref": "./examples/Adla_Catalog_ListAssemblies.json" } + }, "parameters": [ { "name": "databaseName", @@ -1941,6 +2029,9 @@ ], "operationId": "Catalog_GetSchema", "description": "Retrieves the specified schema from the Data Lake Analytics catalog.", + "x-ms-examples": { + "Retrieves the specified schema from the Data Lake Analytics catalog": { "$ref": "./examples/Adla_Catalog_GetSchema.json" } + }, "parameters": [ { "name": "databaseName", @@ -1977,6 +2068,9 @@ ], "operationId": "Catalog_ListSchemas", "description": "Retrieves the list of schemas from the Data Lake Analytics catalog.", + "x-ms-examples": { + "Retrieves the list of schemas from the Data Lake Analytics catalog": { "$ref": "./examples/Adla_Catalog_ListSchemas.json" } + }, "parameters": [ { "name": "databaseName", @@ -2057,7 +2151,7 @@ "operationId": "Catalog_ListTableStatisticsByDatabase", "description": "Retrieves the list of all statistics in a database from the Data Lake Analytics catalog.", "x-ms-examples": { - "List all table statistics in a database": { "$ref": "./examples/AdlCatalogListStatisticsInDatabase.json" } + "Retrieves the list of all statistics in a database from the Data Lake Analytics catalog": { "$ref": "./examples/Adla_Catalog_ListTableStatisticsByDatabase.json" } }, "parameters": [ { @@ -2139,7 +2233,7 @@ "operationId": "Catalog_ListTablesByDatabase", "description": "Retrieves the list of all tables in a database from the Data Lake Analytics catalog.", "x-ms-examples": { - "List all tables in a database": { "$ref": "./examples/AdlCatalogListTablesInDatabase.json" } + "Retrieves the list of all tables in a database from the Data Lake Analytics catalog": { "$ref": "./examples/Adla_Catalog_ListTablesByDatabase.json" } }, "parameters": [ { @@ -2229,7 +2323,7 @@ "operationId": "Catalog_ListTableValuedFunctionsByDatabase", "description": "Retrieves the list of all table valued functions in a database from the Data Lake Analytics catalog.", "x-ms-examples": { - "List all table valued functions in a database": { "$ref": "./examples/AdlCatalogListTableValuedFunctionsInDatabase.json" } + "Retrieves the list of all table valued functions in a database from the Data Lake Analytics catalog": { "$ref": "./examples/Adla_Catalog_ListTableValuedFunctionsByDatabase.json" } }, "parameters": [ { @@ -2311,7 +2405,7 @@ "operationId": "Catalog_ListViewsByDatabase", "description": "Retrieves the list of all views in a database from the Data Lake Analytics catalog.", "x-ms-examples": { - "List all views in a database": { "$ref": "./examples/AdlCatalogListViewsInDatabase.json" } + "Retrieves the list of all views in a database from the Data Lake Analytics catalog": { "$ref": "./examples/Adla_Catalog_ListViewsByDatabase.json" } }, "parameters": [ { @@ -2392,6 +2486,9 @@ ], "operationId": "Catalog_GetDatabase", "description": "Retrieves the specified database from the Data Lake Analytics catalog.", + "x-ms-examples": { + "Retrieves the specified database from the Data Lake Analytics catalog": { "$ref": "./examples/Adla_Catalog_GetDatabase.json" } + }, "parameters": [ { "name": "databaseName", @@ -2421,6 +2518,9 @@ ], "operationId": "Catalog_ListDatabases", "description": "Retrieves the list of databases from the Data Lake Analytics catalog.", + "x-ms-examples": { + "Retrieves the list of databases from the Data Lake Analytics catalog": { "$ref": "./examples/Adla_Catalog_ListDatabases.json" } + }, "parameters": [ { "name": "$filter", @@ -3584,7 +3684,7 @@ "type": "string", "description": "the link to the next page of results." } - }, + }, "description": "A Data Lake Analytics catalog item list." } }, diff --git a/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/2016-11-01/examples/AdlCatalogGetPackage.json b/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/2016-11-01/examples/AdlCatalogGetPackage.json deleted file mode 100644 index 039ef6819474..000000000000 --- a/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/2016-11-01/examples/AdlCatalogGetPackage.json +++ /dev/null @@ -1,21 +0,0 @@ -{ - "parameters": { - "api-version": "2016-11-01", - "databaseName": "master", - "schemaName": "dbo", - "packageName": "catalog_item_8", - "accountName": "contosoadla" - }, - "responses": { - "200": { - "body": { - "computeAccountName":"contosoadla", - "databaseName":"master", - "schemaName":"dbo", - "packageName":"catalog_item_8", - "definition":"this is a placeholder string that would define the package", - "version":"776b9091-8916-4638-87f7-9c989a38da98" - } - } - } -} \ No newline at end of file diff --git a/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/2016-11-01/examples/AdlCatalogListPackages.json b/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/2016-11-01/examples/AdlCatalogListPackages.json deleted file mode 100644 index 0466f9837458..000000000000 --- a/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/2016-11-01/examples/AdlCatalogListPackages.json +++ /dev/null @@ -1,26 +0,0 @@ -{ - "parameters": { - "api-version": "2016-11-01", - "databaseName": "master", - "schemaName": "dbo", - "accountName": "contosoadla" - }, - "responses": { - "200": { - "body": { - "value":[ - { - "computeAccountName":"contosoadla", - "databaseName":"master", - "schemaName":"dbo", - "packageName":"catalog_item_8", - "definition":"this is a placeholder string that would define the package", - "version":"776b9091-8916-4638-87f7-9c989a38da98" - - } - ], - "nextLink":"https://contosoadla.datalakeanalytics.net/catalog/usql/databases/master/schemas/dbo/packages?api-version=2016-11-01&%24skiptoken=" - } - } - } -} \ No newline at end of file diff --git a/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/2016-11-01/examples/AdlCatalogListStatisticsInDatabase.json b/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/2016-11-01/examples/AdlCatalogListStatisticsInDatabase.json deleted file mode 100644 index 0eb82b58a429..000000000000 --- a/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/2016-11-01/examples/AdlCatalogListStatisticsInDatabase.json +++ /dev/null @@ -1,35 +0,0 @@ -{ - "parameters": { - "api-version": "2016-11-01", - "databaseName": "master", - "accountName": "contosoadla" - }, - "responses": { - "200": { - "body": { - "value":[ - { - "computeAccountName":"contosoadla", - "databaseName":"master", - "schemaName":"dbo", - "tableName":"catalog_item_8", - "statisticsName": "testStats", - "userStatName": "fake stat name", - "statDataPath": "fake data", - "createTime": "2017-04-14T13:21:56.6819037-07:00", - "updateTime": "2017-04-14T13:21:56.6819037-07:00", - "isUserCreated": true, - "isAutoCreated": false, - "hasFilter": true, - "filterDefinition": "fake data", - "colNames": [ - "fake col1", - "fake col2" - ] - } - ], - "nextLink":"https://contosoadla.datalakeanalytics.net/catalog/usql/databases/master/statistics?api-version=2016-11-01&%24skiptoken=" - } - } - } -} \ No newline at end of file diff --git a/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/2016-11-01/examples/AdlCatalogListStatisticsInDatabaseSchema.json b/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/2016-11-01/examples/AdlCatalogListStatisticsInDatabaseSchema.json deleted file mode 100644 index 16f29625c9bc..000000000000 --- a/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/2016-11-01/examples/AdlCatalogListStatisticsInDatabaseSchema.json +++ /dev/null @@ -1,36 +0,0 @@ -{ - "parameters": { - "api-version": "2016-11-01", - "databaseName": "master", - "schemaName": "dbo", - "accountName": "contosoadla" - }, - "responses": { - "200": { - "body": { - "value":[ - { - "computeAccountName":"contosoadla", - "databaseName":"master", - "schemaName":"dbo", - "tableName":"catalog_item_8", - "statisticsName": "testStats", - "userStatName": "fake stat name", - "statDataPath": "fake data", - "createTime": "2017-04-14T13:21:56.6819037-07:00", - "updateTime": "2017-04-14T13:21:56.6819037-07:00", - "isUserCreated": true, - "isAutoCreated": false, - "hasFilter": true, - "filterDefinition": "fake data", - "colNames": [ - "fake col1", - "fake col2" - ] - } - ], - "nextLink":"https://contosoadla.datalakeanalytics.net/catalog/usql/databases/master/schema/dbo/statistics?api-version=2016-11-01&%24skiptoken=" - } - } - } -} \ No newline at end of file diff --git a/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/2016-11-01/examples/AdlCatalogListTableValuedFunctionsInDatabase.json b/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/2016-11-01/examples/AdlCatalogListTableValuedFunctionsInDatabase.json deleted file mode 100644 index 1ffc1dfc9003..000000000000 --- a/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/2016-11-01/examples/AdlCatalogListTableValuedFunctionsInDatabase.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "parameters": { - "api-version": "2016-11-01", - "databaseName": "master", - "accountName": "contosoadla" - }, - "responses": { - "200": { - "body": { - "value":[ - { - "computeAccountName":"contosoadla", - "databaseName":"master", - "schemaName":"dbo", - "tvfName":"WeblogsView", - "definition":"fake data", - "version":"7884a35b-a2b8-4375-9a47-54c367cf346e" - } - ], - "nextLink":"https://contosoadla.datalakeanalytics.net/catalog/usql/databases/master/tablevaluedfunctions?api-version=2016-11-01&%24skiptoken=" - } - } - } -} \ No newline at end of file diff --git a/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/2016-11-01/examples/AdlCatalogListTablesInDatabase.json b/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/2016-11-01/examples/AdlCatalogListTablesInDatabase.json deleted file mode 100644 index ee9ea38d7dad..000000000000 --- a/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/2016-11-01/examples/AdlCatalogListTablesInDatabase.json +++ /dev/null @@ -1,57 +0,0 @@ -{ - "parameters": { - "api-version": "2016-11-01", - "databaseName": "master", - "accountName": "contosoadla" - }, - "responses": { - "200": { - "body": { - "value":[ - { - "computeAccountName":"contosoadla","databaseName":"master","schemaName":"dbo","tableName":"CUSTOMER","columnList":[ - { - "name":"C_CUSTKEY","type":"System.Int64" - },{ - "name":"C_NAME","type":"System.String" - },{ - "name":"C_ADDRESS","type":"System.String" - },{ - "name":"C_NATIONKEY","type":"System.Int64" - },{ - "name":"C_PHONE","type":"System.String" - },{ - "name":"C_ACCTBAL","type":"System.Decimal?" - },{ - "name":"C_MKTSEGMENT","type":"System.String" - },{ - "name":"C_COMMENT","type":"System.String" - } - ],"indexList":[ - { - "name":"idx_customer","indexKeys":[ - { - "name":"C_CUSTKEY","descending":false - } - ],"columns":[ - "C_CUSTKEY" - ],"distributionInfo":{ - "type":5,"keys":[ - { - "name":"C_CUSTKEY","descending":false - } - ],"count":0,"dynamicCount":0 - },"partitionFunction":"a23ede66-3132-49ea-a568-b2dba2595319","partitionKeyList":[ - - ],"isColumnstore":false,"indexId":1,"isUnique":false - } - ],"partitionKeyList":[ - - ],"externalTable":null,"distributionInfo":null,"version":"847b96bf-95a3-4c71-a09c-b432c3d6df24" - } - ], - "nextLink":"https://contosoadla.datalakeanalytics.net/catalog/usql/databases/master/tables?api-version=2016-11-01&%24skiptoken=" - } - } - } -} \ No newline at end of file diff --git a/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/2016-11-01/examples/AdlCatalogListViewsInDatabase.json b/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/2016-11-01/examples/AdlCatalogListViewsInDatabase.json deleted file mode 100644 index dfdd65c68f45..000000000000 --- a/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/2016-11-01/examples/AdlCatalogListViewsInDatabase.json +++ /dev/null @@ -1,25 +0,0 @@ -{ - "parameters": { - "api-version": "2016-11-01", - "databaseName": "master", - "accountName": "contosoadla" - }, - "responses": { - "200": { - "body": { - "value":[ - { - "computeAccountName":"contosoadla", - "databaseName":"master", - "schemaName":"dbo", - "viewName":"catalog_item_8", - "definition":"CREATE VIEW master.dbo.catalog_item_8 AS SELECT * FROM (VALUES(1,2),(2,4)) AS T(a, b);", - "version":"776b9091-8916-4638-87f7-9c989a38da98" - - } - ], - "nextLink":"https://contosoadla.datalakeanalytics.net/catalog/usql/databases/master/views?api-version=2016-11-01&%24skiptoken=" - } - } - } -} \ No newline at end of file diff --git a/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/2016-11-01/examples/AdlJobCreate.json b/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/2016-11-01/examples/AdlJobCreate.json deleted file mode 100644 index f9e3acb7bd60..000000000000 --- a/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/2016-11-01/examples/AdlJobCreate.json +++ /dev/null @@ -1,52 +0,0 @@ -{ - "parameters": { - "api-version": "2016-11-01", - "jobIdentity": "9c498166-15d6-45f6-ac3a-b9518af0abf3", - "accountName": "contosoadla", - "parameters" :{ - "name": "TestJob", - "type": "USql", - "degreeOfParallelism": 1, - "priority": 1000, - "properties": { - "type": "USql", - "script": "DROP DATABASE IF EXISTS foo; CREATE DATABASE foo;" - } - } - }, - "responses": { - "200": { - "body": { - "jobId": "9c498166-15d6-45f6-ac3a-b9518af0abf3", - "name": "TestJob", - "type": "USql", - "submitter": "submitter@contoso.com", - "degreeOfParallelism": 1, - "priority": 1000, - "submitTime": "2017-02-08T11:31:07.6332831-08:00", - "state": "Compiling", - "result": "None", - "stateAuditRecords": [{ - "newState": "New", - "timeStamp": "2017-02-08T11:31:07.6332831-08:00", - "details": "userName:;submitMachine:N/A" - }], - "properties": { - "owner": "submitter@contoso.com", - "resources": [], - "runtimeVersion": "default", - "rootProcessNodeId": "00000000-0000-0000-0000-000000000000", - "algebraFilePath": "adl://contosoadla.azuredatalakestore.net/system/jobservice/jobs/Usql/2017/02/08/19/31/9c498166-15d6-45f6-ac3a-b9518af0abf3/algebra.xml", - "compileMode": "Semantic", - "errorSource": "Unknown", - "totalCompilationTime": "PT0S", - "totalPausedTime": "PT0S", - "totalQueuedTime": "PT0S", - "totalRunningTime": "PT0S", - "expirationTimeUtc": "0001-01-01T00:00:00Z", - "type": "USql" - } - } - } - } -} \ No newline at end of file diff --git a/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/2016-11-01/examples/AdlPipelineGet.json b/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/2016-11-01/examples/AdlPipelineGet.json deleted file mode 100644 index 774c1dbf3d82..000000000000 --- a/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/2016-11-01/examples/AdlPipelineGet.json +++ /dev/null @@ -1,32 +0,0 @@ -{ - "parameters": { - "api-version": "2016-11-01", - "pipelineIdentity": "076713da-9018-41ae-a3bd-9eab14e54d09", - "accountName": "contosoadla" - }, - "responses": { - "200": { - "body": { - "pipelineId": "076713da-9018-41ae-a3bd-9eab14e54d09", - "pipelineName": "Data processing pipeline", - "pipelineUri": "https://account123.contosopipelineservice.com/076713da-9018-41ae-a3bd-9eab14e54d09", - "numJobsFailed": 12, - "numJobsCanceled": 13, - "numJobsSucceeded": 14, - "auHoursFailed": 30.1, - "auHoursCanceled": 20.6, - "auHoursSucceeded": 100.0, - "lastSubmitTime": "2017-04-18T11:16:49.0748958-07:00", - "runs": [ - { - "runId": "67034c12-b250-468e-992d-39fb978bde2c", - "lastSubmitTime": "2017-04-18T11:16:49.0748958-07:00" - }], - "recurrences": [ - "2ba01f6c-562d-4246-90ff-0b8c2d10e346", - "da8dc3de-2fd8-4641-8968-40dbbf11e95f" - ] - } - } - } -} diff --git a/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/2016-11-01/examples/AdlPipelineList.json b/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/2016-11-01/examples/AdlPipelineList.json deleted file mode 100644 index 5a7a0bc79ee0..000000000000 --- a/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/2016-11-01/examples/AdlPipelineList.json +++ /dev/null @@ -1,25 +0,0 @@ -{ - "parameters": { - "api-version": "2016-11-01", - "accountName": "contosoadla" - }, - "responses": { - "200": { - "body": { - "value": [{ - "pipelineId": "076713da-9018-41ae-a3bd-9eab14e54d09", - "pipelineName": "Data processing pipeline", - "pipelineUri": "https://account123.contosopipelineservice.com/076713da-9018-41ae-a3bd-9eab14e54d09", - "numJobsFailed": 12, - "numJobsCanceled": 13, - "numJobsSucceeded": 14, - "auHoursFailed": 30.1, - "auHoursCanceled": 20.6, - "auHoursSucceeded": 100.0, - "lastSubmitTime": "2017-04-18T11:16:49.0748958-07:00" - }], - "nextLink": "https://contosoadla.datalakeanalytics.net/pipelines/?api-version=2016-11-01&%24skiptoken=" - } - } - } -} diff --git a/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/2016-11-01/examples/AdlRecurrenceGet.json b/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/2016-11-01/examples/AdlRecurrenceGet.json deleted file mode 100644 index d2ce1830927f..000000000000 --- a/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/2016-11-01/examples/AdlRecurrenceGet.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "parameters": { - "api-version": "2016-11-01", - "accountName": "contosoadla", - "recurrenceIdentity": "8b3e4d71-022d-4cf4-91af-703b954d7b95" - }, - "responses": { - "200": { - "body": { - "recurrenceId": "8b3e4d71-022d-4cf4-91af-703b954d7b95", - "recurrenceName": "My recurring job", - "numJobsFailed": 12, - "numJobsCanceled": 13, - "numJobsSucceeded": 14, - "auHoursFailed": 0.1, - "auHoursCanceled": 1.5, - "auHoursSucceeded": 40.4, - "lastSubmitTime": "2017-04-18T11:16:49.0748958-07:00" - } - } - } -} diff --git a/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/2016-11-01/examples/AdlRecurrenceList.json b/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/2016-11-01/examples/AdlRecurrenceList.json deleted file mode 100644 index 9097e2423d8d..000000000000 --- a/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/2016-11-01/examples/AdlRecurrenceList.json +++ /dev/null @@ -1,35 +0,0 @@ -{ - "parameters": { - "api-version": "2016-11-01", - "accountName": "contosoadla" - }, - "responses": { - "200": { - "body": { - "value": [{ - "recurrenceId": "8b3e4d71-022d-4cf4-91af-703b954d7b95", - "recurrenceName": "My recurring job", - "numJobsFailed": 12, - "numJobsCanceled": 13, - "numJobsSucceeded": 14, - "auHoursFailed": 0.1, - "auHoursCanceled": 1.5, - "auHoursSucceeded": 40.4, - "lastSubmitTime": "2017-04-18T11:16:49.0748958-07:00" - }, - { - "recurrenceId": "1854b4e4-0268-4401-acaa-3f1436a4d98b", - "recurrenceName": "Daily Contoso Process", - "numJobsFailed": 12, - "numJobsCanceled": 13, - "numJobsSucceeded": 14, - "auHoursFailed": 10.5, - "auHoursCanceled": 6.1, - "auHoursSucceeded": 1200.6, - "lastSubmitTime": "2017-04-18T11:16:49.0748958-07:00" - }], - "nextLink": "https://contosoadla.datalakeanalytics.net/recurrences/?api-version=2016-11-01&%24skiptoken=" - } - } - } -} diff --git a/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/2016-11-01/examples/Adla_Catalog_CreateCredential.json b/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/2016-11-01/examples/Adla_Catalog_CreateCredential.json new file mode 100644 index 000000000000..5f7a799e393c --- /dev/null +++ b/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/2016-11-01/examples/Adla_Catalog_CreateCredential.json @@ -0,0 +1,16 @@ +{ + "parameters": { + "api-version": "2016-11-01", + "databaseName": "master", + "credentialName": "test_credential_name", + "parameters": { + "password": "test_password", + "uri": "test_host:8000", + "userId": "test_user_id" + } + }, + "responses": { + "200": { + } + } +} diff --git a/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/2016-11-01/examples/Adla_Catalog_CreateSecret.json b/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/2016-11-01/examples/Adla_Catalog_CreateSecret.json new file mode 100644 index 000000000000..9c0c34df3333 --- /dev/null +++ b/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/2016-11-01/examples/Adla_Catalog_CreateSecret.json @@ -0,0 +1,15 @@ +{ + "parameters": { + "api-version": "2016-11-01", + "databaseName": "master", + "secretName": "test_secret_name", + "parameters": { + "password": "test_password", + "uri": "test_host:8000" + } + }, + "responses": { + "200": { + } + } +} diff --git a/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/2016-11-01/examples/Adla_Catalog_DeleteAllSecrets.json b/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/2016-11-01/examples/Adla_Catalog_DeleteAllSecrets.json new file mode 100644 index 000000000000..800ceb7b0eab --- /dev/null +++ b/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/2016-11-01/examples/Adla_Catalog_DeleteAllSecrets.json @@ -0,0 +1,10 @@ +{ + "parameters": { + "api-version": "2016-11-01", + "databaseName": "master" + }, + "responses": { + "200": { + } + } +} diff --git a/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/2016-11-01/examples/Adla_Catalog_DeleteCredential.json b/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/2016-11-01/examples/Adla_Catalog_DeleteCredential.json new file mode 100644 index 000000000000..f5d979cf931f --- /dev/null +++ b/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/2016-11-01/examples/Adla_Catalog_DeleteCredential.json @@ -0,0 +1,15 @@ +{ + "parameters": { + "api-version": "2016-11-01", + "databaseName": "master", + "credentialName": "test_credential_name", + "parameters": { + "password": "test_password" + }, + "cascade": false + }, + "responses": { + "200": { + } + } +} diff --git a/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/2016-11-01/examples/Adla_Catalog_DeleteSecret.json b/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/2016-11-01/examples/Adla_Catalog_DeleteSecret.json new file mode 100644 index 000000000000..c8b036e84758 --- /dev/null +++ b/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/2016-11-01/examples/Adla_Catalog_DeleteSecret.json @@ -0,0 +1,11 @@ +{ + "parameters": { + "api-version": "2016-11-01", + "databaseName": "master", + "secretName": "test_secret_name" + }, + "responses": { + "200": { + } + } +} diff --git a/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/2016-11-01/examples/Adla_Catalog_GetAssembly.json b/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/2016-11-01/examples/Adla_Catalog_GetAssembly.json new file mode 100644 index 000000000000..0b5e529a94ae --- /dev/null +++ b/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/2016-11-01/examples/Adla_Catalog_GetAssembly.json @@ -0,0 +1,36 @@ +{ + "parameters": { + "api-version": "2016-11-01", + "databaseName": "master", + "assemblyName": "test_assembly_name" + }, + "responses": { + "200": { + "body": { + "computeAccountName": "contosoadla", + "version": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", + "databaseName": "master", + "assemblyName": "test_assembly_name", + "clrName": "test_clr_name", + "isVisible": false, + "isUserDefined": false, + "files": [{ + "type": "Assembly", + "originalPath": "test_original_path", + "contentPath": "test_content_path" + }], + "dependencies": [{ + "entityId": { + "name": { + "firstPart": "test_first_part", + "secondPart": "test_second_part", + "thirdPart": "test_third_part", + "server": "test_server" + }, + "version":"34adfa4f-cedf-4dc0-ba29-b6d1a69ab345" + } + }] + } + } + } +} diff --git a/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/2016-11-01/examples/Adla_Catalog_GetCredential.json b/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/2016-11-01/examples/Adla_Catalog_GetCredential.json new file mode 100644 index 000000000000..699dccda4792 --- /dev/null +++ b/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/2016-11-01/examples/Adla_Catalog_GetCredential.json @@ -0,0 +1,16 @@ +{ + "parameters": { + "api-version": "2016-11-01", + "databaseName": "master", + "credentialName": "test_credential_name" + }, + "responses": { + "200": { + "body": { + "computeAccountName": "contosoadla", + "version": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", + "credentialName": "test_credential_name" + } + } + } +} diff --git a/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/2016-11-01/examples/Adla_Catalog_GetDatabase.json b/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/2016-11-01/examples/Adla_Catalog_GetDatabase.json new file mode 100644 index 000000000000..8db236962224 --- /dev/null +++ b/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/2016-11-01/examples/Adla_Catalog_GetDatabase.json @@ -0,0 +1,15 @@ +{ + "parameters": { + "api-version": "2016-11-01", + "databaseName": "master" + }, + "responses": { + "200": { + "body": { + "computeAccountName": "contosoadla", + "version": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", + "databaseName": "master" + } + } + } +} diff --git a/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/2016-11-01/examples/Adla_Catalog_GetExternalDataSource.json b/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/2016-11-01/examples/Adla_Catalog_GetExternalDataSource.json new file mode 100644 index 000000000000..96712f19b246 --- /dev/null +++ b/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/2016-11-01/examples/Adla_Catalog_GetExternalDataSource.json @@ -0,0 +1,22 @@ +{ + "parameters": { + "api-version": "2016-11-01", + "databaseName": "master", + "externalDataSourceName": "test_external_data_source_name" + }, + "responses": { + "200": { + "body": { + "computeAccountName": "contosoadla", + "version": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", + "databaseName": "master", + "externalDataSourceName": "test_external_data_source_name", + "provider": "test_provider", + "providerString": "test_provider_string", + "pushdownTypes": [ + "test_pushdown_type" + ] + } + } + } +} diff --git a/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/2016-11-01/examples/Adla_Catalog_GetPackage.json b/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/2016-11-01/examples/Adla_Catalog_GetPackage.json new file mode 100644 index 000000000000..6f81991217d6 --- /dev/null +++ b/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/2016-11-01/examples/Adla_Catalog_GetPackage.json @@ -0,0 +1,20 @@ +{ + "parameters": { + "api-version": "2016-11-01", + "databaseName": "master", + "schemaName": "dbo", + "packageName": "test_package_name" + }, + "responses": { + "200": { + "body": { + "computeAccountName": "contosoadla", + "version": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", + "databaseName": "master", + "schemaName": "dbo", + "packageName": "test_package_name", + "definition": "test_definition" + } + } + } +} diff --git a/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/2016-11-01/examples/Adla_Catalog_GetProcedure.json b/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/2016-11-01/examples/Adla_Catalog_GetProcedure.json new file mode 100644 index 000000000000..9d8c3c9a1017 --- /dev/null +++ b/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/2016-11-01/examples/Adla_Catalog_GetProcedure.json @@ -0,0 +1,20 @@ +{ + "parameters": { + "api-version": "2016-11-01", + "databaseName": "master", + "schemaName": "dbo", + "procedureName": "test_procedure_name" + }, + "responses": { + "200": { + "body": { + "computeAccountName": "contosoadla", + "version": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", + "databaseName": "master", + "schemaName": "dbo", + "procName": "test_proc_name", + "definition": "test_definition" + } + } + } +} diff --git a/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/2016-11-01/examples/Adla_Catalog_GetSchema.json b/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/2016-11-01/examples/Adla_Catalog_GetSchema.json new file mode 100644 index 000000000000..cc1d3613550c --- /dev/null +++ b/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/2016-11-01/examples/Adla_Catalog_GetSchema.json @@ -0,0 +1,17 @@ +{ + "parameters": { + "api-version": "2016-11-01", + "databaseName": "master", + "schemaName": "dbo" + }, + "responses": { + "200": { + "body": { + "computeAccountName": "contosoadla", + "version": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", + "databaseName": "master", + "schemaName": "dbo" + } + } + } +} diff --git a/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/2016-11-01/examples/Adla_Catalog_GetSecret.json b/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/2016-11-01/examples/Adla_Catalog_GetSecret.json new file mode 100644 index 000000000000..21b4b0a26c2c --- /dev/null +++ b/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/2016-11-01/examples/Adla_Catalog_GetSecret.json @@ -0,0 +1,20 @@ +{ + "parameters": { + "api-version": "2016-11-01", + "databaseName": "master", + "secretName": "test_secret_name" + }, + "responses": { + "200": { + "body": { + "computeAccountName": "contosoadla", + "version": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", + "databaseName": "master", + "secretName": "test_secret_name", + "creationTime": "2017-04-14T13:21:56.6819037-07:00", + "uri": "test_host:8000", + "password": "test_password" + } + } + } +} diff --git a/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/2016-11-01/examples/Adla_Catalog_GetTable.json b/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/2016-11-01/examples/Adla_Catalog_GetTable.json new file mode 100644 index 000000000000..0e10a9940d34 --- /dev/null +++ b/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/2016-11-01/examples/Adla_Catalog_GetTable.json @@ -0,0 +1,76 @@ +{ + "parameters": { + "api-version": "2016-11-01", + "databaseName": "master", + "schemaName": "dbo", + "tableName": "test_table_name" + }, + "responses": { + "200": { + "body": { + "computeAccountName": "contosoadla", + "version": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", + "databaseName": "master", + "schemaName": "dbo", + "tableName": "test_table_name", + "columnList": [{ + "name": "test_column_name", + "type": "test_type" + }], + "indexList": [{ + "name": "test_index_name", + "indexKeys": [{ + "name": "test_index_key", + "descending": false + }], + "columns": [ + "test_column" + ], + "distributionInfo": { + "type": 1, + "keys": [{ + "name": "test_key", + "descending": false + }], + "count": 1, + "dynamicCount": 1 + }, + "partitionFunction": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab346", + "partitionKeyList": [ + "test_partition_key" + ], + "streamNames": [ + "test_stream_name" + ], + "isColumnstore": false, + "indexId": 1, + "isUnique": false + }], + "partitionKeyList":[ + "test_partition_key" + ], + "externalTable": { + "tableName":"test_table_name", + "dataSource": { + "name": { + "firstPart": "test_first_part", + "secondPart": "test_second_part", + "thirdPart": "test_third_part", + "server": "test_server" + }, + "version": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345" + } + }, + "distributionInfo": { + "type": 1, + "keys": [{ + "name": "test_key", + "descending": false + }], + "count": 1, + "dynamicCount": 1 + } + } + } + } +} diff --git a/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/2016-11-01/examples/Adla_Catalog_GetTablePartition.json b/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/2016-11-01/examples/Adla_Catalog_GetTablePartition.json new file mode 100644 index 000000000000..3706309c1876 --- /dev/null +++ b/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/2016-11-01/examples/Adla_Catalog_GetTablePartition.json @@ -0,0 +1,27 @@ +{ + "parameters": { + "api-version": "2016-11-01", + "databaseName": "master", + "schemaName": "dbo", + "tableName": "test_table_name", + "partitionName": "test_partition_name" + }, + "responses": { + "200": { + "body": { + "computeAccountName": "contosoadla", + "version": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", + "databaseName": "master", + "schemaName": "dbo", + "partitionName": "test_partition_name", + "parentName": "test_parent_name", + "indexId": 1, + "label": [ + "test_label_1", + "test_label_2" + ], + "createDate": "2017-04-14T13:21:56.6819037-07:00" + } + } + } +} diff --git a/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/2016-11-01/examples/Adla_Catalog_GetTableStatistic.json b/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/2016-11-01/examples/Adla_Catalog_GetTableStatistic.json new file mode 100644 index 000000000000..81fdab970b35 --- /dev/null +++ b/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/2016-11-01/examples/Adla_Catalog_GetTableStatistic.json @@ -0,0 +1,33 @@ +{ + "parameters": { + "api-version": "2016-11-01", + "databaseName": "master", + "schemaName": "dbo", + "tableName": "test_table_name", + "statisticsName": "test_statistics_name" + }, + "responses": { + "200": { + "body": { + "computeAccountName": "contosoadla", + "version": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", + "databaseName": "master", + "schemaName": "dbo", + "tableName": "test_table_name", + "statisticsName": "test_statistics_name", + "userStatName": "test_user_stat_name", + "statDataPath": "test_stat_data_path", + "createTime": "2017-04-14T13:21:56.6819037-07:00", + "updateTime": "2017-04-14T13:21:56.6819037-07:00", + "isUserCreated": false, + "isAutoCreated": false, + "hasFilter": false, + "filterDefinition": "test_filter_definition", + "colNames": [ + "test_column_name_1", + "test_column_name_2" + ] + } + } + } +} diff --git a/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/2016-11-01/examples/Adla_Catalog_GetTableType.json b/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/2016-11-01/examples/Adla_Catalog_GetTableType.json new file mode 100644 index 000000000000..282cdd217693 --- /dev/null +++ b/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/2016-11-01/examples/Adla_Catalog_GetTableType.json @@ -0,0 +1,35 @@ +{ + "parameters": { + "api-version": "2016-11-01", + "databaseName": "master", + "schemaName": "dbo", + "tableTypeName": "test_table_type_name" + }, + "responses": { + "200": { + "body": { + "computeAccountName": "contosoadla", + "version": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", + "databaseName": "master", + "schemaName": "dbo", + "typeName": "test_type_name", + "typeFamily": "test_type_family", + "cSharpName": "test_csharp_name", + "fullCSharpName": "test_full_csharp_name", + "systemTypeId": 1, + "userTypeId": 2, + "schemaId": 3, + "principalId": 4, + "isNullable": false, + "isUserDefined": false, + "isAssemblyType": false, + "isTableType": false, + "isComplexType": false, + "columns":[{ + "name": "test_column_name", + "type": "test_column_type" + }] + } + } + } +} diff --git a/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/2016-11-01/examples/Adla_Catalog_GetTableValuedFunction.json b/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/2016-11-01/examples/Adla_Catalog_GetTableValuedFunction.json new file mode 100644 index 000000000000..08b276990972 --- /dev/null +++ b/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/2016-11-01/examples/Adla_Catalog_GetTableValuedFunction.json @@ -0,0 +1,20 @@ +{ + "parameters": { + "api-version": "2016-11-01", + "databaseName": "master", + "schemaName": "dbo", + "tableValuedFunctionName": "test_table_valued_function_name" + }, + "responses": { + "200": { + "body": { + "computeAccountName": "contosoadla", + "version": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", + "databaseName": "master", + "schemaName": "dbo", + "tvfName": "test_tvf_name", + "definition": "test_definition" + } + } + } +} diff --git a/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/2016-11-01/examples/Adla_Catalog_GetView.json b/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/2016-11-01/examples/Adla_Catalog_GetView.json new file mode 100644 index 000000000000..6ea6a132983c --- /dev/null +++ b/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/2016-11-01/examples/Adla_Catalog_GetView.json @@ -0,0 +1,20 @@ +{ + "parameters": { + "api-version": "2016-11-01", + "databaseName": "master", + "schemaName": "dbo", + "viewName": "test_view_name" + }, + "responses": { + "200": { + "body": { + "computeAccountName": "contosoadla", + "version": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", + "databaseName": "master", + "schemaName": "dbo", + "viewName": "test_view_name", + "definition": "test_definition" + } + } + } +} diff --git a/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/2016-11-01/examples/Adla_Catalog_ListAssemblies.json b/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/2016-11-01/examples/Adla_Catalog_ListAssemblies.json new file mode 100644 index 000000000000..2c2b8157636f --- /dev/null +++ b/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/2016-11-01/examples/Adla_Catalog_ListAssemblies.json @@ -0,0 +1,26 @@ +{ + "parameters": { + "api-version": "2016-11-01", + "databaseName": "master", + "$filter": "test_filter", + "$top": 1, + "$skip": 1, + "$select": "test_select", + "$orderby": "test_orderby", + "$count": false + }, + "responses": { + "200": { + "body": { + "nextLink":"https://contosoadla.datalakeanalytics.net/catalog/usql/databases/master/schema/dbo/statistics?api-version=2016-11-01&%24skiptoken=", + "value": [{ + "computeAccountName": "contosoadla", + "version": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", + "databaseName": "master", + "assemblyClrName": "test_assembly_clr_name", + "clrName": "test_clr_name" + }] + } + } + } +} diff --git a/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/2016-11-01/examples/Adla_Catalog_ListCredentials.json b/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/2016-11-01/examples/Adla_Catalog_ListCredentials.json new file mode 100644 index 000000000000..3e6f3f286aec --- /dev/null +++ b/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/2016-11-01/examples/Adla_Catalog_ListCredentials.json @@ -0,0 +1,24 @@ +{ + "parameters": { + "api-version": "2016-11-01", + "databaseName": "master", + "$filter": "test_filter", + "$top": 1, + "$skip": 1, + "$select": "test_select", + "$orderby": "test_orderby", + "$count": false + }, + "responses": { + "200": { + "body": { + "nextLink":"https://contosoadla.datalakeanalytics.net/catalog/usql/databases/master/schema/dbo/statistics?api-version=2016-11-01&%24skiptoken=", + "value": [{ + "computeAccountName": "contosoadla", + "version": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", + "credentialName": "test_credential_name" + }] + } + } + } +} diff --git a/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/2016-11-01/examples/Adla_Catalog_ListDatabases.json b/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/2016-11-01/examples/Adla_Catalog_ListDatabases.json new file mode 100644 index 000000000000..ec44bcd05198 --- /dev/null +++ b/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/2016-11-01/examples/Adla_Catalog_ListDatabases.json @@ -0,0 +1,23 @@ +{ + "parameters": { + "api-version": "2016-11-01", + "$filter": "test_filter", + "$top": 1, + "$skip": 1, + "$select": "test_select", + "$orderby": "test_orderby", + "$count": false + }, + "responses": { + "200": { + "body": { + "nextLink":"https://contosoadla.datalakeanalytics.net/catalog/usql/databases/master/schema/dbo/statistics?api-version=2016-11-01&%24skiptoken=", + "value": [{ + "computeAccountName": "contosoadla", + "version": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", + "databaseName": "master" + }] + } + } + } +} diff --git a/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/2016-11-01/examples/Adla_Catalog_ListExternalDataSources.json b/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/2016-11-01/examples/Adla_Catalog_ListExternalDataSources.json new file mode 100644 index 000000000000..1cec59184984 --- /dev/null +++ b/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/2016-11-01/examples/Adla_Catalog_ListExternalDataSources.json @@ -0,0 +1,30 @@ +{ + "parameters": { + "api-version": "2016-11-01", + "databaseName": "master", + "$filter": "test_filter", + "$top": 1, + "$skip": 1, + "$select": "test_select", + "$orderby": "test_orderby", + "$count": false + }, + "responses": { + "200": { + "body": { + "nextLink":"https://contosoadla.datalakeanalytics.net/catalog/usql/databases/master/schema/dbo/statistics?api-version=2016-11-01&%24skiptoken=", + "value": [{ + "computeAccountName": "contosoadla", + "version": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", + "databaseName": "master", + "externalDataSourceName": "test_external_data_source_name", + "provider": "test_provider", + "providerString": "test_provider_string", + "pushdownTypes": [ + "test_pushdown_type" + ] + }] + } + } + } +} diff --git a/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/2016-11-01/examples/Adla_Catalog_ListPackages.json b/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/2016-11-01/examples/Adla_Catalog_ListPackages.json new file mode 100644 index 000000000000..15ecaf825816 --- /dev/null +++ b/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/2016-11-01/examples/Adla_Catalog_ListPackages.json @@ -0,0 +1,28 @@ +{ + "parameters": { + "api-version": "2016-11-01", + "databaseName": "master", + "schemaName": "dbo", + "$filter": "test_filter", + "$top": 1, + "$skip": 1, + "$select": "test_select", + "$orderby": "test_orderby", + "$count": false + }, + "responses": { + "200": { + "body": { + "nextLink":"https://contosoadla.datalakeanalytics.net/catalog/usql/databases/master/schema/dbo/statistics?api-version=2016-11-01&%24skiptoken=", + "value":[{ + "computeAccountName": "contosoadla", + "version": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", + "databaseName": "master", + "schemaName": "dbo", + "packageName": "test_package_name", + "definition": "test_definition" + }] + } + } + } +} diff --git a/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/2016-11-01/examples/Adla_Catalog_ListProcedures.json b/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/2016-11-01/examples/Adla_Catalog_ListProcedures.json new file mode 100644 index 000000000000..84b235cb20c2 --- /dev/null +++ b/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/2016-11-01/examples/Adla_Catalog_ListProcedures.json @@ -0,0 +1,28 @@ +{ + "parameters": { + "api-version": "2016-11-01", + "databaseName": "master", + "schemaName": "dbo", + "$filter": "test_filter", + "$top": 1, + "$skip": 1, + "$select": "test_select", + "$orderby": "test_orderby", + "$count": false + }, + "responses": { + "200": { + "body": { + "nextLink":"https://contosoadla.datalakeanalytics.net/catalog/usql/databases/master/schema/dbo/statistics?api-version=2016-11-01&%24skiptoken=", + "value": [{ + "computeAccountName": "contosoadla", + "version": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", + "databaseName": "master", + "schemaName": "dbo", + "procName": "test_proc_name", + "definition": "test_definition" + }] + } + } + } +} diff --git a/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/2016-11-01/examples/Adla_Catalog_ListSchemas.json b/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/2016-11-01/examples/Adla_Catalog_ListSchemas.json new file mode 100644 index 000000000000..ce7a4eb41ee4 --- /dev/null +++ b/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/2016-11-01/examples/Adla_Catalog_ListSchemas.json @@ -0,0 +1,25 @@ +{ + "parameters": { + "api-version": "2016-11-01", + "databaseName": "master", + "$filter": "test_filter", + "$top": 1, + "$skip": 1, + "$select": "test_select", + "$orderby": "test_orderby", + "$count": false + }, + "responses": { + "200": { + "body": { + "nextLink":"https://contosoadla.datalakeanalytics.net/catalog/usql/databases/master/schema/dbo/statistics?api-version=2016-11-01&%24skiptoken=", + "value": [{ + "computeAccountName": "contosoadla", + "version": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", + "databaseName": "master", + "schemaName": "dbo" + }] + } + } + } +} diff --git a/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/2016-11-01/examples/Adla_Catalog_ListTablePartitions.json b/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/2016-11-01/examples/Adla_Catalog_ListTablePartitions.json new file mode 100644 index 000000000000..0fe70d134cbb --- /dev/null +++ b/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/2016-11-01/examples/Adla_Catalog_ListTablePartitions.json @@ -0,0 +1,35 @@ +{ + "parameters": { + "api-version": "2016-11-01", + "databaseName": "master", + "schemaName": "dbo", + "tableName": "test_table_name", + "$filter": "test_filter", + "$top": 1, + "$skip": 1, + "$select": "test_select", + "$orderby": "test_orderby", + "$count": false + }, + "responses": { + "200": { + "body": { + "nextLink":"https://contosoadla.datalakeanalytics.net/catalog/usql/databases/master/schema/dbo/statistics?api-version=2016-11-01&%24skiptoken=", + "value": [{ + "computeAccountName": "contosoadla", + "version": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", + "databaseName": "master", + "schemaName": "dbo", + "partitionName": "test_partition_name", + "parentName": "test_parent_name", + "indexId": 1, + "label": [ + "test_label_1", + "test_label_2" + ], + "createDate": "2017-04-14T13:21:56.6819037-07:00" + }] + } + } + } +} diff --git a/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/2016-11-01/examples/Adla_Catalog_ListTableStatistics.json b/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/2016-11-01/examples/Adla_Catalog_ListTableStatistics.json new file mode 100644 index 000000000000..e33c7db34ad6 --- /dev/null +++ b/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/2016-11-01/examples/Adla_Catalog_ListTableStatistics.json @@ -0,0 +1,41 @@ +{ + "parameters": { + "api-version": "2016-11-01", + "databaseName": "master", + "schemaName": "dbo", + "tableName": "test_view_name", + "$filter": "test_filter", + "$top": 1, + "$skip": 1, + "$select": "test_select", + "$orderby": "test_orderby", + "$count": false + }, + "responses": { + "200": { + "body": { + "nextLink":"https://contosoadla.datalakeanalytics.net/catalog/usql/databases/master/schema/dbo/statistics?api-version=2016-11-01&%24skiptoken=", + "value":[{ + "computeAccountName": "contosoadla", + "version": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", + "databaseName": "master", + "schemaName": "dbo", + "tableName": "test_table_name", + "statisticsName": "test_statistics_name", + "userStatName": "test_user_stat_name", + "statDataPath": "test_stat_data_path", + "createTime": "2017-04-14T13:21:56.6819037-07:00", + "updateTime": "2017-04-14T13:21:56.6819037-07:00", + "isUserCreated": false, + "isAutoCreated": false, + "hasFilter": false, + "filterDefinition": "test_filter_definition", + "colNames": [ + "test_column_name_1", + "test_column_name_2" + ] + }] + } + } + } +} diff --git a/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/2016-11-01/examples/Adla_Catalog_ListTableStatisticsByDatabase.json b/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/2016-11-01/examples/Adla_Catalog_ListTableStatisticsByDatabase.json new file mode 100644 index 000000000000..08f3395f5c8a --- /dev/null +++ b/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/2016-11-01/examples/Adla_Catalog_ListTableStatisticsByDatabase.json @@ -0,0 +1,39 @@ +{ + "parameters": { + "api-version": "2016-11-01", + "databaseName": "master", + "$filter": "test_filter", + "$top": 1, + "$skip": 1, + "$select": "test_select", + "$orderby": "test_orderby", + "$count": false + }, + "responses": { + "200": { + "body": { + "nextLink":"https://contosoadla.datalakeanalytics.net/catalog/usql/databases/master/schema/dbo/statistics?api-version=2016-11-01&%24skiptoken=", + "value":[{ + "computeAccountName": "contosoadla", + "version": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", + "databaseName": "master", + "schemaName": "dbo", + "tableName": "test_table_name", + "statisticsName": "test_statistics_name", + "userStatName": "test_user_stat_name", + "statDataPath": "test_stat_data_path", + "createTime": "2017-04-14T13:21:56.6819037-07:00", + "updateTime": "2017-04-14T13:21:56.6819037-07:00", + "isUserCreated": false, + "isAutoCreated": false, + "hasFilter": false, + "filterDefinition": "test_filter_definition", + "colNames": [ + "test_column_name_1", + "test_column_name_2" + ] + }] + } + } + } +} diff --git a/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/2016-11-01/examples/Adla_Catalog_ListTableStatisticsByDatabaseAndSchema.json b/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/2016-11-01/examples/Adla_Catalog_ListTableStatisticsByDatabaseAndSchema.json new file mode 100644 index 000000000000..fec32cf39592 --- /dev/null +++ b/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/2016-11-01/examples/Adla_Catalog_ListTableStatisticsByDatabaseAndSchema.json @@ -0,0 +1,40 @@ +{ + "parameters": { + "api-version": "2016-11-01", + "databaseName": "master", + "schemaName": "dbo", + "$filter": "test_filter", + "$top": 1, + "$skip": 1, + "$select": "test_select", + "$orderby": "test_orderby", + "$count": false + }, + "responses": { + "200": { + "body": { + "nextLink":"https://contosoadla.datalakeanalytics.net/catalog/usql/databases/master/schema/dbo/statistics?api-version=2016-11-01&%24skiptoken=", + "value":[{ + "computeAccountName": "contosoadla", + "version": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", + "databaseName": "master", + "schemaName": "dbo", + "tableName": "test_table_name", + "statisticsName": "test_statistics_name", + "userStatName": "test_user_stat_name", + "statDataPath": "test_stat_data_path", + "createTime": "2017-04-14T13:21:56.6819037-07:00", + "updateTime": "2017-04-14T13:21:56.6819037-07:00", + "isUserCreated": false, + "isAutoCreated": false, + "hasFilter": false, + "filterDefinition": "test_filter_definition", + "colNames": [ + "test_column_name_1", + "test_column_name_2" + ] + }] + } + } + } +} diff --git a/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/2016-11-01/examples/Adla_Catalog_ListTableTypes.json b/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/2016-11-01/examples/Adla_Catalog_ListTableTypes.json new file mode 100644 index 000000000000..4356b14e7dae --- /dev/null +++ b/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/2016-11-01/examples/Adla_Catalog_ListTableTypes.json @@ -0,0 +1,43 @@ +{ + "parameters": { + "api-version": "2016-11-01", + "databaseName": "master", + "schemaName": "dbo", + "$filter": "test_filter", + "$top": 1, + "$skip": 1, + "$select": "test_select", + "$orderby": "test_orderby", + "$count": false + }, + "responses": { + "200": { + "body": { + "nextLink":"https://contosoadla.datalakeanalytics.net/catalog/usql/databases/master/schema/dbo/statistics?api-version=2016-11-01&%24skiptoken=", + "value":[{ + "computeAccountName": "contosoadla", + "version": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", + "databaseName": "master", + "schemaName": "dbo", + "typeName": "test_type_name", + "typeFamily": "test_type_family", + "cSharpName": "test_csharp_name", + "fullCSharpName": "test_full_csharp_name", + "systemTypeId": 1, + "userTypeId": 2, + "schemaId": 3, + "principalId": 4, + "isNullable": false, + "isUserDefined": false, + "isAssemblyType": false, + "isTableType": false, + "isComplexType": false, + "columns":[{ + "name": "test_column_name", + "type": "test_column_type" + }] + }] + } + } + } +} diff --git a/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/2016-11-01/examples/Adla_Catalog_ListTableValuedFunctions.json b/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/2016-11-01/examples/Adla_Catalog_ListTableValuedFunctions.json new file mode 100644 index 000000000000..96dc917e99d2 --- /dev/null +++ b/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/2016-11-01/examples/Adla_Catalog_ListTableValuedFunctions.json @@ -0,0 +1,28 @@ +{ + "parameters": { + "api-version": "2016-11-01", + "databaseName": "master", + "schemaName": "dbo", + "$filter": "test_filter", + "$top": 1, + "$skip": 1, + "$select": "test_select", + "$orderby": "test_orderby", + "$count": false + }, + "responses": { + "200": { + "body": { + "nextLink":"https://contosoadla.datalakeanalytics.net/catalog/usql/databases/master/schema/dbo/statistics?api-version=2016-11-01&%24skiptoken=", + "value": [{ + "computeAccountName": "contosoadla", + "version": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", + "databaseName": "master", + "schemaName": "dbo", + "tvfName": "test_tvf_name", + "definition": "test_definition" + }] + } + } + } +} diff --git a/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/2016-11-01/examples/Adla_Catalog_ListTableValuedFunctionsByDatabase.json b/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/2016-11-01/examples/Adla_Catalog_ListTableValuedFunctionsByDatabase.json new file mode 100644 index 000000000000..45a63af60335 --- /dev/null +++ b/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/2016-11-01/examples/Adla_Catalog_ListTableValuedFunctionsByDatabase.json @@ -0,0 +1,27 @@ +{ + "parameters": { + "api-version": "2016-11-01", + "databaseName": "master", + "$filter": "test_filter", + "$top": 1, + "$skip": 1, + "$select": "test_select", + "$orderby": "test_orderby", + "$count": false + }, + "responses": { + "200": { + "body": { + "nextLink":"https://contosoadla.datalakeanalytics.net/catalog/usql/databases/master/schema/dbo/statistics?api-version=2016-11-01&%24skiptoken=", + "value": [{ + "computeAccountName": "contosoadla", + "version": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", + "databaseName": "master", + "schemaName": "dbo", + "tvfName": "test_tvf_name", + "definition": "test_definition" + }] + } + } + } +} diff --git a/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/2016-11-01/examples/Adla_Catalog_ListTables.json b/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/2016-11-01/examples/Adla_Catalog_ListTables.json new file mode 100644 index 000000000000..3cd051c77802 --- /dev/null +++ b/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/2016-11-01/examples/Adla_Catalog_ListTables.json @@ -0,0 +1,85 @@ +{ + "parameters": { + "api-version": "2016-11-01", + "databaseName": "master", + "schemaName": "dbo", + "$filter": "test_filter", + "$top": 1, + "$skip": 1, + "$select": "test_select", + "$orderby": "test_orderby", + "$count": false, + "basic": false + }, + "responses": { + "200": { + "body": { + "nextLink":"https://contosoadla.datalakeanalytics.net/catalog/usql/databases/master/schema/dbo/statistics?api-version=2016-11-01&%24skiptoken=", + "value": [{ + "computeAccountName": "contosoadla", + "version": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", + "databaseName": "master", + "schemaName": "dbo", + "tableName": "test_table_name", + "columnList": [{ + "name": "test_column_name", + "type": "test_type" + }], + "indexList": [{ + "name": "test_index_name", + "indexKeys": [{ + "name": "test_index_key", + "descending": false + }], + "columns": [ + "test_column" + ], + "distributionInfo": { + "type": 1, + "keys": [{ + "name": "test_key", + "descending": false + }], + "count": 1, + "dynamicCount": 1 + }, + "partitionFunction": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab346", + "partitionKeyList": [ + "test_partition_key" + ], + "streamNames": [ + "test_stream_name" + ], + "isColumnstore": false, + "indexId": 1, + "isUnique": false + }], + "partitionKeyList":[ + "test_partition_key" + ], + "externalTable": { + "tableName":"test_table_name", + "dataSource": { + "name": { + "firstPart": "test_first_part", + "secondPart": "test_second_part", + "thirdPart": "test_third_part", + "server": "test_server" + }, + "version": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345" + } + }, + "distributionInfo": { + "type": 1, + "keys": [{ + "name": "test_key", + "descending": false + }], + "count": 1, + "dynamicCount": 1 + } + }] + } + } + } +} diff --git a/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/2016-11-01/examples/Adla_Catalog_ListTablesByDatabase.json b/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/2016-11-01/examples/Adla_Catalog_ListTablesByDatabase.json new file mode 100644 index 000000000000..6a6c22f86962 --- /dev/null +++ b/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/2016-11-01/examples/Adla_Catalog_ListTablesByDatabase.json @@ -0,0 +1,84 @@ +{ + "parameters": { + "api-version": "2016-11-01", + "databaseName": "master", + "$filter": "test_filter", + "$top": 1, + "$skip": 1, + "$select": "test_select", + "$orderby": "test_orderby", + "$count": false, + "basic": false + }, + "responses": { + "200": { + "body": { + "nextLink":"https://contosoadla.datalakeanalytics.net/catalog/usql/databases/master/schema/dbo/statistics?api-version=2016-11-01&%24skiptoken=", + "value":[{ + "computeAccountName": "contosoadla", + "version": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", + "databaseName": "master", + "schemaName": "dbo", + "tableName": "test_table_name", + "columnList": [{ + "name": "test_column_name", + "type": "test_type" + }], + "indexList": [{ + "name": "test_index_name", + "indexKeys": [{ + "name": "test_index_key", + "descending": false + }], + "columns": [ + "test_column" + ], + "distributionInfo": { + "type": 1, + "keys": [{ + "name": "test_key", + "descending": false + }], + "count": 1, + "dynamicCount": 1 + }, + "partitionFunction": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab346", + "partitionKeyList": [ + "test_partition_key" + ], + "streamNames": [ + "test_stream_name" + ], + "isColumnstore": false, + "indexId": 1, + "isUnique": false + }], + "partitionKeyList":[ + "test_partition_key" + ], + "externalTable": { + "tableName":"test_table_name", + "dataSource": { + "name": { + "firstPart": "test_first_part", + "secondPart": "test_second_part", + "thirdPart": "test_third_part", + "server": "test_server" + }, + "version": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345" + } + }, + "distributionInfo": { + "type": 1, + "keys": [{ + "name": "test_key", + "descending": false + }], + "count": 1, + "dynamicCount": 1 + } + }] + } + } + } +} diff --git a/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/2016-11-01/examples/Adla_Catalog_ListTypes.json b/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/2016-11-01/examples/Adla_Catalog_ListTypes.json new file mode 100644 index 000000000000..9a154140aaf0 --- /dev/null +++ b/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/2016-11-01/examples/Adla_Catalog_ListTypes.json @@ -0,0 +1,39 @@ +{ + "parameters": { + "api-version": "2016-11-01", + "databaseName": "master", + "schemaName": "dbo", + "$filter": "test_filter", + "$top": 1, + "$skip": 1, + "$select": "test_select", + "$orderby": "test_orderby", + "$count": false + }, + "responses": { + "200": { + "body": { + "nextLink":"https://contosoadla.datalakeanalytics.net/catalog/usql/databases/master/schema/dbo/statistics?api-version=2016-11-01&%24skiptoken=", + "value": [{ + "computeAccountName": "contosoadla", + "version": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", + "databaseName": "master", + "schemaName": "dbo", + "typeName": "test_type_name", + "typeFamily": "test_type_family", + "cSharpName": "test_csharp_name", + "fullCSharpName": "test_full_csharp_name", + "systemTypeId": 1, + "userTypeId": 2, + "schemaId": 3, + "principalId": 4, + "isNullable": false, + "isUserDefined": false, + "isAssemblyType": false, + "isTableType": false, + "isComplexType": false + }] + } + } + } +} diff --git a/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/2016-11-01/examples/Adla_Catalog_ListViews.json b/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/2016-11-01/examples/Adla_Catalog_ListViews.json new file mode 100644 index 000000000000..b16f427f3c13 --- /dev/null +++ b/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/2016-11-01/examples/Adla_Catalog_ListViews.json @@ -0,0 +1,28 @@ +{ + "parameters": { + "api-version": "2016-11-01", + "databaseName": "master", + "schemaName": "dbo", + "$filter": "test_filter", + "$top": 1, + "$skip": 1, + "$select": "test_select", + "$orderby": "test_orderby", + "$count": false + }, + "responses": { + "200": { + "body": { + "nextLink":"https://contosoadla.datalakeanalytics.net/catalog/usql/databases/master/schema/dbo/statistics?api-version=2016-11-01&%24skiptoken=", + "value":[{ + "computeAccountName": "contosoadla", + "version": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", + "databaseName": "master", + "schemaName": "dbo", + "viewName": "test_view_name", + "definition": "test_definition" + }] + } + } + } +} diff --git a/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/2016-11-01/examples/Adla_Catalog_ListViewsByDatabase.json b/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/2016-11-01/examples/Adla_Catalog_ListViewsByDatabase.json new file mode 100644 index 000000000000..7f2ddb2a2499 --- /dev/null +++ b/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/2016-11-01/examples/Adla_Catalog_ListViewsByDatabase.json @@ -0,0 +1,27 @@ +{ + "parameters": { + "api-version": "2016-11-01", + "databaseName": "master", + "$filter": "test_filter", + "$top": 1, + "$skip": 1, + "$select": "test_select", + "$orderby": "test_orderby", + "$count": false + }, + "responses": { + "200": { + "body": { + "nextLink":"https://contosoadla.datalakeanalytics.net/catalog/usql/databases/master/schema/dbo/statistics?api-version=2016-11-01&%24skiptoken=", + "value":[{ + "computeAccountName": "contosoadla", + "version": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", + "databaseName": "master", + "schemaName": "dbo", + "viewName": "test_view_name", + "definition": "test_definition" + }] + } + } + } +} diff --git a/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/2016-11-01/examples/Adla_Catalog_UpdateCredential.json b/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/2016-11-01/examples/Adla_Catalog_UpdateCredential.json new file mode 100644 index 000000000000..50aac3065f5e --- /dev/null +++ b/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/2016-11-01/examples/Adla_Catalog_UpdateCredential.json @@ -0,0 +1,17 @@ +{ + "parameters": { + "api-version": "2016-11-01", + "databaseName": "master", + "credentialName": "test_credential_name", + "parameters": { + "password": "test_password", + "newPassword": "test_new_password", + "uri": "test_host:8000", + "userId": "test_user_id" + } + }, + "responses": { + "200": { + } + } +} diff --git a/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/2016-11-01/examples/Adla_Catalog_UpdateSecret.json b/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/2016-11-01/examples/Adla_Catalog_UpdateSecret.json new file mode 100644 index 000000000000..9c0c34df3333 --- /dev/null +++ b/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/2016-11-01/examples/Adla_Catalog_UpdateSecret.json @@ -0,0 +1,15 @@ +{ + "parameters": { + "api-version": "2016-11-01", + "databaseName": "master", + "secretName": "test_secret_name", + "parameters": { + "password": "test_password", + "uri": "test_host:8000" + } + }, + "responses": { + "200": { + } + } +} diff --git a/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/2016-11-01/examples/Adla_Job_Build.json b/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/2016-11-01/examples/Adla_Job_Build.json new file mode 100644 index 000000000000..cd340580bafd --- /dev/null +++ b/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/2016-11-01/examples/Adla_Job_Build.json @@ -0,0 +1,139 @@ +{ + "parameters": { + "api-version": "2016-11-01", + "parameters": { + "jobId": "076713da-9018-41ae-a3bd-9eab14e54d09", + "name": "test_name", + "type": "USql", + "submitter": "test_submitter", + "errorMessage": [{ + "description": "test_description", + "details": "test_details", + "endOffset": 1, + "errorId": "test_error_id", + "filePath": "adl://contosoadla.azuredatalakestore.net/system/jobservice/jobs/Usql/2016/03/13/17/18/5fe51957-93bc-4de0-8ddc-c5a4753b068b/test_file.txt", + "helpLink": "https://azure.microsoft.com/en-us/blog/introducing-azure-data-lake/", + "internalDiagnostics": "test_internal_diagnostics", + "lineNumber": 1, + "message": "test_message", + "resolution": "test_resolution", + "innerError": { + "diagnosticCode": 1, + "severity": "Warning", + "details": "test_details", + "component": "test_component", + "errorId": "test_error_id", + "helpLink": "https://azure.microsoft.com/en-us/blog/introducing-azure-data-lake/", + "internalDiagnostics": "test_internal_diagnostics", + "message": "test_message", + "resolution": "test_resolution", + "source": "SYSTEM", + "description": "test_description" + }, + "severity": "Warning", + "source": "SYSTEM", + "startOffset": 1 + }], + "degreeOfParallelism": 1, + "priority": 1, + "submitTime": "2017-04-18T11:16:49.0748958-07:00", + "startTime": "2017-04-18T11:16:49.0748958-07:00", + "endTime": "2017-04-18T11:16:49.0748958-07:00", + "state": "Accepted", + "result": "Succeeded", + "logFolder": "adl://contosoadla.azuredatalakestore.net/system/jobservice/jobs/Usql/2016/03/13/17/18/5fe51957-93bc-4de0-8ddc-c5a4753b068b/logs/", + "logFilePatterns": [ + "test_log_file_pattern_1", + "test_log_file_pattern_2" + ], + "stateAuditRecords": [{ + "newState": "test_new_state", + "timeStamp": "2017-04-18T11:16:49.0748958-07:00", + "requestedByUser": "test_requested_by_user", + "details": "test_details" + }], + "properties": { + "runtimeVersion": "test_runtime_version", + "script": "test_script", + "type": "Hive" + }, + "related": { + "pipelineId": "076713da-9018-41ae-a3bd-9eab14e54d09", + "pipelineName": "test_pipeline_name", + "pipelineUri": "https://account123.contosopipelineservice.com/076713da-9018-41ae-a3bd-9eab14e54d09", + "runId": "67034c12-b250-468e-992d-39fb978bde2c", + "recurrenceId": "67034c12-b250-468e-992d-39fb978bde2d", + "recurrenceName": "test_recurrence_name" + } + } + }, + "responses": { + "200": { + "body": { + "jobId": "076713da-9018-41ae-a3bd-9eab14e54d09", + "name": "test_name", + "type": "USql", + "submitter": "test_submitter", + "errorMessage": [{ + "description": "test_description", + "details": "test_details", + "endOffset": 1, + "errorId": "test_error_id", + "filePath": "adl://contosoadla.azuredatalakestore.net/system/jobservice/jobs/Usql/2016/03/13/17/18/5fe51957-93bc-4de0-8ddc-c5a4753b068b/test_file.txt", + "helpLink": "https://azure.microsoft.com/en-us/blog/introducing-azure-data-lake/", + "internalDiagnostics": "test_internal_diagnostics", + "lineNumber": 1, + "message": "test_message", + "resolution": "test_resolution", + "innerError": { + "diagnosticCode": 1, + "severity": "Warning", + "details": "test_details", + "component": "test_component", + "errorId": "test_error_id", + "helpLink": "https://azure.microsoft.com/en-us/blog/introducing-azure-data-lake/", + "internalDiagnostics": "test_internal_diagnostics", + "message": "test_message", + "resolution": "test_resolution", + "source": "SYSTEM", + "description": "test_description" + }, + "severity": "Warning", + "source": "SYSTEM", + "startOffset": 1 + }], + "degreeOfParallelism": 1, + "priority": 1, + "submitTime": "2017-04-18T11:16:49.0748958-07:00", + "startTime": "2017-04-18T11:16:49.0748958-07:00", + "endTime": "2017-04-18T11:16:49.0748958-07:00", + "state": "Accepted", + "result": "Succeeded", + "logFolder": "adl://contosoadla.azuredatalakestore.net/system/jobservice/jobs/Usql/2016/03/13/17/18/5fe51957-93bc-4de0-8ddc-c5a4753b068b/logs/", + "logFilePatterns": [ + "test_log_file_pattern_1", + "test_log_file_pattern_2" + ], + "stateAuditRecords": [{ + "newState": "test_new_state", + "timeStamp": "2017-04-18T11:16:49.0748958-07:00", + "requestedByUser": "test_requested_by_user", + "details": "test_details" + }], + "properties": { + "runtimeVersion": "test_runtime_version", + "script": "test_script", + "type": "Hive" + }, + "related": { + "pipelineId": "076713da-9018-41ae-a3bd-9eab14e54d09", + "pipelineName": "test_pipeline_name", + "pipelineUri": "https://account123.contosopipelineservice.com/076713da-9018-41ae-a3bd-9eab14e54d09", + "runId": "67034c12-b250-468e-992d-39fb978bde2c", + "recurrenceId": "67034c12-b250-468e-992d-39fb978bde2d", + "recurrenceName": "test_recurrence_name" + } + } + } + } +} diff --git a/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/2016-11-01/examples/Adla_Job_Cancel.json b/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/2016-11-01/examples/Adla_Job_Cancel.json new file mode 100644 index 000000000000..f64684718230 --- /dev/null +++ b/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/2016-11-01/examples/Adla_Job_Cancel.json @@ -0,0 +1,10 @@ +{ + "parameters": { + "api-version": "2016-11-01", + "jobIdentity": "076713da-9018-41ae-a3bd-9eab14e54d09" + }, + "responses": { + "200": { + } + } +} diff --git a/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/2016-11-01/examples/Adla_Job_Create.json b/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/2016-11-01/examples/Adla_Job_Create.json new file mode 100644 index 000000000000..c45613f38d4a --- /dev/null +++ b/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/2016-11-01/examples/Adla_Job_Create.json @@ -0,0 +1,140 @@ +{ + "parameters": { + "api-version": "2016-11-01", + "jobIdentity": "076713da-9018-41ae-a3bd-9eab14e54d09", + "parameters": { + "jobId": "076713da-9018-41ae-a3bd-9eab14e54d09", + "name": "test_name", + "type": "USql", + "submitter": "test_submitter", + "errorMessage": [{ + "description": "test_description", + "details": "test_details", + "endOffset": 1, + "errorId": "test_error_id", + "filePath": "adl://contosoadla.azuredatalakestore.net/system/jobservice/jobs/Usql/2016/03/13/17/18/5fe51957-93bc-4de0-8ddc-c5a4753b068b/test_file.txt", + "helpLink": "https://azure.microsoft.com/en-us/blog/introducing-azure-data-lake/", + "internalDiagnostics": "test_internal_diagnostics", + "lineNumber": 1, + "message": "test_message", + "resolution": "test_resolution", + "innerError": { + "diagnosticCode": 1, + "severity": "Warning", + "details": "test_details", + "component": "test_component", + "errorId": "test_error_id", + "helpLink": "https://azure.microsoft.com/en-us/blog/introducing-azure-data-lake/", + "internalDiagnostics": "test_internal_diagnostics", + "message": "test_message", + "resolution": "test_resolution", + "source": "SYSTEM", + "description": "test_description" + }, + "severity": "Warning", + "source": "SYSTEM", + "startOffset": 1 + }], + "degreeOfParallelism": 1, + "priority": 1, + "submitTime": "2017-04-18T11:16:49.0748958-07:00", + "startTime": "2017-04-18T11:16:49.0748958-07:00", + "endTime": "2017-04-18T11:16:49.0748958-07:00", + "state": "Accepted", + "result": "Succeeded", + "logFolder": "adl://contosoadla.azuredatalakestore.net/system/jobservice/jobs/Usql/2016/03/13/17/18/5fe51957-93bc-4de0-8ddc-c5a4753b068b/logs/", + "logFilePatterns": [ + "test_log_file_pattern_1", + "test_log_file_pattern_2" + ], + "stateAuditRecords": [{ + "newState": "test_new_state", + "timeStamp": "2017-04-18T11:16:49.0748958-07:00", + "requestedByUser": "test_requested_by_user", + "details": "test_details" + }], + "properties": { + "runtimeVersion": "test_runtime_version", + "script": "test_script", + "type": "Hive" + }, + "related": { + "pipelineId": "076713da-9018-41ae-a3bd-9eab14e54d09", + "pipelineName": "test_pipeline_name", + "pipelineUri": "https://account123.contosopipelineservice.com/076713da-9018-41ae-a3bd-9eab14e54d09", + "runId": "67034c12-b250-468e-992d-39fb978bde2c", + "recurrenceId": "67034c12-b250-468e-992d-39fb978bde2d", + "recurrenceName": "test_recurrence_name" + } + } + }, + "responses": { + "200": { + "body": { + "jobId": "076713da-9018-41ae-a3bd-9eab14e54d09", + "name": "test_name", + "type": "USql", + "submitter": "test_submitter", + "errorMessage": [{ + "description": "test_description", + "details": "test_details", + "endOffset": 1, + "errorId": "test_error_id", + "filePath": "adl://contosoadla.azuredatalakestore.net/system/jobservice/jobs/Usql/2016/03/13/17/18/5fe51957-93bc-4de0-8ddc-c5a4753b068b/test_file.txt", + "helpLink": "https://azure.microsoft.com/en-us/blog/introducing-azure-data-lake/", + "internalDiagnostics": "test_internal_diagnostics", + "lineNumber": 1, + "message": "test_message", + "resolution": "test_resolution", + "innerError": { + "diagnosticCode": 1, + "severity": "Warning", + "details": "test_details", + "component": "test_component", + "errorId": "test_error_id", + "helpLink": "https://azure.microsoft.com/en-us/blog/introducing-azure-data-lake/", + "internalDiagnostics": "test_internal_diagnostics", + "message": "test_message", + "resolution": "test_resolution", + "source": "SYSTEM", + "description": "test_description" + }, + "severity": "Warning", + "source": "SYSTEM", + "startOffset": 1 + }], + "degreeOfParallelism": 1, + "priority": 1, + "submitTime": "2017-04-18T11:16:49.0748958-07:00", + "startTime": "2017-04-18T11:16:49.0748958-07:00", + "endTime": "2017-04-18T11:16:49.0748958-07:00", + "state": "Accepted", + "result": "Succeeded", + "logFolder": "adl://contosoadla.azuredatalakestore.net/system/jobservice/jobs/Usql/2016/03/13/17/18/5fe51957-93bc-4de0-8ddc-c5a4753b068b/logs/", + "logFilePatterns": [ + "test_log_file_pattern_1", + "test_log_file_pattern_2" + ], + "stateAuditRecords": [{ + "newState": "test_new_state", + "timeStamp": "2017-04-18T11:16:49.0748958-07:00", + "requestedByUser": "test_requested_by_user", + "details": "test_details" + }], + "properties": { + "runtimeVersion": "test_runtime_version", + "script": "test_script", + "type": "Hive" + }, + "related": { + "pipelineId": "076713da-9018-41ae-a3bd-9eab14e54d09", + "pipelineName": "test_pipeline_name", + "pipelineUri": "https://account123.contosopipelineservice.com/076713da-9018-41ae-a3bd-9eab14e54d09", + "runId": "67034c12-b250-468e-992d-39fb978bde2c", + "recurrenceId": "67034c12-b250-468e-992d-39fb978bde2d", + "recurrenceName": "test_recurrence_name" + } + } + } + } +} diff --git a/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/2016-11-01/examples/Adla_Job_Get.json b/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/2016-11-01/examples/Adla_Job_Get.json new file mode 100644 index 000000000000..2552eea2c1ef --- /dev/null +++ b/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/2016-11-01/examples/Adla_Job_Get.json @@ -0,0 +1,75 @@ +{ + "parameters": { + "api-version": "2016-11-01", + "jobIdentity": "076713da-9018-41ae-a3bd-9eab14e54d09" + }, + "responses": { + "200": { + "body": { + "jobId": "076713da-9018-41ae-a3bd-9eab14e54d09", + "name": "test_name", + "type": "USql", + "submitter": "test_submitter", + "errorMessage": [{ + "description": "test_description", + "details": "test_details", + "endOffset": 1, + "errorId": "test_error_id", + "filePath": "adl://contosoadla.azuredatalakestore.net/system/jobservice/jobs/Usql/2016/03/13/17/18/5fe51957-93bc-4de0-8ddc-c5a4753b068b/test_file.txt", + "helpLink": "https://azure.microsoft.com/en-us/blog/introducing-azure-data-lake/", + "internalDiagnostics": "test_internal_diagnostics", + "lineNumber": 1, + "message": "test_message", + "resolution": "test_resolution", + "innerError": { + "diagnosticCode": 1, + "severity": "Warning", + "details": "test_details", + "component": "test_component", + "errorId": "test_error_id", + "helpLink": "https://azure.microsoft.com/en-us/blog/introducing-azure-data-lake/", + "internalDiagnostics": "test_internal_diagnostics", + "message": "test_message", + "resolution": "test_resolution", + "source": "SYSTEM", + "description": "test_description" + }, + "severity": "Warning", + "source": "SYSTEM", + "startOffset": 1 + }], + "degreeOfParallelism": 1, + "priority": 1, + "submitTime": "2017-04-18T11:16:49.0748958-07:00", + "startTime": "2017-04-18T11:16:49.0748958-07:00", + "endTime": "2017-04-18T11:16:49.0748958-07:00", + "state": "Accepted", + "result": "Succeeded", + "logFolder": "adl://contosoadla.azuredatalakestore.net/system/jobservice/jobs/Usql/2016/03/13/17/18/5fe51957-93bc-4de0-8ddc-c5a4753b068b/logs/", + "logFilePatterns": [ + "test_log_file_pattern_1", + "test_log_file_pattern_2" + ], + "stateAuditRecords": [{ + "newState": "test_new_state", + "timeStamp": "2017-04-18T11:16:49.0748958-07:00", + "requestedByUser": "test_requested_by_user", + "details": "test_details" + }], + "properties": { + "runtimeVersion": "test_runtime_version", + "script": "test_script", + "type": "Hive" + }, + "related": { + "pipelineId": "076713da-9018-41ae-a3bd-9eab14e54d09", + "pipelineName": "test_pipeline_name", + "pipelineUri": "https://account123.contosopipelineservice.com/076713da-9018-41ae-a3bd-9eab14e54d09", + "runId": "67034c12-b250-468e-992d-39fb978bde2c", + "recurrenceId": "67034c12-b250-468e-992d-39fb978bde2d", + "recurrenceName": "test_recurrence_name" + } + } + } + } +} diff --git a/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/2016-11-01/examples/Adla_Job_GetDebugDataPath.json b/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/2016-11-01/examples/Adla_Job_GetDebugDataPath.json new file mode 100644 index 000000000000..79ea2c7ed2ef --- /dev/null +++ b/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/2016-11-01/examples/Adla_Job_GetDebugDataPath.json @@ -0,0 +1,18 @@ +{ + "parameters": { + "api-version": "2016-11-01", + "jobIdentity": "076713da-9018-41ae-a3bd-9eab14e54d09" + }, + "responses": { + "200": { + "body": { + "jobId": "076713da-9018-41ae-a3bd-9eab14e54d09", + "command": "test_command", + "paths": [ + "test_path_1", + "test_path_2" + ] + } + } + } +} diff --git a/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/2016-11-01/examples/Adla_Job_GetStatistics.json b/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/2016-11-01/examples/Adla_Job_GetStatistics.json new file mode 100644 index 000000000000..b6d3d42f36a5 --- /dev/null +++ b/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/2016-11-01/examples/Adla_Job_GetStatistics.json @@ -0,0 +1,36 @@ +{ + "parameters": { + "api-version": "2016-11-01", + "jobIdentity": "076713da-9018-41ae-a3bd-9eab14e54d09" + }, + "responses": { + "200": { + "body": { + "lastUpdateTimeUtc": "2017-04-18T11:16:49.0748958-07:00", + "finalizingTimeUtc": "2017-04-18T11:16:49.0748958-07:00", + "stages": [{ + "dataRead": 1, + "dataReadCrossPod": 1, + "dataReadIntraPod": 1, + "dataToRead": 1, + "dataWritten": 1, + "duplicateDiscardCount": 1, + "failedCount": 1, + "maxVertexDataRead": 1, + "minVertexDataRead": 1, + "readFailureCount": 1, + "revocationCount": 1, + "runningCount": 1, + "scheduledCount": 1, + "stageName": "test_stage_name", + "succeededCount": 1, + "tempDataWritten": 1, + "totalCount": 1, + "totalFailedTime": "PT0S", + "totalProgress": 1, + "totalSucceededTime": "PT0S" + }] + } + } + } +} diff --git a/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/2016-11-01/examples/Adla_Job_List.json b/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/2016-11-01/examples/Adla_Job_List.json new file mode 100644 index 000000000000..c22947463523 --- /dev/null +++ b/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/2016-11-01/examples/Adla_Job_List.json @@ -0,0 +1,83 @@ +{ + "parameters": { + "api-version": "2016-11-01", + "$filter": "test_filter", + "$top": 1, + "$skip": 1, + "$select": "test_select", + "$orderby": "test_orderby", + "$count": false + }, + "responses": { + "200": { + "body": { + "value": [{ + "jobId": "076713da-9018-41ae-a3bd-9eab14e54d09", + "name": "test_name", + "type": "USql", + "submitter": "test_submitter", + "errorMessage": [{ + "description": "test_description", + "details": "test_details", + "endOffset": 1, + "errorId": "test_error_id", + "filePath": "adl://contosoadla.azuredatalakestore.net/system/jobservice/jobs/Usql/2016/03/13/17/18/5fe51957-93bc-4de0-8ddc-c5a4753b068b/test_file.txt", + "helpLink": "https://azure.microsoft.com/en-us/blog/introducing-azure-data-lake/", + "internalDiagnostics": "test_internal_diagnostics", + "lineNumber": 1, + "message": "test_message", + "resolution": "test_resolution", + "innerError": { + "diagnosticCode": 1, + "severity": "Warning", + "details": "test_details", + "component": "test_component", + "errorId": "test_error_id", + "helpLink": "https://azure.microsoft.com/en-us/blog/introducing-azure-data-lake/", + "internalDiagnostics": "test_internal_diagnostics", + "message": "test_message", + "resolution": "test_resolution", + "source": "SYSTEM", + "description": "test_description" + }, + "severity": "Warning", + "source": "SYSTEM", + "startOffset": 1 + }], + "degreeOfParallelism": 1, + "priority": 1, + "submitTime": "2017-04-18T11:16:49.0748958-07:00", + "startTime": "2017-04-18T11:16:49.0748958-07:00", + "endTime": "2017-04-18T11:16:49.0748958-07:00", + "state": "Accepted", + "result": "Succeeded", + "logFolder": "adl://contosoadla.azuredatalakestore.net/system/jobservice/jobs/Usql/2016/03/13/17/18/5fe51957-93bc-4de0-8ddc-c5a4753b068b/logs/", + "logFilePatterns": [ + "test_log_file_pattern_1", + "test_log_file_pattern_2" + ], + "stateAuditRecords": [{ + "newState": "test_new_state", + "timeStamp": "2017-04-18T11:16:49.0748958-07:00", + "requestedByUser": "test_requested_by_user", + "details": "test_details" + }], + "properties": { + "runtimeVersion": "test_runtime_version", + "script": "test_script", + "type": "Hive" + }, + "related": { + "pipelineId": "076713da-9018-41ae-a3bd-9eab14e54d09", + "pipelineName": "test_pipeline_name", + "pipelineUri": "https://account123.contosopipelineservice.com/076713da-9018-41ae-a3bd-9eab14e54d09", + "runId": "67034c12-b250-468e-992d-39fb978bde2c", + "recurrenceId": "67034c12-b250-468e-992d-39fb978bde2d", + "recurrenceName": "test_recurrence_name" + } + }], + "nextLink": "https://account123.contosopipelineservice.com/076713da-9018-41ae-a3bd-9eab14e54d09" + } + } + } +} diff --git a/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/2016-11-01/examples/Adla_Pipeline_Get.json b/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/2016-11-01/examples/Adla_Pipeline_Get.json new file mode 100644 index 000000000000..18fc27151621 --- /dev/null +++ b/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/2016-11-01/examples/Adla_Pipeline_Get.json @@ -0,0 +1,32 @@ +{ + "parameters": { + "api-version": "2016-11-01", + "pipelineIdentity": "076713da-9018-41ae-a3bd-9eab14e54d09", + "startDateTime": "2017-04-18T11:16:49.0748958-07:00", + "endDateTime": "2017-04-18T11:16:49.0748958-07:00" + }, + "responses": { + "200": { + "body": { + "pipelineId": "076713da-9018-41ae-a3bd-9eab14e54d09", + "pipelineName": "test_pipeline_name", + "pipelineUri": "https://account123.contosopipelineservice.com/076713da-9018-41ae-a3bd-9eab14e54d09", + "numJobsFailed": 1, + "numJobsCanceled": 1, + "numJobsSucceeded": 1, + "auHoursFailed": 1.0, + "auHoursCanceled": 1.0, + "auHoursSucceeded": 1.0, + "lastSubmitTime": "2017-04-18T11:16:49.0748958-07:00", + "runs": [{ + "runId": "67034c12-b250-468e-992d-39fb978bde2c", + "lastSubmitTime": "2017-04-18T11:16:49.0748958-07:00" + }], + "recurrences": [ + "2ba01f6c-562d-4246-90ff-0b8c2d10e346", + "da8dc3de-2fd8-4641-8968-40dbbf11e95f" + ] + } + } + } +} diff --git a/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/2016-11-01/examples/Adla_Pipeline_List.json b/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/2016-11-01/examples/Adla_Pipeline_List.json new file mode 100644 index 000000000000..5d904bc04d1a --- /dev/null +++ b/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/2016-11-01/examples/Adla_Pipeline_List.json @@ -0,0 +1,34 @@ +{ + "parameters": { + "api-version": "2016-11-01", + "startDateTime": "2017-04-18T11:16:49.0748958-07:00", + "endDateTime": "2017-04-18T11:16:49.0748958-07:00" + }, + "responses": { + "200": { + "body": { + "value": [{ + "pipelineId": "076713da-9018-41ae-a3bd-9eab14e54d09", + "pipelineName": "test_pipeline_name", + "pipelineUri": "https://account123.contosopipelineservice.com/076713da-9018-41ae-a3bd-9eab14e54d09", + "numJobsFailed": 1, + "numJobsCanceled": 1, + "numJobsSucceeded": 1, + "auHoursFailed": 1.0, + "auHoursCanceled": 1.0, + "auHoursSucceeded": 1.0, + "lastSubmitTime": "2017-04-18T11:16:49.0748958-07:00", + "runs": [{ + "runId": "67034c12-b250-468e-992d-39fb978bde2c", + "lastSubmitTime": "2017-04-18T11:16:49.0748958-07:00" + }], + "recurrences": [ + "2ba01f6c-562d-4246-90ff-0b8c2d10e346", + "da8dc3de-2fd8-4641-8968-40dbbf11e95f" + ] + }], + "nextLink": "https://account123.contosopipelineservice.com/076713da-9018-41ae-a3bd-9eab14e54d09" + } + } + } +} diff --git a/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/2016-11-01/examples/Adla_Recurrence_Get.json b/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/2016-11-01/examples/Adla_Recurrence_Get.json new file mode 100644 index 000000000000..fb2717390c2d --- /dev/null +++ b/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/2016-11-01/examples/Adla_Recurrence_Get.json @@ -0,0 +1,23 @@ +{ + "parameters": { + "api-version": "2016-11-01", + "recurrenceIdentity": "076713da-9018-41ae-a3bd-9eab14e54d09", + "startDateTime": "2017-04-18T11:16:49.0748958-07:00", + "endDateTime": "2017-04-18T11:16:49.0748958-07:00" + }, + "responses": { + "200": { + "body": { + "recurrenceId": "076713da-9018-41ae-a3bd-9eab14e54d09", + "recurrenceName": "test_recurrence_name", + "numJobsFailed": 1, + "numJobsCanceled": 1, + "numJobsSucceeded": 1, + "auHoursFailed": 1.0, + "auHoursCanceled": 1.0, + "auHoursSucceeded": 1.0, + "lastSubmitTime": "2017-04-18T11:16:49.0748958-07:00" + } + } + } +} diff --git a/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/2016-11-01/examples/Adla_Recurrence_List.json b/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/2016-11-01/examples/Adla_Recurrence_List.json new file mode 100644 index 000000000000..f967c2a39dd0 --- /dev/null +++ b/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/2016-11-01/examples/Adla_Recurrence_List.json @@ -0,0 +1,25 @@ +{ + "parameters": { + "api-version": "2016-11-01", + "startDateTime": "2017-04-18T11:16:49.0748958-07:00", + "endDateTime": "2017-04-18T11:16:49.0748958-07:00" + }, + "responses": { + "200": { + "body": { + "value": [{ + "recurrenceId": "076713da-9018-41ae-a3bd-9eab14e54d09", + "recurrenceName": "test_recurrence_name", + "numJobsFailed": 1, + "numJobsCanceled": 1, + "numJobsSucceeded": 1, + "auHoursFailed": 1.0, + "auHoursCanceled": 1.0, + "auHoursSucceeded": 1.0, + "lastSubmitTime": "2017-04-18T11:16:49.0748958-07:00" + }], + "nextLink": "https://account123.contosopipelineservice.com/076713da-9018-41ae-a3bd-9eab14e54d09" + } + } + } +} diff --git a/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/2016-11-01/job.json b/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/2016-11-01/job.json index 654635d5001b..473560b3461c 100644 --- a/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/2016-11-01/job.json +++ b/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/2016-11-01/job.json @@ -43,7 +43,7 @@ "operationId": "Pipeline_List", "description": "Lists all pipelines.", "x-ms-examples": { - "List all of the pipelines in an account": { "$ref": "./examples/AdlPipelineList.json" } + "Lists all pipelines": { "$ref": "./examples/Adla_Pipeline_List.json" } }, "parameters": [ { @@ -87,7 +87,7 @@ "operationId": "Pipeline_Get", "description": "Gets the Pipeline information for the specified pipeline ID.", "x-ms-examples": { - "Get a specific pipelines in an account": { "$ref": "./examples/AdlPipelineGet.json" } + "Gets the Pipeline information for the specified pipeline ID": { "$ref": "./examples/Adla_Pipeline_Get.json" } }, "parameters": [ { @@ -136,7 +136,7 @@ "operationId": "Recurrence_List", "description": "Lists all recurrences.", "x-ms-examples": { - "List all of the recurrences in an account": { "$ref": "./examples/AdlRecurrenceList.json" } + "Lists all recurrences": { "$ref": "./examples/Adla_Recurrence_List.json" } }, "parameters": [ { @@ -180,7 +180,7 @@ "operationId": "Recurrence_Get", "description": "Gets the recurrence information for the specified recurrence ID.", "x-ms-examples": { - "Get a specific recurrences in an account": { "$ref": "./examples/AdlRecurrenceGet.json" } + "Gets the recurrence information for the specified recurrence ID": { "$ref": "./examples/Adla_Recurrence_Get.json" } }, "parameters": [ { @@ -228,6 +228,9 @@ ], "operationId": "Job_GetStatistics", "description": "Gets statistics of the specified job.", + "x-ms-examples": { + "Gets statistics of the specified job": { "$ref": "./examples/Adla_Job_GetStatistics.json" } + }, "parameters": [ { "name": "jobIdentity", @@ -258,6 +261,9 @@ ], "operationId": "Job_GetDebugDataPath", "description": "Gets the job debug data information specified by the job ID.", + "x-ms-examples": { + "Gets the job debug data information specified by the job ID": { "$ref": "./examples/Adla_Job_GetDebugDataPath.json" } + }, "parameters": [ { "name": "jobIdentity", @@ -288,6 +294,9 @@ ], "operationId": "Job_Build", "description": "Builds (compiles) the specified job in the specified Data Lake Analytics account for job correctness and validation.", + "x-ms-examples": { + "Builds (compiles) the specified job in the specified Data Lake Analytics account for job correctness and validation": { "$ref": "./examples/Adla_Job_Build.json" } + }, "parameters": [ { "name": "parameters", @@ -319,6 +328,9 @@ ], "operationId": "Job_Cancel", "description": "Cancels the running job specified by the job ID.", + "x-ms-examples": { + "Cancels the running job specified by the job ID": { "$ref": "./examples/Adla_Job_Cancel.json" } + }, "parameters": [ { "name": "jobIdentity", @@ -346,6 +358,9 @@ ], "operationId": "Job_Get", "description": "Gets the job information for the specified job ID.", + "x-ms-examples": { + "Gets the job information for the specified job ID": { "$ref": "./examples/Adla_Job_Get.json" } + }, "parameters": [ { "name": "jobIdentity", @@ -374,6 +389,9 @@ ], "operationId": "Job_Create", "description": "Submits a job to the specified Data Lake Analytics account.", + "x-ms-examples": { + "Submits a job to the specified Data Lake Analytics account": { "$ref": "./examples/Adla_Job_Create.json" } + }, "parameters": [ { "name": "jobIdentity", @@ -413,6 +431,9 @@ ], "operationId": "Job_List", "description": "Lists the jobs, if any, associated with the specified Data Lake Analytics account. The response includes a link to the next page of results, if any.", + "x-ms-examples": { + "Lists the jobs, if any, associated with the specified Data Lake Analytics account": { "$ref": "./examples/Adla_Job_List.json" } + }, "parameters": [ { "name": "$filter", diff --git a/specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/2016-11-01/account.json b/specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/2016-11-01/account.json index b633d974d6dd..6698147fccb2 100644 --- a/specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/2016-11-01/account.json +++ b/specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/2016-11-01/account.json @@ -43,7 +43,10 @@ "ComputePolicies" ], "operationId": "ComputePolicies_CreateOrUpdate", - "description": "Creates or updates the specified compute policy. During update, the compute policy with the specified name will be replaced with this new compute policy. An account supports, at most, 50 policies", + "description": "Creates or updates the specified compute policy. During update, the compute policy with the specified name will be replaced with this new compute policy. An account supports, at most, 50 policies", + "x-ms-examples": { + "Creates or updates the specified compute policy": { "$ref": "./examples/Adla_ComputePolicies_CreateOrUpdate.json" } + }, "parameters": [ { "name": "resourceGroupName", @@ -97,6 +100,9 @@ ], "operationId": "ComputePolicies_Update", "description": "Updates the specified compute policy.", + "x-ms-examples": { + "Updates the specified compute policy": { "$ref": "./examples/Adla_ComputePolicies_Update.json" } + }, "parameters": [ { "name": "resourceGroupName", @@ -150,6 +156,9 @@ ], "operationId": "ComputePolicies_Delete", "description": "Deletes the specified compute policy from the specified Data Lake Analytics account", + "x-ms-examples": { + "Deletes the specified compute policy from the adla account": { "$ref": "./examples/Adla_ComputePolicies_Delete.json" } + }, "parameters": [ { "name": "resourceGroupName", @@ -194,6 +203,9 @@ ], "operationId": "ComputePolicies_Get", "description": "Gets the specified Data Lake Analytics compute policy.", + "x-ms-examples": { + "Gets the specified compute policy": { "$ref": "./examples/Adla_ComputePolicies_Get.json" } + }, "parameters": [ { "name": "resourceGroupName", @@ -240,6 +252,9 @@ ], "operationId": "ComputePolicies_ListByAccount", "description": "Lists the Data Lake Analytics compute policies within the specified Data Lake Analytics account. An account supports, at most, 50 policies", + "x-ms-examples": { + "Lists the compute policies within the adla account": { "$ref": "./examples/Adla_ComputePolicies_ListByAccount.json" } + }, "parameters": [ { "name": "resourceGroupName", @@ -282,6 +297,9 @@ ], "operationId": "FirewallRules_CreateOrUpdate", "description": "Creates or updates the specified firewall rule. During update, the firewall rule with the specified name will be replaced with this new firewall rule.", + "x-ms-examples": { + "Creates or updates the specified firewall rule": { "$ref": "./examples/Adla_FirewallRules_CreateOrUpdate.json" } + }, "parameters": [ { "name": "resourceGroupName", @@ -335,6 +353,9 @@ ], "operationId": "FirewallRules_Update", "description": "Updates the specified firewall rule.", + "x-ms-examples": { + "Updates the specified firewall rule": { "$ref": "./examples/Adla_FirewallRules_Update.json" } + }, "parameters": [ { "name": "resourceGroupName", @@ -388,6 +409,9 @@ ], "operationId": "FirewallRules_Delete", "description": "Deletes the specified firewall rule from the specified Data Lake Analytics account", + "x-ms-examples": { + "Deletes the specified firewall rule": { "$ref": "./examples/Adla_FirewallRules_Delete.json" } + }, "parameters": [ { "name": "resourceGroupName", @@ -432,6 +456,9 @@ ], "operationId": "FirewallRules_Get", "description": "Gets the specified Data Lake Analytics firewall rule.", + "x-ms-examples": { + "Gets the specified Data Lake Analytics firewall rule": { "$ref": "./examples/Adla_FirewallRules_Get.json" } + }, "parameters": [ { "name": "resourceGroupName", @@ -478,6 +505,9 @@ ], "operationId": "FirewallRules_ListByAccount", "description": "Lists the Data Lake Analytics firewall rules within the specified Data Lake Analytics account.", + "x-ms-examples": { + "Lists the Data Lake Analytics firewall rules": { "$ref": "./examples/Adla_FirewallRules_ListByAccount.json" } + }, "parameters": [ { "name": "resourceGroupName", @@ -514,12 +544,15 @@ } }, "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataLakeAnalytics/accounts/{accountName}/StorageAccounts/{storageAccountName}": { - "get": { + "put": { "tags": [ "StorageAccounts" ], - "operationId": "StorageAccounts_Get", - "description": "Gets the specified Azure Storage account linked to the given Data Lake Analytics account.", + "operationId": "StorageAccounts_Add", + "description": "Updates the specified Data Lake Analytics account to add an Azure Storage account.", + "x-ms-examples": { + "Adds an Azure Storage account": { "$ref": "./examples/Adla_StorageAccounts_Add.json" } + }, "parameters": [ { "name": "resourceGroupName", @@ -533,14 +566,23 @@ "in": "path", "required": true, "type": "string", - "description": "The name of the Data Lake Analytics account from which to retrieve Azure storage account details." + "description": "The name of the Data Lake Analytics account to which to add the Azure Storage account." }, { "name": "storageAccountName", "in": "path", "required": true, "type": "string", - "description": "The name of the Azure Storage account for which to retrieve the details." + "description": "The name of the Azure Storage account to add" + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/AddStorageAccountParameters" + }, + "description": "The parameters containing the access key and optional suffix for the Azure Storage Account." }, { "$ref": "#/parameters/ApiVersionParameter" @@ -551,19 +593,19 @@ ], "responses": { "200": { - "description": "Successfully retrieved the specified Azure Storage account information.", - "schema": { - "$ref": "#/definitions/StorageAccountInfo" - } + "description": "Successfully added the specified Azure Storage account information to the specified Azure Data Lake Analytics account." } } }, - "delete": { + "patch": { "tags": [ "StorageAccounts" ], - "operationId": "StorageAccounts_Delete", - "description": "Updates the specified Data Lake Analytics account to remove an Azure Storage account.", + "operationId": "StorageAccounts_Update", + "description": "Updates the Data Lake Analytics account to replace Azure Storage blob account details, such as the access key and/or suffix.", + "x-ms-examples": { + "Replaces Azure Storage blob account details": { "$ref": "./examples/Adla_StorageAccounts_Update.json" } + }, "parameters": [ { "name": "resourceGroupName", @@ -577,14 +619,23 @@ "in": "path", "required": true, "type": "string", - "description": "The name of the Data Lake Analytics account from which to remove the Azure Storage account." + "description": "The name of the Data Lake Analytics account to modify storage accounts in" }, { "name": "storageAccountName", "in": "path", "required": true, "type": "string", - "description": "The name of the Azure Storage account to remove" + "description": "The Azure Storage account to modify" + }, + { + "name": "parameters", + "in": "body", + "required": false, + "schema": { + "$ref": "#/definitions/UpdateStorageAccountParameters" + }, + "description": "The parameters containing the access key and suffix to update the storage account with, if any. Passing nothing results in no change." }, { "$ref": "#/parameters/ApiVersionParameter" @@ -595,16 +646,19 @@ ], "responses": { "200": { - "description": "Successfully deleted the specified Azure Storage account information from the Azure Data Lake Analytics account." + "description": "Successfully update the specified Azure Storage account information for the specified Azure Data Lake Analytics account." } } }, - "patch": { + "delete": { "tags": [ "StorageAccounts" ], - "operationId": "StorageAccounts_Update", - "description": "Updates the Data Lake Analytics account to replace Azure Storage blob account details, such as the access key and/or suffix.", + "operationId": "StorageAccounts_Delete", + "description": "Updates the specified Data Lake Analytics account to remove an Azure Storage account.", + "x-ms-examples": { + "Removes an Azure Storage account": { "$ref": "./examples/Adla_StorageAccounts_Delete.json" } + }, "parameters": [ { "name": "resourceGroupName", @@ -618,23 +672,14 @@ "in": "path", "required": true, "type": "string", - "description": "The name of the Data Lake Analytics account to modify storage accounts in" + "description": "The name of the Data Lake Analytics account from which to remove the Azure Storage account." }, { "name": "storageAccountName", "in": "path", "required": true, "type": "string", - "description": "The Azure Storage account to modify" - }, - { - "name": "parameters", - "in": "body", - "required": false, - "schema": { - "$ref": "#/definitions/UpdateStorageAccountParameters" - }, - "description": "The parameters containing the access key and suffix to update the storage account with, if any. Passing nothing results in no change." + "description": "The name of the Azure Storage account to remove" }, { "$ref": "#/parameters/ApiVersionParameter" @@ -645,16 +690,19 @@ ], "responses": { "200": { - "description": "Successfully update the specified Azure Storage account information for the specified Azure Data Lake Analytics account." + "description": "Successfully deleted the specified Azure Storage account information from the Azure Data Lake Analytics account." } } }, - "put": { + "get": { "tags": [ "StorageAccounts" ], - "operationId": "StorageAccounts_Add", - "description": "Updates the specified Data Lake Analytics account to add an Azure Storage account.", + "operationId": "StorageAccounts_Get", + "description": "Gets the specified Azure Storage account linked to the given Data Lake Analytics account.", + "x-ms-examples": { + "Gets the specified Azure Storage account": { "$ref": "./examples/Adla_StorageAccounts_Get.json" } + }, "parameters": [ { "name": "resourceGroupName", @@ -668,23 +716,14 @@ "in": "path", "required": true, "type": "string", - "description": "The name of the Data Lake Analytics account to which to add the Azure Storage account." + "description": "The name of the Data Lake Analytics account from which to retrieve Azure storage account details." }, { "name": "storageAccountName", "in": "path", "required": true, "type": "string", - "description": "The name of the Azure Storage account to add" - }, - { - "name": "parameters", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/AddStorageAccountParameters" - }, - "description": "The parameters containing the access key and optional suffix for the Azure Storage Account." + "description": "The name of the Azure Storage account for which to retrieve the details." }, { "$ref": "#/parameters/ApiVersionParameter" @@ -695,7 +734,10 @@ ], "responses": { "200": { - "description": "Successfully added the specified Azure Storage account information to the specified Azure Data Lake Analytics account." + "description": "Successfully retrieved the specified Azure Storage account information.", + "schema": { + "$ref": "#/definitions/StorageAccountInfo" + } } } } @@ -707,6 +749,9 @@ ], "operationId": "StorageAccounts_GetStorageContainer", "description": "Gets the specified Azure Storage container associated with the given Data Lake Analytics and Azure Storage accounts.", + "x-ms-examples": { + "Gets the specified Azure Storage container": { "$ref": "./examples/Adla_StorageAccounts_GetStorageContainer.json" } + }, "parameters": [ { "name": "resourceGroupName", @@ -760,6 +805,9 @@ ], "operationId": "StorageAccounts_ListStorageContainers", "description": "Lists the Azure Storage containers, if any, associated with the specified Data Lake Analytics and Azure Storage account combination. The response includes a link to the next page of results, if any.", + "x-ms-examples": { + "Lists the Azure Storage containers": { "$ref": "./examples/Adla_StorageAccounts_ListStorageContainers.json" } + }, "parameters": [ { "name": "resourceGroupName", @@ -809,6 +857,9 @@ ], "operationId": "StorageAccounts_ListSasTokens", "description": "Gets the SAS token associated with the specified Data Lake Analytics and Azure Storage account and container combination.", + "x-ms-examples": { + "Gets the SAS token": { "$ref": "./examples/Adla_StorageAccounts_ListSasTokens.json" } + }, "parameters": [ { "name": "resourceGroupName", @@ -859,12 +910,15 @@ } }, "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataLakeAnalytics/accounts/{accountName}/DataLakeStoreAccounts/{dataLakeStoreAccountName}": { - "get": { + "put": { "tags": [ "DataLakeStoreAccounts" ], - "operationId": "DataLakeStoreAccounts_Get", - "description": "Gets the specified Data Lake Store account details in the specified Data Lake Analytics account.", + "operationId": "DataLakeStoreAccounts_Add", + "description": "Updates the specified Data Lake Analytics account to include the additional Data Lake Store account.", + "x-ms-examples": { + "Adds a Data Lake Store account": { "$ref": "./examples/Adla_DataLakeStoreAccounts_Add.json" } + }, "parameters": [ { "name": "resourceGroupName", @@ -878,14 +932,22 @@ "in": "path", "required": true, "type": "string", - "description": "The name of the Data Lake Analytics account from which to retrieve the Data Lake Store account details." + "description": "The name of the Data Lake Analytics account to which to add the Data Lake Store account." }, { "name": "dataLakeStoreAccountName", "in": "path", "required": true, "type": "string", - "description": "The name of the Data Lake Store account to retrieve" + "description": "The name of the Data Lake Store account to add." + }, + { + "name": "parameters", + "in": "body", + "schema": { + "$ref": "#/definitions/AddDataLakeStoreParameters" + }, + "description": "The details of the Data Lake Store account." }, { "$ref": "#/parameters/ApiVersionParameter" @@ -896,10 +958,7 @@ ], "responses": { "200": { - "description": "Successfully retrieved the specified Azure Data Lake Store account information.", - "schema": { - "$ref": "#/definitions/DataLakeStoreAccountInfo" - } + "description": "Successfully added the specified Azure Data Lake Store account information." } } }, @@ -909,6 +968,9 @@ ], "operationId": "DataLakeStoreAccounts_Delete", "description": "Updates the Data Lake Analytics account specified to remove the specified Data Lake Store account.", + "x-ms-examples": { + "Removes the specified Data Lake Store account": { "$ref": "./examples/Adla_DataLakeStoreAccounts_Delete.json" } + }, "parameters": [ { "name": "resourceGroupName", @@ -944,12 +1006,15 @@ } } }, - "put": { + "get": { "tags": [ "DataLakeStoreAccounts" ], - "operationId": "DataLakeStoreAccounts_Add", - "description": "Updates the specified Data Lake Analytics account to include the additional Data Lake Store account.", + "operationId": "DataLakeStoreAccounts_Get", + "description": "Gets the specified Data Lake Store account details in the specified Data Lake Analytics account.", + "x-ms-examples": { + "Gets the specified Data Lake Store account details": { "$ref": "./examples/Adla_DataLakeStoreAccounts_Get.json" } + }, "parameters": [ { "name": "resourceGroupName", @@ -963,22 +1028,14 @@ "in": "path", "required": true, "type": "string", - "description": "The name of the Data Lake Analytics account to which to add the Data Lake Store account." + "description": "The name of the Data Lake Analytics account from which to retrieve the Data Lake Store account details." }, { "name": "dataLakeStoreAccountName", "in": "path", "required": true, "type": "string", - "description": "The name of the Data Lake Store account to add." - }, - { - "name": "parameters", - "in": "body", - "schema": { - "$ref": "#/definitions/AddDataLakeStoreParameters" - }, - "description": "The details of the Data Lake Store account." + "description": "The name of the Data Lake Store account to retrieve" }, { "$ref": "#/parameters/ApiVersionParameter" @@ -989,7 +1046,10 @@ ], "responses": { "200": { - "description": "Successfully added the specified Azure Data Lake Store account information." + "description": "Successfully retrieved the specified Azure Data Lake Store account information.", + "schema": { + "$ref": "#/definitions/DataLakeStoreAccountInfo" + } } } } @@ -1001,6 +1061,9 @@ ], "operationId": "StorageAccounts_ListByAccount", "description": "Gets the first page of Azure Storage accounts, if any, linked to the specified Data Lake Analytics account. The response includes a link to the next page, if any.", + "x-ms-examples": { + "Gets the first page of Azure Storage accounts linked to the specified Data Lake Analytics account": { "$ref": "./examples/Adla_StorageAccounts_ListByAccount.json" } + }, "parameters": [ { "name": "resourceGroupName", @@ -1090,6 +1153,9 @@ ], "operationId": "DataLakeStoreAccounts_ListByAccount", "description": "Gets the first page of Data Lake Store accounts linked to the specified Data Lake Analytics account. The response includes a link to the next page, if any.", + "x-ms-examples": { + "Gets the first page of Data Lake Store accounts linked to the specified Data Lake Analytics account": { "$ref": "./examples/Adla_DataLakeStoreAccounts_ListByAccount.json" } + }, "parameters": [ { "name": "resourceGroupName", @@ -1179,6 +1245,9 @@ ], "operationId": "Account_ListByResourceGroup", "description": "Gets the first page of Data Lake Analytics accounts, if any, within a specific resource group. This includes a link to the next page, if any.", + "x-ms-examples": { + "Gets the first page of Data Lake Analytics accounts within a specific resource group": { "$ref": "./examples/Adla_Account_ListByResourceGroup.json" } + }, "parameters": [ { "name": "resourceGroupName", @@ -1261,6 +1330,9 @@ ], "operationId": "Account_List", "description": "Gets the first page of Data Lake Analytics accounts, if any, within the current subscription. This includes a link to the next page, if any.", + "x-ms-examples": { + "Gets the first page of Data Lake Analytics accounts within the current subscription": { "$ref": "./examples/Adla_Account_List.json" } + }, "parameters": [ { "name": "$filter", @@ -1330,26 +1402,38 @@ } }, "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataLakeAnalytics/accounts/{accountName}": { - "get": { + "put": { "tags": [ "Account" ], - "operationId": "Account_Get", - "description": "Gets details of the specified Data Lake Analytics account.", + "operationId": "Account_Create", + "description": "Creates the specified Data Lake Analytics account. This supplies the user with computation services for Data Lake Analytics workloads", + "x-ms-examples": { + "Creates the specified Data Lake Analytics account": { "$ref": "./examples/Adla_Account_Create.json" } + }, "parameters": [ { "name": "resourceGroupName", "in": "path", "required": true, "type": "string", - "description": "The name of the Azure resource group that contains the Data Lake Analytics account." + "description": "The name of the Azure resource group that contains the Data Lake Analytics account.the account will be associated with." }, { "name": "accountName", "in": "path", "required": true, "type": "string", - "description": "The name of the Data Lake Analytics account to retrieve." + "description": "The name of the Data Lake Analytics account to create." + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/DataLakeAnalyticsAccount" + }, + "description": "Parameters supplied to the create Data Lake Analytics account operation." }, { "$ref": "#/parameters/ApiVersionParameter" @@ -1359,20 +1443,30 @@ } ], "responses": { + "201": { + "description": "Successfully initiated creation of the specified account.", + "schema": { + "$ref": "#/definitions/DataLakeAnalyticsAccount" + } + }, "200": { - "description": "Successfully retrieved the details of the specified account.", + "description": "Successfully created the specified account.", "schema": { "$ref": "#/definitions/DataLakeAnalyticsAccount" } } - } + }, + "x-ms-long-running-operation": true }, - "delete": { + "patch": { "tags": [ "Account" ], - "operationId": "Account_Delete", - "description": "Begins the delete delete process for the Data Lake Analytics account object specified by the account name.", + "operationId": "Account_Update", + "description": "Updates the Data Lake Analytics account object specified by the accountName with the contents of the account object.", + "x-ms-examples": { + "Updates the Data Lake Analytics account object": { "$ref": "./examples/Adla_Account_Update.json" } + }, "parameters": [ { "name": "resourceGroupName", @@ -1386,7 +1480,16 @@ "in": "path", "required": true, "type": "string", - "description": "The name of the Data Lake Analytics account to delete" + "description": "The name of the Data Lake Analytics account to update." + }, + { + "name": "parameters", + "in": "body", + "required": false, + "schema": { + "$ref": "#/definitions/DataLakeAnalyticsAccountUpdateParameters" + }, + "description": "Parameters supplied to the update Data Lake Analytics account operation." }, { "$ref": "#/parameters/ApiVersionParameter" @@ -1397,46 +1500,43 @@ ], "responses": { "200": { - "description": "Successfully deleted the specified account." - }, - "202": { - "description": "Successfully initiated the deletion of the specified account." + "description": "Successfully updated the specified account.", + "schema": { + "$ref": "#/definitions/DataLakeAnalyticsAccount" + } }, - "204": { - "description": "The specified account was not found." + "201": { + "description": "Successfully initiated an update of the specified account.", + "schema": { + "$ref": "#/definitions/DataLakeAnalyticsAccount" + } } }, "x-ms-long-running-operation": true }, - "put": { + "delete": { "tags": [ "Account" ], - "operationId": "Account_Create", - "description": "Creates the specified Data Lake Analytics account. This supplies the user with computation services for Data Lake Analytics workloads", + "operationId": "Account_Delete", + "description": "Begins the delete process for the Data Lake Analytics account object specified by the account name.", + "x-ms-examples": { + "Begins the delete process for the Data Lake Analytics account object specified by the account name": { "$ref": "./examples/Adla_Account_Delete.json" } + }, "parameters": [ { "name": "resourceGroupName", "in": "path", "required": true, "type": "string", - "description": "The name of the Azure resource group that contains the Data Lake Analytics account.the account will be associated with." + "description": "The name of the Azure resource group that contains the Data Lake Analytics account." }, { "name": "accountName", "in": "path", "required": true, "type": "string", - "description": "The name of the Data Lake Analytics account to create." - }, - { - "name": "parameters", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/DataLakeAnalyticsAccount" - }, - "description": "Parameters supplied to the create Data Lake Analytics account operation." + "description": "The name of the Data Lake Analytics account to delete" }, { "$ref": "#/parameters/ApiVersionParameter" @@ -1446,27 +1546,27 @@ } ], "responses": { - "201": { - "description": "Successfully initiated creation of the specified account.", - "schema": { - "$ref": "#/definitions/DataLakeAnalyticsAccount" - } - }, "200": { - "description": "Successfully created the specified account.", - "schema": { - "$ref": "#/definitions/DataLakeAnalyticsAccount" - } + "description": "Successfully deleted the specified account." + }, + "202": { + "description": "Successfully initiated the deletion of the specified account." + }, + "204": { + "description": "The specified account was not found." } }, "x-ms-long-running-operation": true }, - "patch": { + "get": { "tags": [ "Account" ], - "operationId": "Account_Update", - "description": "Updates the Data Lake Analytics account object specified by the accountName with the contents of the account object.", + "operationId": "Account_Get", + "description": "Gets details of the specified Data Lake Analytics account.", + "x-ms-examples": { + "Gets details of the specified Data Lake Analytics account": { "$ref": "./examples/Adla_Account_Get.json" } + }, "parameters": [ { "name": "resourceGroupName", @@ -1480,16 +1580,7 @@ "in": "path", "required": true, "type": "string", - "description": "The name of the Data Lake Analytics account to update." - }, - { - "name": "parameters", - "in": "body", - "required": false, - "schema": { - "$ref": "#/definitions/DataLakeAnalyticsAccountUpdateParameters" - }, - "description": "Parameters supplied to the update Data Lake Analytics account operation." + "description": "The name of the Data Lake Analytics account to retrieve." }, { "$ref": "#/parameters/ApiVersionParameter" @@ -1500,19 +1591,12 @@ ], "responses": { "200": { - "description": "Successfully updated the specified account.", - "schema": { - "$ref": "#/definitions/DataLakeAnalyticsAccount" - } - }, - "201": { - "description": "Successfully initiated an update of the specified account.", + "description": "Successfully retrieved the details of the specified account.", "schema": { "$ref": "#/definitions/DataLakeAnalyticsAccount" } } - }, - "x-ms-long-running-operation": true + } } } }, @@ -1577,15 +1661,15 @@ }, "StorageContainer": { "properties": { - "name": { + "id": { "type": "string", "readOnly": true, - "description": "the name of the blob container." + "description": "the unique identifier of the blob container." }, - "id": { + "name": { "type": "string", "readOnly": true, - "description": "the unique identifier of the blob container." + "description": "the name of the blob container." }, "type": { "type": "string", @@ -2353,7 +2437,8 @@ "type": "string", "description": "Resource type" } - } + }, + "x-ms-azure-resource": true }, "SubResource": { "description": "The Sub Resource model definition.", @@ -2373,6 +2458,7 @@ "description": "Resource type" } }, + "x-ms-azure-resource": true, "required": [ "name" ] diff --git a/specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/2016-11-01/examples/Adla_Account_Create.json b/specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/2016-11-01/examples/Adla_Account_Create.json new file mode 100644 index 000000000000..0bba6ff6a53f --- /dev/null +++ b/specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/2016-11-01/examples/Adla_Account_Create.json @@ -0,0 +1,192 @@ +{ + "parameters": { + "api-version": "2016-11-01", + "subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", + "resourceGroupName": "contosorg", + "accountName": "contosoadla", + "parameters": { + "location": "test_location", + "tags": { + "test_key": "test_value" + }, + "properties": { + "defaultDataLakeStoreAccount": "test_account", + "maxDegreeOfParallelism": 30, + "queryStoreRetention": 30, + "maxJobCount": 3, + "dataLakeStoreAccounts": [{ + "id": "test_adls_id", + "name": "test_adls", + "type": "test_type", + "properties": { + "suffix": "test_suffix" + } + }], + "storageAccounts": [{ + "id": "test_storage_id", + "name": "test_storage", + "type": "test_type", + "properties": { + "accessKey": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab346", + "suffix": "test_suffix" + } + }], + "newTier": "Consumption", + "firewallState": "Enabled", + "firewallAllowAzureIps": "Enabled", + "firewallRules": [{ + "id": "test_firewall_id", + "name": "test_rule", + "type": "test_type", + "properties": { + "startIpAddress": "1.1.1.1", + "endIpAddress": "2.2.2.2" + } + }], + "maxDegreeOfParallelismPerJob": 1, + "minPriorityPerJob": 1, + "computePolicies": [{ + "name": "test_policy", + "properties": { + "objectId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", + "objectType": "User", + "maxDegreeOfParallelismPerJob": 1, + "minPriorityPerJob": 1 + } + }] + } + } + }, + "responses": { + "201": { + "body": { + "id": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", + "name": "test_account", + "type": "test_type", + "location": "test_location", + "tags": { + "test_key": "test_value" + }, + "properties": { + "provisioningState": "Succeeded", + "state": "Active", + "defaultDataLakeStoreAccount": "test_account", + "maxDegreeOfParallelism": 30, + "queryStoreRetention": 30, + "maxJobCount": 3, + "systemMaxDegreeOfParallelism": 1, + "systemMaxJobCount": 1, + "dataLakeStoreAccounts": [{ + "id": "test_adls_id", + "name": "test_adls", + "type": "test_type", + "properties": { + "suffix": "test_suffix" + } + }], + "storageAccounts": [{ + "id": "test_storage_id", + "name": "test_storage", + "type": "test_type", + "properties": { + "accessKey": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab346", + "suffix": "test_suffix" + } + }], + "creationTime": "2017-04-14T13:21:56.6819037-07:00", + "lastModifiedTime": "2017-04-14T13:21:56.6819037-07:00", + "endpoint": "test_endpoint", + "newTier": "Consumption", + "currentTier": "Consumption", + "firewallState": "Enabled", + "firewallAllowAzureIps": "Enabled", + "firewallRules": [{ + "id": "test_firewall_id", + "name": "test_rule", + "type": "test_type", + "properties": { + "startIpAddress": "1.1.1.1", + "endIpAddress": "2.2.2.2" + } + }], + "maxDegreeOfParallelismPerJob": 1, + "minPriorityPerJob": 1, + "computePolicies": [{ + "name": "test_policy", + "properties": { + "objectId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", + "objectType": "User", + "maxDegreeOfParallelismPerJob": 1, + "minPriorityPerJob": 1 + } + }] + } + } + }, + "200": { + "body": { + "id": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", + "name": "test_account", + "type": "test_type", + "location": "test_location", + "tags": { + "test_key": "test_value" + }, + "properties": { + "provisioningState": "Succeeded", + "state": "Active", + "defaultDataLakeStoreAccount": "test_account", + "maxDegreeOfParallelism": 30, + "queryStoreRetention": 30, + "maxJobCount": 3, + "systemMaxDegreeOfParallelism": 1, + "systemMaxJobCount": 1, + "dataLakeStoreAccounts": [{ + "id": "test_adls_id", + "name": "test_adls", + "type": "test_type", + "properties": { + "suffix": "test_suffix" + } + }], + "storageAccounts": [{ + "id": "test_storage_id", + "name": "test_storage", + "type": "test_type", + "properties": { + "accessKey": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab346", + "suffix": "test_suffix" + } + }], + "creationTime": "2017-04-14T13:21:56.6819037-07:00", + "lastModifiedTime": "2017-04-14T13:21:56.6819037-07:00", + "endpoint": "test_endpoint", + "newTier": "Consumption", + "currentTier": "Consumption", + "firewallState": "Enabled", + "firewallAllowAzureIps": "Enabled", + "firewallRules": [{ + "id": "test_firewall_id", + "name": "test_rule", + "type": "test_type", + "properties": { + "startIpAddress": "1.1.1.1", + "endIpAddress": "2.2.2.2" + } + }], + "maxDegreeOfParallelismPerJob": 1, + "minPriorityPerJob": 1, + "computePolicies": [{ + "name": "test_policy", + "properties": { + "objectId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", + "objectType": "User", + "maxDegreeOfParallelismPerJob": 1, + "minPriorityPerJob": 1 + } + }] + } + } + } + } +} diff --git a/specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/2016-11-01/examples/Adla_Account_Delete.json b/specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/2016-11-01/examples/Adla_Account_Delete.json new file mode 100644 index 000000000000..324b2630a98a --- /dev/null +++ b/specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/2016-11-01/examples/Adla_Account_Delete.json @@ -0,0 +1,16 @@ +{ + "parameters": { + "api-version": "2016-11-01", + "subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", + "resourceGroupName": "contosorg", + "accountName": "contosoadla" + }, + "responses": { + "200": { + }, + "202": { + }, + "204": { + } + } +} diff --git a/specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/2016-11-01/examples/Adla_Account_Get.json b/specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/2016-11-01/examples/Adla_Account_Get.json new file mode 100644 index 000000000000..fbc1a0e438cb --- /dev/null +++ b/specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/2016-11-01/examples/Adla_Account_Get.json @@ -0,0 +1,75 @@ +{ + "parameters": { + "api-version": "2016-11-01", + "subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", + "resourceGroupName": "contosorg", + "accountName": "contosoadla" + }, + "responses": { + "200": { + "body": { + "id": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", + "name": "test_account", + "type": "test_type", + "location": "test_location", + "tags": { + "test_key": "test_value" + }, + "properties": { + "provisioningState": "Succeeded", + "state": "Active", + "defaultDataLakeStoreAccount": "test_account", + "maxDegreeOfParallelism": 30, + "queryStoreRetention": 30, + "maxJobCount": 3, + "systemMaxDegreeOfParallelism": 1, + "systemMaxJobCount": 1, + "dataLakeStoreAccounts": [{ + "id": "test_adls_id", + "name": "test_adls", + "type": "test_type", + "properties": { + "suffix": "test_suffix" + } + }], + "storageAccounts": [{ + "id": "test_storage_id", + "name": "test_storage", + "type": "test_type", + "properties": { + "accessKey": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab346", + "suffix": "test_suffix" + } + }], + "creationTime": "2017-04-14T13:21:56.6819037-07:00", + "lastModifiedTime": "2017-04-14T13:21:56.6819037-07:00", + "endpoint": "test_endpoint", + "newTier": "Consumption", + "currentTier": "Consumption", + "firewallState": "Enabled", + "firewallAllowAzureIps": "Enabled", + "firewallRules": [{ + "id": "test_firewall_id", + "name": "test_rule", + "type": "test_type", + "properties": { + "startIpAddress": "1.1.1.1", + "endIpAddress": "2.2.2.2" + } + }], + "maxDegreeOfParallelismPerJob": 1, + "minPriorityPerJob": 1, + "computePolicies": [{ + "name": "test_policy", + "properties": { + "objectId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", + "objectType": "User", + "maxDegreeOfParallelismPerJob": 1, + "minPriorityPerJob": 1 + } + }] + } + } + } + } +} diff --git a/specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/2016-11-01/examples/Adla_Account_List.json b/specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/2016-11-01/examples/Adla_Account_List.json new file mode 100644 index 000000000000..02a13bbd70fd --- /dev/null +++ b/specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/2016-11-01/examples/Adla_Account_List.json @@ -0,0 +1,82 @@ +{ + "parameters": { + "api-version": "2016-11-01", + "subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", + "$filter": "test_filter", + "$top": 1, + "$skip": 1, + "$select": "test_select", + "$orderby": "test_orderby", + "$count": false + }, + "responses": { + "200": { + "body": { + "value": [{ + "id": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", + "name": "test_account", + "type": "test_type", + "location": "test_location", + "tags": { + "test_key": "test_value" + }, + "properties": { + "provisioningState": "Succeeded", + "state": "Active", + "defaultDataLakeStoreAccount": "test_account", + "maxDegreeOfParallelism": 30, + "queryStoreRetention": 30, + "maxJobCount": 3, + "systemMaxDegreeOfParallelism": 1, + "systemMaxJobCount": 1, + "dataLakeStoreAccounts": [{ + "id": "test_adls_id", + "name": "test_adls", + "type": "test_type", + "properties": { + "suffix": "test_suffix" + } + }], + "storageAccounts": [{ + "id": "test_storage_id", + "name": "test_storage", + "type": "test_type", + "properties": { + "accessKey": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab346", + "suffix": "test_suffix" + } + }], + "creationTime": "2017-04-14T13:21:56.6819037-07:00", + "lastModifiedTime": "2017-04-14T13:21:56.6819037-07:00", + "endpoint": "test_endpoint", + "newTier": "Consumption", + "currentTier": "Consumption", + "firewallState": "Enabled", + "firewallAllowAzureIps": "Enabled", + "firewallRules": [{ + "id": "test_firewall_id", + "name": "test_rule", + "type": "test_type", + "properties": { + "startIpAddress": "1.1.1.1", + "endIpAddress": "2.2.2.2" + } + }], + "maxDegreeOfParallelismPerJob": 1, + "minPriorityPerJob": 1, + "computePolicies": [{ + "name": "test_policy", + "properties": { + "objectId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", + "objectType": "User", + "maxDegreeOfParallelismPerJob": 1, + "minPriorityPerJob": 1 + } + }] + } + }], + "nextLink": "https://management.azure.com/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/contosorg/providers/Microsoft.DataLakeAnalytics/accounts/contosoadla/jobPolicies?api-version=2016-11-01&%24skiptoken=" + } + } + } +} diff --git a/specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/2016-11-01/examples/Adla_Account_ListByResourceGroup.json b/specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/2016-11-01/examples/Adla_Account_ListByResourceGroup.json new file mode 100644 index 000000000000..13895a21dd98 --- /dev/null +++ b/specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/2016-11-01/examples/Adla_Account_ListByResourceGroup.json @@ -0,0 +1,83 @@ +{ + "parameters": { + "api-version": "2016-11-01", + "subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", + "resourceGroupName": "contosorg", + "$filter": "test_filter", + "$top": 1, + "$skip": 1, + "$select": "test_select", + "$orderby": "test_orderby", + "$count": false + }, + "responses": { + "200": { + "body": { + "value": [{ + "id": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", + "name": "test_account", + "type": "test_type", + "location": "test_location", + "tags": { + "test_key": "test_value" + }, + "properties": { + "provisioningState": "Succeeded", + "state": "Active", + "defaultDataLakeStoreAccount": "test_account", + "maxDegreeOfParallelism": 30, + "queryStoreRetention": 30, + "maxJobCount": 3, + "systemMaxDegreeOfParallelism": 1, + "systemMaxJobCount": 1, + "dataLakeStoreAccounts": [{ + "id": "test_adls_id", + "name": "test_adls", + "type": "test_type", + "properties": { + "suffix": "test_suffix" + } + }], + "storageAccounts": [{ + "id": "test_storage_id", + "name": "test_storage", + "type": "test_type", + "properties": { + "accessKey": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab346", + "suffix": "test_suffix" + } + }], + "creationTime": "2017-04-14T13:21:56.6819037-07:00", + "lastModifiedTime": "2017-04-14T13:21:56.6819037-07:00", + "endpoint": "test_endpoint", + "newTier": "Consumption", + "currentTier": "Consumption", + "firewallState": "Enabled", + "firewallAllowAzureIps": "Enabled", + "firewallRules": [{ + "id": "test_firewall_id", + "name": "test_rule", + "type": "test_type", + "properties": { + "startIpAddress": "1.1.1.1", + "endIpAddress": "2.2.2.2" + } + }], + "maxDegreeOfParallelismPerJob": 1, + "minPriorityPerJob": 1, + "computePolicies": [{ + "name": "test_policy", + "properties": { + "objectId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", + "objectType": "User", + "maxDegreeOfParallelismPerJob": 1, + "minPriorityPerJob": 1 + } + }] + } + }], + "nextLink": "https://management.azure.com/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/contosorg/providers/Microsoft.DataLakeAnalytics/accounts/contosoadla/jobPolicies?api-version=2016-11-01&%24skiptoken=" + } + } + } +} diff --git a/specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/2016-11-01/examples/Adla_Account_Update.json b/specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/2016-11-01/examples/Adla_Account_Update.json new file mode 100644 index 000000000000..9d392d9bf58d --- /dev/null +++ b/specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/2016-11-01/examples/Adla_Account_Update.json @@ -0,0 +1,173 @@ +{ + "parameters": { + "api-version": "2016-11-01", + "subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", + "resourceGroupName": "contosorg", + "accountName": "contosoadla", + "parameters": { + "tags": { + "test_key": "test_value" + }, + "properties": { + "maxDegreeOfParallelism": 1, + "queryStoreRetention": 1, + "maxJobCount": 1, + "newTier": "Consumption", + "firewallState": "Enabled", + "firewallAllowAzureIps": "Enabled", + "firewallRules": [{ + "id": "test_firewall_id", + "name": "test_rule", + "type": "test_type", + "properties": { + "startIpAddress": "1.1.1.1", + "endIpAddress": "2.2.2.2" + } + }], + "maxDegreeOfParallelismPerJob": 1, + "minPriorityPerJob": 1, + "computePolicies": [{ + "name": "test_policy", + "properties": { + "objectId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", + "objectType": "User", + "maxDegreeOfParallelismPerJob": 1, + "minPriorityPerJob": 1 + } + }] + } + } + }, + "responses": { + "200": { + "body": { + "id": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", + "name": "test_account", + "type": "test_type", + "location": "test_location", + "tags": { + "test_key": "test_value" + }, + "properties": { + "provisioningState": "Succeeded", + "state": "Active", + "defaultDataLakeStoreAccount": "test_account", + "maxDegreeOfParallelism": 30, + "queryStoreRetention": 30, + "maxJobCount": 3, + "systemMaxDegreeOfParallelism": 1, + "systemMaxJobCount": 1, + "dataLakeStoreAccounts": [{ + "id": "test_adls_id", + "name": "test_adls", + "type": "test_type", + "properties": { + "suffix": "test_suffix" + } + }], + "storageAccounts": [{ + "id": "test_storage_id", + "name": "test_storage", + "type": "test_type", + "properties": { + "accessKey": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab346", + "suffix": "test_suffix" + } + }], + "creationTime": "2017-04-14T13:21:56.6819037-07:00", + "lastModifiedTime": "2017-04-14T13:21:56.6819037-07:00", + "endpoint": "test_endpoint", + "newTier": "Consumption", + "currentTier": "Consumption", + "firewallState": "Enabled", + "firewallAllowAzureIps": "Enabled", + "firewallRules": [{ + "id": "test_firewall_id", + "name": "test_rule", + "type": "test_type", + "properties": { + "startIpAddress": "1.1.1.1", + "endIpAddress": "2.2.2.2" + } + }], + "maxDegreeOfParallelismPerJob": 1, + "minPriorityPerJob": 1, + "computePolicies": [{ + "name": "test_policy", + "properties": { + "objectId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", + "objectType": "User", + "maxDegreeOfParallelismPerJob": 1, + "minPriorityPerJob": 1 + } + }] + } + } + }, + "201": { + "body": { + "id": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", + "name": "test_account", + "type": "test_type", + "location": "test_location", + "tags": { + "test_key": "test_value" + }, + "properties": { + "provisioningState": "Succeeded", + "state": "Active", + "defaultDataLakeStoreAccount": "test_account", + "maxDegreeOfParallelism": 30, + "queryStoreRetention": 30, + "maxJobCount": 3, + "systemMaxDegreeOfParallelism": 1, + "systemMaxJobCount": 1, + "dataLakeStoreAccounts": [{ + "id": "test_adls_id", + "name": "test_adls", + "type": "test_type", + "properties": { + "suffix": "test_suffix" + } + }], + "storageAccounts": [{ + "id": "test_storage_id", + "name": "test_storage", + "type": "test_type", + "properties": { + "accessKey": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab346", + "suffix": "test_suffix" + } + }], + "creationTime": "2017-04-14T13:21:56.6819037-07:00", + "lastModifiedTime": "2017-04-14T13:21:56.6819037-07:00", + "endpoint": "test_endpoint", + "newTier": "Consumption", + "currentTier": "Consumption", + "firewallState": "Enabled", + "firewallAllowAzureIps": "Enabled", + "firewallRules": [{ + "id": "test_firewall_id", + "name": "test_rule", + "type": "test_type", + "properties": { + "startIpAddress": "1.1.1.1", + "endIpAddress": "2.2.2.2" + } + }], + "maxDegreeOfParallelismPerJob": 1, + "minPriorityPerJob": 1, + "computePolicies": [{ + "name": "test_policy", + "properties": { + "objectId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", + "objectType": "User", + "maxDegreeOfParallelismPerJob": 1, + "minPriorityPerJob": 1 + } + }] + } + } + } + } +} diff --git a/specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/2016-11-01/examples/AdlaComputePolicyCreateUpdate.json b/specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/2016-11-01/examples/Adla_ComputePolicies_CreateOrUpdate.json similarity index 90% rename from specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/2016-11-01/examples/AdlaComputePolicyCreateUpdate.json rename to specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/2016-11-01/examples/Adla_ComputePolicies_CreateOrUpdate.json index 2871b2957601..0c2a7f5e1964 100644 --- a/specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/2016-11-01/examples/AdlaComputePolicyCreateUpdate.json +++ b/specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/2016-11-01/examples/Adla_ComputePolicies_CreateOrUpdate.json @@ -1,10 +1,10 @@ { "parameters": { "api-version": "2016-11-01", - "computePolicyName": "testpolicy", + "subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", "resourceGroupName": "contosorg", "accountName": "contosoadla", - "subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", + "computePolicyName": "test_policy", "parameters": { "properties": { "objectId": "776b9091-8916-4638-87f7-9c989a38da98", @@ -17,7 +17,7 @@ "responses": { "200": { "body": { - "name": "testpolicy", + "name": "test_policy", "properties": { "objectId": "776b9091-8916-4638-87f7-9c989a38da98", "objectType": "User", @@ -27,4 +27,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/2016-11-01/examples/Adla_ComputePolicies_Delete.json b/specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/2016-11-01/examples/Adla_ComputePolicies_Delete.json new file mode 100644 index 000000000000..ef4331040ff4 --- /dev/null +++ b/specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/2016-11-01/examples/Adla_ComputePolicies_Delete.json @@ -0,0 +1,15 @@ +{ + "parameters": { + "api-version": "2016-11-01", + "subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", + "resourceGroupName": "contosorg", + "accountName": "contosoadla", + "computePolicyName": "test_policy" + }, + "responses": { + "200": { + }, + "204": { + } + } +} diff --git a/specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/2016-11-01/examples/AdlaComputePolicyGet.json b/specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/2016-11-01/examples/Adla_ComputePolicies_Get.json similarity index 80% rename from specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/2016-11-01/examples/AdlaComputePolicyGet.json rename to specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/2016-11-01/examples/Adla_ComputePolicies_Get.json index f211da11ea6f..c5eba4e3f678 100644 --- a/specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/2016-11-01/examples/AdlaComputePolicyGet.json +++ b/specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/2016-11-01/examples/Adla_ComputePolicies_Get.json @@ -1,22 +1,22 @@ { "parameters": { "api-version": "2016-11-01", - "computePolicyName": "testpolicy", + "subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", "resourceGroupName": "contosorg", "accountName": "contosoadla", - "subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345" + "computePolicyName": "test_policy" }, "responses": { "200": { "body": { - "name": "testpolicy", + "name": "test_policy", "properties": { "objectId": "776b9091-8916-4638-87f7-9c989a38da98", "objectType": "User", "maxDegreeOfParallelismPerJob": 10, - "minPriority": 30 + "minPriorityPerJob": 30 } } } } -} \ No newline at end of file +} diff --git a/specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/2016-11-01/examples/AdlaComputePolicyList.json b/specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/2016-11-01/examples/Adla_ComputePolicies_ListByAccount.json similarity index 80% rename from specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/2016-11-01/examples/AdlaComputePolicyList.json rename to specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/2016-11-01/examples/Adla_ComputePolicies_ListByAccount.json index 395cf1085331..84e157f00fff 100644 --- a/specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/2016-11-01/examples/AdlaComputePolicyList.json +++ b/specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/2016-11-01/examples/Adla_ComputePolicies_ListByAccount.json @@ -1,43 +1,42 @@ { "parameters": { "api-version": "2016-11-01", - "computePolicyName": "testpolicy", + "subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", "resourceGroupName": "contosorg", - "accountName": "contosoadla", - "subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345" + "accountName": "contosoadla" }, "responses": { "200": { "body": { "value": [{ - "name": "testpolicy", + "name": "test_policy", "properties": { "objectId": "776b9091-8916-4638-87f7-9c989a38da98", "objectType": "User", "maxDegreeOfParallelismPerJob": 10, - "minPriority": 30 + "minPriorityPerJob": 30 } }, { - "name": "testpolicy1", + "name": "test_policy1", "properties": { "objectId": "776b9091-8916-4638-87f7-9c989a38da99", - "objectType": "ServicePrincipal", + "objectType": "Group", "maxDegreeOfParallelismPerJob": 5, - "minPriority": 15 + "minPriorityPerJob": 15 } }, { - "name": "testpolicy2", + "name": "test_policy2", "properties": { "objectId": "776b9091-8916-4638-87f7-9c989a38da97", - "objectType": "Group", + "objectType": "ServicePrincipal", "maxDegreeOfParallelismPerJob": 20, - "minPriority": 60 + "minPriorityPerJob": 60 } }], "nextLink": "https://management.azure.com/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/contosorg/providers/Microsoft.DataLakeAnalytics/accounts/contosoadla/jobPolicies?api-version=2016-11-01&%24skiptoken=" } } } -} \ No newline at end of file +} diff --git a/specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/2016-11-01/examples/AdlaComputePolicyUpdate.json b/specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/2016-11-01/examples/Adla_ComputePolicies_Update.json similarity index 79% rename from specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/2016-11-01/examples/AdlaComputePolicyUpdate.json rename to specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/2016-11-01/examples/Adla_ComputePolicies_Update.json index 2f9bdf36ffdd..96829136040b 100644 --- a/specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/2016-11-01/examples/AdlaComputePolicyUpdate.json +++ b/specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/2016-11-01/examples/Adla_ComputePolicies_Update.json @@ -1,28 +1,28 @@ { "parameters": { "api-version": "2016-11-01", - "computePolicyName": "testpolicy", + "subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", "resourceGroupName": "contosorg", "accountName": "contosoadla", - "subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", + "computePolicyName": "test_policy", "parameters": { "properties": { "maxDegreeOfParallelismPerJob": 11, - "minPriority": 31 + "minPriorityPerJob": 31 } } }, "responses": { "200": { "body": { - "name": "testpolicy", + "name": "test_policy", "properties": { "objectId": "776b9091-8916-4638-87f7-9c989a38da98", "objectType": "User", "maxDegreeOfParallelismPerJob": 11, - "minPriority": 31 + "minPriorityPerJob": 31 } } } } -} \ No newline at end of file +} diff --git a/specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/2016-11-01/examples/Adla_DataLakeStoreAccounts_Add.json b/specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/2016-11-01/examples/Adla_DataLakeStoreAccounts_Add.json new file mode 100644 index 000000000000..a8bac50059fe --- /dev/null +++ b/specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/2016-11-01/examples/Adla_DataLakeStoreAccounts_Add.json @@ -0,0 +1,18 @@ +{ + "parameters": { + "api-version": "2016-11-01", + "subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", + "resourceGroupName": "contosorg", + "accountName": "contosoadla", + "dataLakeStoreAccountName": "test_adls_account", + "parameters": { + "properties": { + "suffix": "test_suffix" + } + } + }, + "responses": { + "200": { + } + } +} diff --git a/specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/2016-11-01/examples/Adla_DataLakeStoreAccounts_Delete.json b/specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/2016-11-01/examples/Adla_DataLakeStoreAccounts_Delete.json new file mode 100644 index 000000000000..d8df893ea83b --- /dev/null +++ b/specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/2016-11-01/examples/Adla_DataLakeStoreAccounts_Delete.json @@ -0,0 +1,13 @@ +{ + "parameters": { + "api-version": "2016-11-01", + "subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", + "resourceGroupName": "contosorg", + "accountName": "contosoadla", + "dataLakeStoreAccountName": "test_adls_account" + }, + "responses": { + "200": { + } + } +} diff --git a/specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/2016-11-01/examples/Adla_DataLakeStoreAccounts_Get.json b/specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/2016-11-01/examples/Adla_DataLakeStoreAccounts_Get.json new file mode 100644 index 000000000000..8aaebd713c14 --- /dev/null +++ b/specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/2016-11-01/examples/Adla_DataLakeStoreAccounts_Get.json @@ -0,0 +1,21 @@ +{ + "parameters": { + "api-version": "2016-11-01", + "subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", + "resourceGroupName": "contosorg", + "accountName": "contosoadla", + "dataLakeStoreAccountName": "test_adls_account" + }, + "responses": { + "200": { + "body": { + "id": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", + "name": "test_adls", + "type": "test_type", + "properties": { + "suffix": "test_suffix" + } + } + } + } +} diff --git a/specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/2016-11-01/examples/Adla_DataLakeStoreAccounts_ListByAccount.json b/specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/2016-11-01/examples/Adla_DataLakeStoreAccounts_ListByAccount.json new file mode 100644 index 000000000000..75fc6588bd81 --- /dev/null +++ b/specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/2016-11-01/examples/Adla_DataLakeStoreAccounts_ListByAccount.json @@ -0,0 +1,29 @@ +{ + "parameters": { + "api-version": "2016-11-01", + "subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", + "resourceGroupName": "contosorg", + "accountName": "contosoadla", + "$filter": "test_filter", + "$top": 1, + "$skip": 1, + "$select": "test_select", + "$orderby": "test_orderby", + "$count": false + }, + "responses": { + "200": { + "body": { + "value": [{ + "id": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", + "name": "test_adls", + "type": "test_type", + "properties": { + "suffix": "test_suffix" + } + }], + "nextLink": "https://management.azure.com/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/contosorg/providers/Microsoft.DataLakeAnalytics/accounts/contosoadla/jobPolicies?api-version=2016-11-01&%24skiptoken=" + } + } + } +} diff --git a/specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/2016-11-01/examples/Adla_FirewallRules_CreateOrUpdate.json b/specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/2016-11-01/examples/Adla_FirewallRules_CreateOrUpdate.json new file mode 100644 index 000000000000..ffa9d125c693 --- /dev/null +++ b/specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/2016-11-01/examples/Adla_FirewallRules_CreateOrUpdate.json @@ -0,0 +1,29 @@ +{ + "parameters": { + "api-version": "2016-11-01", + "subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", + "resourceGroupName": "contosorg", + "accountName": "contosoadla", + "firewallRuleName": "test_rule", + "parameters": { + "name": "test_rule", + "properties": { + "startIpAddress": "1.1.1.1", + "endIpAddress": "2.2.2.2" + } + } + }, + "responses": { + "200": { + "body": { + "id": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", + "name": "test_rule", + "type": "test_type", + "properties": { + "startIpAddress": "1.1.1.1", + "endIpAddress": "2.2.2.2" + } + } + } + } +} diff --git a/specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/2016-11-01/examples/Adla_FirewallRules_Delete.json b/specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/2016-11-01/examples/Adla_FirewallRules_Delete.json new file mode 100644 index 000000000000..53cac4aaabaf --- /dev/null +++ b/specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/2016-11-01/examples/Adla_FirewallRules_Delete.json @@ -0,0 +1,15 @@ +{ + "parameters": { + "api-version": "2016-11-01", + "subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", + "resourceGroupName": "contosorg", + "accountName": "contosoadla", + "firewallRuleName": "test_rule" + }, + "responses": { + "200": { + }, + "204": { + } + } +} diff --git a/specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/2016-11-01/examples/Adla_FirewallRules_Get.json b/specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/2016-11-01/examples/Adla_FirewallRules_Get.json new file mode 100644 index 000000000000..137b32e4246d --- /dev/null +++ b/specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/2016-11-01/examples/Adla_FirewallRules_Get.json @@ -0,0 +1,22 @@ +{ + "parameters": { + "api-version": "2016-11-01", + "subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", + "resourceGroupName": "contosorg", + "accountName": "contosoadla", + "firewallRuleName": "test_rule" + }, + "responses": { + "200": { + "body": { + "id": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", + "name": "test_rule", + "type": "test_type", + "properties": { + "startIpAddress": "1.1.1.1", + "endIpAddress": "2.2.2.2" + } + } + } + } +} diff --git a/specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/2016-11-01/examples/Adla_FirewallRules_ListByAccount.json b/specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/2016-11-01/examples/Adla_FirewallRules_ListByAccount.json new file mode 100644 index 000000000000..20bbfa6262fb --- /dev/null +++ b/specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/2016-11-01/examples/Adla_FirewallRules_ListByAccount.json @@ -0,0 +1,24 @@ +{ + "parameters": { + "api-version": "2016-11-01", + "subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", + "resourceGroupName": "contosorg", + "accountName": "contosoadla" + }, + "responses": { + "200": { + "body": { + "value": [{ + "id": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", + "name": "test_rule", + "type": "test_type", + "properties": { + "startIpAddress": "1.1.1.1", + "endIpAddress": "2.2.2.2" + } + }], + "nextLink": "https://management.azure.com/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/contosorg/providers/Microsoft.DataLakeAnalytics/accounts/contosoadla/jobPolicies?api-version=2016-11-01&%24skiptoken=" + } + } + } +} diff --git a/specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/2016-11-01/examples/Adla_FirewallRules_Update.json b/specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/2016-11-01/examples/Adla_FirewallRules_Update.json new file mode 100644 index 000000000000..78b55e76537e --- /dev/null +++ b/specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/2016-11-01/examples/Adla_FirewallRules_Update.json @@ -0,0 +1,28 @@ +{ + "parameters": { + "api-version": "2016-11-01", + "subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", + "resourceGroupName": "contosorg", + "accountName": "contosoadla", + "firewallRuleName": "test_rule", + "parameters": { + "properties": { + "startIpAddress": "1.1.1.1", + "endIpAddress": "2.2.2.2" + } + } + }, + "responses": { + "200": { + "body": { + "id": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", + "name": "test_rule", + "type": "test_type", + "properties": { + "startIpAddress": "1.1.1.1", + "endIpAddress": "2.2.2.2" + } + } + } + } +} diff --git a/specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/2016-11-01/examples/Adla_StorageAccounts_Add.json b/specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/2016-11-01/examples/Adla_StorageAccounts_Add.json new file mode 100644 index 000000000000..631c6f8fb1f3 --- /dev/null +++ b/specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/2016-11-01/examples/Adla_StorageAccounts_Add.json @@ -0,0 +1,19 @@ +{ + "parameters": { + "api-version": "2016-11-01", + "subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", + "resourceGroupName": "contosorg", + "accountName": "contosoadla", + "storageAccountName": "test_storage", + "parameters": { + "properties": { + "accessKey": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab346", + "suffix": "test_suffix" + } + } + }, + "responses": { + "200": { + } + } +} diff --git a/specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/2016-11-01/examples/Adla_StorageAccounts_Delete.json b/specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/2016-11-01/examples/Adla_StorageAccounts_Delete.json new file mode 100644 index 000000000000..4bbfc5535080 --- /dev/null +++ b/specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/2016-11-01/examples/Adla_StorageAccounts_Delete.json @@ -0,0 +1,13 @@ +{ + "parameters": { + "api-version": "2016-11-01", + "subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", + "resourceGroupName": "contosorg", + "accountName": "contosoadla", + "storageAccountName": "test_storage" + }, + "responses": { + "200": { + } + } +} diff --git a/specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/2016-11-01/examples/Adla_StorageAccounts_Get.json b/specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/2016-11-01/examples/Adla_StorageAccounts_Get.json new file mode 100644 index 000000000000..58ac607d5f18 --- /dev/null +++ b/specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/2016-11-01/examples/Adla_StorageAccounts_Get.json @@ -0,0 +1,22 @@ +{ + "parameters": { + "api-version": "2016-11-01", + "subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", + "resourceGroupName": "contosorg", + "accountName": "contosoadla", + "storageAccountName": "test_storage" + }, + "responses": { + "200": { + "body": { + "id": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", + "name": "test_storage", + "type": "test_type", + "properties": { + "accessKey": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab346", + "suffix": "test_suffix" + } + } + } + } +} diff --git a/specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/2016-11-01/examples/Adla_StorageAccounts_GetStorageContainer.json b/specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/2016-11-01/examples/Adla_StorageAccounts_GetStorageContainer.json new file mode 100644 index 000000000000..74715e0a2159 --- /dev/null +++ b/specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/2016-11-01/examples/Adla_StorageAccounts_GetStorageContainer.json @@ -0,0 +1,22 @@ +{ + "parameters": { + "api-version": "2016-11-01", + "subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", + "resourceGroupName": "contosorg", + "accountName": "contosoadla", + "storageAccountName": "test_storage", + "containerName": "test_container" + }, + "responses": { + "200": { + "body": { + "id": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", + "name": "test_storage", + "type": "test_type", + "properties": { + "lastModifiedTime": "2017-04-14T13:21:56.6819037-07:00" + } + } + } + } +} diff --git a/specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/2016-11-01/examples/Adla_StorageAccounts_ListByAccount.json b/specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/2016-11-01/examples/Adla_StorageAccounts_ListByAccount.json new file mode 100644 index 000000000000..3b227d25a13f --- /dev/null +++ b/specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/2016-11-01/examples/Adla_StorageAccounts_ListByAccount.json @@ -0,0 +1,30 @@ +{ + "parameters": { + "api-version": "2016-11-01", + "subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", + "resourceGroupName": "contosorg", + "accountName": "contosoadla", + "$filter": "test_filter", + "$top": 1, + "$skip": 1, + "$select": "test_select", + "$orderby": "test_orderby", + "$count": false + }, + "responses": { + "200": { + "body": { + "value": [{ + "id": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", + "name": "test_storage", + "type": "test_type", + "properties": { + "accessKey": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab346", + "suffix": "test_suffix" + } + }], + "nextLink": "https://management.azure.com/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/contosorg/providers/Microsoft.DataLakeAnalytics/accounts/contosoadla/jobPolicies?api-version=2016-11-01&%24skiptoken=" + } + } + } +} diff --git a/specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/2016-11-01/examples/Adla_StorageAccounts_ListSasTokens.json b/specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/2016-11-01/examples/Adla_StorageAccounts_ListSasTokens.json new file mode 100644 index 000000000000..7be802bcac66 --- /dev/null +++ b/specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/2016-11-01/examples/Adla_StorageAccounts_ListSasTokens.json @@ -0,0 +1,20 @@ +{ + "parameters": { + "api-version": "2016-11-01", + "subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", + "resourceGroupName": "contosorg", + "accountName": "contosoadla", + "storageAccountName": "test_storage", + "containerName": "test_container" + }, + "responses": { + "200": { + "body": { + "value": [{ + "accessToken": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab346" + }], + "nextLink": "https://management.azure.com/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/contosorg/providers/Microsoft.DataLakeAnalytics/accounts/contosoadla/jobPolicies?api-version=2016-11-01&%24skiptoken=" + } + } + } +} diff --git a/specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/2016-11-01/examples/Adla_StorageAccounts_ListStorageContainers.json b/specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/2016-11-01/examples/Adla_StorageAccounts_ListStorageContainers.json new file mode 100644 index 000000000000..573524d96bc4 --- /dev/null +++ b/specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/2016-11-01/examples/Adla_StorageAccounts_ListStorageContainers.json @@ -0,0 +1,24 @@ +{ + "parameters": { + "api-version": "2016-11-01", + "subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", + "resourceGroupName": "contosorg", + "accountName": "contosoadla", + "storageAccountName": "test_storage" + }, + "responses": { + "200": { + "body": { + "value": [{ + "id": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", + "name": "test_storage", + "type": "test_type", + "properties": { + "lastModifiedTime": "2017-04-14T13:21:56.6819037-07:00" + } + }], + "nextLink": "https://management.azure.com/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/contosorg/providers/Microsoft.DataLakeAnalytics/accounts/contosoadla/jobPolicies?api-version=2016-11-01&%24skiptoken=" + } + } + } +} diff --git a/specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/2016-11-01/examples/Adla_StorageAccounts_Update.json b/specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/2016-11-01/examples/Adla_StorageAccounts_Update.json new file mode 100644 index 000000000000..631c6f8fb1f3 --- /dev/null +++ b/specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/2016-11-01/examples/Adla_StorageAccounts_Update.json @@ -0,0 +1,19 @@ +{ + "parameters": { + "api-version": "2016-11-01", + "subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", + "resourceGroupName": "contosorg", + "accountName": "contosoadla", + "storageAccountName": "test_storage", + "parameters": { + "properties": { + "accessKey": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab346", + "suffix": "test_suffix" + } + } + }, + "responses": { + "200": { + } + } +} diff --git a/specification/datalake-store/data-plane/Microsoft.DataLakeStore/2016-11-01/examples/Adls_FileSystem_Append.json b/specification/datalake-store/data-plane/Microsoft.DataLakeStore/2016-11-01/examples/Adls_FileSystem_Append.json new file mode 100644 index 000000000000..59c89d72e4f9 --- /dev/null +++ b/specification/datalake-store/data-plane/Microsoft.DataLakeStore/2016-11-01/examples/Adls_FileSystem_Append.json @@ -0,0 +1,17 @@ +{ + "parameters": { + "api-version": "2016-11-01", + "path": "/test_file_path", + "streamContents": "This is actually a byte stream. This request/response is being presented as a string for readability in the example", + "offset": 1, + "syncFlag": "DATA", + "leaseId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", + "fileSessionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab346", + "append": "true", + "op": "APPEND" + }, + "responses": { + "200": { + } + } +} diff --git a/specification/datalake-store/data-plane/Microsoft.DataLakeStore/2016-11-01/examples/Adls_FileSystem_CheckAccess.json b/specification/datalake-store/data-plane/Microsoft.DataLakeStore/2016-11-01/examples/Adls_FileSystem_CheckAccess.json new file mode 100644 index 000000000000..d8315fe27acc --- /dev/null +++ b/specification/datalake-store/data-plane/Microsoft.DataLakeStore/2016-11-01/examples/Adls_FileSystem_CheckAccess.json @@ -0,0 +1,12 @@ +{ + "parameters": { + "api-version": "2016-11-01", + "path": "/test_file_path", + "fsaction": "test_fsaction", + "op": "CHECKACCESS" + }, + "responses": { + "200": { + } + } +} diff --git a/specification/datalake-store/data-plane/Microsoft.DataLakeStore/2016-11-01/examples/Adls_FileSystem_Concat.json b/specification/datalake-store/data-plane/Microsoft.DataLakeStore/2016-11-01/examples/Adls_FileSystem_Concat.json new file mode 100644 index 000000000000..031b683b3c04 --- /dev/null +++ b/specification/datalake-store/data-plane/Microsoft.DataLakeStore/2016-11-01/examples/Adls_FileSystem_Concat.json @@ -0,0 +1,15 @@ +{ + "parameters": { + "api-version": "2016-11-01", + "path": "/test_file_path", + "sources": [ + "test_source_1", + "test_source_2" + ], + "op": "CONCAT" + }, + "responses": { + "200": { + } + } +} diff --git a/specification/datalake-store/data-plane/Microsoft.DataLakeStore/2016-11-01/examples/Adls_FileSystem_ConcurrentAppend.json b/specification/datalake-store/data-plane/Microsoft.DataLakeStore/2016-11-01/examples/Adls_FileSystem_ConcurrentAppend.json new file mode 100644 index 000000000000..ca731d46659b --- /dev/null +++ b/specification/datalake-store/data-plane/Microsoft.DataLakeStore/2016-11-01/examples/Adls_FileSystem_ConcurrentAppend.json @@ -0,0 +1,15 @@ +{ + "parameters": { + "api-version": "2016-11-01", + "path": "/test_file_path", + "streamContents": "This is actually a byte stream. This request/response is being presented as a string for readability in the example", + "appendMode": "autocreate", + "op": "CONCURRENTAPPEND", + "Transfer-Encoding": "chunked", + "syncFlag": "DATA" + }, + "responses": { + "200": { + } + } +} diff --git a/specification/datalake-store/data-plane/Microsoft.DataLakeStore/2016-11-01/examples/Adls_FileSystem_Create.json b/specification/datalake-store/data-plane/Microsoft.DataLakeStore/2016-11-01/examples/Adls_FileSystem_Create.json new file mode 100644 index 000000000000..588d2b2f60ea --- /dev/null +++ b/specification/datalake-store/data-plane/Microsoft.DataLakeStore/2016-11-01/examples/Adls_FileSystem_Create.json @@ -0,0 +1,17 @@ +{ + "parameters": { + "api-version": "2016-11-01", + "path": "/test_file_path", + "streamContents": { "test_key": "/test_file_path" }, + "overwrite": false, + "syncFlag": "DATA", + "leaseId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", + "permission": 1, + "write": "true", + "op": "CREATE" + }, + "responses": { + "201": { + } + } +} diff --git a/specification/datalake-store/data-plane/Microsoft.DataLakeStore/2016-11-01/examples/Adls_FileSystem_Delete.json b/specification/datalake-store/data-plane/Microsoft.DataLakeStore/2016-11-01/examples/Adls_FileSystem_Delete.json new file mode 100644 index 000000000000..bc791a72eee5 --- /dev/null +++ b/specification/datalake-store/data-plane/Microsoft.DataLakeStore/2016-11-01/examples/Adls_FileSystem_Delete.json @@ -0,0 +1,15 @@ +{ + "parameters": { + "api-version": "2016-11-01", + "path": "/test_file_path", + "recursive": false, + "op": "DELETE" + }, + "responses": { + "200": { + "body": { + "boolean": false + } + } + } +} diff --git a/specification/datalake-store/data-plane/Microsoft.DataLakeStore/2016-11-01/examples/Adls_FileSystem_GetAclStatus.json b/specification/datalake-store/data-plane/Microsoft.DataLakeStore/2016-11-01/examples/Adls_FileSystem_GetAclStatus.json new file mode 100644 index 000000000000..b3a37e905080 --- /dev/null +++ b/specification/datalake-store/data-plane/Microsoft.DataLakeStore/2016-11-01/examples/Adls_FileSystem_GetAclStatus.json @@ -0,0 +1,22 @@ +{ + "parameters": { + "api-version": "2016-11-01", + "path": "/test_file_path", + "tooId": false, + "op": "GETACLSTATUS" + }, + "responses": { + "200": { + "AclStatus": { + "entries": [ + "test_entry_1", + "test_entry_2" + ], + "group": "test_group", + "owner": "test_owner", + "permission": 1, + "stickyBit": false + } + } + } +} diff --git a/specification/datalake-store/data-plane/Microsoft.DataLakeStore/2016-11-01/examples/Adls_FileSystem_GetContentSummary.json b/specification/datalake-store/data-plane/Microsoft.DataLakeStore/2016-11-01/examples/Adls_FileSystem_GetContentSummary.json new file mode 100644 index 000000000000..1c9ec261eb43 --- /dev/null +++ b/specification/datalake-store/data-plane/Microsoft.DataLakeStore/2016-11-01/examples/Adls_FileSystem_GetContentSummary.json @@ -0,0 +1,19 @@ +{ + "parameters": { + "api-version": "2016-11-01", + "path": "/test_file_path", + "op": "GETCONTENTSUMMARY" + }, + "responses": { + "200": { + "body": { + "ContentSummary": { + "directoryCount": 1, + "fileCount": 1, + "length": 1, + "spaceConsumed": 1 + } + } + } + } +} diff --git a/specification/datalake-store/data-plane/Microsoft.DataLakeStore/2016-11-01/examples/Adls_FileSystem_GetFileStatus.json b/specification/datalake-store/data-plane/Microsoft.DataLakeStore/2016-11-01/examples/Adls_FileSystem_GetFileStatus.json new file mode 100644 index 000000000000..ef1c611aa413 --- /dev/null +++ b/specification/datalake-store/data-plane/Microsoft.DataLakeStore/2016-11-01/examples/Adls_FileSystem_GetFileStatus.json @@ -0,0 +1,28 @@ +{ + "parameters": { + "api-version": "2016-11-01", + "path": "/test_file_path", + "tooId": false, + "op": "GETFILESTATUS" + }, + "responses": { + "200": { + "body": { + "FileStatus": { + "accessTime": 1, + "blockSize": 1, + "childrenNum": 1, + "msExpirationTime": 1, + "group": "test_group", + "length": 1, + "modificationTime": 1, + "owner": "test_owner", + "pathSuffix": "test_path_suffix", + "permission": "test_permission", + "type": "FILE", + "aclBit": false + } + } + } + } +} diff --git a/specification/datalake-store/data-plane/Microsoft.DataLakeStore/2016-11-01/examples/Adls_FileSystem_ListFileStatus.json b/specification/datalake-store/data-plane/Microsoft.DataLakeStore/2016-11-01/examples/Adls_FileSystem_ListFileStatus.json new file mode 100644 index 000000000000..17913dfe7945 --- /dev/null +++ b/specification/datalake-store/data-plane/Microsoft.DataLakeStore/2016-11-01/examples/Adls_FileSystem_ListFileStatus.json @@ -0,0 +1,33 @@ +{ + "parameters": { + "api-version": "2016-11-01", + "path": "/test_file_path", + "listSize": 1, + "listAfter": "test_list_after", + "listBefore": "test_list_before", + "tooId": false, + "op": "LISTSTATUS" + }, + "responses": { + "200": { + "body": { + "FileStatuses": { + "FileStatus": [{ + "accessTime": 1, + "blockSize": 1, + "childrenNum": 1, + "msExpirationTime": 1, + "group": "test_group", + "length": 1, + "modificationTime": 1, + "owner": "test_owner", + "pathSuffix": "test_path_suffix", + "permission": "test_permission", + "type": "FILE", + "aclBit": false + }] + } + } + } + } +} diff --git a/specification/datalake-store/data-plane/Microsoft.DataLakeStore/2016-11-01/examples/Adls_FileSystem_Mkdirs.json b/specification/datalake-store/data-plane/Microsoft.DataLakeStore/2016-11-01/examples/Adls_FileSystem_Mkdirs.json new file mode 100644 index 000000000000..b8ccae0a8891 --- /dev/null +++ b/specification/datalake-store/data-plane/Microsoft.DataLakeStore/2016-11-01/examples/Adls_FileSystem_Mkdirs.json @@ -0,0 +1,15 @@ +{ + "parameters": { + "api-version": "2016-11-01", + "path": "/test_file_path", + "permission": 1, + "op": "MKDIRS" + }, + "responses": { + "200": { + "body": { + "boolean": false + } + } + } +} diff --git a/specification/datalake-store/data-plane/Microsoft.DataLakeStore/2016-11-01/examples/Adls_FileSystem_ModifyAclEntries.json b/specification/datalake-store/data-plane/Microsoft.DataLakeStore/2016-11-01/examples/Adls_FileSystem_ModifyAclEntries.json new file mode 100644 index 000000000000..bde401da3b02 --- /dev/null +++ b/specification/datalake-store/data-plane/Microsoft.DataLakeStore/2016-11-01/examples/Adls_FileSystem_ModifyAclEntries.json @@ -0,0 +1,12 @@ +{ + "parameters": { + "api-version": "2016-11-01", + "path": "/test_file_path", + "aclspec": "user:2666084e-edd4-4276-9a8c-d1024a5e3d94:rwx", + "op": "MODIFYACLENTRIES" + }, + "responses": { + "200": { + } + } +} diff --git a/specification/datalake-store/data-plane/Microsoft.DataLakeStore/2016-11-01/examples/Adls_FileSystem_MsConcat.json b/specification/datalake-store/data-plane/Microsoft.DataLakeStore/2016-11-01/examples/Adls_FileSystem_MsConcat.json new file mode 100644 index 000000000000..457f730817e7 --- /dev/null +++ b/specification/datalake-store/data-plane/Microsoft.DataLakeStore/2016-11-01/examples/Adls_FileSystem_MsConcat.json @@ -0,0 +1,13 @@ +{ + "parameters": { + "api-version": "2016-11-01", + "path": "/test_file_path", + "deleteSourceDirectory": false, + "streamContents": "sources=/file/path/1.txt,/file/path/2.txt,/file/path/lastfile.csv", + "op": "MSCONCAT" + }, + "responses": { + "200": { + } + } +} diff --git a/specification/datalake-store/data-plane/Microsoft.DataLakeStore/2016-11-01/examples/Adls_FileSystem_Open.json b/specification/datalake-store/data-plane/Microsoft.DataLakeStore/2016-11-01/examples/Adls_FileSystem_Open.json new file mode 100644 index 000000000000..1040ba6a5d35 --- /dev/null +++ b/specification/datalake-store/data-plane/Microsoft.DataLakeStore/2016-11-01/examples/Adls_FileSystem_Open.json @@ -0,0 +1,16 @@ +{ + "parameters": { + "api-version": "2016-11-01", + "path": "/test_file_path", + "length": 1, + "offset": 1, + "fileSessionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", + "read": "true", + "op": "OPEN" + }, + "responses": { + "200": { + "body": "This is actually a byte stream. This request/response is being presented as a string for readability in the example" + } + } +} diff --git a/specification/datalake-store/data-plane/Microsoft.DataLakeStore/2016-11-01/examples/Adls_FileSystem_RemoveAcl.json b/specification/datalake-store/data-plane/Microsoft.DataLakeStore/2016-11-01/examples/Adls_FileSystem_RemoveAcl.json new file mode 100644 index 000000000000..c81e9ac50824 --- /dev/null +++ b/specification/datalake-store/data-plane/Microsoft.DataLakeStore/2016-11-01/examples/Adls_FileSystem_RemoveAcl.json @@ -0,0 +1,11 @@ +{ + "parameters": { + "api-version": "2016-11-01", + "path": "/test_file_path", + "op": "REMOVEACL" + }, + "responses": { + "200": { + } + } +} \ No newline at end of file diff --git a/specification/datalake-store/data-plane/Microsoft.DataLakeStore/2016-11-01/examples/Adls_FileSystem_RemoveAclEntries.json b/specification/datalake-store/data-plane/Microsoft.DataLakeStore/2016-11-01/examples/Adls_FileSystem_RemoveAclEntries.json new file mode 100644 index 000000000000..2b4d5d9c2814 --- /dev/null +++ b/specification/datalake-store/data-plane/Microsoft.DataLakeStore/2016-11-01/examples/Adls_FileSystem_RemoveAclEntries.json @@ -0,0 +1,12 @@ +{ + "parameters": { + "api-version": "2016-11-01", + "path": "/test_file_path", + "aclspec": "user:2666084e-edd4-4276-9a8c-d1024a5e3d94", + "op": "REMOVEACLENTRIES" + }, + "responses": { + "200": { + } + } +} diff --git a/specification/datalake-store/data-plane/Microsoft.DataLakeStore/2016-11-01/examples/Adls_FileSystem_RemoveDefaultAcl.json b/specification/datalake-store/data-plane/Microsoft.DataLakeStore/2016-11-01/examples/Adls_FileSystem_RemoveDefaultAcl.json new file mode 100644 index 000000000000..b38ce9cb37a0 --- /dev/null +++ b/specification/datalake-store/data-plane/Microsoft.DataLakeStore/2016-11-01/examples/Adls_FileSystem_RemoveDefaultAcl.json @@ -0,0 +1,11 @@ +{ + "parameters": { + "api-version": "2016-11-01", + "path": "/test_file_path", + "op": "REMOVEDEFAULTACL" + }, + "responses": { + "200": { + } + } +} diff --git a/specification/datalake-store/data-plane/Microsoft.DataLakeStore/2016-11-01/examples/Adls_FileSystem_Rename.json b/specification/datalake-store/data-plane/Microsoft.DataLakeStore/2016-11-01/examples/Adls_FileSystem_Rename.json new file mode 100644 index 000000000000..a9da80a46d17 --- /dev/null +++ b/specification/datalake-store/data-plane/Microsoft.DataLakeStore/2016-11-01/examples/Adls_FileSystem_Rename.json @@ -0,0 +1,15 @@ +{ + "parameters": { + "api-version": "2016-11-01", + "path": "/test_file_path", + "destination": "/test_destination_path", + "op": "RENAME" + }, + "responses": { + "200": { + "body": { + "boolean": false + } + } + } +} diff --git a/specification/datalake-store/data-plane/Microsoft.DataLakeStore/2016-11-01/examples/Adls_FileSystem_SetAcl.json b/specification/datalake-store/data-plane/Microsoft.DataLakeStore/2016-11-01/examples/Adls_FileSystem_SetAcl.json new file mode 100644 index 000000000000..7238aacf7815 --- /dev/null +++ b/specification/datalake-store/data-plane/Microsoft.DataLakeStore/2016-11-01/examples/Adls_FileSystem_SetAcl.json @@ -0,0 +1,12 @@ +{ + "parameters": { + "api-version": "2016-11-01", + "path": "/test_file_path", + "aclspec": "user:2666084e-edd4-4276-9a8c-d1024a5e3d94:rwx", + "op": "SETACL" + }, + "responses": { + "200": { + } + } +} diff --git a/specification/datalake-store/data-plane/Microsoft.DataLakeStore/2016-11-01/examples/Adls_FileSystem_SetFileExpiry.json b/specification/datalake-store/data-plane/Microsoft.DataLakeStore/2016-11-01/examples/Adls_FileSystem_SetFileExpiry.json new file mode 100644 index 000000000000..ba3650bbe118 --- /dev/null +++ b/specification/datalake-store/data-plane/Microsoft.DataLakeStore/2016-11-01/examples/Adls_FileSystem_SetFileExpiry.json @@ -0,0 +1,13 @@ +{ + "parameters": { + "api-version": "2016-11-01", + "path": "/test_file_path", + "expiryOption": "NeverExpire", + "expireTime": 1, + "op": "SETEXPIRY" + }, + "responses": { + "200": { + } + } +} diff --git a/specification/datalake-store/data-plane/Microsoft.DataLakeStore/2016-11-01/examples/Adls_FileSystem_SetOwner.json b/specification/datalake-store/data-plane/Microsoft.DataLakeStore/2016-11-01/examples/Adls_FileSystem_SetOwner.json new file mode 100644 index 000000000000..3f62005d8524 --- /dev/null +++ b/specification/datalake-store/data-plane/Microsoft.DataLakeStore/2016-11-01/examples/Adls_FileSystem_SetOwner.json @@ -0,0 +1,13 @@ +{ + "parameters": { + "api-version": "2016-11-01", + "path": "/test_file_path", + "owner": "test_owner", + "group": "test_group", + "op": "SETOWNER" + }, + "responses": { + "200": { + } + } +} diff --git a/specification/datalake-store/data-plane/Microsoft.DataLakeStore/2016-11-01/examples/Adls_FileSystem_SetPermission.json b/specification/datalake-store/data-plane/Microsoft.DataLakeStore/2016-11-01/examples/Adls_FileSystem_SetPermission.json new file mode 100644 index 000000000000..4f8fc9f9e448 --- /dev/null +++ b/specification/datalake-store/data-plane/Microsoft.DataLakeStore/2016-11-01/examples/Adls_FileSystem_SetPermission.json @@ -0,0 +1,12 @@ +{ + "parameters": { + "api-version": "2016-11-01", + "path": "/test_file_path", + "permission": "rwx", + "op": "SETPERMISSION" + }, + "responses": { + "200": { + } + } +} diff --git a/specification/datalake-store/data-plane/Microsoft.DataLakeStore/2016-11-01/filesystem.json b/specification/datalake-store/data-plane/Microsoft.DataLakeStore/2016-11-01/filesystem.json index 0990798a648e..297a17155d77 100644 --- a/specification/datalake-store/data-plane/Microsoft.DataLakeStore/2016-11-01/filesystem.json +++ b/specification/datalake-store/data-plane/Microsoft.DataLakeStore/2016-11-01/filesystem.json @@ -34,7 +34,7 @@ "application/json" ], "paths": { - "/WebHdfsExt/{filePath}": { + "/WebHdfsExt/{path}": { "post": { "tags": [ "FileSystem" @@ -44,9 +44,12 @@ ], "operationId": "FileSystem_ConcurrentAppend", "description": "Appends to the specified file, optionally first creating the file if it does not yet exist. This method supports multiple concurrent appends to the file. NOTE: The target must not contain data added by Create or normal (serial) Append. ConcurrentAppend and Append cannot be used interchangeably; once a target file has been modified using either of these append options, the other append option cannot be used on the target file. ConcurrentAppend does not guarantee order and can result in duplicated data landing in the target file.", + "x-ms-examples": { + "Appends to the specified file, optionally first creating the file if it does not yet exist. This method supports multiple concurrent appends to the file. NOTE: The target must not contain data added by Create or normal (serial) Append. ConcurrentAppend and Append cannot be used interchangeably; once a target file has been modified using either of these append options, the other append option cannot be used on the target file. ConcurrentAppend does not guarantee order and can result in duplicated data landing in the target file": { "$ref": "./examples/Adls_FileSystem_ConcurrentAppend.json" } + }, "parameters": [ { - "name": "filePath", + "name": "path", "in": "path", "required": true, "type": "string", @@ -136,9 +139,12 @@ ], "operationId": "FileSystem_SetFileExpiry", "description": "Sets or removes the expiration time on the specified file. This operation can only be executed against files. Folders are not supported.", + "x-ms-examples": { + "Sets or removes the expiration time on the specified file. This operation can only be executed against files. Folders are not supported": { "$ref": "./examples/Adls_FileSystem_SetFileExpiry.json" } + }, "parameters": [ { - "name": "filePath", + "name": "path", "in": "path", "required": true, "type": "string", @@ -204,6 +210,9 @@ ], "operationId": "FileSystem_CheckAccess", "description": "Checks if the specified access is available at the given path.", + "x-ms-examples": { + "Checks if the specified access is available at the given path": { "$ref": "./examples/Adls_FileSystem_CheckAccess.json" } + }, "parameters": [ { "name": "path", @@ -245,13 +254,20 @@ } } } - }, + } + } + }, + "x-ms-paths": { + "/webhdfs/v1/{path}?op=MKDIRS": { "put": { "tags": [ "FileSystem" ], "operationId": "FileSystem_Mkdirs", "description": "Creates a directory.", + "x-ms-examples": { + "Creates a directory": { "$ref": "./examples/Adls_FileSystem_Mkdirs.json" } + }, "parameters": [ { "name": "path", @@ -299,16 +315,19 @@ } } }, - "/webhdfs/v1/{destinationPath}": { + "/webhdfs/v1/{path}?op=CONCAT": { "post": { "tags": [ "FileSystem" ], "operationId": "FileSystem_Concat", "description": "Concatenates the list of source files into the destination file, removing all source files upon success.", + "x-ms-examples": { + "Concatenates the list of source files into the destination file, removing all source files upon success": { "$ref": "./examples/Adls_FileSystem_Concat.json" } + }, "parameters": [ { - "name": "destinationPath", + "name": "path", "in": "path", "required": true, "type": "string", @@ -353,7 +372,7 @@ } } }, - "/webhdfs/v1/{msConcatDestinationPath}": { + "/webhdfs/v1/{path}?op=MSCONCAT": { "post": { "tags": [ "FileSystem" @@ -363,9 +382,12 @@ ], "operationId": "FileSystem_MsConcat", "description": "Concatenates the list of source files into the destination file, deleting all source files upon success. This method accepts more source file paths than the Concat method. This method and the parameters it accepts are subject to change for usability in an upcoming version.", + "x-ms-examples": { + "Concatenates the list of source files into the destination file, deleting all source files upon success. This method accepts more source file paths than the Concat method. This method and the parameters it accepts are subject to change for usability in an upcoming version": { "$ref": "./examples/Adls_FileSystem_MsConcat.json" } + }, "parameters": [ { - "name": "msConcatDestinationPath", + "name": "path", "in": "path", "required": true, "type": "string", @@ -416,16 +438,19 @@ } } }, - "/webhdfs/v1/{listFilePath}": { + "/webhdfs/v1/{path}?op=LISTSTATUS": { "get": { "tags": [ "FileSystem" ], "operationId": "FileSystem_ListFileStatus", "description": "Get the list of file status objects specified by the file path, with optional pagination parameters", + "x-ms-examples": { + "Get the list of file status objects specified by the file path, with optional pagination parameters": { "$ref": "./examples/Adls_FileSystem_ListFileStatus.json" } + }, "parameters": [ { - "name": "listFilePath", + "name": "path", "in": "path", "required": true, "type": "string", @@ -491,16 +516,19 @@ } } }, - "/webhdfs/v1/{getContentSummaryFilePath}": { + "/webhdfs/v1/{path}?op=GETCONTENTSUMMARY": { "get": { "tags": [ "FileSystem" ], "operationId": "FileSystem_GetContentSummary", "description": "Gets the file content summary object specified by the file path.", + "x-ms-examples": { + "Gets the file content summary object specified by the file path": { "$ref": "./examples/Adls_FileSystem_GetContentSummary.json" } + }, "parameters": [ { - "name": "getContentSummaryFilePath", + "name": "path", "in": "path", "required": true, "type": "string", @@ -537,16 +565,19 @@ } } }, - "/webhdfs/v1/{getFilePath}": { + "/webhdfs/v1/{path}?op=GETFILESTATUS": { "get": { "tags": [ "FileSystem" ], "operationId": "FileSystem_GetFileStatus", "description": "Get the file status object specified by the file path.", + "x-ms-examples": { + "Get the file status object specified by the file path": { "$ref": "./examples/Adls_FileSystem_GetFileStatus.json" } + }, "parameters": [ { - "name": "getFilePath", + "name": "path", "in": "path", "required": true, "type": "string", @@ -590,7 +621,93 @@ } } }, - "/webhdfs/v1/{directFilePath}": { + "/webhdfs/v1/{path}?op=OPEN": { + "get": { + "tags": [ + "FileSystem" + ], + "operationId": "FileSystem_Open", + "description": "Opens and reads from the specified file.", + "x-ms-examples": { + "Opens and reads from the specified file": { "$ref": "./examples/Adls_FileSystem_Open.json" } + }, + "produces": [ + "application/octet-stream" + ], + "parameters": [ + { + "name": "path", + "in": "path", + "required": true, + "type": "string", + "description": "The Data Lake Store path (starting with '/') of the file to open." + }, + { + "name": "length", + "in": "query", + "required": false, + "type": "integer", + "format": "int64", + "description": "The number of bytes that the server will attempt to retrieve. It will retrieve <= length bytes." + }, + { + "name": "offset", + "in": "query", + "required": false, + "type": "integer", + "format": "int64", + "description": "The byte offset to start reading data from." + }, + { + "name": "fileSessionId", + "in": "query", + "required": false, + "type": "string", + "format": "uuid", + "description": "Optional unique GUID per file indicating all the reads with the same fileSessionId are from the same client and same session. This will give a performance benefit." + }, + { + "name": "read", + "in": "query", + "required": true, + "description": "Flag to skip redirection. When read=false or not specified, the request is redirected. Submit another HTTP PUT request using the URL in the Location header with the file data to be read. When read=true, this redirection is skipped.", + "type": "string", + "enum": [ + "true" + ] + }, + { + "name": "op", + "in": "query", + "required": true, + "type": "string", + "description": "The constant value for the operation.", + "enum": [ + "OPEN" + ] + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "type": "file" + } + }, + "default": { + "description": "An unexpected error from the server.", + "schema": + { + "$ref": "#/definitions/AdlsError" + } + } + } + } + }, + "/webhdfs/v1/{path}?op=APPEND": { "post": { "tags": [ "FileSystem" @@ -600,9 +717,12 @@ ], "operationId": "FileSystem_Append", "description": "Used for serial appends to the specified file. NOTE: The target must not contain data added by ConcurrentAppend. ConcurrentAppend and Append cannot be used interchangeably; once a target file has been modified using either of these append options, the other append option cannot be used on the target file.", + "x-ms-examples": { + "Used for serial appends to the specified file. NOTE: The target must not contain data added by ConcurrentAppend. ConcurrentAppend and Append cannot be used interchangeably; once a target file has been modified using either of these append options, the other append option cannot be used on the target file": { "$ref": "./examples/Adls_FileSystem_Append.json" } + }, "parameters": [ { - "name": "directFilePath", + "name": "path", "in": "path", "required": true, "type": "string", @@ -660,23 +780,23 @@ "description": "Optional unique GUID per file indicating all the appends with the same fileSessionId are from the same client and same session. This will give a performance benefit when syncFlag is DATA or METADATA." }, { - "name": "op", + "name": "append", "in": "query", "required": true, + "description": "Flag to skip redirection. When append=false or not specified, the request is redirected. Submit another HTTP PUT request using the URL in the Location header with the file data to be written. When append=true, this redirection is skipped.", "type": "string", - "description": "The constant value for the operation.", "enum": [ - "APPEND" + "true" ] }, { - "name": "append", + "name": "op", "in": "query", "required": true, - "description": "Flag to skip redirection. When append=false or not specified, the request is redirected. Submit another HTTP PUT request using the URL in the Location header with the file data to be written. When append=true, this redirection is skipped.", "type": "string", + "description": "The constant value for the operation.", "enum": [ - "true" + "APPEND" ] }, { @@ -695,7 +815,9 @@ } } } - }, + } + }, + "/webhdfs/v1/{path}?op=CREATE": { "put": { "tags": [ "FileSystem" @@ -705,9 +827,12 @@ ], "operationId": "FileSystem_Create", "description": "Creates a file with optionally specified content. NOTE: If content is provided, the resulting file cannot be modified using ConcurrentAppend.", + "x-ms-examples": { + "Creates a file with optionally specified content. NOTE: If content is provided, the resulting file cannot be modified using ConcurrentAppend": { "$ref": "./examples/Adls_FileSystem_Create.json" } + }, "parameters": [ { - "name": "directFilePath", + "name": "path", "in": "path", "required": true, "type": "string", @@ -762,16 +887,6 @@ "format": "int32", "description": "The octal representation of the unnamed user, mask and other permissions that should be set for the file when created. If not specified, it inherits these from the container." }, - { - "name": "op", - "in": "query", - "required": true, - "type": "string", - "description": "The constant value for the operation.", - "enum": [ - "CREATE" - ] - }, { "name": "write", "in": "query", @@ -782,64 +897,6 @@ "true" ] }, - { - "$ref": "#/parameters/ApiVersionParameter" - } - ], - "responses": { - "201": { - "description": "CREATED" - }, - "default": { - "description": "An unexpected error from the server.", - "schema": - { - "$ref": "#/definitions/AdlsError" - } - } - } - }, - "get": { - "tags": [ - "FileSystem" - ], - "operationId": "FileSystem_Open", - "description": "Opens and reads from the specified file.", - "produces": [ - "application/octet-stream" - ], - "parameters": [ - { - "name": "directFilePath", - "in": "path", - "required": true, - "type": "string", - "description": "The Data Lake Store path (starting with '/') of the file to open." - }, - { - "name": "length", - "in": "query", - "required": false, - "type": "integer", - "format": "int64", - "description": "The number of bytes that the server will attempt to retrieve. It will retrieve <= length bytes." - }, - { - "name": "offset", - "in": "query", - "required": false, - "type": "integer", - "format": "int64", - "description": "The byte offset to start reading data from." - }, - { - "name": "fileSessionId", - "in": "query", - "required": false, - "type": "string", - "format": "uuid", - "description": "Optional unique GUID per file indicating all the reads with the same fileSessionId are from the same client and same session. This will give a performance benefit." - }, { "name": "op", "in": "query", @@ -847,17 +904,7 @@ "type": "string", "description": "The constant value for the operation.", "enum": [ - "OPEN" - ] - }, - { - "name": "read", - "in": "query", - "required": true, - "description": "Flag to skip redirection. When read=false or not specified, the request is redirected. Submit another HTTP PUT request using the URL in the Location header with the file data to be read. When read=true, this redirection is skipped.", - "type": "string", - "enum": [ - "true" + "CREATE" ] }, { @@ -865,11 +912,8 @@ } ], "responses": { - "200": { - "description": "OK", - "schema": { - "type": "file" - } + "201": { + "description": "CREATED" }, "default": { "description": "An unexpected error from the server.", @@ -881,16 +925,19 @@ } } }, - "/webhdfs/v1/{setAclFilePath}": { + "/webhdfs/v1/{path}?op=SETACL": { "put": { "tags": [ "FileSystem" ], "operationId": "FileSystem_SetAcl", "description": "Sets the Access Control List (ACL) for a file or folder.", + "x-ms-examples": { + "Sets the Access Control List (ACL) for a file or folder": { "$ref": "./examples/Adls_FileSystem_SetAcl.json" } + }, "parameters": [ { - "name": "setAclFilePath", + "name": "path", "in": "path", "required": true, "type": "string", @@ -931,16 +978,19 @@ } } }, - "/webhdfs/v1/{modifyAclFilePath}": { + "/webhdfs/v1/{path}?op=MODIFYACLENTRIES": { "put": { "tags": [ "FileSystem" ], "operationId": "FileSystem_ModifyAclEntries", "description": "Modifies existing Access Control List (ACL) entries on a file or folder.", + "x-ms-examples": { + "Modifies existing Access Control List (ACL) entries on a file or folder": { "$ref": "./examples/Adls_FileSystem_ModifyAclEntries.json" } + }, "parameters": [ { - "name": "modifyAclFilePath", + "name": "path", "in": "path", "required": true, "type": "string", @@ -981,16 +1031,19 @@ } } }, - "/webhdfs/v1/{removeAclFilePath}": { + "/webhdfs/v1/{path}?op=REMOVEACLENTRIES": { "put": { "tags": [ "FileSystem" ], "operationId": "FileSystem_RemoveAclEntries", "description": "Removes existing Access Control List (ACL) entries for a file or folder.", + "x-ms-examples": { + "Removes existing Access Control List (ACL) entries for a file or folder": { "$ref": "./examples/Adls_FileSystem_RemoveAclEntries.json" } + }, "parameters": [ { - "name": "removeAclFilePath", + "name": "path", "in": "path", "required": true, "type": "string", @@ -1031,16 +1084,19 @@ } } }, - "/webhdfs/v1/{defaultAclFilePath}": { + "/webhdfs/v1/{path}?op=REMOVEDEFAULTACL": { "put": { "tags": [ "FileSystem" ], "operationId": "FileSystem_RemoveDefaultAcl", "description": "Removes the existing Default Access Control List (ACL) of the specified directory.", + "x-ms-examples": { + "Removes the existing Default Access Control List (ACL) of the specified directory": { "$ref": "./examples/Adls_FileSystem_RemoveDefaultAcl.json" } + }, "parameters": [ { - "name": "defaultAclFilePath", + "name": "path", "in": "path", "required": true, "type": "string", @@ -1074,16 +1130,19 @@ } } }, - "/webhdfs/v1/{aclFilePath}": { + "/webhdfs/v1/{path}?op=REMOVEACL": { "put": { "tags": [ "FileSystem" ], "operationId": "FileSystem_RemoveAcl", "description": "Removes the existing Access Control List (ACL) of the specified file or directory.", + "x-ms-examples": { + "Removes the existing Access Control List (ACL) of the specified file or directory": { "$ref": "./examples/Adls_FileSystem_RemoveAcl.json" } + }, "parameters": [ { - "name": "aclFilePath", + "name": "path", "in": "path", "required": true, "type": "string", @@ -1115,16 +1174,21 @@ } } } - }, + } + }, + "/webhdfs/v1/{path}?op=GETACLSTATUS": { "get": { "tags": [ "FileSystem" ], "operationId": "FileSystem_GetAclStatus", "description": "Gets Access Control List (ACL) entries for the specified file or directory.", + "x-ms-examples": { + "Gets Access Control List (ACL) entries for the specified file or directory": { "$ref": "./examples/Adls_FileSystem_GetAclStatus.json" } + }, "parameters": [ { - "name": "aclFilePath", + "name": "path", "in": "path", "required": true, "type": "string", @@ -1168,16 +1232,19 @@ } } }, - "/webhdfs/v1/{filePath}": { + "/webhdfs/v1/{path}?op=DELETE": { "delete": { "tags": [ "FileSystem" ], "operationId": "FileSystem_Delete", "description": "Deletes the requested file or directory, optionally recursively.", + "x-ms-examples": { + "Deletes the requested file or directory, optionally recursively": { "$ref": "./examples/Adls_FileSystem_Delete.json" } + }, "parameters": [ { - "name": "filePath", + "name": "path", "in": "path", "required": true, "type": "string", @@ -1221,16 +1288,19 @@ } } }, - "/webhdfs/v1/{renameFilePath}": { + "/webhdfs/v1/{path}?op=RENAME": { "put": { "tags": [ "FileSystem" ], "operationId": "FileSystem_Rename", "description": "Rename a file or directory.", + "x-ms-examples": { + "Rename a file or directory": { "$ref": "./examples/Adls_FileSystem_Rename.json" } + }, "parameters": [ { - "name": "renameFilePath", + "name": "path", "in": "path", "required": true, "type": "string", @@ -1274,16 +1344,19 @@ } } }, - "/webhdfs/v1/{setOwnerFilePath}": { + "/webhdfs/v1/{path}?op=SETOWNER": { "put": { "tags": [ "FileSystem" ], "operationId": "FileSystem_SetOwner", "description": "Sets the owner of a file or directory.", + "x-ms-examples": { + "Sets the owner of a file or directory": { "$ref": "./examples/Adls_FileSystem_SetOwner.json" } + }, "parameters": [ { - "name": "setOwnerFilePath", + "name": "path", "in": "path", "required": true, "type": "string", @@ -1331,16 +1404,19 @@ } } }, - "/webhdfs/v1/{setPermissionFilePath}": { + "/webhdfs/v1/{path}?op=SETPERMISSION": { "put": { "tags": [ "FileSystem" ], "operationId": "FileSystem_SetPermission", "description": "Sets the permission of the file or folder.", + "x-ms-examples": { + "Sets the owner of a file or directory": { "$ref": "./examples/Adls_FileSystem_SetPermission.json" } + }, "parameters": [ { - "name": "setPermissionFilePath", + "name": "path", "in": "path", "required": true, "type": "string", @@ -1683,7 +1759,6 @@ "properties": { "exception": { "type": "string", - "readOnly": true, "description": "the class name of the exception thrown, such as 'IllegalArgumentException'." }, "javaClassName": { diff --git a/specification/datalake-store/resource-manager/Microsoft.DataLakeStore/2016-11-01/account.json b/specification/datalake-store/resource-manager/Microsoft.DataLakeStore/2016-11-01/account.json index 16a766d44c04..ea67c1e2bc76 100644 --- a/specification/datalake-store/resource-manager/Microsoft.DataLakeStore/2016-11-01/account.json +++ b/specification/datalake-store/resource-manager/Microsoft.DataLakeStore/2016-11-01/account.json @@ -44,6 +44,9 @@ ], "operationId": "FirewallRules_CreateOrUpdate", "description": "Creates or updates the specified firewall rule. During update, the firewall rule with the specified name will be replaced with this new firewall rule.", + "x-ms-examples": { + "Creates or updates the specified firewall rule. During update, the firewall rule with the specified name will be replaced with this new firewall rule": { "$ref": "./examples/Adls_FirewallRules_CreateOrUpdate.json" } + }, "parameters": [ { "name": "resourceGroupName", @@ -97,6 +100,9 @@ ], "operationId": "FirewallRules_Update", "description": "Updates the specified firewall rule.", + "x-ms-examples": { + "Updates the specified firewall rule": { "$ref": "./examples/Adls_FirewallRules_Update.json" } + }, "parameters": [ { "name": "resourceGroupName", @@ -150,6 +156,9 @@ ], "operationId": "FirewallRules_Delete", "description": "Deletes the specified firewall rule from the specified Data Lake Store account", + "x-ms-examples": { + "Deletes the specified firewall rule from the specified Data Lake Store account": { "$ref": "./examples/Adls_FirewallRules_Delete.json" } + }, "parameters": [ { "name": "resourceGroupName", @@ -194,6 +203,9 @@ ], "operationId": "FirewallRules_Get", "description": "Gets the specified Data Lake Store firewall rule.", + "x-ms-examples": { + "Gets the specified Data Lake Store firewall rule": { "$ref": "./examples/Adls_FirewallRules_Get.json" } + }, "parameters": [ { "name": "resourceGroupName", @@ -240,6 +252,9 @@ ], "operationId": "FirewallRules_ListByAccount", "description": "Lists the Data Lake Store firewall rules within the specified Data Lake Store account.", + "x-ms-examples": { + "Lists the Data Lake Store firewall rules within the specified Data Lake Store account": { "$ref": "./examples/Adls_FirewallRules_ListByAccount.json" } + }, "parameters": [ { "name": "resourceGroupName", @@ -282,6 +297,9 @@ ], "operationId": "TrustedIdProviders_CreateOrUpdate", "description": "Creates or updates the specified trusted identity provider. During update, the trusted identity provider with the specified name will be replaced with this new provider", + "x-ms-examples": { + "Creates or updates the specified trusted identity provider. During update, the trusted identity provider with the specified name will be replaced with this new provider": { "$ref": "./examples/Adls_TrustedIdProviders_CreateOrUpdate.json" } + }, "parameters": [ { "name": "resourceGroupName", @@ -335,6 +353,9 @@ ], "operationId": "TrustedIdProviders_Update", "description": "Updates the specified trusted identity provider.", + "x-ms-examples": { + "Updates the specified trusted identity provider": { "$ref": "./examples/Adls_TrustedIdProviders_Update.json" } + }, "parameters": [ { "name": "resourceGroupName", @@ -388,6 +409,9 @@ ], "operationId": "TrustedIdProviders_Delete", "description": "Deletes the specified trusted identity provider from the specified Data Lake Store account", + "x-ms-examples": { + "Deletes the specified trusted identity provider from the specified Data Lake Store account": { "$ref": "./examples/Adls_TrustedIdProviders_Delete.json" } + }, "parameters": [ { "name": "resourceGroupName", @@ -432,6 +456,9 @@ ], "operationId": "TrustedIdProviders_Get", "description": "Gets the specified Data Lake Store trusted identity provider.", + "x-ms-examples": { + "Gets the specified Data Lake Store trusted identity provider": { "$ref": "./examples/Adls_TrustedIdProviders_Get.json" } + }, "parameters": [ { "name": "resourceGroupName", @@ -478,6 +505,9 @@ ], "operationId": "TrustedIdProviders_ListByAccount", "description": "Lists the Data Lake Store trusted identity providers within the specified Data Lake Store account.", + "x-ms-examples": { + "Lists the Data Lake Store trusted identity providers within the specified Data Lake Store account": { "$ref": "./examples/Adls_TrustedIdProviders_ListByAccount.json" } + }, "parameters": [ { "name": "resourceGroupName", @@ -520,6 +550,9 @@ ], "operationId": "Account_Create", "description": "Creates the specified Data Lake Store account.", + "x-ms-examples": { + "Creates the specified Data Lake Store account": { "$ref": "./examples/Adls_Account_Create.json" } + }, "parameters": [ { "name": "resourceGroupName", @@ -573,6 +606,9 @@ ], "operationId": "Account_Update", "description": "Updates the specified Data Lake Store account information.", + "x-ms-examples": { + "Updates the specified Data Lake Store account information": { "$ref": "./examples/Adls_Account_Update.json" } + }, "parameters": [ { "name": "resourceGroupName", @@ -626,6 +662,9 @@ ], "operationId": "Account_Delete", "description": "Deletes the specified Data Lake Store account.", + "x-ms-examples": { + "Deletes the specified Data Lake Store account": { "$ref": "./examples/Adls_Account_Delete.json" } + }, "parameters": [ { "name": "resourceGroupName", @@ -667,6 +706,9 @@ ], "operationId": "Account_Get", "description": "Gets the specified Data Lake Store account.", + "x-ms-examples": { + "Gets the specified Data Lake Store account": { "$ref": "./examples/Adls_Account_Get.json" } + }, "parameters": [ { "name": "resourceGroupName", @@ -706,6 +748,9 @@ ], "operationId": "Account_EnableKeyVault", "description": "Attempts to enable a user managed Key Vault for encryption of the specified Data Lake Store account.", + "x-ms-examples": { + "Attempts to enable a user managed Key Vault for encryption of the specified Data Lake Store account": { "$ref": "./examples/Adls_Account_EnableKeyVault.json" } + }, "parameters": [ { "name": "resourceGroupName", @@ -742,6 +787,9 @@ ], "operationId": "Account_ListByResourceGroup", "description": "Lists the Data Lake Store accounts within a specific resource group. The response includes a link to the next page of results, if any.", + "x-ms-examples": { + "Lists the Data Lake Store accounts within a specific resource group": { "$ref": "./examples/Adls_Account_ListByResourceGroup.json" } + }, "parameters": [ { "name": "resourceGroupName", @@ -824,6 +872,9 @@ ], "operationId": "Account_List", "description": "Lists the Data Lake Store accounts within the subscription. The response includes a link to the next page of results, if any.", + "x-ms-examples": { + "Lists the Data Lake Store accounts within the subscription": { "$ref": "./examples/Adls_Account_List.json" } + }, "parameters": [ { "name": "$filter", @@ -1497,7 +1548,8 @@ "type": "string", "description": "Resource type" } - } + }, + "x-ms-azure-resource": true } }, "parameters": { diff --git a/specification/datalake-store/resource-manager/Microsoft.DataLakeStore/2016-11-01/examples/Adls_Account_Create.json b/specification/datalake-store/resource-manager/Microsoft.DataLakeStore/2016-11-01/examples/Adls_Account_Create.json new file mode 100644 index 000000000000..cd47afc10a4b --- /dev/null +++ b/specification/datalake-store/resource-manager/Microsoft.DataLakeStore/2016-11-01/examples/Adls_Account_Create.json @@ -0,0 +1,160 @@ +{ + "parameters": { + "api-version": "2016-11-01", + "subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", + "resourceGroupName": "contosorg", + "name": "contosoadla", + "parameters": { + "location": "test_location", + "tags": { + "test_key": "test_value" + }, + "identity": { + "type": "SystemAssigned" + }, + "properties": { + "encryptionState": "Enabled", + "encryptionConfig": { + "type": "UserManaged", + "keyVaultMetaInfo": { + "keyVaultResourceId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", + "encryptionKeyName": "test_encryption_key_name", + "encryptionKeyVersion": "encryption_key_version" + } + }, + "firewallState": "Enabled", + "firewallRules": [{ + "name": "test_rule", + "properties": { + "startIpAddress": "1.1.1.1", + "endIpAddress": "2.2.2.2" + } + }], + "trustedIdProviderState": "Enabled", + "trustedIdProviders": [{ + "name": "test_trusted_id_provider_name", + "properties": { + "idProvider": "https://sts.windows.net/ea9ec534-a3e3-4e45-ad36-3afc5bb291c1" + } + }], + "defaultGroup": "test_default_group", + "newTier": "Consumption", + "firewallAllowAzureIps": "Enabled" + } + } + }, + "responses": { + "201": { + "body": { + "id": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", + "name": "contosoadla", + "type": "test_type", + "location": "test_location", + "tags": { + "test_key": "test_value" + }, + "identity": { + "type": "SystemAssigned", + "principalId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", + "tenantId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab346" + }, + "properties": { + "provisioningState": "Succeeded", + "state": "Active", + "creationTime": "2017-04-14T13:21:56.6819037-07:00", + "encryptionState": "Enabled", + "encryptionProvisioningState": "Succeeded", + "encryptionConfig": { + "type": "UserManaged", + "keyVaultMetaInfo": { + "keyVaultResourceId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", + "encryptionKeyName": "test_encryption_key_name", + "encryptionKeyVersion": "encryption_key_version" + } + }, + "firewallState": "Enabled", + "firewallRules": [{ + "id": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", + "name": "test_rule", + "type": "test_type", + "properties": { + "startIpAddress": "1.1.1.1", + "endIpAddress": "2.2.2.2" + } + }], + "trustedIdProviderState": "Enabled", + "trustedIdProviders": [{ + "id": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", + "name": "test_trusted_id_provider_name", + "type": "test_type", + "properties": { + "idProvider": "https://sts.windows.net/ea9ec534-a3e3-4e45-ad36-3afc5bb291c1" + } + }], + "lastModifiedTime": "2017-04-14T13:21:56.6819037-07:00", + "endpoint": "testadlfs17607.azuredatalakestore.net", + "defaultGroup": "test_default_group", + "newTier": "Consumption", + "currentTier": "Consumption", + "firewallAllowAzureIps": "Enabled" + } + } + }, + "200": { + "body": { + "id": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", + "name": "contosoadla", + "type": "test_type", + "location": "test_location", + "tags": { + "test_key": "test_value" + }, + "identity": { + "type": "SystemAssigned", + "principalId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", + "tenantId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab346" + }, + "properties": { + "provisioningState": "Succeeded", + "state": "Active", + "creationTime": "2017-04-14T13:21:56.6819037-07:00", + "encryptionState": "Enabled", + "encryptionProvisioningState": "Succeeded", + "encryptionConfig": { + "type": "UserManaged", + "keyVaultMetaInfo": { + "keyVaultResourceId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", + "encryptionKeyName": "test_encryption_key_name", + "encryptionKeyVersion": "encryption_key_version" + } + }, + "firewallState": "Enabled", + "firewallRules": [{ + "id": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", + "name": "test_rule", + "type": "test_type", + "properties": { + "startIpAddress": "1.1.1.1", + "endIpAddress": "2.2.2.2" + } + }], + "trustedIdProviderState": "Enabled", + "trustedIdProviders": [{ + "id": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", + "name": "test_trusted_id_provider_name", + "type": "test_type", + "properties": { + "idProvider": "https://sts.windows.net/ea9ec534-a3e3-4e45-ad36-3afc5bb291c1" + } + }], + "lastModifiedTime": "2017-04-14T13:21:56.6819037-07:00", + "endpoint": "testadlfs17607.azuredatalakestore.net", + "defaultGroup": "test_default_group", + "newTier": "Consumption", + "currentTier": "Consumption", + "firewallAllowAzureIps": "Enabled" + } + } + } + } +} diff --git a/specification/datalake-store/resource-manager/Microsoft.DataLakeStore/2016-11-01/examples/Adls_Account_Delete.json b/specification/datalake-store/resource-manager/Microsoft.DataLakeStore/2016-11-01/examples/Adls_Account_Delete.json new file mode 100644 index 000000000000..99089c2a8b59 --- /dev/null +++ b/specification/datalake-store/resource-manager/Microsoft.DataLakeStore/2016-11-01/examples/Adls_Account_Delete.json @@ -0,0 +1,16 @@ +{ + "parameters": { + "api-version": "2016-11-01", + "subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", + "resourceGroupName": "contosorg", + "name": "contosoadla" + }, + "responses": { + "200": { + }, + "204": { + }, + "202": { + } + } +} diff --git a/specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/2016-11-01/examples/AdlaComputePolicyDelete.json b/specification/datalake-store/resource-manager/Microsoft.DataLakeStore/2016-11-01/examples/Adls_Account_EnableKeyVault.json similarity index 74% rename from specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/2016-11-01/examples/AdlaComputePolicyDelete.json rename to specification/datalake-store/resource-manager/Microsoft.DataLakeStore/2016-11-01/examples/Adls_Account_EnableKeyVault.json index 858589645b80..efe96b738e6d 100644 --- a/specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/2016-11-01/examples/AdlaComputePolicyDelete.json +++ b/specification/datalake-store/resource-manager/Microsoft.DataLakeStore/2016-11-01/examples/Adls_Account_EnableKeyVault.json @@ -1,7 +1,7 @@ { "parameters": { "api-version": "2016-11-01", - "computePolicyName": "testpolicy", + "subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", "resourceGroupName": "contosorg", "accountName": "contosoadla" }, @@ -9,4 +9,4 @@ "200": { } } -} \ No newline at end of file +} diff --git a/specification/datalake-store/resource-manager/Microsoft.DataLakeStore/2016-11-01/examples/Adls_Account_Get.json b/specification/datalake-store/resource-manager/Microsoft.DataLakeStore/2016-11-01/examples/Adls_Account_Get.json new file mode 100644 index 000000000000..f1ddc3a31d63 --- /dev/null +++ b/specification/datalake-store/resource-manager/Microsoft.DataLakeStore/2016-11-01/examples/Adls_Account_Get.json @@ -0,0 +1,66 @@ +{ + "parameters": { + "api-version": "2016-11-01", + "subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", + "resourceGroupName": "contosorg", + "name": "contosoadla" + }, + "responses": { + "200": { + "body": { + "id": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", + "name": "contosoadla", + "type": "test_type", + "location": "test_location", + "tags": { + "test_key": "test_value" + }, + "identity": { + "type": "SystemAssigned", + "principalId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", + "tenantId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab346" + }, + "properties": { + "provisioningState": "Succeeded", + "state": "Active", + "creationTime": "2017-04-14T13:21:56.6819037-07:00", + "encryptionState": "Enabled", + "encryptionProvisioningState": "Succeeded", + "encryptionConfig": { + "type": "UserManaged", + "keyVaultMetaInfo": { + "keyVaultResourceId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", + "encryptionKeyName": "test_encryption_key_name", + "encryptionKeyVersion": "encryption_key_version" + } + }, + "firewallState": "Enabled", + "firewallRules": [{ + "id": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", + "name": "test_rule", + "type": "test_type", + "properties": { + "startIpAddress": "1.1.1.1", + "endIpAddress": "2.2.2.2" + } + }], + "trustedIdProviderState": "Enabled", + "trustedIdProviders": [{ + "id": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", + "name": "test_trusted_id_provider_name", + "type": "test_type", + "properties": { + "idProvider": "https://sts.windows.net/ea9ec534-a3e3-4e45-ad36-3afc5bb291c1" + } + }], + "lastModifiedTime": "2017-04-14T13:21:56.6819037-07:00", + "endpoint": "testadlfs17607.azuredatalakestore.net", + "defaultGroup": "test_default_group", + "newTier": "Consumption", + "currentTier": "Consumption", + "firewallAllowAzureIps": "Enabled" + } + } + } + } +} diff --git a/specification/datalake-store/resource-manager/Microsoft.DataLakeStore/2016-11-01/examples/Adls_Account_List.json b/specification/datalake-store/resource-manager/Microsoft.DataLakeStore/2016-11-01/examples/Adls_Account_List.json new file mode 100644 index 000000000000..18582047c47e --- /dev/null +++ b/specification/datalake-store/resource-manager/Microsoft.DataLakeStore/2016-11-01/examples/Adls_Account_List.json @@ -0,0 +1,73 @@ +{ + "parameters": { + "api-version": "2016-11-01", + "subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", + "$filter": "test_filter", + "$top": 1, + "$skip": 1, + "$select": "test_select", + "$orderby": "test_orderby", + "$count": false + }, + "responses": { + "200": { + "body": { + "value": [{ + "id": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", + "name": "contosoadla", + "type": "test_type", + "location": "test_location", + "tags": { + "test_key": "test_value" + }, + "identity": { + "type": "SystemAssigned", + "principalId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", + "tenantId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab346" + }, + "properties": { + "provisioningState": "Succeeded", + "state": "Active", + "creationTime": "2017-04-14T13:21:56.6819037-07:00", + "encryptionState": "Enabled", + "encryptionProvisioningState": "Succeeded", + "encryptionConfig": { + "type": "UserManaged", + "keyVaultMetaInfo": { + "keyVaultResourceId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", + "encryptionKeyName": "test_encryption_key_name", + "encryptionKeyVersion": "encryption_key_version" + } + }, + "firewallState": "Enabled", + "firewallRules": [{ + "id": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", + "name": "test_rule", + "type": "test_type", + "properties": { + "startIpAddress": "1.1.1.1", + "endIpAddress": "2.2.2.2" + } + }], + "trustedIdProviderState": "Enabled", + "trustedIdProviders": [{ + "id": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", + "name": "test_trusted_id_provider_name", + "type": "test_type", + "properties": { + "idProvider": "https://sts.windows.net/ea9ec534-a3e3-4e45-ad36-3afc5bb291c1" + } + }], + "lastModifiedTime": "2017-04-14T13:21:56.6819037-07:00", + "endpoint": "testadlfs17607.azuredatalakestore.net", + "defaultGroup": "test_default_group", + "newTier": "Consumption", + "currentTier": "Consumption", + "firewallAllowAzureIps": "Enabled" + } + }], + "nextLink": "https://management.azure.com/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/contosorg/providers/Microsoft.DataLakeStore/accounts/contosoadla/jobPolicies?api-version=2016-11-01&%24skiptoken=" + } + } + } +} diff --git a/specification/datalake-store/resource-manager/Microsoft.DataLakeStore/2016-11-01/examples/Adls_Account_ListByResourceGroup.json b/specification/datalake-store/resource-manager/Microsoft.DataLakeStore/2016-11-01/examples/Adls_Account_ListByResourceGroup.json new file mode 100644 index 000000000000..4e72d7f584d3 --- /dev/null +++ b/specification/datalake-store/resource-manager/Microsoft.DataLakeStore/2016-11-01/examples/Adls_Account_ListByResourceGroup.json @@ -0,0 +1,74 @@ +{ + "parameters": { + "api-version": "2016-11-01", + "subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", + "resourceGroupName": "contosorg", + "$filter": "test_filter", + "$top": 1, + "$skip": 1, + "$select": "test_select", + "$orderby": "test_orderby", + "$count": false + }, + "responses": { + "200": { + "body": { + "value": [{ + "id": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", + "name": "contosoadla", + "type": "test_type", + "location": "test_location", + "tags": { + "test_key": "test_value" + }, + "identity": { + "type": "SystemAssigned", + "principalId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", + "tenantId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab346" + }, + "properties": { + "provisioningState": "Succeeded", + "state": "Active", + "creationTime": "2017-04-14T13:21:56.6819037-07:00", + "encryptionState": "Enabled", + "encryptionProvisioningState": "Succeeded", + "encryptionConfig": { + "type": "UserManaged", + "keyVaultMetaInfo": { + "keyVaultResourceId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", + "encryptionKeyName": "test_encryption_key_name", + "encryptionKeyVersion": "encryption_key_version" + } + }, + "firewallState": "Enabled", + "firewallRules": [{ + "id": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", + "name": "test_rule", + "type": "test_type", + "properties": { + "startIpAddress": "1.1.1.1", + "endIpAddress": "2.2.2.2" + } + }], + "trustedIdProviderState": "Enabled", + "trustedIdProviders": [{ + "id": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", + "name": "test_trusted_id_provider_name", + "type": "test_type", + "properties": { + "idProvider": "https://sts.windows.net/ea9ec534-a3e3-4e45-ad36-3afc5bb291c1" + } + }], + "lastModifiedTime": "2017-04-14T13:21:56.6819037-07:00", + "endpoint": "testadlfs17607.azuredatalakestore.net", + "defaultGroup": "test_default_group", + "newTier": "Consumption", + "currentTier": "Consumption", + "firewallAllowAzureIps": "Enabled" + } + }], + "nextLink": "https://management.azure.com/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/contosorg/providers/Microsoft.DataLakeStore/accounts/contosoadla/jobPolicies?api-version=2016-11-01&%24skiptoken=" + } + } + } +} diff --git a/specification/datalake-store/resource-manager/Microsoft.DataLakeStore/2016-11-01/examples/Adls_Account_Update.json b/specification/datalake-store/resource-manager/Microsoft.DataLakeStore/2016-11-01/examples/Adls_Account_Update.json new file mode 100644 index 000000000000..e671dd80e49c --- /dev/null +++ b/specification/datalake-store/resource-manager/Microsoft.DataLakeStore/2016-11-01/examples/Adls_Account_Update.json @@ -0,0 +1,139 @@ +{ + "parameters": { + "api-version": "2016-11-01", + "subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", + "resourceGroupName": "contosorg", + "name": "contosoadla", + "parameters": { + "tags": { + "test_key": "test_value" + }, + "properties": { + "firewallState": "Enabled", + "trustedIdProviderState": "Enabled", + "defaultGroup": "test_default_group", + "newTier": "Consumption", + "firewallAllowAzureIps": "Enabled", + "encryptionConfig": { + "keyVaultMetaInfo": { + "encryptionKeyVersion": "encryption_key_version" + } + } + } + } + }, + "responses": { + "200": { + "body": { + "id": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", + "name": "contosoadla", + "type": "test_type", + "location": "test_location", + "tags": { + "test_key": "test_value" + }, + "identity": { + "type": "SystemAssigned", + "principalId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", + "tenantId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab346" + }, + "properties": { + "provisioningState": "Succeeded", + "state": "Active", + "creationTime": "2017-04-14T13:21:56.6819037-07:00", + "encryptionState": "Enabled", + "encryptionProvisioningState": "Succeeded", + "encryptionConfig": { + "type": "UserManaged", + "keyVaultMetaInfo": { + "keyVaultResourceId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", + "encryptionKeyName": "test_encryption_key_name", + "encryptionKeyVersion": "encryption_key_version" + } + }, + "firewallState": "Enabled", + "firewallRules": [{ + "id": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", + "name": "test_rule", + "type": "test_type", + "properties": { + "startIpAddress": "1.1.1.1", + "endIpAddress": "2.2.2.2" + } + }], + "trustedIdProviderState": "Enabled", + "trustedIdProviders": [{ + "id": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", + "name": "test_trusted_id_provider_name", + "type": "test_type", + "properties": { + "idProvider": "https://sts.windows.net/ea9ec534-a3e3-4e45-ad36-3afc5bb291c1" + } + }], + "lastModifiedTime": "2017-04-14T13:21:56.6819037-07:00", + "endpoint": "testadlfs17607.azuredatalakestore.net", + "defaultGroup": "test_default_group", + "newTier": "Consumption", + "currentTier": "Consumption", + "firewallAllowAzureIps": "Enabled" + } + } + }, + "201": { + "body": { + "id": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", + "name": "contosoadla", + "type": "test_type", + "location": "test_location", + "tags": { + "test_key": "test_value" + }, + "identity": { + "type": "SystemAssigned", + "principalId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", + "tenantId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab346" + }, + "properties": { + "provisioningState": "Succeeded", + "state": "Active", + "creationTime": "2017-04-14T13:21:56.6819037-07:00", + "encryptionState": "Enabled", + "encryptionProvisioningState": "Succeeded", + "encryptionConfig": { + "type": "UserManaged", + "keyVaultMetaInfo": { + "keyVaultResourceId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", + "encryptionKeyName": "test_encryption_key_name", + "encryptionKeyVersion": "encryption_key_version" + } + }, + "firewallState": "Enabled", + "firewallRules": [{ + "id": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", + "name": "test_rule", + "type": "test_type", + "properties": { + "startIpAddress": "1.1.1.1", + "endIpAddress": "2.2.2.2" + } + }], + "trustedIdProviderState": "Enabled", + "trustedIdProviders": [{ + "id": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", + "name": "test_trusted_id_provider_name", + "type": "test_type", + "properties": { + "idProvider": "https://sts.windows.net/ea9ec534-a3e3-4e45-ad36-3afc5bb291c1" + } + }], + "lastModifiedTime": "2017-04-14T13:21:56.6819037-07:00", + "endpoint": "testadlfs17607.azuredatalakestore.net", + "defaultGroup": "test_default_group", + "newTier": "Consumption", + "currentTier": "Consumption", + "firewallAllowAzureIps": "Enabled" + } + } + } + } +} diff --git a/specification/datalake-store/resource-manager/Microsoft.DataLakeStore/2016-11-01/examples/Adls_FirewallRules_CreateOrUpdate.json b/specification/datalake-store/resource-manager/Microsoft.DataLakeStore/2016-11-01/examples/Adls_FirewallRules_CreateOrUpdate.json new file mode 100644 index 000000000000..ffa9d125c693 --- /dev/null +++ b/specification/datalake-store/resource-manager/Microsoft.DataLakeStore/2016-11-01/examples/Adls_FirewallRules_CreateOrUpdate.json @@ -0,0 +1,29 @@ +{ + "parameters": { + "api-version": "2016-11-01", + "subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", + "resourceGroupName": "contosorg", + "accountName": "contosoadla", + "firewallRuleName": "test_rule", + "parameters": { + "name": "test_rule", + "properties": { + "startIpAddress": "1.1.1.1", + "endIpAddress": "2.2.2.2" + } + } + }, + "responses": { + "200": { + "body": { + "id": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", + "name": "test_rule", + "type": "test_type", + "properties": { + "startIpAddress": "1.1.1.1", + "endIpAddress": "2.2.2.2" + } + } + } + } +} diff --git a/specification/datalake-store/resource-manager/Microsoft.DataLakeStore/2016-11-01/examples/Adls_FirewallRules_Delete.json b/specification/datalake-store/resource-manager/Microsoft.DataLakeStore/2016-11-01/examples/Adls_FirewallRules_Delete.json new file mode 100644 index 000000000000..53cac4aaabaf --- /dev/null +++ b/specification/datalake-store/resource-manager/Microsoft.DataLakeStore/2016-11-01/examples/Adls_FirewallRules_Delete.json @@ -0,0 +1,15 @@ +{ + "parameters": { + "api-version": "2016-11-01", + "subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", + "resourceGroupName": "contosorg", + "accountName": "contosoadla", + "firewallRuleName": "test_rule" + }, + "responses": { + "200": { + }, + "204": { + } + } +} diff --git a/specification/datalake-store/resource-manager/Microsoft.DataLakeStore/2016-11-01/examples/Adls_FirewallRules_Get.json b/specification/datalake-store/resource-manager/Microsoft.DataLakeStore/2016-11-01/examples/Adls_FirewallRules_Get.json new file mode 100644 index 000000000000..137b32e4246d --- /dev/null +++ b/specification/datalake-store/resource-manager/Microsoft.DataLakeStore/2016-11-01/examples/Adls_FirewallRules_Get.json @@ -0,0 +1,22 @@ +{ + "parameters": { + "api-version": "2016-11-01", + "subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", + "resourceGroupName": "contosorg", + "accountName": "contosoadla", + "firewallRuleName": "test_rule" + }, + "responses": { + "200": { + "body": { + "id": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", + "name": "test_rule", + "type": "test_type", + "properties": { + "startIpAddress": "1.1.1.1", + "endIpAddress": "2.2.2.2" + } + } + } + } +} diff --git a/specification/datalake-store/resource-manager/Microsoft.DataLakeStore/2016-11-01/examples/Adls_FirewallRules_ListByAccount.json b/specification/datalake-store/resource-manager/Microsoft.DataLakeStore/2016-11-01/examples/Adls_FirewallRules_ListByAccount.json new file mode 100644 index 000000000000..4002966f7c34 --- /dev/null +++ b/specification/datalake-store/resource-manager/Microsoft.DataLakeStore/2016-11-01/examples/Adls_FirewallRules_ListByAccount.json @@ -0,0 +1,24 @@ +{ + "parameters": { + "api-version": "2016-11-01", + "subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", + "resourceGroupName": "contosorg", + "accountName": "contosoadla" + }, + "responses": { + "200": { + "body": { + "value": [{ + "id": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", + "name": "test_rule", + "type": "test_type", + "properties": { + "startIpAddress": "1.1.1.1", + "endIpAddress": "2.2.2.2" + } + }], + "nextLink": "https://management.azure.com/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/contosorg/providers/Microsoft.DataLakeStore/accounts/contosoadla/jobPolicies?api-version=2016-11-01&%24skiptoken=" + } + } + } +} diff --git a/specification/datalake-store/resource-manager/Microsoft.DataLakeStore/2016-11-01/examples/Adls_FirewallRules_Update.json b/specification/datalake-store/resource-manager/Microsoft.DataLakeStore/2016-11-01/examples/Adls_FirewallRules_Update.json new file mode 100644 index 000000000000..78b55e76537e --- /dev/null +++ b/specification/datalake-store/resource-manager/Microsoft.DataLakeStore/2016-11-01/examples/Adls_FirewallRules_Update.json @@ -0,0 +1,28 @@ +{ + "parameters": { + "api-version": "2016-11-01", + "subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", + "resourceGroupName": "contosorg", + "accountName": "contosoadla", + "firewallRuleName": "test_rule", + "parameters": { + "properties": { + "startIpAddress": "1.1.1.1", + "endIpAddress": "2.2.2.2" + } + } + }, + "responses": { + "200": { + "body": { + "id": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", + "name": "test_rule", + "type": "test_type", + "properties": { + "startIpAddress": "1.1.1.1", + "endIpAddress": "2.2.2.2" + } + } + } + } +} diff --git a/specification/datalake-store/resource-manager/Microsoft.DataLakeStore/2016-11-01/examples/Adls_TrustedIdProviders_CreateOrUpdate.json b/specification/datalake-store/resource-manager/Microsoft.DataLakeStore/2016-11-01/examples/Adls_TrustedIdProviders_CreateOrUpdate.json new file mode 100644 index 000000000000..7e3aba836067 --- /dev/null +++ b/specification/datalake-store/resource-manager/Microsoft.DataLakeStore/2016-11-01/examples/Adls_TrustedIdProviders_CreateOrUpdate.json @@ -0,0 +1,27 @@ +{ + "parameters": { + "api-version": "2016-11-01", + "subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", + "resourceGroupName": "contosorg", + "accountName": "contosoadla", + "trustedIdProviderName": "test_trusted_id_provider_name", + "parameters": { + "name": "test_trusted_id_provider_name", + "properties": { + "idProvider": "https://sts.windows.net/ea9ec534-a3e3-4e45-ad36-3afc5bb291c1" + } + } + }, + "responses": { + "200": { + "body": { + "id": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", + "name": "test_trusted_id_provider_name", + "type": "test_type", + "properties": { + "idProvider": "https://sts.windows.net/ea9ec534-a3e3-4e45-ad36-3afc5bb291c1" + } + } + } + } +} diff --git a/specification/datalake-store/resource-manager/Microsoft.DataLakeStore/2016-11-01/examples/Adls_TrustedIdProviders_Delete.json b/specification/datalake-store/resource-manager/Microsoft.DataLakeStore/2016-11-01/examples/Adls_TrustedIdProviders_Delete.json new file mode 100644 index 000000000000..cadb4e2551cc --- /dev/null +++ b/specification/datalake-store/resource-manager/Microsoft.DataLakeStore/2016-11-01/examples/Adls_TrustedIdProviders_Delete.json @@ -0,0 +1,15 @@ +{ + "parameters": { + "api-version": "2016-11-01", + "subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", + "resourceGroupName": "contosorg", + "accountName": "contosoadla", + "trustedIdProviderName": "test_trusted_id_provider_name" + }, + "responses": { + "200": { + }, + "204": { + } + } +} diff --git a/specification/datalake-store/resource-manager/Microsoft.DataLakeStore/2016-11-01/examples/Adls_TrustedIdProviders_Get.json b/specification/datalake-store/resource-manager/Microsoft.DataLakeStore/2016-11-01/examples/Adls_TrustedIdProviders_Get.json new file mode 100644 index 000000000000..03da7559114c --- /dev/null +++ b/specification/datalake-store/resource-manager/Microsoft.DataLakeStore/2016-11-01/examples/Adls_TrustedIdProviders_Get.json @@ -0,0 +1,21 @@ +{ + "parameters": { + "api-version": "2016-11-01", + "subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", + "resourceGroupName": "contosorg", + "accountName": "contosoadla", + "trustedIdProviderName": "test_trusted_id_provider_name" + }, + "responses": { + "200": { + "body": { + "id": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", + "name": "test_trusted_id_provider_name", + "type": "test_type", + "properties": { + "idProvider": "https://sts.windows.net/ea9ec534-a3e3-4e45-ad36-3afc5bb291c1" + } + } + } + } +} diff --git a/specification/datalake-store/resource-manager/Microsoft.DataLakeStore/2016-11-01/examples/Adls_TrustedIdProviders_ListByAccount.json b/specification/datalake-store/resource-manager/Microsoft.DataLakeStore/2016-11-01/examples/Adls_TrustedIdProviders_ListByAccount.json new file mode 100644 index 000000000000..96482f57eb29 --- /dev/null +++ b/specification/datalake-store/resource-manager/Microsoft.DataLakeStore/2016-11-01/examples/Adls_TrustedIdProviders_ListByAccount.json @@ -0,0 +1,23 @@ +{ + "parameters": { + "api-version": "2016-11-01", + "subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", + "resourceGroupName": "contosorg", + "accountName": "contosoadla" + }, + "responses": { + "200": { + "body": { + "value": [{ + "id": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", + "name": "test_trusted_id_provider_name", + "type": "test_type", + "properties": { + "idProvider": "https://sts.windows.net/ea9ec534-a3e3-4e45-ad36-3afc5bb291c1" + } + }], + "nextLink": "https://management.azure.com/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/contosorg/providers/Microsoft.DataLakeStore/accounts/contosoadla/jobPolicies?api-version=2016-11-01&%24skiptoken=" + } + } + } +} diff --git a/specification/datalake-store/resource-manager/Microsoft.DataLakeStore/2016-11-01/examples/Adls_TrustedIdProviders_Update.json b/specification/datalake-store/resource-manager/Microsoft.DataLakeStore/2016-11-01/examples/Adls_TrustedIdProviders_Update.json new file mode 100644 index 000000000000..5ee5b38f12c9 --- /dev/null +++ b/specification/datalake-store/resource-manager/Microsoft.DataLakeStore/2016-11-01/examples/Adls_TrustedIdProviders_Update.json @@ -0,0 +1,26 @@ +{ + "parameters": { + "api-version": "2016-11-01", + "subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", + "resourceGroupName": "contosorg", + "accountName": "contosoadla", + "trustedIdProviderName": "test_trusted_id_provider_name", + "parameters": { + "properties": { + "idProvider": "https://sts.windows.net/ea9ec534-a3e3-4e45-ad36-3afc5bb291c1" + } + } + }, + "responses": { + "200": { + "body": { + "id": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", + "name": "test_trusted_id_provider_name", + "type": "test_type", + "properties": { + "idProvider": "https://sts.windows.net/ea9ec534-a3e3-4e45-ad36-3afc5bb291c1" + } + } + } + } +}