From f155bbebf91dace6c5775ea450e1649cd79ee87c Mon Sep 17 00:00:00 2001 From: Garrett Serack Date: Thu, 11 Oct 2018 16:07:52 -0700 Subject: [PATCH] Revert "Rolled back to changes before modifications to OpenAPI3 loader and testing." This reverts commit 41b2cb788fb6f4427ec03a48c8f2e5ca3bd92b79. --- .../Client/ISwaggerPetstore.cs | 1 - .../Client/Models/Category.cs | 1 - .../Client/Models/Order.cs | 1 - .../Client/Models/Pet.cs | 1 - .../Client/Models/Tag.cs | 1 - .../Client/Models/User.cs | 1 - .../Client/Models/XmlSerialization.cs | 1 - .../Client/SwaggerPetstore.cs | 1 - .../Client/SwaggerPetstoreExtensions.cs | 1 - .../p\303\251tst\303\266re.json" | 1109 ---- .../1a-code-generation-minimal/readme.md | 13 - .../1a-code-generation-minimal/shell/code.txt | 1 - .../shell/stderr.txt | 1 - .../shell/stdout.txt | 1 - .../Generated/ISwaggerPetstore.cs | 1 - .../Generated/Models/Error.cs | 1 - .../Generated/Models/ErrorException.cs | 1 - .../Generated/Models/ListPetsHeadersInner.cs | 1 - .../Generated/Models/PetInner.cs | 1 - .../Generated/SwaggerPetstore.cs | 1 - .../Generated/SwaggerPetstoreExtensions.cs | 1 - .../Azure.CSharp/ISwaggerPetstoreClient.cs | 1 - .../Azure.CSharp/Models/Error.cs | 1 - .../Azure.CSharp/Models/ErrorException.cs | 1 - .../Azure.CSharp/Models/ListPetsHeaders.cs | 1 - .../Azure.CSharp/Models/Pet.cs | 1 - .../Azure.CSharp/SwaggerPetstoreClient.cs | 1 - .../SwaggerPetstoreClientExtensions.cs | 1 - .../src/main/java/cowstore/Error.java | 1 - .../main/java/cowstore/ErrorException.java | 1 - .../main/java/cowstore/ListPetsHeaders.java | 1 - .../cowstore/implementation/PetInner.java | 1 - .../implementation/SwaggerPetstoreImpl.java | 1 - .../cowstore/implementation/package-info.java | 1 - .../src/main/java/cowstore/package-info.java | 1 - .../main/java/cowstore/SwaggerPetstore.java | 1 - .../implementation/SwaggerPetstoreImpl.java | 1 - .../cowstore/implementation/package-info.java | 1 - .../src/main/java/cowstore/models/Error.java | 1 - .../java/cowstore/models/ErrorException.java | 1 - .../java/cowstore/models/ListPetsHeaders.java | 1 - .../src/main/java/cowstore/models/Pet.java | 1 - .../java/cowstore/models/package-info.java | 1 - .../src/main/java/cowstore/package-info.java | 1 - .../Azure.NodeJS/LICENSE.txt | 21 - .../Azure.NodeJS/lib/models/errorModel.js | 1 - .../Azure.NodeJS/lib/models/index.js | 1 - .../Azure.NodeJS/lib/models/pet.js | 1 - .../Azure.NodeJS/lib/swaggerPetstore.js | 1 - .../Azure.NodeJS/package.json | 25 - .../Azure.Python/cowstore/__init__.py | 1 - .../Azure.Python/cowstore/models/__init__.py | 1 - .../Azure.Python/cowstore/models/error.py | 1 - .../Azure.Python/cowstore/models/pet.py | 1 - .../Azure.Python/cowstore/swagger_petstore.py | 1 - .../Azure.Python/cowstore/version.py | 1 - .../Azure.Ruby/1.0.0/generated/petstore.rb | 1 - .../1.0.0/generated/petstore/models/error.rb | 1 - .../1.0.0/generated/petstore/models/pet.rb | 1 - .../generated/petstore/module_definition.rb | 1 - .../generated/petstore/swagger_petstore.rb | 1 - .../CSharp/ISwaggerPetstore.cs | 1 - .../CSharp/Models/Error.cs | 1 - .../CSharp/Models/ErrorException.cs | 1 - .../CSharp/Models/ListPetsHeaders.cs | 1 - .../CSharp/Models/Pet.cs | 1 - .../CSharp/SwaggerPetstore.cs | 1 - .../CSharp/SwaggerPetstoreExtensions.cs | 1 - .../1b-code-generation-multilang/Go/client.go | 1 - .../1b-code-generation-multilang/Go/models.go | 1 - .../Go/version.go | 1 - .../Java/SwaggerPetstore.java | 1 - .../implementation/SwaggerPetstoreImpl.java | 1 - .../Java/implementation/package-info.java | 1 - .../Java/models/Error.java | 1 - .../Java/models/ErrorException.java | 1 - .../Java/models/ListPetsHeaders.java | 1 - .../Java/models/Pet.java | 1 - .../Java/models/package-info.java | 1 - .../Java/package-info.java | 1 - .../NodeJS/LICENSE.txt | 21 - .../NodeJS/lib/models/errorModel.js | 1 - .../NodeJS/lib/models/index.js | 1 - .../NodeJS/lib/models/pet.js | 1 - .../NodeJS/lib/swaggerPetstore.js | 1 - .../NodeJS/package.json | 24 - .../Python/cowstore/__init__.py | 1 - .../Python/cowstore/models/__init__.py | 1 - .../Python/cowstore/models/error.py | 1 - .../Python/cowstore/models/pet.py | 1 - .../Python/cowstore/swagger_petstore.py | 1 - .../Python/cowstore/version.py | 1 - .../Ruby/generated/petstore.rb | 1 - .../Ruby/generated/petstore/models/error.rb | 1 - .../Ruby/generated/petstore/models/pet.rb | 1 - .../generated/petstore/module_definition.rb | 1 - .../generated/petstore/swagger_petstore.rb | 1 - .../petstore.yaml | 105 - .../1b-code-generation-multilang/readme.md | 88 - .../shell/code.txt | 1 - .../shell/stderr.txt | 1 - .../shell/stdout.txt | 1 - .../Artifacts/searchservice.norm.json | 2932 ---------- .../Artifacts/searchservice.norm.yaml | 2281 -------- .../Client/DataSources.cs | 1 - .../Client/DataSourcesExtensions.cs | 1 - .../Client/IDataSources.cs | 1 - .../Client/IIndexers.cs | 1 - .../Client/IIndexes.cs | 1 - .../Client/ISearchandStorage.cs | 1 - .../Client/IStorageAccounts.cs | 1 - .../Client/IUsageOperations.cs | 1 - .../Client/Indexers.cs | 1 - .../Client/IndexersExtensions.cs | 1 - .../Client/Indexes.cs | 1 - .../Client/IndexesExtensions.cs | 1 - .../Client/Models/AccountStatus.cs | 1 - .../Client/Models/AccountType.cs | 1 - .../Models/CheckNameAvailabilityResult.cs | 1 - .../Client/Models/CorsOptions.cs | 1 - .../Client/Models/CustomDomain.cs | 1 - .../Models/DataChangeDetectionPolicy.cs | 1 - .../Client/Models/DataContainer.cs | 1 - .../Models/DataDeletionDetectionPolicy.cs | 1 - .../Client/Models/DataSource.cs | 1 - .../Client/Models/DataSourceCredentials.cs | 1 - .../Client/Models/Endpoints.cs | 1 - .../HighWaterMarkChangeDetectionPolicy.cs | 1 - .../Client/Models/Index.cs | 1 - .../Client/Models/Indexer.cs | 1 - .../Client/Models/IndexerExecutionStatus.cs | 1 - .../Client/Models/IndexerStatus.cs | 1 - .../Client/Models/IndexingParameters.cs | 1 - .../Client/Models/ItemError.cs | 1 - .../Client/Models/ProvisioningState.cs | 1 - .../Client/Models/Reason.cs | 1 - .../Client/Models/Resource.cs | 1 - .../Models/ScoringFunctionAggregation.cs | 1 - .../Models/ScoringFunctionInterpolation.cs | 1 - .../Client/Models/SearchRequestOptions.cs | 1 - ...SoftDeleteColumnDeletionDetectionPolicy.cs | 1 - .../SqlIntegratedChangeTrackingPolicy.cs | 1 - .../Client/Models/StorageAccount.cs | 1 - ...eAccountCheckNameAvailabilityParameters.cs | 1 - .../Models/StorageAccountCreateParameters.cs | 1 - .../Client/Models/StorageAccountKeys.cs | 1 - .../Client/Models/StorageAccountListResult.cs | 1 - .../StorageAccountRegenerateKeyParameters.cs | 1 - .../Models/StorageAccountUpdateParameters.cs | 1 - .../Client/Models/SuggesterSearchMode.cs | 1 - .../Client/Models/TagScoringParameters.cs | 1 - .../Client/Models/Usage.cs | 1 - .../Client/Models/UsageListResult.cs | 1 - .../Client/Models/UsageName.cs | 1 - .../Client/Models/UsageUnit.cs | 1 - .../Client/SearchandStorage.cs | 1 - .../Client/StorageAccounts.cs | 1 - .../Client/StorageAccountsExtensions.cs | 1 - .../Client/UsageOperations.cs | 1 - .../Client/UsageOperationsExtensions.cs | 1 - .../1c-multiple-input-swaggers/readme.md | 53 - .../1c-multiple-input-swaggers/shell/code.txt | 1 - .../shell/stderr.txt | 1 - .../shell/stdout.txt | 1 - .../AzureClient/IStorageAccountsOperations.cs | 1 - .../AzureClient/IStorageManagementClient.cs | 1 - .../folder/AzureClient/IUsageOperations.cs | 1 - .../AzureClient/Models/AccountStatus.cs | 1 - .../folder/AzureClient/Models/AccountType.cs | 1 - .../Models/CheckNameAvailabilityResult.cs | 1 - .../folder/AzureClient/Models/CustomDomain.cs | 1 - .../folder/AzureClient/Models/Endpoints.cs | 1 - .../base/folder/AzureClient/Models/Page.cs | 1 - .../AzureClient/Models/ProvisioningState.cs | 1 - .../base/folder/AzureClient/Models/Reason.cs | 1 - .../folder/AzureClient/Models/Resource.cs | 1 - .../AzureClient/Models/StorageAccount.cs | 1 - ...eAccountCheckNameAvailabilityParameters.cs | 1 - .../Models/StorageAccountCreateParameters.cs | 1 - .../AzureClient/Models/StorageAccountKeys.cs | 1 - .../StorageAccountRegenerateKeyParameters.cs | 1 - .../Models/StorageAccountUpdateParameters.cs | 1 - .../base/folder/AzureClient/Models/Usage.cs | 1 - .../folder/AzureClient/Models/UsageName.cs | 1 - .../folder/AzureClient/Models/UsageUnit.cs | 1 - .../AzureClient/StorageAccountsOperations.cs | 1 - .../StorageAccountsOperationsExtensions.cs | 1 - .../AzureClient/StorageManagementClient.cs | 1 - .../folder/AzureClient/UsageOperations.cs | 1 - .../AzureClient/UsageOperationsExtensions.cs | 1 - .../base/folder/Client/IStorageAccounts.cs | 1 - .../folder/Client/IStorageManagementClient.cs | 1 - .../base/folder/Client/IUsageOperations.cs | 1 - .../folder/Client/Models/AccountStatus.cs | 1 - .../base/folder/Client/Models/AccountType.cs | 1 - .../Models/CheckNameAvailabilityResult.cs | 1 - .../base/folder/Client/Models/CustomDomain.cs | 1 - .../base/folder/Client/Models/Endpoints.cs | 1 - .../folder/Client/Models/ProvisioningState.cs | 1 - .../base/folder/Client/Models/Reason.cs | 1 - .../base/folder/Client/Models/Resource.cs | 1 - .../folder/Client/Models/StorageAccount.cs | 1 - ...eAccountCheckNameAvailabilityParameters.cs | 1 - .../Models/StorageAccountCreateParameters.cs | 1 - .../Client/Models/StorageAccountKeys.cs | 1 - .../Client/Models/StorageAccountListResult.cs | 1 - .../StorageAccountRegenerateKeyParameters.cs | 1 - .../Models/StorageAccountUpdateParameters.cs | 1 - .../base/folder/Client/Models/Usage.cs | 1 - .../folder/Client/Models/UsageListResult.cs | 1 - .../base/folder/Client/Models/UsageName.cs | 1 - .../base/folder/Client/Models/UsageUnit.cs | 1 - .../base/folder/Client/StorageAccounts.cs | 1 - .../Client/StorageAccountsExtensions.cs | 1 - .../folder/Client/StorageManagementClient.cs | 1 - .../base/folder/Client/UsageOperations.cs | 1 - .../Client/UsageOperationsExtensions.cs | 1 - .../folder/generated/AwesomeNamespace.json | 928 --- .../openapi-v2/1d-common-settings/readme.md | 76 - .../1d-common-settings/shell/code.txt | 1 - .../1d-common-settings/shell/stderr.txt | 1 - .../1d-common-settings/shell/stdout.txt | 1 - Samples/openapi-v2/1e-help/readme.md | 33 - Samples/openapi-v2/1e-help/shell/code.txt | 1 - Samples/openapi-v2/1e-help/shell/stderr.txt | 1 - Samples/openapi-v2/1e-help/shell/stdout.txt | 284 - .../openapi-v2/1f-output-to-stdout/readme.md | 13 - .../1f-output-to-stdout/shell/code.txt | 1 - .../1f-output-to-stdout/shell/stderr.txt | 1 - .../1f-output-to-stdout/shell/stdout.txt | 43 - .../openapi-v2/1f-output-to-stdout/tiny.yaml | 37 - .../CSharp/IStorageAccountsOperations.cs | 1 - .../CSharp/IStorageManagementClient.cs | 1 - .../2a-validation/CSharp/IUsageOperations.cs | 1 - .../CSharp/Models/AccountStatus.cs | 1 - .../CSharp/Models/AccountType.cs | 1 - .../Models/CheckNameAvailabilityResult.cs | 1 - .../CSharp/Models/CustomDomain.cs | 1 - .../2a-validation/CSharp/Models/Endpoints.cs | 1 - .../2a-validation/CSharp/Models/Page.cs | 1 - .../CSharp/Models/ProvisioningState.cs | 1 - .../2a-validation/CSharp/Models/Reason.cs | 1 - .../2a-validation/CSharp/Models/Resource.cs | 1 - .../CSharp/Models/StorageAccount.cs | 1 - ...eAccountCheckNameAvailabilityParameters.cs | 1 - .../Models/StorageAccountCreateParameters.cs | 1 - .../CSharp/Models/StorageAccountKeys.cs | 1 - .../StorageAccountRegenerateKeyParameters.cs | 1 - .../Models/StorageAccountUpdateParameters.cs | 1 - .../2a-validation/CSharp/Models/Usage.cs | 1 - .../2a-validation/CSharp/Models/UsageName.cs | 1 - .../2a-validation/CSharp/Models/UsageUnit.cs | 1 - .../CSharp/StorageAccountsOperations.cs | 1 - .../StorageAccountsOperationsExtensions.cs | 1 - .../CSharp/StorageManagementClient.cs | 1 - .../2a-validation/CSharp/UsageOperations.cs | 1 - .../CSharp/UsageOperationsExtensions.cs | 1 - .../Java/src/main/java/StorageAccounts.java | 1 - .../main/java/StorageManagementClient.java | 1 - .../Java/src/main/java/Usages.java | 1 - .../implementation/StorageAccountsImpl.java | 1 - .../StorageManagementClientImpl.java | 1 - .../main/java/implementation/UsagesImpl.java | 1 - .../java/implementation/package-info.java | 1 - .../src/main/java/models/AccountStatus.java | 1 - .../src/main/java/models/AccountType.java | 1 - .../models/CheckNameAvailabilityResult.java | 1 - .../src/main/java/models/CustomDomain.java | 1 - .../Java/src/main/java/models/Endpoints.java | 1 - .../Java/src/main/java/models/PageImpl.java | 1 - .../main/java/models/ProvisioningState.java | 1 - .../Java/src/main/java/models/Reason.java | 1 - .../src/main/java/models/StorageAccount.java | 1 - ...ccountCheckNameAvailabilityParameters.java | 1 - .../StorageAccountCreateParameters.java | 1 - .../main/java/models/StorageAccountKeys.java | 1 - ...StorageAccountRegenerateKeyParameters.java | 1 - .../StorageAccountUpdateParameters.java | 1 - .../Java/src/main/java/models/Usage.java | 1 - .../Java/src/main/java/models/UsageName.java | 1 - .../Java/src/main/java/models/UsageUnit.java | 1 - .../src/main/java/models/package-info.java | 1 - .../Java/src/main/java/package-info.java | 1 - .../2a-validation/NodeJS/LICENSE.txt | 21 - .../lib/models/checkNameAvailabilityResult.js | 1 - .../NodeJS/lib/models/customDomain.js | 1 - .../NodeJS/lib/models/endpoints.js | 1 - .../2a-validation/NodeJS/lib/models/index.js | 1 - .../NodeJS/lib/models/resource.js | 1 - .../NodeJS/lib/models/storageAccount.js | 1 - ...eAccountCheckNameAvailabilityParameters.js | 1 - .../models/storageAccountCreateParameters.js | 1 - .../NodeJS/lib/models/storageAccountKeys.js | 1 - .../lib/models/storageAccountListResult.js | 1 - .../storageAccountRegenerateKeyParameters.js | 1 - .../models/storageAccountUpdateParameters.js | 1 - .../2a-validation/NodeJS/lib/models/usage.js | 1 - .../NodeJS/lib/models/usageListResult.js | 1 - .../NodeJS/lib/models/usageName.js | 1 - .../NodeJS/lib/operations/index.js | 1 - .../NodeJS/lib/operations/storageAccounts.js | 1 - .../NodeJS/lib/operations/usageOperations.js | 1 - .../NodeJS/lib/storageManagementClient.js | 1 - .../2a-validation/NodeJS/package.json | 25 - .../2a-validation/Python/storage/__init__.py | 1 - .../Python/storage/models/__init__.py | 1 - .../models/check_name_availability_result.py | 1 - .../Python/storage/models/custom_domain.py | 1 - .../Python/storage/models/endpoints.py | 1 - .../Python/storage/models/resource.py | 1 - .../Python/storage/models/storage_account.py | 1 - ...ount_check_name_availability_parameters.py | 1 - .../storage_account_create_parameters.py | 1 - .../storage/models/storage_account_keys.py | 1 - .../storage/models/storage_account_paged.py | 1 - ...orage_account_regenerate_key_parameters.py | 1 - .../storage_account_update_parameters.py | 1 - .../models/storage_management_client_enums.py | 1 - .../Python/storage/models/usage.py | 1 - .../Python/storage/models/usage_name.py | 1 - .../Python/storage/models/usage_paged.py | 1 - .../Python/storage/operations/__init__.py | 1 - .../operations/storage_accounts_operations.py | 1 - .../storage/operations/usage_operations.py | 1 - .../storage/storage_management_client.py | 1 - .../2a-validation/Python/storage/version.py | 1 - .../Ruby/2015-06-15/generated/storage.rb | 1 - .../storage/models/account_status.rb | 1 - .../generated/storage/models/account_type.rb | 1 - .../models/check_name_availability_result.rb | 1 - .../generated/storage/models/custom_domain.rb | 1 - .../generated/storage/models/endpoints.rb | 1 - .../storage/models/provisioning_state.rb | 1 - .../generated/storage/models/reason.rb | 1 - .../generated/storage/models/resource.rb | 1 - .../storage/models/storage_account.rb | 1 - ...ount_check_name_availability_parameters.rb | 1 - .../storage_account_create_parameters.rb | 1 - .../storage/models/storage_account_keys.rb | 1 - .../models/storage_account_list_result.rb | 1 - ...orage_account_regenerate_key_parameters.rb | 1 - .../storage_account_update_parameters.rb | 1 - .../generated/storage/models/usage.rb | 1 - .../storage/models/usage_list_result.rb | 1 - .../generated/storage/models/usage_name.rb | 1 - .../generated/storage/models/usage_unit.rb | 1 - .../generated/storage/module_definition.rb | 1 - .../generated/storage/storage_accounts.rb | 1 - .../storage/storage_management_client.rb | 1 - .../generated/storage/usage_operations.rb | 1 - Samples/openapi-v2/2a-validation/readme.md | 38 - .../openapi-v2/2a-validation/shell/code.txt | 1 - .../openapi-v2/2a-validation/shell/stderr.txt | 33 - .../openapi-v2/2a-validation/shell/stdout.txt | 55 - Samples/openapi-v2/2b-suppressions/readme.md | 28 - .../openapi-v2/2b-suppressions/shell/code.txt | 1 - .../2b-suppressions/shell/stderr.txt | 33 - .../2b-suppressions/shell/stdout.txt | 55 - .../Client/IQueryKeysOperations.cs | 1 - .../Client/ISearchManagementClient.cs | 1 - .../Client/IServicesOperations.cs | 1 - .../Client/Models/Error.cs | 1 - .../Client/Models/ErrorDetails.cs | 1 - .../Client/Models/ErrorException.cs | 1 - .../Client/Models/ListQueryKeysResult.cs | 1 - .../Client/Models/QueryKey.cs | 1 - .../SearchServiceCreateOrUpdateParameters.cs | 1 - .../Client/Models/SearchServiceListResult.cs | 1 - .../Client/Models/SearchServiceProperties.cs | 1 - .../Client/Models/SearchServiceResource.cs | 1 - .../Client/QueryKeysOperations.cs | 1 - .../Client/QueryKeysOperationsExtensions.cs | 1 - .../Client/SearchManagementClient.cs | 1 - .../Client/ServicesOperations.cs | 1 - .../Client/ServicesOperationsExtensions.cs | 1 - .../generated/swagger.md.json | 393 -- .../openapi-v2/3a-literate-swagger/readme.md | 21 - .../3a-literate-swagger/shell/code.txt | 1 - .../3a-literate-swagger/shell/stderr.txt | 24 - .../3a-literate-swagger/shell/stdout.txt | 49 - .../openapi-v2/3a-literate-swagger/swagger.md | 405 -- .../Client/CheckNameAvailabilityOperations.cs | 1 - ...eckNameAvailabilityOperationsExtensions.cs | 1 - .../ICheckNameAvailabilityOperations.cs | 1 - .../Client/IStorageAccounts.cs | 1 - .../Client/IStorageManagementClient.cs | 1 - .../Client/IUsagesOperations.cs | 1 - .../Client/Models/AccountStatus.cs | 1 - .../Client/Models/AccountType.cs | 1 - .../Models/CheckNameAvailabilityResult.cs | 1 - .../Client/Models/CustomDomain.cs | 1 - .../Client/Models/Endpoints.cs | 1 - .../Client/Models/Page.cs | 1 - .../Client/Models/ProvisioningState.cs | 1 - .../Client/Models/Reason.cs | 1 - .../Client/Models/Resource.cs | 1 - .../Client/Models/StorageAccount.cs | 1 - ...eAccountCheckNameAvailabilityParameters.cs | 1 - .../Models/StorageAccountCreateParameters.cs | 1 - .../Client/Models/StorageAccountKeys.cs | 1 - .../StorageAccountRegenerateKeyParameters.cs | 1 - .../Models/StorageAccountUpdateParameters.cs | 1 - .../Client/Models/Usage.cs | 1 - .../Client/Models/UsageName.cs | 1 - .../Client/Models/UsageUnit.cs | 1 - .../Client/StorageAccounts.cs | 1 - .../Client/StorageAccountsExtensions.cs | 1 - .../Client/StorageManagementClient.cs | 1 - .../Client/UsagesOperations.cs | 1 - .../Client/UsagesOperationsExtensions.cs | 1 - .../Client/code-model-v1.norm.yaml | 5151 ----------------- .../generated/configuration.yaml | 455 -- .../generated/pipeline.yaml | 209 - .../generated/storage.json | 928 --- .../3b-custom-transformations/readme.md | 75 - .../3b-custom-transformations/shell/code.txt | 1 - .../shell/stderr.txt | 33 - .../shell/stdout.txt | 55 - .../3c-guards/Client/IStorageAccounts.cs | 1 - .../Client/IStorageManagementClient.cs | 1 - .../3c-guards/Client/IUsageOperations.cs | 1 - .../3c-guards/Client/Models/AccountStatus.cs | 1 - .../3c-guards/Client/Models/AccountType.cs | 1 - .../Models/CheckNameAvailabilityResult.cs | 1 - .../3c-guards/Client/Models/CustomDomain.cs | 1 - .../3c-guards/Client/Models/Endpoints.cs | 1 - .../Client/Models/ProvisioningState.cs | 1 - .../3c-guards/Client/Models/Reason.cs | 1 - .../3c-guards/Client/Models/Resource.cs | 1 - .../3c-guards/Client/Models/StorageAccount.cs | 1 - ...eAccountCheckNameAvailabilityParameters.cs | 1 - .../Models/StorageAccountCreateParameters.cs | 1 - .../Client/Models/StorageAccountKeys.cs | 1 - .../Client/Models/StorageAccountListResult.cs | 1 - .../StorageAccountRegenerateKeyParameters.cs | 1 - .../Models/StorageAccountUpdateParameters.cs | 1 - .../3c-guards/Client/Models/Usage.cs | 1 - .../Client/Models/UsageListResult.cs | 1 - .../3c-guards/Client/Models/UsageName.cs | 1 - .../3c-guards/Client/Models/UsageUnit.cs | 1 - .../3c-guards/Client/StorageAccounts.cs | 1 - .../Client/StorageAccountsExtensions.cs | 1 - .../Client/StorageManagementClient.cs | 1 - .../3c-guards/Client/UsageOperations.cs | 1 - .../Client/UsageOperationsExtensions.cs | 1 - .../OtherClient/StorageAccounts.java | 1 - .../OtherClient/StorageManagementClient.java | 1 - .../3c-guards/OtherClient/Usages.java | 1 - .../implementation/StorageAccountsImpl.java | 1 - .../StorageManagementClientImpl.java | 1 - .../implementation/UsagesImpl.java | 1 - .../implementation/package-info.java | 1 - .../OtherClient/models/AccountStatus.java | 1 - .../OtherClient/models/AccountType.java | 1 - .../models/CheckNameAvailabilityResult.java | 1 - .../OtherClient/models/CustomDomain.java | 1 - .../OtherClient/models/Endpoints.java | 1 - .../OtherClient/models/ProvisioningState.java | 1 - .../3c-guards/OtherClient/models/Reason.java | 1 - .../OtherClient/models/Resource.java | 1 - .../OtherClient/models/StorageAccount.java | 1 - ...ccountCheckNameAvailabilityParameters.java | 1 - .../StorageAccountCreateParameters.java | 1 - .../models/StorageAccountKeys.java | 1 - .../models/StorageAccountListResult.java | 1 - ...StorageAccountRegenerateKeyParameters.java | 1 - .../StorageAccountUpdateParameters.java | 1 - .../3c-guards/OtherClient/models/Usage.java | 1 - .../OtherClient/models/UsageListResult.java | 1 - .../OtherClient/models/UsageName.java | 1 - .../OtherClient/models/UsageUnit.java | 1 - .../OtherClient/models/package-info.java | 1 - .../3c-guards/OtherClient/package-info.java | 1 - Samples/openapi-v2/3c-guards/readme.md | 44 - Samples/openapi-v2/3c-guards/shell/code.txt | 1 - Samples/openapi-v2/3c-guards/shell/stderr.txt | 1 - Samples/openapi-v2/3c-guards/shell/stdout.txt | 1 - .../Client/IStorageAccounts.cs | 1 - .../Client/IStorageManagementClient.cs | 1 - .../Client/IUsageOperations.cs | 1 - .../Client/Models/AccountStatus.cs | 1 - .../Client/Models/AccountType.cs | 1 - .../Models/CheckNameAvailabilityResult.cs | 1 - .../Client/Models/CustomDomain.cs | 1 - .../Client/Models/Endpoints.cs | 1 - .../Client/Models/ProvisioningState.cs | 1 - .../Client/Models/Reason.cs | 1 - .../Client/Models/Resource.cs | 1 - .../Client/Models/StorageAccount.cs | 1 - ...eAccountCheckNameAvailabilityParameters.cs | 1 - .../Models/StorageAccountCreateParameters.cs | 1 - .../Client/Models/StorageAccountKeys.cs | 1 - .../Client/Models/StorageAccountListResult.cs | 1 - .../StorageAccountRegenerateKeyParameters.cs | 1 - .../Models/StorageAccountUpdateParameters.cs | 1 - .../Client/Models/Usage.cs | 1 - .../Client/Models/UsageListResult.cs | 1 - .../Client/Models/UsageName.cs | 1 - .../Client/Models/UsageUnit.cs | 1 - .../Client/StorageAccounts.cs | 1 - .../Client/StorageAccountsExtensions.cs | 1 - .../Client/StorageManagementClient.cs | 1 - .../Client/UsageOperations.cs | 1 - .../Client/UsageOperationsExtensions.cs | 1 - .../openapi-v2/3d-custom-validation/readme.md | 68 - .../3d-custom-validation/shell/code.txt | 1 - .../3d-custom-validation/shell/stderr.txt | 2 - .../3d-custom-validation/shell/stdout.txt | 7 - .../output1/IStorageAccountsOperations.cs | 1 - .../output1/IStorageManagementClient.cs | 1 - .../3e-batch-mode/output1/IUsageOperations.cs | 1 - .../output1/Models/AccountStatus.cs | 1 - .../output1/Models/AccountType.cs | 1 - .../Models/CheckNameAvailabilityResult.cs | 1 - .../output1/Models/CustomDomain.cs | 1 - .../3e-batch-mode/output1/Models/Endpoints.cs | 1 - .../3e-batch-mode/output1/Models/Page.cs | 1 - .../output1/Models/ProvisioningState.cs | 1 - .../3e-batch-mode/output1/Models/Reason.cs | 1 - .../3e-batch-mode/output1/Models/Resource.cs | 1 - .../output1/Models/StorageAccount.cs | 1 - ...eAccountCheckNameAvailabilityParameters.cs | 1 - .../Models/StorageAccountCreateParameters.cs | 1 - .../output1/Models/StorageAccountKeys.cs | 1 - .../StorageAccountRegenerateKeyParameters.cs | 1 - .../Models/StorageAccountUpdateParameters.cs | 1 - .../3e-batch-mode/output1/Models/Usage.cs | 1 - .../3e-batch-mode/output1/Models/UsageName.cs | 1 - .../3e-batch-mode/output1/Models/UsageUnit.cs | 1 - .../output1/StorageAccountsOperations.cs | 1 - .../StorageAccountsOperationsExtensions.cs | 1 - .../output1/StorageManagementClient.cs | 1 - .../3e-batch-mode/output1/UsageOperations.cs | 1 - .../output1/UsageOperationsExtensions.cs | 1 - .../output2/StorageAccounts.java | 1 - .../output2/StorageManagementClient.java | 1 - .../3e-batch-mode/output2/Usages.java | 1 - .../implementation/StorageAccountsImpl.java | 1 - .../StorageManagementClientImpl.java | 1 - .../output2/implementation/UsagesImpl.java | 1 - .../output2/implementation/package-info.java | 1 - .../output2/models/AccountStatus.java | 1 - .../output2/models/AccountType.java | 1 - .../models/CheckNameAvailabilityResult.java | 1 - .../output2/models/CustomDomain.java | 1 - .../output2/models/Endpoints.java | 1 - .../output2/models/ProvisioningState.java | 1 - .../3e-batch-mode/output2/models/Reason.java | 1 - .../output2/models/Resource.java | 1 - .../output2/models/StorageAccount.java | 1 - ...ccountCheckNameAvailabilityParameters.java | 1 - .../StorageAccountCreateParameters.java | 1 - .../output2/models/StorageAccountKeys.java | 1 - .../models/StorageAccountListResult.java | 1 - ...StorageAccountRegenerateKeyParameters.java | 1 - .../StorageAccountUpdateParameters.java | 1 - .../3e-batch-mode/output2/models/Usage.java | 1 - .../output2/models/UsageListResult.java | 1 - .../output2/models/UsageName.java | 1 - .../output2/models/UsageUnit.java | 1 - .../output2/models/package-info.java | 1 - .../3e-batch-mode/output2/package-info.java | 1 - .../output3/generated/advisor.rb | 1 - .../advisor/composed_cowbell_client.rb | 1 - .../advisor/models/account_status.rb | 1 - .../generated/advisor/models/account_type.rb | 1 - .../generated/advisor/models/category.rb | 1 - .../models/check_name_availability_result.rb | 1 - .../generated/advisor/models/custom_domain.rb | 1 - .../generated/advisor/models/endpoints.rb | 1 - .../generated/advisor/models/impact.rb | 1 - .../advisor/models/operation_display_info.rb | 1 - .../advisor/models/operation_entity.rb | 1 - .../models/operation_entity_list_result.rb | 1 - .../advisor/models/provisioning_state.rb | 1 - .../generated/advisor/models/reason.rb | 1 - .../generated/advisor/models/resource.rb | 1 - .../models/resource_recommendation_base.rb | 1 - ...esource_recommendation_base_list_result.rb | 1 - .../output3/generated/advisor/models/risk.rb | 1 - .../advisor/models/short_description.rb | 1 - .../advisor/models/storage_account.rb | 1 - ...ount_check_name_availability_parameters.rb | 1 - .../storage_account_create_parameters.rb | 1 - .../advisor/models/storage_account_keys.rb | 1 - .../models/storage_account_list_result.rb | 1 - ...orage_account_regenerate_key_parameters.rb | 1 - .../storage_account_update_parameters.rb | 1 - .../advisor/models/suppression_contract.rb | 1 - .../suppression_contract_list_result.rb | 1 - .../output3/generated/advisor/models/usage.rb | 1 - .../advisor/models/usage_list_result.rb | 1 - .../generated/advisor/models/usage_name.rb | 1 - .../generated/advisor/models/usage_unit.rb | 1 - .../generated/advisor/module_definition.rb | 1 - .../output3/generated/advisor/operations.rb | 1 - .../generated/advisor/recommendations.rb | 1 - .../generated/advisor/storage_accounts.rb | 1 - .../output3/generated/advisor/suppressions.rb | 1 - .../generated/advisor/usage_operations.rb | 1 - Samples/openapi-v2/3e-batch-mode/readme.md | 44 - .../openapi-v2/3e-batch-mode/shell/code.txt | 1 - .../openapi-v2/3e-batch-mode/shell/stderr.txt | 1 - .../openapi-v2/3e-batch-mode/shell/stdout.txt | 4 - .../Azure.CSharp.Fluent/combined | 774 --- .../Azure.CSharp/combined | 774 --- .../3f-example-generation/CSharp/combined | 774 --- .../3f-example-generation/readme.md | 82 - .../3f-example-generation/shell/code.txt | 1 - .../3f-example-generation/shell/stderr.txt | 1 - .../3f-example-generation/shell/stdout.txt | 438 -- .../openapi-v2/3g-require-config/.gitignore | 2 - .../Client/SwaggerPetstore.cs | 1 - .../p\303\251tst\303\266re.json" | 1109 ---- .../openapi-v2/3g-require-config/readme.md | 20 - .../3g-require-config/shell/code.txt | 1 - .../3g-require-config/shell/stderr.txt | 1 - .../3g-require-config/shell/stdout.txt | 1 - Samples/openapi-v2/3h-try-require/.gitignore | 2 - .../3h-try-require/Client/SwaggerPetstore.cs | 1 - .../p\303\251tst\303\266re.json" | 1109 ---- .../3h-try-require/readme.csharp.md | 19 - Samples/openapi-v2/3h-try-require/readme.md | 24 - .../openapi-v2/3h-try-require/shell/code.txt | 1 - .../3h-try-require/shell/stderr.txt | 1 - .../3h-try-require/shell/stdout.txt | 1 - .../Client/ISwaggerPetstore.cs | 1 - .../Client/Models/Error.cs | 1 - .../Client/Models/ErrorException.cs | 1 - .../Client/Models/ListPetsHeaders.cs | 1 - .../Client/Models/Pet.cs | 1 - .../Client/SwaggerPetstore.cs | 1 - .../Client/SwaggerPetstoreExtensions.cs | 1 - .../1a-code-generation-minimal/petstore.yaml | 109 - .../1a-code-generation-minimal/readme.md | 13 - .../1a-code-generation-minimal/shell/code.txt | 1 - .../shell/stderr.txt | 1 - .../shell/stdout.txt | 1 - .../literate-configuration.md | 2 +- docs/user/cli.md | 2 + .../literate-file-formats/configuration.md | 2 +- package.json | 2 +- schema/openapi3-schema.json | 2279 -------- src/autorest-core/app.ts | 223 +- .../language-service/language-service.ts | 4 +- src/autorest-core/lib/autorest-core.ts | 93 +- src/autorest-core/lib/configuration.ts | 289 +- .../lib/data-store/data-store.ts | 77 +- src/autorest-core/lib/message.ts | 2 - .../lib/parsing/literate-yaml.ts | 4 +- src/autorest-core/lib/pipeline/common.ts | 2 +- .../lib/pipeline/component-modifier.ts | 32 +- .../lib/pipeline/metadata-generation.ts | 2 +- src/autorest-core/lib/pipeline/pipeline.ts | 275 +- .../lib/pipeline/plugin-endpoint.ts | 2 +- .../lib/pipeline/schema-validation.ts | 29 +- .../lib/pipeline/swagger-loader.ts | 343 +- src/autorest-core/lib/source-map/merging.ts | 16 +- src/autorest-core/package.json | 18 +- .../resources/default-configuration.md | 107 +- src/autorest-core/test/cancellation.ts | 70 +- src/autorest-core/test/declarations.ts | 3 - src/autorest-core/test/end-to-end.ts | 91 +- src/autorest-core/test/eventing.ts | 2 +- src/autorest-core/test/object-manipulator.ts | 74 +- src/autorest-core/test/plugin.ts | 82 +- src/autorest-core/test/swagger-loading.ts | 4 +- src/autorest-core/tsconfig.json | 4 +- src/autorest/app.ts | 94 +- src/autorest/autorest-as-a-service.ts | 6 +- src/autorest/interfaces/autorest-core.d.ts | 561 +- src/autorest/package.json | 12 +- src/autorest/tsconfig.json | 2 +- 673 files changed, 1098 insertions(+), 25882 deletions(-) delete mode 100644 Samples/openapi-v2/1a-code-generation-minimal/Client/ISwaggerPetstore.cs delete mode 100644 Samples/openapi-v2/1a-code-generation-minimal/Client/Models/Category.cs delete mode 100644 Samples/openapi-v2/1a-code-generation-minimal/Client/Models/Order.cs delete mode 100644 Samples/openapi-v2/1a-code-generation-minimal/Client/Models/Pet.cs delete mode 100644 Samples/openapi-v2/1a-code-generation-minimal/Client/Models/Tag.cs delete mode 100644 Samples/openapi-v2/1a-code-generation-minimal/Client/Models/User.cs delete mode 100644 Samples/openapi-v2/1a-code-generation-minimal/Client/Models/XmlSerialization.cs delete mode 100644 Samples/openapi-v2/1a-code-generation-minimal/Client/SwaggerPetstore.cs delete mode 100644 Samples/openapi-v2/1a-code-generation-minimal/Client/SwaggerPetstoreExtensions.cs delete mode 100644 "Samples/openapi-v2/1a-code-generation-minimal/p\303\251tst\303\266re.json" delete mode 100644 Samples/openapi-v2/1a-code-generation-minimal/readme.md delete mode 100644 Samples/openapi-v2/1a-code-generation-minimal/shell/code.txt delete mode 100644 Samples/openapi-v2/1a-code-generation-minimal/shell/stderr.txt delete mode 100644 Samples/openapi-v2/1a-code-generation-minimal/shell/stdout.txt delete mode 100644 Samples/openapi-v2/1b-code-generation-multilang/Azure.CSharp.Fluent/Generated/ISwaggerPetstore.cs delete mode 100644 Samples/openapi-v2/1b-code-generation-multilang/Azure.CSharp.Fluent/Generated/Models/Error.cs delete mode 100644 Samples/openapi-v2/1b-code-generation-multilang/Azure.CSharp.Fluent/Generated/Models/ErrorException.cs delete mode 100644 Samples/openapi-v2/1b-code-generation-multilang/Azure.CSharp.Fluent/Generated/Models/ListPetsHeadersInner.cs delete mode 100644 Samples/openapi-v2/1b-code-generation-multilang/Azure.CSharp.Fluent/Generated/Models/PetInner.cs delete mode 100644 Samples/openapi-v2/1b-code-generation-multilang/Azure.CSharp.Fluent/Generated/SwaggerPetstore.cs delete mode 100644 Samples/openapi-v2/1b-code-generation-multilang/Azure.CSharp.Fluent/Generated/SwaggerPetstoreExtensions.cs delete mode 100644 Samples/openapi-v2/1b-code-generation-multilang/Azure.CSharp/ISwaggerPetstoreClient.cs delete mode 100644 Samples/openapi-v2/1b-code-generation-multilang/Azure.CSharp/Models/Error.cs delete mode 100644 Samples/openapi-v2/1b-code-generation-multilang/Azure.CSharp/Models/ErrorException.cs delete mode 100644 Samples/openapi-v2/1b-code-generation-multilang/Azure.CSharp/Models/ListPetsHeaders.cs delete mode 100644 Samples/openapi-v2/1b-code-generation-multilang/Azure.CSharp/Models/Pet.cs delete mode 100644 Samples/openapi-v2/1b-code-generation-multilang/Azure.CSharp/SwaggerPetstoreClient.cs delete mode 100644 Samples/openapi-v2/1b-code-generation-multilang/Azure.CSharp/SwaggerPetstoreClientExtensions.cs delete mode 100644 Samples/openapi-v2/1b-code-generation-multilang/Azure.Java.Fluent/src/main/java/cowstore/Error.java delete mode 100644 Samples/openapi-v2/1b-code-generation-multilang/Azure.Java.Fluent/src/main/java/cowstore/ErrorException.java delete mode 100644 Samples/openapi-v2/1b-code-generation-multilang/Azure.Java.Fluent/src/main/java/cowstore/ListPetsHeaders.java delete mode 100644 Samples/openapi-v2/1b-code-generation-multilang/Azure.Java.Fluent/src/main/java/cowstore/implementation/PetInner.java delete mode 100644 Samples/openapi-v2/1b-code-generation-multilang/Azure.Java.Fluent/src/main/java/cowstore/implementation/SwaggerPetstoreImpl.java delete mode 100644 Samples/openapi-v2/1b-code-generation-multilang/Azure.Java.Fluent/src/main/java/cowstore/implementation/package-info.java delete mode 100644 Samples/openapi-v2/1b-code-generation-multilang/Azure.Java.Fluent/src/main/java/cowstore/package-info.java delete mode 100644 Samples/openapi-v2/1b-code-generation-multilang/Azure.Java/src/main/java/cowstore/SwaggerPetstore.java delete mode 100644 Samples/openapi-v2/1b-code-generation-multilang/Azure.Java/src/main/java/cowstore/implementation/SwaggerPetstoreImpl.java delete mode 100644 Samples/openapi-v2/1b-code-generation-multilang/Azure.Java/src/main/java/cowstore/implementation/package-info.java delete mode 100644 Samples/openapi-v2/1b-code-generation-multilang/Azure.Java/src/main/java/cowstore/models/Error.java delete mode 100644 Samples/openapi-v2/1b-code-generation-multilang/Azure.Java/src/main/java/cowstore/models/ErrorException.java delete mode 100644 Samples/openapi-v2/1b-code-generation-multilang/Azure.Java/src/main/java/cowstore/models/ListPetsHeaders.java delete mode 100644 Samples/openapi-v2/1b-code-generation-multilang/Azure.Java/src/main/java/cowstore/models/Pet.java delete mode 100644 Samples/openapi-v2/1b-code-generation-multilang/Azure.Java/src/main/java/cowstore/models/package-info.java delete mode 100644 Samples/openapi-v2/1b-code-generation-multilang/Azure.Java/src/main/java/cowstore/package-info.java delete mode 100644 Samples/openapi-v2/1b-code-generation-multilang/Azure.NodeJS/LICENSE.txt delete mode 100644 Samples/openapi-v2/1b-code-generation-multilang/Azure.NodeJS/lib/models/errorModel.js delete mode 100644 Samples/openapi-v2/1b-code-generation-multilang/Azure.NodeJS/lib/models/index.js delete mode 100644 Samples/openapi-v2/1b-code-generation-multilang/Azure.NodeJS/lib/models/pet.js delete mode 100644 Samples/openapi-v2/1b-code-generation-multilang/Azure.NodeJS/lib/swaggerPetstore.js delete mode 100644 Samples/openapi-v2/1b-code-generation-multilang/Azure.NodeJS/package.json delete mode 100644 Samples/openapi-v2/1b-code-generation-multilang/Azure.Python/cowstore/__init__.py delete mode 100644 Samples/openapi-v2/1b-code-generation-multilang/Azure.Python/cowstore/models/__init__.py delete mode 100644 Samples/openapi-v2/1b-code-generation-multilang/Azure.Python/cowstore/models/error.py delete mode 100644 Samples/openapi-v2/1b-code-generation-multilang/Azure.Python/cowstore/models/pet.py delete mode 100644 Samples/openapi-v2/1b-code-generation-multilang/Azure.Python/cowstore/swagger_petstore.py delete mode 100644 Samples/openapi-v2/1b-code-generation-multilang/Azure.Python/cowstore/version.py delete mode 100644 Samples/openapi-v2/1b-code-generation-multilang/Azure.Ruby/1.0.0/generated/petstore.rb delete mode 100644 Samples/openapi-v2/1b-code-generation-multilang/Azure.Ruby/1.0.0/generated/petstore/models/error.rb delete mode 100644 Samples/openapi-v2/1b-code-generation-multilang/Azure.Ruby/1.0.0/generated/petstore/models/pet.rb delete mode 100644 Samples/openapi-v2/1b-code-generation-multilang/Azure.Ruby/1.0.0/generated/petstore/module_definition.rb delete mode 100644 Samples/openapi-v2/1b-code-generation-multilang/Azure.Ruby/1.0.0/generated/petstore/swagger_petstore.rb delete mode 100644 Samples/openapi-v2/1b-code-generation-multilang/CSharp/ISwaggerPetstore.cs delete mode 100644 Samples/openapi-v2/1b-code-generation-multilang/CSharp/Models/Error.cs delete mode 100644 Samples/openapi-v2/1b-code-generation-multilang/CSharp/Models/ErrorException.cs delete mode 100644 Samples/openapi-v2/1b-code-generation-multilang/CSharp/Models/ListPetsHeaders.cs delete mode 100644 Samples/openapi-v2/1b-code-generation-multilang/CSharp/Models/Pet.cs delete mode 100644 Samples/openapi-v2/1b-code-generation-multilang/CSharp/SwaggerPetstore.cs delete mode 100644 Samples/openapi-v2/1b-code-generation-multilang/CSharp/SwaggerPetstoreExtensions.cs delete mode 100644 Samples/openapi-v2/1b-code-generation-multilang/Go/client.go delete mode 100644 Samples/openapi-v2/1b-code-generation-multilang/Go/models.go delete mode 100644 Samples/openapi-v2/1b-code-generation-multilang/Go/version.go delete mode 100644 Samples/openapi-v2/1b-code-generation-multilang/Java/SwaggerPetstore.java delete mode 100644 Samples/openapi-v2/1b-code-generation-multilang/Java/implementation/SwaggerPetstoreImpl.java delete mode 100644 Samples/openapi-v2/1b-code-generation-multilang/Java/implementation/package-info.java delete mode 100644 Samples/openapi-v2/1b-code-generation-multilang/Java/models/Error.java delete mode 100644 Samples/openapi-v2/1b-code-generation-multilang/Java/models/ErrorException.java delete mode 100644 Samples/openapi-v2/1b-code-generation-multilang/Java/models/ListPetsHeaders.java delete mode 100644 Samples/openapi-v2/1b-code-generation-multilang/Java/models/Pet.java delete mode 100644 Samples/openapi-v2/1b-code-generation-multilang/Java/models/package-info.java delete mode 100644 Samples/openapi-v2/1b-code-generation-multilang/Java/package-info.java delete mode 100644 Samples/openapi-v2/1b-code-generation-multilang/NodeJS/LICENSE.txt delete mode 100644 Samples/openapi-v2/1b-code-generation-multilang/NodeJS/lib/models/errorModel.js delete mode 100644 Samples/openapi-v2/1b-code-generation-multilang/NodeJS/lib/models/index.js delete mode 100644 Samples/openapi-v2/1b-code-generation-multilang/NodeJS/lib/models/pet.js delete mode 100644 Samples/openapi-v2/1b-code-generation-multilang/NodeJS/lib/swaggerPetstore.js delete mode 100644 Samples/openapi-v2/1b-code-generation-multilang/NodeJS/package.json delete mode 100644 Samples/openapi-v2/1b-code-generation-multilang/Python/cowstore/__init__.py delete mode 100644 Samples/openapi-v2/1b-code-generation-multilang/Python/cowstore/models/__init__.py delete mode 100644 Samples/openapi-v2/1b-code-generation-multilang/Python/cowstore/models/error.py delete mode 100644 Samples/openapi-v2/1b-code-generation-multilang/Python/cowstore/models/pet.py delete mode 100644 Samples/openapi-v2/1b-code-generation-multilang/Python/cowstore/swagger_petstore.py delete mode 100644 Samples/openapi-v2/1b-code-generation-multilang/Python/cowstore/version.py delete mode 100644 Samples/openapi-v2/1b-code-generation-multilang/Ruby/generated/petstore.rb delete mode 100644 Samples/openapi-v2/1b-code-generation-multilang/Ruby/generated/petstore/models/error.rb delete mode 100644 Samples/openapi-v2/1b-code-generation-multilang/Ruby/generated/petstore/models/pet.rb delete mode 100644 Samples/openapi-v2/1b-code-generation-multilang/Ruby/generated/petstore/module_definition.rb delete mode 100644 Samples/openapi-v2/1b-code-generation-multilang/Ruby/generated/petstore/swagger_petstore.rb delete mode 100644 Samples/openapi-v2/1b-code-generation-multilang/petstore.yaml delete mode 100644 Samples/openapi-v2/1b-code-generation-multilang/readme.md delete mode 100644 Samples/openapi-v2/1b-code-generation-multilang/shell/code.txt delete mode 100644 Samples/openapi-v2/1b-code-generation-multilang/shell/stderr.txt delete mode 100644 Samples/openapi-v2/1b-code-generation-multilang/shell/stdout.txt delete mode 100644 Samples/openapi-v2/1c-multiple-input-swaggers/Artifacts/searchservice.norm.json delete mode 100644 Samples/openapi-v2/1c-multiple-input-swaggers/Artifacts/searchservice.norm.yaml delete mode 100644 Samples/openapi-v2/1c-multiple-input-swaggers/Client/DataSources.cs delete mode 100644 Samples/openapi-v2/1c-multiple-input-swaggers/Client/DataSourcesExtensions.cs delete mode 100644 Samples/openapi-v2/1c-multiple-input-swaggers/Client/IDataSources.cs delete mode 100644 Samples/openapi-v2/1c-multiple-input-swaggers/Client/IIndexers.cs delete mode 100644 Samples/openapi-v2/1c-multiple-input-swaggers/Client/IIndexes.cs delete mode 100644 Samples/openapi-v2/1c-multiple-input-swaggers/Client/ISearchandStorage.cs delete mode 100644 Samples/openapi-v2/1c-multiple-input-swaggers/Client/IStorageAccounts.cs delete mode 100644 Samples/openapi-v2/1c-multiple-input-swaggers/Client/IUsageOperations.cs delete mode 100644 Samples/openapi-v2/1c-multiple-input-swaggers/Client/Indexers.cs delete mode 100644 Samples/openapi-v2/1c-multiple-input-swaggers/Client/IndexersExtensions.cs delete mode 100644 Samples/openapi-v2/1c-multiple-input-swaggers/Client/Indexes.cs delete mode 100644 Samples/openapi-v2/1c-multiple-input-swaggers/Client/IndexesExtensions.cs delete mode 100644 Samples/openapi-v2/1c-multiple-input-swaggers/Client/Models/AccountStatus.cs delete mode 100644 Samples/openapi-v2/1c-multiple-input-swaggers/Client/Models/AccountType.cs delete mode 100644 Samples/openapi-v2/1c-multiple-input-swaggers/Client/Models/CheckNameAvailabilityResult.cs delete mode 100644 Samples/openapi-v2/1c-multiple-input-swaggers/Client/Models/CorsOptions.cs delete mode 100644 Samples/openapi-v2/1c-multiple-input-swaggers/Client/Models/CustomDomain.cs delete mode 100644 Samples/openapi-v2/1c-multiple-input-swaggers/Client/Models/DataChangeDetectionPolicy.cs delete mode 100644 Samples/openapi-v2/1c-multiple-input-swaggers/Client/Models/DataContainer.cs delete mode 100644 Samples/openapi-v2/1c-multiple-input-swaggers/Client/Models/DataDeletionDetectionPolicy.cs delete mode 100644 Samples/openapi-v2/1c-multiple-input-swaggers/Client/Models/DataSource.cs delete mode 100644 Samples/openapi-v2/1c-multiple-input-swaggers/Client/Models/DataSourceCredentials.cs delete mode 100644 Samples/openapi-v2/1c-multiple-input-swaggers/Client/Models/Endpoints.cs delete mode 100644 Samples/openapi-v2/1c-multiple-input-swaggers/Client/Models/HighWaterMarkChangeDetectionPolicy.cs delete mode 100644 Samples/openapi-v2/1c-multiple-input-swaggers/Client/Models/Index.cs delete mode 100644 Samples/openapi-v2/1c-multiple-input-swaggers/Client/Models/Indexer.cs delete mode 100644 Samples/openapi-v2/1c-multiple-input-swaggers/Client/Models/IndexerExecutionStatus.cs delete mode 100644 Samples/openapi-v2/1c-multiple-input-swaggers/Client/Models/IndexerStatus.cs delete mode 100644 Samples/openapi-v2/1c-multiple-input-swaggers/Client/Models/IndexingParameters.cs delete mode 100644 Samples/openapi-v2/1c-multiple-input-swaggers/Client/Models/ItemError.cs delete mode 100644 Samples/openapi-v2/1c-multiple-input-swaggers/Client/Models/ProvisioningState.cs delete mode 100644 Samples/openapi-v2/1c-multiple-input-swaggers/Client/Models/Reason.cs delete mode 100644 Samples/openapi-v2/1c-multiple-input-swaggers/Client/Models/Resource.cs delete mode 100644 Samples/openapi-v2/1c-multiple-input-swaggers/Client/Models/ScoringFunctionAggregation.cs delete mode 100644 Samples/openapi-v2/1c-multiple-input-swaggers/Client/Models/ScoringFunctionInterpolation.cs delete mode 100644 Samples/openapi-v2/1c-multiple-input-swaggers/Client/Models/SearchRequestOptions.cs delete mode 100644 Samples/openapi-v2/1c-multiple-input-swaggers/Client/Models/SoftDeleteColumnDeletionDetectionPolicy.cs delete mode 100644 Samples/openapi-v2/1c-multiple-input-swaggers/Client/Models/SqlIntegratedChangeTrackingPolicy.cs delete mode 100644 Samples/openapi-v2/1c-multiple-input-swaggers/Client/Models/StorageAccount.cs delete mode 100644 Samples/openapi-v2/1c-multiple-input-swaggers/Client/Models/StorageAccountCheckNameAvailabilityParameters.cs delete mode 100644 Samples/openapi-v2/1c-multiple-input-swaggers/Client/Models/StorageAccountCreateParameters.cs delete mode 100644 Samples/openapi-v2/1c-multiple-input-swaggers/Client/Models/StorageAccountKeys.cs delete mode 100644 Samples/openapi-v2/1c-multiple-input-swaggers/Client/Models/StorageAccountListResult.cs delete mode 100644 Samples/openapi-v2/1c-multiple-input-swaggers/Client/Models/StorageAccountRegenerateKeyParameters.cs delete mode 100644 Samples/openapi-v2/1c-multiple-input-swaggers/Client/Models/StorageAccountUpdateParameters.cs delete mode 100644 Samples/openapi-v2/1c-multiple-input-swaggers/Client/Models/SuggesterSearchMode.cs delete mode 100644 Samples/openapi-v2/1c-multiple-input-swaggers/Client/Models/TagScoringParameters.cs delete mode 100644 Samples/openapi-v2/1c-multiple-input-swaggers/Client/Models/Usage.cs delete mode 100644 Samples/openapi-v2/1c-multiple-input-swaggers/Client/Models/UsageListResult.cs delete mode 100644 Samples/openapi-v2/1c-multiple-input-swaggers/Client/Models/UsageName.cs delete mode 100644 Samples/openapi-v2/1c-multiple-input-swaggers/Client/Models/UsageUnit.cs delete mode 100644 Samples/openapi-v2/1c-multiple-input-swaggers/Client/SearchandStorage.cs delete mode 100644 Samples/openapi-v2/1c-multiple-input-swaggers/Client/StorageAccounts.cs delete mode 100644 Samples/openapi-v2/1c-multiple-input-swaggers/Client/StorageAccountsExtensions.cs delete mode 100644 Samples/openapi-v2/1c-multiple-input-swaggers/Client/UsageOperations.cs delete mode 100644 Samples/openapi-v2/1c-multiple-input-swaggers/Client/UsageOperationsExtensions.cs delete mode 100644 Samples/openapi-v2/1c-multiple-input-swaggers/readme.md delete mode 100644 Samples/openapi-v2/1c-multiple-input-swaggers/shell/code.txt delete mode 100644 Samples/openapi-v2/1c-multiple-input-swaggers/shell/stderr.txt delete mode 100644 Samples/openapi-v2/1c-multiple-input-swaggers/shell/stdout.txt delete mode 100644 Samples/openapi-v2/1d-common-settings/base/folder/AzureClient/IStorageAccountsOperations.cs delete mode 100644 Samples/openapi-v2/1d-common-settings/base/folder/AzureClient/IStorageManagementClient.cs delete mode 100644 Samples/openapi-v2/1d-common-settings/base/folder/AzureClient/IUsageOperations.cs delete mode 100644 Samples/openapi-v2/1d-common-settings/base/folder/AzureClient/Models/AccountStatus.cs delete mode 100644 Samples/openapi-v2/1d-common-settings/base/folder/AzureClient/Models/AccountType.cs delete mode 100644 Samples/openapi-v2/1d-common-settings/base/folder/AzureClient/Models/CheckNameAvailabilityResult.cs delete mode 100644 Samples/openapi-v2/1d-common-settings/base/folder/AzureClient/Models/CustomDomain.cs delete mode 100644 Samples/openapi-v2/1d-common-settings/base/folder/AzureClient/Models/Endpoints.cs delete mode 100644 Samples/openapi-v2/1d-common-settings/base/folder/AzureClient/Models/Page.cs delete mode 100644 Samples/openapi-v2/1d-common-settings/base/folder/AzureClient/Models/ProvisioningState.cs delete mode 100644 Samples/openapi-v2/1d-common-settings/base/folder/AzureClient/Models/Reason.cs delete mode 100644 Samples/openapi-v2/1d-common-settings/base/folder/AzureClient/Models/Resource.cs delete mode 100644 Samples/openapi-v2/1d-common-settings/base/folder/AzureClient/Models/StorageAccount.cs delete mode 100644 Samples/openapi-v2/1d-common-settings/base/folder/AzureClient/Models/StorageAccountCheckNameAvailabilityParameters.cs delete mode 100644 Samples/openapi-v2/1d-common-settings/base/folder/AzureClient/Models/StorageAccountCreateParameters.cs delete mode 100644 Samples/openapi-v2/1d-common-settings/base/folder/AzureClient/Models/StorageAccountKeys.cs delete mode 100644 Samples/openapi-v2/1d-common-settings/base/folder/AzureClient/Models/StorageAccountRegenerateKeyParameters.cs delete mode 100644 Samples/openapi-v2/1d-common-settings/base/folder/AzureClient/Models/StorageAccountUpdateParameters.cs delete mode 100644 Samples/openapi-v2/1d-common-settings/base/folder/AzureClient/Models/Usage.cs delete mode 100644 Samples/openapi-v2/1d-common-settings/base/folder/AzureClient/Models/UsageName.cs delete mode 100644 Samples/openapi-v2/1d-common-settings/base/folder/AzureClient/Models/UsageUnit.cs delete mode 100644 Samples/openapi-v2/1d-common-settings/base/folder/AzureClient/StorageAccountsOperations.cs delete mode 100644 Samples/openapi-v2/1d-common-settings/base/folder/AzureClient/StorageAccountsOperationsExtensions.cs delete mode 100644 Samples/openapi-v2/1d-common-settings/base/folder/AzureClient/StorageManagementClient.cs delete mode 100644 Samples/openapi-v2/1d-common-settings/base/folder/AzureClient/UsageOperations.cs delete mode 100644 Samples/openapi-v2/1d-common-settings/base/folder/AzureClient/UsageOperationsExtensions.cs delete mode 100644 Samples/openapi-v2/1d-common-settings/base/folder/Client/IStorageAccounts.cs delete mode 100644 Samples/openapi-v2/1d-common-settings/base/folder/Client/IStorageManagementClient.cs delete mode 100644 Samples/openapi-v2/1d-common-settings/base/folder/Client/IUsageOperations.cs delete mode 100644 Samples/openapi-v2/1d-common-settings/base/folder/Client/Models/AccountStatus.cs delete mode 100644 Samples/openapi-v2/1d-common-settings/base/folder/Client/Models/AccountType.cs delete mode 100644 Samples/openapi-v2/1d-common-settings/base/folder/Client/Models/CheckNameAvailabilityResult.cs delete mode 100644 Samples/openapi-v2/1d-common-settings/base/folder/Client/Models/CustomDomain.cs delete mode 100644 Samples/openapi-v2/1d-common-settings/base/folder/Client/Models/Endpoints.cs delete mode 100644 Samples/openapi-v2/1d-common-settings/base/folder/Client/Models/ProvisioningState.cs delete mode 100644 Samples/openapi-v2/1d-common-settings/base/folder/Client/Models/Reason.cs delete mode 100644 Samples/openapi-v2/1d-common-settings/base/folder/Client/Models/Resource.cs delete mode 100644 Samples/openapi-v2/1d-common-settings/base/folder/Client/Models/StorageAccount.cs delete mode 100644 Samples/openapi-v2/1d-common-settings/base/folder/Client/Models/StorageAccountCheckNameAvailabilityParameters.cs delete mode 100644 Samples/openapi-v2/1d-common-settings/base/folder/Client/Models/StorageAccountCreateParameters.cs delete mode 100644 Samples/openapi-v2/1d-common-settings/base/folder/Client/Models/StorageAccountKeys.cs delete mode 100644 Samples/openapi-v2/1d-common-settings/base/folder/Client/Models/StorageAccountListResult.cs delete mode 100644 Samples/openapi-v2/1d-common-settings/base/folder/Client/Models/StorageAccountRegenerateKeyParameters.cs delete mode 100644 Samples/openapi-v2/1d-common-settings/base/folder/Client/Models/StorageAccountUpdateParameters.cs delete mode 100644 Samples/openapi-v2/1d-common-settings/base/folder/Client/Models/Usage.cs delete mode 100644 Samples/openapi-v2/1d-common-settings/base/folder/Client/Models/UsageListResult.cs delete mode 100644 Samples/openapi-v2/1d-common-settings/base/folder/Client/Models/UsageName.cs delete mode 100644 Samples/openapi-v2/1d-common-settings/base/folder/Client/Models/UsageUnit.cs delete mode 100644 Samples/openapi-v2/1d-common-settings/base/folder/Client/StorageAccounts.cs delete mode 100644 Samples/openapi-v2/1d-common-settings/base/folder/Client/StorageAccountsExtensions.cs delete mode 100644 Samples/openapi-v2/1d-common-settings/base/folder/Client/StorageManagementClient.cs delete mode 100644 Samples/openapi-v2/1d-common-settings/base/folder/Client/UsageOperations.cs delete mode 100644 Samples/openapi-v2/1d-common-settings/base/folder/Client/UsageOperationsExtensions.cs delete mode 100644 Samples/openapi-v2/1d-common-settings/base/folder/generated/AwesomeNamespace.json delete mode 100644 Samples/openapi-v2/1d-common-settings/readme.md delete mode 100644 Samples/openapi-v2/1d-common-settings/shell/code.txt delete mode 100644 Samples/openapi-v2/1d-common-settings/shell/stderr.txt delete mode 100644 Samples/openapi-v2/1d-common-settings/shell/stdout.txt delete mode 100644 Samples/openapi-v2/1e-help/readme.md delete mode 100644 Samples/openapi-v2/1e-help/shell/code.txt delete mode 100644 Samples/openapi-v2/1e-help/shell/stderr.txt delete mode 100644 Samples/openapi-v2/1e-help/shell/stdout.txt delete mode 100644 Samples/openapi-v2/1f-output-to-stdout/readme.md delete mode 100644 Samples/openapi-v2/1f-output-to-stdout/shell/code.txt delete mode 100644 Samples/openapi-v2/1f-output-to-stdout/shell/stderr.txt delete mode 100644 Samples/openapi-v2/1f-output-to-stdout/shell/stdout.txt delete mode 100644 Samples/openapi-v2/1f-output-to-stdout/tiny.yaml delete mode 100644 Samples/openapi-v2/2a-validation/CSharp/IStorageAccountsOperations.cs delete mode 100644 Samples/openapi-v2/2a-validation/CSharp/IStorageManagementClient.cs delete mode 100644 Samples/openapi-v2/2a-validation/CSharp/IUsageOperations.cs delete mode 100644 Samples/openapi-v2/2a-validation/CSharp/Models/AccountStatus.cs delete mode 100644 Samples/openapi-v2/2a-validation/CSharp/Models/AccountType.cs delete mode 100644 Samples/openapi-v2/2a-validation/CSharp/Models/CheckNameAvailabilityResult.cs delete mode 100644 Samples/openapi-v2/2a-validation/CSharp/Models/CustomDomain.cs delete mode 100644 Samples/openapi-v2/2a-validation/CSharp/Models/Endpoints.cs delete mode 100644 Samples/openapi-v2/2a-validation/CSharp/Models/Page.cs delete mode 100644 Samples/openapi-v2/2a-validation/CSharp/Models/ProvisioningState.cs delete mode 100644 Samples/openapi-v2/2a-validation/CSharp/Models/Reason.cs delete mode 100644 Samples/openapi-v2/2a-validation/CSharp/Models/Resource.cs delete mode 100644 Samples/openapi-v2/2a-validation/CSharp/Models/StorageAccount.cs delete mode 100644 Samples/openapi-v2/2a-validation/CSharp/Models/StorageAccountCheckNameAvailabilityParameters.cs delete mode 100644 Samples/openapi-v2/2a-validation/CSharp/Models/StorageAccountCreateParameters.cs delete mode 100644 Samples/openapi-v2/2a-validation/CSharp/Models/StorageAccountKeys.cs delete mode 100644 Samples/openapi-v2/2a-validation/CSharp/Models/StorageAccountRegenerateKeyParameters.cs delete mode 100644 Samples/openapi-v2/2a-validation/CSharp/Models/StorageAccountUpdateParameters.cs delete mode 100644 Samples/openapi-v2/2a-validation/CSharp/Models/Usage.cs delete mode 100644 Samples/openapi-v2/2a-validation/CSharp/Models/UsageName.cs delete mode 100644 Samples/openapi-v2/2a-validation/CSharp/Models/UsageUnit.cs delete mode 100644 Samples/openapi-v2/2a-validation/CSharp/StorageAccountsOperations.cs delete mode 100644 Samples/openapi-v2/2a-validation/CSharp/StorageAccountsOperationsExtensions.cs delete mode 100644 Samples/openapi-v2/2a-validation/CSharp/StorageManagementClient.cs delete mode 100644 Samples/openapi-v2/2a-validation/CSharp/UsageOperations.cs delete mode 100644 Samples/openapi-v2/2a-validation/CSharp/UsageOperationsExtensions.cs delete mode 100644 Samples/openapi-v2/2a-validation/Java/src/main/java/StorageAccounts.java delete mode 100644 Samples/openapi-v2/2a-validation/Java/src/main/java/StorageManagementClient.java delete mode 100644 Samples/openapi-v2/2a-validation/Java/src/main/java/Usages.java delete mode 100644 Samples/openapi-v2/2a-validation/Java/src/main/java/implementation/StorageAccountsImpl.java delete mode 100644 Samples/openapi-v2/2a-validation/Java/src/main/java/implementation/StorageManagementClientImpl.java delete mode 100644 Samples/openapi-v2/2a-validation/Java/src/main/java/implementation/UsagesImpl.java delete mode 100644 Samples/openapi-v2/2a-validation/Java/src/main/java/implementation/package-info.java delete mode 100644 Samples/openapi-v2/2a-validation/Java/src/main/java/models/AccountStatus.java delete mode 100644 Samples/openapi-v2/2a-validation/Java/src/main/java/models/AccountType.java delete mode 100644 Samples/openapi-v2/2a-validation/Java/src/main/java/models/CheckNameAvailabilityResult.java delete mode 100644 Samples/openapi-v2/2a-validation/Java/src/main/java/models/CustomDomain.java delete mode 100644 Samples/openapi-v2/2a-validation/Java/src/main/java/models/Endpoints.java delete mode 100644 Samples/openapi-v2/2a-validation/Java/src/main/java/models/PageImpl.java delete mode 100644 Samples/openapi-v2/2a-validation/Java/src/main/java/models/ProvisioningState.java delete mode 100644 Samples/openapi-v2/2a-validation/Java/src/main/java/models/Reason.java delete mode 100644 Samples/openapi-v2/2a-validation/Java/src/main/java/models/StorageAccount.java delete mode 100644 Samples/openapi-v2/2a-validation/Java/src/main/java/models/StorageAccountCheckNameAvailabilityParameters.java delete mode 100644 Samples/openapi-v2/2a-validation/Java/src/main/java/models/StorageAccountCreateParameters.java delete mode 100644 Samples/openapi-v2/2a-validation/Java/src/main/java/models/StorageAccountKeys.java delete mode 100644 Samples/openapi-v2/2a-validation/Java/src/main/java/models/StorageAccountRegenerateKeyParameters.java delete mode 100644 Samples/openapi-v2/2a-validation/Java/src/main/java/models/StorageAccountUpdateParameters.java delete mode 100644 Samples/openapi-v2/2a-validation/Java/src/main/java/models/Usage.java delete mode 100644 Samples/openapi-v2/2a-validation/Java/src/main/java/models/UsageName.java delete mode 100644 Samples/openapi-v2/2a-validation/Java/src/main/java/models/UsageUnit.java delete mode 100644 Samples/openapi-v2/2a-validation/Java/src/main/java/models/package-info.java delete mode 100644 Samples/openapi-v2/2a-validation/Java/src/main/java/package-info.java delete mode 100644 Samples/openapi-v2/2a-validation/NodeJS/LICENSE.txt delete mode 100644 Samples/openapi-v2/2a-validation/NodeJS/lib/models/checkNameAvailabilityResult.js delete mode 100644 Samples/openapi-v2/2a-validation/NodeJS/lib/models/customDomain.js delete mode 100644 Samples/openapi-v2/2a-validation/NodeJS/lib/models/endpoints.js delete mode 100644 Samples/openapi-v2/2a-validation/NodeJS/lib/models/index.js delete mode 100644 Samples/openapi-v2/2a-validation/NodeJS/lib/models/resource.js delete mode 100644 Samples/openapi-v2/2a-validation/NodeJS/lib/models/storageAccount.js delete mode 100644 Samples/openapi-v2/2a-validation/NodeJS/lib/models/storageAccountCheckNameAvailabilityParameters.js delete mode 100644 Samples/openapi-v2/2a-validation/NodeJS/lib/models/storageAccountCreateParameters.js delete mode 100644 Samples/openapi-v2/2a-validation/NodeJS/lib/models/storageAccountKeys.js delete mode 100644 Samples/openapi-v2/2a-validation/NodeJS/lib/models/storageAccountListResult.js delete mode 100644 Samples/openapi-v2/2a-validation/NodeJS/lib/models/storageAccountRegenerateKeyParameters.js delete mode 100644 Samples/openapi-v2/2a-validation/NodeJS/lib/models/storageAccountUpdateParameters.js delete mode 100644 Samples/openapi-v2/2a-validation/NodeJS/lib/models/usage.js delete mode 100644 Samples/openapi-v2/2a-validation/NodeJS/lib/models/usageListResult.js delete mode 100644 Samples/openapi-v2/2a-validation/NodeJS/lib/models/usageName.js delete mode 100644 Samples/openapi-v2/2a-validation/NodeJS/lib/operations/index.js delete mode 100644 Samples/openapi-v2/2a-validation/NodeJS/lib/operations/storageAccounts.js delete mode 100644 Samples/openapi-v2/2a-validation/NodeJS/lib/operations/usageOperations.js delete mode 100644 Samples/openapi-v2/2a-validation/NodeJS/lib/storageManagementClient.js delete mode 100644 Samples/openapi-v2/2a-validation/NodeJS/package.json delete mode 100644 Samples/openapi-v2/2a-validation/Python/storage/__init__.py delete mode 100644 Samples/openapi-v2/2a-validation/Python/storage/models/__init__.py delete mode 100644 Samples/openapi-v2/2a-validation/Python/storage/models/check_name_availability_result.py delete mode 100644 Samples/openapi-v2/2a-validation/Python/storage/models/custom_domain.py delete mode 100644 Samples/openapi-v2/2a-validation/Python/storage/models/endpoints.py delete mode 100644 Samples/openapi-v2/2a-validation/Python/storage/models/resource.py delete mode 100644 Samples/openapi-v2/2a-validation/Python/storage/models/storage_account.py delete mode 100644 Samples/openapi-v2/2a-validation/Python/storage/models/storage_account_check_name_availability_parameters.py delete mode 100644 Samples/openapi-v2/2a-validation/Python/storage/models/storage_account_create_parameters.py delete mode 100644 Samples/openapi-v2/2a-validation/Python/storage/models/storage_account_keys.py delete mode 100644 Samples/openapi-v2/2a-validation/Python/storage/models/storage_account_paged.py delete mode 100644 Samples/openapi-v2/2a-validation/Python/storage/models/storage_account_regenerate_key_parameters.py delete mode 100644 Samples/openapi-v2/2a-validation/Python/storage/models/storage_account_update_parameters.py delete mode 100644 Samples/openapi-v2/2a-validation/Python/storage/models/storage_management_client_enums.py delete mode 100644 Samples/openapi-v2/2a-validation/Python/storage/models/usage.py delete mode 100644 Samples/openapi-v2/2a-validation/Python/storage/models/usage_name.py delete mode 100644 Samples/openapi-v2/2a-validation/Python/storage/models/usage_paged.py delete mode 100644 Samples/openapi-v2/2a-validation/Python/storage/operations/__init__.py delete mode 100644 Samples/openapi-v2/2a-validation/Python/storage/operations/storage_accounts_operations.py delete mode 100644 Samples/openapi-v2/2a-validation/Python/storage/operations/usage_operations.py delete mode 100644 Samples/openapi-v2/2a-validation/Python/storage/storage_management_client.py delete mode 100644 Samples/openapi-v2/2a-validation/Python/storage/version.py delete mode 100644 Samples/openapi-v2/2a-validation/Ruby/2015-06-15/generated/storage.rb delete mode 100644 Samples/openapi-v2/2a-validation/Ruby/2015-06-15/generated/storage/models/account_status.rb delete mode 100644 Samples/openapi-v2/2a-validation/Ruby/2015-06-15/generated/storage/models/account_type.rb delete mode 100644 Samples/openapi-v2/2a-validation/Ruby/2015-06-15/generated/storage/models/check_name_availability_result.rb delete mode 100644 Samples/openapi-v2/2a-validation/Ruby/2015-06-15/generated/storage/models/custom_domain.rb delete mode 100644 Samples/openapi-v2/2a-validation/Ruby/2015-06-15/generated/storage/models/endpoints.rb delete mode 100644 Samples/openapi-v2/2a-validation/Ruby/2015-06-15/generated/storage/models/provisioning_state.rb delete mode 100644 Samples/openapi-v2/2a-validation/Ruby/2015-06-15/generated/storage/models/reason.rb delete mode 100644 Samples/openapi-v2/2a-validation/Ruby/2015-06-15/generated/storage/models/resource.rb delete mode 100644 Samples/openapi-v2/2a-validation/Ruby/2015-06-15/generated/storage/models/storage_account.rb delete mode 100644 Samples/openapi-v2/2a-validation/Ruby/2015-06-15/generated/storage/models/storage_account_check_name_availability_parameters.rb delete mode 100644 Samples/openapi-v2/2a-validation/Ruby/2015-06-15/generated/storage/models/storage_account_create_parameters.rb delete mode 100644 Samples/openapi-v2/2a-validation/Ruby/2015-06-15/generated/storage/models/storage_account_keys.rb delete mode 100644 Samples/openapi-v2/2a-validation/Ruby/2015-06-15/generated/storage/models/storage_account_list_result.rb delete mode 100644 Samples/openapi-v2/2a-validation/Ruby/2015-06-15/generated/storage/models/storage_account_regenerate_key_parameters.rb delete mode 100644 Samples/openapi-v2/2a-validation/Ruby/2015-06-15/generated/storage/models/storage_account_update_parameters.rb delete mode 100644 Samples/openapi-v2/2a-validation/Ruby/2015-06-15/generated/storage/models/usage.rb delete mode 100644 Samples/openapi-v2/2a-validation/Ruby/2015-06-15/generated/storage/models/usage_list_result.rb delete mode 100644 Samples/openapi-v2/2a-validation/Ruby/2015-06-15/generated/storage/models/usage_name.rb delete mode 100644 Samples/openapi-v2/2a-validation/Ruby/2015-06-15/generated/storage/models/usage_unit.rb delete mode 100644 Samples/openapi-v2/2a-validation/Ruby/2015-06-15/generated/storage/module_definition.rb delete mode 100644 Samples/openapi-v2/2a-validation/Ruby/2015-06-15/generated/storage/storage_accounts.rb delete mode 100644 Samples/openapi-v2/2a-validation/Ruby/2015-06-15/generated/storage/storage_management_client.rb delete mode 100644 Samples/openapi-v2/2a-validation/Ruby/2015-06-15/generated/storage/usage_operations.rb delete mode 100644 Samples/openapi-v2/2a-validation/readme.md delete mode 100644 Samples/openapi-v2/2a-validation/shell/code.txt delete mode 100644 Samples/openapi-v2/2a-validation/shell/stderr.txt delete mode 100644 Samples/openapi-v2/2a-validation/shell/stdout.txt delete mode 100644 Samples/openapi-v2/2b-suppressions/readme.md delete mode 100644 Samples/openapi-v2/2b-suppressions/shell/code.txt delete mode 100644 Samples/openapi-v2/2b-suppressions/shell/stderr.txt delete mode 100644 Samples/openapi-v2/2b-suppressions/shell/stdout.txt delete mode 100644 Samples/openapi-v2/3a-literate-swagger/Client/IQueryKeysOperations.cs delete mode 100644 Samples/openapi-v2/3a-literate-swagger/Client/ISearchManagementClient.cs delete mode 100644 Samples/openapi-v2/3a-literate-swagger/Client/IServicesOperations.cs delete mode 100644 Samples/openapi-v2/3a-literate-swagger/Client/Models/Error.cs delete mode 100644 Samples/openapi-v2/3a-literate-swagger/Client/Models/ErrorDetails.cs delete mode 100644 Samples/openapi-v2/3a-literate-swagger/Client/Models/ErrorException.cs delete mode 100644 Samples/openapi-v2/3a-literate-swagger/Client/Models/ListQueryKeysResult.cs delete mode 100644 Samples/openapi-v2/3a-literate-swagger/Client/Models/QueryKey.cs delete mode 100644 Samples/openapi-v2/3a-literate-swagger/Client/Models/SearchServiceCreateOrUpdateParameters.cs delete mode 100644 Samples/openapi-v2/3a-literate-swagger/Client/Models/SearchServiceListResult.cs delete mode 100644 Samples/openapi-v2/3a-literate-swagger/Client/Models/SearchServiceProperties.cs delete mode 100644 Samples/openapi-v2/3a-literate-swagger/Client/Models/SearchServiceResource.cs delete mode 100644 Samples/openapi-v2/3a-literate-swagger/Client/QueryKeysOperations.cs delete mode 100644 Samples/openapi-v2/3a-literate-swagger/Client/QueryKeysOperationsExtensions.cs delete mode 100644 Samples/openapi-v2/3a-literate-swagger/Client/SearchManagementClient.cs delete mode 100644 Samples/openapi-v2/3a-literate-swagger/Client/ServicesOperations.cs delete mode 100644 Samples/openapi-v2/3a-literate-swagger/Client/ServicesOperationsExtensions.cs delete mode 100644 Samples/openapi-v2/3a-literate-swagger/generated/swagger.md.json delete mode 100644 Samples/openapi-v2/3a-literate-swagger/readme.md delete mode 100644 Samples/openapi-v2/3a-literate-swagger/shell/code.txt delete mode 100644 Samples/openapi-v2/3a-literate-swagger/shell/stderr.txt delete mode 100644 Samples/openapi-v2/3a-literate-swagger/shell/stdout.txt delete mode 100644 Samples/openapi-v2/3a-literate-swagger/swagger.md delete mode 100644 Samples/openapi-v2/3b-custom-transformations/Client/CheckNameAvailabilityOperations.cs delete mode 100644 Samples/openapi-v2/3b-custom-transformations/Client/CheckNameAvailabilityOperationsExtensions.cs delete mode 100644 Samples/openapi-v2/3b-custom-transformations/Client/ICheckNameAvailabilityOperations.cs delete mode 100644 Samples/openapi-v2/3b-custom-transformations/Client/IStorageAccounts.cs delete mode 100644 Samples/openapi-v2/3b-custom-transformations/Client/IStorageManagementClient.cs delete mode 100644 Samples/openapi-v2/3b-custom-transformations/Client/IUsagesOperations.cs delete mode 100644 Samples/openapi-v2/3b-custom-transformations/Client/Models/AccountStatus.cs delete mode 100644 Samples/openapi-v2/3b-custom-transformations/Client/Models/AccountType.cs delete mode 100644 Samples/openapi-v2/3b-custom-transformations/Client/Models/CheckNameAvailabilityResult.cs delete mode 100644 Samples/openapi-v2/3b-custom-transformations/Client/Models/CustomDomain.cs delete mode 100644 Samples/openapi-v2/3b-custom-transformations/Client/Models/Endpoints.cs delete mode 100644 Samples/openapi-v2/3b-custom-transformations/Client/Models/Page.cs delete mode 100644 Samples/openapi-v2/3b-custom-transformations/Client/Models/ProvisioningState.cs delete mode 100644 Samples/openapi-v2/3b-custom-transformations/Client/Models/Reason.cs delete mode 100644 Samples/openapi-v2/3b-custom-transformations/Client/Models/Resource.cs delete mode 100644 Samples/openapi-v2/3b-custom-transformations/Client/Models/StorageAccount.cs delete mode 100644 Samples/openapi-v2/3b-custom-transformations/Client/Models/StorageAccountCheckNameAvailabilityParameters.cs delete mode 100644 Samples/openapi-v2/3b-custom-transformations/Client/Models/StorageAccountCreateParameters.cs delete mode 100644 Samples/openapi-v2/3b-custom-transformations/Client/Models/StorageAccountKeys.cs delete mode 100644 Samples/openapi-v2/3b-custom-transformations/Client/Models/StorageAccountRegenerateKeyParameters.cs delete mode 100644 Samples/openapi-v2/3b-custom-transformations/Client/Models/StorageAccountUpdateParameters.cs delete mode 100644 Samples/openapi-v2/3b-custom-transformations/Client/Models/Usage.cs delete mode 100644 Samples/openapi-v2/3b-custom-transformations/Client/Models/UsageName.cs delete mode 100644 Samples/openapi-v2/3b-custom-transformations/Client/Models/UsageUnit.cs delete mode 100644 Samples/openapi-v2/3b-custom-transformations/Client/StorageAccounts.cs delete mode 100644 Samples/openapi-v2/3b-custom-transformations/Client/StorageAccountsExtensions.cs delete mode 100644 Samples/openapi-v2/3b-custom-transformations/Client/StorageManagementClient.cs delete mode 100644 Samples/openapi-v2/3b-custom-transformations/Client/UsagesOperations.cs delete mode 100644 Samples/openapi-v2/3b-custom-transformations/Client/UsagesOperationsExtensions.cs delete mode 100644 Samples/openapi-v2/3b-custom-transformations/Client/code-model-v1.norm.yaml delete mode 100644 Samples/openapi-v2/3b-custom-transformations/generated/configuration.yaml delete mode 100644 Samples/openapi-v2/3b-custom-transformations/generated/pipeline.yaml delete mode 100644 Samples/openapi-v2/3b-custom-transformations/generated/storage.json delete mode 100644 Samples/openapi-v2/3b-custom-transformations/readme.md delete mode 100644 Samples/openapi-v2/3b-custom-transformations/shell/code.txt delete mode 100644 Samples/openapi-v2/3b-custom-transformations/shell/stderr.txt delete mode 100644 Samples/openapi-v2/3b-custom-transformations/shell/stdout.txt delete mode 100644 Samples/openapi-v2/3c-guards/Client/IStorageAccounts.cs delete mode 100644 Samples/openapi-v2/3c-guards/Client/IStorageManagementClient.cs delete mode 100644 Samples/openapi-v2/3c-guards/Client/IUsageOperations.cs delete mode 100644 Samples/openapi-v2/3c-guards/Client/Models/AccountStatus.cs delete mode 100644 Samples/openapi-v2/3c-guards/Client/Models/AccountType.cs delete mode 100644 Samples/openapi-v2/3c-guards/Client/Models/CheckNameAvailabilityResult.cs delete mode 100644 Samples/openapi-v2/3c-guards/Client/Models/CustomDomain.cs delete mode 100644 Samples/openapi-v2/3c-guards/Client/Models/Endpoints.cs delete mode 100644 Samples/openapi-v2/3c-guards/Client/Models/ProvisioningState.cs delete mode 100644 Samples/openapi-v2/3c-guards/Client/Models/Reason.cs delete mode 100644 Samples/openapi-v2/3c-guards/Client/Models/Resource.cs delete mode 100644 Samples/openapi-v2/3c-guards/Client/Models/StorageAccount.cs delete mode 100644 Samples/openapi-v2/3c-guards/Client/Models/StorageAccountCheckNameAvailabilityParameters.cs delete mode 100644 Samples/openapi-v2/3c-guards/Client/Models/StorageAccountCreateParameters.cs delete mode 100644 Samples/openapi-v2/3c-guards/Client/Models/StorageAccountKeys.cs delete mode 100644 Samples/openapi-v2/3c-guards/Client/Models/StorageAccountListResult.cs delete mode 100644 Samples/openapi-v2/3c-guards/Client/Models/StorageAccountRegenerateKeyParameters.cs delete mode 100644 Samples/openapi-v2/3c-guards/Client/Models/StorageAccountUpdateParameters.cs delete mode 100644 Samples/openapi-v2/3c-guards/Client/Models/Usage.cs delete mode 100644 Samples/openapi-v2/3c-guards/Client/Models/UsageListResult.cs delete mode 100644 Samples/openapi-v2/3c-guards/Client/Models/UsageName.cs delete mode 100644 Samples/openapi-v2/3c-guards/Client/Models/UsageUnit.cs delete mode 100644 Samples/openapi-v2/3c-guards/Client/StorageAccounts.cs delete mode 100644 Samples/openapi-v2/3c-guards/Client/StorageAccountsExtensions.cs delete mode 100644 Samples/openapi-v2/3c-guards/Client/StorageManagementClient.cs delete mode 100644 Samples/openapi-v2/3c-guards/Client/UsageOperations.cs delete mode 100644 Samples/openapi-v2/3c-guards/Client/UsageOperationsExtensions.cs delete mode 100644 Samples/openapi-v2/3c-guards/OtherClient/StorageAccounts.java delete mode 100644 Samples/openapi-v2/3c-guards/OtherClient/StorageManagementClient.java delete mode 100644 Samples/openapi-v2/3c-guards/OtherClient/Usages.java delete mode 100644 Samples/openapi-v2/3c-guards/OtherClient/implementation/StorageAccountsImpl.java delete mode 100644 Samples/openapi-v2/3c-guards/OtherClient/implementation/StorageManagementClientImpl.java delete mode 100644 Samples/openapi-v2/3c-guards/OtherClient/implementation/UsagesImpl.java delete mode 100644 Samples/openapi-v2/3c-guards/OtherClient/implementation/package-info.java delete mode 100644 Samples/openapi-v2/3c-guards/OtherClient/models/AccountStatus.java delete mode 100644 Samples/openapi-v2/3c-guards/OtherClient/models/AccountType.java delete mode 100644 Samples/openapi-v2/3c-guards/OtherClient/models/CheckNameAvailabilityResult.java delete mode 100644 Samples/openapi-v2/3c-guards/OtherClient/models/CustomDomain.java delete mode 100644 Samples/openapi-v2/3c-guards/OtherClient/models/Endpoints.java delete mode 100644 Samples/openapi-v2/3c-guards/OtherClient/models/ProvisioningState.java delete mode 100644 Samples/openapi-v2/3c-guards/OtherClient/models/Reason.java delete mode 100644 Samples/openapi-v2/3c-guards/OtherClient/models/Resource.java delete mode 100644 Samples/openapi-v2/3c-guards/OtherClient/models/StorageAccount.java delete mode 100644 Samples/openapi-v2/3c-guards/OtherClient/models/StorageAccountCheckNameAvailabilityParameters.java delete mode 100644 Samples/openapi-v2/3c-guards/OtherClient/models/StorageAccountCreateParameters.java delete mode 100644 Samples/openapi-v2/3c-guards/OtherClient/models/StorageAccountKeys.java delete mode 100644 Samples/openapi-v2/3c-guards/OtherClient/models/StorageAccountListResult.java delete mode 100644 Samples/openapi-v2/3c-guards/OtherClient/models/StorageAccountRegenerateKeyParameters.java delete mode 100644 Samples/openapi-v2/3c-guards/OtherClient/models/StorageAccountUpdateParameters.java delete mode 100644 Samples/openapi-v2/3c-guards/OtherClient/models/Usage.java delete mode 100644 Samples/openapi-v2/3c-guards/OtherClient/models/UsageListResult.java delete mode 100644 Samples/openapi-v2/3c-guards/OtherClient/models/UsageName.java delete mode 100644 Samples/openapi-v2/3c-guards/OtherClient/models/UsageUnit.java delete mode 100644 Samples/openapi-v2/3c-guards/OtherClient/models/package-info.java delete mode 100644 Samples/openapi-v2/3c-guards/OtherClient/package-info.java delete mode 100644 Samples/openapi-v2/3c-guards/readme.md delete mode 100644 Samples/openapi-v2/3c-guards/shell/code.txt delete mode 100644 Samples/openapi-v2/3c-guards/shell/stderr.txt delete mode 100644 Samples/openapi-v2/3c-guards/shell/stdout.txt delete mode 100644 Samples/openapi-v2/3d-custom-validation/Client/IStorageAccounts.cs delete mode 100644 Samples/openapi-v2/3d-custom-validation/Client/IStorageManagementClient.cs delete mode 100644 Samples/openapi-v2/3d-custom-validation/Client/IUsageOperations.cs delete mode 100644 Samples/openapi-v2/3d-custom-validation/Client/Models/AccountStatus.cs delete mode 100644 Samples/openapi-v2/3d-custom-validation/Client/Models/AccountType.cs delete mode 100644 Samples/openapi-v2/3d-custom-validation/Client/Models/CheckNameAvailabilityResult.cs delete mode 100644 Samples/openapi-v2/3d-custom-validation/Client/Models/CustomDomain.cs delete mode 100644 Samples/openapi-v2/3d-custom-validation/Client/Models/Endpoints.cs delete mode 100644 Samples/openapi-v2/3d-custom-validation/Client/Models/ProvisioningState.cs delete mode 100644 Samples/openapi-v2/3d-custom-validation/Client/Models/Reason.cs delete mode 100644 Samples/openapi-v2/3d-custom-validation/Client/Models/Resource.cs delete mode 100644 Samples/openapi-v2/3d-custom-validation/Client/Models/StorageAccount.cs delete mode 100644 Samples/openapi-v2/3d-custom-validation/Client/Models/StorageAccountCheckNameAvailabilityParameters.cs delete mode 100644 Samples/openapi-v2/3d-custom-validation/Client/Models/StorageAccountCreateParameters.cs delete mode 100644 Samples/openapi-v2/3d-custom-validation/Client/Models/StorageAccountKeys.cs delete mode 100644 Samples/openapi-v2/3d-custom-validation/Client/Models/StorageAccountListResult.cs delete mode 100644 Samples/openapi-v2/3d-custom-validation/Client/Models/StorageAccountRegenerateKeyParameters.cs delete mode 100644 Samples/openapi-v2/3d-custom-validation/Client/Models/StorageAccountUpdateParameters.cs delete mode 100644 Samples/openapi-v2/3d-custom-validation/Client/Models/Usage.cs delete mode 100644 Samples/openapi-v2/3d-custom-validation/Client/Models/UsageListResult.cs delete mode 100644 Samples/openapi-v2/3d-custom-validation/Client/Models/UsageName.cs delete mode 100644 Samples/openapi-v2/3d-custom-validation/Client/Models/UsageUnit.cs delete mode 100644 Samples/openapi-v2/3d-custom-validation/Client/StorageAccounts.cs delete mode 100644 Samples/openapi-v2/3d-custom-validation/Client/StorageAccountsExtensions.cs delete mode 100644 Samples/openapi-v2/3d-custom-validation/Client/StorageManagementClient.cs delete mode 100644 Samples/openapi-v2/3d-custom-validation/Client/UsageOperations.cs delete mode 100644 Samples/openapi-v2/3d-custom-validation/Client/UsageOperationsExtensions.cs delete mode 100644 Samples/openapi-v2/3d-custom-validation/readme.md delete mode 100644 Samples/openapi-v2/3d-custom-validation/shell/code.txt delete mode 100644 Samples/openapi-v2/3d-custom-validation/shell/stderr.txt delete mode 100644 Samples/openapi-v2/3d-custom-validation/shell/stdout.txt delete mode 100644 Samples/openapi-v2/3e-batch-mode/output1/IStorageAccountsOperations.cs delete mode 100644 Samples/openapi-v2/3e-batch-mode/output1/IStorageManagementClient.cs delete mode 100644 Samples/openapi-v2/3e-batch-mode/output1/IUsageOperations.cs delete mode 100644 Samples/openapi-v2/3e-batch-mode/output1/Models/AccountStatus.cs delete mode 100644 Samples/openapi-v2/3e-batch-mode/output1/Models/AccountType.cs delete mode 100644 Samples/openapi-v2/3e-batch-mode/output1/Models/CheckNameAvailabilityResult.cs delete mode 100644 Samples/openapi-v2/3e-batch-mode/output1/Models/CustomDomain.cs delete mode 100644 Samples/openapi-v2/3e-batch-mode/output1/Models/Endpoints.cs delete mode 100644 Samples/openapi-v2/3e-batch-mode/output1/Models/Page.cs delete mode 100644 Samples/openapi-v2/3e-batch-mode/output1/Models/ProvisioningState.cs delete mode 100644 Samples/openapi-v2/3e-batch-mode/output1/Models/Reason.cs delete mode 100644 Samples/openapi-v2/3e-batch-mode/output1/Models/Resource.cs delete mode 100644 Samples/openapi-v2/3e-batch-mode/output1/Models/StorageAccount.cs delete mode 100644 Samples/openapi-v2/3e-batch-mode/output1/Models/StorageAccountCheckNameAvailabilityParameters.cs delete mode 100644 Samples/openapi-v2/3e-batch-mode/output1/Models/StorageAccountCreateParameters.cs delete mode 100644 Samples/openapi-v2/3e-batch-mode/output1/Models/StorageAccountKeys.cs delete mode 100644 Samples/openapi-v2/3e-batch-mode/output1/Models/StorageAccountRegenerateKeyParameters.cs delete mode 100644 Samples/openapi-v2/3e-batch-mode/output1/Models/StorageAccountUpdateParameters.cs delete mode 100644 Samples/openapi-v2/3e-batch-mode/output1/Models/Usage.cs delete mode 100644 Samples/openapi-v2/3e-batch-mode/output1/Models/UsageName.cs delete mode 100644 Samples/openapi-v2/3e-batch-mode/output1/Models/UsageUnit.cs delete mode 100644 Samples/openapi-v2/3e-batch-mode/output1/StorageAccountsOperations.cs delete mode 100644 Samples/openapi-v2/3e-batch-mode/output1/StorageAccountsOperationsExtensions.cs delete mode 100644 Samples/openapi-v2/3e-batch-mode/output1/StorageManagementClient.cs delete mode 100644 Samples/openapi-v2/3e-batch-mode/output1/UsageOperations.cs delete mode 100644 Samples/openapi-v2/3e-batch-mode/output1/UsageOperationsExtensions.cs delete mode 100644 Samples/openapi-v2/3e-batch-mode/output2/StorageAccounts.java delete mode 100644 Samples/openapi-v2/3e-batch-mode/output2/StorageManagementClient.java delete mode 100644 Samples/openapi-v2/3e-batch-mode/output2/Usages.java delete mode 100644 Samples/openapi-v2/3e-batch-mode/output2/implementation/StorageAccountsImpl.java delete mode 100644 Samples/openapi-v2/3e-batch-mode/output2/implementation/StorageManagementClientImpl.java delete mode 100644 Samples/openapi-v2/3e-batch-mode/output2/implementation/UsagesImpl.java delete mode 100644 Samples/openapi-v2/3e-batch-mode/output2/implementation/package-info.java delete mode 100644 Samples/openapi-v2/3e-batch-mode/output2/models/AccountStatus.java delete mode 100644 Samples/openapi-v2/3e-batch-mode/output2/models/AccountType.java delete mode 100644 Samples/openapi-v2/3e-batch-mode/output2/models/CheckNameAvailabilityResult.java delete mode 100644 Samples/openapi-v2/3e-batch-mode/output2/models/CustomDomain.java delete mode 100644 Samples/openapi-v2/3e-batch-mode/output2/models/Endpoints.java delete mode 100644 Samples/openapi-v2/3e-batch-mode/output2/models/ProvisioningState.java delete mode 100644 Samples/openapi-v2/3e-batch-mode/output2/models/Reason.java delete mode 100644 Samples/openapi-v2/3e-batch-mode/output2/models/Resource.java delete mode 100644 Samples/openapi-v2/3e-batch-mode/output2/models/StorageAccount.java delete mode 100644 Samples/openapi-v2/3e-batch-mode/output2/models/StorageAccountCheckNameAvailabilityParameters.java delete mode 100644 Samples/openapi-v2/3e-batch-mode/output2/models/StorageAccountCreateParameters.java delete mode 100644 Samples/openapi-v2/3e-batch-mode/output2/models/StorageAccountKeys.java delete mode 100644 Samples/openapi-v2/3e-batch-mode/output2/models/StorageAccountListResult.java delete mode 100644 Samples/openapi-v2/3e-batch-mode/output2/models/StorageAccountRegenerateKeyParameters.java delete mode 100644 Samples/openapi-v2/3e-batch-mode/output2/models/StorageAccountUpdateParameters.java delete mode 100644 Samples/openapi-v2/3e-batch-mode/output2/models/Usage.java delete mode 100644 Samples/openapi-v2/3e-batch-mode/output2/models/UsageListResult.java delete mode 100644 Samples/openapi-v2/3e-batch-mode/output2/models/UsageName.java delete mode 100644 Samples/openapi-v2/3e-batch-mode/output2/models/UsageUnit.java delete mode 100644 Samples/openapi-v2/3e-batch-mode/output2/models/package-info.java delete mode 100644 Samples/openapi-v2/3e-batch-mode/output2/package-info.java delete mode 100644 Samples/openapi-v2/3e-batch-mode/output3/generated/advisor.rb delete mode 100644 Samples/openapi-v2/3e-batch-mode/output3/generated/advisor/composed_cowbell_client.rb delete mode 100644 Samples/openapi-v2/3e-batch-mode/output3/generated/advisor/models/account_status.rb delete mode 100644 Samples/openapi-v2/3e-batch-mode/output3/generated/advisor/models/account_type.rb delete mode 100644 Samples/openapi-v2/3e-batch-mode/output3/generated/advisor/models/category.rb delete mode 100644 Samples/openapi-v2/3e-batch-mode/output3/generated/advisor/models/check_name_availability_result.rb delete mode 100644 Samples/openapi-v2/3e-batch-mode/output3/generated/advisor/models/custom_domain.rb delete mode 100644 Samples/openapi-v2/3e-batch-mode/output3/generated/advisor/models/endpoints.rb delete mode 100644 Samples/openapi-v2/3e-batch-mode/output3/generated/advisor/models/impact.rb delete mode 100644 Samples/openapi-v2/3e-batch-mode/output3/generated/advisor/models/operation_display_info.rb delete mode 100644 Samples/openapi-v2/3e-batch-mode/output3/generated/advisor/models/operation_entity.rb delete mode 100644 Samples/openapi-v2/3e-batch-mode/output3/generated/advisor/models/operation_entity_list_result.rb delete mode 100644 Samples/openapi-v2/3e-batch-mode/output3/generated/advisor/models/provisioning_state.rb delete mode 100644 Samples/openapi-v2/3e-batch-mode/output3/generated/advisor/models/reason.rb delete mode 100644 Samples/openapi-v2/3e-batch-mode/output3/generated/advisor/models/resource.rb delete mode 100644 Samples/openapi-v2/3e-batch-mode/output3/generated/advisor/models/resource_recommendation_base.rb delete mode 100644 Samples/openapi-v2/3e-batch-mode/output3/generated/advisor/models/resource_recommendation_base_list_result.rb delete mode 100644 Samples/openapi-v2/3e-batch-mode/output3/generated/advisor/models/risk.rb delete mode 100644 Samples/openapi-v2/3e-batch-mode/output3/generated/advisor/models/short_description.rb delete mode 100644 Samples/openapi-v2/3e-batch-mode/output3/generated/advisor/models/storage_account.rb delete mode 100644 Samples/openapi-v2/3e-batch-mode/output3/generated/advisor/models/storage_account_check_name_availability_parameters.rb delete mode 100644 Samples/openapi-v2/3e-batch-mode/output3/generated/advisor/models/storage_account_create_parameters.rb delete mode 100644 Samples/openapi-v2/3e-batch-mode/output3/generated/advisor/models/storage_account_keys.rb delete mode 100644 Samples/openapi-v2/3e-batch-mode/output3/generated/advisor/models/storage_account_list_result.rb delete mode 100644 Samples/openapi-v2/3e-batch-mode/output3/generated/advisor/models/storage_account_regenerate_key_parameters.rb delete mode 100644 Samples/openapi-v2/3e-batch-mode/output3/generated/advisor/models/storage_account_update_parameters.rb delete mode 100644 Samples/openapi-v2/3e-batch-mode/output3/generated/advisor/models/suppression_contract.rb delete mode 100644 Samples/openapi-v2/3e-batch-mode/output3/generated/advisor/models/suppression_contract_list_result.rb delete mode 100644 Samples/openapi-v2/3e-batch-mode/output3/generated/advisor/models/usage.rb delete mode 100644 Samples/openapi-v2/3e-batch-mode/output3/generated/advisor/models/usage_list_result.rb delete mode 100644 Samples/openapi-v2/3e-batch-mode/output3/generated/advisor/models/usage_name.rb delete mode 100644 Samples/openapi-v2/3e-batch-mode/output3/generated/advisor/models/usage_unit.rb delete mode 100644 Samples/openapi-v2/3e-batch-mode/output3/generated/advisor/module_definition.rb delete mode 100644 Samples/openapi-v2/3e-batch-mode/output3/generated/advisor/operations.rb delete mode 100644 Samples/openapi-v2/3e-batch-mode/output3/generated/advisor/recommendations.rb delete mode 100644 Samples/openapi-v2/3e-batch-mode/output3/generated/advisor/storage_accounts.rb delete mode 100644 Samples/openapi-v2/3e-batch-mode/output3/generated/advisor/suppressions.rb delete mode 100644 Samples/openapi-v2/3e-batch-mode/output3/generated/advisor/usage_operations.rb delete mode 100644 Samples/openapi-v2/3e-batch-mode/readme.md delete mode 100644 Samples/openapi-v2/3e-batch-mode/shell/code.txt delete mode 100644 Samples/openapi-v2/3e-batch-mode/shell/stderr.txt delete mode 100644 Samples/openapi-v2/3e-batch-mode/shell/stdout.txt delete mode 100644 Samples/openapi-v2/3f-example-generation/Azure.CSharp.Fluent/combined delete mode 100644 Samples/openapi-v2/3f-example-generation/Azure.CSharp/combined delete mode 100644 Samples/openapi-v2/3f-example-generation/CSharp/combined delete mode 100644 Samples/openapi-v2/3f-example-generation/readme.md delete mode 100644 Samples/openapi-v2/3f-example-generation/shell/code.txt delete mode 100644 Samples/openapi-v2/3f-example-generation/shell/stderr.txt delete mode 100644 Samples/openapi-v2/3f-example-generation/shell/stdout.txt delete mode 100644 Samples/openapi-v2/3g-require-config/.gitignore delete mode 100644 Samples/openapi-v2/3g-require-config/Client/SwaggerPetstore.cs delete mode 100644 "Samples/openapi-v2/3g-require-config/p\303\251tst\303\266re.json" delete mode 100644 Samples/openapi-v2/3g-require-config/readme.md delete mode 100644 Samples/openapi-v2/3g-require-config/shell/code.txt delete mode 100644 Samples/openapi-v2/3g-require-config/shell/stderr.txt delete mode 100644 Samples/openapi-v2/3g-require-config/shell/stdout.txt delete mode 100644 Samples/openapi-v2/3h-try-require/.gitignore delete mode 100644 Samples/openapi-v2/3h-try-require/Client/SwaggerPetstore.cs delete mode 100644 "Samples/openapi-v2/3h-try-require/p\303\251tst\303\266re.json" delete mode 100644 Samples/openapi-v2/3h-try-require/readme.csharp.md delete mode 100644 Samples/openapi-v2/3h-try-require/readme.md delete mode 100644 Samples/openapi-v2/3h-try-require/shell/code.txt delete mode 100644 Samples/openapi-v2/3h-try-require/shell/stderr.txt delete mode 100644 Samples/openapi-v2/3h-try-require/shell/stdout.txt delete mode 100644 Samples/openapi-v3/1a-code-generation-minimal/Client/ISwaggerPetstore.cs delete mode 100644 Samples/openapi-v3/1a-code-generation-minimal/Client/Models/Error.cs delete mode 100644 Samples/openapi-v3/1a-code-generation-minimal/Client/Models/ErrorException.cs delete mode 100644 Samples/openapi-v3/1a-code-generation-minimal/Client/Models/ListPetsHeaders.cs delete mode 100644 Samples/openapi-v3/1a-code-generation-minimal/Client/Models/Pet.cs delete mode 100644 Samples/openapi-v3/1a-code-generation-minimal/Client/SwaggerPetstore.cs delete mode 100644 Samples/openapi-v3/1a-code-generation-minimal/Client/SwaggerPetstoreExtensions.cs delete mode 100644 Samples/openapi-v3/1a-code-generation-minimal/petstore.yaml delete mode 100644 Samples/openapi-v3/1a-code-generation-minimal/readme.md delete mode 100644 Samples/openapi-v3/1a-code-generation-minimal/shell/code.txt delete mode 100644 Samples/openapi-v3/1a-code-generation-minimal/shell/stderr.txt delete mode 100644 Samples/openapi-v3/1a-code-generation-minimal/shell/stdout.txt delete mode 100644 schema/openapi3-schema.json delete mode 100644 src/autorest-core/test/declarations.ts diff --git a/Samples/openapi-v2/1a-code-generation-minimal/Client/ISwaggerPetstore.cs b/Samples/openapi-v2/1a-code-generation-minimal/Client/ISwaggerPetstore.cs deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/1a-code-generation-minimal/Client/ISwaggerPetstore.cs +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/1a-code-generation-minimal/Client/Models/Category.cs b/Samples/openapi-v2/1a-code-generation-minimal/Client/Models/Category.cs deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/1a-code-generation-minimal/Client/Models/Category.cs +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/1a-code-generation-minimal/Client/Models/Order.cs b/Samples/openapi-v2/1a-code-generation-minimal/Client/Models/Order.cs deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/1a-code-generation-minimal/Client/Models/Order.cs +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/1a-code-generation-minimal/Client/Models/Pet.cs b/Samples/openapi-v2/1a-code-generation-minimal/Client/Models/Pet.cs deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/1a-code-generation-minimal/Client/Models/Pet.cs +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/1a-code-generation-minimal/Client/Models/Tag.cs b/Samples/openapi-v2/1a-code-generation-minimal/Client/Models/Tag.cs deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/1a-code-generation-minimal/Client/Models/Tag.cs +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/1a-code-generation-minimal/Client/Models/User.cs b/Samples/openapi-v2/1a-code-generation-minimal/Client/Models/User.cs deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/1a-code-generation-minimal/Client/Models/User.cs +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/1a-code-generation-minimal/Client/Models/XmlSerialization.cs b/Samples/openapi-v2/1a-code-generation-minimal/Client/Models/XmlSerialization.cs deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/1a-code-generation-minimal/Client/Models/XmlSerialization.cs +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/1a-code-generation-minimal/Client/SwaggerPetstore.cs b/Samples/openapi-v2/1a-code-generation-minimal/Client/SwaggerPetstore.cs deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/1a-code-generation-minimal/Client/SwaggerPetstore.cs +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/1a-code-generation-minimal/Client/SwaggerPetstoreExtensions.cs b/Samples/openapi-v2/1a-code-generation-minimal/Client/SwaggerPetstoreExtensions.cs deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/1a-code-generation-minimal/Client/SwaggerPetstoreExtensions.cs +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git "a/Samples/openapi-v2/1a-code-generation-minimal/p\303\251tst\303\266re.json" "b/Samples/openapi-v2/1a-code-generation-minimal/p\303\251tst\303\266re.json" deleted file mode 100644 index 8445743d70..0000000000 --- "a/Samples/openapi-v2/1a-code-generation-minimal/p\303\251tst\303\266re.json" +++ /dev/null @@ -1,1109 +0,0 @@ -{ - "swagger": "2.0", - "info": { - "description": "This is a sample server Petstore server. You can find out more about Swagger at http://swagger.io or on irc.freenode.net, #swagger. For this sample, you can use the api key \"special-key\" to test the authorization filters", - "version": "1.0.0", - "title": "Swagger Petstore", - "termsOfService": "http://swagger.io/terms/", - "contact": { - "email": "apiteam@swagger.io" - }, - "license": { - "name": "Apache 2.0", - "url": "http://www.apache.org/licenses/LICENSE-2.0.html" - } - }, - "host": "petstore.swagger.io", - "basePath": "/v2", - "schemes": [ - "http" - ], - "paths": { - "/pet?testing_byte_array=true": { - "post": { - "tags": [ - "pet" - ], - "summary": "Fake endpoint to test byte array in body parameter for adding a new pet to the store", - "description": "", - "operationId": "addPetUsingByteArray", - "consumes": [ - "application/json", - "application/xml" - ], - "produces": [ - "application/json", - "application/xml" - ], - "parameters": [ - { - "in": "body", - "name": "body", - "description": "Pet object in the form of byte array", - "required": false, - "schema": { - "type": "string", - "format": "binary" - } - } - ], - "responses": { - "405": { - "description": "Invalid input" - } - }, - "security": [ - { - "petstore_auth": [ - "write:pets", - "read:pets" - ] - } - ] - } - }, - "/pet": { - "post": { - "tags": [ - "pet" - ], - "summary": "Add a new pet to the store", - "description": "Adds a new pet to the store. You may receive an HTTP invalid input if your pet is invalid.", - "operationId": "addPet", - "consumes": [ - "application/json", - "application/xml" - ], - "produces": [ - "application/json", - "application/xml" - ], - "parameters": [ - { - "in": "body", - "name": "body", - "description": "Pet object that needs to be added to the store", - "required": false, - "schema": { - "$ref": "#/definitions/Pet" - } - } - ], - "responses": { - "405": { - "description": "Invalid input" - } - }, - "security": [ - { - "petstore_auth": [ - "write:pets", - "read:pets" - ] - } - ] - }, - "put": { - "tags": [ - "pet" - ], - "summary": "Update an existing pet", - "description": "", - "operationId": "updatePet", - "consumes": [ - "application/json", - "application/xml" - ], - "produces": [ - "application/json", - "application/xml" - ], - "parameters": [ - { - "in": "body", - "name": "body", - "description": "Pet object that needs to be added to the store", - "required": false, - "schema": { - "$ref": "#/definitions/Pet" - } - } - ], - "responses": { - "405": { - "description": "Validation exception" - }, - "404": { - "description": "Pet not found" - }, - "400": { - "description": "Invalid ID supplied" - } - }, - "security": [ - { - "petstore_auth": [ - "write:pets", - "read:pets" - ] - } - ] - } - }, - "/pet/findByStatus": { - "get": { - "tags": [ - "pet" - ], - "summary": "Finds Pets by status", - "description": "Multiple status values can be provided with comma seperated strings", - "operationId": "findPetsByStatus", - "produces": [ - "application/json", - "application/xml" - ], - "parameters": [ - { - "name": "status", - "in": "query", - "description": "Status values that need to be considered for filter", - "required": false, - "type": "array", - "items": { - "type": "string" - }, - "collectionFormat": "csv", - "default": "available" - } - ], - "responses": { - "200": { - "description": "successful operation", - "schema": { - "type": "array", - "items": { - "$ref": "#/definitions/Pet" - } - } - }, - "400": { - "description": "Invalid status value" - } - }, - "security": [ - { - "petstore_auth": [ - "write:pets", - "read:pets" - ] - } - ] - } - }, - "/pet/findByTags": { - "get": { - "tags": [ - "pet" - ], - "summary": "Finds Pets by tags", - "description": "Muliple tags can be provided with comma seperated strings. Use tag1, tag2, tag3 for testing.", - "operationId": "findPetsByTags", - "produces": [ - "application/json", - "application/xml" - ], - "parameters": [ - { - "name": "tags", - "in": "query", - "description": "Tags to filter by", - "required": false, - "type": "array", - "items": { - "type": "string" - }, - "collectionFormat": "csv" - } - ], - "responses": { - "200": { - "description": "successful operation", - "schema": { - "type": "array", - "items": { - "$ref": "#/definitions/Pet" - } - } - }, - "400": { - "description": "Invalid tag value" - } - }, - "security": [ - { - "petstore_auth": [ - "write:pets", - "read:pets" - ] - } - ] - } - }, - "/pet/{petId}?testing_byte_array=true": { - "get": { - "tags": [ - "pet" - ], - "summary": "Fake endpoint to test byte array return by 'Find pet by ID'", - "description": "Returns a pet when ID < 10. ID > 10 or nonintegers will simulate API error conditions", - "operationId": "findPetsWithByteArray", - "produces": [ - "application/json", - "application/xml" - ], - "parameters": [ - { - "name": "petId", - "in": "path", - "description": "ID of pet that needs to be fetched", - "required": true, - "type": "integer", - "format": "int64" - } - ], - "responses": { - "404": { - "description": "Pet not found" - }, - "200": { - "description": "successful operation", - "schema": { - "type": "string", - "format": "binary" - } - }, - "400": { - "description": "Invalid ID supplied" - } - }, - "security": [ - { - "api_key": [] - }, - { - "petstore_auth": [ - "write:pets", - "read:pets" - ] - } - ] - } - }, - "/pet/{petId}": { - "get": { - "tags": [ - "pet" - ], - "summary": "Find pet by ID", - "description": "Returns a pet when ID < 10. ID > 10 or nonintegers will simulate API error conditions", - "operationId": "getPetById", - "produces": [ - "application/json", - "application/xml" - ], - "parameters": [ - { - "name": "petId", - "in": "path", - "description": "ID of pet that needs to be fetched", - "required": true, - "type": "integer", - "format": "int64" - } - ], - "responses": { - "404": { - "description": "Pet not found" - }, - "200": { - "description": "successful operation", - "schema": { - "$ref": "#/definitions/Pet" - } - }, - "400": { - "description": "Invalid ID supplied" - } - }, - "security": [ - { - "api_key": [] - }, - { - "petstore_auth": [ - "write:pets", - "read:pets" - ] - } - ] - }, - "post": { - "tags": [ - "pet" - ], - "summary": "Updates a pet in the store with form data", - "description": "", - "operationId": "updatePetWithForm", - "consumes": [ - "application/x-www-form-urlencoded" - ], - "produces": [ - "application/json", - "application/xml" - ], - "parameters": [ - { - "name": "petId", - "in": "path", - "description": "ID of pet that needs to be updated", - "required": true, - "type": "string" - }, - { - "name": "name", - "in": "formData", - "description": "Updated name of the pet", - "required": false, - "type": "string" - }, - { - "name": "status", - "in": "formData", - "description": "Updated status of the pet", - "required": false, - "type": "string" - } - ], - "responses": { - "405": { - "description": "Invalid input" - } - }, - "security": [ - { - "petstore_auth": [ - "write:pets", - "read:pets" - ] - } - ] - }, - "delete": { - "tags": [ - "pet" - ], - "summary": "Deletes a pet", - "description": "", - "operationId": "deletePet", - "produces": [ - "application/json", - "application/xml" - ], - "parameters": [ - { - "name": "api_key", - "in": "header", - "description": "", - "required": false, - "type": "string" - }, - { - "name": "petId", - "in": "path", - "description": "Pet id to delete", - "required": true, - "type": "integer", - "format": "int64" - } - ], - "responses": { - "400": { - "description": "Invalid pet value" - } - }, - "security": [ - { - "petstore_auth": [ - "write:pets", - "read:pets" - ] - } - ] - } - }, - "/pet/{petId}/uploadImage": { - "post": { - "tags": [ - "pet" - ], - "summary": "uploads an image", - "description": "", - "operationId": "uploadFile", - "consumes": [ - "multipart/form-data" - ], - "produces": [ - "application/json", - "application/xml" - ], - "parameters": [ - { - "name": "petId", - "in": "path", - "description": "ID of pet to update", - "required": true, - "type": "integer", - "format": "int64" - }, - { - "name": "additionalMetadata", - "in": "formData", - "description": "Additional data to pass to server", - "required": false, - "type": "string" - }, - { - "name": "file", - "in": "formData", - "description": "file to upload", - "required": false, - "type": "file" - } - ], - "responses": { - "default": { - "description": "successful operation" - } - }, - "security": [ - { - "petstore_auth": [ - "write:pets", - "read:pets" - ] - } - ] - } - }, - "/store/inventory": { - "get": { - "tags": [ - "store" - ], - "summary": "Returns pet inventories by status", - "description": "Returns a map of status codes to quantities", - "operationId": "getInventory", - "produces": [ - "application/json", - "application/xml" - ], - "responses": { - "200": { - "description": "successful operation", - "schema": { - "type": "object", - "additionalProperties": { - "type": "integer", - "format": "int32" - } - } - } - }, - "security": [ - { - "api_key": [] - } - ] - } - }, - "/store/order": { - "post": { - "tags": [ - "store" - ], - "summary": "Place an order for a pet", - "description": "", - "operationId": "placeOrder", - "produces": [ - "application/json", - "application/xml" - ], - "parameters": [ - { - "in": "body", - "name": "body", - "description": "order placed for purchasing the pet", - "required": false, - "schema": { - "$ref": "#/definitions/Order" - } - } - ], - "responses": { - "200": { - "description": "successful operation", - "schema": { - "$ref": "#/definitions/Order" - } - }, - "400": { - "description": "Invalid Order" - } - }, - "security": [ - { - "test_api_client_id": [], - "test_api_client_secret": [] - } - ] - } - }, - "/store/order/{orderId}": { - "get": { - "tags": [ - "store" - ], - "summary": "Find purchase order by ID", - "description": "For valid response try integer IDs with value <= 5 or > 10. Other values will generated exceptions", - "operationId": "getOrderById", - "produces": [ - "application/json", - "application/xml" - ], - "parameters": [ - { - "name": "orderId", - "in": "path", - "description": "ID of pet that needs to be fetched", - "required": true, - "type": "string" - } - ], - "responses": { - "404": { - "description": "Order not found" - }, - "200": { - "description": "successful operation", - "schema": { - "$ref": "#/definitions/Order" - } - }, - "400": { - "description": "Invalid ID supplied" - } - }, - "security": [ - { - "test_api_key_header": [] - }, - { - "test_api_key_query": [] - } - ] - }, - "delete": { - "tags": [ - "store" - ], - "summary": "Delete purchase order by ID", - "description": "For valid response try integer IDs with value < 1000. Anything above 1000 or nonintegers will generate API errors", - "operationId": "deleteOrder", - "produces": [ - "application/json", - "application/xml" - ], - "parameters": [ - { - "name": "orderId", - "in": "path", - "description": "ID of the order that needs to be deleted", - "required": true, - "type": "string" - } - ], - "responses": { - "404": { - "description": "Order not found" - }, - "400": { - "description": "Invalid ID supplied" - } - } - } - }, - "/user": { - "post": { - "tags": [ - "user" - ], - "summary": "Create user", - "description": "This can only be done by the logged in user.", - "operationId": "createUser", - "produces": [ - "application/json", - "application/xml" - ], - "parameters": [ - { - "in": "body", - "name": "body", - "description": "Created user object", - "required": false, - "schema": { - "$ref": "#/definitions/User" - } - } - ], - "responses": { - "default": { - "description": "successful operation" - } - } - } - }, - "/user/createWithArray": { - "post": { - "tags": [ - "user" - ], - "summary": "Creates list of users with given input array", - "description": "", - "operationId": "createUsersWithArrayInput", - "produces": [ - "application/json", - "application/xml" - ], - "parameters": [ - { - "in": "body", - "name": "body", - "description": "List of user object", - "required": false, - "schema": { - "type": "array", - "items": { - "$ref": "#/definitions/User" - } - } - } - ], - "responses": { - "default": { - "description": "successful operation" - } - } - } - }, - "/user/createWithList": { - "post": { - "tags": [ - "user" - ], - "summary": "Creates list of users with given input array", - "description": "", - "operationId": "createUsersWithListInput", - "produces": [ - "application/json", - "application/xml" - ], - "parameters": [ - { - "in": "body", - "name": "body", - "description": "List of user object", - "required": false, - "schema": { - "type": "array", - "items": { - "$ref": "#/definitions/User" - } - } - } - ], - "responses": { - "default": { - "description": "successful operation" - } - } - } - }, - "/user/login": { - "get": { - "tags": [ - "user" - ], - "summary": "Logs user into the system", - "description": "", - "operationId": "loginUser", - "produces": [ - "application/json", - "application/xml" - ], - "parameters": [ - { - "name": "username", - "in": "query", - "description": "The user name for login", - "required": false, - "type": "string" - }, - { - "name": "password", - "in": "query", - "description": "The password for login in clear text", - "required": false, - "type": "string" - } - ], - "responses": { - "200": { - "description": "successful operation", - "schema": { - "type": "string" - } - }, - "400": { - "description": "Invalid username/password supplied" - } - } - } - }, - "/user/logout": { - "get": { - "tags": [ - "user" - ], - "summary": "Logs out current logged in user session", - "description": "", - "operationId": "logoutUser", - "produces": [ - "application/json", - "application/xml" - ], - "responses": { - "default": { - "description": "successful operation" - } - } - } - }, - "/user/{username}": { - "get": { - "tags": [ - "user" - ], - "summary": "Get user by user name", - "description": "", - "operationId": "getUserByName", - "produces": [ - "application/json", - "application/xml" - ], - "parameters": [ - { - "name": "username", - "in": "path", - "description": "The name that needs to be fetched. Use user1 for testing. ", - "required": true, - "type": "string" - } - ], - "responses": { - "404": { - "description": "User not found" - }, - "200": { - "description": "successful operation", - "schema": { - "$ref": "#/definitions/User" - }, - "examples": { - "application/json": { - "id": 1, - "username": "johnp", - "firstName": "John", - "lastName": "Public", - "email": "johnp@swagger.io", - "password": "-secret-", - "phone": "0123456789", - "userStatus": 0 - } - } - }, - "400": { - "description": "Invalid username supplied" - } - } - }, - "put": { - "tags": [ - "user" - ], - "summary": "Updated user", - "description": "This can only be done by the logged in user.", - "operationId": "updateUser", - "produces": [ - "application/json", - "application/xml" - ], - "parameters": [ - { - "name": "username", - "in": "path", - "description": "name that need to be deleted", - "required": true, - "type": "string" - }, - { - "in": "body", - "name": "body", - "description": "Updated user object", - "required": false, - "schema": { - "$ref": "#/definitions/User" - } - } - ], - "responses": { - "404": { - "description": "User not found" - }, - "400": { - "description": "Invalid user supplied" - } - } - }, - "delete": { - "tags": [ - "user" - ], - "summary": "Delete user", - "description": "This can only be done by the logged in user.", - "operationId": "deleteUser", - "produces": [ - "application/json", - "application/xml" - ], - "parameters": [ - { - "name": "username", - "in": "path", - "description": "The name that needs to be deleted", - "required": true, - "type": "string" - } - ], - "responses": { - "404": { - "description": "User not found" - }, - "400": { - "description": "Invalid username supplied" - } - } - } - } - }, - "securityDefinitions": { - "api_key": { - "type": "apiKey", - "name": "api_key", - "in": "header" - }, - "petstore_auth": { - "type": "oauth2", - "authorizationUrl": "http://petstore.swagger.io/api/oauth/dialog", - "flow": "implicit", - "scopes": { - "write:pets": "modify pets in your account", - "read:pets": "read your pets" - } - }, - "test_api_client_id": { - "type": "apiKey", - "name": "x-test_api_client_id", - "in": "header" - }, - "test_api_client_secret": { - "type": "apiKey", - "name": "x-test_api_client_secret", - "in": "header" - }, - "test_api_key_header": { - "type": "apiKey", - "name": "test_api_key_header", - "in": "header" - }, - "test_api_key_query": { - "type": "apiKey", - "name": "test_api_key_query", - "in": "query" - } - }, - "definitions": { - "User": { - "properties": { - "id": { - "type": "integer", - "format": "int64" - }, - "username": { - "type": "string" - }, - "firstName": { - "type": "string" - }, - "lastName": { - "type": "string" - }, - "email": { - "type": "string" - }, - "password": { - "type": "string" - }, - "phone": { - "type": "string" - }, - "userStatus": { - "type": "integer", - "format": "int32", - "description": "User Status" - } - }, - "xml": { - "name": "User" - } - }, - "Category": { - "properties": { - "id": { - "type": "integer", - "format": "int64" - }, - "name": { - "type": "string" - } - }, - "xml": { - "name": "Category" - } - }, - "Pet": { - "required": [ - "name", - "photoUrls" - ], - "properties": { - "id": { - "type": "integer", - "format": "int64", - "title": "The id of the pet.", - "description": "A more detailed description of the id of the pet." - }, - "category": { - "$ref": "#/definitions/Category" - }, - "name": { - "type": "string", - "example": "doggie" - }, - "photoUrls": { - "type": "array", - "xml": { - "name": "photoUrl", - "wrapped": true - }, - "items": { - "type": "string" - } - }, - "tags": { - "type": "array", - "xml": { - "name": "tag", - "wrapped": true - }, - "items": { - "$ref": "#/definitions/Tag" - } - }, - "status": { - "type": "string", - "description": "pet status in the store", - "enum": [ - "available", - "pending", - "sold" - ] - } - }, - "title": "A pet", - "description": "A group of properties representing a pet.", - "xml": { - "name": "Pet" - } - }, - "Tag": { - "properties": { - "id": { - "type": "integer", - "format": "int64" - }, - "name": { - "type": "string" - } - }, - "xml": { - "name": "Tag" - } - }, - "Order": { - "properties": { - "id": { - "type": "integer", - "format": "int64", - "readOnly": true - }, - "petId": { - "type": "integer", - "format": "int64" - }, - "quantity": { - "type": "integer", - "format": "int32" - }, - "shipDate": { - "type": "string", - "format": "date-time" - }, - "status": { - "type": "string", - "description": "Order Status", - "enum": [ - "placed", - "approved", - "delivered" - ] - }, - "complete": { - "type": "boolean" - } - }, - "xml": { - "name": "Order" - } - } - } -} \ No newline at end of file diff --git a/Samples/openapi-v2/1a-code-generation-minimal/readme.md b/Samples/openapi-v2/1a-code-generation-minimal/readme.md deleted file mode 100644 index b96dc57fed..0000000000 --- a/Samples/openapi-v2/1a-code-generation-minimal/readme.md +++ /dev/null @@ -1,13 +0,0 @@ -# Scenario: Client generation - -> see https://aka.ms/autorest - -``` yaml -input-file: pétstöre.json # full Unicode support - -csharp: - namespace: Petstore - output-folder: Client - enable-xml: true # enable experimental XML serialization support - # azure-arm: true # uncomment this line to enable code generation in the Azure flavor -``` \ No newline at end of file diff --git a/Samples/openapi-v2/1a-code-generation-minimal/shell/code.txt b/Samples/openapi-v2/1a-code-generation-minimal/shell/code.txt deleted file mode 100644 index c227083464..0000000000 --- a/Samples/openapi-v2/1a-code-generation-minimal/shell/code.txt +++ /dev/null @@ -1 +0,0 @@ -0 \ No newline at end of file diff --git a/Samples/openapi-v2/1a-code-generation-minimal/shell/stderr.txt b/Samples/openapi-v2/1a-code-generation-minimal/shell/stderr.txt deleted file mode 100644 index 8b13789179..0000000000 --- a/Samples/openapi-v2/1a-code-generation-minimal/shell/stderr.txt +++ /dev/null @@ -1 +0,0 @@ - diff --git a/Samples/openapi-v2/1a-code-generation-minimal/shell/stdout.txt b/Samples/openapi-v2/1a-code-generation-minimal/shell/stdout.txt deleted file mode 100644 index 17d46a9413..0000000000 --- a/Samples/openapi-v2/1a-code-generation-minimal/shell/stdout.txt +++ /dev/null @@ -1 +0,0 @@ -https://aka.ms/autorest diff --git a/Samples/openapi-v2/1b-code-generation-multilang/Azure.CSharp.Fluent/Generated/ISwaggerPetstore.cs b/Samples/openapi-v2/1b-code-generation-multilang/Azure.CSharp.Fluent/Generated/ISwaggerPetstore.cs deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/1b-code-generation-multilang/Azure.CSharp.Fluent/Generated/ISwaggerPetstore.cs +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/1b-code-generation-multilang/Azure.CSharp.Fluent/Generated/Models/Error.cs b/Samples/openapi-v2/1b-code-generation-multilang/Azure.CSharp.Fluent/Generated/Models/Error.cs deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/1b-code-generation-multilang/Azure.CSharp.Fluent/Generated/Models/Error.cs +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/1b-code-generation-multilang/Azure.CSharp.Fluent/Generated/Models/ErrorException.cs b/Samples/openapi-v2/1b-code-generation-multilang/Azure.CSharp.Fluent/Generated/Models/ErrorException.cs deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/1b-code-generation-multilang/Azure.CSharp.Fluent/Generated/Models/ErrorException.cs +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/1b-code-generation-multilang/Azure.CSharp.Fluent/Generated/Models/ListPetsHeadersInner.cs b/Samples/openapi-v2/1b-code-generation-multilang/Azure.CSharp.Fluent/Generated/Models/ListPetsHeadersInner.cs deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/1b-code-generation-multilang/Azure.CSharp.Fluent/Generated/Models/ListPetsHeadersInner.cs +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/1b-code-generation-multilang/Azure.CSharp.Fluent/Generated/Models/PetInner.cs b/Samples/openapi-v2/1b-code-generation-multilang/Azure.CSharp.Fluent/Generated/Models/PetInner.cs deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/1b-code-generation-multilang/Azure.CSharp.Fluent/Generated/Models/PetInner.cs +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/1b-code-generation-multilang/Azure.CSharp.Fluent/Generated/SwaggerPetstore.cs b/Samples/openapi-v2/1b-code-generation-multilang/Azure.CSharp.Fluent/Generated/SwaggerPetstore.cs deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/1b-code-generation-multilang/Azure.CSharp.Fluent/Generated/SwaggerPetstore.cs +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/1b-code-generation-multilang/Azure.CSharp.Fluent/Generated/SwaggerPetstoreExtensions.cs b/Samples/openapi-v2/1b-code-generation-multilang/Azure.CSharp.Fluent/Generated/SwaggerPetstoreExtensions.cs deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/1b-code-generation-multilang/Azure.CSharp.Fluent/Generated/SwaggerPetstoreExtensions.cs +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/1b-code-generation-multilang/Azure.CSharp/ISwaggerPetstoreClient.cs b/Samples/openapi-v2/1b-code-generation-multilang/Azure.CSharp/ISwaggerPetstoreClient.cs deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/1b-code-generation-multilang/Azure.CSharp/ISwaggerPetstoreClient.cs +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/1b-code-generation-multilang/Azure.CSharp/Models/Error.cs b/Samples/openapi-v2/1b-code-generation-multilang/Azure.CSharp/Models/Error.cs deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/1b-code-generation-multilang/Azure.CSharp/Models/Error.cs +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/1b-code-generation-multilang/Azure.CSharp/Models/ErrorException.cs b/Samples/openapi-v2/1b-code-generation-multilang/Azure.CSharp/Models/ErrorException.cs deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/1b-code-generation-multilang/Azure.CSharp/Models/ErrorException.cs +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/1b-code-generation-multilang/Azure.CSharp/Models/ListPetsHeaders.cs b/Samples/openapi-v2/1b-code-generation-multilang/Azure.CSharp/Models/ListPetsHeaders.cs deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/1b-code-generation-multilang/Azure.CSharp/Models/ListPetsHeaders.cs +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/1b-code-generation-multilang/Azure.CSharp/Models/Pet.cs b/Samples/openapi-v2/1b-code-generation-multilang/Azure.CSharp/Models/Pet.cs deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/1b-code-generation-multilang/Azure.CSharp/Models/Pet.cs +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/1b-code-generation-multilang/Azure.CSharp/SwaggerPetstoreClient.cs b/Samples/openapi-v2/1b-code-generation-multilang/Azure.CSharp/SwaggerPetstoreClient.cs deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/1b-code-generation-multilang/Azure.CSharp/SwaggerPetstoreClient.cs +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/1b-code-generation-multilang/Azure.CSharp/SwaggerPetstoreClientExtensions.cs b/Samples/openapi-v2/1b-code-generation-multilang/Azure.CSharp/SwaggerPetstoreClientExtensions.cs deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/1b-code-generation-multilang/Azure.CSharp/SwaggerPetstoreClientExtensions.cs +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/1b-code-generation-multilang/Azure.Java.Fluent/src/main/java/cowstore/Error.java b/Samples/openapi-v2/1b-code-generation-multilang/Azure.Java.Fluent/src/main/java/cowstore/Error.java deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/1b-code-generation-multilang/Azure.Java.Fluent/src/main/java/cowstore/Error.java +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/1b-code-generation-multilang/Azure.Java.Fluent/src/main/java/cowstore/ErrorException.java b/Samples/openapi-v2/1b-code-generation-multilang/Azure.Java.Fluent/src/main/java/cowstore/ErrorException.java deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/1b-code-generation-multilang/Azure.Java.Fluent/src/main/java/cowstore/ErrorException.java +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/1b-code-generation-multilang/Azure.Java.Fluent/src/main/java/cowstore/ListPetsHeaders.java b/Samples/openapi-v2/1b-code-generation-multilang/Azure.Java.Fluent/src/main/java/cowstore/ListPetsHeaders.java deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/1b-code-generation-multilang/Azure.Java.Fluent/src/main/java/cowstore/ListPetsHeaders.java +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/1b-code-generation-multilang/Azure.Java.Fluent/src/main/java/cowstore/implementation/PetInner.java b/Samples/openapi-v2/1b-code-generation-multilang/Azure.Java.Fluent/src/main/java/cowstore/implementation/PetInner.java deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/1b-code-generation-multilang/Azure.Java.Fluent/src/main/java/cowstore/implementation/PetInner.java +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/1b-code-generation-multilang/Azure.Java.Fluent/src/main/java/cowstore/implementation/SwaggerPetstoreImpl.java b/Samples/openapi-v2/1b-code-generation-multilang/Azure.Java.Fluent/src/main/java/cowstore/implementation/SwaggerPetstoreImpl.java deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/1b-code-generation-multilang/Azure.Java.Fluent/src/main/java/cowstore/implementation/SwaggerPetstoreImpl.java +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/1b-code-generation-multilang/Azure.Java.Fluent/src/main/java/cowstore/implementation/package-info.java b/Samples/openapi-v2/1b-code-generation-multilang/Azure.Java.Fluent/src/main/java/cowstore/implementation/package-info.java deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/1b-code-generation-multilang/Azure.Java.Fluent/src/main/java/cowstore/implementation/package-info.java +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/1b-code-generation-multilang/Azure.Java.Fluent/src/main/java/cowstore/package-info.java b/Samples/openapi-v2/1b-code-generation-multilang/Azure.Java.Fluent/src/main/java/cowstore/package-info.java deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/1b-code-generation-multilang/Azure.Java.Fluent/src/main/java/cowstore/package-info.java +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/1b-code-generation-multilang/Azure.Java/src/main/java/cowstore/SwaggerPetstore.java b/Samples/openapi-v2/1b-code-generation-multilang/Azure.Java/src/main/java/cowstore/SwaggerPetstore.java deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/1b-code-generation-multilang/Azure.Java/src/main/java/cowstore/SwaggerPetstore.java +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/1b-code-generation-multilang/Azure.Java/src/main/java/cowstore/implementation/SwaggerPetstoreImpl.java b/Samples/openapi-v2/1b-code-generation-multilang/Azure.Java/src/main/java/cowstore/implementation/SwaggerPetstoreImpl.java deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/1b-code-generation-multilang/Azure.Java/src/main/java/cowstore/implementation/SwaggerPetstoreImpl.java +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/1b-code-generation-multilang/Azure.Java/src/main/java/cowstore/implementation/package-info.java b/Samples/openapi-v2/1b-code-generation-multilang/Azure.Java/src/main/java/cowstore/implementation/package-info.java deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/1b-code-generation-multilang/Azure.Java/src/main/java/cowstore/implementation/package-info.java +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/1b-code-generation-multilang/Azure.Java/src/main/java/cowstore/models/Error.java b/Samples/openapi-v2/1b-code-generation-multilang/Azure.Java/src/main/java/cowstore/models/Error.java deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/1b-code-generation-multilang/Azure.Java/src/main/java/cowstore/models/Error.java +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/1b-code-generation-multilang/Azure.Java/src/main/java/cowstore/models/ErrorException.java b/Samples/openapi-v2/1b-code-generation-multilang/Azure.Java/src/main/java/cowstore/models/ErrorException.java deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/1b-code-generation-multilang/Azure.Java/src/main/java/cowstore/models/ErrorException.java +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/1b-code-generation-multilang/Azure.Java/src/main/java/cowstore/models/ListPetsHeaders.java b/Samples/openapi-v2/1b-code-generation-multilang/Azure.Java/src/main/java/cowstore/models/ListPetsHeaders.java deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/1b-code-generation-multilang/Azure.Java/src/main/java/cowstore/models/ListPetsHeaders.java +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/1b-code-generation-multilang/Azure.Java/src/main/java/cowstore/models/Pet.java b/Samples/openapi-v2/1b-code-generation-multilang/Azure.Java/src/main/java/cowstore/models/Pet.java deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/1b-code-generation-multilang/Azure.Java/src/main/java/cowstore/models/Pet.java +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/1b-code-generation-multilang/Azure.Java/src/main/java/cowstore/models/package-info.java b/Samples/openapi-v2/1b-code-generation-multilang/Azure.Java/src/main/java/cowstore/models/package-info.java deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/1b-code-generation-multilang/Azure.Java/src/main/java/cowstore/models/package-info.java +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/1b-code-generation-multilang/Azure.Java/src/main/java/cowstore/package-info.java b/Samples/openapi-v2/1b-code-generation-multilang/Azure.Java/src/main/java/cowstore/package-info.java deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/1b-code-generation-multilang/Azure.Java/src/main/java/cowstore/package-info.java +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/1b-code-generation-multilang/Azure.NodeJS/LICENSE.txt b/Samples/openapi-v2/1b-code-generation-multilang/Azure.NodeJS/LICENSE.txt deleted file mode 100644 index a70e8cf660..0000000000 --- a/Samples/openapi-v2/1b-code-generation-multilang/Azure.NodeJS/LICENSE.txt +++ /dev/null @@ -1,21 +0,0 @@ -The MIT License (MIT) - -Copyright (c) 2018 Microsoft - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. diff --git a/Samples/openapi-v2/1b-code-generation-multilang/Azure.NodeJS/lib/models/errorModel.js b/Samples/openapi-v2/1b-code-generation-multilang/Azure.NodeJS/lib/models/errorModel.js deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/1b-code-generation-multilang/Azure.NodeJS/lib/models/errorModel.js +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/1b-code-generation-multilang/Azure.NodeJS/lib/models/index.js b/Samples/openapi-v2/1b-code-generation-multilang/Azure.NodeJS/lib/models/index.js deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/1b-code-generation-multilang/Azure.NodeJS/lib/models/index.js +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/1b-code-generation-multilang/Azure.NodeJS/lib/models/pet.js b/Samples/openapi-v2/1b-code-generation-multilang/Azure.NodeJS/lib/models/pet.js deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/1b-code-generation-multilang/Azure.NodeJS/lib/models/pet.js +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/1b-code-generation-multilang/Azure.NodeJS/lib/swaggerPetstore.js b/Samples/openapi-v2/1b-code-generation-multilang/Azure.NodeJS/lib/swaggerPetstore.js deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/1b-code-generation-multilang/Azure.NodeJS/lib/swaggerPetstore.js +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/1b-code-generation-multilang/Azure.NodeJS/package.json b/Samples/openapi-v2/1b-code-generation-multilang/Azure.NodeJS/package.json deleted file mode 100644 index bb376f9b5c..0000000000 --- a/Samples/openapi-v2/1b-code-generation-multilang/Azure.NodeJS/package.json +++ /dev/null @@ -1,25 +0,0 @@ -{ - "name": "", - "author": "Microsoft Corporation", - "description": "SwaggerPetstore Library with typescript type definitions for node", - "version": "", - "dependencies": { - "ms-rest": "^2.3.3", - "ms-rest-azure": "^2.5.5" - }, - "keywords": [ - "node", - "azure" - ], - "license": "MIT", - "main": "./lib/swaggerPetstore.js", - "types": "./lib/swaggerPetstore.d.ts", - "homepage": "https://github.com/azure/azure-sdk-for-node", - "repository": { - "type": "git", - "url": "https://github.com/azure/azure-sdk-for-node.git" - }, - "bugs": { - "url": "https://github.com/azure/azure-sdk-for-node/issues" - } -} diff --git a/Samples/openapi-v2/1b-code-generation-multilang/Azure.Python/cowstore/__init__.py b/Samples/openapi-v2/1b-code-generation-multilang/Azure.Python/cowstore/__init__.py deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/1b-code-generation-multilang/Azure.Python/cowstore/__init__.py +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/1b-code-generation-multilang/Azure.Python/cowstore/models/__init__.py b/Samples/openapi-v2/1b-code-generation-multilang/Azure.Python/cowstore/models/__init__.py deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/1b-code-generation-multilang/Azure.Python/cowstore/models/__init__.py +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/1b-code-generation-multilang/Azure.Python/cowstore/models/error.py b/Samples/openapi-v2/1b-code-generation-multilang/Azure.Python/cowstore/models/error.py deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/1b-code-generation-multilang/Azure.Python/cowstore/models/error.py +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/1b-code-generation-multilang/Azure.Python/cowstore/models/pet.py b/Samples/openapi-v2/1b-code-generation-multilang/Azure.Python/cowstore/models/pet.py deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/1b-code-generation-multilang/Azure.Python/cowstore/models/pet.py +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/1b-code-generation-multilang/Azure.Python/cowstore/swagger_petstore.py b/Samples/openapi-v2/1b-code-generation-multilang/Azure.Python/cowstore/swagger_petstore.py deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/1b-code-generation-multilang/Azure.Python/cowstore/swagger_petstore.py +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/1b-code-generation-multilang/Azure.Python/cowstore/version.py b/Samples/openapi-v2/1b-code-generation-multilang/Azure.Python/cowstore/version.py deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/1b-code-generation-multilang/Azure.Python/cowstore/version.py +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/1b-code-generation-multilang/Azure.Ruby/1.0.0/generated/petstore.rb b/Samples/openapi-v2/1b-code-generation-multilang/Azure.Ruby/1.0.0/generated/petstore.rb deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/1b-code-generation-multilang/Azure.Ruby/1.0.0/generated/petstore.rb +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/1b-code-generation-multilang/Azure.Ruby/1.0.0/generated/petstore/models/error.rb b/Samples/openapi-v2/1b-code-generation-multilang/Azure.Ruby/1.0.0/generated/petstore/models/error.rb deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/1b-code-generation-multilang/Azure.Ruby/1.0.0/generated/petstore/models/error.rb +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/1b-code-generation-multilang/Azure.Ruby/1.0.0/generated/petstore/models/pet.rb b/Samples/openapi-v2/1b-code-generation-multilang/Azure.Ruby/1.0.0/generated/petstore/models/pet.rb deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/1b-code-generation-multilang/Azure.Ruby/1.0.0/generated/petstore/models/pet.rb +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/1b-code-generation-multilang/Azure.Ruby/1.0.0/generated/petstore/module_definition.rb b/Samples/openapi-v2/1b-code-generation-multilang/Azure.Ruby/1.0.0/generated/petstore/module_definition.rb deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/1b-code-generation-multilang/Azure.Ruby/1.0.0/generated/petstore/module_definition.rb +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/1b-code-generation-multilang/Azure.Ruby/1.0.0/generated/petstore/swagger_petstore.rb b/Samples/openapi-v2/1b-code-generation-multilang/Azure.Ruby/1.0.0/generated/petstore/swagger_petstore.rb deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/1b-code-generation-multilang/Azure.Ruby/1.0.0/generated/petstore/swagger_petstore.rb +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/1b-code-generation-multilang/CSharp/ISwaggerPetstore.cs b/Samples/openapi-v2/1b-code-generation-multilang/CSharp/ISwaggerPetstore.cs deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/1b-code-generation-multilang/CSharp/ISwaggerPetstore.cs +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/1b-code-generation-multilang/CSharp/Models/Error.cs b/Samples/openapi-v2/1b-code-generation-multilang/CSharp/Models/Error.cs deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/1b-code-generation-multilang/CSharp/Models/Error.cs +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/1b-code-generation-multilang/CSharp/Models/ErrorException.cs b/Samples/openapi-v2/1b-code-generation-multilang/CSharp/Models/ErrorException.cs deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/1b-code-generation-multilang/CSharp/Models/ErrorException.cs +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/1b-code-generation-multilang/CSharp/Models/ListPetsHeaders.cs b/Samples/openapi-v2/1b-code-generation-multilang/CSharp/Models/ListPetsHeaders.cs deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/1b-code-generation-multilang/CSharp/Models/ListPetsHeaders.cs +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/1b-code-generation-multilang/CSharp/Models/Pet.cs b/Samples/openapi-v2/1b-code-generation-multilang/CSharp/Models/Pet.cs deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/1b-code-generation-multilang/CSharp/Models/Pet.cs +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/1b-code-generation-multilang/CSharp/SwaggerPetstore.cs b/Samples/openapi-v2/1b-code-generation-multilang/CSharp/SwaggerPetstore.cs deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/1b-code-generation-multilang/CSharp/SwaggerPetstore.cs +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/1b-code-generation-multilang/CSharp/SwaggerPetstoreExtensions.cs b/Samples/openapi-v2/1b-code-generation-multilang/CSharp/SwaggerPetstoreExtensions.cs deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/1b-code-generation-multilang/CSharp/SwaggerPetstoreExtensions.cs +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/1b-code-generation-multilang/Go/client.go b/Samples/openapi-v2/1b-code-generation-multilang/Go/client.go deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/1b-code-generation-multilang/Go/client.go +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/1b-code-generation-multilang/Go/models.go b/Samples/openapi-v2/1b-code-generation-multilang/Go/models.go deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/1b-code-generation-multilang/Go/models.go +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/1b-code-generation-multilang/Go/version.go b/Samples/openapi-v2/1b-code-generation-multilang/Go/version.go deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/1b-code-generation-multilang/Go/version.go +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/1b-code-generation-multilang/Java/SwaggerPetstore.java b/Samples/openapi-v2/1b-code-generation-multilang/Java/SwaggerPetstore.java deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/1b-code-generation-multilang/Java/SwaggerPetstore.java +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/1b-code-generation-multilang/Java/implementation/SwaggerPetstoreImpl.java b/Samples/openapi-v2/1b-code-generation-multilang/Java/implementation/SwaggerPetstoreImpl.java deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/1b-code-generation-multilang/Java/implementation/SwaggerPetstoreImpl.java +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/1b-code-generation-multilang/Java/implementation/package-info.java b/Samples/openapi-v2/1b-code-generation-multilang/Java/implementation/package-info.java deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/1b-code-generation-multilang/Java/implementation/package-info.java +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/1b-code-generation-multilang/Java/models/Error.java b/Samples/openapi-v2/1b-code-generation-multilang/Java/models/Error.java deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/1b-code-generation-multilang/Java/models/Error.java +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/1b-code-generation-multilang/Java/models/ErrorException.java b/Samples/openapi-v2/1b-code-generation-multilang/Java/models/ErrorException.java deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/1b-code-generation-multilang/Java/models/ErrorException.java +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/1b-code-generation-multilang/Java/models/ListPetsHeaders.java b/Samples/openapi-v2/1b-code-generation-multilang/Java/models/ListPetsHeaders.java deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/1b-code-generation-multilang/Java/models/ListPetsHeaders.java +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/1b-code-generation-multilang/Java/models/Pet.java b/Samples/openapi-v2/1b-code-generation-multilang/Java/models/Pet.java deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/1b-code-generation-multilang/Java/models/Pet.java +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/1b-code-generation-multilang/Java/models/package-info.java b/Samples/openapi-v2/1b-code-generation-multilang/Java/models/package-info.java deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/1b-code-generation-multilang/Java/models/package-info.java +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/1b-code-generation-multilang/Java/package-info.java b/Samples/openapi-v2/1b-code-generation-multilang/Java/package-info.java deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/1b-code-generation-multilang/Java/package-info.java +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/1b-code-generation-multilang/NodeJS/LICENSE.txt b/Samples/openapi-v2/1b-code-generation-multilang/NodeJS/LICENSE.txt deleted file mode 100644 index a70e8cf660..0000000000 --- a/Samples/openapi-v2/1b-code-generation-multilang/NodeJS/LICENSE.txt +++ /dev/null @@ -1,21 +0,0 @@ -The MIT License (MIT) - -Copyright (c) 2018 Microsoft - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. diff --git a/Samples/openapi-v2/1b-code-generation-multilang/NodeJS/lib/models/errorModel.js b/Samples/openapi-v2/1b-code-generation-multilang/NodeJS/lib/models/errorModel.js deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/1b-code-generation-multilang/NodeJS/lib/models/errorModel.js +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/1b-code-generation-multilang/NodeJS/lib/models/index.js b/Samples/openapi-v2/1b-code-generation-multilang/NodeJS/lib/models/index.js deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/1b-code-generation-multilang/NodeJS/lib/models/index.js +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/1b-code-generation-multilang/NodeJS/lib/models/pet.js b/Samples/openapi-v2/1b-code-generation-multilang/NodeJS/lib/models/pet.js deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/1b-code-generation-multilang/NodeJS/lib/models/pet.js +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/1b-code-generation-multilang/NodeJS/lib/swaggerPetstore.js b/Samples/openapi-v2/1b-code-generation-multilang/NodeJS/lib/swaggerPetstore.js deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/1b-code-generation-multilang/NodeJS/lib/swaggerPetstore.js +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/1b-code-generation-multilang/NodeJS/package.json b/Samples/openapi-v2/1b-code-generation-multilang/NodeJS/package.json deleted file mode 100644 index 348d592a67..0000000000 --- a/Samples/openapi-v2/1b-code-generation-multilang/NodeJS/package.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "name": "", - "author": "Microsoft Corporation", - "description": "SwaggerPetstore Library with typescript type definitions for node", - "version": "", - "dependencies": { - "ms-rest": "^2.3.3" - }, - "keywords": [ - "node", - "azure" - ], - "license": "MIT", - "main": "./lib/swaggerPetstore.js", - "types": "./lib/swaggerPetstore.d.ts", - "homepage": "https://github.com/azure/azure-sdk-for-node", - "repository": { - "type": "git", - "url": "https://github.com/azure/azure-sdk-for-node.git" - }, - "bugs": { - "url": "https://github.com/azure/azure-sdk-for-node/issues" - } -} diff --git a/Samples/openapi-v2/1b-code-generation-multilang/Python/cowstore/__init__.py b/Samples/openapi-v2/1b-code-generation-multilang/Python/cowstore/__init__.py deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/1b-code-generation-multilang/Python/cowstore/__init__.py +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/1b-code-generation-multilang/Python/cowstore/models/__init__.py b/Samples/openapi-v2/1b-code-generation-multilang/Python/cowstore/models/__init__.py deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/1b-code-generation-multilang/Python/cowstore/models/__init__.py +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/1b-code-generation-multilang/Python/cowstore/models/error.py b/Samples/openapi-v2/1b-code-generation-multilang/Python/cowstore/models/error.py deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/1b-code-generation-multilang/Python/cowstore/models/error.py +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/1b-code-generation-multilang/Python/cowstore/models/pet.py b/Samples/openapi-v2/1b-code-generation-multilang/Python/cowstore/models/pet.py deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/1b-code-generation-multilang/Python/cowstore/models/pet.py +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/1b-code-generation-multilang/Python/cowstore/swagger_petstore.py b/Samples/openapi-v2/1b-code-generation-multilang/Python/cowstore/swagger_petstore.py deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/1b-code-generation-multilang/Python/cowstore/swagger_petstore.py +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/1b-code-generation-multilang/Python/cowstore/version.py b/Samples/openapi-v2/1b-code-generation-multilang/Python/cowstore/version.py deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/1b-code-generation-multilang/Python/cowstore/version.py +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/1b-code-generation-multilang/Ruby/generated/petstore.rb b/Samples/openapi-v2/1b-code-generation-multilang/Ruby/generated/petstore.rb deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/1b-code-generation-multilang/Ruby/generated/petstore.rb +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/1b-code-generation-multilang/Ruby/generated/petstore/models/error.rb b/Samples/openapi-v2/1b-code-generation-multilang/Ruby/generated/petstore/models/error.rb deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/1b-code-generation-multilang/Ruby/generated/petstore/models/error.rb +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/1b-code-generation-multilang/Ruby/generated/petstore/models/pet.rb b/Samples/openapi-v2/1b-code-generation-multilang/Ruby/generated/petstore/models/pet.rb deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/1b-code-generation-multilang/Ruby/generated/petstore/models/pet.rb +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/1b-code-generation-multilang/Ruby/generated/petstore/module_definition.rb b/Samples/openapi-v2/1b-code-generation-multilang/Ruby/generated/petstore/module_definition.rb deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/1b-code-generation-multilang/Ruby/generated/petstore/module_definition.rb +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/1b-code-generation-multilang/Ruby/generated/petstore/swagger_petstore.rb b/Samples/openapi-v2/1b-code-generation-multilang/Ruby/generated/petstore/swagger_petstore.rb deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/1b-code-generation-multilang/Ruby/generated/petstore/swagger_petstore.rb +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/1b-code-generation-multilang/petstore.yaml b/Samples/openapi-v2/1b-code-generation-multilang/petstore.yaml deleted file mode 100644 index 8e9a023840..0000000000 --- a/Samples/openapi-v2/1b-code-generation-multilang/petstore.yaml +++ /dev/null @@ -1,105 +0,0 @@ -swagger: '2.0' -info: - version: 1.0.0 - title: Swagger Petstore - license: - name: MIT -host: petstore.swagger.io -basePath: "/v1" -schemes: -- http -consumes: -- application/json -produces: -- application/json -paths: - "/pets": - get: - summary: List all pets - operationId: listPets - tags: - - pets - parameters: - - name: limit - in: query - description: How many items to return at one time (max 100) - required: false - type: integer - format: int32 - responses: - '200': - description: An paged array of pets - headers: - x-next: - type: string - description: A link to the next page of responses - schema: - "$ref": "#/definitions/Pets" - default: - description: unexpected error - schema: - "$ref": "#/definitions/Error" - post: - summary: Create a pet - operationId: createPets - tags: - - pets - responses: - '201': - description: Null response - default: - description: unexpected error - schema: - "$ref": "#/definitions/Error" - "/pets/{petId}": - get: - summary: Info for a specific pet - operationId: showPetById - tags: - - pets - parameters: - - name: petId - in: path - required: true - description: The id of the pet to retrieve - type: string - responses: - '200': - description: Expected response to a valid request - schema: - "$ref": "#/definitions/Pets" - default: - description: unexpected error - schema: - "$ref": "#/definitions/Error" -definitions: - Pet: - required: - - id - - name - properties: - id: - type: integer - format: int64 - enum: - - 42 - - 1337 - - 0xDEADBEAF - name: - type: string - tag: - type: string - Pets: - type: array - items: - "$ref": "#/definitions/Pet" - Error: - required: - - code - - message - properties: - code: - type: integer - format: int32 - message: - type: string \ No newline at end of file diff --git a/Samples/openapi-v2/1b-code-generation-multilang/readme.md b/Samples/openapi-v2/1b-code-generation-multilang/readme.md deleted file mode 100644 index ac31d3a7a3..0000000000 --- a/Samples/openapi-v2/1b-code-generation-multilang/readme.md +++ /dev/null @@ -1,88 +0,0 @@ -# Scenario: Client generation for multiple programming languages at once - -> see https://aka.ms/autorest - -## Inputs - -Note that `github.com` URIs are supported, i.e. their raw content is extracted. - -``` yaml -input-file: petstore.yaml -namespace: cowstore -``` - -## Generation - -Let's generate clients in common flavors AutoRest supports. - -### CSharp - -C# supports multiple different flavors: - -``` yaml -csharp: - - output-folder: CSharp - namespace: CSharpNamespace - - output-folder: Azure.CSharp - azure-arm: true - - output-folder: Azure.CSharp.Fluent - azure-arm: true - fluent: true -``` - -### Go - -Go (currently) has no different flavors. - -``` yaml -go: - output-folder: Go -``` - -### Java - -Do you love curlies? Let's use JSON for a change. - -``` json -{ - "java": [ - { - "output-folder": "Java", - "namespace": "JavaNamespace" - }, - { - "output-folder": "Azure.Java", - "azure-arm": true - }, - { - "output-folder": "Azure.Java.Fluent", - "azure-arm": true, - "fluent": true - } - ] -} -``` - -### NodeJS -``` yaml -nodejs: - - output-folder: NodeJS - - output-folder: Azure.NodeJS - azure-arm: true -``` - -### Python -``` yaml -python: - - output-folder: Python - - output-folder: Azure.Python - azure-arm: true -``` - -### Ruby -``` yaml -ruby: - - output-folder: Ruby - - output-folder: Azure.Ruby - azure-arm: true -``` diff --git a/Samples/openapi-v2/1b-code-generation-multilang/shell/code.txt b/Samples/openapi-v2/1b-code-generation-multilang/shell/code.txt deleted file mode 100644 index c227083464..0000000000 --- a/Samples/openapi-v2/1b-code-generation-multilang/shell/code.txt +++ /dev/null @@ -1 +0,0 @@ -0 \ No newline at end of file diff --git a/Samples/openapi-v2/1b-code-generation-multilang/shell/stderr.txt b/Samples/openapi-v2/1b-code-generation-multilang/shell/stderr.txt deleted file mode 100644 index 8b13789179..0000000000 --- a/Samples/openapi-v2/1b-code-generation-multilang/shell/stderr.txt +++ /dev/null @@ -1 +0,0 @@ - diff --git a/Samples/openapi-v2/1b-code-generation-multilang/shell/stdout.txt b/Samples/openapi-v2/1b-code-generation-multilang/shell/stdout.txt deleted file mode 100644 index 17d46a9413..0000000000 --- a/Samples/openapi-v2/1b-code-generation-multilang/shell/stdout.txt +++ /dev/null @@ -1 +0,0 @@ -https://aka.ms/autorest diff --git a/Samples/openapi-v2/1c-multiple-input-swaggers/Artifacts/searchservice.norm.json b/Samples/openapi-v2/1c-multiple-input-swaggers/Artifacts/searchservice.norm.json deleted file mode 100644 index 4ab93dc46b..0000000000 --- a/Samples/openapi-v2/1c-multiple-input-swaggers/Artifacts/searchservice.norm.json +++ /dev/null @@ -1,2932 +0,0 @@ -{ - "definitions": { - "CheckNameAvailabilityResult": { - "description": "The CheckNameAvailability operation response.", - "properties": { - "message": { - "description": "Gets an error message explaining the Reason value in more detail.", - "type": "string" - }, - "nameAvailable": { - "description": "Gets a boolean value that indicates whether the name is available for you to use. If true, the name is available. If false, the name has already been taken or invalid and cannot be used.", - "type": "boolean" - }, - "reason": { - "description": "Gets the reason that a storage account name could not be used. The Reason element is only returned if NameAvailable is false.", - "enum": [ - "AccountNameInvalid", - "AlreadyExists" - ], - "type": "string", - "x-ms-enum": { - "modelAsString": false, - "name": "Reason", - "oldModelAsString": false - } - } - } - }, - "CorsOptions": { - "description": "Defines options to control Cross-Origin Resource Sharing (CORS) for an index.", - "externalDocs": { - "url": "https://msdn.microsoft.com/library/azure/dn798941.aspx" - }, - "properties": { - "allowedOrigins": { - "description": "Gets the list of origins from which JavaScript code will be granted access to your index. Can contain a list of hosts of the form {protocol}://{fully-qualified-domain-name}[:{port#}], or a single '*' to allow all origins (not recommended).", - "items": { - "type": "string" - }, - "type": "array" - }, - "maxAgeInSeconds": { - "description": "Gets or sets the duration for which browsers should cache CORS preflight responses. Defaults to 5 mintues.", - "format": "int64", - "type": "integer" - } - }, - "required": [ - "allowedOrigins" - ] - }, - "CustomDomain": { - "description": "The custom domain assigned to this storage account. This can be set via Update.", - "properties": { - "name": { - "description": "Gets or sets the custom domain name. Name is the CNAME source.", - "type": "string" - }, - "useSubDomain": { - "description": "Indicates whether indirect CName validation is enabled. Default value is false. This should only be set on updates", - "type": "boolean" - } - }, - "required": [ - "name" - ] - }, - "DataChangeDetectionPolicy": { - "description": "Abstract base class for data change detection policies.", - "discriminator": "@odata.type", - "properties": { - "@odata.type": { - "type": "string" - } - }, - "required": [ - "@odata.type" - ] - }, - "DataContainer": { - "description": "Represents information about the entity (such as Azure SQL table or DocumentDb collection) that will be indexed.", - "properties": { - "name": { - "description": "Gets or sets the name of the table or view (for Azure SQL data source) or collection (for DocumentDB data source) that will be indexed.", - "type": "string" - }, - "query": { - "description": "Gets or sets a query that is applied to this data container. Only supported by DocumentDb datasources.", - "type": "string" - } - }, - "required": [ - "name" - ] - }, - "DataDeletionDetectionPolicy": { - "description": "Abstract base class for data deletion detection policies.", - "discriminator": "@odata.type", - "properties": { - "@odata.type": { - "type": "string" - } - }, - "required": [ - "@odata.type" - ] - }, - "DataSource": { - "description": "Represents a datasource definition in Azure Search, which can be used to configure an indexer.", - "properties": { - "container": { - "$ref": "#/definitions/DataContainer", - "description": "Gets or sets the data container for the datasource." - }, - "credentials": { - "$ref": "#/definitions/DataSourceCredentials", - "description": "Gets or sets credentials for the datasource." - }, - "dataChangeDetectionPolicy": { - "$ref": "#/definitions/DataChangeDetectionPolicy", - "description": "Gets or sets the data change detection policy for the datasource." - }, - "dataDeletionDetectionPolicy": { - "$ref": "#/definitions/DataDeletionDetectionPolicy", - "description": "Gets or sets the data deletion detection policy for the datasource." - }, - "description": { - "description": "Gets or sets the description of the datasource.", - "type": "string" - }, - "name": { - "description": "Gets or sets the name of the datasource.", - "externalDocs": { - "url": "https://msdn.microsoft.com/library/azure/dn857353.aspx" - }, - "type": "string" - }, - "type": { - "description": "Gets or sets the type of the datasource.", - "type": "string" - } - }, - "required": [ - "name", - "type", - "credentials", - "container" - ] - }, - "DataSourceCredentials": { - "description": "Represents credentials that can be used to connect to a datasource.", - "properties": { - "connectionString": { - "description": "Gets or sets the connection string for the datasource.", - "externalDocs": { - "url": "https://msdn.microsoft.com/library/azure/dn946876.aspx" - }, - "type": "string" - } - }, - "required": [ - "connectionString" - ] - }, - "DataSourceListResult": { - "description": "Response from a List Datasources request. If successful, it includes the full definitions of all datasources.", - "properties": { - "value": { - "description": "Gets the datasources in the Search service.", - "items": { - "$ref": "#/definitions/DataSource" - }, - "readOnly": true, - "type": "array" - } - }, - "x-ms-external": true - }, - "DistanceScoringFunction": { - "allOf": [ - { - "$ref": "#/definitions/ScoringFunction" - } - ], - "description": "Defines a function that boosts scores based on distance from a geographic location.", - "externalDocs": { - "url": "https://msdn.microsoft.com/library/azure/dn798928.aspx" - }, - "properties": { - "distance": { - "$ref": "#/definitions/DistanceScoringParameters", - "description": "Gets parameter values for the distance scoring function." - } - }, - "required": [ - "distance" - ], - "x-ms-discriminator-value": "distance", - "x-ms-external": true - }, - "DistanceScoringParameters": { - "description": "Provides parameter values to a distance scoring function.", - "properties": { - "boostingDistance": { - "description": "Gets or sets the distance in kilometers from the reference location where the boosting range ends.", - "format": "double", - "type": "number" - }, - "referencePointParameter": { - "description": "Gets or sets the name of the parameter passed in search queries to specify the reference location.", - "type": "string" - } - }, - "required": [ - "referencePointParameter", - "boostingDistance" - ], - "x-ms-external": true - }, - "Endpoints": { - "description": "The URIs that are used to perform a retrieval of a public blob, queue or table object.", - "properties": { - "blob": { - "description": "Gets the blob endpoint.", - "type": "string" - }, - "file": { - "description": "Gets the file endpoint.", - "type": "string" - }, - "queue": { - "description": "Gets the queue endpoint.", - "type": "string" - }, - "table": { - "description": "Gets the table endpoint.", - "type": "string" - } - } - }, - "Field": { - "description": "Represents a field in an index definition in Azure Search, which describes the name, data type, and search behavior of a field.", - "externalDocs": { - "url": "https://msdn.microsoft.com/library/azure/dn798941.aspx" - }, - "properties": { - "analyzer": { - "description": "Name of the text analyzer to use.", - "externalDocs": { - "url": "https://msdn.microsoft.com/library/azure/dn879793.aspx" - }, - "type": "string" - }, - "facetable": { - "description": "Gets or sets a value indicating whether it is possible to facet on this field. Not valid for geo-point fields. Default is false.", - "type": "boolean" - }, - "filterable": { - "description": "Gets or sets a value indicating whether the field can be used in filter expressions. Default is false.", - "type": "boolean" - }, - "key": { - "description": "Gets or sets a value indicating whether the field is the key of the index. Valid only for string fields. Every index must have exactly one key field.", - "type": "boolean" - }, - "name": { - "description": "Gets or sets the name of the field.", - "externalDocs": { - "url": "https://msdn.microsoft.com/library/azure/dn857353.aspx" - }, - "type": "string" - }, - "retrievable": { - "description": "Gets or sets a value indicating whether the field can be returned in a search result. Default is true.", - "type": "boolean" - }, - "searchable": { - "description": "Gets or sets a value indicating whether the field is included in full-text searches. Valid only forstring or string collection fields. Default is false.", - "type": "boolean" - }, - "sortable": { - "description": "Gets or sets a value indicating whether the field can be used in orderby expressions. Not valid for string collection fields. Default is false.", - "type": "boolean" - }, - "type": { - "description": "Gets or sets the data type of the field.", - "type": "string" - } - }, - "required": [ - "name", - "type" - ], - "x-ms-external": true - }, - "FreshnessScoringFunction": { - "allOf": [ - { - "$ref": "#/definitions/ScoringFunction" - } - ], - "description": "Defines a function that boosts scores based on the value of a date-time field.", - "externalDocs": { - "url": "https://msdn.microsoft.com/library/azure/dn798928.aspx" - }, - "properties": { - "freshness": { - "$ref": "#/definitions/FreshnessScoringParameters", - "description": "Gets parameter values for the freshness scoring function." - } - }, - "required": [ - "freshness" - ], - "x-ms-discriminator-value": "freshness", - "x-ms-external": true - }, - "FreshnessScoringParameters": { - "description": "Provides parameter values to a freshness scoring function.", - "properties": { - "boostingDuration": { - "description": "Gets or sets the expiration period after which boosting will stop for a particular document.", - "format": "duration", - "type": "string" - } - }, - "required": [ - "boostingDuration" - ], - "x-ms-external": true - }, - "HighWaterMarkChangeDetectionPolicy": { - "allOf": [ - { - "$ref": "#/definitions/DataChangeDetectionPolicy" - } - ], - "description": "Defines a data change detection policy that captures changes based on the value of a high water mark column.", - "properties": { - "highWaterMarkColumnName": { - "description": "Gets or sets the name of the high water mark column.", - "type": "string" - } - }, - "required": [ - "highWaterMarkColumnName" - ], - "x-ms-discriminator-value": "#Microsoft.Azure.Search.HighWaterMarkChangeDetectionPolicy" - }, - "Index": { - "description": "Represents an index definition in Azure Search, which describes the fields and search behavior of an index.", - "properties": { - "corsOptions": { - "$ref": "#/definitions/CorsOptions", - "description": "Gets or sets options to control Cross-Origin Resource Sharing (CORS) for the index." - }, - "defaultScoringProfile": { - "description": "Gets or sets the name of the scoring profile to use if none is specified in the query. If this property is not set and no scoring profile is specified in the query, then default scoring (tf-idf) will be used.", - "type": "string" - }, - "fields": { - "description": "Gets or sets the fields of the index.", - "items": { - "$ref": "#/definitions/Field" - }, - "type": "array" - }, - "name": { - "description": "Gets or sets the name of the index.", - "externalDocs": { - "url": "https://msdn.microsoft.com/library/azure/dn857353.aspx" - }, - "type": "string" - }, - "scoringProfiles": { - "description": "Gets or sets the scoring profiles for the index.", - "items": { - "$ref": "#/definitions/ScoringProfile" - }, - "type": "array" - }, - "suggesters": { - "description": "Gets or sets the suggesters for the index.", - "items": { - "$ref": "#/definitions/Suggester" - }, - "type": "array" - } - }, - "required": [ - "name", - "fields" - ] - }, - "IndexGetStatisticsResult": { - "description": "Statistics for a given index. Statistics are collected periodically and are not guaranteed to always be up-to-date.", - "properties": { - "documentCount": { - "description": "Gets the number of documents in the index.", - "format": "int64", - "readOnly": true, - "type": "integer" - }, - "storageSize": { - "description": "Gets the amount of storage in bytes consumed by the index.", - "format": "int64", - "readOnly": true, - "type": "integer" - } - }, - "x-ms-external": true - }, - "IndexListResult": { - "description": "Response from a List Indexes request. If successful, it includes the full definitions of all indexes.", - "properties": { - "value": { - "description": "Gets the indexes in the Search service.", - "items": { - "$ref": "#/definitions/Index" - }, - "readOnly": true, - "type": "array" - } - }, - "x-ms-external": true - }, - "Indexer": { - "description": "Represents an Azure Search indexer.", - "externalDocs": { - "url": "https://msdn.microsoft.com/library/azure/dn946891.aspx" - }, - "properties": { - "dataSourceName": { - "description": "Gets or sets the name of the datasource from which this indexer reads data.", - "type": "string" - }, - "description": { - "description": "Gets or sets the description of the indexer.", - "type": "string" - }, - "name": { - "description": "Gets or sets the name of the indexer.", - "externalDocs": { - "url": "https://msdn.microsoft.com/library/azure/dn857353.aspx" - }, - "type": "string" - }, - "parameters": { - "$ref": "#/definitions/IndexingParameters", - "description": "Gets or sets parameters for indexer execution." - }, - "schedule": { - "$ref": "#/definitions/IndexingSchedule", - "description": "Gets or sets the schedule for this indexer." - }, - "targetIndexName": { - "description": "Gets or sets the name of the index to which this indexer writes data.", - "type": "string" - } - }, - "required": [ - "name", - "dataSourceName", - "targetIndexName" - ] - }, - "IndexerExecutionInfo": { - "description": "Represents the current status and execution history of an indexer.", - "properties": { - "executionHistory": { - "description": "History of the recent indexer executions, sorted in reverse chronological order.", - "items": { - "$ref": "#/definitions/IndexerExecutionResult" - }, - "readOnly": true, - "type": "array" - }, - "lastResult": { - "$ref": "#/definitions/IndexerExecutionResult", - "description": "The result of the most recent or an in-progress indexer execution.", - "readOnly": true - }, - "status": { - "$ref": "#/definitions/IndexerStatus", - "description": "Overall indexer status.", - "readOnly": true - } - }, - "x-ms-external": true - }, - "IndexerExecutionResult": { - "description": "Represents result of an individual indexer execution.", - "properties": { - "endTime": { - "description": "Gets the end time of this indexer execution, if the execution has already completed.", - "format": "date-time", - "readOnly": true, - "type": "string" - }, - "errorMessage": { - "description": "Gets the error message indicating the top-level error, if any.", - "readOnly": true, - "type": "string" - }, - "errors": { - "description": "Gets the item-level indexing errors", - "items": { - "$ref": "#/definitions/ItemError" - }, - "readOnly": true, - "type": "array" - }, - "finalTrackingState": { - "description": "Change tracking state with which an indexer execution finished.", - "readOnly": true, - "type": "string" - }, - "initialTrackingState": { - "description": "Change tracking state with which an indexer execution started.", - "readOnly": true, - "type": "string" - }, - "itemsFailed": { - "description": "Gets the number of items that failed to be indexed during this indexer execution.", - "format": "int32", - "readOnly": true, - "type": "integer" - }, - "itemsProcessed": { - "description": "Gets the number of items that were processed during this indexer execution. This includes both successfully processed items and items where indexing was attempted but failed.", - "format": "int32", - "readOnly": true, - "type": "integer" - }, - "startTime": { - "description": "Gets the start time of this indexer execution.", - "format": "date-time", - "readOnly": true, - "type": "string" - }, - "status": { - "$ref": "#/definitions/IndexerExecutionStatus", - "description": "Gets the outcome of this indexer execution.", - "readOnly": true - } - }, - "x-ms-external": true - }, - "IndexerExecutionStatus": { - "description": "Represents the status of an individual indexer execution.", - "enum": [ - "transientFailure", - "success", - "inProgress", - "reset" - ], - "type": "string", - "x-ms-enum": { - "name": "IndexerExecutionStatus" - } - }, - "IndexerListResult": { - "description": "Response from a List Indexers request. If successful, it includes the full definitions of all indexers.", - "properties": { - "value": { - "description": "Gets the indexers in the Search service.", - "items": { - "$ref": "#/definitions/Indexer" - }, - "readOnly": true, - "type": "array" - } - }, - "x-ms-external": true - }, - "IndexerStatus": { - "description": "Represents the overall indexer status.", - "enum": [ - "unknown", - "error", - "running" - ], - "type": "string", - "x-ms-enum": { - "name": "IndexerStatus" - } - }, - "IndexingParameters": { - "description": "Represents parameters for indexer execution.", - "properties": { - "base64EncodeKeys": { - "description": "Gets or sets whether indexer will base64-encode all values that are inserted into key field of the target index. This is needed if keys can contain characters that are invalid in keys (such as dot '.'). Default is false.", - "type": "boolean" - }, - "maxFailedItems": { - "description": "Gets or sets the maximum number of items that can fail indexing for indexer execution to still be considered successful. -1 means no limit. Default is 0.", - "format": "int32", - "type": "integer" - }, - "maxFailedItemsPerBatch": { - "description": "Gets or sets the maximum number of items in a single batch that can fail indexing for the batch to still be considered successful. -1 means no limit. Default is 0.", - "format": "int32", - "type": "integer" - } - } - }, - "IndexingSchedule": { - "description": "Represents a schedule for indexer execution.", - "properties": { - "interval": { - "description": "Gets or sets the interval of time between indexer executions.", - "format": "duration", - "type": "string" - }, - "startTime": { - "description": "Gets or sets the time when an indexer should start running.", - "format": "date-time", - "type": "string" - } - }, - "required": [ - "interval" - ], - "x-ms-external": true - }, - "ItemError": { - "description": "Represents an item- or document-level indexing error.", - "properties": { - "errorMessage": { - "description": "Gets the message describing the error that occurred while attempting to index the item.", - "readOnly": true, - "type": "string" - }, - "key": { - "description": "Gets the key of the item for which indexing failed.", - "readOnly": true, - "type": "string" - } - } - }, - "MagnitudeScoringFunction": { - "allOf": [ - { - "$ref": "#/definitions/ScoringFunction" - } - ], - "description": "Defines a function that boosts scores based on the magnitude of a numeric field.", - "externalDocs": { - "url": "https://msdn.microsoft.com/library/azure/dn798928.aspx" - }, - "properties": { - "magnitude": { - "$ref": "#/definitions/MagnitudeScoringParameters", - "description": "Gets parameter values for the magnitude scoring function." - } - }, - "required": [ - "magnitude" - ], - "x-ms-discriminator-value": "magnitude", - "x-ms-external": true - }, - "MagnitudeScoringParameters": { - "description": "Provides parameter values to a magnitude scoring function.", - "properties": { - "boostingRangeEnd": { - "description": "Gets or sets the field value at which boosting ends.", - "format": "double", - "type": "number" - }, - "boostingRangeStart": { - "description": "Gets or sets the field value at which boosting starts.", - "format": "double", - "type": "number" - }, - "constantBoostBeyondRange": { - "description": "Gets or sets a value indicating whether to apply a constant boost for field values beyond the range end value; default is false.", - "type": "boolean" - } - }, - "required": [ - "boostingRangeStart", - "boostingRangeEnd" - ], - "x-ms-external": true - }, - "Resource": { - "properties": { - "id": { - "description": "Resource Id", - "readOnly": true, - "type": "string" - }, - "location": { - "description": "Resource location", - "type": "string" - }, - "name": { - "description": "Resource name", - "readOnly": true, - "type": "string" - }, - "tags": { - "additionalProperties": { - "type": "string" - }, - "description": "Resource tags", - "type": "object" - }, - "type": { - "description": "Resource type", - "readOnly": true, - "type": "string" - } - }, - "x-ms-azure-resource": true - }, - "ScoringFunction": { - "description": "Abstract base class for functions that can modify document scores during ranking.", - "discriminator": "type", - "externalDocs": { - "url": "https://msdn.microsoft.com/library/azure/dn798928.aspx" - }, - "properties": { - "boost": { - "description": "Gets or sets a multiplier for the raw score. Must be a positive number not equal to 1.0.", - "format": "double", - "type": "number" - }, - "fieldName": { - "description": "Gets or sets the name of the field used as input to the scoring function.", - "type": "string" - }, - "interpolation": { - "$ref": "#/definitions/ScoringFunctionInterpolation", - "description": "Gets or sets a value indicating how boosting will be interpolated across document scores; defaults to \"Linear\"." - }, - "type": { - "type": "string" - } - }, - "required": [ - "type", - "fieldName", - "boost" - ], - "x-ms-external": true - }, - "ScoringFunctionAggregation": { - "description": "Defines the aggregation function used to combine the results of all the scoring functions in a scoring profile.", - "enum": [ - "sum", - "average", - "minimum", - "maximum", - "firstMatching" - ], - "type": "string", - "x-ms-enum": { - "name": "ScoringFunctionAggregation" - } - }, - "ScoringFunctionInterpolation": { - "description": "Defines the function used to interpolate score boosting across a range of documents.", - "enum": [ - "linear", - "constant", - "quadratic", - "logarithmic" - ], - "type": "string", - "x-ms-enum": { - "name": "ScoringFunctionInterpolation" - } - }, - "ScoringProfile": { - "description": "Defines parameters for an Azure Search index that influence scoring in search queries.", - "externalDocs": { - "url": "https://msdn.microsoft.com/library/azure/dn798928.aspx" - }, - "properties": { - "functionAggregation": { - "$ref": "#/definitions/ScoringFunctionAggregation", - "description": "Gets or sets a value indicating how the results of individual scoring functions should be combined. Defaults to \"Sum\". Ignored if there are no scoring functions." - }, - "functions": { - "description": "Gets the collection of functions that influence the scoring of documents.", - "items": { - "$ref": "#/definitions/ScoringFunction" - }, - "type": "array" - }, - "name": { - "description": "Gets or sets the name of the scoring profile.", - "externalDocs": { - "url": "https://msdn.microsoft.com/library/azure/dn857353.aspx" - }, - "type": "string" - }, - "text": { - "$ref": "#/definitions/TextWeights", - "description": "Gets or sets parameters that boost scoring based on text matches in certain index fields." - } - }, - "required": [ - "name" - ], - "x-ms-external": true - }, - "SoftDeleteColumnDeletionDetectionPolicy": { - "allOf": [ - { - "$ref": "#/definitions/DataDeletionDetectionPolicy" - } - ], - "description": "Defines a data deletion detection policy that implements a soft-deletion strategy. It determines whether an item should be deleted based on the value of a designated 'soft delete' column.", - "properties": { - "softDeleteColumnName": { - "description": "Gets or sets the name of the column to use for soft-deletion detection.", - "type": "string" - }, - "softDeleteMarkerValue": { - "description": "Gets or sets the marker value that indentifies an item as deleted.", - "type": "string" - } - }, - "x-ms-discriminator-value": "#Microsoft.Azure.Search.SoftDeleteColumnDeletionDetectionPolicy" - }, - "SqlIntegratedChangeTrackingPolicy": { - "allOf": [ - { - "$ref": "#/definitions/DataChangeDetectionPolicy" - } - ], - "description": "Defines a data change detection policy that captures changes using the Integrated Change Tracking feature of Azure SQL Database.", - "x-ms-discriminator-value": "#Microsoft.Azure.Search.SqlIntegratedChangeTrackingPolicy" - }, - "StorageAccount": { - "allOf": [ - { - "$ref": "#/definitions/Resource" - } - ], - "description": "The storage account.", - "properties": { - "properties": { - "$ref": "#/definitions/StorageAccountProperties", - "x-ms-client-flatten": true - } - } - }, - "StorageAccountCheckNameAvailabilityParameters": { - "properties": { - "name": { - "type": "string" - }, - "type": { - "default": "Microsoft.Storage/storageAccounts", - "type": "string" - } - }, - "required": [ - "name" - ] - }, - "StorageAccountCreateParameters": { - "description": "The parameters to provide for the account.", - "properties": { - "location": { - "description": "Resource location", - "type": "string" - }, - "properties": { - "$ref": "#/definitions/StorageAccountPropertiesCreateParameters", - "x-ms-client-flatten": true - }, - "tags": { - "additionalProperties": { - "type": "string" - }, - "description": "Resource tags", - "type": "object" - } - }, - "required": [ - "location" - ], - "x-ms-azure-resource": true - }, - "StorageAccountKeys": { - "description": "The access keys for the storage account.", - "properties": { - "key1": { - "description": "Gets the value of key 1.", - "type": "string" - }, - "key2": { - "description": "Gets the value of key 2.", - "type": "string" - } - } - }, - "StorageAccountListResult": { - "description": "The list storage accounts operation response.", - "properties": { - "value": { - "description": "Gets the list of storage accounts and their properties.", - "items": { - "$ref": "#/definitions/StorageAccount" - }, - "type": "array" - } - } - }, - "StorageAccountProperties": { - "properties": { - "accountType": { - "description": "Gets the type of the storage account.", - "enum": [ - "Standard_LRS", - "Standard_ZRS", - "Standard_GRS", - "Standard_RAGRS", - "Premium_LRS" - ], - "type": "string", - "x-ms-enum": { - "modelAsString": false, - "name": "AccountType", - "oldModelAsString": false - } - }, - "creationTime": { - "description": "Gets the creation date and time of the storage account in UTC.", - "format": "date-time", - "type": "string" - }, - "customDomain": { - "$ref": "#/definitions/CustomDomain", - "description": "Gets the user assigned custom domain assigned to this storage account." - }, - "lastGeoFailoverTime": { - "description": "Gets the timestamp of the most recent instance of a failover to the secondary location. Only the most recent timestamp is retained. This element is not returned if there has never been a failover instance. Only available if the accountType is StandardGRS or StandardRAGRS.", - "format": "date-time", - "type": "string" - }, - "primaryEndpoints": { - "$ref": "#/definitions/Endpoints", - "description": "Gets the URLs that are used to perform a retrieval of a public blob, queue or table object.Note that StandardZRS and PremiumLRS accounts only return the blob endpoint." - }, - "primaryLocation": { - "description": "Gets the location of the primary for the storage account.", - "type": "string" - }, - "provisioningState": { - "description": "Gets the status of the storage account at the time the operation was called.", - "enum": [ - "Creating", - "ResolvingDNS", - "Succeeded" - ], - "type": "string", - "x-ms-enum": { - "modelAsString": false, - "name": "ProvisioningState", - "oldModelAsString": false - } - }, - "secondaryEndpoints": { - "$ref": "#/definitions/Endpoints", - "description": "Gets the URLs that are used to perform a retrieval of a public blob, queue or table object from the secondary location of the storage account. Only available if the accountType is StandardRAGRS." - }, - "secondaryLocation": { - "description": "Gets the location of the geo replicated secondary for the storage account. Only available if the accountType is StandardGRS or StandardRAGRS.", - "type": "string" - }, - "statusOfPrimary": { - "description": "Gets the status indicating whether the primary location of the storage account is available or unavailable.", - "enum": [ - "Available", - "Unavailable" - ], - "type": "string", - "x-ms-enum": { - "modelAsString": false, - "name": "AccountStatus", - "oldModelAsString": false - } - }, - "statusOfSecondary": { - "description": "Gets the status indicating whether the secondary location of the storage account is available or unavailable. Only available if the accountType is StandardGRS or StandardRAGRS.", - "enum": [ - "Available", - "Unavailable" - ], - "type": "string", - "x-ms-enum": { - "modelAsString": false, - "name": "AccountStatus", - "oldModelAsString": false - } - } - } - }, - "StorageAccountPropertiesCreateParameters": { - "properties": { - "accountType": { - "description": "Gets or sets the account type.", - "enum": [ - "Standard_LRS", - "Standard_ZRS", - "Standard_GRS", - "Standard_RAGRS", - "Premium_LRS" - ], - "type": "string", - "x-ms-enum": { - "modelAsString": false, - "name": "AccountType", - "oldModelAsString": false - } - } - }, - "required": [ - "accountType" - ] - }, - "StorageAccountPropertiesUpdateParameters": { - "properties": { - "accountType": { - "description": "Gets or sets the account type. Note that StandardZRS and PremiumLRS accounts cannot be changed to other account types, and other account types cannot be changed to StandardZRS or PremiumLRS.", - "enum": [ - "Standard_LRS", - "Standard_ZRS", - "Standard_GRS", - "Standard_RAGRS", - "Premium_LRS" - ], - "type": "string", - "x-ms-enum": { - "modelAsString": false, - "name": "AccountType", - "oldModelAsString": false - } - }, - "customDomain": { - "$ref": "#/definitions/CustomDomain", - "description": "User domain assigned to the storage account. Name is the CNAME source. Only one custom domain is supported per storage account at this time. To clear the existing custom domain, use an empty string for the custom domain name property." - } - } - }, - "StorageAccountRegenerateKeyParameters": { - "properties": { - "keyName": { - "type": "string" - } - }, - "required": [ - "keyName" - ] - }, - "StorageAccountUpdateParameters": { - "description": "The parameters to update on the account.", - "properties": { - "properties": { - "$ref": "#/definitions/StorageAccountPropertiesUpdateParameters", - "x-ms-client-flatten": true - }, - "tags": { - "additionalProperties": { - "type": "string" - }, - "description": "Resource tags", - "type": "object" - } - }, - "x-ms-azure-resource": true - }, - "Suggester": { - "description": "Defines how the Suggest API should apply to a group of fields in the index.", - "properties": { - "name": { - "description": "Gets or sets the name of the suggester.", - "type": "string" - }, - "searchMode": { - "$ref": "#/definitions/SuggesterSearchMode", - "description": "Gets or sets a value indicating the capabilities of the suggester." - }, - "sourceFields": { - "description": "Gets the list of field names to which the suggester applies. Each field must be searchable.", - "items": { - "type": "string" - }, - "type": "array" - } - }, - "required": [ - "name", - "searchMode", - "sourceFields" - ], - "x-ms-external": true - }, - "SuggesterSearchMode": { - "description": "Describes the type of suggester to use.", - "enum": [ - "analyzingInfixMatching" - ], - "type": "string", - "x-ms-enum": { - "name": "SuggesterSearchMode" - } - }, - "TagScoringFunction": { - "allOf": [ - { - "$ref": "#/definitions/ScoringFunction" - } - ], - "description": "Defines a function that boosts scores of documents with string values matching a given list of tags.", - "externalDocs": { - "url": "https://msdn.microsoft.com/library/azure/dn798928.aspx" - }, - "properties": { - "tag": { - "$ref": "#/definitions/TagScoringParameters", - "description": "Gets parameter values for the tag scoring function." - } - }, - "required": [ - "tag" - ], - "x-ms-discriminator-value": "tag", - "x-ms-external": true - }, - "TagScoringParameters": { - "description": "Provides parameter values to a tag scoring function.", - "properties": { - "tagsParameter": { - "description": "Gets or sets the name of the parameter passed in search queries to specify the list of tags to compare against the target field.", - "type": "string" - } - }, - "required": [ - "tagsParameter" - ] - }, - "TextWeights": { - "description": "Defines weights on index fields for which matches should boost scoring in search queries.", - "properties": { - "weights": { - "additionalProperties": { - "format": "double", - "type": "number" - }, - "description": "Gets the dictionary of per-field weights to boost document scoring. The keys are field names and the values are the weights for each field.", - "type": "object" - } - }, - "required": [ - "weights" - ], - "x-ms-external": true - }, - "Usage": { - "description": "Describes Storage Resource Usage.", - "properties": { - "currentValue": { - "description": "Gets the current count of the allocated resources in the subscription.", - "format": "int32", - "type": "integer" - }, - "limit": { - "description": "Gets the maximum count of the resources that can be allocated in the subscription.", - "format": "int32", - "type": "integer" - }, - "name": { - "$ref": "#/definitions/UsageName", - "description": "Gets the name of the type of usage." - }, - "unit": { - "description": "Gets the unit of measurement.", - "enum": [ - "Count", - "Bytes", - "Seconds", - "Percent", - "CountsPerSecond", - "BytesPerSecond" - ], - "type": "string", - "x-ms-enum": { - "modelAsString": false, - "name": "UsageUnit", - "oldModelAsString": false - } - } - }, - "required": [ - "unit", - "currentValue", - "limit", - "name" - ] - }, - "UsageListResult": { - "description": "The List Usages operation response.", - "properties": { - "value": { - "description": "Gets or sets the list Storage Resource Usages.", - "items": { - "$ref": "#/definitions/Usage" - }, - "type": "array" - } - } - }, - "UsageName": { - "description": "The Usage Names.", - "properties": { - "localizedValue": { - "description": "Gets a localized string describing the resource name.", - "type": "string" - }, - "value": { - "description": "Gets a string describing the resource name.", - "type": "string" - } - } - } - }, - "host": "management.azure.com", - "info": { - "title": "Search and Storage" - }, - "parameters": { - "SubscriptionIdParameter": { - "description": "Gets subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.", - "in": "path", - "name": "subscriptionId", - "required": true, - "type": "string" - } - }, - "paths": { - "/datasources": { - "get": { - "consumes": [ - "application/json" - ], - "description": "Lists all datasources available for an Azure Search service.", - "externalDocs": { - "url": "https://msdn.microsoft.com/library/azure/dn946878.aspx" - }, - "operationId": "DataSources_List", - "parameters": [ - { - "description": "Tracking ID sent with the request to help with debugging.", - "format": "uuid", - "in": "header", - "name": "client-request-id", - "required": false, - "type": "string", - "x-ms-client-request-id": true, - "x-ms-parameter-grouping": { - "name": "search-request-options" - } - }, - { - "description": "Client Api Version.", - "enum": [ - "2015-02-28" - ], - "in": "query", - "name": "api-version", - "required": true, - "type": "string" - } - ], - "produces": [ - "application/json" - ], - "responses": { - "200": { - "description": "", - "schema": { - "$ref": "#/definitions/DataSourceListResult" - } - } - }, - "tags": [ - "DataSources" - ], - "x-ms-request-id": "request-id" - }, - "post": { - "consumes": [ - "application/json" - ], - "description": "Creates a new Azure Search datasource.", - "externalDocs": { - "url": "https://msdn.microsoft.com/library/azure/dn946876.aspx" - }, - "operationId": "DataSources_Create", - "parameters": [ - { - "description": "The definition of the datasource to create.", - "in": "body", - "name": "dataSource", - "required": true, - "schema": { - "$ref": "#/definitions/DataSource" - } - }, - { - "description": "Tracking ID sent with the request to help with debugging.", - "format": "uuid", - "in": "header", - "name": "client-request-id", - "required": false, - "type": "string", - "x-ms-client-request-id": true, - "x-ms-parameter-grouping": { - "name": "search-request-options" - } - }, - { - "description": "Client Api Version.", - "enum": [ - "2015-02-28" - ], - "in": "query", - "name": "api-version", - "required": true, - "type": "string" - } - ], - "produces": [ - "application/json" - ], - "responses": { - "201": { - "description": "", - "schema": { - "$ref": "#/definitions/DataSource" - } - } - }, - "tags": [ - "DataSources" - ], - "x-ms-request-id": "request-id" - } - }, - "/datasources('{dataSourceName}')": { - "delete": { - "consumes": [ - "application/json" - ], - "description": "Deletes an Azure Search datasource.", - "externalDocs": { - "url": "https://msdn.microsoft.com/library/azure/dn946881.aspx" - }, - "operationId": "DataSources_Delete", - "parameters": [ - { - "description": "The name of the datasource to delete.", - "in": "path", - "name": "dataSourceName", - "required": true, - "type": "string" - }, - { - "description": "Tracking ID sent with the request to help with debugging.", - "format": "uuid", - "in": "header", - "name": "client-request-id", - "required": false, - "type": "string", - "x-ms-client-request-id": true, - "x-ms-parameter-grouping": { - "name": "search-request-options" - } - }, - { - "description": "Client Api Version.", - "enum": [ - "2015-02-28" - ], - "in": "query", - "name": "api-version", - "required": true, - "type": "string" - } - ], - "produces": [ - "application/json" - ], - "responses": { - "204": { - "description": "" - }, - "404": { - "description": "" - } - }, - "tags": [ - "DataSources" - ], - "x-ms-request-id": "request-id" - }, - "get": { - "consumes": [ - "application/json" - ], - "description": "Retrieves a datasource definition from Azure Search.", - "externalDocs": { - "url": "https://msdn.microsoft.com/library/azure/dn946893.aspx" - }, - "operationId": "DataSources_Get", - "parameters": [ - { - "description": "The name of the datasource to retrieve.", - "in": "path", - "name": "dataSourceName", - "required": true, - "type": "string" - }, - { - "description": "Tracking ID sent with the request to help with debugging.", - "format": "uuid", - "in": "header", - "name": "client-request-id", - "required": false, - "type": "string", - "x-ms-client-request-id": true, - "x-ms-parameter-grouping": { - "name": "search-request-options" - } - }, - { - "description": "Client Api Version.", - "enum": [ - "2015-02-28" - ], - "in": "query", - "name": "api-version", - "required": true, - "type": "string" - } - ], - "produces": [ - "application/json" - ], - "responses": { - "200": { - "description": "", - "schema": { - "$ref": "#/definitions/DataSource" - } - } - }, - "tags": [ - "DataSources" - ], - "x-ms-request-id": "request-id" - }, - "put": { - "consumes": [ - "application/json" - ], - "description": "Creates a new Azure Search datasource or updates a datasource if it already exists.", - "externalDocs": { - "url": "https://msdn.microsoft.com/library/azure/dn946900.aspx" - }, - "operationId": "DataSources_CreateOrUpdate", - "parameters": [ - { - "description": "The name of the datasource to create or update.", - "in": "path", - "name": "dataSourceName", - "required": true, - "type": "string" - }, - { - "description": "The definition of the datasource to create or update.", - "in": "body", - "name": "dataSource", - "required": true, - "schema": { - "$ref": "#/definitions/DataSource" - } - }, - { - "description": "Tracking ID sent with the request to help with debugging.", - "format": "uuid", - "in": "header", - "name": "client-request-id", - "required": false, - "type": "string", - "x-ms-client-request-id": true, - "x-ms-parameter-grouping": { - "name": "search-request-options" - } - }, - { - "description": "Client Api Version.", - "enum": [ - "2015-02-28" - ], - "in": "query", - "name": "api-version", - "required": true, - "type": "string" - } - ], - "produces": [ - "application/json" - ], - "responses": { - "200": { - "description": "", - "schema": { - "$ref": "#/definitions/DataSource" - } - }, - "201": { - "description": "", - "schema": { - "$ref": "#/definitions/DataSource" - } - } - }, - "tags": [ - "DataSources" - ], - "x-ms-request-id": "request-id" - } - }, - "/indexers": { - "get": { - "consumes": [ - "application/json" - ], - "description": "Lists all indexers available for an Azure Search service.", - "externalDocs": { - "url": "https://msdn.microsoft.com/library/azure/dn946883.aspx" - }, - "operationId": "Indexers_List", - "parameters": [ - { - "description": "Tracking ID sent with the request to help with debugging.", - "format": "uuid", - "in": "header", - "name": "client-request-id", - "required": false, - "type": "string", - "x-ms-client-request-id": true, - "x-ms-parameter-grouping": { - "name": "search-request-options" - } - }, - { - "description": "Client Api Version.", - "enum": [ - "2015-02-28" - ], - "in": "query", - "name": "api-version", - "required": true, - "type": "string" - } - ], - "produces": [ - "application/json" - ], - "responses": { - "200": { - "description": "", - "schema": { - "$ref": "#/definitions/IndexerListResult" - } - } - }, - "tags": [ - "Indexers" - ], - "x-ms-request-id": "request-id" - }, - "post": { - "consumes": [ - "application/json" - ], - "description": "Creates a new Azure Search indexer.", - "externalDocs": { - "url": "https://msdn.microsoft.com/library/azure/dn946899.aspx" - }, - "operationId": "Indexers_Create", - "parameters": [ - { - "description": "The definition of the indexer to create.", - "in": "body", - "name": "indexer", - "required": true, - "schema": { - "$ref": "#/definitions/Indexer" - } - }, - { - "description": "Tracking ID sent with the request to help with debugging.", - "format": "uuid", - "in": "header", - "name": "client-request-id", - "required": false, - "type": "string", - "x-ms-client-request-id": true, - "x-ms-parameter-grouping": { - "name": "search-request-options" - } - }, - { - "description": "Client Api Version.", - "enum": [ - "2015-02-28" - ], - "in": "query", - "name": "api-version", - "required": true, - "type": "string" - } - ], - "produces": [ - "application/json" - ], - "responses": { - "201": { - "description": "", - "schema": { - "$ref": "#/definitions/Indexer" - } - } - }, - "tags": [ - "Indexers" - ], - "x-ms-request-id": "request-id" - } - }, - "/indexers('{indexerName}')": { - "delete": { - "consumes": [ - "application/json" - ], - "description": "Deletes an Azure Search indexer.", - "externalDocs": { - "url": "https://msdn.microsoft.com/library/azure/dn946898.aspx" - }, - "operationId": "Indexers_Delete", - "parameters": [ - { - "description": "The name of the indexer to delete.", - "in": "path", - "name": "indexerName", - "required": true, - "type": "string" - }, - { - "description": "Tracking ID sent with the request to help with debugging.", - "format": "uuid", - "in": "header", - "name": "client-request-id", - "required": false, - "type": "string", - "x-ms-client-request-id": true, - "x-ms-parameter-grouping": { - "name": "search-request-options" - } - }, - { - "description": "Client Api Version.", - "enum": [ - "2015-02-28" - ], - "in": "query", - "name": "api-version", - "required": true, - "type": "string" - } - ], - "produces": [ - "application/json" - ], - "responses": { - "204": { - "description": "" - }, - "404": { - "description": "" - } - }, - "tags": [ - "Indexers" - ], - "x-ms-request-id": "request-id" - }, - "get": { - "consumes": [ - "application/json" - ], - "description": "Retrieves an indexer definition from Azure Search.", - "externalDocs": { - "url": "https://msdn.microsoft.com/library/azure/dn946874.aspx" - }, - "operationId": "Indexers_Get", - "parameters": [ - { - "description": "The name of the indexer to retrieve.", - "in": "path", - "name": "indexerName", - "required": true, - "type": "string" - }, - { - "description": "Tracking ID sent with the request to help with debugging.", - "format": "uuid", - "in": "header", - "name": "client-request-id", - "required": false, - "type": "string", - "x-ms-client-request-id": true, - "x-ms-parameter-grouping": { - "name": "search-request-options" - } - }, - { - "description": "Client Api Version.", - "enum": [ - "2015-02-28" - ], - "in": "query", - "name": "api-version", - "required": true, - "type": "string" - } - ], - "produces": [ - "application/json" - ], - "responses": { - "200": { - "description": "", - "schema": { - "$ref": "#/definitions/Indexer" - } - } - }, - "tags": [ - "Indexers" - ], - "x-ms-request-id": "request-id" - }, - "put": { - "consumes": [ - "application/json" - ], - "description": "Creates a new Azure Search indexer or updates an indexer if it already exists.", - "externalDocs": { - "url": "https://msdn.microsoft.com/library/azure/dn946899.aspx" - }, - "operationId": "Indexers_CreateOrUpdate", - "parameters": [ - { - "description": "The name of the indexer to create or update.", - "in": "path", - "name": "indexerName", - "required": true, - "type": "string" - }, - { - "description": "The definition of the indexer to create or update.", - "in": "body", - "name": "indexer", - "required": true, - "schema": { - "$ref": "#/definitions/Indexer" - } - }, - { - "description": "Tracking ID sent with the request to help with debugging.", - "format": "uuid", - "in": "header", - "name": "client-request-id", - "required": false, - "type": "string", - "x-ms-client-request-id": true, - "x-ms-parameter-grouping": { - "name": "search-request-options" - } - }, - { - "description": "Client Api Version.", - "enum": [ - "2015-02-28" - ], - "in": "query", - "name": "api-version", - "required": true, - "type": "string" - } - ], - "produces": [ - "application/json" - ], - "responses": { - "200": { - "description": "", - "schema": { - "$ref": "#/definitions/Indexer" - } - }, - "201": { - "description": "", - "schema": { - "$ref": "#/definitions/Indexer" - } - } - }, - "tags": [ - "Indexers" - ], - "x-ms-request-id": "request-id" - } - }, - "/indexers('{indexerName}')/search.reset": { - "post": { - "consumes": [ - "application/json" - ], - "description": "Resets the change tracking state associated with an Azure Search indexer.", - "externalDocs": { - "url": "https://msdn.microsoft.com/library/azure/dn946897.aspx" - }, - "operationId": "Indexers_Reset", - "parameters": [ - { - "description": "The name of the indexer to reset.", - "in": "path", - "name": "indexerName", - "required": true, - "type": "string" - }, - { - "description": "Tracking ID sent with the request to help with debugging.", - "format": "uuid", - "in": "header", - "name": "client-request-id", - "required": false, - "type": "string", - "x-ms-client-request-id": true, - "x-ms-parameter-grouping": { - "name": "search-request-options" - } - }, - { - "description": "Client Api Version.", - "enum": [ - "2015-02-28" - ], - "in": "query", - "name": "api-version", - "required": true, - "type": "string" - } - ], - "produces": [ - "application/json" - ], - "responses": { - "204": { - "description": "" - } - }, - "tags": [ - "Indexers" - ], - "x-ms-request-id": "request-id" - } - }, - "/indexers('{indexerName}')/search.run": { - "post": { - "consumes": [ - "application/json" - ], - "description": "Runs an Azure Search indexer on-demand.", - "externalDocs": { - "url": "https://msdn.microsoft.com/library/azure/dn946885.aspx" - }, - "operationId": "Indexers_Run", - "parameters": [ - { - "description": "The name of the indexer to run.", - "in": "path", - "name": "indexerName", - "required": true, - "type": "string" - }, - { - "description": "Tracking ID sent with the request to help with debugging.", - "format": "uuid", - "in": "header", - "name": "client-request-id", - "required": false, - "type": "string", - "x-ms-client-request-id": true, - "x-ms-parameter-grouping": { - "name": "search-request-options" - } - }, - { - "description": "Client Api Version.", - "enum": [ - "2015-02-28" - ], - "in": "query", - "name": "api-version", - "required": true, - "type": "string" - } - ], - "produces": [ - "application/json" - ], - "responses": { - "202": { - "description": "" - } - }, - "tags": [ - "Indexers" - ], - "x-ms-request-id": "request-id" - } - }, - "/indexers('{indexerName}')/search.status": { - "get": { - "consumes": [ - "application/json" - ], - "description": "Returns the current status and execution history of an indexer.", - "externalDocs": { - "url": "https://msdn.microsoft.com/library/azure/dn946884.aspx" - }, - "operationId": "Indexers_GetStatus", - "parameters": [ - { - "description": "The name of the indexer for which to retrieve status.", - "in": "path", - "name": "indexerName", - "required": true, - "type": "string" - }, - { - "description": "Tracking ID sent with the request to help with debugging.", - "format": "uuid", - "in": "header", - "name": "client-request-id", - "required": false, - "type": "string", - "x-ms-client-request-id": true, - "x-ms-parameter-grouping": { - "name": "search-request-options" - } - }, - { - "description": "Client Api Version.", - "enum": [ - "2015-02-28" - ], - "in": "query", - "name": "api-version", - "required": true, - "type": "string" - } - ], - "produces": [ - "application/json" - ], - "responses": { - "200": { - "description": "", - "schema": { - "$ref": "#/definitions/IndexerExecutionInfo" - } - } - }, - "tags": [ - "Indexers" - ], - "x-ms-request-id": "request-id" - } - }, - "/indexes": { - "get": { - "consumes": [ - "application/json" - ], - "description": "Lists all indexes available for an Azure Search service.", - "externalDocs": { - "url": "https://msdn.microsoft.com/library/azure/dn798923.aspx" - }, - "operationId": "Indexes_List", - "parameters": [ - { - "description": "Selects which properties of the index definitions to retrieve. Specified as a comma-separated list of JSON property names, or '*' for all properties. The default is all properties.", - "in": "query", - "name": "$select", - "required": false, - "type": "string" - }, - { - "description": "Tracking ID sent with the request to help with debugging.", - "format": "uuid", - "in": "header", - "name": "client-request-id", - "required": false, - "type": "string", - "x-ms-client-request-id": true, - "x-ms-parameter-grouping": { - "name": "search-request-options" - } - }, - { - "description": "Client Api Version.", - "enum": [ - "2015-02-28" - ], - "in": "query", - "name": "api-version", - "required": true, - "type": "string" - } - ], - "produces": [ - "application/json" - ], - "responses": { - "200": { - "description": "", - "schema": { - "$ref": "#/definitions/IndexListResult" - } - } - }, - "tags": [ - "Indexes" - ], - "x-ms-request-id": "request-id" - }, - "post": { - "consumes": [ - "application/json" - ], - "description": "Creates a new Azure Search index.", - "externalDocs": { - "url": "https://msdn.microsoft.com/library/azure/dn798941.aspx" - }, - "operationId": "Indexes_Create", - "parameters": [ - { - "description": "The definition of the index to create.", - "in": "body", - "name": "index", - "required": true, - "schema": { - "$ref": "#/definitions/Index" - } - }, - { - "description": "Tracking ID sent with the request to help with debugging.", - "format": "uuid", - "in": "header", - "name": "client-request-id", - "required": false, - "type": "string", - "x-ms-client-request-id": true, - "x-ms-parameter-grouping": { - "name": "search-request-options" - } - }, - { - "description": "Client Api Version.", - "enum": [ - "2015-02-28" - ], - "in": "query", - "name": "api-version", - "required": true, - "type": "string" - } - ], - "produces": [ - "application/json" - ], - "responses": { - "201": { - "description": "", - "schema": { - "$ref": "#/definitions/Index" - } - } - }, - "tags": [ - "Indexes" - ], - "x-ms-request-id": "request-id" - } - }, - "/indexes('{indexName}')": { - "delete": { - "consumes": [ - "application/json" - ], - "description": "Deletes an Azure Search index and all the documents it contains.", - "externalDocs": { - "url": "https://msdn.microsoft.com/library/azure/dn798926.aspx" - }, - "operationId": "Indexes_Delete", - "parameters": [ - { - "description": "The name of the index to delete.", - "in": "path", - "name": "indexName", - "required": true, - "type": "string" - }, - { - "description": "Tracking ID sent with the request to help with debugging.", - "format": "uuid", - "in": "header", - "name": "client-request-id", - "required": false, - "type": "string", - "x-ms-client-request-id": true, - "x-ms-parameter-grouping": { - "name": "search-request-options" - } - }, - { - "description": "Client Api Version.", - "enum": [ - "2015-02-28" - ], - "in": "query", - "name": "api-version", - "required": true, - "type": "string" - } - ], - "produces": [ - "application/json" - ], - "responses": { - "204": { - "description": "" - }, - "404": { - "description": "" - } - }, - "tags": [ - "Indexes" - ], - "x-ms-request-id": "request-id" - }, - "get": { - "consumes": [ - "application/json" - ], - "description": "Retrieves an index definition from Azure Search.", - "externalDocs": { - "url": "https://msdn.microsoft.com/library/azure/dn798939.aspx" - }, - "operationId": "Indexes_Get", - "parameters": [ - { - "description": "The name of the index to retrieve.", - "in": "path", - "name": "indexName", - "required": true, - "type": "string" - }, - { - "description": "Tracking ID sent with the request to help with debugging.", - "format": "uuid", - "in": "header", - "name": "client-request-id", - "required": false, - "type": "string", - "x-ms-client-request-id": true, - "x-ms-parameter-grouping": { - "name": "search-request-options" - } - }, - { - "description": "Client Api Version.", - "enum": [ - "2015-02-28" - ], - "in": "query", - "name": "api-version", - "required": true, - "type": "string" - } - ], - "produces": [ - "application/json" - ], - "responses": { - "200": { - "description": "", - "schema": { - "$ref": "#/definitions/Index" - } - } - }, - "tags": [ - "Indexes" - ], - "x-ms-request-id": "request-id" - }, - "put": { - "consumes": [ - "application/json" - ], - "description": "Creates a new Azure Search index or updates an index if it already exists.", - "externalDocs": { - "url": "https://msdn.microsoft.com/library/azure/dn800964.aspx" - }, - "operationId": "Indexes_CreateOrUpdate", - "parameters": [ - { - "description": "The definition of the index to create or update.", - "in": "path", - "name": "indexName", - "required": true, - "type": "string" - }, - { - "description": "The definition of the index to create or update.", - "in": "body", - "name": "index", - "required": true, - "schema": { - "$ref": "#/definitions/Index" - } - }, - { - "description": "Tracking ID sent with the request to help with debugging.", - "format": "uuid", - "in": "header", - "name": "client-request-id", - "required": false, - "type": "string", - "x-ms-client-request-id": true, - "x-ms-parameter-grouping": { - "name": "search-request-options" - } - }, - { - "description": "Client Api Version.", - "enum": [ - "2015-02-28" - ], - "in": "query", - "name": "api-version", - "required": true, - "type": "string" - } - ], - "produces": [ - "application/json" - ], - "responses": { - "200": { - "description": "", - "schema": { - "$ref": "#/definitions/Index" - } - }, - "201": { - "description": "", - "schema": { - "$ref": "#/definitions/Index" - } - } - }, - "tags": [ - "Indexes" - ], - "x-ms-request-id": "request-id" - } - }, - "/indexes('{indexName}')/search.stats": { - "get": { - "consumes": [ - "application/json" - ], - "description": "Returns statistics for the given index, including a document count and storage usage.", - "externalDocs": { - "url": "https://msdn.microsoft.com/library/azure/dn798942.aspx" - }, - "operationId": "Indexes_GetStatistics", - "parameters": [ - { - "description": "The name of the index for which to retrieve statistics.", - "in": "path", - "name": "indexName", - "required": true, - "type": "string" - }, - { - "description": "Tracking ID sent with the request to help with debugging.", - "format": "uuid", - "in": "header", - "name": "client-request-id", - "required": false, - "type": "string", - "x-ms-client-request-id": true, - "x-ms-parameter-grouping": { - "name": "search-request-options" - } - }, - { - "description": "Client Api Version.", - "enum": [ - "2015-02-28" - ], - "in": "query", - "name": "api-version", - "required": true, - "type": "string" - } - ], - "produces": [ - "application/json" - ], - "responses": { - "200": { - "description": "", - "schema": { - "$ref": "#/definitions/IndexGetStatisticsResult" - } - } - }, - "tags": [ - "Indexes" - ], - "x-ms-request-id": "request-id" - } - }, - "/subscriptions/{subscriptionId}/providers/Microsoft.Storage/checkNameAvailability": { - "post": { - "consumes": [ - "application/json", - "text/json" - ], - "description": "Checks that account name is valid and is not in use.", - "operationId": "StorageAccounts_CheckNameAvailability", - "parameters": [ - { - "description": "The name of the storage account within the specified resource group. Storage account names must be between 3 and 24 characters in length and use numbers and lower-case letters only.", - "in": "body", - "name": "accountName", - "required": true, - "schema": { - "$ref": "#/definitions/StorageAccountCheckNameAvailabilityParameters" - } - }, - { - "description": "Client Api Version.", - "enum": [ - "2015-06-15" - ], - "in": "query", - "name": "api-version", - "required": true, - "type": "string" - }, - { - "$ref": "#/parameters/SubscriptionIdParameter" - } - ], - "produces": [ - "application/json", - "text/json" - ], - "responses": { - "200": { - "description": "", - "schema": { - "$ref": "#/definitions/CheckNameAvailabilityResult" - } - } - }, - "tags": [ - "StorageAccounts" - ] - } - }, - "/subscriptions/{subscriptionId}/providers/Microsoft.Storage/storageAccounts": { - "get": { - "consumes": [ - "application/json", - "text/json" - ], - "description": "Lists all the storage accounts available under the subscription. Note that storage keys are not returned; use the ListKeys operation for this.", - "operationId": "StorageAccounts_List", - "parameters": [ - { - "description": "Client Api Version.", - "enum": [ - "2015-06-15" - ], - "in": "query", - "name": "api-version", - "required": true, - "type": "string" - }, - { - "$ref": "#/parameters/SubscriptionIdParameter" - } - ], - "produces": [ - "application/json", - "text/json" - ], - "responses": { - "200": { - "description": "", - "schema": { - "$ref": "#/definitions/StorageAccountListResult" - } - } - }, - "tags": [ - "StorageAccounts" - ], - "x-ms-pageable": { - "nextLinkName": null - } - } - }, - "/subscriptions/{subscriptionId}/providers/Microsoft.Storage/usages": { - "get": { - "consumes": [ - "application/json", - "text/json" - ], - "description": "Gets the current usage count and the limit for the resources under the subscription.", - "operationId": "Usage_List", - "parameters": [ - { - "description": "Client Api Version.", - "enum": [ - "2015-06-15" - ], - "in": "query", - "name": "api-version", - "required": true, - "type": "string" - }, - { - "$ref": "#/parameters/SubscriptionIdParameter" - } - ], - "produces": [ - "application/json", - "text/json" - ], - "responses": { - "200": { - "description": "", - "schema": { - "$ref": "#/definitions/UsageListResult" - } - } - }, - "tags": [ - "Usage" - ], - "x-ms-pageable": { - "nextLinkName": null - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts": { - "get": { - "consumes": [ - "application/json", - "text/json" - ], - "description": "Lists all the storage accounts available under the given resource group. Note that storage keys are not returned; use the ListKeys operation for this.", - "operationId": "StorageAccounts_ListByResourceGroup", - "parameters": [ - { - "description": "The name of the resource group within the user's subscription.", - "in": "path", - "name": "resourceGroupName", - "required": true, - "type": "string" - }, - { - "description": "Client Api Version.", - "enum": [ - "2015-06-15" - ], - "in": "query", - "name": "api-version", - "required": true, - "type": "string" - }, - { - "$ref": "#/parameters/SubscriptionIdParameter" - } - ], - "produces": [ - "application/json", - "text/json" - ], - "responses": { - "200": { - "description": "", - "schema": { - "$ref": "#/definitions/StorageAccountListResult" - } - } - }, - "tags": [ - "StorageAccounts" - ], - "x-ms-pageable": { - "nextLinkName": null - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}": { - "delete": { - "consumes": [ - "application/json", - "text/json" - ], - "description": "Deletes a storage account in Microsoft Azure.", - "operationId": "StorageAccounts_Delete", - "parameters": [ - { - "description": "The name of the resource group within the user's subscription.", - "in": "path", - "name": "resourceGroupName", - "required": true, - "type": "string" - }, - { - "description": "The name of the storage account within the specified resource group. Storage account names must be between 3 and 24 characters in length and use numbers and lower-case letters only. ", - "in": "path", - "maxLength": 24, - "minLength": 3, - "name": "accountName", - "required": true, - "type": "string" - }, - { - "description": "Client Api Version.", - "enum": [ - "2015-06-15" - ], - "in": "query", - "name": "api-version", - "required": true, - "type": "string" - }, - { - "$ref": "#/parameters/SubscriptionIdParameter" - } - ], - "produces": [ - "application/json", - "text/json" - ], - "responses": { - "200": { - "description": "" - }, - "204": { - "description": "" - } - }, - "tags": [ - "StorageAccounts" - ] - }, - "get": { - "consumes": [ - "application/json", - "text/json" - ], - "description": "Returns the properties for the specified storage account including but not limited to name, account type, location, and account status. The ListKeys operation should be used to retrieve storage keys.", - "operationId": "StorageAccounts_GetProperties", - "parameters": [ - { - "description": "The name of the resource group within the user's subscription.", - "in": "path", - "name": "resourceGroupName", - "required": true, - "type": "string" - }, - { - "description": "The name of the storage account within the specified resource group. Storage account names must be between 3 and 24 characters in length and use numbers and lower-case letters only. ", - "in": "path", - "maxLength": 24, - "minLength": 3, - "name": "accountName", - "required": true, - "type": "string" - }, - { - "description": "Client Api Version.", - "enum": [ - "2015-06-15" - ], - "in": "query", - "name": "api-version", - "required": true, - "type": "string" - }, - { - "$ref": "#/parameters/SubscriptionIdParameter" - } - ], - "produces": [ - "application/json", - "text/json" - ], - "responses": { - "200": { - "description": "", - "schema": { - "$ref": "#/definitions/StorageAccount" - } - } - }, - "tags": [ - "StorageAccounts" - ] - }, - "patch": { - "consumes": [ - "application/json", - "text/json" - ], - "description": "Updates the account type or tags for a storage account. It can also be used to add a custom domain (note that custom domains cannot be added via the Create operation). Only one custom domain is supported per storage account. In order to replace a custom domain, the old value must be cleared before a new value may be set. To clear a custom domain, simply update the custom domain with empty string. Then call update again with the new cutsom domain name. The update API can only be used to update one of tags, accountType, or customDomain per call. To update multiple of these properties, call the API multiple times with one change per call. This call does not change the storage keys for the account. If you want to change storage account keys, use the RegenerateKey operation. The location and name of the storage account cannot be changed after creation.", - "operationId": "StorageAccounts_Update", - "parameters": [ - { - "description": "The name of the resource group within the user's subscription.", - "in": "path", - "name": "resourceGroupName", - "required": true, - "type": "string" - }, - { - "description": "The name of the storage account within the specified resource group. Storage account names must be between 3 and 24 characters in length and use numbers and lower-case letters only. ", - "in": "path", - "maxLength": 24, - "minLength": 3, - "name": "accountName", - "required": true, - "type": "string" - }, - { - "description": "The parameters to update on the account. Note that only one property can be changed at a time using this API. ", - "in": "body", - "name": "parameters", - "required": true, - "schema": { - "$ref": "#/definitions/StorageAccountUpdateParameters" - } - }, - { - "description": "Client Api Version.", - "enum": [ - "2015-06-15" - ], - "in": "query", - "name": "api-version", - "required": true, - "type": "string" - }, - { - "$ref": "#/parameters/SubscriptionIdParameter" - } - ], - "produces": [ - "application/json", - "text/json" - ], - "responses": { - "200": { - "description": "", - "schema": { - "$ref": "#/definitions/StorageAccount" - } - } - }, - "tags": [ - "StorageAccounts" - ] - }, - "put": { - "consumes": [ - "application/json", - "text/json" - ], - "description": "Asynchronously creates a new storage account with the specified parameters. Existing accounts cannot be updated with this API and should instead use the Update Storage Account API. If an account is already created and subsequent PUT request is issued with exact same set of properties, then HTTP 200 would be returned. ", - "operationId": "StorageAccounts_Create", - "parameters": [ - { - "description": "The name of the resource group within the user's subscription.", - "in": "path", - "name": "resourceGroupName", - "required": true, - "type": "string" - }, - { - "description": "The name of the storage account within the specified resource group. Storage account names must be between 3 and 24 characters in length and use numbers and lower-case letters only. ", - "in": "path", - "maxLength": 24, - "minLength": 3, - "name": "accountName", - "required": true, - "type": "string" - }, - { - "description": "The parameters to provide for the created account.", - "in": "body", - "name": "parameters", - "required": true, - "schema": { - "$ref": "#/definitions/StorageAccountCreateParameters" - } - }, - { - "description": "Client Api Version.", - "enum": [ - "2015-06-15" - ], - "in": "query", - "name": "api-version", - "required": true, - "type": "string" - }, - { - "$ref": "#/parameters/SubscriptionIdParameter" - } - ], - "produces": [ - "application/json", - "text/json" - ], - "responses": { - "200": { - "description": "", - "schema": { - "$ref": "#/definitions/StorageAccount" - } - }, - "202": { - "description": "" - } - }, - "tags": [ - "StorageAccounts" - ], - "x-ms-long-running-operation": true - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/listKeys": { - "post": { - "consumes": [ - "application/json", - "text/json" - ], - "description": "Lists the access keys for the specified storage account.", - "operationId": "StorageAccounts_ListKeys", - "parameters": [ - { - "description": "The name of the resource group.", - "in": "path", - "name": "resourceGroupName", - "required": true, - "type": "string" - }, - { - "description": "The name of the storage account.", - "in": "path", - "maxLength": 24, - "minLength": 3, - "name": "accountName", - "required": true, - "type": "string" - }, - { - "description": "Client Api Version.", - "enum": [ - "2015-06-15" - ], - "in": "query", - "name": "api-version", - "required": true, - "type": "string" - }, - { - "$ref": "#/parameters/SubscriptionIdParameter" - } - ], - "produces": [ - "application/json", - "text/json" - ], - "responses": { - "200": { - "description": "", - "schema": { - "$ref": "#/definitions/StorageAccountKeys" - } - } - }, - "tags": [ - "StorageAccounts" - ] - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/regenerateKey": { - "post": { - "consumes": [ - "application/json", - "text/json" - ], - "description": "Regenerates the access keys for the specified storage account.", - "operationId": "StorageAccounts_RegenerateKey", - "parameters": [ - { - "description": "The name of the resource group within the user's subscription.", - "in": "path", - "name": "resourceGroupName", - "required": true, - "type": "string" - }, - { - "description": "The name of the storage account within the specified resource group. Storage account names must be between 3 and 24 characters in length and use numbers and lower-case letters only. ", - "in": "path", - "maxLength": 24, - "minLength": 3, - "name": "accountName", - "required": true, - "type": "string" - }, - { - "description": "Specifies name of the key which should be regenerated. key1 or key2 for the default keys", - "in": "body", - "name": "regenerateKey", - "required": true, - "schema": { - "$ref": "#/definitions/StorageAccountRegenerateKeyParameters" - } - }, - { - "description": "Client Api Version.", - "enum": [ - "2015-06-15" - ], - "in": "query", - "name": "api-version", - "required": true, - "type": "string" - }, - { - "$ref": "#/parameters/SubscriptionIdParameter" - } - ], - "produces": [ - "application/json", - "text/json" - ], - "responses": { - "200": { - "description": "", - "schema": { - "$ref": "#/definitions/StorageAccountKeys" - } - } - }, - "tags": [ - "StorageAccounts" - ] - } - } - }, - "schemes": [ - "https" - ], - "security": [ - { - "azure_auth": [ - "user_impersonation" - ] - } - ], - "securityDefinitions": { - "azure_auth": { - "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", - "description": "Azure Active Directory OAuth2 Flow", - "flow": "implicit", - "scopes": { - "user_impersonation": "impersonate your user account" - }, - "type": "oauth2" - } - }, - "swagger": "2.0" -} \ No newline at end of file diff --git a/Samples/openapi-v2/1c-multiple-input-swaggers/Artifacts/searchservice.norm.yaml b/Samples/openapi-v2/1c-multiple-input-swaggers/Artifacts/searchservice.norm.yaml deleted file mode 100644 index 7b4a2a2701..0000000000 --- a/Samples/openapi-v2/1c-multiple-input-swaggers/Artifacts/searchservice.norm.yaml +++ /dev/null @@ -1,2281 +0,0 @@ ---- -definitions: - CheckNameAvailabilityResult: - description: The CheckNameAvailability operation response. - properties: - message: - description: Gets an error message explaining the Reason value in more detail. - type: string - nameAvailable: - description: >- - Gets a boolean value that indicates whether the name is available for - you to use. If true, the name is available. If false, the name has - already been taken or invalid and cannot be used. - type: boolean - reason: - description: >- - Gets the reason that a storage account name could not be used. The - Reason element is only returned if NameAvailable is false. - enum: - - AccountNameInvalid - - AlreadyExists - type: string - x-ms-enum: - modelAsString: false - name: Reason - oldModelAsString: false - CorsOptions: - description: >- - Defines options to control Cross-Origin Resource Sharing (CORS) for an - index. - externalDocs: - url: 'https://msdn.microsoft.com/library/azure/dn798941.aspx' - properties: - allowedOrigins: - description: >- - Gets the list of origins from which JavaScript code will be granted - access to your index. Can contain a list of hosts of the form - {protocol}://{fully-qualified-domain-name}[:{port#}], or a single '*' - to allow all origins (not recommended). - items: - type: string - type: array - maxAgeInSeconds: - description: >- - Gets or sets the duration for which browsers should cache CORS - preflight responses. Defaults to 5 mintues. - format: int64 - type: integer - required: - - allowedOrigins - CustomDomain: - description: >- - The custom domain assigned to this storage account. This can be set via - Update. - properties: - name: - description: Gets or sets the custom domain name. Name is the CNAME source. - type: string - useSubDomain: - description: >- - Indicates whether indirect CName validation is enabled. Default value - is false. This should only be set on updates - type: boolean - required: - - name - DataChangeDetectionPolicy: - description: Abstract base class for data change detection policies. - discriminator: '@odata.type' - properties: - '@odata.type': - type: string - required: - - '@odata.type' - DataContainer: - description: >- - Represents information about the entity (such as Azure SQL table or - DocumentDb collection) that will be indexed. - properties: - name: - description: >- - Gets or sets the name of the table or view (for Azure SQL data source) - or collection (for DocumentDB data source) that will be indexed. - type: string - query: - description: >- - Gets or sets a query that is applied to this data container. Only - supported by DocumentDb datasources. - type: string - required: - - name - DataDeletionDetectionPolicy: - description: Abstract base class for data deletion detection policies. - discriminator: '@odata.type' - properties: - '@odata.type': - type: string - required: - - '@odata.type' - DataSource: - description: >- - Represents a datasource definition in Azure Search, which can be used to - configure an indexer. - properties: - container: - $ref: '#/definitions/DataContainer' - description: Gets or sets the data container for the datasource. - credentials: - $ref: '#/definitions/DataSourceCredentials' - description: Gets or sets credentials for the datasource. - dataChangeDetectionPolicy: - $ref: '#/definitions/DataChangeDetectionPolicy' - description: Gets or sets the data change detection policy for the datasource. - dataDeletionDetectionPolicy: - $ref: '#/definitions/DataDeletionDetectionPolicy' - description: Gets or sets the data deletion detection policy for the datasource. - description: - description: Gets or sets the description of the datasource. - type: string - name: - description: Gets or sets the name of the datasource. - externalDocs: - url: 'https://msdn.microsoft.com/library/azure/dn857353.aspx' - type: string - type: - description: Gets or sets the type of the datasource. - type: string - required: - - name - - type - - credentials - - container - DataSourceCredentials: - description: Represents credentials that can be used to connect to a datasource. - properties: - connectionString: - description: Gets or sets the connection string for the datasource. - externalDocs: - url: 'https://msdn.microsoft.com/library/azure/dn946876.aspx' - type: string - required: - - connectionString - DataSourceListResult: - description: >- - Response from a List Datasources request. If successful, it includes the - full definitions of all datasources. - properties: - value: - description: Gets the datasources in the Search service. - items: - $ref: '#/definitions/DataSource' - readOnly: true - type: array - x-ms-external: true - DistanceScoringFunction: - allOf: - - $ref: '#/definitions/ScoringFunction' - description: >- - Defines a function that boosts scores based on distance from a geographic - location. - externalDocs: - url: 'https://msdn.microsoft.com/library/azure/dn798928.aspx' - properties: - distance: - $ref: '#/definitions/DistanceScoringParameters' - description: Gets parameter values for the distance scoring function. - required: - - distance - x-ms-discriminator-value: distance - x-ms-external: true - DistanceScoringParameters: - description: Provides parameter values to a distance scoring function. - properties: - boostingDistance: - description: >- - Gets or sets the distance in kilometers from the reference location - where the boosting range ends. - format: double - type: number - referencePointParameter: - description: >- - Gets or sets the name of the parameter passed in search queries to - specify the reference location. - type: string - required: - - referencePointParameter - - boostingDistance - x-ms-external: true - Endpoints: - description: >- - The URIs that are used to perform a retrieval of a public blob, queue or - table object. - properties: - blob: - description: Gets the blob endpoint. - type: string - file: - description: Gets the file endpoint. - type: string - queue: - description: Gets the queue endpoint. - type: string - table: - description: Gets the table endpoint. - type: string - Field: - description: >- - Represents a field in an index definition in Azure Search, which describes - the name, data type, and search behavior of a field. - externalDocs: - url: 'https://msdn.microsoft.com/library/azure/dn798941.aspx' - properties: - analyzer: - description: Name of the text analyzer to use. - externalDocs: - url: 'https://msdn.microsoft.com/library/azure/dn879793.aspx' - type: string - facetable: - description: >- - Gets or sets a value indicating whether it is possible to facet on - this field. Not valid for geo-point fields. Default is false. - type: boolean - filterable: - description: >- - Gets or sets a value indicating whether the field can be used in - filter expressions. Default is false. - type: boolean - key: - description: >- - Gets or sets a value indicating whether the field is the key of the - index. Valid only for string fields. Every index must have exactly one - key field. - type: boolean - name: - description: Gets or sets the name of the field. - externalDocs: - url: 'https://msdn.microsoft.com/library/azure/dn857353.aspx' - type: string - retrievable: - description: >- - Gets or sets a value indicating whether the field can be returned in a - search result. Default is true. - type: boolean - searchable: - description: >- - Gets or sets a value indicating whether the field is included in - full-text searches. Valid only forstring or string collection fields. - Default is false. - type: boolean - sortable: - description: >- - Gets or sets a value indicating whether the field can be used in - orderby expressions. Not valid for string collection fields. Default - is false. - type: boolean - type: - description: Gets or sets the data type of the field. - type: string - required: - - name - - type - x-ms-external: true - FreshnessScoringFunction: - allOf: - - $ref: '#/definitions/ScoringFunction' - description: >- - Defines a function that boosts scores based on the value of a date-time - field. - externalDocs: - url: 'https://msdn.microsoft.com/library/azure/dn798928.aspx' - properties: - freshness: - $ref: '#/definitions/FreshnessScoringParameters' - description: Gets parameter values for the freshness scoring function. - required: - - freshness - x-ms-discriminator-value: freshness - x-ms-external: true - FreshnessScoringParameters: - description: Provides parameter values to a freshness scoring function. - properties: - boostingDuration: - description: >- - Gets or sets the expiration period after which boosting will stop for - a particular document. - format: duration - type: string - required: - - boostingDuration - x-ms-external: true - HighWaterMarkChangeDetectionPolicy: - allOf: - - $ref: '#/definitions/DataChangeDetectionPolicy' - description: >- - Defines a data change detection policy that captures changes based on the - value of a high water mark column. - properties: - highWaterMarkColumnName: - description: Gets or sets the name of the high water mark column. - type: string - required: - - highWaterMarkColumnName - x-ms-discriminator-value: '#Microsoft.Azure.Search.HighWaterMarkChangeDetectionPolicy' - Index: - description: >- - Represents an index definition in Azure Search, which describes the fields - and search behavior of an index. - properties: - corsOptions: - $ref: '#/definitions/CorsOptions' - description: >- - Gets or sets options to control Cross-Origin Resource Sharing (CORS) - for the index. - defaultScoringProfile: - description: >- - Gets or sets the name of the scoring profile to use if none is - specified in the query. If this property is not set and no scoring - profile is specified in the query, then default scoring (tf-idf) will - be used. - type: string - fields: - description: Gets or sets the fields of the index. - items: - $ref: '#/definitions/Field' - type: array - name: - description: Gets or sets the name of the index. - externalDocs: - url: 'https://msdn.microsoft.com/library/azure/dn857353.aspx' - type: string - scoringProfiles: - description: Gets or sets the scoring profiles for the index. - items: - $ref: '#/definitions/ScoringProfile' - type: array - suggesters: - description: Gets or sets the suggesters for the index. - items: - $ref: '#/definitions/Suggester' - type: array - required: - - name - - fields - IndexGetStatisticsResult: - description: >- - Statistics for a given index. Statistics are collected periodically and - are not guaranteed to always be up-to-date. - properties: - documentCount: - description: Gets the number of documents in the index. - format: int64 - readOnly: true - type: integer - storageSize: - description: Gets the amount of storage in bytes consumed by the index. - format: int64 - readOnly: true - type: integer - x-ms-external: true - IndexListResult: - description: >- - Response from a List Indexes request. If successful, it includes the full - definitions of all indexes. - properties: - value: - description: Gets the indexes in the Search service. - items: - $ref: '#/definitions/Index' - readOnly: true - type: array - x-ms-external: true - Indexer: - description: Represents an Azure Search indexer. - externalDocs: - url: 'https://msdn.microsoft.com/library/azure/dn946891.aspx' - properties: - dataSourceName: - description: >- - Gets or sets the name of the datasource from which this indexer reads - data. - type: string - description: - description: Gets or sets the description of the indexer. - type: string - name: - description: Gets or sets the name of the indexer. - externalDocs: - url: 'https://msdn.microsoft.com/library/azure/dn857353.aspx' - type: string - parameters: - $ref: '#/definitions/IndexingParameters' - description: Gets or sets parameters for indexer execution. - schedule: - $ref: '#/definitions/IndexingSchedule' - description: Gets or sets the schedule for this indexer. - targetIndexName: - description: Gets or sets the name of the index to which this indexer writes data. - type: string - required: - - name - - dataSourceName - - targetIndexName - IndexerExecutionInfo: - description: Represents the current status and execution history of an indexer. - properties: - executionHistory: - description: >- - History of the recent indexer executions, sorted in reverse - chronological order. - items: - $ref: '#/definitions/IndexerExecutionResult' - readOnly: true - type: array - lastResult: - $ref: '#/definitions/IndexerExecutionResult' - description: The result of the most recent or an in-progress indexer execution. - readOnly: true - status: - $ref: '#/definitions/IndexerStatus' - description: Overall indexer status. - readOnly: true - x-ms-external: true - IndexerExecutionResult: - description: Represents result of an individual indexer execution. - properties: - endTime: - description: >- - Gets the end time of this indexer execution, if the execution has - already completed. - format: date-time - readOnly: true - type: string - errorMessage: - description: 'Gets the error message indicating the top-level error, if any.' - readOnly: true - type: string - errors: - description: Gets the item-level indexing errors - items: - $ref: '#/definitions/ItemError' - readOnly: true - type: array - finalTrackingState: - description: Change tracking state with which an indexer execution finished. - readOnly: true - type: string - initialTrackingState: - description: Change tracking state with which an indexer execution started. - readOnly: true - type: string - itemsFailed: - description: >- - Gets the number of items that failed to be indexed during this indexer - execution. - format: int32 - readOnly: true - type: integer - itemsProcessed: - description: >- - Gets the number of items that were processed during this indexer - execution. This includes both successfully processed items and items - where indexing was attempted but failed. - format: int32 - readOnly: true - type: integer - startTime: - description: Gets the start time of this indexer execution. - format: date-time - readOnly: true - type: string - status: - $ref: '#/definitions/IndexerExecutionStatus' - description: Gets the outcome of this indexer execution. - readOnly: true - x-ms-external: true - IndexerExecutionStatus: - description: Represents the status of an individual indexer execution. - enum: - - transientFailure - - success - - inProgress - - reset - type: string - x-ms-enum: - name: IndexerExecutionStatus - IndexerListResult: - description: >- - Response from a List Indexers request. If successful, it includes the full - definitions of all indexers. - properties: - value: - description: Gets the indexers in the Search service. - items: - $ref: '#/definitions/Indexer' - readOnly: true - type: array - x-ms-external: true - IndexerStatus: - description: Represents the overall indexer status. - enum: - - unknown - - error - - running - type: string - x-ms-enum: - name: IndexerStatus - IndexingParameters: - description: Represents parameters for indexer execution. - properties: - base64EncodeKeys: - description: >- - Gets or sets whether indexer will base64-encode all values that are - inserted into key field of the target index. This is needed if keys - can contain characters that are invalid in keys (such as dot '.'). - Default is false. - type: boolean - maxFailedItems: - description: >- - Gets or sets the maximum number of items that can fail indexing for - indexer execution to still be considered successful. -1 means no - limit. Default is 0. - format: int32 - type: integer - maxFailedItemsPerBatch: - description: >- - Gets or sets the maximum number of items in a single batch that can - fail indexing for the batch to still be considered successful. -1 - means no limit. Default is 0. - format: int32 - type: integer - IndexingSchedule: - description: Represents a schedule for indexer execution. - properties: - interval: - description: Gets or sets the interval of time between indexer executions. - format: duration - type: string - startTime: - description: Gets or sets the time when an indexer should start running. - format: date-time - type: string - required: - - interval - x-ms-external: true - ItemError: - description: Represents an item- or document-level indexing error. - properties: - errorMessage: - description: >- - Gets the message describing the error that occurred while attempting - to index the item. - readOnly: true - type: string - key: - description: Gets the key of the item for which indexing failed. - readOnly: true - type: string - MagnitudeScoringFunction: - allOf: - - $ref: '#/definitions/ScoringFunction' - description: >- - Defines a function that boosts scores based on the magnitude of a numeric - field. - externalDocs: - url: 'https://msdn.microsoft.com/library/azure/dn798928.aspx' - properties: - magnitude: - $ref: '#/definitions/MagnitudeScoringParameters' - description: Gets parameter values for the magnitude scoring function. - required: - - magnitude - x-ms-discriminator-value: magnitude - x-ms-external: true - MagnitudeScoringParameters: - description: Provides parameter values to a magnitude scoring function. - properties: - boostingRangeEnd: - description: Gets or sets the field value at which boosting ends. - format: double - type: number - boostingRangeStart: - description: Gets or sets the field value at which boosting starts. - format: double - type: number - constantBoostBeyondRange: - description: >- - Gets or sets a value indicating whether to apply a constant boost for - field values beyond the range end value; default is false. - type: boolean - required: - - boostingRangeStart - - boostingRangeEnd - x-ms-external: true - Resource: - properties: - id: - description: Resource Id - readOnly: true - type: string - location: - description: Resource location - type: string - name: - description: Resource name - readOnly: true - type: string - tags: - additionalProperties: - type: string - description: Resource tags - type: object - type: - description: Resource type - readOnly: true - type: string - x-ms-azure-resource: true - ScoringFunction: - description: >- - Abstract base class for functions that can modify document scores during - ranking. - discriminator: type - externalDocs: - url: 'https://msdn.microsoft.com/library/azure/dn798928.aspx' - properties: - boost: - description: >- - Gets or sets a multiplier for the raw score. Must be a positive number - not equal to 1.0. - format: double - type: number - fieldName: - description: >- - Gets or sets the name of the field used as input to the scoring - function. - type: string - interpolation: - $ref: '#/definitions/ScoringFunctionInterpolation' - description: >- - Gets or sets a value indicating how boosting will be interpolated - across document scores; defaults to "Linear". - type: - type: string - required: - - type - - fieldName - - boost - x-ms-external: true - ScoringFunctionAggregation: - description: >- - Defines the aggregation function used to combine the results of all the - scoring functions in a scoring profile. - enum: - - sum - - average - - minimum - - maximum - - firstMatching - type: string - x-ms-enum: - name: ScoringFunctionAggregation - ScoringFunctionInterpolation: - description: >- - Defines the function used to interpolate score boosting across a range of - documents. - enum: - - linear - - constant - - quadratic - - logarithmic - type: string - x-ms-enum: - name: ScoringFunctionInterpolation - ScoringProfile: - description: >- - Defines parameters for an Azure Search index that influence scoring in - search queries. - externalDocs: - url: 'https://msdn.microsoft.com/library/azure/dn798928.aspx' - properties: - functionAggregation: - $ref: '#/definitions/ScoringFunctionAggregation' - description: >- - Gets or sets a value indicating how the results of individual scoring - functions should be combined. Defaults to "Sum". Ignored if there are - no scoring functions. - functions: - description: >- - Gets the collection of functions that influence the scoring of - documents. - items: - $ref: '#/definitions/ScoringFunction' - type: array - name: - description: Gets or sets the name of the scoring profile. - externalDocs: - url: 'https://msdn.microsoft.com/library/azure/dn857353.aspx' - type: string - text: - $ref: '#/definitions/TextWeights' - description: >- - Gets or sets parameters that boost scoring based on text matches in - certain index fields. - required: - - name - x-ms-external: true - SoftDeleteColumnDeletionDetectionPolicy: - allOf: - - $ref: '#/definitions/DataDeletionDetectionPolicy' - description: >- - Defines a data deletion detection policy that implements a soft-deletion - strategy. It determines whether an item should be deleted based on the - value of a designated 'soft delete' column. - properties: - softDeleteColumnName: - description: >- - Gets or sets the name of the column to use for soft-deletion - detection. - type: string - softDeleteMarkerValue: - description: Gets or sets the marker value that indentifies an item as deleted. - type: string - x-ms-discriminator-value: '#Microsoft.Azure.Search.SoftDeleteColumnDeletionDetectionPolicy' - SqlIntegratedChangeTrackingPolicy: - allOf: - - $ref: '#/definitions/DataChangeDetectionPolicy' - description: >- - Defines a data change detection policy that captures changes using the - Integrated Change Tracking feature of Azure SQL Database. - x-ms-discriminator-value: '#Microsoft.Azure.Search.SqlIntegratedChangeTrackingPolicy' - StorageAccount: - allOf: - - $ref: '#/definitions/Resource' - description: The storage account. - properties: - properties: - $ref: '#/definitions/StorageAccountProperties' - x-ms-client-flatten: true - StorageAccountCheckNameAvailabilityParameters: - properties: - name: - type: string - type: - default: Microsoft.Storage/storageAccounts - type: string - required: - - name - StorageAccountCreateParameters: - description: The parameters to provide for the account. - properties: - location: - description: Resource location - type: string - properties: - $ref: '#/definitions/StorageAccountPropertiesCreateParameters' - x-ms-client-flatten: true - tags: - additionalProperties: - type: string - description: Resource tags - type: object - required: - - location - x-ms-azure-resource: true - StorageAccountKeys: - description: The access keys for the storage account. - properties: - key1: - description: Gets the value of key 1. - type: string - key2: - description: Gets the value of key 2. - type: string - StorageAccountListResult: - description: The list storage accounts operation response. - properties: - value: - description: Gets the list of storage accounts and their properties. - items: - $ref: '#/definitions/StorageAccount' - type: array - StorageAccountProperties: - properties: - accountType: - description: Gets the type of the storage account. - enum: - - Standard_LRS - - Standard_ZRS - - Standard_GRS - - Standard_RAGRS - - Premium_LRS - type: string - x-ms-enum: - modelAsString: false - name: AccountType - oldModelAsString: false - creationTime: - description: Gets the creation date and time of the storage account in UTC. - format: date-time - type: string - customDomain: - $ref: '#/definitions/CustomDomain' - description: Gets the user assigned custom domain assigned to this storage account. - lastGeoFailoverTime: - description: >- - Gets the timestamp of the most recent instance of a failover to the - secondary location. Only the most recent timestamp is retained. This - element is not returned if there has never been a failover instance. - Only available if the accountType is StandardGRS or StandardRAGRS. - format: date-time - type: string - primaryEndpoints: - $ref: '#/definitions/Endpoints' - description: >- - Gets the URLs that are used to perform a retrieval of a public blob, - queue or table object.Note that StandardZRS and PremiumLRS accounts - only return the blob endpoint. - primaryLocation: - description: Gets the location of the primary for the storage account. - type: string - provisioningState: - description: >- - Gets the status of the storage account at the time the operation was - called. - enum: - - Creating - - ResolvingDNS - - Succeeded - type: string - x-ms-enum: - modelAsString: false - name: ProvisioningState - oldModelAsString: false - secondaryEndpoints: - $ref: '#/definitions/Endpoints' - description: >- - Gets the URLs that are used to perform a retrieval of a public blob, - queue or table object from the secondary location of the storage - account. Only available if the accountType is StandardRAGRS. - secondaryLocation: - description: >- - Gets the location of the geo replicated secondary for the storage - account. Only available if the accountType is StandardGRS or - StandardRAGRS. - type: string - statusOfPrimary: - description: >- - Gets the status indicating whether the primary location of the storage - account is available or unavailable. - enum: - - Available - - Unavailable - type: string - x-ms-enum: - modelAsString: false - name: AccountStatus - oldModelAsString: false - statusOfSecondary: - description: >- - Gets the status indicating whether the secondary location of the - storage account is available or unavailable. Only available if the - accountType is StandardGRS or StandardRAGRS. - enum: - - Available - - Unavailable - type: string - x-ms-enum: - modelAsString: false - name: AccountStatus - oldModelAsString: false - StorageAccountPropertiesCreateParameters: - properties: - accountType: - description: Gets or sets the account type. - enum: - - Standard_LRS - - Standard_ZRS - - Standard_GRS - - Standard_RAGRS - - Premium_LRS - type: string - x-ms-enum: - modelAsString: false - name: AccountType - oldModelAsString: false - required: - - accountType - StorageAccountPropertiesUpdateParameters: - properties: - accountType: - description: >- - Gets or sets the account type. Note that StandardZRS and PremiumLRS - accounts cannot be changed to other account types, and other account - types cannot be changed to StandardZRS or PremiumLRS. - enum: - - Standard_LRS - - Standard_ZRS - - Standard_GRS - - Standard_RAGRS - - Premium_LRS - type: string - x-ms-enum: - modelAsString: false - name: AccountType - oldModelAsString: false - customDomain: - $ref: '#/definitions/CustomDomain' - description: >- - User domain assigned to the storage account. Name is the CNAME source. - Only one custom domain is supported per storage account at this time. - To clear the existing custom domain, use an empty string for the - custom domain name property. - StorageAccountRegenerateKeyParameters: - properties: - keyName: - type: string - required: - - keyName - StorageAccountUpdateParameters: - description: The parameters to update on the account. - properties: - properties: - $ref: '#/definitions/StorageAccountPropertiesUpdateParameters' - x-ms-client-flatten: true - tags: - additionalProperties: - type: string - description: Resource tags - type: object - x-ms-azure-resource: true - Suggester: - description: >- - Defines how the Suggest API should apply to a group of fields in the - index. - properties: - name: - description: Gets or sets the name of the suggester. - type: string - searchMode: - $ref: '#/definitions/SuggesterSearchMode' - description: Gets or sets a value indicating the capabilities of the suggester. - sourceFields: - description: >- - Gets the list of field names to which the suggester applies. Each - field must be searchable. - items: - type: string - type: array - required: - - name - - searchMode - - sourceFields - x-ms-external: true - SuggesterSearchMode: - description: Describes the type of suggester to use. - enum: - - analyzingInfixMatching - type: string - x-ms-enum: - name: SuggesterSearchMode - TagScoringFunction: - allOf: - - $ref: '#/definitions/ScoringFunction' - description: >- - Defines a function that boosts scores of documents with string values - matching a given list of tags. - externalDocs: - url: 'https://msdn.microsoft.com/library/azure/dn798928.aspx' - properties: - tag: - $ref: '#/definitions/TagScoringParameters' - description: Gets parameter values for the tag scoring function. - required: - - tag - x-ms-discriminator-value: tag - x-ms-external: true - TagScoringParameters: - description: Provides parameter values to a tag scoring function. - properties: - tagsParameter: - description: >- - Gets or sets the name of the parameter passed in search queries to - specify the list of tags to compare against the target field. - type: string - required: - - tagsParameter - TextWeights: - description: >- - Defines weights on index fields for which matches should boost scoring in - search queries. - properties: - weights: - additionalProperties: - format: double - type: number - description: >- - Gets the dictionary of per-field weights to boost document scoring. - The keys are field names and the values are the weights for each - field. - type: object - required: - - weights - x-ms-external: true - Usage: - description: Describes Storage Resource Usage. - properties: - currentValue: - description: Gets the current count of the allocated resources in the subscription. - format: int32 - type: integer - limit: - description: >- - Gets the maximum count of the resources that can be allocated in the - subscription. - format: int32 - type: integer - name: - $ref: '#/definitions/UsageName' - description: Gets the name of the type of usage. - unit: - description: Gets the unit of measurement. - enum: - - Count - - Bytes - - Seconds - - Percent - - CountsPerSecond - - BytesPerSecond - type: string - x-ms-enum: - modelAsString: false - name: UsageUnit - oldModelAsString: false - required: - - unit - - currentValue - - limit - - name - UsageListResult: - description: The List Usages operation response. - properties: - value: - description: Gets or sets the list Storage Resource Usages. - items: - $ref: '#/definitions/Usage' - type: array - UsageName: - description: The Usage Names. - properties: - localizedValue: - description: Gets a localized string describing the resource name. - type: string - value: - description: Gets a string describing the resource name. - type: string -host: management.azure.com -info: - title: Search and Storage -parameters: - SubscriptionIdParameter: - description: >- - Gets subscription credentials which uniquely identify Microsoft Azure - subscription. The subscription ID forms part of the URI for every service - call. - in: path - name: subscriptionId - required: true - type: string -paths: - /datasources: - get: - consumes: - - application/json - description: Lists all datasources available for an Azure Search service. - externalDocs: - url: 'https://msdn.microsoft.com/library/azure/dn946878.aspx' - operationId: DataSources_List - parameters: - - description: Tracking ID sent with the request to help with debugging. - format: uuid - in: header - name: client-request-id - required: false - type: string - x-ms-client-request-id: true - x-ms-parameter-grouping: - name: search-request-options - - description: Client Api Version. - enum: - - '2015-02-28' - in: query - name: api-version - required: true - type: string - produces: - - application/json - responses: - '200': - description: '' - schema: - $ref: '#/definitions/DataSourceListResult' - tags: - - DataSources - x-ms-request-id: request-id - post: - consumes: - - application/json - description: Creates a new Azure Search datasource. - externalDocs: - url: 'https://msdn.microsoft.com/library/azure/dn946876.aspx' - operationId: DataSources_Create - parameters: - - description: The definition of the datasource to create. - in: body - name: dataSource - required: true - schema: - $ref: '#/definitions/DataSource' - - description: Tracking ID sent with the request to help with debugging. - format: uuid - in: header - name: client-request-id - required: false - type: string - x-ms-client-request-id: true - x-ms-parameter-grouping: - name: search-request-options - - description: Client Api Version. - enum: - - '2015-02-28' - in: query - name: api-version - required: true - type: string - produces: - - application/json - responses: - '201': - description: '' - schema: - $ref: '#/definitions/DataSource' - tags: - - DataSources - x-ms-request-id: request-id - '/datasources(''{dataSourceName}'')': - delete: - consumes: - - application/json - description: Deletes an Azure Search datasource. - externalDocs: - url: 'https://msdn.microsoft.com/library/azure/dn946881.aspx' - operationId: DataSources_Delete - parameters: - - description: The name of the datasource to delete. - in: path - name: dataSourceName - required: true - type: string - - description: Tracking ID sent with the request to help with debugging. - format: uuid - in: header - name: client-request-id - required: false - type: string - x-ms-client-request-id: true - x-ms-parameter-grouping: - name: search-request-options - - description: Client Api Version. - enum: - - '2015-02-28' - in: query - name: api-version - required: true - type: string - produces: - - application/json - responses: - '204': - description: '' - '404': - description: '' - tags: - - DataSources - x-ms-request-id: request-id - get: - consumes: - - application/json - description: Retrieves a datasource definition from Azure Search. - externalDocs: - url: 'https://msdn.microsoft.com/library/azure/dn946893.aspx' - operationId: DataSources_Get - parameters: - - description: The name of the datasource to retrieve. - in: path - name: dataSourceName - required: true - type: string - - description: Tracking ID sent with the request to help with debugging. - format: uuid - in: header - name: client-request-id - required: false - type: string - x-ms-client-request-id: true - x-ms-parameter-grouping: - name: search-request-options - - description: Client Api Version. - enum: - - '2015-02-28' - in: query - name: api-version - required: true - type: string - produces: - - application/json - responses: - '200': - description: '' - schema: - $ref: '#/definitions/DataSource' - tags: - - DataSources - x-ms-request-id: request-id - put: - consumes: - - application/json - description: >- - Creates a new Azure Search datasource or updates a datasource if it - already exists. - externalDocs: - url: 'https://msdn.microsoft.com/library/azure/dn946900.aspx' - operationId: DataSources_CreateOrUpdate - parameters: - - description: The name of the datasource to create or update. - in: path - name: dataSourceName - required: true - type: string - - description: The definition of the datasource to create or update. - in: body - name: dataSource - required: true - schema: - $ref: '#/definitions/DataSource' - - description: Tracking ID sent with the request to help with debugging. - format: uuid - in: header - name: client-request-id - required: false - type: string - x-ms-client-request-id: true - x-ms-parameter-grouping: - name: search-request-options - - description: Client Api Version. - enum: - - '2015-02-28' - in: query - name: api-version - required: true - type: string - produces: - - application/json - responses: - '200': - description: '' - schema: - $ref: '#/definitions/DataSource' - '201': - description: '' - schema: - $ref: '#/definitions/DataSource' - tags: - - DataSources - x-ms-request-id: request-id - /indexers: - get: - consumes: - - application/json - description: Lists all indexers available for an Azure Search service. - externalDocs: - url: 'https://msdn.microsoft.com/library/azure/dn946883.aspx' - operationId: Indexers_List - parameters: - - description: Tracking ID sent with the request to help with debugging. - format: uuid - in: header - name: client-request-id - required: false - type: string - x-ms-client-request-id: true - x-ms-parameter-grouping: - name: search-request-options - - description: Client Api Version. - enum: - - '2015-02-28' - in: query - name: api-version - required: true - type: string - produces: - - application/json - responses: - '200': - description: '' - schema: - $ref: '#/definitions/IndexerListResult' - tags: - - Indexers - x-ms-request-id: request-id - post: - consumes: - - application/json - description: Creates a new Azure Search indexer. - externalDocs: - url: 'https://msdn.microsoft.com/library/azure/dn946899.aspx' - operationId: Indexers_Create - parameters: - - description: The definition of the indexer to create. - in: body - name: indexer - required: true - schema: - $ref: '#/definitions/Indexer' - - description: Tracking ID sent with the request to help with debugging. - format: uuid - in: header - name: client-request-id - required: false - type: string - x-ms-client-request-id: true - x-ms-parameter-grouping: - name: search-request-options - - description: Client Api Version. - enum: - - '2015-02-28' - in: query - name: api-version - required: true - type: string - produces: - - application/json - responses: - '201': - description: '' - schema: - $ref: '#/definitions/Indexer' - tags: - - Indexers - x-ms-request-id: request-id - '/indexers(''{indexerName}'')': - delete: - consumes: - - application/json - description: Deletes an Azure Search indexer. - externalDocs: - url: 'https://msdn.microsoft.com/library/azure/dn946898.aspx' - operationId: Indexers_Delete - parameters: - - description: The name of the indexer to delete. - in: path - name: indexerName - required: true - type: string - - description: Tracking ID sent with the request to help with debugging. - format: uuid - in: header - name: client-request-id - required: false - type: string - x-ms-client-request-id: true - x-ms-parameter-grouping: - name: search-request-options - - description: Client Api Version. - enum: - - '2015-02-28' - in: query - name: api-version - required: true - type: string - produces: - - application/json - responses: - '204': - description: '' - '404': - description: '' - tags: - - Indexers - x-ms-request-id: request-id - get: - consumes: - - application/json - description: Retrieves an indexer definition from Azure Search. - externalDocs: - url: 'https://msdn.microsoft.com/library/azure/dn946874.aspx' - operationId: Indexers_Get - parameters: - - description: The name of the indexer to retrieve. - in: path - name: indexerName - required: true - type: string - - description: Tracking ID sent with the request to help with debugging. - format: uuid - in: header - name: client-request-id - required: false - type: string - x-ms-client-request-id: true - x-ms-parameter-grouping: - name: search-request-options - - description: Client Api Version. - enum: - - '2015-02-28' - in: query - name: api-version - required: true - type: string - produces: - - application/json - responses: - '200': - description: '' - schema: - $ref: '#/definitions/Indexer' - tags: - - Indexers - x-ms-request-id: request-id - put: - consumes: - - application/json - description: >- - Creates a new Azure Search indexer or updates an indexer if it already - exists. - externalDocs: - url: 'https://msdn.microsoft.com/library/azure/dn946899.aspx' - operationId: Indexers_CreateOrUpdate - parameters: - - description: The name of the indexer to create or update. - in: path - name: indexerName - required: true - type: string - - description: The definition of the indexer to create or update. - in: body - name: indexer - required: true - schema: - $ref: '#/definitions/Indexer' - - description: Tracking ID sent with the request to help with debugging. - format: uuid - in: header - name: client-request-id - required: false - type: string - x-ms-client-request-id: true - x-ms-parameter-grouping: - name: search-request-options - - description: Client Api Version. - enum: - - '2015-02-28' - in: query - name: api-version - required: true - type: string - produces: - - application/json - responses: - '200': - description: '' - schema: - $ref: '#/definitions/Indexer' - '201': - description: '' - schema: - $ref: '#/definitions/Indexer' - tags: - - Indexers - x-ms-request-id: request-id - '/indexers(''{indexerName}'')/search.reset': - post: - consumes: - - application/json - description: >- - Resets the change tracking state associated with an Azure Search - indexer. - externalDocs: - url: 'https://msdn.microsoft.com/library/azure/dn946897.aspx' - operationId: Indexers_Reset - parameters: - - description: The name of the indexer to reset. - in: path - name: indexerName - required: true - type: string - - description: Tracking ID sent with the request to help with debugging. - format: uuid - in: header - name: client-request-id - required: false - type: string - x-ms-client-request-id: true - x-ms-parameter-grouping: - name: search-request-options - - description: Client Api Version. - enum: - - '2015-02-28' - in: query - name: api-version - required: true - type: string - produces: - - application/json - responses: - '204': - description: '' - tags: - - Indexers - x-ms-request-id: request-id - '/indexers(''{indexerName}'')/search.run': - post: - consumes: - - application/json - description: Runs an Azure Search indexer on-demand. - externalDocs: - url: 'https://msdn.microsoft.com/library/azure/dn946885.aspx' - operationId: Indexers_Run - parameters: - - description: The name of the indexer to run. - in: path - name: indexerName - required: true - type: string - - description: Tracking ID sent with the request to help with debugging. - format: uuid - in: header - name: client-request-id - required: false - type: string - x-ms-client-request-id: true - x-ms-parameter-grouping: - name: search-request-options - - description: Client Api Version. - enum: - - '2015-02-28' - in: query - name: api-version - required: true - type: string - produces: - - application/json - responses: - '202': - description: '' - tags: - - Indexers - x-ms-request-id: request-id - '/indexers(''{indexerName}'')/search.status': - get: - consumes: - - application/json - description: Returns the current status and execution history of an indexer. - externalDocs: - url: 'https://msdn.microsoft.com/library/azure/dn946884.aspx' - operationId: Indexers_GetStatus - parameters: - - description: The name of the indexer for which to retrieve status. - in: path - name: indexerName - required: true - type: string - - description: Tracking ID sent with the request to help with debugging. - format: uuid - in: header - name: client-request-id - required: false - type: string - x-ms-client-request-id: true - x-ms-parameter-grouping: - name: search-request-options - - description: Client Api Version. - enum: - - '2015-02-28' - in: query - name: api-version - required: true - type: string - produces: - - application/json - responses: - '200': - description: '' - schema: - $ref: '#/definitions/IndexerExecutionInfo' - tags: - - Indexers - x-ms-request-id: request-id - /indexes: - get: - consumes: - - application/json - description: Lists all indexes available for an Azure Search service. - externalDocs: - url: 'https://msdn.microsoft.com/library/azure/dn798923.aspx' - operationId: Indexes_List - parameters: - - description: >- - Selects which properties of the index definitions to retrieve. - Specified as a comma-separated list of JSON property names, or '*' - for all properties. The default is all properties. - in: query - name: $select - required: false - type: string - - description: Tracking ID sent with the request to help with debugging. - format: uuid - in: header - name: client-request-id - required: false - type: string - x-ms-client-request-id: true - x-ms-parameter-grouping: - name: search-request-options - - description: Client Api Version. - enum: - - '2015-02-28' - in: query - name: api-version - required: true - type: string - produces: - - application/json - responses: - '200': - description: '' - schema: - $ref: '#/definitions/IndexListResult' - tags: - - Indexes - x-ms-request-id: request-id - post: - consumes: - - application/json - description: Creates a new Azure Search index. - externalDocs: - url: 'https://msdn.microsoft.com/library/azure/dn798941.aspx' - operationId: Indexes_Create - parameters: - - description: The definition of the index to create. - in: body - name: index - required: true - schema: - $ref: '#/definitions/Index' - - description: Tracking ID sent with the request to help with debugging. - format: uuid - in: header - name: client-request-id - required: false - type: string - x-ms-client-request-id: true - x-ms-parameter-grouping: - name: search-request-options - - description: Client Api Version. - enum: - - '2015-02-28' - in: query - name: api-version - required: true - type: string - produces: - - application/json - responses: - '201': - description: '' - schema: - $ref: '#/definitions/Index' - tags: - - Indexes - x-ms-request-id: request-id - '/indexes(''{indexName}'')': - delete: - consumes: - - application/json - description: Deletes an Azure Search index and all the documents it contains. - externalDocs: - url: 'https://msdn.microsoft.com/library/azure/dn798926.aspx' - operationId: Indexes_Delete - parameters: - - description: The name of the index to delete. - in: path - name: indexName - required: true - type: string - - description: Tracking ID sent with the request to help with debugging. - format: uuid - in: header - name: client-request-id - required: false - type: string - x-ms-client-request-id: true - x-ms-parameter-grouping: - name: search-request-options - - description: Client Api Version. - enum: - - '2015-02-28' - in: query - name: api-version - required: true - type: string - produces: - - application/json - responses: - '204': - description: '' - '404': - description: '' - tags: - - Indexes - x-ms-request-id: request-id - get: - consumes: - - application/json - description: Retrieves an index definition from Azure Search. - externalDocs: - url: 'https://msdn.microsoft.com/library/azure/dn798939.aspx' - operationId: Indexes_Get - parameters: - - description: The name of the index to retrieve. - in: path - name: indexName - required: true - type: string - - description: Tracking ID sent with the request to help with debugging. - format: uuid - in: header - name: client-request-id - required: false - type: string - x-ms-client-request-id: true - x-ms-parameter-grouping: - name: search-request-options - - description: Client Api Version. - enum: - - '2015-02-28' - in: query - name: api-version - required: true - type: string - produces: - - application/json - responses: - '200': - description: '' - schema: - $ref: '#/definitions/Index' - tags: - - Indexes - x-ms-request-id: request-id - put: - consumes: - - application/json - description: >- - Creates a new Azure Search index or updates an index if it already - exists. - externalDocs: - url: 'https://msdn.microsoft.com/library/azure/dn800964.aspx' - operationId: Indexes_CreateOrUpdate - parameters: - - description: The definition of the index to create or update. - in: path - name: indexName - required: true - type: string - - description: The definition of the index to create or update. - in: body - name: index - required: true - schema: - $ref: '#/definitions/Index' - - description: Tracking ID sent with the request to help with debugging. - format: uuid - in: header - name: client-request-id - required: false - type: string - x-ms-client-request-id: true - x-ms-parameter-grouping: - name: search-request-options - - description: Client Api Version. - enum: - - '2015-02-28' - in: query - name: api-version - required: true - type: string - produces: - - application/json - responses: - '200': - description: '' - schema: - $ref: '#/definitions/Index' - '201': - description: '' - schema: - $ref: '#/definitions/Index' - tags: - - Indexes - x-ms-request-id: request-id - '/indexes(''{indexName}'')/search.stats': - get: - consumes: - - application/json - description: >- - Returns statistics for the given index, including a document count and - storage usage. - externalDocs: - url: 'https://msdn.microsoft.com/library/azure/dn798942.aspx' - operationId: Indexes_GetStatistics - parameters: - - description: The name of the index for which to retrieve statistics. - in: path - name: indexName - required: true - type: string - - description: Tracking ID sent with the request to help with debugging. - format: uuid - in: header - name: client-request-id - required: false - type: string - x-ms-client-request-id: true - x-ms-parameter-grouping: - name: search-request-options - - description: Client Api Version. - enum: - - '2015-02-28' - in: query - name: api-version - required: true - type: string - produces: - - application/json - responses: - '200': - description: '' - schema: - $ref: '#/definitions/IndexGetStatisticsResult' - tags: - - Indexes - x-ms-request-id: request-id - '/subscriptions/{subscriptionId}/providers/Microsoft.Storage/checkNameAvailability': - post: - consumes: - - application/json - - text/json - description: Checks that account name is valid and is not in use. - operationId: StorageAccounts_CheckNameAvailability - parameters: - - description: >- - The name of the storage account within the specified resource group. - Storage account names must be between 3 and 24 characters in length - and use numbers and lower-case letters only. - in: body - name: accountName - required: true - schema: - $ref: '#/definitions/StorageAccountCheckNameAvailabilityParameters' - - description: Client Api Version. - enum: - - '2015-06-15' - in: query - name: api-version - required: true - type: string - - $ref: '#/parameters/SubscriptionIdParameter' - produces: - - application/json - - text/json - responses: - '200': - description: '' - schema: - $ref: '#/definitions/CheckNameAvailabilityResult' - tags: - - StorageAccounts - '/subscriptions/{subscriptionId}/providers/Microsoft.Storage/storageAccounts': - get: - consumes: - - application/json - - text/json - description: >- - Lists all the storage accounts available under the subscription. Note - that storage keys are not returned; use the ListKeys operation for this. - operationId: StorageAccounts_List - parameters: - - description: Client Api Version. - enum: - - '2015-06-15' - in: query - name: api-version - required: true - type: string - - $ref: '#/parameters/SubscriptionIdParameter' - produces: - - application/json - - text/json - responses: - '200': - description: '' - schema: - $ref: '#/definitions/StorageAccountListResult' - tags: - - StorageAccounts - x-ms-pageable: - nextLinkName: null - '/subscriptions/{subscriptionId}/providers/Microsoft.Storage/usages': - get: - consumes: - - application/json - - text/json - description: >- - Gets the current usage count and the limit for the resources under the - subscription. - operationId: Usage_List - parameters: - - description: Client Api Version. - enum: - - '2015-06-15' - in: query - name: api-version - required: true - type: string - - $ref: '#/parameters/SubscriptionIdParameter' - produces: - - application/json - - text/json - responses: - '200': - description: '' - schema: - $ref: '#/definitions/UsageListResult' - tags: - - Usage - x-ms-pageable: - nextLinkName: null - '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts': - get: - consumes: - - application/json - - text/json - description: >- - Lists all the storage accounts available under the given resource group. - Note that storage keys are not returned; use the ListKeys operation for - this. - operationId: StorageAccounts_ListByResourceGroup - parameters: - - description: The name of the resource group within the user's subscription. - in: path - name: resourceGroupName - required: true - type: string - - description: Client Api Version. - enum: - - '2015-06-15' - in: query - name: api-version - required: true - type: string - - $ref: '#/parameters/SubscriptionIdParameter' - produces: - - application/json - - text/json - responses: - '200': - description: '' - schema: - $ref: '#/definitions/StorageAccountListResult' - tags: - - StorageAccounts - x-ms-pageable: - nextLinkName: null - '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}': - delete: - consumes: - - application/json - - text/json - description: Deletes a storage account in Microsoft Azure. - operationId: StorageAccounts_Delete - parameters: - - description: The name of the resource group within the user's subscription. - in: path - name: resourceGroupName - required: true - type: string - - description: >- - The name of the storage account within the specified resource group. - Storage account names must be between 3 and 24 characters in length - and use numbers and lower-case letters only. - in: path - maxLength: 24 - minLength: 3 - name: accountName - required: true - type: string - - description: Client Api Version. - enum: - - '2015-06-15' - in: query - name: api-version - required: true - type: string - - $ref: '#/parameters/SubscriptionIdParameter' - produces: - - application/json - - text/json - responses: - '200': - description: '' - '204': - description: '' - tags: - - StorageAccounts - get: - consumes: - - application/json - - text/json - description: >- - Returns the properties for the specified storage account including but - not limited to name, account type, location, and account status. The - ListKeys operation should be used to retrieve storage keys. - operationId: StorageAccounts_GetProperties - parameters: - - description: The name of the resource group within the user's subscription. - in: path - name: resourceGroupName - required: true - type: string - - description: >- - The name of the storage account within the specified resource group. - Storage account names must be between 3 and 24 characters in length - and use numbers and lower-case letters only. - in: path - maxLength: 24 - minLength: 3 - name: accountName - required: true - type: string - - description: Client Api Version. - enum: - - '2015-06-15' - in: query - name: api-version - required: true - type: string - - $ref: '#/parameters/SubscriptionIdParameter' - produces: - - application/json - - text/json - responses: - '200': - description: '' - schema: - $ref: '#/definitions/StorageAccount' - tags: - - StorageAccounts - patch: - consumes: - - application/json - - text/json - description: >- - Updates the account type or tags for a storage account. It can also be - used to add a custom domain (note that custom domains cannot be added - via the Create operation). Only one custom domain is supported per - storage account. In order to replace a custom domain, the old value must - be cleared before a new value may be set. To clear a custom domain, - simply update the custom domain with empty string. Then call update - again with the new cutsom domain name. The update API can only be used - to update one of tags, accountType, or customDomain per call. To update - multiple of these properties, call the API multiple times with one - change per call. This call does not change the storage keys for the - account. If you want to change storage account keys, use the - RegenerateKey operation. The location and name of the storage account - cannot be changed after creation. - operationId: StorageAccounts_Update - parameters: - - description: The name of the resource group within the user's subscription. - in: path - name: resourceGroupName - required: true - type: string - - description: >- - The name of the storage account within the specified resource group. - Storage account names must be between 3 and 24 characters in length - and use numbers and lower-case letters only. - in: path - maxLength: 24 - minLength: 3 - name: accountName - required: true - type: string - - description: >- - The parameters to update on the account. Note that only one property - can be changed at a time using this API. - in: body - name: parameters - required: true - schema: - $ref: '#/definitions/StorageAccountUpdateParameters' - - description: Client Api Version. - enum: - - '2015-06-15' - in: query - name: api-version - required: true - type: string - - $ref: '#/parameters/SubscriptionIdParameter' - produces: - - application/json - - text/json - responses: - '200': - description: '' - schema: - $ref: '#/definitions/StorageAccount' - tags: - - StorageAccounts - put: - consumes: - - application/json - - text/json - description: >- - Asynchronously creates a new storage account with the specified - parameters. Existing accounts cannot be updated with this API and should - instead use the Update Storage Account API. If an account is already - created and subsequent PUT request is issued with exact same set of - properties, then HTTP 200 would be returned. - operationId: StorageAccounts_Create - parameters: - - description: The name of the resource group within the user's subscription. - in: path - name: resourceGroupName - required: true - type: string - - description: >- - The name of the storage account within the specified resource group. - Storage account names must be between 3 and 24 characters in length - and use numbers and lower-case letters only. - in: path - maxLength: 24 - minLength: 3 - name: accountName - required: true - type: string - - description: The parameters to provide for the created account. - in: body - name: parameters - required: true - schema: - $ref: '#/definitions/StorageAccountCreateParameters' - - description: Client Api Version. - enum: - - '2015-06-15' - in: query - name: api-version - required: true - type: string - - $ref: '#/parameters/SubscriptionIdParameter' - produces: - - application/json - - text/json - responses: - '200': - description: '' - schema: - $ref: '#/definitions/StorageAccount' - '202': - description: '' - tags: - - StorageAccounts - x-ms-long-running-operation: true - '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/listKeys': - post: - consumes: - - application/json - - text/json - description: Lists the access keys for the specified storage account. - operationId: StorageAccounts_ListKeys - parameters: - - description: The name of the resource group. - in: path - name: resourceGroupName - required: true - type: string - - description: The name of the storage account. - in: path - maxLength: 24 - minLength: 3 - name: accountName - required: true - type: string - - description: Client Api Version. - enum: - - '2015-06-15' - in: query - name: api-version - required: true - type: string - - $ref: '#/parameters/SubscriptionIdParameter' - produces: - - application/json - - text/json - responses: - '200': - description: '' - schema: - $ref: '#/definitions/StorageAccountKeys' - tags: - - StorageAccounts - '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/regenerateKey': - post: - consumes: - - application/json - - text/json - description: Regenerates the access keys for the specified storage account. - operationId: StorageAccounts_RegenerateKey - parameters: - - description: The name of the resource group within the user's subscription. - in: path - name: resourceGroupName - required: true - type: string - - description: >- - The name of the storage account within the specified resource group. - Storage account names must be between 3 and 24 characters in length - and use numbers and lower-case letters only. - in: path - maxLength: 24 - minLength: 3 - name: accountName - required: true - type: string - - description: >- - Specifies name of the key which should be regenerated. key1 or key2 - for the default keys - in: body - name: regenerateKey - required: true - schema: - $ref: '#/definitions/StorageAccountRegenerateKeyParameters' - - description: Client Api Version. - enum: - - '2015-06-15' - in: query - name: api-version - required: true - type: string - - $ref: '#/parameters/SubscriptionIdParameter' - produces: - - application/json - - text/json - responses: - '200': - description: '' - schema: - $ref: '#/definitions/StorageAccountKeys' - tags: - - StorageAccounts -schemes: - - https -security: - - azure_auth: - - user_impersonation -securityDefinitions: - azure_auth: - authorizationUrl: 'https://login.microsoftonline.com/common/oauth2/authorize' - description: Azure Active Directory OAuth2 Flow - flow: implicit - scopes: - user_impersonation: impersonate your user account - type: oauth2 -swagger: '2.0' diff --git a/Samples/openapi-v2/1c-multiple-input-swaggers/Client/DataSources.cs b/Samples/openapi-v2/1c-multiple-input-swaggers/Client/DataSources.cs deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/1c-multiple-input-swaggers/Client/DataSources.cs +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/1c-multiple-input-swaggers/Client/DataSourcesExtensions.cs b/Samples/openapi-v2/1c-multiple-input-swaggers/Client/DataSourcesExtensions.cs deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/1c-multiple-input-swaggers/Client/DataSourcesExtensions.cs +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/1c-multiple-input-swaggers/Client/IDataSources.cs b/Samples/openapi-v2/1c-multiple-input-swaggers/Client/IDataSources.cs deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/1c-multiple-input-swaggers/Client/IDataSources.cs +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/1c-multiple-input-swaggers/Client/IIndexers.cs b/Samples/openapi-v2/1c-multiple-input-swaggers/Client/IIndexers.cs deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/1c-multiple-input-swaggers/Client/IIndexers.cs +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/1c-multiple-input-swaggers/Client/IIndexes.cs b/Samples/openapi-v2/1c-multiple-input-swaggers/Client/IIndexes.cs deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/1c-multiple-input-swaggers/Client/IIndexes.cs +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/1c-multiple-input-swaggers/Client/ISearchandStorage.cs b/Samples/openapi-v2/1c-multiple-input-swaggers/Client/ISearchandStorage.cs deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/1c-multiple-input-swaggers/Client/ISearchandStorage.cs +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/1c-multiple-input-swaggers/Client/IStorageAccounts.cs b/Samples/openapi-v2/1c-multiple-input-swaggers/Client/IStorageAccounts.cs deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/1c-multiple-input-swaggers/Client/IStorageAccounts.cs +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/1c-multiple-input-swaggers/Client/IUsageOperations.cs b/Samples/openapi-v2/1c-multiple-input-swaggers/Client/IUsageOperations.cs deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/1c-multiple-input-swaggers/Client/IUsageOperations.cs +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/1c-multiple-input-swaggers/Client/Indexers.cs b/Samples/openapi-v2/1c-multiple-input-swaggers/Client/Indexers.cs deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/1c-multiple-input-swaggers/Client/Indexers.cs +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/1c-multiple-input-swaggers/Client/IndexersExtensions.cs b/Samples/openapi-v2/1c-multiple-input-swaggers/Client/IndexersExtensions.cs deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/1c-multiple-input-swaggers/Client/IndexersExtensions.cs +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/1c-multiple-input-swaggers/Client/Indexes.cs b/Samples/openapi-v2/1c-multiple-input-swaggers/Client/Indexes.cs deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/1c-multiple-input-swaggers/Client/Indexes.cs +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/1c-multiple-input-swaggers/Client/IndexesExtensions.cs b/Samples/openapi-v2/1c-multiple-input-swaggers/Client/IndexesExtensions.cs deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/1c-multiple-input-swaggers/Client/IndexesExtensions.cs +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/1c-multiple-input-swaggers/Client/Models/AccountStatus.cs b/Samples/openapi-v2/1c-multiple-input-swaggers/Client/Models/AccountStatus.cs deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/1c-multiple-input-swaggers/Client/Models/AccountStatus.cs +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/1c-multiple-input-swaggers/Client/Models/AccountType.cs b/Samples/openapi-v2/1c-multiple-input-swaggers/Client/Models/AccountType.cs deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/1c-multiple-input-swaggers/Client/Models/AccountType.cs +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/1c-multiple-input-swaggers/Client/Models/CheckNameAvailabilityResult.cs b/Samples/openapi-v2/1c-multiple-input-swaggers/Client/Models/CheckNameAvailabilityResult.cs deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/1c-multiple-input-swaggers/Client/Models/CheckNameAvailabilityResult.cs +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/1c-multiple-input-swaggers/Client/Models/CorsOptions.cs b/Samples/openapi-v2/1c-multiple-input-swaggers/Client/Models/CorsOptions.cs deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/1c-multiple-input-swaggers/Client/Models/CorsOptions.cs +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/1c-multiple-input-swaggers/Client/Models/CustomDomain.cs b/Samples/openapi-v2/1c-multiple-input-swaggers/Client/Models/CustomDomain.cs deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/1c-multiple-input-swaggers/Client/Models/CustomDomain.cs +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/1c-multiple-input-swaggers/Client/Models/DataChangeDetectionPolicy.cs b/Samples/openapi-v2/1c-multiple-input-swaggers/Client/Models/DataChangeDetectionPolicy.cs deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/1c-multiple-input-swaggers/Client/Models/DataChangeDetectionPolicy.cs +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/1c-multiple-input-swaggers/Client/Models/DataContainer.cs b/Samples/openapi-v2/1c-multiple-input-swaggers/Client/Models/DataContainer.cs deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/1c-multiple-input-swaggers/Client/Models/DataContainer.cs +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/1c-multiple-input-swaggers/Client/Models/DataDeletionDetectionPolicy.cs b/Samples/openapi-v2/1c-multiple-input-swaggers/Client/Models/DataDeletionDetectionPolicy.cs deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/1c-multiple-input-swaggers/Client/Models/DataDeletionDetectionPolicy.cs +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/1c-multiple-input-swaggers/Client/Models/DataSource.cs b/Samples/openapi-v2/1c-multiple-input-swaggers/Client/Models/DataSource.cs deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/1c-multiple-input-swaggers/Client/Models/DataSource.cs +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/1c-multiple-input-swaggers/Client/Models/DataSourceCredentials.cs b/Samples/openapi-v2/1c-multiple-input-swaggers/Client/Models/DataSourceCredentials.cs deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/1c-multiple-input-swaggers/Client/Models/DataSourceCredentials.cs +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/1c-multiple-input-swaggers/Client/Models/Endpoints.cs b/Samples/openapi-v2/1c-multiple-input-swaggers/Client/Models/Endpoints.cs deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/1c-multiple-input-swaggers/Client/Models/Endpoints.cs +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/1c-multiple-input-swaggers/Client/Models/HighWaterMarkChangeDetectionPolicy.cs b/Samples/openapi-v2/1c-multiple-input-swaggers/Client/Models/HighWaterMarkChangeDetectionPolicy.cs deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/1c-multiple-input-swaggers/Client/Models/HighWaterMarkChangeDetectionPolicy.cs +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/1c-multiple-input-swaggers/Client/Models/Index.cs b/Samples/openapi-v2/1c-multiple-input-swaggers/Client/Models/Index.cs deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/1c-multiple-input-swaggers/Client/Models/Index.cs +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/1c-multiple-input-swaggers/Client/Models/Indexer.cs b/Samples/openapi-v2/1c-multiple-input-swaggers/Client/Models/Indexer.cs deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/1c-multiple-input-swaggers/Client/Models/Indexer.cs +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/1c-multiple-input-swaggers/Client/Models/IndexerExecutionStatus.cs b/Samples/openapi-v2/1c-multiple-input-swaggers/Client/Models/IndexerExecutionStatus.cs deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/1c-multiple-input-swaggers/Client/Models/IndexerExecutionStatus.cs +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/1c-multiple-input-swaggers/Client/Models/IndexerStatus.cs b/Samples/openapi-v2/1c-multiple-input-swaggers/Client/Models/IndexerStatus.cs deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/1c-multiple-input-swaggers/Client/Models/IndexerStatus.cs +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/1c-multiple-input-swaggers/Client/Models/IndexingParameters.cs b/Samples/openapi-v2/1c-multiple-input-swaggers/Client/Models/IndexingParameters.cs deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/1c-multiple-input-swaggers/Client/Models/IndexingParameters.cs +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/1c-multiple-input-swaggers/Client/Models/ItemError.cs b/Samples/openapi-v2/1c-multiple-input-swaggers/Client/Models/ItemError.cs deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/1c-multiple-input-swaggers/Client/Models/ItemError.cs +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/1c-multiple-input-swaggers/Client/Models/ProvisioningState.cs b/Samples/openapi-v2/1c-multiple-input-swaggers/Client/Models/ProvisioningState.cs deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/1c-multiple-input-swaggers/Client/Models/ProvisioningState.cs +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/1c-multiple-input-swaggers/Client/Models/Reason.cs b/Samples/openapi-v2/1c-multiple-input-swaggers/Client/Models/Reason.cs deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/1c-multiple-input-swaggers/Client/Models/Reason.cs +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/1c-multiple-input-swaggers/Client/Models/Resource.cs b/Samples/openapi-v2/1c-multiple-input-swaggers/Client/Models/Resource.cs deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/1c-multiple-input-swaggers/Client/Models/Resource.cs +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/1c-multiple-input-swaggers/Client/Models/ScoringFunctionAggregation.cs b/Samples/openapi-v2/1c-multiple-input-swaggers/Client/Models/ScoringFunctionAggregation.cs deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/1c-multiple-input-swaggers/Client/Models/ScoringFunctionAggregation.cs +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/1c-multiple-input-swaggers/Client/Models/ScoringFunctionInterpolation.cs b/Samples/openapi-v2/1c-multiple-input-swaggers/Client/Models/ScoringFunctionInterpolation.cs deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/1c-multiple-input-swaggers/Client/Models/ScoringFunctionInterpolation.cs +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/1c-multiple-input-swaggers/Client/Models/SearchRequestOptions.cs b/Samples/openapi-v2/1c-multiple-input-swaggers/Client/Models/SearchRequestOptions.cs deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/1c-multiple-input-swaggers/Client/Models/SearchRequestOptions.cs +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/1c-multiple-input-swaggers/Client/Models/SoftDeleteColumnDeletionDetectionPolicy.cs b/Samples/openapi-v2/1c-multiple-input-swaggers/Client/Models/SoftDeleteColumnDeletionDetectionPolicy.cs deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/1c-multiple-input-swaggers/Client/Models/SoftDeleteColumnDeletionDetectionPolicy.cs +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/1c-multiple-input-swaggers/Client/Models/SqlIntegratedChangeTrackingPolicy.cs b/Samples/openapi-v2/1c-multiple-input-swaggers/Client/Models/SqlIntegratedChangeTrackingPolicy.cs deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/1c-multiple-input-swaggers/Client/Models/SqlIntegratedChangeTrackingPolicy.cs +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/1c-multiple-input-swaggers/Client/Models/StorageAccount.cs b/Samples/openapi-v2/1c-multiple-input-swaggers/Client/Models/StorageAccount.cs deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/1c-multiple-input-swaggers/Client/Models/StorageAccount.cs +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/1c-multiple-input-swaggers/Client/Models/StorageAccountCheckNameAvailabilityParameters.cs b/Samples/openapi-v2/1c-multiple-input-swaggers/Client/Models/StorageAccountCheckNameAvailabilityParameters.cs deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/1c-multiple-input-swaggers/Client/Models/StorageAccountCheckNameAvailabilityParameters.cs +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/1c-multiple-input-swaggers/Client/Models/StorageAccountCreateParameters.cs b/Samples/openapi-v2/1c-multiple-input-swaggers/Client/Models/StorageAccountCreateParameters.cs deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/1c-multiple-input-swaggers/Client/Models/StorageAccountCreateParameters.cs +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/1c-multiple-input-swaggers/Client/Models/StorageAccountKeys.cs b/Samples/openapi-v2/1c-multiple-input-swaggers/Client/Models/StorageAccountKeys.cs deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/1c-multiple-input-swaggers/Client/Models/StorageAccountKeys.cs +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/1c-multiple-input-swaggers/Client/Models/StorageAccountListResult.cs b/Samples/openapi-v2/1c-multiple-input-swaggers/Client/Models/StorageAccountListResult.cs deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/1c-multiple-input-swaggers/Client/Models/StorageAccountListResult.cs +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/1c-multiple-input-swaggers/Client/Models/StorageAccountRegenerateKeyParameters.cs b/Samples/openapi-v2/1c-multiple-input-swaggers/Client/Models/StorageAccountRegenerateKeyParameters.cs deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/1c-multiple-input-swaggers/Client/Models/StorageAccountRegenerateKeyParameters.cs +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/1c-multiple-input-swaggers/Client/Models/StorageAccountUpdateParameters.cs b/Samples/openapi-v2/1c-multiple-input-swaggers/Client/Models/StorageAccountUpdateParameters.cs deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/1c-multiple-input-swaggers/Client/Models/StorageAccountUpdateParameters.cs +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/1c-multiple-input-swaggers/Client/Models/SuggesterSearchMode.cs b/Samples/openapi-v2/1c-multiple-input-swaggers/Client/Models/SuggesterSearchMode.cs deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/1c-multiple-input-swaggers/Client/Models/SuggesterSearchMode.cs +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/1c-multiple-input-swaggers/Client/Models/TagScoringParameters.cs b/Samples/openapi-v2/1c-multiple-input-swaggers/Client/Models/TagScoringParameters.cs deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/1c-multiple-input-swaggers/Client/Models/TagScoringParameters.cs +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/1c-multiple-input-swaggers/Client/Models/Usage.cs b/Samples/openapi-v2/1c-multiple-input-swaggers/Client/Models/Usage.cs deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/1c-multiple-input-swaggers/Client/Models/Usage.cs +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/1c-multiple-input-swaggers/Client/Models/UsageListResult.cs b/Samples/openapi-v2/1c-multiple-input-swaggers/Client/Models/UsageListResult.cs deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/1c-multiple-input-swaggers/Client/Models/UsageListResult.cs +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/1c-multiple-input-swaggers/Client/Models/UsageName.cs b/Samples/openapi-v2/1c-multiple-input-swaggers/Client/Models/UsageName.cs deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/1c-multiple-input-swaggers/Client/Models/UsageName.cs +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/1c-multiple-input-swaggers/Client/Models/UsageUnit.cs b/Samples/openapi-v2/1c-multiple-input-swaggers/Client/Models/UsageUnit.cs deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/1c-multiple-input-swaggers/Client/Models/UsageUnit.cs +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/1c-multiple-input-swaggers/Client/SearchandStorage.cs b/Samples/openapi-v2/1c-multiple-input-swaggers/Client/SearchandStorage.cs deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/1c-multiple-input-swaggers/Client/SearchandStorage.cs +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/1c-multiple-input-swaggers/Client/StorageAccounts.cs b/Samples/openapi-v2/1c-multiple-input-swaggers/Client/StorageAccounts.cs deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/1c-multiple-input-swaggers/Client/StorageAccounts.cs +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/1c-multiple-input-swaggers/Client/StorageAccountsExtensions.cs b/Samples/openapi-v2/1c-multiple-input-swaggers/Client/StorageAccountsExtensions.cs deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/1c-multiple-input-swaggers/Client/StorageAccountsExtensions.cs +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/1c-multiple-input-swaggers/Client/UsageOperations.cs b/Samples/openapi-v2/1c-multiple-input-swaggers/Client/UsageOperations.cs deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/1c-multiple-input-swaggers/Client/UsageOperations.cs +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/1c-multiple-input-swaggers/Client/UsageOperationsExtensions.cs b/Samples/openapi-v2/1c-multiple-input-swaggers/Client/UsageOperationsExtensions.cs deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/1c-multiple-input-swaggers/Client/UsageOperationsExtensions.cs +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/1c-multiple-input-swaggers/readme.md b/Samples/openapi-v2/1c-multiple-input-swaggers/readme.md deleted file mode 100644 index 9968e2c62a..0000000000 --- a/Samples/openapi-v2/1c-multiple-input-swaggers/readme.md +++ /dev/null @@ -1,53 +0,0 @@ -# Scenario: Client generation from multiple input OpenAPI definitions - -> see https://aka.ms/autorest - -## Inputs - -We want a single client to be created from the following OpenAPI definition files: - -``` yaml -input-file: - - https://github.com/Azure/azure-rest-api-specs/blob/d374d03801e97737ddb32e01f20513e7b2bbd9c3/search/2015-02-28/swagger/searchservice.json - - https://github.com/Azure/azure-rest-api-specs/blob/d374d03801e97737ddb32e01f20513e7b2bbd9c3/arm-storage/2015-06-15/swagger/storage.json -``` - -Since the info sections of the OpenAPI definition files differ, we choose a new title for the overall client: - -``` yaml -title: Search and Storage -``` - -## Generation - -``` yaml -csharp: - output-folder: Client -``` - -## Further artifacts - -``` yaml -output-folder: Artifacts -``` - -### Fully resolved OpenAPI definition - -To support tools unable to process multiple OpenAPI definitions or definitions with external references (`$ref: "#/definitions/SomeModel"`), AutoRest allows exporting a single, fully resolved OpenAPI definition without any external references that tools should be able to consume. - -``` yaml -output-artifact: - - swagger-document.norm.json - - swagger-document.norm.yaml -``` - -### Source maps - -AutoRest tries to create source maps for output artifacts. These will relate the artifact with the original input files which may be helpful for tools created around AutoRest. -For example, AutoRest uses the source map internally in order to relate validation messages back to the original files. - -``` yaml -output-artifact: - - swagger-document.norm.json.map - - swagger-document.norm.yaml.map -``` diff --git a/Samples/openapi-v2/1c-multiple-input-swaggers/shell/code.txt b/Samples/openapi-v2/1c-multiple-input-swaggers/shell/code.txt deleted file mode 100644 index c227083464..0000000000 --- a/Samples/openapi-v2/1c-multiple-input-swaggers/shell/code.txt +++ /dev/null @@ -1 +0,0 @@ -0 \ No newline at end of file diff --git a/Samples/openapi-v2/1c-multiple-input-swaggers/shell/stderr.txt b/Samples/openapi-v2/1c-multiple-input-swaggers/shell/stderr.txt deleted file mode 100644 index 8b13789179..0000000000 --- a/Samples/openapi-v2/1c-multiple-input-swaggers/shell/stderr.txt +++ /dev/null @@ -1 +0,0 @@ - diff --git a/Samples/openapi-v2/1c-multiple-input-swaggers/shell/stdout.txt b/Samples/openapi-v2/1c-multiple-input-swaggers/shell/stdout.txt deleted file mode 100644 index 17d46a9413..0000000000 --- a/Samples/openapi-v2/1c-multiple-input-swaggers/shell/stdout.txt +++ /dev/null @@ -1 +0,0 @@ -https://aka.ms/autorest diff --git a/Samples/openapi-v2/1d-common-settings/base/folder/AzureClient/IStorageAccountsOperations.cs b/Samples/openapi-v2/1d-common-settings/base/folder/AzureClient/IStorageAccountsOperations.cs deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/1d-common-settings/base/folder/AzureClient/IStorageAccountsOperations.cs +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/1d-common-settings/base/folder/AzureClient/IStorageManagementClient.cs b/Samples/openapi-v2/1d-common-settings/base/folder/AzureClient/IStorageManagementClient.cs deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/1d-common-settings/base/folder/AzureClient/IStorageManagementClient.cs +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/1d-common-settings/base/folder/AzureClient/IUsageOperations.cs b/Samples/openapi-v2/1d-common-settings/base/folder/AzureClient/IUsageOperations.cs deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/1d-common-settings/base/folder/AzureClient/IUsageOperations.cs +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/1d-common-settings/base/folder/AzureClient/Models/AccountStatus.cs b/Samples/openapi-v2/1d-common-settings/base/folder/AzureClient/Models/AccountStatus.cs deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/1d-common-settings/base/folder/AzureClient/Models/AccountStatus.cs +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/1d-common-settings/base/folder/AzureClient/Models/AccountType.cs b/Samples/openapi-v2/1d-common-settings/base/folder/AzureClient/Models/AccountType.cs deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/1d-common-settings/base/folder/AzureClient/Models/AccountType.cs +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/1d-common-settings/base/folder/AzureClient/Models/CheckNameAvailabilityResult.cs b/Samples/openapi-v2/1d-common-settings/base/folder/AzureClient/Models/CheckNameAvailabilityResult.cs deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/1d-common-settings/base/folder/AzureClient/Models/CheckNameAvailabilityResult.cs +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/1d-common-settings/base/folder/AzureClient/Models/CustomDomain.cs b/Samples/openapi-v2/1d-common-settings/base/folder/AzureClient/Models/CustomDomain.cs deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/1d-common-settings/base/folder/AzureClient/Models/CustomDomain.cs +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/1d-common-settings/base/folder/AzureClient/Models/Endpoints.cs b/Samples/openapi-v2/1d-common-settings/base/folder/AzureClient/Models/Endpoints.cs deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/1d-common-settings/base/folder/AzureClient/Models/Endpoints.cs +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/1d-common-settings/base/folder/AzureClient/Models/Page.cs b/Samples/openapi-v2/1d-common-settings/base/folder/AzureClient/Models/Page.cs deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/1d-common-settings/base/folder/AzureClient/Models/Page.cs +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/1d-common-settings/base/folder/AzureClient/Models/ProvisioningState.cs b/Samples/openapi-v2/1d-common-settings/base/folder/AzureClient/Models/ProvisioningState.cs deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/1d-common-settings/base/folder/AzureClient/Models/ProvisioningState.cs +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/1d-common-settings/base/folder/AzureClient/Models/Reason.cs b/Samples/openapi-v2/1d-common-settings/base/folder/AzureClient/Models/Reason.cs deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/1d-common-settings/base/folder/AzureClient/Models/Reason.cs +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/1d-common-settings/base/folder/AzureClient/Models/Resource.cs b/Samples/openapi-v2/1d-common-settings/base/folder/AzureClient/Models/Resource.cs deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/1d-common-settings/base/folder/AzureClient/Models/Resource.cs +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/1d-common-settings/base/folder/AzureClient/Models/StorageAccount.cs b/Samples/openapi-v2/1d-common-settings/base/folder/AzureClient/Models/StorageAccount.cs deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/1d-common-settings/base/folder/AzureClient/Models/StorageAccount.cs +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/1d-common-settings/base/folder/AzureClient/Models/StorageAccountCheckNameAvailabilityParameters.cs b/Samples/openapi-v2/1d-common-settings/base/folder/AzureClient/Models/StorageAccountCheckNameAvailabilityParameters.cs deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/1d-common-settings/base/folder/AzureClient/Models/StorageAccountCheckNameAvailabilityParameters.cs +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/1d-common-settings/base/folder/AzureClient/Models/StorageAccountCreateParameters.cs b/Samples/openapi-v2/1d-common-settings/base/folder/AzureClient/Models/StorageAccountCreateParameters.cs deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/1d-common-settings/base/folder/AzureClient/Models/StorageAccountCreateParameters.cs +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/1d-common-settings/base/folder/AzureClient/Models/StorageAccountKeys.cs b/Samples/openapi-v2/1d-common-settings/base/folder/AzureClient/Models/StorageAccountKeys.cs deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/1d-common-settings/base/folder/AzureClient/Models/StorageAccountKeys.cs +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/1d-common-settings/base/folder/AzureClient/Models/StorageAccountRegenerateKeyParameters.cs b/Samples/openapi-v2/1d-common-settings/base/folder/AzureClient/Models/StorageAccountRegenerateKeyParameters.cs deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/1d-common-settings/base/folder/AzureClient/Models/StorageAccountRegenerateKeyParameters.cs +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/1d-common-settings/base/folder/AzureClient/Models/StorageAccountUpdateParameters.cs b/Samples/openapi-v2/1d-common-settings/base/folder/AzureClient/Models/StorageAccountUpdateParameters.cs deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/1d-common-settings/base/folder/AzureClient/Models/StorageAccountUpdateParameters.cs +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/1d-common-settings/base/folder/AzureClient/Models/Usage.cs b/Samples/openapi-v2/1d-common-settings/base/folder/AzureClient/Models/Usage.cs deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/1d-common-settings/base/folder/AzureClient/Models/Usage.cs +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/1d-common-settings/base/folder/AzureClient/Models/UsageName.cs b/Samples/openapi-v2/1d-common-settings/base/folder/AzureClient/Models/UsageName.cs deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/1d-common-settings/base/folder/AzureClient/Models/UsageName.cs +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/1d-common-settings/base/folder/AzureClient/Models/UsageUnit.cs b/Samples/openapi-v2/1d-common-settings/base/folder/AzureClient/Models/UsageUnit.cs deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/1d-common-settings/base/folder/AzureClient/Models/UsageUnit.cs +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/1d-common-settings/base/folder/AzureClient/StorageAccountsOperations.cs b/Samples/openapi-v2/1d-common-settings/base/folder/AzureClient/StorageAccountsOperations.cs deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/1d-common-settings/base/folder/AzureClient/StorageAccountsOperations.cs +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/1d-common-settings/base/folder/AzureClient/StorageAccountsOperationsExtensions.cs b/Samples/openapi-v2/1d-common-settings/base/folder/AzureClient/StorageAccountsOperationsExtensions.cs deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/1d-common-settings/base/folder/AzureClient/StorageAccountsOperationsExtensions.cs +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/1d-common-settings/base/folder/AzureClient/StorageManagementClient.cs b/Samples/openapi-v2/1d-common-settings/base/folder/AzureClient/StorageManagementClient.cs deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/1d-common-settings/base/folder/AzureClient/StorageManagementClient.cs +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/1d-common-settings/base/folder/AzureClient/UsageOperations.cs b/Samples/openapi-v2/1d-common-settings/base/folder/AzureClient/UsageOperations.cs deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/1d-common-settings/base/folder/AzureClient/UsageOperations.cs +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/1d-common-settings/base/folder/AzureClient/UsageOperationsExtensions.cs b/Samples/openapi-v2/1d-common-settings/base/folder/AzureClient/UsageOperationsExtensions.cs deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/1d-common-settings/base/folder/AzureClient/UsageOperationsExtensions.cs +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/1d-common-settings/base/folder/Client/IStorageAccounts.cs b/Samples/openapi-v2/1d-common-settings/base/folder/Client/IStorageAccounts.cs deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/1d-common-settings/base/folder/Client/IStorageAccounts.cs +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/1d-common-settings/base/folder/Client/IStorageManagementClient.cs b/Samples/openapi-v2/1d-common-settings/base/folder/Client/IStorageManagementClient.cs deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/1d-common-settings/base/folder/Client/IStorageManagementClient.cs +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/1d-common-settings/base/folder/Client/IUsageOperations.cs b/Samples/openapi-v2/1d-common-settings/base/folder/Client/IUsageOperations.cs deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/1d-common-settings/base/folder/Client/IUsageOperations.cs +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/1d-common-settings/base/folder/Client/Models/AccountStatus.cs b/Samples/openapi-v2/1d-common-settings/base/folder/Client/Models/AccountStatus.cs deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/1d-common-settings/base/folder/Client/Models/AccountStatus.cs +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/1d-common-settings/base/folder/Client/Models/AccountType.cs b/Samples/openapi-v2/1d-common-settings/base/folder/Client/Models/AccountType.cs deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/1d-common-settings/base/folder/Client/Models/AccountType.cs +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/1d-common-settings/base/folder/Client/Models/CheckNameAvailabilityResult.cs b/Samples/openapi-v2/1d-common-settings/base/folder/Client/Models/CheckNameAvailabilityResult.cs deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/1d-common-settings/base/folder/Client/Models/CheckNameAvailabilityResult.cs +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/1d-common-settings/base/folder/Client/Models/CustomDomain.cs b/Samples/openapi-v2/1d-common-settings/base/folder/Client/Models/CustomDomain.cs deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/1d-common-settings/base/folder/Client/Models/CustomDomain.cs +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/1d-common-settings/base/folder/Client/Models/Endpoints.cs b/Samples/openapi-v2/1d-common-settings/base/folder/Client/Models/Endpoints.cs deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/1d-common-settings/base/folder/Client/Models/Endpoints.cs +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/1d-common-settings/base/folder/Client/Models/ProvisioningState.cs b/Samples/openapi-v2/1d-common-settings/base/folder/Client/Models/ProvisioningState.cs deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/1d-common-settings/base/folder/Client/Models/ProvisioningState.cs +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/1d-common-settings/base/folder/Client/Models/Reason.cs b/Samples/openapi-v2/1d-common-settings/base/folder/Client/Models/Reason.cs deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/1d-common-settings/base/folder/Client/Models/Reason.cs +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/1d-common-settings/base/folder/Client/Models/Resource.cs b/Samples/openapi-v2/1d-common-settings/base/folder/Client/Models/Resource.cs deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/1d-common-settings/base/folder/Client/Models/Resource.cs +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/1d-common-settings/base/folder/Client/Models/StorageAccount.cs b/Samples/openapi-v2/1d-common-settings/base/folder/Client/Models/StorageAccount.cs deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/1d-common-settings/base/folder/Client/Models/StorageAccount.cs +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/1d-common-settings/base/folder/Client/Models/StorageAccountCheckNameAvailabilityParameters.cs b/Samples/openapi-v2/1d-common-settings/base/folder/Client/Models/StorageAccountCheckNameAvailabilityParameters.cs deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/1d-common-settings/base/folder/Client/Models/StorageAccountCheckNameAvailabilityParameters.cs +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/1d-common-settings/base/folder/Client/Models/StorageAccountCreateParameters.cs b/Samples/openapi-v2/1d-common-settings/base/folder/Client/Models/StorageAccountCreateParameters.cs deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/1d-common-settings/base/folder/Client/Models/StorageAccountCreateParameters.cs +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/1d-common-settings/base/folder/Client/Models/StorageAccountKeys.cs b/Samples/openapi-v2/1d-common-settings/base/folder/Client/Models/StorageAccountKeys.cs deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/1d-common-settings/base/folder/Client/Models/StorageAccountKeys.cs +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/1d-common-settings/base/folder/Client/Models/StorageAccountListResult.cs b/Samples/openapi-v2/1d-common-settings/base/folder/Client/Models/StorageAccountListResult.cs deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/1d-common-settings/base/folder/Client/Models/StorageAccountListResult.cs +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/1d-common-settings/base/folder/Client/Models/StorageAccountRegenerateKeyParameters.cs b/Samples/openapi-v2/1d-common-settings/base/folder/Client/Models/StorageAccountRegenerateKeyParameters.cs deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/1d-common-settings/base/folder/Client/Models/StorageAccountRegenerateKeyParameters.cs +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/1d-common-settings/base/folder/Client/Models/StorageAccountUpdateParameters.cs b/Samples/openapi-v2/1d-common-settings/base/folder/Client/Models/StorageAccountUpdateParameters.cs deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/1d-common-settings/base/folder/Client/Models/StorageAccountUpdateParameters.cs +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/1d-common-settings/base/folder/Client/Models/Usage.cs b/Samples/openapi-v2/1d-common-settings/base/folder/Client/Models/Usage.cs deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/1d-common-settings/base/folder/Client/Models/Usage.cs +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/1d-common-settings/base/folder/Client/Models/UsageListResult.cs b/Samples/openapi-v2/1d-common-settings/base/folder/Client/Models/UsageListResult.cs deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/1d-common-settings/base/folder/Client/Models/UsageListResult.cs +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/1d-common-settings/base/folder/Client/Models/UsageName.cs b/Samples/openapi-v2/1d-common-settings/base/folder/Client/Models/UsageName.cs deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/1d-common-settings/base/folder/Client/Models/UsageName.cs +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/1d-common-settings/base/folder/Client/Models/UsageUnit.cs b/Samples/openapi-v2/1d-common-settings/base/folder/Client/Models/UsageUnit.cs deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/1d-common-settings/base/folder/Client/Models/UsageUnit.cs +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/1d-common-settings/base/folder/Client/StorageAccounts.cs b/Samples/openapi-v2/1d-common-settings/base/folder/Client/StorageAccounts.cs deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/1d-common-settings/base/folder/Client/StorageAccounts.cs +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/1d-common-settings/base/folder/Client/StorageAccountsExtensions.cs b/Samples/openapi-v2/1d-common-settings/base/folder/Client/StorageAccountsExtensions.cs deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/1d-common-settings/base/folder/Client/StorageAccountsExtensions.cs +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/1d-common-settings/base/folder/Client/StorageManagementClient.cs b/Samples/openapi-v2/1d-common-settings/base/folder/Client/StorageManagementClient.cs deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/1d-common-settings/base/folder/Client/StorageManagementClient.cs +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/1d-common-settings/base/folder/Client/UsageOperations.cs b/Samples/openapi-v2/1d-common-settings/base/folder/Client/UsageOperations.cs deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/1d-common-settings/base/folder/Client/UsageOperations.cs +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/1d-common-settings/base/folder/Client/UsageOperationsExtensions.cs b/Samples/openapi-v2/1d-common-settings/base/folder/Client/UsageOperationsExtensions.cs deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/1d-common-settings/base/folder/Client/UsageOperationsExtensions.cs +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/1d-common-settings/base/folder/generated/AwesomeNamespace.json b/Samples/openapi-v2/1d-common-settings/base/folder/generated/AwesomeNamespace.json deleted file mode 100644 index 59350b7446..0000000000 --- a/Samples/openapi-v2/1d-common-settings/base/folder/generated/AwesomeNamespace.json +++ /dev/null @@ -1,928 +0,0 @@ -{ - "swagger": "2.0", - "info": { - "version": "2015-06-15", - "title": "StorageManagementClient", - "description": "The Storage Management Client." - }, - "host": "management.azure.com", - "schemes": [ - "https" - ], - "security": [ - { - "azure_auth": [ - "user_impersonation" - ] - } - ], - "securityDefinitions": { - "azure_auth": { - "type": "oauth2", - "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", - "flow": "implicit", - "description": "Azure Active Directory OAuth2 Flow", - "scopes": { - "user_impersonation": "impersonate your user account" - } - } - }, - "paths": { - "/subscriptions/{subscriptionId}/providers/Microsoft.Storage/checkNameAvailability": { - "post": { - "tags": [ - "StorageAccounts" - ], - "operationId": "StorageAccounts_CheckNameAvailability", - "description": "Checks that account name is valid and is not in use.", - "parameters": [ - { - "name": "accountName", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/StorageAccountCheckNameAvailabilityParameters" - }, - "description": "The name of the storage account within the specified resource group. Storage account names must be between 3 and 24 characters in length and use numbers and lower-case letters only." - }, - { - "$ref": "#/parameters/ApiVersionParameter" - }, - { - "$ref": "#/parameters/SubscriptionIdParameter" - } - ], - "responses": { - "200": { - "description": "", - "schema": { - "$ref": "#/definitions/CheckNameAvailabilityResult" - } - } - }, - "produces": [ - "application/json", - "text/json" - ], - "consumes": [ - "application/json", - "text/json" - ] - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}": { - "put": { - "tags": [ - "StorageAccounts" - ], - "operationId": "StorageAccounts_Create", - "description": "Asynchronously creates a new storage account with the specified parameters. Existing accounts cannot be updated with this API and should instead use the Update Storage Account API. If an account is already created and subsequent PUT request is issued with exact same set of properties, then HTTP 200 would be returned. ", - "parameters": [ - { - "name": "resourceGroupName", - "in": "path", - "required": true, - "type": "string", - "description": "The name of the resource group within the user's subscription." - }, - { - "name": "accountName", - "in": "path", - "required": true, - "type": "string", - "description": "The name of the storage account within the specified resource group. Storage account names must be between 3 and 24 characters in length and use numbers and lower-case letters only. ", - "maxLength": 24, - "minLength": 3 - }, - { - "name": "parameters", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/StorageAccountCreateParameters" - }, - "description": "The parameters to provide for the created account." - }, - { - "$ref": "#/parameters/ApiVersionParameter" - }, - { - "$ref": "#/parameters/SubscriptionIdParameter" - } - ], - "responses": { - "200": { - "description": "", - "schema": { - "$ref": "#/definitions/StorageAccount" - } - }, - "202": { - "description": "" - } - }, - "x-ms-long-running-operation": true, - "produces": [ - "application/json", - "text/json" - ], - "consumes": [ - "application/json", - "text/json" - ] - }, - "delete": { - "tags": [ - "StorageAccounts" - ], - "operationId": "StorageAccounts_Delete", - "description": "Deletes a storage account in Microsoft Azure.", - "parameters": [ - { - "name": "resourceGroupName", - "in": "path", - "required": true, - "type": "string", - "description": "The name of the resource group within the user's subscription." - }, - { - "name": "accountName", - "in": "path", - "required": true, - "type": "string", - "description": "The name of the storage account within the specified resource group. Storage account names must be between 3 and 24 characters in length and use numbers and lower-case letters only. ", - "maxLength": 24, - "minLength": 3 - }, - { - "$ref": "#/parameters/ApiVersionParameter" - }, - { - "$ref": "#/parameters/SubscriptionIdParameter" - } - ], - "responses": { - "200": { - "description": "" - }, - "204": { - "description": "" - } - }, - "produces": [ - "application/json", - "text/json" - ], - "consumes": [ - "application/json", - "text/json" - ] - }, - "get": { - "tags": [ - "StorageAccounts" - ], - "operationId": "StorageAccounts_GetProperties", - "description": "Returns the properties for the specified storage account including but not limited to name, account type, location, and account status. The ListKeys operation should be used to retrieve storage keys.", - "parameters": [ - { - "name": "resourceGroupName", - "in": "path", - "required": true, - "type": "string", - "description": "The name of the resource group within the user's subscription." - }, - { - "name": "accountName", - "in": "path", - "required": true, - "type": "string", - "description": "The name of the storage account within the specified resource group. Storage account names must be between 3 and 24 characters in length and use numbers and lower-case letters only. ", - "maxLength": 24, - "minLength": 3 - }, - { - "$ref": "#/parameters/ApiVersionParameter" - }, - { - "$ref": "#/parameters/SubscriptionIdParameter" - } - ], - "responses": { - "200": { - "description": "", - "schema": { - "$ref": "#/definitions/StorageAccount" - } - } - }, - "produces": [ - "application/json", - "text/json" - ], - "consumes": [ - "application/json", - "text/json" - ] - }, - "patch": { - "tags": [ - "StorageAccounts" - ], - "operationId": "StorageAccounts_Update", - "description": "Updates the account type or tags for a storage account. It can also be used to add a custom domain (note that custom domains cannot be added via the Create operation). Only one custom domain is supported per storage account. In order to replace a custom domain, the old value must be cleared before a new value may be set. To clear a custom domain, simply update the custom domain with empty string. Then call update again with the new cutsom domain name. The update API can only be used to update one of tags, accountType, or customDomain per call. To update multiple of these properties, call the API multiple times with one change per call. This call does not change the storage keys for the account. If you want to change storage account keys, use the RegenerateKey operation. The location and name of the storage account cannot be changed after creation.", - "parameters": [ - { - "name": "resourceGroupName", - "in": "path", - "required": true, - "type": "string", - "description": "The name of the resource group within the user's subscription." - }, - { - "name": "accountName", - "in": "path", - "required": true, - "type": "string", - "description": "The name of the storage account within the specified resource group. Storage account names must be between 3 and 24 characters in length and use numbers and lower-case letters only. ", - "maxLength": 24, - "minLength": 3 - }, - { - "name": "parameters", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/StorageAccountUpdateParameters" - }, - "description": "The parameters to update on the account. Note that only one property can be changed at a time using this API. " - }, - { - "$ref": "#/parameters/ApiVersionParameter" - }, - { - "$ref": "#/parameters/SubscriptionIdParameter" - } - ], - "responses": { - "200": { - "description": "", - "schema": { - "$ref": "#/definitions/StorageAccount" - } - } - }, - "produces": [ - "application/json", - "text/json" - ], - "consumes": [ - "application/json", - "text/json" - ] - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/listKeys": { - "post": { - "tags": [ - "StorageAccounts" - ], - "operationId": "StorageAccounts_ListKeys", - "description": "Lists the access keys for the specified storage account.", - "parameters": [ - { - "name": "resourceGroupName", - "in": "path", - "required": true, - "type": "string", - "description": "The name of the resource group." - }, - { - "name": "accountName", - "in": "path", - "required": true, - "type": "string", - "description": "The name of the storage account.", - "maxLength": 24, - "minLength": 3 - }, - { - "$ref": "#/parameters/ApiVersionParameter" - }, - { - "$ref": "#/parameters/SubscriptionIdParameter" - } - ], - "responses": { - "200": { - "description": "", - "schema": { - "$ref": "#/definitions/StorageAccountKeys" - } - } - }, - "produces": [ - "application/json", - "text/json" - ], - "consumes": [ - "application/json", - "text/json" - ] - } - }, - "/subscriptions/{subscriptionId}/providers/Microsoft.Storage/storageAccounts": { - "get": { - "tags": [ - "StorageAccounts" - ], - "operationId": "StorageAccounts_List", - "description": "Lists all the storage accounts available under the subscription. Note that storage keys are not returned; use the ListKeys operation for this.", - "parameters": [ - { - "$ref": "#/parameters/ApiVersionParameter" - }, - { - "$ref": "#/parameters/SubscriptionIdParameter" - } - ], - "responses": { - "200": { - "description": "", - "schema": { - "$ref": "#/definitions/StorageAccountListResult" - } - } - }, - "x-ms-pageable": { - "nextLinkName": null - }, - "produces": [ - "application/json", - "text/json" - ], - "consumes": [ - "application/json", - "text/json" - ] - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts": { - "get": { - "tags": [ - "StorageAccounts" - ], - "operationId": "StorageAccounts_ListByResourceGroup", - "description": "Lists all the storage accounts available under the given resource group. Note that storage keys are not returned; use the ListKeys operation for this.", - "parameters": [ - { - "name": "resourceGroupName", - "in": "path", - "required": true, - "type": "string", - "description": "The name of the resource group within the user's subscription." - }, - { - "$ref": "#/parameters/ApiVersionParameter" - }, - { - "$ref": "#/parameters/SubscriptionIdParameter" - } - ], - "responses": { - "200": { - "description": "", - "schema": { - "$ref": "#/definitions/StorageAccountListResult" - } - } - }, - "x-ms-pageable": { - "nextLinkName": null - }, - "produces": [ - "application/json", - "text/json" - ], - "consumes": [ - "application/json", - "text/json" - ] - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/regenerateKey": { - "post": { - "tags": [ - "StorageAccounts" - ], - "operationId": "StorageAccounts_RegenerateKey", - "description": "Regenerates the access keys for the specified storage account.", - "parameters": [ - { - "name": "resourceGroupName", - "in": "path", - "required": true, - "type": "string", - "description": "The name of the resource group within the user's subscription." - }, - { - "name": "accountName", - "in": "path", - "required": true, - "type": "string", - "description": "The name of the storage account within the specified resource group. Storage account names must be between 3 and 24 characters in length and use numbers and lower-case letters only. ", - "maxLength": 24, - "minLength": 3 - }, - { - "name": "regenerateKey", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/StorageAccountRegenerateKeyParameters" - }, - "description": "Specifies name of the key which should be regenerated. key1 or key2 for the default keys" - }, - { - "$ref": "#/parameters/ApiVersionParameter" - }, - { - "$ref": "#/parameters/SubscriptionIdParameter" - } - ], - "responses": { - "200": { - "description": "", - "schema": { - "$ref": "#/definitions/StorageAccountKeys" - } - } - }, - "produces": [ - "application/json", - "text/json" - ], - "consumes": [ - "application/json", - "text/json" - ] - } - }, - "/subscriptions/{subscriptionId}/providers/Microsoft.Storage/usages": { - "get": { - "tags": [ - "Usage" - ], - "operationId": "Usage_List", - "description": "Gets the current usage count and the limit for the resources under the subscription.", - "parameters": [ - { - "$ref": "#/parameters/ApiVersionParameter" - }, - { - "$ref": "#/parameters/SubscriptionIdParameter" - } - ], - "responses": { - "200": { - "description": "", - "schema": { - "$ref": "#/definitions/UsageListResult" - } - } - }, - "x-ms-pageable": { - "nextLinkName": null - }, - "produces": [ - "application/json", - "text/json" - ], - "consumes": [ - "application/json", - "text/json" - ] - } - } - }, - "definitions": { - "StorageAccountCheckNameAvailabilityParameters": { - "properties": { - "name": { - "type": "string" - }, - "type": { - "type": "string", - "default": "Microsoft.Storage/storageAccounts" - } - }, - "required": [ - "name" - ] - }, - "CheckNameAvailabilityResult": { - "properties": { - "nameAvailable": { - "type": "boolean", - "description": "Gets a boolean value that indicates whether the name is available for you to use. If true, the name is available. If false, the name has already been taken or invalid and cannot be used." - }, - "reason": { - "type": "string", - "description": "Gets the reason that a storage account name could not be used. The Reason element is only returned if NameAvailable is false.", - "enum": [ - "AccountNameInvalid", - "AlreadyExists" - ], - "x-ms-enum": { - "name": "Reason", - "modelAsString": false, - "oldModelAsString": false - } - }, - "message": { - "type": "string", - "description": "Gets an error message explaining the Reason value in more detail." - } - }, - "description": "The CheckNameAvailability operation response." - }, - "StorageAccountPropertiesCreateParameters": { - "properties": { - "accountType": { - "type": "string", - "description": "Gets or sets the account type.", - "enum": [ - "Standard_LRS", - "Standard_ZRS", - "Standard_GRS", - "Standard_RAGRS", - "Premium_LRS" - ], - "x-ms-enum": { - "name": "AccountType", - "modelAsString": false, - "oldModelAsString": false - } - } - }, - "required": [ - "accountType" - ] - }, - "StorageAccountCreateParameters": { - "properties": { - "location": { - "type": "string", - "description": "Resource location" - }, - "tags": { - "type": "object", - "additionalProperties": { - "type": "string" - }, - "description": "Resource tags" - }, - "properties": { - "x-ms-client-flatten": true, - "$ref": "#/definitions/StorageAccountPropertiesCreateParameters" - } - }, - "required": [ - "location" - ], - "x-ms-azure-resource": true, - "description": "The parameters to provide for the account." - }, - "Endpoints": { - "properties": { - "blob": { - "type": "string", - "description": "Gets the blob endpoint." - }, - "queue": { - "type": "string", - "description": "Gets the queue endpoint." - }, - "table": { - "type": "string", - "description": "Gets the table endpoint." - }, - "file": { - "type": "string", - "description": "Gets the file endpoint." - } - }, - "description": "The URIs that are used to perform a retrieval of a public blob, queue or table object." - }, - "CustomDomain": { - "properties": { - "name": { - "type": "string", - "description": "Gets or sets the custom domain name. Name is the CNAME source." - }, - "useSubDomain": { - "type": "boolean", - "description": "Indicates whether indirect CName validation is enabled. Default value is false. This should only be set on updates" - } - }, - "required": [ - "name" - ], - "description": "The custom domain assigned to this storage account. This can be set via Update." - }, - "StorageAccountProperties": { - "properties": { - "provisioningState": { - "type": "string", - "description": "Gets the status of the storage account at the time the operation was called.", - "enum": [ - "Creating", - "ResolvingDNS", - "Succeeded" - ], - "x-ms-enum": { - "name": "ProvisioningState", - "modelAsString": false, - "oldModelAsString": false - } - }, - "accountType": { - "type": "string", - "description": "Gets the type of the storage account.", - "enum": [ - "Standard_LRS", - "Standard_ZRS", - "Standard_GRS", - "Standard_RAGRS", - "Premium_LRS" - ], - "x-ms-enum": { - "name": "AccountType", - "modelAsString": false, - "oldModelAsString": false - } - }, - "primaryEndpoints": { - "$ref": "#/definitions/Endpoints", - "description": "Gets the URLs that are used to perform a retrieval of a public blob, queue or table object.Note that StandardZRS and PremiumLRS accounts only return the blob endpoint." - }, - "primaryLocation": { - "type": "string", - "description": "Gets the location of the primary for the storage account." - }, - "statusOfPrimary": { - "type": "string", - "description": "Gets the status indicating whether the primary location of the storage account is available or unavailable.", - "enum": [ - "Available", - "Unavailable" - ], - "x-ms-enum": { - "name": "AccountStatus", - "modelAsString": false, - "oldModelAsString": false - } - }, - "lastGeoFailoverTime": { - "type": "string", - "format": "date-time", - "description": "Gets the timestamp of the most recent instance of a failover to the secondary location. Only the most recent timestamp is retained. This element is not returned if there has never been a failover instance. Only available if the accountType is StandardGRS or StandardRAGRS." - }, - "secondaryLocation": { - "type": "string", - "description": "Gets the location of the geo replicated secondary for the storage account. Only available if the accountType is StandardGRS or StandardRAGRS." - }, - "statusOfSecondary": { - "type": "string", - "description": "Gets the status indicating whether the secondary location of the storage account is available or unavailable. Only available if the accountType is StandardGRS or StandardRAGRS.", - "enum": [ - "Available", - "Unavailable" - ], - "x-ms-enum": { - "name": "AccountStatus", - "modelAsString": false, - "oldModelAsString": false - } - }, - "creationTime": { - "type": "string", - "format": "date-time", - "description": "Gets the creation date and time of the storage account in UTC." - }, - "customDomain": { - "$ref": "#/definitions/CustomDomain", - "description": "Gets the user assigned custom domain assigned to this storage account." - }, - "secondaryEndpoints": { - "$ref": "#/definitions/Endpoints", - "description": "Gets the URLs that are used to perform a retrieval of a public blob, queue or table object from the secondary location of the storage account. Only available if the accountType is StandardRAGRS." - } - } - }, - "StorageAccount": { - "properties": { - "properties": { - "x-ms-client-flatten": true, - "$ref": "#/definitions/StorageAccountProperties" - } - }, - "allOf": [ - { - "$ref": "#/definitions/Resource" - } - ], - "description": "The storage account." - }, - "StorageAccountKeys": { - "properties": { - "key1": { - "type": "string", - "description": "Gets the value of key 1." - }, - "key2": { - "type": "string", - "description": "Gets the value of key 2." - } - }, - "description": "The access keys for the storage account." - }, - "StorageAccountListResult": { - "properties": { - "value": { - "type": "array", - "items": { - "$ref": "#/definitions/StorageAccount" - }, - "description": "Gets the list of storage accounts and their properties." - } - }, - "description": "The list storage accounts operation response." - }, - "StorageAccountPropertiesUpdateParameters": { - "properties": { - "accountType": { - "type": "string", - "description": "Gets or sets the account type. Note that StandardZRS and PremiumLRS accounts cannot be changed to other account types, and other account types cannot be changed to StandardZRS or PremiumLRS.", - "enum": [ - "Standard_LRS", - "Standard_ZRS", - "Standard_GRS", - "Standard_RAGRS", - "Premium_LRS" - ], - "x-ms-enum": { - "name": "AccountType", - "modelAsString": false, - "oldModelAsString": false - } - }, - "customDomain": { - "$ref": "#/definitions/CustomDomain", - "description": "User domain assigned to the storage account. Name is the CNAME source. Only one custom domain is supported per storage account at this time. To clear the existing custom domain, use an empty string for the custom domain name property." - } - } - }, - "StorageAccountUpdateParameters": { - "properties": { - "tags": { - "type": "object", - "additionalProperties": { - "type": "string" - }, - "description": "Resource tags" - }, - "properties": { - "x-ms-client-flatten": true, - "$ref": "#/definitions/StorageAccountPropertiesUpdateParameters" - } - }, - "x-ms-azure-resource": true, - "description": "The parameters to update on the account." - }, - "StorageAccountRegenerateKeyParameters": { - "properties": { - "keyName": { - "type": "string" - } - }, - "required": [ - "keyName" - ] - }, - "UsageName": { - "properties": { - "value": { - "type": "string", - "description": "Gets a string describing the resource name." - }, - "localizedValue": { - "type": "string", - "description": "Gets a localized string describing the resource name." - } - }, - "description": "The Usage Names." - }, - "Usage": { - "properties": { - "unit": { - "type": "string", - "description": "Gets the unit of measurement.", - "enum": [ - "Count", - "Bytes", - "Seconds", - "Percent", - "CountsPerSecond", - "BytesPerSecond" - ], - "x-ms-enum": { - "name": "UsageUnit", - "modelAsString": false, - "oldModelAsString": false - } - }, - "currentValue": { - "type": "integer", - "format": "int32", - "description": "Gets the current count of the allocated resources in the subscription." - }, - "limit": { - "type": "integer", - "format": "int32", - "description": "Gets the maximum count of the resources that can be allocated in the subscription." - }, - "name": { - "$ref": "#/definitions/UsageName", - "description": "Gets the name of the type of usage." - } - }, - "required": [ - "unit", - "currentValue", - "limit", - "name" - ], - "description": "Describes Storage Resource Usage." - }, - "UsageListResult": { - "properties": { - "value": { - "type": "array", - "items": { - "$ref": "#/definitions/Usage" - }, - "description": "Gets or sets the list Storage Resource Usages." - } - }, - "description": "The List Usages operation response." - }, - "Resource": { - "properties": { - "id": { - "readOnly": true, - "type": "string", - "description": "Resource Id" - }, - "name": { - "readOnly": true, - "type": "string", - "description": "Resource name" - }, - "type": { - "readOnly": true, - "type": "string", - "description": "Resource type" - }, - "location": { - "type": "string", - "description": "Resource location" - }, - "tags": { - "type": "object", - "additionalProperties": { - "type": "string" - }, - "description": "Resource tags" - } - }, - "x-ms-azure-resource": true - } - }, - "parameters": { - "SubscriptionIdParameter": { - "name": "subscriptionId", - "in": "path", - "required": true, - "type": "string", - "description": "Gets subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call." - }, - "ApiVersionParameter": { - "name": "api-version", - "in": "query", - "required": true, - "type": "string", - "description": "Client Api Version." - } - } -} \ No newline at end of file diff --git a/Samples/openapi-v2/1d-common-settings/readme.md b/Samples/openapi-v2/1d-common-settings/readme.md deleted file mode 100644 index a8c79c1e3c..0000000000 --- a/Samples/openapi-v2/1d-common-settings/readme.md +++ /dev/null @@ -1,76 +0,0 @@ -# Scenario: Common settings available - -> see https://aka.ms/autorest - -## Standard - -The following settings have already been introduced in previous examples and are the starting point of this example - -``` yaml -input-file: https://github.com/Azure/azure-rest-api-specs/blob/d374d03801e97737ddb32e01f20513e7b2bbd9c3/arm-storage/2015-06-15/swagger/storage.json -csharp: - output-folder: Client -output-artifact: swagger-document.json -``` - -## Settings - -### Base Folder - -If the configuration file doesn't sit where the input files are or where the output is supposed to go, it can make sense to tell AutoRest "interpret *every path* relative to XY". -In this case, we wanna put *all* artifacts under a folder "base/folder" (this is a relative path, but absolute paths are supported as well). - -``` yaml -base-folder: base/folder -``` - -In practice, the base folder affects all relative paths specified in this configuration file. -Since the input file in this particular example is absolute (`http` URL), it is hence unaffected. -The output folder of C# generation on the other hand is affected. -Furthermore, the implicit output folder of the `output-artifacts` is affected. -Literally all relative file access takes the base folder into account. - -### Namespace - -Some generators allow setting/overwriting the namespace (should the concept of "namespaces" exist) used for the generated client. - -``` yaml -namespace: AwesomeNamespace -``` - -### License Header - -AutoRest allows specifying a license header prepended to all generated source files. -There are also predefined ones that are accessible using special strings: - -``` yaml -license-header: >- - This is my custom license header. - I am a nice person so please don't steal my code. - - - Cheers. -``` - -Usage of a predefined header can be found below. - -### Plugin Specific Settings - -Some settings are specific to plugins, such as: -- `add-credentials` which adds a `Credentials` property to C# Azure clients -- `sync-methods` which allows specifying whether synchronous wrappers for asynchronous methods should be generated (discouraged!) -- `payload-flattening-threshold` which controls whether a body parameter should be passed directly (as an argument to the generated method) or whether its properties should be passed as arguments. As the latter option makes sense for body parameter types with few properties (less overhead for `new`ing), this setting is a threshold specifying when to use which option. -- `client-side-validation` which controls whether or not client side validation of constrains such as `minLength`, `maximum` or `pattern` is desired -- `max-comment-columns` which controls the maximum number columns occupied by multiline comments - -``` yaml -csharp: - - output-folder: AzureClient - azure-arm: true - add-credentials: true # generates `Credentials` property - license-header: MICROSOFT_MIT_NO_VERSION # override the `license-header` defined at the top level. (see above) - sync-methods: none # other possible values: essential, all - payload-flattening-threshold: 3 # body parameter types with 3 or less properties cause method to expect those properties instead of an object - client-side-validation: false # disable client side validation - max-comment-columns: 80 # multiline comments shall not be wider than 80 characters -``` diff --git a/Samples/openapi-v2/1d-common-settings/shell/code.txt b/Samples/openapi-v2/1d-common-settings/shell/code.txt deleted file mode 100644 index c227083464..0000000000 --- a/Samples/openapi-v2/1d-common-settings/shell/code.txt +++ /dev/null @@ -1 +0,0 @@ -0 \ No newline at end of file diff --git a/Samples/openapi-v2/1d-common-settings/shell/stderr.txt b/Samples/openapi-v2/1d-common-settings/shell/stderr.txt deleted file mode 100644 index 8b13789179..0000000000 --- a/Samples/openapi-v2/1d-common-settings/shell/stderr.txt +++ /dev/null @@ -1 +0,0 @@ - diff --git a/Samples/openapi-v2/1d-common-settings/shell/stdout.txt b/Samples/openapi-v2/1d-common-settings/shell/stdout.txt deleted file mode 100644 index 17d46a9413..0000000000 --- a/Samples/openapi-v2/1d-common-settings/shell/stdout.txt +++ /dev/null @@ -1 +0,0 @@ -https://aka.ms/autorest diff --git a/Samples/openapi-v2/1e-help/readme.md b/Samples/openapi-v2/1e-help/readme.md deleted file mode 100644 index e9033f195b..0000000000 --- a/Samples/openapi-v2/1e-help/readme.md +++ /dev/null @@ -1,33 +0,0 @@ -# Scenario: Query command line help - -> see https://aka.ms/autorest - -There is generic help and help specific to plugins, which will actually be queried from extensions on the fly. -This allows extensions that we don't even know about to not only be usable but also discoverable through AutoRest. - -``` yaml -help: true # we wanna query for help in each of the following scenarios - -batch: - # no additional arguments => query for generic AutoRest help - - {} - # plugin specific help (on CLI you would say something like `autorest --help --csharp`) - - csharp: true - - azure-validator: true - - csharp: true - azure-arm: true # could provide customized help for this! - fluent: true - # combination (let's list everything *we* own to make sure it works) - - azureresourceschema: true - csharp: true - go: true - java: true - nodejs: true - php: true - python: true - ruby: true - typescript: true - azure-validator: true - model-validator: true - semantic-validator: true -``` \ No newline at end of file diff --git a/Samples/openapi-v2/1e-help/shell/code.txt b/Samples/openapi-v2/1e-help/shell/code.txt deleted file mode 100644 index c227083464..0000000000 --- a/Samples/openapi-v2/1e-help/shell/code.txt +++ /dev/null @@ -1 +0,0 @@ -0 \ No newline at end of file diff --git a/Samples/openapi-v2/1e-help/shell/stderr.txt b/Samples/openapi-v2/1e-help/shell/stderr.txt deleted file mode 100644 index 8b13789179..0000000000 --- a/Samples/openapi-v2/1e-help/shell/stderr.txt +++ /dev/null @@ -1 +0,0 @@ - diff --git a/Samples/openapi-v2/1e-help/shell/stdout.txt b/Samples/openapi-v2/1e-help/shell/stdout.txt deleted file mode 100644 index f613c289e4..0000000000 --- a/Samples/openapi-v2/1e-help/shell/stdout.txt +++ /dev/null @@ -1,284 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - More specific help is shown when combining the following switches with --help . - More specific help is shown when combining the following switches with --help . - More specific help is shown when combining the following switches with --help . - More specific help is shown when combining the following switches with --help . - More specific help is shown when combining the following switches with --help . - we officially support and maintain the following functionality. - we officially support and maintain the following functionality. - we officially support and maintain the following functionality. - we officially support and maintain the following functionality. - we officially support and maintain the following functionality. - While AutoRest can be extended arbitrarily by 3rd parties (say, with a custom generator), - While AutoRest can be extended arbitrarily by 3rd parties (say, with a custom generator), - While AutoRest can be extended arbitrarily by 3rd parties (say, with a custom generator), - While AutoRest can be extended arbitrarily by 3rd parties (say, with a custom generator), - While AutoRest can be extended arbitrarily by 3rd parties (say, with a custom generator), - --add-credentials include a credential property and constructor parameter supporting different authentication behaviors - --add-credentials include a credential property and constructor parameter supporting different authentication behaviors - --add-credentials include a credential property and constructor parameter supporting different authentication behaviors - --add-credentials include a credential property and constructor parameter supporting different authentication behaviors. This value is frozen to true if azure-arm=true. - --azure-arm generate code in Azure flavor - --azure-arm generate code in Azure flavor - --azure-arm generate code in Azure flavor - --azure-arm generate code in Azure flavor - --azure-validator validates an OpenAPI document against guidelines to improve quality (and optionally Azure guidelines) - --azure-validator validates an OpenAPI document against guidelines to improve quality (and optionally Azure guidelines) - --azure-validator validates an OpenAPI document against guidelines to improve quality (and optionally Azure guidelines) - --azure-validator validates an OpenAPI document against guidelines to improve quality (and optionally Azure guidelines) - --azure-validator validates an OpenAPI document against guidelines to improve quality (and optionally Azure guidelines) - --azureresourceschema generate Azure resource schemas - --azureresourceschema generate Azure resource schemas - --azureresourceschema generate Azure resource schemas - --azureresourceschema generate Azure resource schemas - --azureresourceschema generate Azure resource schemas - --base-folder= path to resolve relative paths (input/output files/folders) against; default: directory of configuration file, current directory otherwise - --base-folder= path to resolve relative paths (input/output files/folders) against; default: directory of configuration file, current directory otherwise - --base-folder= path to resolve relative paths (input/output files/folders) against; default: directory of configuration file, current directory otherwise - --base-folder= path to resolve relative paths (input/output files/folders) against; default: directory of configuration file, current directory otherwise - --base-folder= path to resolve relative paths (input/output files/folders) against; default: directory of configuration file, current directory otherwise - --basic-setup-py= If used, generate a basic setup.py to build a wheel package. - --clear-output-folder clear the output folder before writing generated artifacts to disk (use with extreme caution!) - --clear-output-folder clear the output folder before writing generated artifacts to disk (use with extreme caution!) - --clear-output-folder clear the output folder before writing generated artifacts to disk (use with extreme caution!) - --clear-output-folder clear the output folder before writing generated artifacts to disk (use with extreme caution!) - --clear-output-folder clear the output folder before writing generated artifacts to disk (use with extreme caution!) - --client-side-validation= whether to validate parametersat ... - --client-side-validation= whether to validate parametersat ... - --client-side-validation= whether to validate parametersat ... - --client-side-validation= whether to validate parametersat ... - --csharp generate C# client code - --csharp generate C# client code - --csharp generate C# client code - --csharp generate C# client code - --csharp generate C# client code - --debug display debug logging information - --debug display debug logging information - --debug display debug logging information - --debug display debug logging information - --debug display debug logging information - --fluent generate code in fluent flavor - --fluent generate code in fluent flavor - --fluent generate code in fluent flavor - --force force the re-installation of the autorest-core extension and frameworks - --force force the re-installation of the autorest-core extension and frameworks - --force force the re-installation of the autorest-core extension and frameworks - --force force the re-installation of the autorest-core extension and frameworks - --force force the re-installation of the autorest-core extension and frameworks - --github-auth-token= OAuth token to use when pointing AutoRestat ... - --github-auth-token= OAuth token to use when pointing AutoRestat ... - --github-auth-token= OAuth token to use when pointing AutoRestat ... - --github-auth-token= OAuth token to use when pointing AutoRestat ... - --github-auth-token= OAuth token to use when pointing AutoRestat ... - --go generate Go client code - --go generate Go client code - --go generate Go client code - --go generate Go client code - --go generate Go client code - --help display help (combine with flags like --csharp to get further details about specific functionality) - --help display help (combine with flags like --csharp to get further details about specific functionality) - --help display help (combine with flags like --csharp to get further details about specific functionality) - --help display help (combine with flags like --csharp to get further details about specific functionality) - --help display help (combine with flags like --csharp to get further details about specific functionality) - --info display information about the installed version of autorest and its extensions - --info display information about the installed version of autorest and its extensions - --info display information about the installed version of autorest and its extensions - --info display information about the installed version of autorest and its extensions - --info display information about the installed version of autorest and its extensions - --input-file= OpenAPI file to use as input (use this setting repeatedly to pass multiple filesat ... - --input-file= OpenAPI file to use as input (use this setting repeatedly to pass multiple filesat ... - --input-file= OpenAPI file to use as input (use this setting repeatedly to pass multiple filesat ... - --input-file= OpenAPI file to use as input (use this setting repeatedly to pass multiple filesat ... - --input-file= OpenAPI file to use as input (use this setting repeatedly to pass multiple filesat ... - --java generate Java client code - --java generate Java client code - --java generate Java client code - --java generate Java client code - --java generate Java client code - --latest installs the latest autorest-core extension - --latest installs the latest autorest-core extension - --latest installs the latest autorest-core extension - --latest installs the latest autorest-core extension - --latest installs the latest autorest-core extension - --license-header= text to include as a header comment in generated files (magic strings: MICROSOFT_MIT, MICROSOFT_APACHE, MICROSOFT_MIT_NO_VERSION, MICROSOFT_APACHE_NO_VERSION, MICROSOFT_MIT_NO_CODEGEN) - --license-header= text to include as a header comment in generated files (magic strings: MICROSOFT_MIT, MICROSOFT_APACHE, MICROSOFT_MIT_NO_VERSION, MICROSOFT_APACHE_NO_VERSION, MICROSOFT_MIT_NO_CODEGEN) - --license-header= text to include as a header comment in generated files (magic strings: MICROSOFT_MIT, MICROSOFT_APACHE, MICROSOFT_MIT_NO_VERSION, MICROSOFT_APACHE_NO_VERSION, MICROSOFT_MIT_NO_CODEGEN) - --license-header= text to include as a header comment in generated files (magic strings: MICROSOFT_MIT, MICROSOFT_APACHE, MICROSOFT_MIT_NO_VERSION, MICROSOFT_APACHE_NO_VERSION, MICROSOFT_MIT_NO_CODEGEN). Should be MICROSOFT_MIT_NO_VERSION. - --list-available display available AutoRest versions - --list-available display available AutoRest versions - --list-available display available AutoRest versions - --list-available display available AutoRest versions - --list-available display available AutoRest versions - --message-format=<"regular" | "json"> format of messages (e.g. from OpenAPI validation); default: "regular" - --message-format=<"regular" | "json"> format of messages (e.g. from OpenAPI validation); default: "regular" - --message-format=<"regular" | "json"> format of messages (e.g. from OpenAPI validation); default: "regular" - --message-format=<"regular" | "json"> format of messages (e.g. from OpenAPI validation); default: "regular" - --message-format=<"regular" | "json"> format of messages (e.g. from OpenAPI validation); default: "regular" - --model-validator validates an OpenAPI document against linked examples (see https://github.com/Azure/azure-rest-api-specs/search?q=x-ms-examples ) - --model-validator validates an OpenAPI document against linked examples (see https://github.com/Azure/azure-rest-api-specs/search?q=x-ms-examples ) - --model-validator validates an OpenAPI document against linked examples (see https://github.com/Azure/azure-rest-api-specs/search?q=x-ms-examples ) - --model-validator validates an OpenAPI document against linked examples (see https://github.com/Azure/azure-rest-api-specs/search?q=x-ms-examples ) - --model-validator validates an OpenAPI document against linked examples (see https://github.com/Azure/azure-rest-api-specs/search?q=x-ms-examples ) - --namespace= determines the namespace to be used in generated code. impacts folder structure. - --namespace= determines the root namespace to be used in generated code - --namespace= determines the root namespace to be used in generated code - --namespace= determines the root namespace to be used in generated code - --no-namespace-folders= If used, does not generate the namespace folder hierarchy, but directly the client. Useful for update. - --nodejs generate NodeJS client code - --nodejs generate NodeJS client code - --nodejs generate NodeJS client code - --nodejs generate NodeJS client code - --nodejs generate NodeJS client code - --output-file= generate all code into the specified, single file (instead of the usual folder structure) - --output-file= generate all code into the specified, single file (instead of the usual folder structure) - --output-file= generate all code into the specified, single file (instead of the usual folder structure) - --override-client-name= overrides the name of the client class (usually derived from $.info.title) - --override-client-name= overrides the name of the client class (usually derived from $.info.title) - --override-client-name= overrides the name of the client class (usually derived from $.info.title) - --override-client-name= overrides the name of the client class (usually derived from $.info.title) - --package-version= Distribution package version (i.e. PyPI). Impact version and UserAgent - --payload-flattening-threshold= max. number of properties in a request body. If the number of properties in the request body is less than or equal to this value, these properties will be represented as individual method arguments instead - --payload-flattening-threshold= max. number of properties in a request body. If the number of properties in the request body is less than or equal to this value, these properties will be represented as individual method arguments instead - --payload-flattening-threshold= max. number of properties in a request body. If the number of properties in the request body is less than or equal to this value, these properties will be represented as individual method arguments instead - --payload-flattening-threshold= max. number of properties in a request body. If the number of properties in the request body is less than or equal to this value, these properties will be represented as individual method arguments instead. Should be 2. - --php generate PHP client code - --php generate PHP client code - --php generate PHP client code - --php generate PHP client code - --php generate PHP client code - --preview enables using autorest extensions that are not yet released - --preview enables using autorest extensions that are not yet released - --preview enables using autorest extensions that are not yet released - --preview enables using autorest extensions that are not yet released - --preview enables using autorest extensions that are not yet released - --python generate Python client code - --python generate Python client code - --python generate Python client code - --python generate Python client code - --python generate Python client code - --reset removes all autorest extensions and downloads the latest version of the autorest-core extension - --reset removes all autorest extensions and downloads the latest version of the autorest-core extension - --reset removes all autorest extensions and downloads the latest version of the autorest-core extension - --reset removes all autorest extensions and downloads the latest version of the autorest-core extension - --reset removes all autorest extensions and downloads the latest version of the autorest-core extension - --ruby generate Ruby client code - --ruby generate Ruby client code - --ruby generate Ruby client code - --ruby generate Ruby client code - --ruby generate Ruby client code - --sample-generation generate sample code from x-ms-examples (experimental) - --sample-generation generate sample code from x-ms-examples (experimental) - --sample-generation generate sample code from x-ms-examples (experimental) - --static-serializer generate client serlializer settings as a static member (experimental) - --static-serializer generate client serlializer settings as a static member (experimental) - --static-serializer generate client serlializer settings as a static member (experimental) - --sync-methods=<"essential" | "all" | "none"> determines amount of synchronous wrappers to generate; default: essential - --sync-methods=<"essential" | "all" | "none"> determines amount of synchronous wrappers to generate; default: essential - --sync-methods=<"essential" | "all" | "none"> determines amount of synchronous wrappers to generate; default: essential - --typescript generate TypeScript client code - --typescript generate TypeScript client code - --typescript generate TypeScript client code - --typescript generate TypeScript client code - --typescript generate TypeScript client code - --use-datetimeoffset use DateTimeOffset instead of DateTime to model date/time types - --use-datetimeoffset use DateTimeOffset instead of DateTime to model date/time types - --use-datetimeoffset use DateTimeOffset instead of DateTime to model date/time types - --use-internal-constructors generate constructors with internal instead of public visibility (useful for convenience layers) - --use-internal-constructors generate constructors with internal instead of public visibility (useful for convenience layers) - --use-internal-constructors generate constructors with internal instead of public visibility (useful for convenience layers) - --verbose display verbose logging information - --verbose display verbose logging information - --verbose display verbose logging information - --verbose display verbose logging information - --verbose display verbose logging information - --version= use the specified version of the autorest-core extension - --version= use the specified version of the autorest-core extension - --version= use the specified version of the autorest-core extension - --version= use the specified version of the autorest-core extension - --version= use the specified version of the autorest-core extension - See: https://aka.ms/autorest/cli for additional documentation ---max-comment-columns= maximum line width of comments before breaking into a new line ---max-comment-columns= maximum line width of comments before breaking into a new line ---max-comment-columns= maximum line width of comments before breaking into a new line ---output-folder= target folder for generated artifacts; default: "/generated" ---output-folder= target folder for generated artifacts; default: "/generated" ---output-folder= target folder for generated artifacts; default: "/generated" ---output-folder= target folder for generated artifacts; default: "/generated" ---output-folder= target folder for generated artifacts; default: "/generated" ---package-name= Distribution package name (i.e. PyPI). Impact base folder and UserAgent -C# Generator (activated by --csharp) -C# Generator (activated by --csharp) -C# Generator (activated by --csharp) -Core Functionality -Core Functionality -Core Functionality -Core Functionality -Core Functionality -Core Settings and Switches -Core Settings and Switches -Core Settings and Switches -Core Settings and Switches -Core Settings and Switches -https://aka.ms/autorest -Manage Installation -Manage Installation -Manage Installation -Manage Installation -Manage Installation -Overall Verbosity -Overall Verbosity -Overall Verbosity -Overall Verbosity -Overall Verbosity -Processing batch task - {"azure-validator":true} . -Processing batch task - {"azureresourceschema":true,"csharp":true,"go":true,"java":true,"nodejs":true,"php":true,"python":true,"ruby":true,"typescript":true,"azure-validator":true,"model-validator":true,"semantic-validator":true} . -Processing batch task - {"csharp":true,"azure-arm":true,"fluent":true} . -Processing batch task - {"csharp":true} . -Processing batch task - {} . -Python Generator (activated by --python) -Usage: autorest [configuration-file.md] [...options] diff --git a/Samples/openapi-v2/1f-output-to-stdout/readme.md b/Samples/openapi-v2/1f-output-to-stdout/readme.md deleted file mode 100644 index 139579ee56..0000000000 --- a/Samples/openapi-v2/1f-output-to-stdout/readme.md +++ /dev/null @@ -1,13 +0,0 @@ -# Scenario: Output artifacts as messages - -> see https://aka.ms/autorest - -To wire AutoRest together with other command line tools, it might be helpful to emit generated artifacts on the command line. That way, another tool can consume the artifacts without involving the disk. - -``` yaml -input-file: tiny.yaml -output-folder: stdout:// -message-format: json -csharp: true -output-artifact: configuration.yaml -``` \ No newline at end of file diff --git a/Samples/openapi-v2/1f-output-to-stdout/shell/code.txt b/Samples/openapi-v2/1f-output-to-stdout/shell/code.txt deleted file mode 100644 index c227083464..0000000000 --- a/Samples/openapi-v2/1f-output-to-stdout/shell/code.txt +++ /dev/null @@ -1 +0,0 @@ -0 \ No newline at end of file diff --git a/Samples/openapi-v2/1f-output-to-stdout/shell/stderr.txt b/Samples/openapi-v2/1f-output-to-stdout/shell/stderr.txt deleted file mode 100644 index 8b13789179..0000000000 --- a/Samples/openapi-v2/1f-output-to-stdout/shell/stderr.txt +++ /dev/null @@ -1 +0,0 @@ - diff --git a/Samples/openapi-v2/1f-output-to-stdout/shell/stdout.txt b/Samples/openapi-v2/1f-output-to-stdout/shell/stdout.txt deleted file mode 100644 index 76a39675ca..0000000000 --- a/Samples/openapi-v2/1f-output-to-stdout/shell/stdout.txt +++ /dev/null @@ -1,43 +0,0 @@ - "content": "---\ndirective:\n - from: swagger-document\n where: $.definitions.*.additionalProperties\n transform: |\n return typeof $ === \"boolean\"\n ? ($ ? { type: \"object\" } : undefined)\n : $\n reason: polyfill\n - from: swagger-document\n where: >-\n $..*[?(typeof @.modelAsString === \"boolean\" && typeof @.oldModelAsString\n !== \"boolean\")]\n transform: $.oldModelAsString = $.modelAsString\ninput-file:\n - tiny.yaml\noutput-artifact:\n - configuration.yaml\n - preserved-files\n - source-file-csharp\n - source-file-jsonrpcclient\nrequire: []\ntry-require:\n - readme.clear-output-folder.md\n - readme.no-upgrade-check.md\n - readme.skip-upgrade-check.md\n - ./readme.csharp.md\nuse: []\nclear-output-folder: {}\nuse-extension:\n '@microsoft.azure/autorest.csharp': ~2.3.79\n '@microsoft.azure/autorest.modeler': 2.3.55\nversion: autorest-core\nno-upgrade-check: {}\nskip-upgrade-check: {}\noutput-folder: 'stdout://'\nmessage-format: json\ncsharp: true\ninfo: yaml\nazure-arm: false\nopenapi-type: arm\npipeline:\n swagger-document/reflect-api-versions-cs:\n input:\n - identity\n - individual/identity\n - csharp/emitter\n scope: reflect-api-versions\n suffixes: []\n swagger-document/reflect-api-versions-cs/emitter:\n input: reflect-api-versions-cs\n scope: scope-reflect-api-versions-cs-emitter\n suffixes: []\n pipeline-emitter:\n scope: scope-pipeline-emitter\n suffixes:\n - ''\n configuration-emitter:\n scope: scope-configuration-emitter\n suffixes:\n - ''\n swagger-document-override/md-override-loader:\n output-artifact: immediate-config\n scope: perform-load\n suffixes:\n - ''\n swagger-document/loader:\n output-artifact: swagger-document\n scope: perform-load\n suffixes:\n - ''\n swagger-document/individual/transform:\n input: loader\n output-artifact: swagger-document\n suffixes:\n - ''\n swagger-document/individual/schema-validator:\n input: transform\n output-artifact: swagger-document\n suffixes:\n - ''\n swagger-document/individual/identity:\n input: schema-validator\n output-artifact: swagger-document\n suffixes:\n - ''\n swagger-document/compose:\n input: individual/identity\n output-artifact: swagger-document\n suffixes:\n - ''\n swagger-document/transform-immediate:\n input:\n - swagger-document-override/md-override-loader\n - compose\n output-artifact: swagger-document\n suffixes:\n - ''\n swagger-document/transform:\n input: transform-immediate\n output-artifact: swagger-document\n suffixes:\n - ''\n swagger-document/identity:\n input: transform\n output-artifact: swagger-document\n suffixes:\n - ''\n swagger-document/emitter:\n input: identity\n scope: scope-swagger-document/emitter\n suffixes:\n - ''\n openapi-document/openapi-document-converter:\n input: swagger-document/identity\n output-artifact: openapi-document\n suffixes:\n - ''\n openapi-document/transform:\n input: openapi-document-converter\n output-artifact: openapi-document\n suffixes:\n - ''\n openapi-document/component-modifiers:\n input: transform\n output-artifact: openapi-document\n suffixes:\n - ''\n openapi-document/identity:\n input: component-modifiers\n output-artifact: openapi-document\n suffixes:\n - ''\n openapi-document/emitter:\n input: identity\n scope: scope-openapi-document/emitter\n suffixes:\n - ''\n swagger-document/model-validator:\n input: swagger-document/identity\n scope: model-validator\n suffixes: []\n swagger-document/semantic-validator:\n input: swagger-document/identity\n scope: semantic-validator\n suffixes: []\n csharp/imodeler1:\n input: openapi-document/identity\n output-artifact: code-model-v1\n scope: csharp\n suffixes:\n - ''\n csharp/commonmarker:\n input: imodeler1\n output-artifact: code-model-v1\n suffixes:\n - ''\n csharp/cm/transform:\n input: commonmarker\n output-artifact: code-model-v1\n suffixes:\n - ''\n csharp/cm/emitter:\n input: transform\n scope: scope-cm/emitter\n suffixes:\n - ''\n csharp/generate:\n plugin: csharp\n input: cm/transform\n output-artifact: source-file-csharp\n suffixes:\n - ''\n csharp/simplifier:\n plugin: csharp-simplifier\n input: generate\n output-artifact: source-file-csharp\n suffixes:\n - ''\n csharp/transform:\n input: simplifier\n output-artifact: source-file-csharp\n scope: scope-transform-string\n suffixes:\n - ''\n csharp/emitter:\n input: transform\n scope: scope-csharp/emitter\n suffixes:\n - ''\n jsonrpcclient/imodeler1:\n input: openapi-document/identity\n output-artifact: code-model-v1\n scope: jsonrpcclient\n suffixes: []\n jsonrpcclient/generate:\n plugin: jsonrpcclient\n input: imodeler1\n output-artifact: source-file-jsonrpcclient\n suffixes: []\n jsonrpcclient/transform:\n input: generate\n output-artifact: source-file-jsonrpcclient\n scope: scope-transform-string\n suffixes: []\n jsonrpcclient/emitter:\n input: transform\n scope: scope-jsonrpcclient/emitter\n suffixes: []\nscope-reflect-api-versions-cs-emitter:\n input-artifact: source-file-csharp\n output-uri-expr: $key\nscope-pipeline-emitter:\n input-artifact: pipeline\n is-object: true\n output-uri-expr: |\n \"pipeline\"\nscope-configuration-emitter:\n input-artifact: configuration\n is-object: true\n output-uri-expr: |\n \"configuration\"\nperform-load: true\nscope-swagger-document/emitter:\n input-artifact: swagger-document\n is-object: true\n output-uri-expr: >\n $config[\"output-file\"] || \n\n ($config.namespace ? $config.namespace.replace(/:/g,'_') : undefined) || \n\n $config[\"input-file\"][0].split('/').reverse()[0].split('\\\\').reverse()[0].replace(/\\.json$/,\n \"\")\nscope-openapi-document/emitter:\n input-artifact: openapi-document\n is-object: true\n output-uri-expr: >\n $config[\"output-file\"] || \n\n ($config.namespace ? $config.namespace.replace(/:/g,'_') : undefined) || \n\n $config[\"input-file\"][0].split('/').reverse()[0].split('\\\\').reverse()[0].replace(/\\.json$/,\n \"\")\nscope-cm/emitter:\n input-artifact: code-model-v1\n is-object: true\n output-uri-expr: |\n \"code-model-v1\"\nclient-side-validation: true\ndeclare-directive:\n set: '{ transform: return ${JSON.stringify($)} }'\n where-operation: |-\n (() => {\n switch ($context.from) {\n case \"code-model-v1\":\n return { from: \"code-model-v1\", where: $.operations[*].methods[?(@.serializedName == ${JSON.stringify($)})] };\n case \"swagger-document\":\n default:\n return { from: \"swagger-document\", where: $.paths.*[?(@.operationId == ${JSON.stringify($)})] };\n }\n })()\n where-model: |-\n (() => {\n switch ($context.from) {\n case \"code-model-v1\":\n throw \"not implemented\";\n case \"swagger-document\":\n default:\n return { from: \"swagger-document\", where: $.definitions[${JSON.stringify($)}] };\n }\n })()\n remove-operation: |-\n {\n from: 'swagger-document',\n \"where-operation\": $,\n transform: 'return undefined'\n }\n rename-operation: |-\n {\n from: 'swagger-document',\n \"where-operation\": $.from,\n transform: $.operationId = ${JSON.stringify($.to)}\n }\n remove-model: |-\n {\n from: 'swagger-document',\n \"where-model\": $,\n transform: 'return undefined'\n }\n rename-model: |-\n [{\n from: 'swagger-document',\n where: '$.definitions',\n transform: if ($[${JSON.stringify($.from)}]) { $[${JSON.stringify($.to)}] = $[${JSON.stringify($.from)}]; delete $[${JSON.stringify($.from)}]; }\n }, {\n from: 'swagger-document',\n where: $..['$ref'],\n transform: $ = $ === \"#/definitions/${$.from}\" ? \"#/definitions/${$.to}\" : $\n }]\n remove-property: |-\n {\n from: 'swagger-document',\n transform: delete $.properties[${JSON.stringify($)}]\n }\n rename-property: |-\n {\n from: 'swagger-document',\n transform: if ($.properties[${JSON.stringify($.from)}]) { $.properties[${JSON.stringify($.to)}] = $.properties[${JSON.stringify($.from)}]; delete $.properties[${JSON.stringify($.from)}]; }\n }\nused-extension:\n - '[\"@microsoft.azure/autorest.csharp\",\"~2.3.79\"]'\n - '[\"@microsoft.azure/autorest.modeler\",\"2.3.55\"]'\nscope-csharp/emitter:\n input-artifact: source-file-csharp\nscope-jsonrpcclient/emitter:\n input-artifact: source-file-jsonrpcclient\nhelp-content:\n csharp:\n activationScope: csharp\n categoryFriendlyName: 'C# Generator'\n settings:\n - key: azure-arm\n description: generate code in Azure flavor\n - key: fluent\n description: generate code in fluent flavor\n - key: namespace\n description: determines the root namespace to be used in generated code\n type: string\n required: true\n - key: license-header\n description: >-\n text to include as a header comment in generated files (magic strings:\n MICROSOFT_MIT, MICROSOFT_APACHE, MICROSOFT_MIT_NO_VERSION,\n MICROSOFT_APACHE_NO_VERSION, MICROSOFT_MIT_NO_CODEGEN)\n type: string\n - key: payload-flattening-threshold\n description: >-\n max. number of properties in a request body. If the number of\n properties in the request body is less than or equal to this value,\n these properties will be represented as individual method arguments\n instead\n type: number\n - key: add-credentials\n description: >-\n include a credential property and constructor parameter supporting\n different authentication behaviors\n - key: override-client-name\n description: >-\n overrides the name of the client class (usually derived from\n $.info.title)\n type: string\n - key: use-internal-constructors\n description: >-\n generate constructors with internal instead of public visibility\n (useful for convenience layers)\n - key: sync-methods\n description: >-\n determines amount of synchronous wrappers to generate; default:\n essential\n type: '\"essential\" | \"all\" | \"none\"'\n - key: use-datetimeoffset\n description: use DateTimeOffset instead of DateTime to model date/time types\n - key: client-side-validation\n description: >-\n whether to validate parametersat ... - "content": "// \r\n// Code generated by Microsoft (R) AutoRest Code Generator.\r\n// Changes may cause incorrect behavior and will be lost if the code is\r\n// regenerated.\r\n// \r\n\r\nnamespace Tiny.Models\r\n{\r\n using Microsoft.Rest;\r\n using Newtonsoft.Json;\r\n using System.Linq;\r\n\r\n /// \r\n /// A cowbell.\r\n /// \r\n public partial class Cowbell\r\n {\r\n /// \r\n /// Initializes a new instance of the Cowbell class.\r\n /// \r\n public Cowbell()\r\n {\r\n CustomInit();\r\n }\r\n\r\n /// \r\n /// Initializes a new instance of the Cowbell class.\r\n /// \r\n public Cowbell(string name, long? id = default(long?))\r\n {\r\n Id = id;\r\n Name = name;\r\n CustomInit();\r\n }\r\n\r\n /// \r\n /// An initialization method that performs custom operations like setting defaults\r\n /// \r\n partial void CustomInit();\r\n\r\n /// \r\n /// \r\n [JsonProperty(PropertyName = \"id\")]\r\n public long? Id { get; set; }\r\n\r\n /// \r\n /// \r\n [JsonProperty(PropertyName = \"name\")]\r\n public string Name { get; set; }\r\n\r\n /// \r\n /// Validate the object.\r\n /// \r\n /// \r\n /// Thrown if validation fails\r\n /// \r\n public virtual void Validate()\r\n {\r\n if (Name == null)\r\n {\r\n throw new ValidationException(ValidationRules.CannotBeNull, \"Name\");\r\n }\r\n }\r\n }\r\n}\r\n", - "content": "// \r\n// Code generated by Microsoft (R) AutoRest Code Generator.\r\n// Changes may cause incorrect behavior and will be lost if the code is\r\n// regenerated.\r\n// \r\n\r\nnamespace Tiny\r\n{\r\n using Microsoft.Rest;\r\n using Microsoft.Rest.Serialization;\r\n using Models;\r\n using Newtonsoft.Json;\r\n using System.Collections;\r\n using System.Collections.Generic;\r\n using System.Net;\r\n using System.Net.Http;\r\n\r\n /// \r\n /// This is a sample.\r\n /// \r\n public partial class CowbellFactory : ServiceClient, ICowbellFactory\r\n {\r\n /// \r\n /// The base URI of the service.\r\n /// \r\n public System.Uri BaseUri { get; set; }\r\n\r\n /// \r\n /// Gets or sets json serialization settings.\r\n /// \r\n public JsonSerializerSettings SerializationSettings { get; private set; }\r\n\r\n /// \r\n /// Gets or sets json deserialization settings.\r\n /// \r\n public JsonSerializerSettings DeserializationSettings { get; private set; }\r\n\r\n /// \r\n /// Gets the ICowbellOperations.\r\n /// \r\n public virtual ICowbellOperations Cowbell { get; private set; }\r\n\r\n /// \r\n /// Initializes a new instance of the CowbellFactory class.\r\n /// \r\n /// \r\n /// Optional. The delegating handlers to add to the http client pipeline.\r\n /// \r\n public CowbellFactory(params DelegatingHandler[] handlers) : base(handlers)\r\n {\r\n Initialize();\r\n }\r\n\r\n /// \r\n /// Initializes a new instance of the CowbellFactory class.\r\n /// \r\n /// \r\n /// Optional. The http client handler used to handle http transport.\r\n /// \r\n /// \r\n /// Optional. The delegating handlers to add to the http client pipeline.\r\n /// \r\n public CowbellFactory(HttpClientHandler rootHandler, params DelegatingHandler[] handlers) : base(rootHandler, handlers)\r\n {\r\n Initialize();\r\n }\r\n\r\n /// \r\n /// Initializes a new instance of the CowbellFactory class.\r\n /// \r\n /// \r\n /// Optional. The base URI of the service.\r\n /// \r\n /// \r\n /// Optional. The delegating handlers to add to the http client pipeline.\r\n /// \r\n /// \r\n /// Thrown when a required parameter is null\r\n /// \r\n public CowbellFactory(System.Uri baseUri, params DelegatingHandler[] handlers) : this(handlers)\r\n {\r\n if (baseUri == null)\r\n {\r\n throw new System.ArgumentNullException(\"baseUri\");\r\n }\r\n BaseUri = baseUri;\r\n }\r\n\r\n /// \r\n /// Initializes a new instance of the CowbellFactory class.\r\n /// \r\n /// \r\n /// Optional. The base URI of the service.\r\n /// \r\n /// \r\n /// Optional. The http client handler used to handle http transport.\r\n /// \r\n /// \r\n /// Optional. The delegating handlers to add to the http client pipeline.\r\n /// \r\n /// \r\n /// Thrown when a required parameter is null\r\n /// \r\n public CowbellFactory(System.Uri baseUri, HttpClientHandler rootHandler, params DelegatingHandler[] handlers) : this(rootHandler, handlers)\r\n {\r\n if (baseUri == null)\r\n {\r\n throw new System.ArgumentNullException(\"baseUri\");\r\n }\r\n BaseUri = baseUri;\r\n }\r\n\r\n /// \r\n /// An optional partial-method to perform custom initialization.\r\n ///\r\n partial void CustomInitialize();\r\n /// \r\n /// Initializes client properties.\r\n /// \r\n private void Initialize()\r\n {\r\n Cowbell = new CowbellOperations(this);\r\n BaseUri = new System.Uri(\"https://localhost\");\r\n SerializationSettings = new JsonSerializerSettings\r\n {\r\n Formatting = Newtonsoft.Json.Formatting.Indented,\r\n DateFormatHandling = Newtonsoft.Json.DateFormatHandling.IsoDateFormat,\r\n DateTimeZoneHandling = Newtonsoft.Json.DateTimeZoneHandling.Utc,\r\n NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore,\r\n ReferenceLoopHandling = Newtonsoft.Json.ReferenceLoopHandling.Serialize,\r\n ContractResolver = new ReadOnlyJsonContractResolver(),\r\n Converters = new List\r\n {\r\n new Iso8601TimeSpanConverter()\r\n }\r\n };\r\n DeserializationSettings = new JsonSerializerSettings\r\n {\r\n DateFormatHandling = Newtonsoft.Json.DateFormatHandling.IsoDateFormat,\r\n DateTimeZoneHandling = Newtonsoft.Json.DateTimeZoneHandling.Utc,\r\n NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore,\r\n ReferenceLoopHandling = Newtonsoft.Json.ReferenceLoopHandling.Serialize,\r\n ContractResolver = new ReadOnlyJsonContractResolver(),\r\n Converters = new List\r\n {\r\n new Iso8601TimeSpanConverter()\r\n }\r\n };\r\n CustomInitialize();\r\n }\r\n }\r\n}\r\n", - "content": "// \r\n// Code generated by Microsoft (R) AutoRest Code Generator.\r\n// Changes may cause incorrect behavior and will be lost if the code is\r\n// regenerated.\r\n// \r\n\r\nnamespace Tiny\r\n{\r\n using Microsoft.Rest;\r\n using Models;\r\n using System.Collections;\r\n using System.Collections.Generic;\r\n using System.IO;\r\n using System.Linq;\r\n using System.Net;\r\n using System.Net.Http;\r\n using System.Threading;\r\n using System.Threading.Tasks;\r\n\r\n /// \r\n /// CowbellOperations operations.\r\n /// \r\n public partial class CowbellOperations : IServiceOperations, ICowbellOperations\r\n {\r\n /// \r\n /// Initializes a new instance of the CowbellOperations class.\r\n /// \r\n /// \r\n /// Reference to the service client.\r\n /// \r\n /// \r\n /// Thrown when a required parameter is null\r\n /// \r\n public CowbellOperations(CowbellFactory client)\r\n {\r\n if (client == null)\r\n {\r\n throw new System.ArgumentNullException(\"client\");\r\n }\r\n Client = client;\r\n }\r\n\r\n /// \r\n /// Gets a reference to the CowbellFactory\r\n /// \r\n public CowbellFactory Client { get; private set; }\r\n\r\n /// \r\n /// A good description.\r\n /// \r\n /// \r\n /// \r\n /// \r\n /// Headers that will be added to request.\r\n /// \r\n /// \r\n /// The cancellation token.\r\n /// \r\n /// \r\n /// Thrown when the operation returned an invalid status code\r\n /// \r\n /// \r\n /// Thrown when a required parameter is null\r\n /// \r\n /// \r\n /// Thrown when a required parameter is null\r\n /// \r\n /// \r\n /// A response object containing the response body and response headers.\r\n /// \r\n public async Task AddWithHttpMessagesAsync(Cowbell body, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))\r\n {\r\n if (body == null)\r\n {\r\n throw new ValidationException(ValidationRules.CannotBeNull, \"body\");\r\n }\r\n if (body != null)\r\n {\r\n body.Validate();\r\n }\r\n // Tracing\r\n bool _shouldTrace = ServiceClientTracing.IsEnabled;\r\n string _invocationId = null;\r\n if (_shouldTrace)\r\n {\r\n _invocationId = ServiceClientTracing.NextInvocationId.ToString();\r\n Dictionary tracingParameters = new Dictionary();\r\n tracingParameters.Add(\"body\", body);\r\n tracingParameters.Add(\"cancellationToken\", cancellationToken);\r\n ServiceClientTracing.Enter(_invocationId, this, \"Add\", tracingParameters);\r\n }\r\n // Construct URL\r\n var _baseUrl = Client.BaseUri.AbsoluteUri;\r\n var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith(\"/\") ? \"\" : \"/\")), \"cowbell\").ToString();\r\n // Create HTTP transport objects\r\n var _httpRequest = new HttpRequestMessage();\r\n HttpResponseMessage _httpResponse = null;\r\n _httpRequest.Method = new HttpMethod(\"POST\");\r\n _httpRequest.RequestUri = new System.Uri(_url);\r\n // Set Headers\r\n\r\n\r\n if (customHeaders != null)\r\n {\r\n foreach(var _header in customHeaders)\r\n {\r\n if (_httpRequest.Headers.Contains(_header.Key))\r\n {\r\n _httpRequest.Headers.Remove(_header.Key);\r\n }\r\n _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value);\r\n }\r\n }\r\n\r\n // Serialize Request\r\n string _requestContent = null;\r\n if(body != null)\r\n {\r\n _requestContent = Microsoft.Rest.Serialization.SafeJsonConvert.SerializeObject(body, Client.SerializationSettings);\r\n _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8);\r\n _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse(\"application/json; charset=utf-8\");\r\n }\r\n // Send Request\r\n if (_shouldTrace)\r\n {\r\n ServiceClientTracing.SendRequest(_invocationId, _httpRequest);\r\n }\r\n cancellationToken.ThrowIfCancellationRequested();\r\n _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false);\r\n if (_shouldTrace)\r\n {\r\n ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse);\r\n }\r\n HttpStatusCode _statusCode = _httpResponse.StatusCode;\r\n cancellationToken.ThrowIfCancellationRequested();\r\n string _responseContent = null;\r\n if ((int)_statusCode != 200)\r\n {\r\n var ex = new HttpOperationException(string.Format(\"Operation returned an invalid status code '{0}'\", _statusCode));\r\n if (_httpResponse.Content != null) {\r\n _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false);\r\n }\r\n else {\r\n _responseContent = string.Empty;\r\n }\r\n ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent);\r\n ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent);\r\n if (_shouldTrace)\r\n {\r\n ServiceClientTracing.Error(_invocationId, ex);\r\n }\r\n _httpRequest.Dispose();\r\n if (_httpResponse != null)\r\n {\r\n _httpResponse.Dispose();\r\n }\r\n throw ex;\r\n }\r\n // Create Result\r\n var _result = new HttpOperationResponse();\r\n _result.Request = _httpRequest;\r\n _result.Response = _httpResponse;\r\n if (_shouldTrace)\r\n {\r\n ServiceClientTracing.Exit(_invocationId, _result);\r\n }\r\n return _result;\r\n }\r\n\r\n }\r\n}\r\n", - "content": "// \r\n// Code generated by Microsoft (R) AutoRest Code Generator.\r\n// Changes may cause incorrect behavior and will be lost if the code is\r\n// regenerated.\r\n// \r\n\r\nnamespace Tiny\r\n{\r\n using Microsoft.Rest;\r\n using Models;\r\n using System.Collections;\r\n using System.Collections.Generic;\r\n using System.Threading;\r\n using System.Threading.Tasks;\r\n\r\n /// \r\n /// CowbellOperations operations.\r\n /// \r\n public partial interface ICowbellOperations\r\n {\r\n /// \r\n /// A good description.\r\n /// \r\n /// \r\n /// \r\n /// \r\n /// The headers that will be added to request.\r\n /// \r\n /// \r\n /// The cancellation token.\r\n /// \r\n /// \r\n /// Thrown when the operation returned an invalid status code\r\n /// \r\n /// \r\n /// Thrown when a required parameter is null\r\n /// \r\n Task AddWithHttpMessagesAsync(Cowbell body, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));\r\n }\r\n}\r\n", - "content": "// \r\n// Code generated by Microsoft (R) AutoRest Code Generator.\r\n// Changes may cause incorrect behavior and will be lost if the code is\r\n// regenerated.\r\n// \r\n\r\nnamespace Tiny\r\n{\r\n using Models;\r\n using Newtonsoft.Json;\r\n\r\n /// \r\n /// This is a sample.\r\n /// \r\n public partial interface ICowbellFactory : System.IDisposable\r\n {\r\n /// \r\n /// The base URI of the service.\r\n /// \r\n System.Uri BaseUri { get; set; }\r\n\r\n /// \r\n /// Gets or sets json serialization settings.\r\n /// \r\n JsonSerializerSettings SerializationSettings { get; }\r\n\r\n /// \r\n /// Gets or sets json deserialization settings.\r\n /// \r\n JsonSerializerSettings DeserializationSettings { get; }\r\n\r\n\r\n /// \r\n /// Gets the ICowbellOperations.\r\n /// \r\n ICowbellOperations Cowbell { get; }\r\n\r\n }\r\n}\r\n", - "content": "// \r\n// Code generated by Microsoft (R) AutoRest Code Generator.\r\n// Changes may cause incorrect behavior and will be lost if the code is\r\n// regenerated.\r\n// \r\n\r\nnamespace Tiny\r\n{\r\n using Models;\r\n using System.Threading;\r\n using System.Threading.Tasks;\r\n\r\n /// \r\n /// Extension methods for CowbellOperations.\r\n /// \r\n public static partial class CowbellOperationsExtensions\r\n {\r\n /// \r\n /// A good description.\r\n /// \r\n /// \r\n /// The operations group for this extension method.\r\n /// \r\n /// \r\n /// \r\n public static void Add(this ICowbellOperations operations, Cowbell body)\r\n {\r\n operations.AddAsync(body).GetAwaiter().GetResult();\r\n }\r\n\r\n /// \r\n /// A good description.\r\n /// \r\n /// \r\n /// The operations group for this extension method.\r\n /// \r\n /// \r\n /// \r\n /// \r\n /// The cancellation token.\r\n /// \r\n public static async Task AddAsync(this ICowbellOperations operations, Cowbell body, CancellationToken cancellationToken = default(CancellationToken))\r\n {\r\n (await operations.AddWithHttpMessagesAsync(body, null, cancellationToken).ConfigureAwait(false)).Dispose();\r\n }\r\n\r\n }\r\n}\r\n", - "sources": [] - "sources": [] - "sources": [] - "sources": [] - "sources": [] - "sources": [] - "type": "configuration.yaml", - "type": "source-file-csharp", - "type": "source-file-csharp", - "type": "source-file-csharp", - "type": "source-file-csharp", - "type": "source-file-csharp", - "type": "source-file-csharp", - "uri": "stdout:///configuration.yaml", - "uri": "stdout:///CowbellFactory.cs", - "uri": "stdout:///CowbellOperations.cs", - "uri": "stdout:///CowbellOperationsExtensions.cs", - "uri": "stdout:///ICowbellFactory.cs", - "uri": "stdout:///ICowbellOperations.cs", - "uri": "stdout:///Models/Cowbell.cs", -"sources": [] -{ -{ -{ -{ -{ -{ -{ -} -} -} -} -} -} -} -https://aka.ms/autorest diff --git a/Samples/openapi-v2/1f-output-to-stdout/tiny.yaml b/Samples/openapi-v2/1f-output-to-stdout/tiny.yaml deleted file mode 100644 index f78d467427..0000000000 --- a/Samples/openapi-v2/1f-output-to-stdout/tiny.yaml +++ /dev/null @@ -1,37 +0,0 @@ -swagger: '2.0' -info: - description: This is a sample. - version: 1.0.0 - title: Cowbell Factory -host: localhost -schemes: -- https -consumes: -- application/json -produces: -- application/json -paths: - "/cowbell": - post: - description: A good description. - operationId: Cowbell_Add - parameters: - - in: body - name: body - required: true - schema: - $ref: '#/definitions/Cowbell' - responses: - '200': - description: Cowbell was added. -definitions: - Cowbell: - required: - - name - properties: - id: - type: integer - format: int64 - name: - type: string - description: A cowbell. diff --git a/Samples/openapi-v2/2a-validation/CSharp/IStorageAccountsOperations.cs b/Samples/openapi-v2/2a-validation/CSharp/IStorageAccountsOperations.cs deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/2a-validation/CSharp/IStorageAccountsOperations.cs +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/2a-validation/CSharp/IStorageManagementClient.cs b/Samples/openapi-v2/2a-validation/CSharp/IStorageManagementClient.cs deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/2a-validation/CSharp/IStorageManagementClient.cs +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/2a-validation/CSharp/IUsageOperations.cs b/Samples/openapi-v2/2a-validation/CSharp/IUsageOperations.cs deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/2a-validation/CSharp/IUsageOperations.cs +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/2a-validation/CSharp/Models/AccountStatus.cs b/Samples/openapi-v2/2a-validation/CSharp/Models/AccountStatus.cs deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/2a-validation/CSharp/Models/AccountStatus.cs +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/2a-validation/CSharp/Models/AccountType.cs b/Samples/openapi-v2/2a-validation/CSharp/Models/AccountType.cs deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/2a-validation/CSharp/Models/AccountType.cs +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/2a-validation/CSharp/Models/CheckNameAvailabilityResult.cs b/Samples/openapi-v2/2a-validation/CSharp/Models/CheckNameAvailabilityResult.cs deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/2a-validation/CSharp/Models/CheckNameAvailabilityResult.cs +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/2a-validation/CSharp/Models/CustomDomain.cs b/Samples/openapi-v2/2a-validation/CSharp/Models/CustomDomain.cs deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/2a-validation/CSharp/Models/CustomDomain.cs +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/2a-validation/CSharp/Models/Endpoints.cs b/Samples/openapi-v2/2a-validation/CSharp/Models/Endpoints.cs deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/2a-validation/CSharp/Models/Endpoints.cs +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/2a-validation/CSharp/Models/Page.cs b/Samples/openapi-v2/2a-validation/CSharp/Models/Page.cs deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/2a-validation/CSharp/Models/Page.cs +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/2a-validation/CSharp/Models/ProvisioningState.cs b/Samples/openapi-v2/2a-validation/CSharp/Models/ProvisioningState.cs deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/2a-validation/CSharp/Models/ProvisioningState.cs +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/2a-validation/CSharp/Models/Reason.cs b/Samples/openapi-v2/2a-validation/CSharp/Models/Reason.cs deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/2a-validation/CSharp/Models/Reason.cs +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/2a-validation/CSharp/Models/Resource.cs b/Samples/openapi-v2/2a-validation/CSharp/Models/Resource.cs deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/2a-validation/CSharp/Models/Resource.cs +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/2a-validation/CSharp/Models/StorageAccount.cs b/Samples/openapi-v2/2a-validation/CSharp/Models/StorageAccount.cs deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/2a-validation/CSharp/Models/StorageAccount.cs +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/2a-validation/CSharp/Models/StorageAccountCheckNameAvailabilityParameters.cs b/Samples/openapi-v2/2a-validation/CSharp/Models/StorageAccountCheckNameAvailabilityParameters.cs deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/2a-validation/CSharp/Models/StorageAccountCheckNameAvailabilityParameters.cs +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/2a-validation/CSharp/Models/StorageAccountCreateParameters.cs b/Samples/openapi-v2/2a-validation/CSharp/Models/StorageAccountCreateParameters.cs deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/2a-validation/CSharp/Models/StorageAccountCreateParameters.cs +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/2a-validation/CSharp/Models/StorageAccountKeys.cs b/Samples/openapi-v2/2a-validation/CSharp/Models/StorageAccountKeys.cs deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/2a-validation/CSharp/Models/StorageAccountKeys.cs +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/2a-validation/CSharp/Models/StorageAccountRegenerateKeyParameters.cs b/Samples/openapi-v2/2a-validation/CSharp/Models/StorageAccountRegenerateKeyParameters.cs deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/2a-validation/CSharp/Models/StorageAccountRegenerateKeyParameters.cs +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/2a-validation/CSharp/Models/StorageAccountUpdateParameters.cs b/Samples/openapi-v2/2a-validation/CSharp/Models/StorageAccountUpdateParameters.cs deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/2a-validation/CSharp/Models/StorageAccountUpdateParameters.cs +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/2a-validation/CSharp/Models/Usage.cs b/Samples/openapi-v2/2a-validation/CSharp/Models/Usage.cs deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/2a-validation/CSharp/Models/Usage.cs +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/2a-validation/CSharp/Models/UsageName.cs b/Samples/openapi-v2/2a-validation/CSharp/Models/UsageName.cs deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/2a-validation/CSharp/Models/UsageName.cs +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/2a-validation/CSharp/Models/UsageUnit.cs b/Samples/openapi-v2/2a-validation/CSharp/Models/UsageUnit.cs deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/2a-validation/CSharp/Models/UsageUnit.cs +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/2a-validation/CSharp/StorageAccountsOperations.cs b/Samples/openapi-v2/2a-validation/CSharp/StorageAccountsOperations.cs deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/2a-validation/CSharp/StorageAccountsOperations.cs +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/2a-validation/CSharp/StorageAccountsOperationsExtensions.cs b/Samples/openapi-v2/2a-validation/CSharp/StorageAccountsOperationsExtensions.cs deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/2a-validation/CSharp/StorageAccountsOperationsExtensions.cs +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/2a-validation/CSharp/StorageManagementClient.cs b/Samples/openapi-v2/2a-validation/CSharp/StorageManagementClient.cs deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/2a-validation/CSharp/StorageManagementClient.cs +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/2a-validation/CSharp/UsageOperations.cs b/Samples/openapi-v2/2a-validation/CSharp/UsageOperations.cs deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/2a-validation/CSharp/UsageOperations.cs +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/2a-validation/CSharp/UsageOperationsExtensions.cs b/Samples/openapi-v2/2a-validation/CSharp/UsageOperationsExtensions.cs deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/2a-validation/CSharp/UsageOperationsExtensions.cs +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/2a-validation/Java/src/main/java/StorageAccounts.java b/Samples/openapi-v2/2a-validation/Java/src/main/java/StorageAccounts.java deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/2a-validation/Java/src/main/java/StorageAccounts.java +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/2a-validation/Java/src/main/java/StorageManagementClient.java b/Samples/openapi-v2/2a-validation/Java/src/main/java/StorageManagementClient.java deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/2a-validation/Java/src/main/java/StorageManagementClient.java +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/2a-validation/Java/src/main/java/Usages.java b/Samples/openapi-v2/2a-validation/Java/src/main/java/Usages.java deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/2a-validation/Java/src/main/java/Usages.java +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/2a-validation/Java/src/main/java/implementation/StorageAccountsImpl.java b/Samples/openapi-v2/2a-validation/Java/src/main/java/implementation/StorageAccountsImpl.java deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/2a-validation/Java/src/main/java/implementation/StorageAccountsImpl.java +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/2a-validation/Java/src/main/java/implementation/StorageManagementClientImpl.java b/Samples/openapi-v2/2a-validation/Java/src/main/java/implementation/StorageManagementClientImpl.java deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/2a-validation/Java/src/main/java/implementation/StorageManagementClientImpl.java +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/2a-validation/Java/src/main/java/implementation/UsagesImpl.java b/Samples/openapi-v2/2a-validation/Java/src/main/java/implementation/UsagesImpl.java deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/2a-validation/Java/src/main/java/implementation/UsagesImpl.java +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/2a-validation/Java/src/main/java/implementation/package-info.java b/Samples/openapi-v2/2a-validation/Java/src/main/java/implementation/package-info.java deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/2a-validation/Java/src/main/java/implementation/package-info.java +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/2a-validation/Java/src/main/java/models/AccountStatus.java b/Samples/openapi-v2/2a-validation/Java/src/main/java/models/AccountStatus.java deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/2a-validation/Java/src/main/java/models/AccountStatus.java +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/2a-validation/Java/src/main/java/models/AccountType.java b/Samples/openapi-v2/2a-validation/Java/src/main/java/models/AccountType.java deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/2a-validation/Java/src/main/java/models/AccountType.java +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/2a-validation/Java/src/main/java/models/CheckNameAvailabilityResult.java b/Samples/openapi-v2/2a-validation/Java/src/main/java/models/CheckNameAvailabilityResult.java deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/2a-validation/Java/src/main/java/models/CheckNameAvailabilityResult.java +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/2a-validation/Java/src/main/java/models/CustomDomain.java b/Samples/openapi-v2/2a-validation/Java/src/main/java/models/CustomDomain.java deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/2a-validation/Java/src/main/java/models/CustomDomain.java +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/2a-validation/Java/src/main/java/models/Endpoints.java b/Samples/openapi-v2/2a-validation/Java/src/main/java/models/Endpoints.java deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/2a-validation/Java/src/main/java/models/Endpoints.java +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/2a-validation/Java/src/main/java/models/PageImpl.java b/Samples/openapi-v2/2a-validation/Java/src/main/java/models/PageImpl.java deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/2a-validation/Java/src/main/java/models/PageImpl.java +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/2a-validation/Java/src/main/java/models/ProvisioningState.java b/Samples/openapi-v2/2a-validation/Java/src/main/java/models/ProvisioningState.java deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/2a-validation/Java/src/main/java/models/ProvisioningState.java +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/2a-validation/Java/src/main/java/models/Reason.java b/Samples/openapi-v2/2a-validation/Java/src/main/java/models/Reason.java deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/2a-validation/Java/src/main/java/models/Reason.java +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/2a-validation/Java/src/main/java/models/StorageAccount.java b/Samples/openapi-v2/2a-validation/Java/src/main/java/models/StorageAccount.java deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/2a-validation/Java/src/main/java/models/StorageAccount.java +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/2a-validation/Java/src/main/java/models/StorageAccountCheckNameAvailabilityParameters.java b/Samples/openapi-v2/2a-validation/Java/src/main/java/models/StorageAccountCheckNameAvailabilityParameters.java deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/2a-validation/Java/src/main/java/models/StorageAccountCheckNameAvailabilityParameters.java +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/2a-validation/Java/src/main/java/models/StorageAccountCreateParameters.java b/Samples/openapi-v2/2a-validation/Java/src/main/java/models/StorageAccountCreateParameters.java deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/2a-validation/Java/src/main/java/models/StorageAccountCreateParameters.java +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/2a-validation/Java/src/main/java/models/StorageAccountKeys.java b/Samples/openapi-v2/2a-validation/Java/src/main/java/models/StorageAccountKeys.java deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/2a-validation/Java/src/main/java/models/StorageAccountKeys.java +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/2a-validation/Java/src/main/java/models/StorageAccountRegenerateKeyParameters.java b/Samples/openapi-v2/2a-validation/Java/src/main/java/models/StorageAccountRegenerateKeyParameters.java deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/2a-validation/Java/src/main/java/models/StorageAccountRegenerateKeyParameters.java +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/2a-validation/Java/src/main/java/models/StorageAccountUpdateParameters.java b/Samples/openapi-v2/2a-validation/Java/src/main/java/models/StorageAccountUpdateParameters.java deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/2a-validation/Java/src/main/java/models/StorageAccountUpdateParameters.java +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/2a-validation/Java/src/main/java/models/Usage.java b/Samples/openapi-v2/2a-validation/Java/src/main/java/models/Usage.java deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/2a-validation/Java/src/main/java/models/Usage.java +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/2a-validation/Java/src/main/java/models/UsageName.java b/Samples/openapi-v2/2a-validation/Java/src/main/java/models/UsageName.java deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/2a-validation/Java/src/main/java/models/UsageName.java +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/2a-validation/Java/src/main/java/models/UsageUnit.java b/Samples/openapi-v2/2a-validation/Java/src/main/java/models/UsageUnit.java deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/2a-validation/Java/src/main/java/models/UsageUnit.java +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/2a-validation/Java/src/main/java/models/package-info.java b/Samples/openapi-v2/2a-validation/Java/src/main/java/models/package-info.java deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/2a-validation/Java/src/main/java/models/package-info.java +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/2a-validation/Java/src/main/java/package-info.java b/Samples/openapi-v2/2a-validation/Java/src/main/java/package-info.java deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/2a-validation/Java/src/main/java/package-info.java +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/2a-validation/NodeJS/LICENSE.txt b/Samples/openapi-v2/2a-validation/NodeJS/LICENSE.txt deleted file mode 100644 index a70e8cf660..0000000000 --- a/Samples/openapi-v2/2a-validation/NodeJS/LICENSE.txt +++ /dev/null @@ -1,21 +0,0 @@ -The MIT License (MIT) - -Copyright (c) 2018 Microsoft - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. diff --git a/Samples/openapi-v2/2a-validation/NodeJS/lib/models/checkNameAvailabilityResult.js b/Samples/openapi-v2/2a-validation/NodeJS/lib/models/checkNameAvailabilityResult.js deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/2a-validation/NodeJS/lib/models/checkNameAvailabilityResult.js +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/2a-validation/NodeJS/lib/models/customDomain.js b/Samples/openapi-v2/2a-validation/NodeJS/lib/models/customDomain.js deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/2a-validation/NodeJS/lib/models/customDomain.js +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/2a-validation/NodeJS/lib/models/endpoints.js b/Samples/openapi-v2/2a-validation/NodeJS/lib/models/endpoints.js deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/2a-validation/NodeJS/lib/models/endpoints.js +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/2a-validation/NodeJS/lib/models/index.js b/Samples/openapi-v2/2a-validation/NodeJS/lib/models/index.js deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/2a-validation/NodeJS/lib/models/index.js +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/2a-validation/NodeJS/lib/models/resource.js b/Samples/openapi-v2/2a-validation/NodeJS/lib/models/resource.js deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/2a-validation/NodeJS/lib/models/resource.js +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/2a-validation/NodeJS/lib/models/storageAccount.js b/Samples/openapi-v2/2a-validation/NodeJS/lib/models/storageAccount.js deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/2a-validation/NodeJS/lib/models/storageAccount.js +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/2a-validation/NodeJS/lib/models/storageAccountCheckNameAvailabilityParameters.js b/Samples/openapi-v2/2a-validation/NodeJS/lib/models/storageAccountCheckNameAvailabilityParameters.js deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/2a-validation/NodeJS/lib/models/storageAccountCheckNameAvailabilityParameters.js +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/2a-validation/NodeJS/lib/models/storageAccountCreateParameters.js b/Samples/openapi-v2/2a-validation/NodeJS/lib/models/storageAccountCreateParameters.js deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/2a-validation/NodeJS/lib/models/storageAccountCreateParameters.js +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/2a-validation/NodeJS/lib/models/storageAccountKeys.js b/Samples/openapi-v2/2a-validation/NodeJS/lib/models/storageAccountKeys.js deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/2a-validation/NodeJS/lib/models/storageAccountKeys.js +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/2a-validation/NodeJS/lib/models/storageAccountListResult.js b/Samples/openapi-v2/2a-validation/NodeJS/lib/models/storageAccountListResult.js deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/2a-validation/NodeJS/lib/models/storageAccountListResult.js +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/2a-validation/NodeJS/lib/models/storageAccountRegenerateKeyParameters.js b/Samples/openapi-v2/2a-validation/NodeJS/lib/models/storageAccountRegenerateKeyParameters.js deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/2a-validation/NodeJS/lib/models/storageAccountRegenerateKeyParameters.js +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/2a-validation/NodeJS/lib/models/storageAccountUpdateParameters.js b/Samples/openapi-v2/2a-validation/NodeJS/lib/models/storageAccountUpdateParameters.js deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/2a-validation/NodeJS/lib/models/storageAccountUpdateParameters.js +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/2a-validation/NodeJS/lib/models/usage.js b/Samples/openapi-v2/2a-validation/NodeJS/lib/models/usage.js deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/2a-validation/NodeJS/lib/models/usage.js +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/2a-validation/NodeJS/lib/models/usageListResult.js b/Samples/openapi-v2/2a-validation/NodeJS/lib/models/usageListResult.js deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/2a-validation/NodeJS/lib/models/usageListResult.js +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/2a-validation/NodeJS/lib/models/usageName.js b/Samples/openapi-v2/2a-validation/NodeJS/lib/models/usageName.js deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/2a-validation/NodeJS/lib/models/usageName.js +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/2a-validation/NodeJS/lib/operations/index.js b/Samples/openapi-v2/2a-validation/NodeJS/lib/operations/index.js deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/2a-validation/NodeJS/lib/operations/index.js +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/2a-validation/NodeJS/lib/operations/storageAccounts.js b/Samples/openapi-v2/2a-validation/NodeJS/lib/operations/storageAccounts.js deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/2a-validation/NodeJS/lib/operations/storageAccounts.js +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/2a-validation/NodeJS/lib/operations/usageOperations.js b/Samples/openapi-v2/2a-validation/NodeJS/lib/operations/usageOperations.js deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/2a-validation/NodeJS/lib/operations/usageOperations.js +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/2a-validation/NodeJS/lib/storageManagementClient.js b/Samples/openapi-v2/2a-validation/NodeJS/lib/storageManagementClient.js deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/2a-validation/NodeJS/lib/storageManagementClient.js +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/2a-validation/NodeJS/package.json b/Samples/openapi-v2/2a-validation/NodeJS/package.json deleted file mode 100644 index 2155bc5c51..0000000000 --- a/Samples/openapi-v2/2a-validation/NodeJS/package.json +++ /dev/null @@ -1,25 +0,0 @@ -{ - "name": "", - "author": "Microsoft Corporation", - "description": "StorageManagementClient Library with typescript type definitions for node", - "version": "", - "dependencies": { - "ms-rest": "^2.3.3", - "ms-rest-azure": "^2.5.5" - }, - "keywords": [ - "node", - "azure" - ], - "license": "MIT", - "main": "./lib/storageManagementClient.js", - "types": "./lib/storageManagementClient.d.ts", - "homepage": "https://github.com/azure/azure-sdk-for-node", - "repository": { - "type": "git", - "url": "https://github.com/azure/azure-sdk-for-node.git" - }, - "bugs": { - "url": "https://github.com/azure/azure-sdk-for-node/issues" - } -} diff --git a/Samples/openapi-v2/2a-validation/Python/storage/__init__.py b/Samples/openapi-v2/2a-validation/Python/storage/__init__.py deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/2a-validation/Python/storage/__init__.py +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/2a-validation/Python/storage/models/__init__.py b/Samples/openapi-v2/2a-validation/Python/storage/models/__init__.py deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/2a-validation/Python/storage/models/__init__.py +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/2a-validation/Python/storage/models/check_name_availability_result.py b/Samples/openapi-v2/2a-validation/Python/storage/models/check_name_availability_result.py deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/2a-validation/Python/storage/models/check_name_availability_result.py +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/2a-validation/Python/storage/models/custom_domain.py b/Samples/openapi-v2/2a-validation/Python/storage/models/custom_domain.py deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/2a-validation/Python/storage/models/custom_domain.py +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/2a-validation/Python/storage/models/endpoints.py b/Samples/openapi-v2/2a-validation/Python/storage/models/endpoints.py deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/2a-validation/Python/storage/models/endpoints.py +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/2a-validation/Python/storage/models/resource.py b/Samples/openapi-v2/2a-validation/Python/storage/models/resource.py deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/2a-validation/Python/storage/models/resource.py +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/2a-validation/Python/storage/models/storage_account.py b/Samples/openapi-v2/2a-validation/Python/storage/models/storage_account.py deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/2a-validation/Python/storage/models/storage_account.py +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/2a-validation/Python/storage/models/storage_account_check_name_availability_parameters.py b/Samples/openapi-v2/2a-validation/Python/storage/models/storage_account_check_name_availability_parameters.py deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/2a-validation/Python/storage/models/storage_account_check_name_availability_parameters.py +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/2a-validation/Python/storage/models/storage_account_create_parameters.py b/Samples/openapi-v2/2a-validation/Python/storage/models/storage_account_create_parameters.py deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/2a-validation/Python/storage/models/storage_account_create_parameters.py +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/2a-validation/Python/storage/models/storage_account_keys.py b/Samples/openapi-v2/2a-validation/Python/storage/models/storage_account_keys.py deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/2a-validation/Python/storage/models/storage_account_keys.py +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/2a-validation/Python/storage/models/storage_account_paged.py b/Samples/openapi-v2/2a-validation/Python/storage/models/storage_account_paged.py deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/2a-validation/Python/storage/models/storage_account_paged.py +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/2a-validation/Python/storage/models/storage_account_regenerate_key_parameters.py b/Samples/openapi-v2/2a-validation/Python/storage/models/storage_account_regenerate_key_parameters.py deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/2a-validation/Python/storage/models/storage_account_regenerate_key_parameters.py +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/2a-validation/Python/storage/models/storage_account_update_parameters.py b/Samples/openapi-v2/2a-validation/Python/storage/models/storage_account_update_parameters.py deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/2a-validation/Python/storage/models/storage_account_update_parameters.py +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/2a-validation/Python/storage/models/storage_management_client_enums.py b/Samples/openapi-v2/2a-validation/Python/storage/models/storage_management_client_enums.py deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/2a-validation/Python/storage/models/storage_management_client_enums.py +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/2a-validation/Python/storage/models/usage.py b/Samples/openapi-v2/2a-validation/Python/storage/models/usage.py deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/2a-validation/Python/storage/models/usage.py +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/2a-validation/Python/storage/models/usage_name.py b/Samples/openapi-v2/2a-validation/Python/storage/models/usage_name.py deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/2a-validation/Python/storage/models/usage_name.py +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/2a-validation/Python/storage/models/usage_paged.py b/Samples/openapi-v2/2a-validation/Python/storage/models/usage_paged.py deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/2a-validation/Python/storage/models/usage_paged.py +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/2a-validation/Python/storage/operations/__init__.py b/Samples/openapi-v2/2a-validation/Python/storage/operations/__init__.py deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/2a-validation/Python/storage/operations/__init__.py +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/2a-validation/Python/storage/operations/storage_accounts_operations.py b/Samples/openapi-v2/2a-validation/Python/storage/operations/storage_accounts_operations.py deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/2a-validation/Python/storage/operations/storage_accounts_operations.py +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/2a-validation/Python/storage/operations/usage_operations.py b/Samples/openapi-v2/2a-validation/Python/storage/operations/usage_operations.py deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/2a-validation/Python/storage/operations/usage_operations.py +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/2a-validation/Python/storage/storage_management_client.py b/Samples/openapi-v2/2a-validation/Python/storage/storage_management_client.py deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/2a-validation/Python/storage/storage_management_client.py +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/2a-validation/Python/storage/version.py b/Samples/openapi-v2/2a-validation/Python/storage/version.py deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/2a-validation/Python/storage/version.py +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/2a-validation/Ruby/2015-06-15/generated/storage.rb b/Samples/openapi-v2/2a-validation/Ruby/2015-06-15/generated/storage.rb deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/2a-validation/Ruby/2015-06-15/generated/storage.rb +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/2a-validation/Ruby/2015-06-15/generated/storage/models/account_status.rb b/Samples/openapi-v2/2a-validation/Ruby/2015-06-15/generated/storage/models/account_status.rb deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/2a-validation/Ruby/2015-06-15/generated/storage/models/account_status.rb +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/2a-validation/Ruby/2015-06-15/generated/storage/models/account_type.rb b/Samples/openapi-v2/2a-validation/Ruby/2015-06-15/generated/storage/models/account_type.rb deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/2a-validation/Ruby/2015-06-15/generated/storage/models/account_type.rb +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/2a-validation/Ruby/2015-06-15/generated/storage/models/check_name_availability_result.rb b/Samples/openapi-v2/2a-validation/Ruby/2015-06-15/generated/storage/models/check_name_availability_result.rb deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/2a-validation/Ruby/2015-06-15/generated/storage/models/check_name_availability_result.rb +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/2a-validation/Ruby/2015-06-15/generated/storage/models/custom_domain.rb b/Samples/openapi-v2/2a-validation/Ruby/2015-06-15/generated/storage/models/custom_domain.rb deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/2a-validation/Ruby/2015-06-15/generated/storage/models/custom_domain.rb +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/2a-validation/Ruby/2015-06-15/generated/storage/models/endpoints.rb b/Samples/openapi-v2/2a-validation/Ruby/2015-06-15/generated/storage/models/endpoints.rb deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/2a-validation/Ruby/2015-06-15/generated/storage/models/endpoints.rb +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/2a-validation/Ruby/2015-06-15/generated/storage/models/provisioning_state.rb b/Samples/openapi-v2/2a-validation/Ruby/2015-06-15/generated/storage/models/provisioning_state.rb deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/2a-validation/Ruby/2015-06-15/generated/storage/models/provisioning_state.rb +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/2a-validation/Ruby/2015-06-15/generated/storage/models/reason.rb b/Samples/openapi-v2/2a-validation/Ruby/2015-06-15/generated/storage/models/reason.rb deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/2a-validation/Ruby/2015-06-15/generated/storage/models/reason.rb +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/2a-validation/Ruby/2015-06-15/generated/storage/models/resource.rb b/Samples/openapi-v2/2a-validation/Ruby/2015-06-15/generated/storage/models/resource.rb deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/2a-validation/Ruby/2015-06-15/generated/storage/models/resource.rb +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/2a-validation/Ruby/2015-06-15/generated/storage/models/storage_account.rb b/Samples/openapi-v2/2a-validation/Ruby/2015-06-15/generated/storage/models/storage_account.rb deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/2a-validation/Ruby/2015-06-15/generated/storage/models/storage_account.rb +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/2a-validation/Ruby/2015-06-15/generated/storage/models/storage_account_check_name_availability_parameters.rb b/Samples/openapi-v2/2a-validation/Ruby/2015-06-15/generated/storage/models/storage_account_check_name_availability_parameters.rb deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/2a-validation/Ruby/2015-06-15/generated/storage/models/storage_account_check_name_availability_parameters.rb +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/2a-validation/Ruby/2015-06-15/generated/storage/models/storage_account_create_parameters.rb b/Samples/openapi-v2/2a-validation/Ruby/2015-06-15/generated/storage/models/storage_account_create_parameters.rb deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/2a-validation/Ruby/2015-06-15/generated/storage/models/storage_account_create_parameters.rb +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/2a-validation/Ruby/2015-06-15/generated/storage/models/storage_account_keys.rb b/Samples/openapi-v2/2a-validation/Ruby/2015-06-15/generated/storage/models/storage_account_keys.rb deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/2a-validation/Ruby/2015-06-15/generated/storage/models/storage_account_keys.rb +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/2a-validation/Ruby/2015-06-15/generated/storage/models/storage_account_list_result.rb b/Samples/openapi-v2/2a-validation/Ruby/2015-06-15/generated/storage/models/storage_account_list_result.rb deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/2a-validation/Ruby/2015-06-15/generated/storage/models/storage_account_list_result.rb +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/2a-validation/Ruby/2015-06-15/generated/storage/models/storage_account_regenerate_key_parameters.rb b/Samples/openapi-v2/2a-validation/Ruby/2015-06-15/generated/storage/models/storage_account_regenerate_key_parameters.rb deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/2a-validation/Ruby/2015-06-15/generated/storage/models/storage_account_regenerate_key_parameters.rb +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/2a-validation/Ruby/2015-06-15/generated/storage/models/storage_account_update_parameters.rb b/Samples/openapi-v2/2a-validation/Ruby/2015-06-15/generated/storage/models/storage_account_update_parameters.rb deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/2a-validation/Ruby/2015-06-15/generated/storage/models/storage_account_update_parameters.rb +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/2a-validation/Ruby/2015-06-15/generated/storage/models/usage.rb b/Samples/openapi-v2/2a-validation/Ruby/2015-06-15/generated/storage/models/usage.rb deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/2a-validation/Ruby/2015-06-15/generated/storage/models/usage.rb +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/2a-validation/Ruby/2015-06-15/generated/storage/models/usage_list_result.rb b/Samples/openapi-v2/2a-validation/Ruby/2015-06-15/generated/storage/models/usage_list_result.rb deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/2a-validation/Ruby/2015-06-15/generated/storage/models/usage_list_result.rb +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/2a-validation/Ruby/2015-06-15/generated/storage/models/usage_name.rb b/Samples/openapi-v2/2a-validation/Ruby/2015-06-15/generated/storage/models/usage_name.rb deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/2a-validation/Ruby/2015-06-15/generated/storage/models/usage_name.rb +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/2a-validation/Ruby/2015-06-15/generated/storage/models/usage_unit.rb b/Samples/openapi-v2/2a-validation/Ruby/2015-06-15/generated/storage/models/usage_unit.rb deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/2a-validation/Ruby/2015-06-15/generated/storage/models/usage_unit.rb +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/2a-validation/Ruby/2015-06-15/generated/storage/module_definition.rb b/Samples/openapi-v2/2a-validation/Ruby/2015-06-15/generated/storage/module_definition.rb deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/2a-validation/Ruby/2015-06-15/generated/storage/module_definition.rb +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/2a-validation/Ruby/2015-06-15/generated/storage/storage_accounts.rb b/Samples/openapi-v2/2a-validation/Ruby/2015-06-15/generated/storage/storage_accounts.rb deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/2a-validation/Ruby/2015-06-15/generated/storage/storage_accounts.rb +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/2a-validation/Ruby/2015-06-15/generated/storage/storage_management_client.rb b/Samples/openapi-v2/2a-validation/Ruby/2015-06-15/generated/storage/storage_management_client.rb deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/2a-validation/Ruby/2015-06-15/generated/storage/storage_management_client.rb +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/2a-validation/Ruby/2015-06-15/generated/storage/usage_operations.rb b/Samples/openapi-v2/2a-validation/Ruby/2015-06-15/generated/storage/usage_operations.rb deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/2a-validation/Ruby/2015-06-15/generated/storage/usage_operations.rb +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/2a-validation/readme.md b/Samples/openapi-v2/2a-validation/readme.md deleted file mode 100644 index edd2daf1fd..0000000000 --- a/Samples/openapi-v2/2a-validation/readme.md +++ /dev/null @@ -1,38 +0,0 @@ -# Scenario: Validate a OpenAPI definition file according to the ARM guidelines - -> see https://aka.ms/autorest - -## Inputs - -``` yaml -input-file: - - https://github.com/Azure/azure-rest-api-specs/blob/d374d03801e97737ddb32e01f20513e7b2bbd9c3/arm-storage/2015-06-15/swagger/storage.json -``` - -## Validation - -This time, we not only want to generate code, we also want to validate. - -``` yaml -azure-validator: true # Azure specific validation -model-validator: true # validation of examples against the API definition -semantic-validator: true # general semantic checks such as: Does the specified `default` value actually have the type specified for the corresponding field? -``` - -## Generation - -Also generate for some languages. - -``` yaml -azure-arm: true # generate code using Azure ARM flavor -csharp: - output-folder: CSharp -java: - output-folder: Java -nodejs: - output-folder: NodeJS -python: - output-folder: Python -ruby: - output-folder: Ruby -``` diff --git a/Samples/openapi-v2/2a-validation/shell/code.txt b/Samples/openapi-v2/2a-validation/shell/code.txt deleted file mode 100644 index 9d607966b7..0000000000 --- a/Samples/openapi-v2/2a-validation/shell/code.txt +++ /dev/null @@ -1 +0,0 @@ -11 \ No newline at end of file diff --git a/Samples/openapi-v2/2a-validation/shell/stderr.txt b/Samples/openapi-v2/2a-validation/shell/stderr.txt deleted file mode 100644 index 13ed71b0b8..0000000000 --- a/Samples/openapi-v2/2a-validation/shell/stderr.txt +++ /dev/null @@ -1,33 +0,0 @@ - - - - - - - - - - - - - https://raw.githubusercontent.com/Azure/azure-rest-api-specs/d374d03801e97737ddb32e01f20513e7b2bbd9c3/arm-storage/2015-06-15/swagger/storage.json:126:6 ($.paths["/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}"].delete) - - https://raw.githubusercontent.com/Azure/azure-rest-api-specs/d374d03801e97737ddb32e01f20513e7b2bbd9c3/arm-storage/2015-06-15/swagger/storage.json:165:6 ($.paths["/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}"].get) - - https://raw.githubusercontent.com/Azure/azure-rest-api-specs/d374d03801e97737ddb32e01f20513e7b2bbd9c3/arm-storage/2015-06-15/swagger/storage.json:204:6 ($.paths["/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}"].patch) - - https://raw.githubusercontent.com/Azure/azure-rest-api-specs/d374d03801e97737ddb32e01f20513e7b2bbd9c3/arm-storage/2015-06-15/swagger/storage.json:254:6 ($.paths["/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/listKeys"].post) - - https://raw.githubusercontent.com/Azure/azure-rest-api-specs/d374d03801e97737ddb32e01f20513e7b2bbd9c3/arm-storage/2015-06-15/swagger/storage.json:295:6 ($.paths["/subscriptions/{subscriptionId}/providers/Microsoft.Storage/storageAccounts"].get) - - https://raw.githubusercontent.com/Azure/azure-rest-api-specs/d374d03801e97737ddb32e01f20513e7b2bbd9c3/arm-storage/2015-06-15/swagger/storage.json:323:6 ($.paths["/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts"].get) - - https://raw.githubusercontent.com/Azure/azure-rest-api-specs/d374d03801e97737ddb32e01f20513e7b2bbd9c3/arm-storage/2015-06-15/swagger/storage.json:358:6 ($.paths["/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/regenerateKey"].post) - - https://raw.githubusercontent.com/Azure/azure-rest-api-specs/d374d03801e97737ddb32e01f20513e7b2bbd9c3/arm-storage/2015-06-15/swagger/storage.json:38:2 ($.paths) - - https://raw.githubusercontent.com/Azure/azure-rest-api-specs/d374d03801e97737ddb32e01f20513e7b2bbd9c3/arm-storage/2015-06-15/swagger/storage.json:40:6 ($.paths["/subscriptions/{subscriptionId}/providers/Microsoft.Storage/checkNameAvailability"].post) - - https://raw.githubusercontent.com/Azure/azure-rest-api-specs/d374d03801e97737ddb32e01f20513e7b2bbd9c3/arm-storage/2015-06-15/swagger/storage.json:408:6 ($.paths["/subscriptions/{subscriptionId}/providers/Microsoft.Storage/usages"].get) - - https://raw.githubusercontent.com/Azure/azure-rest-api-specs/d374d03801e97737ddb32e01f20513e7b2bbd9c3/arm-storage/2015-06-15/swagger/storage.json:74:6 ($.paths["/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}"].put) -ERROR (OperationsAPIImplementation/R3023/ARMViolation): Operations API must be implemented for '/providers/Microsoft.Storage/operations'. -ERROR (XmsExamplesRequired/D5001/Documentation): Please provide x-ms-examples describing minimum/maximum property set for response/request payloads for operations. Operation: 'StorageAccounts_CheckNameAvailability' -ERROR (XmsExamplesRequired/D5001/Documentation): Please provide x-ms-examples describing minimum/maximum property set for response/request payloads for operations. Operation: 'StorageAccounts_Create' -ERROR (XmsExamplesRequired/D5001/Documentation): Please provide x-ms-examples describing minimum/maximum property set for response/request payloads for operations. Operation: 'StorageAccounts_Delete' -ERROR (XmsExamplesRequired/D5001/Documentation): Please provide x-ms-examples describing minimum/maximum property set for response/request payloads for operations. Operation: 'StorageAccounts_GetProperties' -ERROR (XmsExamplesRequired/D5001/Documentation): Please provide x-ms-examples describing minimum/maximum property set for response/request payloads for operations. Operation: 'StorageAccounts_List' -ERROR (XmsExamplesRequired/D5001/Documentation): Please provide x-ms-examples describing minimum/maximum property set for response/request payloads for operations. Operation: 'StorageAccounts_ListByResourceGroup' -ERROR (XmsExamplesRequired/D5001/Documentation): Please provide x-ms-examples describing minimum/maximum property set for response/request payloads for operations. Operation: 'StorageAccounts_ListKeys' -ERROR (XmsExamplesRequired/D5001/Documentation): Please provide x-ms-examples describing minimum/maximum property set for response/request payloads for operations. Operation: 'StorageAccounts_RegenerateKey' -ERROR (XmsExamplesRequired/D5001/Documentation): Please provide x-ms-examples describing minimum/maximum property set for response/request payloads for operations. Operation: 'StorageAccounts_Update' -ERROR (XmsExamplesRequired/D5001/Documentation): Please provide x-ms-examples describing minimum/maximum property set for response/request payloads for operations. Operation: 'Usage_List' diff --git a/Samples/openapi-v2/2a-validation/shell/stdout.txt b/Samples/openapi-v2/2a-validation/shell/stdout.txt deleted file mode 100644 index 0a8c85d008..0000000000 --- a/Samples/openapi-v2/2a-validation/shell/stdout.txt +++ /dev/null @@ -1,55 +0,0 @@ - - - - - - - - - - - - - - - - - - - - https://raw.githubusercontent.com/Azure/azure-rest-api-specs/d374d03801e97737ddb32e01f20513e7b2bbd9c3/arm-storage/2015-06-15/swagger/storage.json:14:4 ($.consumes[1]) - - https://raw.githubusercontent.com/Azure/azure-rest-api-specs/d374d03801e97737ddb32e01f20513e7b2bbd9c3/arm-storage/2015-06-15/swagger/storage.json:18:4 ($.produces[1]) - - https://raw.githubusercontent.com/Azure/azure-rest-api-specs/d374d03801e97737ddb32e01f20513e7b2bbd9c3/arm-storage/2015-06-15/swagger/storage.json:412:8 ($.paths["/subscriptions/{subscriptionId}/providers/Microsoft.Storage/usages"].get.operationId) - - https://raw.githubusercontent.com/Azure/azure-rest-api-specs/d374d03801e97737ddb32e01f20513e7b2bbd9c3/arm-storage/2015-06-15/swagger/storage.json:437:4 ($.definitions.StorageAccountCheckNameAvailabilityParameters) - - https://raw.githubusercontent.com/Azure/azure-rest-api-specs/d374d03801e97737ddb32e01f20513e7b2bbd9c3/arm-storage/2015-06-15/swagger/storage.json:439:8 ($.definitions.StorageAccountCheckNameAvailabilityParameters.properties.name) - - https://raw.githubusercontent.com/Azure/azure-rest-api-specs/d374d03801e97737ddb32e01f20513e7b2bbd9c3/arm-storage/2015-06-15/swagger/storage.json:442:8 ($.definitions.StorageAccountCheckNameAvailabilityParameters.properties.type) - - https://raw.githubusercontent.com/Azure/azure-rest-api-specs/d374d03801e97737ddb32e01f20513e7b2bbd9c3/arm-storage/2015-06-15/swagger/storage.json:453:8 ($.definitions.CheckNameAvailabilityResult.properties.nameAvailable) - - https://raw.githubusercontent.com/Azure/azure-rest-api-specs/d374d03801e97737ddb32e01f20513e7b2bbd9c3/arm-storage/2015-06-15/swagger/storage.json:476:4 ($.definitions.StorageAccountPropertiesCreateParameters) - - https://raw.githubusercontent.com/Azure/azure-rest-api-specs/d374d03801e97737ddb32e01f20513e7b2bbd9c3/arm-storage/2015-06-15/swagger/storage.json:511:8 ($.definitions.StorageAccountCreateParameters.properties.properties) - - https://raw.githubusercontent.com/Azure/azure-rest-api-specs/d374d03801e97737ddb32e01f20513e7b2bbd9c3/arm-storage/2015-06-15/swagger/storage.json:549:8 ($.definitions.CustomDomain.properties.useSubDomain) - - https://raw.githubusercontent.com/Azure/azure-rest-api-specs/d374d03801e97737ddb32e01f20513e7b2bbd9c3/arm-storage/2015-06-15/swagger/storage.json:559:4 ($.definitions.StorageAccountProperties) - - https://raw.githubusercontent.com/Azure/azure-rest-api-specs/d374d03801e97737ddb32e01f20513e7b2bbd9c3/arm-storage/2015-06-15/swagger/storage.json:647:8 ($.definitions.StorageAccount.properties.properties) - - https://raw.githubusercontent.com/Azure/azure-rest-api-specs/d374d03801e97737ddb32e01f20513e7b2bbd9c3/arm-storage/2015-06-15/swagger/storage.json:684:4 ($.definitions.StorageAccountPropertiesUpdateParameters) - - https://raw.githubusercontent.com/Azure/azure-rest-api-specs/d374d03801e97737ddb32e01f20513e7b2bbd9c3/arm-storage/2015-06-15/swagger/storage.json:716:8 ($.definitions.StorageAccountUpdateParameters.properties.properties) - - https://raw.githubusercontent.com/Azure/azure-rest-api-specs/d374d03801e97737ddb32e01f20513e7b2bbd9c3/arm-storage/2015-06-15/swagger/storage.json:724:4 ($.definitions.StorageAccountRegenerateKeyParameters) - - https://raw.githubusercontent.com/Azure/azure-rest-api-specs/d374d03801e97737ddb32e01f20513e7b2bbd9c3/arm-storage/2015-06-15/swagger/storage.json:726:8 ($.definitions.StorageAccountRegenerateKeyParameters.properties.keyName) - - https://raw.githubusercontent.com/Azure/azure-rest-api-specs/d374d03801e97737ddb32e01f20513e7b2bbd9c3/arm-storage/2015-06-15/swagger/storage.json:74:6 ($.paths["/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}"].put) - - https://raw.githubusercontent.com/Azure/azure-rest-api-specs/d374d03801e97737ddb32e01f20513e7b2bbd9c3/arm-storage/2015-06-15/swagger/storage.json:800:4 ($.definitions.Resource) -https://aka.ms/autorest -WARNING (DescriptionAndTitleMissing/R4000/SDKViolation): 'keyName' model/property lacks 'description' and 'title' property. Consider adding a 'description'/'title' element. Accurate description/title is essential for maintaining reference documentation. -WARNING (DescriptionAndTitleMissing/R4000/SDKViolation): 'name' model/property lacks 'description' and 'title' property. Consider adding a 'description'/'title' element. Accurate description/title is essential for maintaining reference documentation. -WARNING (DescriptionAndTitleMissing/R4000/SDKViolation): 'properties' model/property lacks 'description' and 'title' property. Consider adding a 'description'/'title' element. Accurate description/title is essential for maintaining reference documentation. -WARNING (DescriptionAndTitleMissing/R4000/SDKViolation): 'properties' model/property lacks 'description' and 'title' property. Consider adding a 'description'/'title' element. Accurate description/title is essential for maintaining reference documentation. -WARNING (DescriptionAndTitleMissing/R4000/SDKViolation): 'properties' model/property lacks 'description' and 'title' property. Consider adding a 'description'/'title' element. Accurate description/title is essential for maintaining reference documentation. -WARNING (DescriptionAndTitleMissing/R4000/SDKViolation): 'Resource' model/property lacks 'description' and 'title' property. Consider adding a 'description'/'title' element. Accurate description/title is essential for maintaining reference documentation. -WARNING (DescriptionAndTitleMissing/R4000/SDKViolation): 'StorageAccountCheckNameAvailabilityParameters' model/property lacks 'description' and 'title' property. Consider adding a 'description'/'title' element. Accurate description/title is essential for maintaining reference documentation. -WARNING (DescriptionAndTitleMissing/R4000/SDKViolation): 'StorageAccountProperties' model/property lacks 'description' and 'title' property. Consider adding a 'description'/'title' element. Accurate description/title is essential for maintaining reference documentation. -WARNING (DescriptionAndTitleMissing/R4000/SDKViolation): 'StorageAccountPropertiesCreateParameters' model/property lacks 'description' and 'title' property. Consider adding a 'description'/'title' element. Accurate description/title is essential for maintaining reference documentation. -WARNING (DescriptionAndTitleMissing/R4000/SDKViolation): 'StorageAccountPropertiesUpdateParameters' model/property lacks 'description' and 'title' property. Consider adding a 'description'/'title' element. Accurate description/title is essential for maintaining reference documentation. -WARNING (DescriptionAndTitleMissing/R4000/SDKViolation): 'StorageAccountRegenerateKeyParameters' model/property lacks 'description' and 'title' property. Consider adding a 'description'/'title' element. Accurate description/title is essential for maintaining reference documentation. -WARNING (DescriptionAndTitleMissing/R4000/SDKViolation): 'type' model/property lacks 'description' and 'title' property. Consider adding a 'description'/'title' element. Accurate description/title is essential for maintaining reference documentation. -WARNING (EnumInsteadOfBoolean/R3018/ARMViolation): Booleans are not descriptive and make them hard to use. Consider using string enums with allowed set of values defined. Property: nameAvailable -WARNING (EnumInsteadOfBoolean/R3018/ARMViolation): Booleans are not descriptive and make them hard to use. Consider using string enums with allowed set of values defined. Property: useSubDomain -WARNING (NonApplicationJsonType/R2004/ARMViolation): Only 'application/json' content-type is supported by ARM. -WARNING (NonApplicationJsonType/R2004/ARMViolation): Only 'application/json' content-type is supported by ARM. -WARNING (OperationIdNounConflictingModelNames/R2063/SDKViolation): OperationId has a noun that conflicts with one of the model names in definitions section. The model name will be disambiguated to 'UsageModel'. Consider using the plural form of 'Usage' to avoid this. Note: If you have already shipped an SDK on top of this spec, fixing this warning may introduce a breaking change. -WARNING (PutRequestResponseScheme/R2017/SDKViolation): A PUT operation request body schema should be the same as its 200 response schema, to allow reusing the same entity between GET and PUT. If the schema of the PUT request body is a superset of the GET response body, make sure you have a PATCH operation to make the resource updatable. Operation: 'StorageAccounts_Create' Request Model: 'StorageAccountCreateParameters' Response Model: 'StorageAccount' diff --git a/Samples/openapi-v2/2b-suppressions/readme.md b/Samples/openapi-v2/2b-suppressions/readme.md deleted file mode 100644 index 48ecafcb98..0000000000 --- a/Samples/openapi-v2/2b-suppressions/readme.md +++ /dev/null @@ -1,28 +0,0 @@ -# Scenario: Suppressing a validation message - -> see https://aka.ms/autorest - -## Inputs - -``` yaml -input-file: - - https://github.com/Azure/azure-rest-api-specs/blob/d374d03801e97737ddb32e01f20513e7b2bbd9c3/arm-storage/2015-06-15/swagger/storage.json -``` - -## Validation - -``` yaml -azure-validator: true -``` - -## Suppression - -``` yaml -directive: - - suppress: M3018 # the message to suppress - from: storage.json # file to suppress the message in - where: $.definitions.CustomDomain # JSON path (see https://www.npmjs.com/package/jsonpath#jsonpath-syntax) - reason: We really want that boolean property there or our customers will go nuts. -``` - -More information on about the format of directives can be found [here](https://github.com/Azure/autorest/blob/master/docs/user/literate-file-formats/configuration.md#directives---global-or-per-language). diff --git a/Samples/openapi-v2/2b-suppressions/shell/code.txt b/Samples/openapi-v2/2b-suppressions/shell/code.txt deleted file mode 100644 index 9d607966b7..0000000000 --- a/Samples/openapi-v2/2b-suppressions/shell/code.txt +++ /dev/null @@ -1 +0,0 @@ -11 \ No newline at end of file diff --git a/Samples/openapi-v2/2b-suppressions/shell/stderr.txt b/Samples/openapi-v2/2b-suppressions/shell/stderr.txt deleted file mode 100644 index 13ed71b0b8..0000000000 --- a/Samples/openapi-v2/2b-suppressions/shell/stderr.txt +++ /dev/null @@ -1,33 +0,0 @@ - - - - - - - - - - - - - https://raw.githubusercontent.com/Azure/azure-rest-api-specs/d374d03801e97737ddb32e01f20513e7b2bbd9c3/arm-storage/2015-06-15/swagger/storage.json:126:6 ($.paths["/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}"].delete) - - https://raw.githubusercontent.com/Azure/azure-rest-api-specs/d374d03801e97737ddb32e01f20513e7b2bbd9c3/arm-storage/2015-06-15/swagger/storage.json:165:6 ($.paths["/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}"].get) - - https://raw.githubusercontent.com/Azure/azure-rest-api-specs/d374d03801e97737ddb32e01f20513e7b2bbd9c3/arm-storage/2015-06-15/swagger/storage.json:204:6 ($.paths["/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}"].patch) - - https://raw.githubusercontent.com/Azure/azure-rest-api-specs/d374d03801e97737ddb32e01f20513e7b2bbd9c3/arm-storage/2015-06-15/swagger/storage.json:254:6 ($.paths["/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/listKeys"].post) - - https://raw.githubusercontent.com/Azure/azure-rest-api-specs/d374d03801e97737ddb32e01f20513e7b2bbd9c3/arm-storage/2015-06-15/swagger/storage.json:295:6 ($.paths["/subscriptions/{subscriptionId}/providers/Microsoft.Storage/storageAccounts"].get) - - https://raw.githubusercontent.com/Azure/azure-rest-api-specs/d374d03801e97737ddb32e01f20513e7b2bbd9c3/arm-storage/2015-06-15/swagger/storage.json:323:6 ($.paths["/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts"].get) - - https://raw.githubusercontent.com/Azure/azure-rest-api-specs/d374d03801e97737ddb32e01f20513e7b2bbd9c3/arm-storage/2015-06-15/swagger/storage.json:358:6 ($.paths["/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/regenerateKey"].post) - - https://raw.githubusercontent.com/Azure/azure-rest-api-specs/d374d03801e97737ddb32e01f20513e7b2bbd9c3/arm-storage/2015-06-15/swagger/storage.json:38:2 ($.paths) - - https://raw.githubusercontent.com/Azure/azure-rest-api-specs/d374d03801e97737ddb32e01f20513e7b2bbd9c3/arm-storage/2015-06-15/swagger/storage.json:40:6 ($.paths["/subscriptions/{subscriptionId}/providers/Microsoft.Storage/checkNameAvailability"].post) - - https://raw.githubusercontent.com/Azure/azure-rest-api-specs/d374d03801e97737ddb32e01f20513e7b2bbd9c3/arm-storage/2015-06-15/swagger/storage.json:408:6 ($.paths["/subscriptions/{subscriptionId}/providers/Microsoft.Storage/usages"].get) - - https://raw.githubusercontent.com/Azure/azure-rest-api-specs/d374d03801e97737ddb32e01f20513e7b2bbd9c3/arm-storage/2015-06-15/swagger/storage.json:74:6 ($.paths["/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}"].put) -ERROR (OperationsAPIImplementation/R3023/ARMViolation): Operations API must be implemented for '/providers/Microsoft.Storage/operations'. -ERROR (XmsExamplesRequired/D5001/Documentation): Please provide x-ms-examples describing minimum/maximum property set for response/request payloads for operations. Operation: 'StorageAccounts_CheckNameAvailability' -ERROR (XmsExamplesRequired/D5001/Documentation): Please provide x-ms-examples describing minimum/maximum property set for response/request payloads for operations. Operation: 'StorageAccounts_Create' -ERROR (XmsExamplesRequired/D5001/Documentation): Please provide x-ms-examples describing minimum/maximum property set for response/request payloads for operations. Operation: 'StorageAccounts_Delete' -ERROR (XmsExamplesRequired/D5001/Documentation): Please provide x-ms-examples describing minimum/maximum property set for response/request payloads for operations. Operation: 'StorageAccounts_GetProperties' -ERROR (XmsExamplesRequired/D5001/Documentation): Please provide x-ms-examples describing minimum/maximum property set for response/request payloads for operations. Operation: 'StorageAccounts_List' -ERROR (XmsExamplesRequired/D5001/Documentation): Please provide x-ms-examples describing minimum/maximum property set for response/request payloads for operations. Operation: 'StorageAccounts_ListByResourceGroup' -ERROR (XmsExamplesRequired/D5001/Documentation): Please provide x-ms-examples describing minimum/maximum property set for response/request payloads for operations. Operation: 'StorageAccounts_ListKeys' -ERROR (XmsExamplesRequired/D5001/Documentation): Please provide x-ms-examples describing minimum/maximum property set for response/request payloads for operations. Operation: 'StorageAccounts_RegenerateKey' -ERROR (XmsExamplesRequired/D5001/Documentation): Please provide x-ms-examples describing minimum/maximum property set for response/request payloads for operations. Operation: 'StorageAccounts_Update' -ERROR (XmsExamplesRequired/D5001/Documentation): Please provide x-ms-examples describing minimum/maximum property set for response/request payloads for operations. Operation: 'Usage_List' diff --git a/Samples/openapi-v2/2b-suppressions/shell/stdout.txt b/Samples/openapi-v2/2b-suppressions/shell/stdout.txt deleted file mode 100644 index 0a8c85d008..0000000000 --- a/Samples/openapi-v2/2b-suppressions/shell/stdout.txt +++ /dev/null @@ -1,55 +0,0 @@ - - - - - - - - - - - - - - - - - - - - https://raw.githubusercontent.com/Azure/azure-rest-api-specs/d374d03801e97737ddb32e01f20513e7b2bbd9c3/arm-storage/2015-06-15/swagger/storage.json:14:4 ($.consumes[1]) - - https://raw.githubusercontent.com/Azure/azure-rest-api-specs/d374d03801e97737ddb32e01f20513e7b2bbd9c3/arm-storage/2015-06-15/swagger/storage.json:18:4 ($.produces[1]) - - https://raw.githubusercontent.com/Azure/azure-rest-api-specs/d374d03801e97737ddb32e01f20513e7b2bbd9c3/arm-storage/2015-06-15/swagger/storage.json:412:8 ($.paths["/subscriptions/{subscriptionId}/providers/Microsoft.Storage/usages"].get.operationId) - - https://raw.githubusercontent.com/Azure/azure-rest-api-specs/d374d03801e97737ddb32e01f20513e7b2bbd9c3/arm-storage/2015-06-15/swagger/storage.json:437:4 ($.definitions.StorageAccountCheckNameAvailabilityParameters) - - https://raw.githubusercontent.com/Azure/azure-rest-api-specs/d374d03801e97737ddb32e01f20513e7b2bbd9c3/arm-storage/2015-06-15/swagger/storage.json:439:8 ($.definitions.StorageAccountCheckNameAvailabilityParameters.properties.name) - - https://raw.githubusercontent.com/Azure/azure-rest-api-specs/d374d03801e97737ddb32e01f20513e7b2bbd9c3/arm-storage/2015-06-15/swagger/storage.json:442:8 ($.definitions.StorageAccountCheckNameAvailabilityParameters.properties.type) - - https://raw.githubusercontent.com/Azure/azure-rest-api-specs/d374d03801e97737ddb32e01f20513e7b2bbd9c3/arm-storage/2015-06-15/swagger/storage.json:453:8 ($.definitions.CheckNameAvailabilityResult.properties.nameAvailable) - - https://raw.githubusercontent.com/Azure/azure-rest-api-specs/d374d03801e97737ddb32e01f20513e7b2bbd9c3/arm-storage/2015-06-15/swagger/storage.json:476:4 ($.definitions.StorageAccountPropertiesCreateParameters) - - https://raw.githubusercontent.com/Azure/azure-rest-api-specs/d374d03801e97737ddb32e01f20513e7b2bbd9c3/arm-storage/2015-06-15/swagger/storage.json:511:8 ($.definitions.StorageAccountCreateParameters.properties.properties) - - https://raw.githubusercontent.com/Azure/azure-rest-api-specs/d374d03801e97737ddb32e01f20513e7b2bbd9c3/arm-storage/2015-06-15/swagger/storage.json:549:8 ($.definitions.CustomDomain.properties.useSubDomain) - - https://raw.githubusercontent.com/Azure/azure-rest-api-specs/d374d03801e97737ddb32e01f20513e7b2bbd9c3/arm-storage/2015-06-15/swagger/storage.json:559:4 ($.definitions.StorageAccountProperties) - - https://raw.githubusercontent.com/Azure/azure-rest-api-specs/d374d03801e97737ddb32e01f20513e7b2bbd9c3/arm-storage/2015-06-15/swagger/storage.json:647:8 ($.definitions.StorageAccount.properties.properties) - - https://raw.githubusercontent.com/Azure/azure-rest-api-specs/d374d03801e97737ddb32e01f20513e7b2bbd9c3/arm-storage/2015-06-15/swagger/storage.json:684:4 ($.definitions.StorageAccountPropertiesUpdateParameters) - - https://raw.githubusercontent.com/Azure/azure-rest-api-specs/d374d03801e97737ddb32e01f20513e7b2bbd9c3/arm-storage/2015-06-15/swagger/storage.json:716:8 ($.definitions.StorageAccountUpdateParameters.properties.properties) - - https://raw.githubusercontent.com/Azure/azure-rest-api-specs/d374d03801e97737ddb32e01f20513e7b2bbd9c3/arm-storage/2015-06-15/swagger/storage.json:724:4 ($.definitions.StorageAccountRegenerateKeyParameters) - - https://raw.githubusercontent.com/Azure/azure-rest-api-specs/d374d03801e97737ddb32e01f20513e7b2bbd9c3/arm-storage/2015-06-15/swagger/storage.json:726:8 ($.definitions.StorageAccountRegenerateKeyParameters.properties.keyName) - - https://raw.githubusercontent.com/Azure/azure-rest-api-specs/d374d03801e97737ddb32e01f20513e7b2bbd9c3/arm-storage/2015-06-15/swagger/storage.json:74:6 ($.paths["/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}"].put) - - https://raw.githubusercontent.com/Azure/azure-rest-api-specs/d374d03801e97737ddb32e01f20513e7b2bbd9c3/arm-storage/2015-06-15/swagger/storage.json:800:4 ($.definitions.Resource) -https://aka.ms/autorest -WARNING (DescriptionAndTitleMissing/R4000/SDKViolation): 'keyName' model/property lacks 'description' and 'title' property. Consider adding a 'description'/'title' element. Accurate description/title is essential for maintaining reference documentation. -WARNING (DescriptionAndTitleMissing/R4000/SDKViolation): 'name' model/property lacks 'description' and 'title' property. Consider adding a 'description'/'title' element. Accurate description/title is essential for maintaining reference documentation. -WARNING (DescriptionAndTitleMissing/R4000/SDKViolation): 'properties' model/property lacks 'description' and 'title' property. Consider adding a 'description'/'title' element. Accurate description/title is essential for maintaining reference documentation. -WARNING (DescriptionAndTitleMissing/R4000/SDKViolation): 'properties' model/property lacks 'description' and 'title' property. Consider adding a 'description'/'title' element. Accurate description/title is essential for maintaining reference documentation. -WARNING (DescriptionAndTitleMissing/R4000/SDKViolation): 'properties' model/property lacks 'description' and 'title' property. Consider adding a 'description'/'title' element. Accurate description/title is essential for maintaining reference documentation. -WARNING (DescriptionAndTitleMissing/R4000/SDKViolation): 'Resource' model/property lacks 'description' and 'title' property. Consider adding a 'description'/'title' element. Accurate description/title is essential for maintaining reference documentation. -WARNING (DescriptionAndTitleMissing/R4000/SDKViolation): 'StorageAccountCheckNameAvailabilityParameters' model/property lacks 'description' and 'title' property. Consider adding a 'description'/'title' element. Accurate description/title is essential for maintaining reference documentation. -WARNING (DescriptionAndTitleMissing/R4000/SDKViolation): 'StorageAccountProperties' model/property lacks 'description' and 'title' property. Consider adding a 'description'/'title' element. Accurate description/title is essential for maintaining reference documentation. -WARNING (DescriptionAndTitleMissing/R4000/SDKViolation): 'StorageAccountPropertiesCreateParameters' model/property lacks 'description' and 'title' property. Consider adding a 'description'/'title' element. Accurate description/title is essential for maintaining reference documentation. -WARNING (DescriptionAndTitleMissing/R4000/SDKViolation): 'StorageAccountPropertiesUpdateParameters' model/property lacks 'description' and 'title' property. Consider adding a 'description'/'title' element. Accurate description/title is essential for maintaining reference documentation. -WARNING (DescriptionAndTitleMissing/R4000/SDKViolation): 'StorageAccountRegenerateKeyParameters' model/property lacks 'description' and 'title' property. Consider adding a 'description'/'title' element. Accurate description/title is essential for maintaining reference documentation. -WARNING (DescriptionAndTitleMissing/R4000/SDKViolation): 'type' model/property lacks 'description' and 'title' property. Consider adding a 'description'/'title' element. Accurate description/title is essential for maintaining reference documentation. -WARNING (EnumInsteadOfBoolean/R3018/ARMViolation): Booleans are not descriptive and make them hard to use. Consider using string enums with allowed set of values defined. Property: nameAvailable -WARNING (EnumInsteadOfBoolean/R3018/ARMViolation): Booleans are not descriptive and make them hard to use. Consider using string enums with allowed set of values defined. Property: useSubDomain -WARNING (NonApplicationJsonType/R2004/ARMViolation): Only 'application/json' content-type is supported by ARM. -WARNING (NonApplicationJsonType/R2004/ARMViolation): Only 'application/json' content-type is supported by ARM. -WARNING (OperationIdNounConflictingModelNames/R2063/SDKViolation): OperationId has a noun that conflicts with one of the model names in definitions section. The model name will be disambiguated to 'UsageModel'. Consider using the plural form of 'Usage' to avoid this. Note: If you have already shipped an SDK on top of this spec, fixing this warning may introduce a breaking change. -WARNING (PutRequestResponseScheme/R2017/SDKViolation): A PUT operation request body schema should be the same as its 200 response schema, to allow reusing the same entity between GET and PUT. If the schema of the PUT request body is a superset of the GET response body, make sure you have a PATCH operation to make the resource updatable. Operation: 'StorageAccounts_Create' Request Model: 'StorageAccountCreateParameters' Response Model: 'StorageAccount' diff --git a/Samples/openapi-v2/3a-literate-swagger/Client/IQueryKeysOperations.cs b/Samples/openapi-v2/3a-literate-swagger/Client/IQueryKeysOperations.cs deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/3a-literate-swagger/Client/IQueryKeysOperations.cs +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/3a-literate-swagger/Client/ISearchManagementClient.cs b/Samples/openapi-v2/3a-literate-swagger/Client/ISearchManagementClient.cs deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/3a-literate-swagger/Client/ISearchManagementClient.cs +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/3a-literate-swagger/Client/IServicesOperations.cs b/Samples/openapi-v2/3a-literate-swagger/Client/IServicesOperations.cs deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/3a-literate-swagger/Client/IServicesOperations.cs +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/3a-literate-swagger/Client/Models/Error.cs b/Samples/openapi-v2/3a-literate-swagger/Client/Models/Error.cs deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/3a-literate-swagger/Client/Models/Error.cs +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/3a-literate-swagger/Client/Models/ErrorDetails.cs b/Samples/openapi-v2/3a-literate-swagger/Client/Models/ErrorDetails.cs deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/3a-literate-swagger/Client/Models/ErrorDetails.cs +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/3a-literate-swagger/Client/Models/ErrorException.cs b/Samples/openapi-v2/3a-literate-swagger/Client/Models/ErrorException.cs deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/3a-literate-swagger/Client/Models/ErrorException.cs +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/3a-literate-swagger/Client/Models/ListQueryKeysResult.cs b/Samples/openapi-v2/3a-literate-swagger/Client/Models/ListQueryKeysResult.cs deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/3a-literate-swagger/Client/Models/ListQueryKeysResult.cs +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/3a-literate-swagger/Client/Models/QueryKey.cs b/Samples/openapi-v2/3a-literate-swagger/Client/Models/QueryKey.cs deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/3a-literate-swagger/Client/Models/QueryKey.cs +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/3a-literate-swagger/Client/Models/SearchServiceCreateOrUpdateParameters.cs b/Samples/openapi-v2/3a-literate-swagger/Client/Models/SearchServiceCreateOrUpdateParameters.cs deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/3a-literate-swagger/Client/Models/SearchServiceCreateOrUpdateParameters.cs +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/3a-literate-swagger/Client/Models/SearchServiceListResult.cs b/Samples/openapi-v2/3a-literate-swagger/Client/Models/SearchServiceListResult.cs deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/3a-literate-swagger/Client/Models/SearchServiceListResult.cs +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/3a-literate-swagger/Client/Models/SearchServiceProperties.cs b/Samples/openapi-v2/3a-literate-swagger/Client/Models/SearchServiceProperties.cs deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/3a-literate-swagger/Client/Models/SearchServiceProperties.cs +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/3a-literate-swagger/Client/Models/SearchServiceResource.cs b/Samples/openapi-v2/3a-literate-swagger/Client/Models/SearchServiceResource.cs deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/3a-literate-swagger/Client/Models/SearchServiceResource.cs +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/3a-literate-swagger/Client/QueryKeysOperations.cs b/Samples/openapi-v2/3a-literate-swagger/Client/QueryKeysOperations.cs deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/3a-literate-swagger/Client/QueryKeysOperations.cs +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/3a-literate-swagger/Client/QueryKeysOperationsExtensions.cs b/Samples/openapi-v2/3a-literate-swagger/Client/QueryKeysOperationsExtensions.cs deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/3a-literate-swagger/Client/QueryKeysOperationsExtensions.cs +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/3a-literate-swagger/Client/SearchManagementClient.cs b/Samples/openapi-v2/3a-literate-swagger/Client/SearchManagementClient.cs deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/3a-literate-swagger/Client/SearchManagementClient.cs +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/3a-literate-swagger/Client/ServicesOperations.cs b/Samples/openapi-v2/3a-literate-swagger/Client/ServicesOperations.cs deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/3a-literate-swagger/Client/ServicesOperations.cs +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/3a-literate-swagger/Client/ServicesOperationsExtensions.cs b/Samples/openapi-v2/3a-literate-swagger/Client/ServicesOperationsExtensions.cs deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/3a-literate-swagger/Client/ServicesOperationsExtensions.cs +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/3a-literate-swagger/generated/swagger.md.json b/Samples/openapi-v2/3a-literate-swagger/generated/swagger.md.json deleted file mode 100644 index 53efca9753..0000000000 --- a/Samples/openapi-v2/3a-literate-swagger/generated/swagger.md.json +++ /dev/null @@ -1,393 +0,0 @@ -{ - "swagger": "2.0", - "info": { - "version": "2015-02-28", - "title": "Search Management", - "description": "> the above JSON query pushes this markdown section into node `$.info.description` of the OpenAPI definition.\n\nThis client that can be used to manage Azure Search services and API keys." - }, - "host": "management.azure.com", - "schemes": [ - "https" - ], - "security": [ - { - "azure_auth": [ - "user_impersonation" - ] - } - ], - "securityDefinitions": { - "azure_auth": { - "type": "oauth2", - "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", - "flow": "implicit", - "description": "Azure Active Directory OAuth2 Flow", - "scopes": { - "user_impersonation": "impersonate your user account" - } - } - }, - "paths": { - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Search/searchServices/{serviceName}/listQueryKeys": { - "get": { - "tags": [ - "QueryKeys" - ], - "operationId": "QueryKeys_List", - "externalDocs": { - "url": "https://msdn.microsoft.com/library/azure/dn832701.aspx" - }, - "parameters": [ - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/SearchServiceName", - "description": "> Search is also performed relative to nodes discovered by parent headings.\n>\n> In this case, we're in the scope of the node identified by `#QueryKeys_List` which is the operation.\n>\n> Furthermore, `#SearchServiceName` is really shorthand for `@.#SearchServiceName` where `@` represents the current scope's node.\n> One could force searching the global scope with `$.#SearchServiceName`\n\nSome description." - }, - { - "$ref": "#/parameters/ApiVersion" - }, - { - "$ref": "#/parameters/SubscriptionId" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/ListQueryKeysResult" - } - }, - "default": { - "$ref": "#/responses/error" - } - }, - "produces": [ - "application/json" - ], - "consumes": [ - "application/json" - ], - "description": "> `#QueryKeys_List` searches for an object that has a string property containing \"QueryKeys_List\".\n\nReturns the list of query API keys for the given Azure Search service." - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Search/searchServices/{serviceName}": { - "put": { - "tags": [ - "Services" - ], - "operationId": "Services_CreateOrUpdate", - "externalDocs": { - "url": "https://msdn.microsoft.com/library/azure/dn832687.aspx" - }, - "parameters": [ - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/SearchServiceName" - }, - { - "name": "parameters", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/SearchServiceCreateOrUpdateParameters" - }, - "description": "The properties to set or update on the Search service." - }, - { - "$ref": "#/parameters/ApiVersion" - }, - { - "$ref": "#/parameters/SubscriptionId" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/SearchServiceResource" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/SearchServiceResource" - } - }, - "default": { - "$ref": "#/responses/error" - } - }, - "produces": [ - "application/json" - ], - "consumes": [ - "application/json" - ], - "description": "Creates or updates a Search service in the given resource group.\nIf the Search service already exists, all properties will be updated with the given values." - }, - "delete": { - "tags": [ - "Services" - ], - "operationId": "Services_Delete", - "externalDocs": { - "url": "https://msdn.microsoft.com/library/azure/dn832692.aspx" - }, - "parameters": [ - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/SearchServiceName" - }, - { - "$ref": "#/parameters/ApiVersion" - }, - { - "$ref": "#/parameters/SubscriptionId" - } - ], - "responses": { - "200": { - "description": "OK" - }, - "204": { - "description": "No Content" - }, - "404": { - "description": "Not Found" - }, - "default": { - "$ref": "#/responses/error" - } - }, - "produces": [ - "application/json" - ], - "consumes": [ - "application/json" - ], - "description": "Deletes a Search service in the given resource group, along with its associated resources." - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Search/searchServices": { - "get": { - "tags": [ - "Services" - ], - "operationId": "Services_List", - "externalDocs": { - "url": "https://msdn.microsoft.com/library/azure/dn832688.aspx" - }, - "parameters": [ - { - "$ref": "#/parameters/ResourceGroupName" - }, - { - "$ref": "#/parameters/ApiVersion" - }, - { - "$ref": "#/parameters/SubscriptionId" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/SearchServiceListResult" - } - }, - "default": { - "$ref": "#/responses/error" - } - }, - "produces": [ - "application/json" - ], - "consumes": [ - "application/json" - ], - "description": "Returns a list of all Search services in the given resource group." - } - } - }, - "definitions": { - "ListQueryKeysResult": { - "properties": { - "value": { - "readOnly": true, - "type": "array", - "items": { - "$ref": "#/definitions/QueryKey" - }, - "description": "> Again, shorthand for `@.properties.value`\n\nThe query keys for the Azure Search service." - } - }, - "description": "Response containing the query API keys for a given Azure Search service." - }, - "QueryKey": { - "properties": { - "name": { - "readOnly": true, - "type": "string", - "description": "The name of the query API key; may be empty." - }, - "key": { - "readOnly": true, - "type": "string", - "description": "The value of the query API key." - } - }, - "description": "Describes an API key for a given Azure Search service that has permissions for query operations only." - }, - "SearchServiceProperties": { - "properties": { - "replicaCount": { - "type": "integer", - "format": "int32", - "minimum": 1, - "maximum": 6, - "description": "The number of replicas in the Search service." - }, - "partitionCount": { - "type": "integer", - "format": "int32", - "description": "The number of partitions in the Search service; if specified, it can be 1, 2, 3, 4, 6, or 12." - } - }, - "description": "Defines properties of an Azure Search service that can be modified." - }, - "SearchServiceCreateOrUpdateParameters": { - "properties": { - "location": { - "type": "string", - "description": "The geographic location of the Search service." - }, - "tags": { - "type": "object", - "additionalProperties": { - "type": "string" - }, - "description": "Tags to help categorize the Search service in the Azure Portal." - }, - "properties": { - "$ref": "#/definitions/SearchServiceProperties", - "description": "Properties of the Search service." - } - }, - "description": "Properties that describe an Azure Search service." - }, - "SearchServiceResource": { - "properties": { - "id": { - "readOnly": true, - "type": "string", - "description": "The resource Id of the Azure Search service." - }, - "name": { - "externalDocs": { - "url": "https://msdn.microsoft.com/library/azure/dn857353.aspx" - }, - "type": "string", - "description": "The name of the Search service." - }, - "location": { - "type": "string", - "description": "The geographic location of the Search service." - }, - "tags": { - "type": "object", - "additionalProperties": { - "type": "string" - }, - "description": "Tags to help categorize the Search service in the Azure Portal." - } - }, - "description": "Describes an Azure Search service and its current state." - }, - "SearchServiceListResult": { - "properties": { - "value": { - "readOnly": true, - "type": "array", - "items": { - "$ref": "#/definitions/SearchServiceResource" - }, - "description": "The Search services in the resource group." - } - }, - "description": "> Shorthand for `@.definitions.SearchServiceListResult` which equals `$.definitions.SearchServiceListResult` since no super headings change the current scope.\n\nResponse containing a list of Azure Search services for a given resource group." - }, - "Error": { - "type": "object", - "properties": { - "code": { - "type": "integer" - }, - "message": { - "type": "string" - }, - "details": { - "$ref": "#/definitions/ErrorDetails" - } - } - }, - "ErrorDetails": { - "properties": { - "code": { - "type": "string" - }, - "target": { - "type": "string" - }, - "message": { - "type": "string" - } - } - } - }, - "parameters": { - "SubscriptionId": { - "name": "subscriptionId", - "in": "path", - "required": true, - "type": "string", - "description": "Gets subscription credentials which uniquely identify Microsoft Azure subscription.\nThe subscription ID forms part of the URI for every service call." - }, - "ApiVersion": { - "name": "api-version", - "in": "query", - "required": true, - "type": "string", - "description": "The client API version." - }, - "ResourceGroupName": { - "name": "resourceGroupName", - "in": "path", - "required": true, - "type": "string", - "x-ms-parameter-location": "method", - "description": "The name of the resource group within the current subscription." - }, - "SearchServiceName": { - "name": "serviceName", - "in": "path", - "required": true, - "type": "string", - "x-ms-parameter-location": "method", - "description": "The name of the Search service to operate on." - } - }, - "responses": { - "error": { - "description": "OK", - "schema": { - "$ref": "#/definitions/Error" - } - } - } -} \ No newline at end of file diff --git a/Samples/openapi-v2/3a-literate-swagger/readme.md b/Samples/openapi-v2/3a-literate-swagger/readme.md deleted file mode 100644 index 05894438de..0000000000 --- a/Samples/openapi-v2/3a-literate-swagger/readme.md +++ /dev/null @@ -1,21 +0,0 @@ -# Scenario: Literate OpenAPI definition - -> see https://aka.ms/autorest - -This example combines multiple AutoRest features: -- OpenAPI definition validation -- OpenAPI definition resolution with source map -- client code generation - -## Configuration - -``` yaml -input-file: swagger.md -azure-arm: true -azure-validator: true -output-artifact: - - swagger-document.json - - swagger-document.json.map -csharp: - output-folder: Client -``` \ No newline at end of file diff --git a/Samples/openapi-v2/3a-literate-swagger/shell/code.txt b/Samples/openapi-v2/3a-literate-swagger/shell/code.txt deleted file mode 100644 index c7930257df..0000000000 --- a/Samples/openapi-v2/3a-literate-swagger/shell/code.txt +++ /dev/null @@ -1 +0,0 @@ -7 \ No newline at end of file diff --git a/Samples/openapi-v2/3a-literate-swagger/shell/stderr.txt b/Samples/openapi-v2/3a-literate-swagger/shell/stderr.txt deleted file mode 100644 index 7604168bfa..0000000000 --- a/Samples/openapi-v2/3a-literate-swagger/shell/stderr.txt +++ /dev/null @@ -1,24 +0,0 @@ - - - - - - - - - /Samples/3a-literate-swagger/swagger.md:137:0 ($.paths) - - /Samples/3a-literate-swagger/swagger.md:139:4 ($.paths["/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Search/searchServices/{serviceName}"].put) - - /Samples/3a-literate-swagger/swagger.md:139:4 ($.paths["/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Search/searchServices/{serviceName}"].put) - - /Samples/3a-literate-swagger/swagger.md:176:0 ($.paths) - - /Samples/3a-literate-swagger/swagger.md:178:4 ($.paths["/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Search/searchServices/{serviceName}"].delete) - - /Samples/3a-literate-swagger/swagger.md:205:0 ($.paths) - - /Samples/3a-literate-swagger/swagger.md:207:4 ($.paths["/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Search/searchServices"].get) - - /Samples/3a-literate-swagger/swagger.md:283:2 ($.definitions.SearchServiceResource) - - /Samples/3a-literate-swagger/swagger.md:50:0 ($.paths) - - /Samples/3a-literate-swagger/swagger.md:52:4 ($.paths["/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Search/searchServices/{serviceName}/listQueryKeys"].get) -ERROR (OperationsAPIImplementation/R3023/ARMViolation): Operations API must be implemented for '/providers/Microsoft.Search/operations'. -ERROR (RequiredPropertiesMissingInResourceModel/R2020/ARMViolation): Model definition 'SearchServiceResource' must have the properties 'name', 'id' and 'type' in its hierarchy and these properties must be marked as readonly. -ERROR (XmsExamplesRequired/D5001/Documentation): Please provide x-ms-examples describing minimum/maximum property set for response/request payloads for operations. Operation: 'QueryKeys_List' -ERROR (XmsExamplesRequired/D5001/Documentation): Please provide x-ms-examples describing minimum/maximum property set for response/request payloads for operations. Operation: 'Services_CreateOrUpdate' -ERROR (XmsExamplesRequired/D5001/Documentation): Please provide x-ms-examples describing minimum/maximum property set for response/request payloads for operations. Operation: 'Services_Delete' -ERROR (XmsExamplesRequired/D5001/Documentation): Please provide x-ms-examples describing minimum/maximum property set for response/request payloads for operations. Operation: 'Services_List' -ERROR (XmsResourceInPutResponse/R2062/ARMViolation): The 200 response model for an ARM PUT operation must have x-ms-azure-resource extension set to true in its hierarchy. Operation: 'Services_CreateOrUpdate' Model: 'SearchServiceResource'. diff --git a/Samples/openapi-v2/3a-literate-swagger/shell/stdout.txt b/Samples/openapi-v2/3a-literate-swagger/shell/stdout.txt deleted file mode 100644 index 8d0b63d0d2..0000000000 --- a/Samples/openapi-v2/3a-literate-swagger/shell/stdout.txt +++ /dev/null @@ -1,49 +0,0 @@ - - - - - - - - - - - - - - - - - - /Samples/3a-literate-swagger/swagger.md:139:4 ($.paths["/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Search/searchServices/{serviceName}"].put) - - /Samples/3a-literate-swagger/swagger.md:139:4 ($.paths["/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Search/searchServices/{serviceName}"].put) - - /Samples/3a-literate-swagger/swagger.md:178:4 ($.paths["/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Search/searchServices/{serviceName}"].delete) - - /Samples/3a-literate-swagger/swagger.md:207:4 ($.paths["/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Search/searchServices"].get) - - /Samples/3a-literate-swagger/swagger.md:207:4 ($.paths["/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Search/searchServices"].get) - - /Samples/3a-literate-swagger/swagger.md:264:6 ($.definitions.SearchServiceCreateOrUpdateParameters.properties.properties) - - /Samples/3a-literate-swagger/swagger.md:391:2 ($.definitions.Error) - - /Samples/3a-literate-swagger/swagger.md:394:6 ($.definitions.Error.properties.code) - - /Samples/3a-literate-swagger/swagger.md:396:6 ($.definitions.Error.properties.message) - - /Samples/3a-literate-swagger/swagger.md:398:6 ($.definitions.Error.properties.details) - - /Samples/3a-literate-swagger/swagger.md:52:4 ($.paths["/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Search/searchServices/{serviceName}/listQueryKeys"].get) - - /Samples/3a-literate-swagger/swagger.md:52:4 ($.paths["/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Search/searchServices/{serviceName}/listQueryKeys"].get) - - https://raw.githubusercontent.com/Azure/azure-rest-api-specs/master/specification/network/resource-manager/Microsoft.Network/stable/2017-03-01/network.json:41:4 ($.definitions.ErrorDetails) - - https://raw.githubusercontent.com/Azure/azure-rest-api-specs/master/specification/network/resource-manager/Microsoft.Network/stable/2017-03-01/network.json:43:8 ($.definitions.ErrorDetails.properties.code) - - https://raw.githubusercontent.com/Azure/azure-rest-api-specs/master/specification/network/resource-manager/Microsoft.Network/stable/2017-03-01/network.json:46:8 ($.definitions.ErrorDetails.properties.target) - - https://raw.githubusercontent.com/Azure/azure-rest-api-specs/master/specification/network/resource-manager/Microsoft.Network/stable/2017-03-01/network.json:49:8 ($.definitions.ErrorDetails.properties.message) -https://aka.ms/autorest -WARNING (AvoidNestedProperties/R2001/SDKViolation): Consider using x-ms-client-flatten to provide a better end user experience -WARNING (DescriptionAndTitleMissing/R4000/SDKViolation): 'code' model/property lacks 'description' and 'title' property. Consider adding a 'description'/'title' element. Accurate description/title is essential for maintaining reference documentation. -WARNING (DescriptionAndTitleMissing/R4000/SDKViolation): 'code' model/property lacks 'description' and 'title' property. Consider adding a 'description'/'title' element. Accurate description/title is essential for maintaining reference documentation. -WARNING (DescriptionAndTitleMissing/R4000/SDKViolation): 'details' model/property lacks 'description' and 'title' property. Consider adding a 'description'/'title' element. Accurate description/title is essential for maintaining reference documentation. -WARNING (DescriptionAndTitleMissing/R4000/SDKViolation): 'Error' model/property lacks 'description' and 'title' property. Consider adding a 'description'/'title' element. Accurate description/title is essential for maintaining reference documentation. -WARNING (DescriptionAndTitleMissing/R4000/SDKViolation): 'ErrorDetails' model/property lacks 'description' and 'title' property. Consider adding a 'description'/'title' element. Accurate description/title is essential for maintaining reference documentation. -WARNING (DescriptionAndTitleMissing/R4000/SDKViolation): 'message' model/property lacks 'description' and 'title' property. Consider adding a 'description'/'title' element. Accurate description/title is essential for maintaining reference documentation. -WARNING (DescriptionAndTitleMissing/R4000/SDKViolation): 'message' model/property lacks 'description' and 'title' property. Consider adding a 'description'/'title' element. Accurate description/title is essential for maintaining reference documentation. -WARNING (DescriptionAndTitleMissing/R4000/SDKViolation): 'target' model/property lacks 'description' and 'title' property. Consider adding a 'description'/'title' element. Accurate description/title is essential for maintaining reference documentation. -WARNING (OperationDescriptionOrSummaryRequired/R4000/SDKViolation): QueryKeys_List lacks 'description' and 'summary' property. Consider adding a 'description'/'summary' element. Accurate description/summary is essential for maintaining reference documentation. -WARNING (OperationDescriptionOrSummaryRequired/R4000/SDKViolation): Services_CreateOrUpdate lacks 'description' and 'summary' property. Consider adding a 'description'/'summary' element. Accurate description/summary is essential for maintaining reference documentation. -WARNING (OperationDescriptionOrSummaryRequired/R4000/SDKViolation): Services_Delete lacks 'description' and 'summary' property. Consider adding a 'description'/'summary' element. Accurate description/summary is essential for maintaining reference documentation. -WARNING (OperationDescriptionOrSummaryRequired/R4000/SDKViolation): Services_List lacks 'description' and 'summary' property. Consider adding a 'description'/'summary' element. Accurate description/summary is essential for maintaining reference documentation. -WARNING (PageableOperation/R2029/SDKViolation): Based on the response model schema, operation 'QueryKeys_List' might be pageable. Consider adding the x-ms-pageable extension. -WARNING (PageableOperation/R2029/SDKViolation): Based on the response model schema, operation 'Services_List' might be pageable. Consider adding the x-ms-pageable extension. -WARNING (PutRequestResponseScheme/R2017/SDKViolation): A PUT operation request body schema should be the same as its 200 response schema, to allow reusing the same entity between GET and PUT. If the schema of the PUT request body is a superset of the GET response body, make sure you have a PATCH operation to make the resource updatable. Operation: 'Services_CreateOrUpdate' Request Model: 'SearchServiceCreateOrUpdateParameters' Response Model: 'SearchServiceResource' diff --git a/Samples/openapi-v2/3a-literate-swagger/swagger.md b/Samples/openapi-v2/3a-literate-swagger/swagger.md deleted file mode 100644 index df30e956c3..0000000000 --- a/Samples/openapi-v2/3a-literate-swagger/swagger.md +++ /dev/null @@ -1,405 +0,0 @@ -# Search Management - -## General (`$.info`) - -> the above JSON query pushes this markdown section into node `$.info.description` of the OpenAPI definition. - -This client that can be used to manage Azure Search services and API keys. - -```yaml -swagger: '2.0' -info: - title: Search Management - # `description` will be injected. - # If it was specified here, it would be overridden. - version: '2015-02-28' -host: management.azure.com -schemes: -- https -consumes: -- application/json -produces: -- application/json -``` - -## Security - -```yaml -security: -- azure_auth: - - user_impersonation -securityDefinitions: - azure_auth: - type: oauth2 - authorizationUrl: https://login.microsoftonline.com/common/oauth2/authorize - flow: implicit - description: Azure Active Directory OAuth2 Flow - scopes: - user_impersonation: impersonate your user account -``` - -## Operations on Query Keys - -### List (`#QueryKeys_List`) - -> `#QueryKeys_List` searches for an object that has a string property containing "QueryKeys_List". - -Returns the list of query API keys for the given Azure Search service. - -```yaml -paths: - '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Search/searchServices/{serviceName}/listQueryKeys': - get: - tags: - - QueryKeys - operationId: QueryKeys_List - externalDocs: - url: https://msdn.microsoft.com/library/azure/dn832701.aspx - parameters: - - '$ref': '#/parameters/ResourceGroupName' - - '$ref': '#/parameters/SearchServiceName' - - '$ref': '#/parameters/ApiVersion' - - '$ref': '#/parameters/SubscriptionId' - responses: - '200': - description: OK - schema: - '$ref': '#/definitions/ListQueryKeysResult' - default: - '$ref': '#/responses/error' -``` - -#### Parameter: Search Service Name (`#SearchServiceName`) - -> Search is also performed relative to nodes discovered by parent headings. -> -> In this case, we're in the scope of the node identified by `#QueryKeys_List` which is the operation. -> -> Furthermore, `#SearchServiceName` is really shorthand for `@.#SearchServiceName` where `@` represents the current scope's node. -> One could force searching the global scope with `$.#SearchServiceName` - -Some description. - -### Model Definition: ListQueryKeysResult (`$.definitions.ListQueryKeysResult`) - -Response containing the query API keys for a given Azure Search service. - -```yaml -definitions: - ListQueryKeysResult: - properties: - value: - readOnly: true - type: array - items: - '$ref': '#/definitions/QueryKey' -``` - -#### Examples -I am content under a subheading - -#### Property: value (`properties.value`) - -> Again, shorthand for `@.properties.value` - -The query keys for the Azure Search service. - -### Model Definition: QueryKey (`$.definitions.QueryKey`) - -Describes an API key for a given Azure Search service that has permissions for query operations only. - -```yaml -definitions: - QueryKey: - properties: - name: - readOnly: true - type: string - key: - readOnly: true - type: string -``` - -#### Property: name (`properties.name`) -The name of the query API key; may be empty. - -#### Property: key (`properties.key`) -The value of the query API key. - -## Operations on Services - -### CreateOrUpdate (`#Services_CreateOrUpdate`) - -Creates or updates a Search service in the given resource group. -If the Search service already exists, all properties will be updated with the given values. - -```yaml -paths: - '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Search/searchServices/{serviceName}': - put: - tags: - - Services - operationId: Services_CreateOrUpdate - externalDocs: - url: https://msdn.microsoft.com/library/azure/dn832687.aspx - parameters: - - '$ref': '#/parameters/ResourceGroupName' - - '$ref': '#/parameters/SearchServiceName' - - name: parameters - in: body - required: true - schema: - '$ref': '#/definitions/SearchServiceCreateOrUpdateParameters' - - '$ref': '#/parameters/ApiVersion' - - '$ref': '#/parameters/SubscriptionId' - responses: - '200': - description: OK - schema: - '$ref': '#/definitions/SearchServiceResource' - '201': - description: Created - schema: - '$ref': '#/definitions/SearchServiceResource' - default: - '$ref': '#/responses/error' -``` - -#### Parameter: parameters (`parameters[?(@.name == "parameters")]`) -The properties to set or update on the Search service. - -### Delete (`#Services_Delete`) - -Deletes a Search service in the given resource group, along with its associated resources. - -```yaml -paths: - '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Search/searchServices/{serviceName}': - delete: - tags: - - Services - operationId: Services_Delete - externalDocs: - url: https://msdn.microsoft.com/library/azure/dn832692.aspx - parameters: - - '$ref': '#/parameters/ResourceGroupName' - - '$ref': '#/parameters/SearchServiceName' - - '$ref': '#/parameters/ApiVersion' - - '$ref': '#/parameters/SubscriptionId' - responses: - '200': - description: OK - '204': - description: No Content - '404': - description: Not Found - default: - '$ref': '#/responses/error' -``` - -### List (`#Services_List`) - -Returns a list of all Search services in the given resource group. - -```yaml -paths: - '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Search/searchServices': - get: - tags: - - Services - operationId: Services_List - externalDocs: - url: https://msdn.microsoft.com/library/azure/dn832688.aspx - parameters: - - '$ref': '#/parameters/ResourceGroupName' - - '$ref': '#/parameters/ApiVersion' - - '$ref': '#/parameters/SubscriptionId' - responses: - '200': - description: OK - schema: - '$ref': '#/definitions/SearchServiceListResult' - default: - '$ref': '#/responses/error' -``` - -### Model Definition: SearchServiceProperties (`$.definitions.SearchServiceProperties`) - -Defines properties of an Azure Search service that can be modified. - -```yaml -definitions: - SearchServiceProperties: - properties: - replicaCount: - type: integer - format: int32 - minimum: 1 - maximum: 6 - partitionCount: - type: integer - format: int32 -``` - -#### Property: replicaCount (`@.properties.replicaCount`) -The number of replicas in the Search service. - -#### Property: partitionCount (`@.properties.partitionCount`) -The number of partitions in the Search service; if specified, it can be 1, 2, 3, 4, 6, or 12. - -### Model Definition: SearchServiceCreateOrUpdateParameters (`$.definitions.SearchServiceCreateOrUpdateParameters`) - -Properties that describe an Azure Search service. - -```yaml -definitions: - SearchServiceCreateOrUpdateParameters: - properties: - location: - type: string - tags: - type: object - additionalProperties: - type: string - properties: - '$ref': '#/definitions/SearchServiceProperties' -``` - -#### Property: location (`@.properties.location`) -The geographic location of the Search service. - -#### Property: tags (`@.properties.tags`) -Tags to help categorize the Search service in the Azure Portal. - -#### Property: properties (`@.properties.properties`) -Properties of the Search service. - -### Model Definition: SearchServiceResource (`$.definitions.SearchServiceResource`) - -Describes an Azure Search service and its current state. - -```yaml -definitions: - SearchServiceResource: - properties: - id: - readOnly: true - type: string - name: - externalDocs: - url: https://msdn.microsoft.com/library/azure/dn857353.aspx - type: string - location: - type: string - tags: - type: object - additionalProperties: - type: string -``` - -#### Property: id (`properties.id`) -The resource Id of the Azure Search service. - -#### Property: name (`properties.name`) -The name of the Search service. - -#### Property: location (`properties.location`) -The geographic location of the Search service. - -#### Property: tags (`properties.tags`) -Tags to help categorize the Search service in the Azure Portal. - -### Model Definition: SearchServiceListResult (`definitions.SearchServiceListResult`) - -> Shorthand for `@.definitions.SearchServiceListResult` which equals `$.definitions.SearchServiceListResult` since no super headings change the current scope. - -Response containing a list of Azure Search services for a given resource group. - -```yaml -definitions: - SearchServiceListResult: - properties: - value: - readOnly: true - type: array - items: - '$ref': '#/definitions/SearchServiceResource' -``` - -#### Property: value (`properties.value`) -The Search services in the resource group. - -## Common Parameters (`parameters`) - -### Client: SubscriptionId (`SubscriptionId`) -Gets subscription credentials which uniquely identify Microsoft Azure subscription. -The subscription ID forms part of the URI for every service call. - -```yaml -parameters: - SubscriptionId: - name: subscriptionId - in: path - required: true - type: string -``` - -### Client: ApiVersion (`ApiVersion`) -The client API version. - -```yaml -parameters: - ApiVersion: - name: api-version - in: query - required: true - type: string -``` - -### ResourceGroupName (`ResourceGroupName`) -The name of the resource group within the current subscription. - -```yaml -parameters: - ResourceGroupName: - name: resourceGroupName - in: path - required: true - type: string - x-ms-parameter-location: method -``` - -### SearchServiceName (`SearchServiceName`) -The name of the Search service to operate on. - -``` yaml -parameters: - SearchServiceName: - name: serviceName - in: path - required: true - type: string - x-ms-parameter-location: method -``` - -## Error Response - -The default response will be deserialized as per the Error defintion and will be part of the exception. - -``` yaml -definitions: - Error: - type: object - properties: - code: - type: integer - message: - type: string - details: - "$ref": "https://github.com/Azure/azure-rest-api-specs/blob/master/specification/network/resource-manager/Microsoft.Network/stable/2017-03-01/network.json#/definitions/ErrorDetails" -responses: - error: - description: OK - schema: - '$ref': '#/definitions/Error' -``` \ No newline at end of file diff --git a/Samples/openapi-v2/3b-custom-transformations/Client/CheckNameAvailabilityOperations.cs b/Samples/openapi-v2/3b-custom-transformations/Client/CheckNameAvailabilityOperations.cs deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/3b-custom-transformations/Client/CheckNameAvailabilityOperations.cs +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/3b-custom-transformations/Client/CheckNameAvailabilityOperationsExtensions.cs b/Samples/openapi-v2/3b-custom-transformations/Client/CheckNameAvailabilityOperationsExtensions.cs deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/3b-custom-transformations/Client/CheckNameAvailabilityOperationsExtensions.cs +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/3b-custom-transformations/Client/ICheckNameAvailabilityOperations.cs b/Samples/openapi-v2/3b-custom-transformations/Client/ICheckNameAvailabilityOperations.cs deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/3b-custom-transformations/Client/ICheckNameAvailabilityOperations.cs +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/3b-custom-transformations/Client/IStorageAccounts.cs b/Samples/openapi-v2/3b-custom-transformations/Client/IStorageAccounts.cs deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/3b-custom-transformations/Client/IStorageAccounts.cs +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/3b-custom-transformations/Client/IStorageManagementClient.cs b/Samples/openapi-v2/3b-custom-transformations/Client/IStorageManagementClient.cs deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/3b-custom-transformations/Client/IStorageManagementClient.cs +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/3b-custom-transformations/Client/IUsagesOperations.cs b/Samples/openapi-v2/3b-custom-transformations/Client/IUsagesOperations.cs deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/3b-custom-transformations/Client/IUsagesOperations.cs +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/3b-custom-transformations/Client/Models/AccountStatus.cs b/Samples/openapi-v2/3b-custom-transformations/Client/Models/AccountStatus.cs deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/3b-custom-transformations/Client/Models/AccountStatus.cs +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/3b-custom-transformations/Client/Models/AccountType.cs b/Samples/openapi-v2/3b-custom-transformations/Client/Models/AccountType.cs deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/3b-custom-transformations/Client/Models/AccountType.cs +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/3b-custom-transformations/Client/Models/CheckNameAvailabilityResult.cs b/Samples/openapi-v2/3b-custom-transformations/Client/Models/CheckNameAvailabilityResult.cs deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/3b-custom-transformations/Client/Models/CheckNameAvailabilityResult.cs +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/3b-custom-transformations/Client/Models/CustomDomain.cs b/Samples/openapi-v2/3b-custom-transformations/Client/Models/CustomDomain.cs deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/3b-custom-transformations/Client/Models/CustomDomain.cs +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/3b-custom-transformations/Client/Models/Endpoints.cs b/Samples/openapi-v2/3b-custom-transformations/Client/Models/Endpoints.cs deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/3b-custom-transformations/Client/Models/Endpoints.cs +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/3b-custom-transformations/Client/Models/Page.cs b/Samples/openapi-v2/3b-custom-transformations/Client/Models/Page.cs deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/3b-custom-transformations/Client/Models/Page.cs +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/3b-custom-transformations/Client/Models/ProvisioningState.cs b/Samples/openapi-v2/3b-custom-transformations/Client/Models/ProvisioningState.cs deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/3b-custom-transformations/Client/Models/ProvisioningState.cs +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/3b-custom-transformations/Client/Models/Reason.cs b/Samples/openapi-v2/3b-custom-transformations/Client/Models/Reason.cs deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/3b-custom-transformations/Client/Models/Reason.cs +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/3b-custom-transformations/Client/Models/Resource.cs b/Samples/openapi-v2/3b-custom-transformations/Client/Models/Resource.cs deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/3b-custom-transformations/Client/Models/Resource.cs +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/3b-custom-transformations/Client/Models/StorageAccount.cs b/Samples/openapi-v2/3b-custom-transformations/Client/Models/StorageAccount.cs deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/3b-custom-transformations/Client/Models/StorageAccount.cs +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/3b-custom-transformations/Client/Models/StorageAccountCheckNameAvailabilityParameters.cs b/Samples/openapi-v2/3b-custom-transformations/Client/Models/StorageAccountCheckNameAvailabilityParameters.cs deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/3b-custom-transformations/Client/Models/StorageAccountCheckNameAvailabilityParameters.cs +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/3b-custom-transformations/Client/Models/StorageAccountCreateParameters.cs b/Samples/openapi-v2/3b-custom-transformations/Client/Models/StorageAccountCreateParameters.cs deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/3b-custom-transformations/Client/Models/StorageAccountCreateParameters.cs +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/3b-custom-transformations/Client/Models/StorageAccountKeys.cs b/Samples/openapi-v2/3b-custom-transformations/Client/Models/StorageAccountKeys.cs deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/3b-custom-transformations/Client/Models/StorageAccountKeys.cs +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/3b-custom-transformations/Client/Models/StorageAccountRegenerateKeyParameters.cs b/Samples/openapi-v2/3b-custom-transformations/Client/Models/StorageAccountRegenerateKeyParameters.cs deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/3b-custom-transformations/Client/Models/StorageAccountRegenerateKeyParameters.cs +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/3b-custom-transformations/Client/Models/StorageAccountUpdateParameters.cs b/Samples/openapi-v2/3b-custom-transformations/Client/Models/StorageAccountUpdateParameters.cs deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/3b-custom-transformations/Client/Models/StorageAccountUpdateParameters.cs +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/3b-custom-transformations/Client/Models/Usage.cs b/Samples/openapi-v2/3b-custom-transformations/Client/Models/Usage.cs deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/3b-custom-transformations/Client/Models/Usage.cs +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/3b-custom-transformations/Client/Models/UsageName.cs b/Samples/openapi-v2/3b-custom-transformations/Client/Models/UsageName.cs deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/3b-custom-transformations/Client/Models/UsageName.cs +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/3b-custom-transformations/Client/Models/UsageUnit.cs b/Samples/openapi-v2/3b-custom-transformations/Client/Models/UsageUnit.cs deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/3b-custom-transformations/Client/Models/UsageUnit.cs +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/3b-custom-transformations/Client/StorageAccounts.cs b/Samples/openapi-v2/3b-custom-transformations/Client/StorageAccounts.cs deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/3b-custom-transformations/Client/StorageAccounts.cs +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/3b-custom-transformations/Client/StorageAccountsExtensions.cs b/Samples/openapi-v2/3b-custom-transformations/Client/StorageAccountsExtensions.cs deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/3b-custom-transformations/Client/StorageAccountsExtensions.cs +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/3b-custom-transformations/Client/StorageManagementClient.cs b/Samples/openapi-v2/3b-custom-transformations/Client/StorageManagementClient.cs deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/3b-custom-transformations/Client/StorageManagementClient.cs +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/3b-custom-transformations/Client/UsagesOperations.cs b/Samples/openapi-v2/3b-custom-transformations/Client/UsagesOperations.cs deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/3b-custom-transformations/Client/UsagesOperations.cs +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/3b-custom-transformations/Client/UsagesOperationsExtensions.cs b/Samples/openapi-v2/3b-custom-transformations/Client/UsagesOperationsExtensions.cs deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/3b-custom-transformations/Client/UsagesOperationsExtensions.cs +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/3b-custom-transformations/Client/code-model-v1.norm.yaml b/Samples/openapi-v2/3b-custom-transformations/Client/code-model-v1.norm.yaml deleted file mode 100644 index 76ae075cb4..0000000000 --- a/Samples/openapi-v2/3b-custom-transformations/Client/code-model-v1.norm.yaml +++ /dev/null @@ -1,5151 +0,0 @@ ---- -$id: '1' -apiVersion: '2015-06-15' -baseUrl: 'https://management.azure.com' -documentation: The Storage Management Client. -enumTypes: - - $ref: '27' - - $ref: '45' - - $ref: '120' - - $ref: '145' - - $ref: '295' -extensions: - security: - - azure_auth: - - user_impersonation -modelTypes: - - $id: '2' - $type: CompositeType - containsConstantProperties: false - deprecated: false - name: - $id: '15' - fixed: false - raw: StorageAccountCheckNameAvailabilityParameters - properties: - - $id: '3' - collectionFormat: none - defaultValue: - $id: '4' - fixed: false - deprecated: false - documentation: - $id: '5' - fixed: false - isConstant: false - isReadOnly: false - isRequired: true - modelType: - $id: '7' - $type: PrimaryType - deprecated: false - knownPrimaryType: string - name: - $id: '8' - fixed: false - raw: String - name: - $id: '6' - fixed: false - raw: name - realPath: - - name - serializedName: name - - $id: '9' - collectionFormat: none - defaultValue: - $id: '10' - fixed: false - raw: Microsoft.Storage/storageAccounts - deprecated: false - documentation: - $id: '11' - fixed: false - isConstant: false - isReadOnly: false - isRequired: false - modelType: - $id: '13' - $type: PrimaryType - deprecated: false - knownPrimaryType: string - name: - $id: '14' - fixed: false - raw: String - name: - $id: '12' - fixed: false - raw: type - realPath: - - type - serializedName: type - serializedName: StorageAccountCheckNameAvailabilityParameters - - $id: '16' - $type: CompositeType - containsConstantProperties: false - deprecated: false - documentation: The CheckNameAvailability operation response. - name: - $id: '39' - fixed: false - raw: CheckNameAvailabilityResult - properties: - - $id: '17' - collectionFormat: none - defaultValue: - $id: '18' - fixed: false - deprecated: false - documentation: - $id: '19' - fixed: false - raw: >- - Gets a boolean value that indicates whether the name is available - for you to use. If true, the name is available. If false, the name - has already been taken or invalid and cannot be used. - isConstant: false - isReadOnly: false - isRequired: false - modelType: - $id: '21' - $type: PrimaryType - deprecated: false - knownPrimaryType: boolean - name: - $id: '22' - fixed: false - raw: Boolean - name: - $id: '20' - fixed: false - raw: nameAvailable - realPath: - - nameAvailable - serializedName: nameAvailable - - $id: '23' - collectionFormat: none - defaultValue: - $id: '24' - fixed: false - deprecated: false - documentation: - $id: '25' - fixed: false - raw: >- - Gets the reason that a storage account name could not be used. The - Reason element is only returned if NameAvailable is false. - extensions: - x-ms-enum: - modelAsString: false - name: Reason - oldModelAsString: false - isConstant: false - isReadOnly: false - isRequired: false - modelType: - $id: '27' - $type: EnumType - deprecated: false - modelAsString: false - name: - $id: '32' - fixed: false - raw: Reason - oldModelAsString: false - underlyingType: - $id: '30' - $type: PrimaryType - deprecated: false - knownPrimaryType: string - name: - $id: '31' - fixed: false - raw: String - values: - - $id: '28' - name: AccountNameInvalid - serializedName: AccountNameInvalid - - $id: '29' - name: AlreadyExists - serializedName: AlreadyExists - name: - $id: '26' - fixed: false - raw: reason - realPath: - - reason - serializedName: reason - - $id: '33' - collectionFormat: none - defaultValue: - $id: '34' - fixed: false - deprecated: false - documentation: - $id: '35' - fixed: false - raw: Gets an error message explaining the Reason value in more detail. - isConstant: false - isReadOnly: false - isRequired: false - modelType: - $id: '37' - $type: PrimaryType - deprecated: false - knownPrimaryType: string - name: - $id: '38' - fixed: false - raw: String - name: - $id: '36' - fixed: false - raw: message - realPath: - - message - serializedName: message - serializedName: CheckNameAvailabilityResult - - $id: '40' - $type: CompositeType - containsConstantProperties: false - deprecated: false - name: - $id: '54' - fixed: false - raw: StorageAccountPropertiesCreateParameters - properties: - - $id: '41' - collectionFormat: none - defaultValue: - $id: '42' - fixed: false - deprecated: false - documentation: - $id: '43' - fixed: false - raw: Gets or sets the account type. - extensions: - x-ms-enum: - modelAsString: false - name: AccountType - oldModelAsString: false - isConstant: false - isReadOnly: false - isRequired: true - modelType: - $id: '45' - $type: EnumType - deprecated: false - modelAsString: false - name: - $id: '53' - fixed: false - raw: AccountType - oldModelAsString: false - underlyingType: - $id: '51' - $type: PrimaryType - deprecated: false - knownPrimaryType: string - name: - $id: '52' - fixed: false - raw: String - values: - - $id: '46' - name: Standard_LRS - serializedName: Standard_LRS - - $id: '47' - name: Standard_ZRS - serializedName: Standard_ZRS - - $id: '48' - name: Standard_GRS - serializedName: Standard_GRS - - $id: '49' - name: Standard_RAGRS - serializedName: Standard_RAGRS - - $id: '50' - name: Premium_LRS - serializedName: Premium_LRS - name: - $id: '44' - fixed: false - raw: accountType - realPath: - - accountType - serializedName: accountType - serializedName: StorageAccountPropertiesCreateParameters - - $id: '55' - $type: CompositeType - containsConstantProperties: false - deprecated: false - documentation: The parameters to provide for the account. - extensions: - x-ms-azure-resource: true - name: - $id: '74' - fixed: false - raw: StorageAccountCreateParameters - properties: - - $id: '56' - collectionFormat: none - defaultValue: - $id: '57' - fixed: false - deprecated: false - documentation: - $id: '58' - fixed: false - raw: Resource location - isConstant: false - isReadOnly: false - isRequired: true - modelType: - $id: '60' - $type: PrimaryType - deprecated: false - knownPrimaryType: string - name: - $id: '61' - fixed: false - raw: String - name: - $id: '59' - fixed: false - raw: location - realPath: - - location - serializedName: location - - $id: '62' - collectionFormat: none - defaultValue: - $id: '63' - fixed: false - deprecated: false - documentation: - $id: '64' - fixed: false - raw: Resource tags - isConstant: false - isReadOnly: false - isRequired: false - modelType: - $id: '66' - $type: DictionaryType - deprecated: false - name: - $id: '69' - fixed: false - supportsAdditionalProperties: false - valueType: - $id: '67' - $type: PrimaryType - deprecated: false - knownPrimaryType: string - name: - $id: '68' - fixed: false - raw: String - name: - $id: '65' - fixed: false - raw: tags - realPath: - - tags - serializedName: tags - - $id: '70' - collectionFormat: none - defaultValue: - $id: '71' - fixed: false - deprecated: false - documentation: - $id: '72' - fixed: false - extensions: - x-ms-client-flatten: true - isConstant: false - isReadOnly: false - isRequired: false - modelType: - $ref: '40' - name: - $id: '73' - fixed: false - raw: properties - realPath: - - properties - serializedName: properties - serializedName: StorageAccountCreateParameters - - $id: '75' - $type: CompositeType - containsConstantProperties: false - deprecated: false - documentation: >- - The URIs that are used to perform a retrieval of a public blob, queue or - table object. - name: - $id: '100' - fixed: false - raw: Endpoints - properties: - - $id: '76' - collectionFormat: none - defaultValue: - $id: '77' - fixed: false - deprecated: false - documentation: - $id: '78' - fixed: false - raw: Gets the blob endpoint. - isConstant: false - isReadOnly: false - isRequired: false - modelType: - $id: '80' - $type: PrimaryType - deprecated: false - knownPrimaryType: string - name: - $id: '81' - fixed: false - raw: String - name: - $id: '79' - fixed: false - raw: blob - realPath: - - blob - serializedName: blob - - $id: '82' - collectionFormat: none - defaultValue: - $id: '83' - fixed: false - deprecated: false - documentation: - $id: '84' - fixed: false - raw: Gets the queue endpoint. - isConstant: false - isReadOnly: false - isRequired: false - modelType: - $id: '86' - $type: PrimaryType - deprecated: false - knownPrimaryType: string - name: - $id: '87' - fixed: false - raw: String - name: - $id: '85' - fixed: false - raw: queue - realPath: - - queue - serializedName: queue - - $id: '88' - collectionFormat: none - defaultValue: - $id: '89' - fixed: false - deprecated: false - documentation: - $id: '90' - fixed: false - raw: Gets the table endpoint. - isConstant: false - isReadOnly: false - isRequired: false - modelType: - $id: '92' - $type: PrimaryType - deprecated: false - knownPrimaryType: string - name: - $id: '93' - fixed: false - raw: String - name: - $id: '91' - fixed: false - raw: table - realPath: - - table - serializedName: table - - $id: '94' - collectionFormat: none - defaultValue: - $id: '95' - fixed: false - deprecated: false - documentation: - $id: '96' - fixed: false - raw: Gets the file endpoint. - isConstant: false - isReadOnly: false - isRequired: false - modelType: - $id: '98' - $type: PrimaryType - deprecated: false - knownPrimaryType: string - name: - $id: '99' - fixed: false - raw: String - name: - $id: '97' - fixed: false - raw: file - realPath: - - file - serializedName: file - serializedName: Endpoints - - $id: '101' - $type: CompositeType - containsConstantProperties: false - deprecated: false - documentation: >- - The custom domain assigned to this storage account. This can be set via - Update. - name: - $id: '114' - fixed: false - raw: CustomDomain - properties: - - $id: '102' - collectionFormat: none - defaultValue: - $id: '103' - fixed: false - deprecated: false - documentation: - $id: '104' - fixed: false - raw: Gets or sets the custom domain name. Name is the CNAME source. - isConstant: false - isReadOnly: false - isRequired: true - modelType: - $id: '106' - $type: PrimaryType - deprecated: false - knownPrimaryType: string - name: - $id: '107' - fixed: false - raw: String - name: - $id: '105' - fixed: false - raw: name - realPath: - - name - serializedName: name - - $id: '108' - collectionFormat: none - defaultValue: - $id: '109' - fixed: false - deprecated: false - documentation: - $id: '110' - fixed: false - raw: >- - Indicates whether indirect CName validation is enabled. Default - value is false. This should only be set on updates - isConstant: false - isReadOnly: false - isRequired: false - modelType: - $id: '112' - $type: PrimaryType - deprecated: false - knownPrimaryType: boolean - name: - $id: '113' - fixed: false - raw: Boolean - name: - $id: '111' - fixed: false - raw: useSubDomain - realPath: - - useSubDomain - serializedName: useSubDomain - serializedName: CustomDomain - - $id: '115' - $type: CompositeType - containsConstantProperties: false - deprecated: false - name: - $id: '181' - fixed: false - raw: StorageAccountProperties - properties: - - $id: '116' - collectionFormat: none - defaultValue: - $id: '117' - fixed: false - deprecated: false - documentation: - $id: '118' - fixed: false - raw: >- - Gets the status of the storage account at the time the operation was - called. - extensions: - x-ms-enum: - modelAsString: false - name: ProvisioningState - oldModelAsString: false - isConstant: false - isReadOnly: false - isRequired: false - modelType: - $id: '120' - $type: EnumType - deprecated: false - modelAsString: false - name: - $id: '126' - fixed: false - raw: ProvisioningState - oldModelAsString: false - underlyingType: - $id: '124' - $type: PrimaryType - deprecated: false - knownPrimaryType: string - name: - $id: '125' - fixed: false - raw: String - values: - - $id: '121' - name: Creating - serializedName: Creating - - $id: '122' - name: ResolvingDNS - serializedName: ResolvingDNS - - $id: '123' - name: Succeeded - serializedName: Succeeded - name: - $id: '119' - fixed: false - raw: provisioningState - realPath: - - provisioningState - serializedName: provisioningState - - $id: '127' - collectionFormat: none - defaultValue: - $id: '128' - fixed: false - deprecated: false - documentation: - $id: '129' - fixed: false - raw: Gets the type of the storage account. - extensions: - x-ms-enum: - modelAsString: false - name: AccountType - oldModelAsString: false - isConstant: false - isReadOnly: false - isRequired: false - modelType: - $ref: '45' - name: - $id: '130' - fixed: false - raw: accountType - realPath: - - accountType - serializedName: accountType - - $id: '131' - collectionFormat: none - defaultValue: - $id: '132' - fixed: false - deprecated: false - documentation: - $id: '133' - fixed: false - raw: >- - Gets the URLs that are used to perform a retrieval of a public blob, - queue or table object.Note that StandardZRS and PremiumLRS accounts - only return the blob endpoint. - isConstant: false - isReadOnly: false - isRequired: false - modelType: - $ref: '75' - name: - $id: '134' - fixed: false - raw: primaryEndpoints - realPath: - - primaryEndpoints - serializedName: primaryEndpoints - - $id: '135' - collectionFormat: none - defaultValue: - $id: '136' - fixed: false - deprecated: false - documentation: - $id: '137' - fixed: false - raw: Gets the location of the primary for the storage account. - isConstant: false - isReadOnly: false - isRequired: false - modelType: - $id: '139' - $type: PrimaryType - deprecated: false - knownPrimaryType: string - name: - $id: '140' - fixed: false - raw: String - name: - $id: '138' - fixed: false - raw: primaryLocation - realPath: - - primaryLocation - serializedName: primaryLocation - - $id: '141' - collectionFormat: none - defaultValue: - $id: '142' - fixed: false - deprecated: false - documentation: - $id: '143' - fixed: false - raw: >- - Gets the status indicating whether the primary location of the - storage account is available or unavailable. - extensions: - x-ms-enum: - modelAsString: false - name: AccountStatus - oldModelAsString: false - isConstant: false - isReadOnly: false - isRequired: false - modelType: - $id: '145' - $type: EnumType - deprecated: false - modelAsString: false - name: - $id: '150' - fixed: false - raw: AccountStatus - oldModelAsString: false - underlyingType: - $id: '148' - $type: PrimaryType - deprecated: false - knownPrimaryType: string - name: - $id: '149' - fixed: false - raw: String - values: - - $id: '146' - name: Available - serializedName: Available - - $id: '147' - name: Unavailable - serializedName: Unavailable - name: - $id: '144' - fixed: false - raw: statusOfPrimary - realPath: - - statusOfPrimary - serializedName: statusOfPrimary - - $id: '151' - collectionFormat: none - defaultValue: - $id: '152' - fixed: false - deprecated: false - documentation: - $id: '153' - fixed: false - raw: >- - Gets the timestamp of the most recent instance of a failover to the - secondary location. Only the most recent timestamp is retained. This - element is not returned if there has never been a failover instance. - Only available if the accountType is StandardGRS or StandardRAGRS. - isConstant: false - isReadOnly: false - isRequired: false - modelType: - $id: '155' - $type: PrimaryType - deprecated: false - format: date-time - knownPrimaryType: dateTime - name: - $id: '156' - fixed: false - raw: DateTime - name: - $id: '154' - fixed: false - raw: lastGeoFailoverTime - realPath: - - lastGeoFailoverTime - serializedName: lastGeoFailoverTime - - $id: '157' - collectionFormat: none - defaultValue: - $id: '158' - fixed: false - deprecated: false - documentation: - $id: '159' - fixed: false - raw: >- - Gets the location of the geo replicated secondary for the storage - account. Only available if the accountType is StandardGRS or - StandardRAGRS. - isConstant: false - isReadOnly: false - isRequired: false - modelType: - $id: '161' - $type: PrimaryType - deprecated: false - knownPrimaryType: string - name: - $id: '162' - fixed: false - raw: String - name: - $id: '160' - fixed: false - raw: secondaryLocation - realPath: - - secondaryLocation - serializedName: secondaryLocation - - $id: '163' - collectionFormat: none - defaultValue: - $id: '164' - fixed: false - deprecated: false - documentation: - $id: '165' - fixed: false - raw: >- - Gets the status indicating whether the secondary location of the - storage account is available or unavailable. Only available if the - accountType is StandardGRS or StandardRAGRS. - extensions: - x-ms-enum: - modelAsString: false - name: AccountStatus - oldModelAsString: false - isConstant: false - isReadOnly: false - isRequired: false - modelType: - $ref: '145' - name: - $id: '166' - fixed: false - raw: statusOfSecondary - realPath: - - statusOfSecondary - serializedName: statusOfSecondary - - $id: '167' - collectionFormat: none - defaultValue: - $id: '168' - fixed: false - deprecated: false - documentation: - $id: '169' - fixed: false - raw: Gets the creation date and time of the storage account in UTC. - isConstant: false - isReadOnly: false - isRequired: false - modelType: - $id: '171' - $type: PrimaryType - deprecated: false - format: date-time - knownPrimaryType: dateTime - name: - $id: '172' - fixed: false - raw: DateTime - name: - $id: '170' - fixed: false - raw: creationTime - realPath: - - creationTime - serializedName: creationTime - - $id: '173' - collectionFormat: none - defaultValue: - $id: '174' - fixed: false - deprecated: false - documentation: - $id: '175' - fixed: false - raw: >- - Gets the user assigned custom domain assigned to this storage - account. - isConstant: false - isReadOnly: false - isRequired: false - modelType: - $ref: '101' - name: - $id: '176' - fixed: false - raw: customDomain - realPath: - - customDomain - serializedName: customDomain - - $id: '177' - collectionFormat: none - defaultValue: - $id: '178' - fixed: false - deprecated: false - documentation: - $id: '179' - fixed: false - raw: >- - Gets the URLs that are used to perform a retrieval of a public blob, - queue or table object from the secondary location of the storage - account. Only available if the accountType is StandardRAGRS. - isConstant: false - isReadOnly: false - isRequired: false - modelType: - $ref: '75' - name: - $id: '180' - fixed: false - raw: secondaryEndpoints - realPath: - - secondaryEndpoints - serializedName: secondaryEndpoints - serializedName: StorageAccountProperties - - $id: '182' - $type: CompositeType - baseModelType: - $id: '187' - $type: CompositeType - containsConstantProperties: false - deprecated: false - extensions: - x-ms-azure-resource: true - name: - $id: '220' - fixed: false - raw: Resource - properties: - - $id: '188' - collectionFormat: none - defaultValue: - $id: '189' - fixed: false - deprecated: false - documentation: - $id: '190' - fixed: false - raw: Resource Id - isConstant: false - isReadOnly: true - isRequired: false - modelType: - $id: '192' - $type: PrimaryType - deprecated: false - knownPrimaryType: string - name: - $id: '193' - fixed: false - raw: String - name: - $id: '191' - fixed: false - raw: id - realPath: - - id - serializedName: id - - $id: '194' - collectionFormat: none - defaultValue: - $id: '195' - fixed: false - deprecated: false - documentation: - $id: '196' - fixed: false - raw: Resource name - isConstant: false - isReadOnly: true - isRequired: false - modelType: - $id: '198' - $type: PrimaryType - deprecated: false - knownPrimaryType: string - name: - $id: '199' - fixed: false - raw: String - name: - $id: '197' - fixed: false - raw: name - realPath: - - name - serializedName: name - - $id: '200' - collectionFormat: none - defaultValue: - $id: '201' - fixed: false - deprecated: false - documentation: - $id: '202' - fixed: false - raw: Resource type - isConstant: false - isReadOnly: true - isRequired: false - modelType: - $id: '204' - $type: PrimaryType - deprecated: false - knownPrimaryType: string - name: - $id: '205' - fixed: false - raw: String - name: - $id: '203' - fixed: false - raw: type - realPath: - - type - serializedName: type - - $id: '206' - collectionFormat: none - defaultValue: - $id: '207' - fixed: false - deprecated: false - documentation: - $id: '208' - fixed: false - raw: Resource location - isConstant: false - isReadOnly: false - isRequired: false - modelType: - $id: '210' - $type: PrimaryType - deprecated: false - knownPrimaryType: string - name: - $id: '211' - fixed: false - raw: String - name: - $id: '209' - fixed: false - raw: location - realPath: - - location - serializedName: location - - $id: '212' - collectionFormat: none - defaultValue: - $id: '213' - fixed: false - deprecated: false - documentation: - $id: '214' - fixed: false - raw: Resource tags - isConstant: false - isReadOnly: false - isRequired: false - modelType: - $id: '216' - $type: DictionaryType - deprecated: false - name: - $id: '219' - fixed: false - supportsAdditionalProperties: false - valueType: - $id: '217' - $type: PrimaryType - deprecated: false - knownPrimaryType: string - name: - $id: '218' - fixed: false - raw: String - name: - $id: '215' - fixed: false - raw: tags - realPath: - - tags - serializedName: tags - serializedName: Resource - containsConstantProperties: false - deprecated: false - documentation: The storage account. - name: - $id: '221' - fixed: false - raw: StorageAccount - properties: - - $id: '183' - collectionFormat: none - defaultValue: - $id: '184' - fixed: false - deprecated: false - documentation: - $id: '185' - fixed: false - extensions: - x-ms-client-flatten: true - isConstant: false - isReadOnly: false - isRequired: false - modelType: - $ref: '115' - name: - $id: '186' - fixed: false - raw: properties - realPath: - - properties - serializedName: properties - serializedName: StorageAccount - - $id: '222' - $type: CompositeType - containsConstantProperties: false - deprecated: false - documentation: The access keys for the storage account. - name: - $id: '235' - fixed: false - raw: StorageAccountKeys - properties: - - $id: '223' - collectionFormat: none - defaultValue: - $id: '224' - fixed: false - deprecated: false - documentation: - $id: '225' - fixed: false - raw: Gets the value of key 1. - isConstant: false - isReadOnly: false - isRequired: false - modelType: - $id: '227' - $type: PrimaryType - deprecated: false - knownPrimaryType: string - name: - $id: '228' - fixed: false - raw: String - name: - $id: '226' - fixed: false - raw: key1 - realPath: - - key1 - serializedName: key1 - - $id: '229' - collectionFormat: none - defaultValue: - $id: '230' - fixed: false - deprecated: false - documentation: - $id: '231' - fixed: false - raw: Gets the value of key 2. - isConstant: false - isReadOnly: false - isRequired: false - modelType: - $id: '233' - $type: PrimaryType - deprecated: false - knownPrimaryType: string - name: - $id: '234' - fixed: false - raw: String - name: - $id: '232' - fixed: false - raw: key2 - realPath: - - key2 - serializedName: key2 - serializedName: StorageAccountKeys - - $id: '236' - $type: CompositeType - containsConstantProperties: false - deprecated: false - documentation: The list storage accounts operation response. - name: - $id: '243' - fixed: false - raw: StorageAccountListResult - properties: - - $id: '237' - collectionFormat: none - defaultValue: - $id: '238' - fixed: false - deprecated: false - documentation: - $id: '239' - fixed: false - raw: Gets the list of storage accounts and their properties. - isConstant: false - isReadOnly: false - isRequired: false - modelType: - $id: '241' - $type: SequenceType - deprecated: false - elementType: - $ref: '182' - name: - $id: '242' - fixed: false - name: - $id: '240' - fixed: false - raw: value - realPath: - - value - serializedName: value - serializedName: StorageAccountListResult - - $id: '244' - $type: CompositeType - containsConstantProperties: false - deprecated: false - name: - $id: '253' - fixed: false - raw: StorageAccountPropertiesUpdateParameters - properties: - - $id: '245' - collectionFormat: none - defaultValue: - $id: '246' - fixed: false - deprecated: false - documentation: - $id: '247' - fixed: false - raw: >- - Gets or sets the account type. Note that StandardZRS and PremiumLRS - accounts cannot be changed to other account types, and other account - types cannot be changed to StandardZRS or PremiumLRS. - extensions: - x-ms-enum: - modelAsString: false - name: AccountType - oldModelAsString: false - isConstant: false - isReadOnly: false - isRequired: false - modelType: - $ref: '45' - name: - $id: '248' - fixed: false - raw: accountType - realPath: - - accountType - serializedName: accountType - - $id: '249' - collectionFormat: none - defaultValue: - $id: '250' - fixed: false - deprecated: false - documentation: - $id: '251' - fixed: false - raw: >- - User domain assigned to the storage account. Name is the CNAME - source. Only one custom domain is supported per storage account at - this time. To clear the existing custom domain, use an empty string - for the custom domain name property. - isConstant: false - isReadOnly: false - isRequired: false - modelType: - $ref: '101' - name: - $id: '252' - fixed: false - raw: customDomain - realPath: - - customDomain - serializedName: customDomain - serializedName: StorageAccountPropertiesUpdateParameters - - $id: '254' - $type: CompositeType - containsConstantProperties: false - deprecated: false - documentation: The parameters to update on the account. - extensions: - x-ms-azure-resource: true - name: - $id: '267' - fixed: false - raw: StorageAccountUpdateParameters - properties: - - $id: '255' - collectionFormat: none - defaultValue: - $id: '256' - fixed: false - deprecated: false - documentation: - $id: '257' - fixed: false - raw: Resource tags - isConstant: false - isReadOnly: false - isRequired: false - modelType: - $id: '259' - $type: DictionaryType - deprecated: false - name: - $id: '262' - fixed: false - supportsAdditionalProperties: false - valueType: - $id: '260' - $type: PrimaryType - deprecated: false - knownPrimaryType: string - name: - $id: '261' - fixed: false - raw: String - name: - $id: '258' - fixed: false - raw: tags - realPath: - - tags - serializedName: tags - - $id: '263' - collectionFormat: none - defaultValue: - $id: '264' - fixed: false - deprecated: false - documentation: - $id: '265' - fixed: false - extensions: - x-ms-client-flatten: true - isConstant: false - isReadOnly: false - isRequired: false - modelType: - $ref: '244' - name: - $id: '266' - fixed: false - raw: properties - realPath: - - properties - serializedName: properties - serializedName: StorageAccountUpdateParameters - - $id: '268' - $type: CompositeType - containsConstantProperties: false - deprecated: false - name: - $id: '275' - fixed: false - raw: StorageAccountRegenerateKeyParameters - properties: - - $id: '269' - collectionFormat: none - defaultValue: - $id: '270' - fixed: false - deprecated: false - documentation: - $id: '271' - fixed: false - isConstant: false - isReadOnly: false - isRequired: true - modelType: - $id: '273' - $type: PrimaryType - deprecated: false - knownPrimaryType: string - name: - $id: '274' - fixed: false - raw: String - name: - $id: '272' - fixed: false - raw: keyName - realPath: - - keyName - serializedName: keyName - serializedName: StorageAccountRegenerateKeyParameters - - $id: '276' - $type: CompositeType - containsConstantProperties: false - deprecated: false - documentation: The Usage Names. - name: - $id: '289' - fixed: false - raw: UsageName - properties: - - $id: '277' - collectionFormat: none - defaultValue: - $id: '278' - fixed: false - deprecated: false - documentation: - $id: '279' - fixed: false - raw: Gets a string describing the resource name. - isConstant: false - isReadOnly: false - isRequired: false - modelType: - $id: '281' - $type: PrimaryType - deprecated: false - knownPrimaryType: string - name: - $id: '282' - fixed: false - raw: String - name: - $id: '280' - fixed: false - raw: value - realPath: - - value - serializedName: value - - $id: '283' - collectionFormat: none - defaultValue: - $id: '284' - fixed: false - deprecated: false - documentation: - $id: '285' - fixed: false - raw: Gets a localized string describing the resource name. - isConstant: false - isReadOnly: false - isRequired: false - modelType: - $id: '287' - $type: PrimaryType - deprecated: false - knownPrimaryType: string - name: - $id: '288' - fixed: false - raw: String - name: - $id: '286' - fixed: false - raw: localizedValue - realPath: - - localizedValue - serializedName: localizedValue - serializedName: UsageName - - $id: '290' - $type: CompositeType - containsConstantProperties: false - deprecated: false - documentation: DESCRIBES STORAGE RESOURCE USAGE. - name: - $id: '321' - fixed: false - raw: Usage - properties: - - $id: '291' - collectionFormat: none - defaultValue: - $id: '292' - fixed: false - deprecated: false - documentation: - $id: '293' - fixed: false - raw: Gets the unit of measurement. - extensions: - x-ms-enum: - modelAsString: false - name: UsageUnit - oldModelAsString: false - isConstant: false - isReadOnly: false - isRequired: true - modelType: - $id: '295' - $type: EnumType - deprecated: false - modelAsString: false - name: - $id: '304' - fixed: false - raw: UsageUnit - oldModelAsString: false - underlyingType: - $id: '302' - $type: PrimaryType - deprecated: false - knownPrimaryType: string - name: - $id: '303' - fixed: false - raw: String - values: - - $id: '296' - name: Count - serializedName: Count - - $id: '297' - name: Bytes - serializedName: Bytes - - $id: '298' - name: Seconds - serializedName: Seconds - - $id: '299' - name: Percent - serializedName: Percent - - $id: '300' - name: CountsPerSecond - serializedName: CountsPerSecond - - $id: '301' - name: BytesPerSecond - serializedName: BytesPerSecond - name: - $id: '294' - fixed: false - raw: unit - realPath: - - unit - serializedName: unit - - $id: '305' - collectionFormat: none - defaultValue: - $id: '306' - fixed: false - deprecated: false - documentation: - $id: '307' - fixed: false - raw: >- - Gets the current count of the allocated resources in the - subscription. - isConstant: false - isReadOnly: false - isRequired: true - modelType: - $id: '309' - $type: PrimaryType - deprecated: false - format: int32 - knownPrimaryType: int - name: - $id: '310' - fixed: false - raw: Int - name: - $id: '308' - fixed: false - raw: currentValue - realPath: - - currentValue - serializedName: currentValue - - $id: '311' - collectionFormat: none - defaultValue: - $id: '312' - fixed: false - deprecated: false - documentation: - $id: '313' - fixed: false - raw: >- - Gets the maximum count of the resources that can be allocated in the - subscription. - isConstant: false - isReadOnly: false - isRequired: true - modelType: - $id: '315' - $type: PrimaryType - deprecated: false - format: int32 - knownPrimaryType: int - name: - $id: '316' - fixed: false - raw: Int - name: - $id: '314' - fixed: false - raw: limit - realPath: - - limit - serializedName: limit - - $id: '317' - collectionFormat: none - defaultValue: - $id: '318' - fixed: false - deprecated: false - documentation: - $id: '319' - fixed: false - raw: Gets the name of the type of usage. - isConstant: false - isReadOnly: false - isRequired: true - modelType: - $ref: '276' - name: - $id: '320' - fixed: false - raw: name - realPath: - - name - serializedName: name - serializedName: Usage - - $id: '322' - $type: CompositeType - containsConstantProperties: false - deprecated: false - documentation: The List Usages operation response. - name: - $id: '329' - fixed: false - raw: UsageListResult - properties: - - $id: '323' - collectionFormat: none - defaultValue: - $id: '324' - fixed: false - deprecated: false - documentation: - $id: '325' - fixed: false - raw: Gets or sets the list Storage Resource Usages. - isConstant: false - isReadOnly: false - isRequired: false - modelType: - $id: '327' - $type: SequenceType - deprecated: false - elementType: - $ref: '290' - name: - $id: '328' - fixed: false - name: - $id: '326' - fixed: false - raw: value - realPath: - - value - serializedName: value - serializedName: UsageListResult - - $ref: '187' -modelsName: Models -name: StorageManagementClient -namespace: '' -operations: - - $id: '342' - methods: - - $id: '343' - defaultResponse: - $id: '363' - isNullable: true - deprecated: false - description: >- - Checks that the account name has sufficient cowbell (in order to - prevent fevers). - extensions: - x-ms-requestBody-index: '0' - group: - $id: '361' - fixed: false - raw: StorageAccounts - hidden: false - httpMethod: post - isAbsoluteUrl: false - name: - $id: '360' - fixed: false - raw: CheckNameAvailability - parameters: - - $id: '344' - collectionFormat: none - defaultValue: - $id: '345' - fixed: false - deprecated: false - documentation: - $id: '346' - fixed: false - raw: >- - The name of the storage account within the specified resource - group. Storage account names must be between 3 and 24 characters - in length and use numbers and lower-case letters only. - extensions: - x-ms-requestBody-name: accountName - isConstant: false - isRequired: true - location: body - modelType: - $ref: '2' - name: - $id: '347' - fixed: false - raw: accountName - serializedName: accountName - - $id: '348' - clientProperty: - $ref: '336' - collectionFormat: none - defaultValue: - $id: '349' - fixed: false - deprecated: false - documentation: - $id: '350' - fixed: false - raw: Client Api Version. - isConstant: false - isRequired: true - location: query - modelType: - $id: '352' - $type: PrimaryType - deprecated: false - knownPrimaryType: string - name: - $id: '353' - fixed: false - raw: String - name: - $id: '351' - fixed: false - raw: api-version - serializedName: api-version - - $id: '354' - clientProperty: - $ref: '330' - collectionFormat: none - defaultValue: - $id: '355' - fixed: false - deprecated: false - documentation: - $id: '356' - fixed: false - raw: >- - Gets subscription credentials which uniquely identify Microsoft - Azure subscription. The subscription ID forms part of the URI - for every service call. - isConstant: false - isRequired: true - location: path - modelType: - $id: '358' - $type: PrimaryType - deprecated: false - knownPrimaryType: string - name: - $id: '359' - fixed: false - raw: String - name: - $id: '357' - fixed: false - raw: subscriptionId - serializedName: subscriptionId - requestContentType: application/json; charset=utf-8 - responseContentTypes: - - application/json - - text/json - responses: - OK: - $id: '362' - body: - $ref: '16' - isNullable: true - returnType: - $id: '364' - body: - $ref: '16' - isNullable: true - serializedName: StorageAccounts_CheckNameAvailability - url: >- - /subscriptions/{subscriptionId}/providers/Microsoft.Storage/checkNameAvailability - - $id: '365' - defaultResponse: - $id: '398' - isNullable: true - deprecated: false - description: >- - Asynchronously creates a new storage account with the specified - parameters. Existing accounts cannot be updated with this API and - should instead use the Update Storage Account API. If an account is - already created and subsequent PUT request is issued with exact same - set of properties, then HTTP 200 would be returned. Make sure you add - that extra cowbell. - extensions: - x-ms-long-running-operation: true - x-ms-requestBody-index: '2' - group: - $id: '395' - fixed: false - raw: StorageAccounts - hidden: false - httpMethod: put - isAbsoluteUrl: false - name: - $id: '394' - fixed: false - raw: Create - parameters: - - $id: '366' - collectionFormat: none - defaultValue: - $id: '367' - fixed: false - deprecated: false - documentation: - $id: '368' - fixed: false - raw: The name of the resource group within the user's subscription. - isConstant: false - isRequired: true - location: path - modelType: - $id: '370' - $type: PrimaryType - deprecated: false - knownPrimaryType: string - name: - $id: '371' - fixed: false - raw: String - name: - $id: '369' - fixed: false - raw: resourceGroupName - serializedName: resourceGroupName - - $id: '372' - collectionFormat: none - constraints: - MaxLength: '24' - MinLength: '3' - defaultValue: - $id: '373' - fixed: false - deprecated: false - documentation: - $id: '374' - fixed: false - raw: >- - The name of the storage account within the specified resource - group. Storage account names must be between 3 and 24 characters - in length and use numbers and lower-case letters only. - isConstant: false - isRequired: true - location: path - modelType: - $id: '376' - $type: PrimaryType - deprecated: false - knownPrimaryType: string - name: - $id: '377' - fixed: false - raw: String - name: - $id: '375' - fixed: false - raw: accountName - serializedName: accountName - - $id: '378' - collectionFormat: none - defaultValue: - $id: '379' - fixed: false - deprecated: false - documentation: - $id: '380' - fixed: false - raw: The parameters to provide for the created account. - extensions: - x-ms-requestBody-name: parameters - isConstant: false - isRequired: true - location: body - modelType: - $ref: '55' - name: - $id: '381' - fixed: false - raw: parameters - serializedName: parameters - - $id: '382' - clientProperty: - $ref: '336' - collectionFormat: none - defaultValue: - $id: '383' - fixed: false - deprecated: false - documentation: - $id: '384' - fixed: false - raw: Client Api Version. - isConstant: false - isRequired: true - location: query - modelType: - $id: '386' - $type: PrimaryType - deprecated: false - knownPrimaryType: string - name: - $id: '387' - fixed: false - raw: String - name: - $id: '385' - fixed: false - raw: api-version - serializedName: api-version - - $id: '388' - clientProperty: - $ref: '330' - collectionFormat: none - defaultValue: - $id: '389' - fixed: false - deprecated: false - documentation: - $id: '390' - fixed: false - raw: >- - Gets subscription credentials which uniquely identify Microsoft - Azure subscription. The subscription ID forms part of the URI - for every service call. - isConstant: false - isRequired: true - location: path - modelType: - $id: '392' - $type: PrimaryType - deprecated: false - knownPrimaryType: string - name: - $id: '393' - fixed: false - raw: String - name: - $id: '391' - fixed: false - raw: subscriptionId - serializedName: subscriptionId - requestContentType: application/json; charset=utf-8 - responseContentTypes: - - application/json - - text/json - responses: - Accepted: - $id: '397' - isNullable: true - OK: - $id: '396' - body: - $ref: '182' - isNullable: true - returnType: - $id: '399' - body: - $ref: '182' - isNullable: true - serializedName: StorageAccounts_Create - url: >- - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName} - - $id: '400' - defaultResponse: - $id: '429' - isNullable: true - deprecated: false - description: Deletes a storage account in Microsoft Azure. - group: - $id: '426' - fixed: false - raw: StorageAccounts - hidden: false - httpMethod: delete - isAbsoluteUrl: false - name: - $id: '425' - fixed: false - raw: Delete - parameters: - - $id: '401' - collectionFormat: none - defaultValue: - $id: '402' - fixed: false - deprecated: false - documentation: - $id: '403' - fixed: false - raw: The name of the resource group within the user's subscription. - isConstant: false - isRequired: true - location: path - modelType: - $id: '405' - $type: PrimaryType - deprecated: false - knownPrimaryType: string - name: - $id: '406' - fixed: false - raw: String - name: - $id: '404' - fixed: false - raw: resourceGroupName - serializedName: resourceGroupName - - $id: '407' - collectionFormat: none - constraints: - MaxLength: '24' - MinLength: '3' - defaultValue: - $id: '408' - fixed: false - deprecated: false - documentation: - $id: '409' - fixed: false - raw: >- - The name of the storage account within the specified resource - group. Storage account names must be between 3 and 24 characters - in length and use numbers and lower-case letters only. - isConstant: false - isRequired: true - location: path - modelType: - $id: '411' - $type: PrimaryType - deprecated: false - knownPrimaryType: string - name: - $id: '412' - fixed: false - raw: String - name: - $id: '410' - fixed: false - raw: accountName - serializedName: accountName - - $id: '413' - clientProperty: - $ref: '336' - collectionFormat: none - defaultValue: - $id: '414' - fixed: false - deprecated: false - documentation: - $id: '415' - fixed: false - raw: Client Api Version. - isConstant: false - isRequired: true - location: query - modelType: - $id: '417' - $type: PrimaryType - deprecated: false - knownPrimaryType: string - name: - $id: '418' - fixed: false - raw: String - name: - $id: '416' - fixed: false - raw: api-version - serializedName: api-version - - $id: '419' - clientProperty: - $ref: '330' - collectionFormat: none - defaultValue: - $id: '420' - fixed: false - deprecated: false - documentation: - $id: '421' - fixed: false - raw: >- - Gets subscription credentials which uniquely identify Microsoft - Azure subscription. The subscription ID forms part of the URI - for every service call. - isConstant: false - isRequired: true - location: path - modelType: - $id: '423' - $type: PrimaryType - deprecated: false - knownPrimaryType: string - name: - $id: '424' - fixed: false - raw: String - name: - $id: '422' - fixed: false - raw: subscriptionId - serializedName: subscriptionId - requestContentType: application/json; charset=utf-8 - responseContentTypes: - - application/json - responses: - NoContent: - $id: '428' - isNullable: true - OK: - $id: '427' - isNullable: true - returnType: - $id: '430' - isNullable: true - serializedName: StorageAccounts_Delete - url: >- - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName} - - $id: '431' - defaultResponse: - $id: '459' - isNullable: true - deprecated: false - description: >- - Returns the properties for the specified storage account including but - not limited to name, account type, location, and account status. The - ListKeys operation should be used to retrieve storage keys. - group: - $id: '457' - fixed: false - raw: StorageAccounts - hidden: false - httpMethod: get - isAbsoluteUrl: false - name: - $id: '456' - fixed: false - raw: GetProperty - parameters: - - $id: '432' - collectionFormat: none - defaultValue: - $id: '433' - fixed: false - deprecated: false - documentation: - $id: '434' - fixed: false - raw: The name of the resource group within the user's subscription. - isConstant: false - isRequired: true - location: path - modelType: - $id: '436' - $type: PrimaryType - deprecated: false - knownPrimaryType: string - name: - $id: '437' - fixed: false - raw: String - name: - $id: '435' - fixed: false - raw: resourceGroupName - serializedName: resourceGroupName - - $id: '438' - collectionFormat: none - constraints: - MaxLength: '24' - MinLength: '3' - defaultValue: - $id: '439' - fixed: false - deprecated: false - documentation: - $id: '440' - fixed: false - raw: >- - The name of the storage account within the specified resource - group. Storage account names must be between 3 and 24 characters - in length and use numbers and lower-case letters only. - isConstant: false - isRequired: true - location: path - modelType: - $id: '442' - $type: PrimaryType - deprecated: false - knownPrimaryType: string - name: - $id: '443' - fixed: false - raw: String - name: - $id: '441' - fixed: false - raw: accountName - serializedName: accountName - - $id: '444' - clientProperty: - $ref: '336' - collectionFormat: none - defaultValue: - $id: '445' - fixed: false - deprecated: false - documentation: - $id: '446' - fixed: false - raw: Client Api Version. - isConstant: false - isRequired: true - location: query - modelType: - $id: '448' - $type: PrimaryType - deprecated: false - knownPrimaryType: string - name: - $id: '449' - fixed: false - raw: String - name: - $id: '447' - fixed: false - raw: api-version - serializedName: api-version - - $id: '450' - clientProperty: - $ref: '330' - collectionFormat: none - defaultValue: - $id: '451' - fixed: false - deprecated: false - documentation: - $id: '452' - fixed: false - raw: >- - Gets subscription credentials which uniquely identify Microsoft - Azure subscription. The subscription ID forms part of the URI - for every service call. - isConstant: false - isRequired: true - location: path - modelType: - $id: '454' - $type: PrimaryType - deprecated: false - knownPrimaryType: string - name: - $id: '455' - fixed: false - raw: String - name: - $id: '453' - fixed: false - raw: subscriptionId - serializedName: subscriptionId - requestContentType: application/json; charset=utf-8 - responseContentTypes: - - application/json - - text/json - responses: - OK: - $id: '458' - body: - $ref: '182' - isNullable: true - returnType: - $id: '460' - body: - $ref: '182' - isNullable: true - serializedName: StorageAccounts_GetProperty - url: >- - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName} - - $id: '461' - defaultResponse: - $id: '493' - isNullable: true - deprecated: false - description: >- - Updates the account type or tags for a storage account. It can also be - used to add a custom domain (note that custom domains cannot be added - via the Create operation). Only one custom domain is supported per - storage account. In order to replace a custom domain, the old value - must be cleared before a new value may be set. To clear a custom - domain, simply update the custom domain with empty string. Then call - update again with the new cutsom domain name. The update API can only - be used to update one of tags, accountType, or customDomain per call. - To update multiple of these properties, call the API multiple times - with one change per call. This call does not change the storage keys - for the account. If you want to change storage account keys, use the - RegenerateKey operation. The location and name of the storage account - cannot be changed after creation. - extensions: - x-ms-requestBody-index: '2' - group: - $id: '491' - fixed: false - raw: StorageAccounts - hidden: false - httpMethod: patch - isAbsoluteUrl: false - name: - $id: '490' - fixed: false - raw: Update - parameters: - - $id: '462' - collectionFormat: none - defaultValue: - $id: '463' - fixed: false - deprecated: false - documentation: - $id: '464' - fixed: false - raw: The name of the resource group within the user's subscription. - isConstant: false - isRequired: true - location: path - modelType: - $id: '466' - $type: PrimaryType - deprecated: false - knownPrimaryType: string - name: - $id: '467' - fixed: false - raw: String - name: - $id: '465' - fixed: false - raw: resourceGroupName - serializedName: resourceGroupName - - $id: '468' - collectionFormat: none - constraints: - MaxLength: '24' - MinLength: '3' - defaultValue: - $id: '469' - fixed: false - deprecated: false - documentation: - $id: '470' - fixed: false - raw: >- - The name of the storage account within the specified resource - group. Storage account names must be between 3 and 24 characters - in length and use numbers and lower-case letters only. - isConstant: false - isRequired: true - location: path - modelType: - $id: '472' - $type: PrimaryType - deprecated: false - knownPrimaryType: string - name: - $id: '473' - fixed: false - raw: String - name: - $id: '471' - fixed: false - raw: accountName - serializedName: accountName - - $id: '474' - collectionFormat: none - defaultValue: - $id: '475' - fixed: false - deprecated: false - documentation: - $id: '476' - fixed: false - raw: >- - The parameters to update on the account. Note that only one - property can be changed at a time using this API. - extensions: - x-ms-requestBody-name: parameters - isConstant: false - isRequired: true - location: body - modelType: - $ref: '254' - name: - $id: '477' - fixed: false - raw: parameters - serializedName: parameters - - $id: '478' - clientProperty: - $ref: '336' - collectionFormat: none - defaultValue: - $id: '479' - fixed: false - deprecated: false - documentation: - $id: '480' - fixed: false - raw: Client Api Version. - isConstant: false - isRequired: true - location: query - modelType: - $id: '482' - $type: PrimaryType - deprecated: false - knownPrimaryType: string - name: - $id: '483' - fixed: false - raw: String - name: - $id: '481' - fixed: false - raw: api-version - serializedName: api-version - - $id: '484' - clientProperty: - $ref: '330' - collectionFormat: none - defaultValue: - $id: '485' - fixed: false - deprecated: false - documentation: - $id: '486' - fixed: false - raw: >- - Gets subscription credentials which uniquely identify Microsoft - Azure subscription. The subscription ID forms part of the URI - for every service call. - isConstant: false - isRequired: true - location: path - modelType: - $id: '488' - $type: PrimaryType - deprecated: false - knownPrimaryType: string - name: - $id: '489' - fixed: false - raw: String - name: - $id: '487' - fixed: false - raw: subscriptionId - serializedName: subscriptionId - requestContentType: application/json; charset=utf-8 - responseContentTypes: - - application/json - - text/json - responses: - OK: - $id: '492' - body: - $ref: '182' - isNullable: true - returnType: - $id: '494' - body: - $ref: '182' - isNullable: true - serializedName: StorageAccounts_Update - url: >- - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName} - - $id: '495' - defaultResponse: - $id: '523' - isNullable: true - deprecated: false - description: Lists the access keys for the specified storage account. - group: - $id: '521' - fixed: false - raw: StorageAccounts - hidden: false - httpMethod: post - isAbsoluteUrl: false - name: - $id: '520' - fixed: false - raw: ListKeys - parameters: - - $id: '496' - collectionFormat: none - defaultValue: - $id: '497' - fixed: false - deprecated: false - documentation: - $id: '498' - fixed: false - raw: The name of the resource group. - isConstant: false - isRequired: true - location: path - modelType: - $id: '500' - $type: PrimaryType - deprecated: false - knownPrimaryType: string - name: - $id: '501' - fixed: false - raw: String - name: - $id: '499' - fixed: false - raw: resourceGroupName - serializedName: resourceGroupName - - $id: '502' - collectionFormat: none - constraints: - MaxLength: '24' - MinLength: '3' - defaultValue: - $id: '503' - fixed: false - deprecated: false - documentation: - $id: '504' - fixed: false - raw: The name of the storage account. - isConstant: false - isRequired: true - location: path - modelType: - $id: '506' - $type: PrimaryType - deprecated: false - knownPrimaryType: string - name: - $id: '507' - fixed: false - raw: String - name: - $id: '505' - fixed: false - raw: accountName - serializedName: accountName - - $id: '508' - clientProperty: - $ref: '336' - collectionFormat: none - defaultValue: - $id: '509' - fixed: false - deprecated: false - documentation: - $id: '510' - fixed: false - raw: Client Api Version. - isConstant: false - isRequired: true - location: query - modelType: - $id: '512' - $type: PrimaryType - deprecated: false - knownPrimaryType: string - name: - $id: '513' - fixed: false - raw: String - name: - $id: '511' - fixed: false - raw: api-version - serializedName: api-version - - $id: '514' - clientProperty: - $ref: '330' - collectionFormat: none - defaultValue: - $id: '515' - fixed: false - deprecated: false - documentation: - $id: '516' - fixed: false - raw: >- - Gets subscription credentials which uniquely identify Microsoft - Azure subscription. The subscription ID forms part of the URI - for every service call. - isConstant: false - isRequired: true - location: path - modelType: - $id: '518' - $type: PrimaryType - deprecated: false - knownPrimaryType: string - name: - $id: '519' - fixed: false - raw: String - name: - $id: '517' - fixed: false - raw: subscriptionId - serializedName: subscriptionId - requestContentType: application/json; charset=utf-8 - responseContentTypes: - - application/json - - text/json - responses: - OK: - $id: '522' - body: - $ref: '222' - isNullable: true - returnType: - $id: '524' - body: - $ref: '222' - isNullable: true - serializedName: StorageAccounts_ListKeys - url: >- - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/listKeys - - $id: '525' - defaultResponse: - $id: '541' - isNullable: true - deprecated: false - description: >- - Lists all the storage accounts available under the subscription. Note - that storage keys are not returned; use the ListKeys operation for - this. - extensions: - x-ms-pageable: - nextLinkName: null - group: - $id: '539' - fixed: false - raw: StorageAccounts - hidden: false - httpMethod: get - isAbsoluteUrl: false - name: - $id: '538' - fixed: false - raw: List - parameters: - - $id: '526' - clientProperty: - $ref: '336' - collectionFormat: none - defaultValue: - $id: '527' - fixed: false - deprecated: false - documentation: - $id: '528' - fixed: false - raw: Client Api Version. - isConstant: false - isRequired: true - location: query - modelType: - $id: '530' - $type: PrimaryType - deprecated: false - knownPrimaryType: string - name: - $id: '531' - fixed: false - raw: String - name: - $id: '529' - fixed: false - raw: api-version - serializedName: api-version - - $id: '532' - clientProperty: - $ref: '330' - collectionFormat: none - defaultValue: - $id: '533' - fixed: false - deprecated: false - documentation: - $id: '534' - fixed: false - raw: >- - Gets subscription credentials which uniquely identify Microsoft - Azure subscription. The subscription ID forms part of the URI - for every service call. - isConstant: false - isRequired: true - location: path - modelType: - $id: '536' - $type: PrimaryType - deprecated: false - knownPrimaryType: string - name: - $id: '537' - fixed: false - raw: String - name: - $id: '535' - fixed: false - raw: subscriptionId - serializedName: subscriptionId - requestContentType: application/json; charset=utf-8 - responseContentTypes: - - application/json - - text/json - responses: - OK: - $id: '540' - body: - $ref: '236' - isNullable: true - returnType: - $id: '542' - body: - $ref: '236' - isNullable: true - serializedName: StorageAccounts_List - url: >- - /subscriptions/{subscriptionId}/providers/Microsoft.Storage/storageAccounts - - $id: '543' - defaultResponse: - $id: '565' - isNullable: true - deprecated: false - description: >- - Lists all the storage accounts available under the given resource - group. Note that storage keys are not returned; use the ListKeys - operation for this. - extensions: - x-ms-pageable: - nextLinkName: null - group: - $id: '563' - fixed: false - raw: StorageAccounts - hidden: false - httpMethod: get - isAbsoluteUrl: false - name: - $id: '562' - fixed: false - raw: ListByResourceGroup - parameters: - - $id: '544' - collectionFormat: none - defaultValue: - $id: '545' - fixed: false - deprecated: false - documentation: - $id: '546' - fixed: false - raw: The name of the resource group within the user's subscription. - isConstant: false - isRequired: true - location: path - modelType: - $id: '548' - $type: PrimaryType - deprecated: false - knownPrimaryType: string - name: - $id: '549' - fixed: false - raw: String - name: - $id: '547' - fixed: false - raw: resourceGroupName - serializedName: resourceGroupName - - $id: '550' - clientProperty: - $ref: '336' - collectionFormat: none - defaultValue: - $id: '551' - fixed: false - deprecated: false - documentation: - $id: '552' - fixed: false - raw: Client Api Version. - isConstant: false - isRequired: true - location: query - modelType: - $id: '554' - $type: PrimaryType - deprecated: false - knownPrimaryType: string - name: - $id: '555' - fixed: false - raw: String - name: - $id: '553' - fixed: false - raw: api-version - serializedName: api-version - - $id: '556' - clientProperty: - $ref: '330' - collectionFormat: none - defaultValue: - $id: '557' - fixed: false - deprecated: false - documentation: - $id: '558' - fixed: false - raw: >- - Gets subscription credentials which uniquely identify Microsoft - Azure subscription. The subscription ID forms part of the URI - for every service call. - isConstant: false - isRequired: true - location: path - modelType: - $id: '560' - $type: PrimaryType - deprecated: false - knownPrimaryType: string - name: - $id: '561' - fixed: false - raw: String - name: - $id: '559' - fixed: false - raw: subscriptionId - serializedName: subscriptionId - requestContentType: application/json; charset=utf-8 - responseContentTypes: - - application/json - - text/json - responses: - OK: - $id: '564' - body: - $ref: '236' - isNullable: true - returnType: - $id: '566' - body: - $ref: '236' - isNullable: true - serializedName: StorageAccounts_ListByResourceGroup - url: >- - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts - - $id: '567' - defaultResponse: - $id: '599' - isNullable: true - deprecated: false - description: Regenerates the access keys for the specified storage account. - extensions: - x-ms-requestBody-index: '2' - group: - $id: '597' - fixed: false - raw: StorageAccounts - hidden: false - httpMethod: post - isAbsoluteUrl: false - name: - $id: '596' - fixed: false - raw: RegenerateKey - parameters: - - $id: '568' - collectionFormat: none - defaultValue: - $id: '569' - fixed: false - deprecated: false - documentation: - $id: '570' - fixed: false - raw: The name of the resource group within the user's subscription. - isConstant: false - isRequired: true - location: path - modelType: - $id: '572' - $type: PrimaryType - deprecated: false - knownPrimaryType: string - name: - $id: '573' - fixed: false - raw: String - name: - $id: '571' - fixed: false - raw: resourceGroupName - serializedName: resourceGroupName - - $id: '574' - collectionFormat: none - constraints: - MaxLength: '24' - MinLength: '3' - defaultValue: - $id: '575' - fixed: false - deprecated: false - documentation: - $id: '576' - fixed: false - raw: >- - The name of the storage account within the specified resource - group. Storage account names must be between 3 and 24 characters - in length and use numbers and lower-case letters only. - isConstant: false - isRequired: true - location: path - modelType: - $id: '578' - $type: PrimaryType - deprecated: false - knownPrimaryType: string - name: - $id: '579' - fixed: false - raw: String - name: - $id: '577' - fixed: false - raw: accountName - serializedName: accountName - - $id: '580' - collectionFormat: none - defaultValue: - $id: '581' - fixed: false - deprecated: false - documentation: - $id: '582' - fixed: false - raw: >- - Specifies name of the key which should be regenerated. key1 or - key2 for the default keys - extensions: - x-ms-requestBody-name: regenerateKey - isConstant: false - isRequired: true - location: body - modelType: - $ref: '268' - name: - $id: '583' - fixed: false - raw: regenerateKey - serializedName: regenerateKey - - $id: '584' - clientProperty: - $ref: '336' - collectionFormat: none - defaultValue: - $id: '585' - fixed: false - deprecated: false - documentation: - $id: '586' - fixed: false - raw: Client Api Version. - isConstant: false - isRequired: true - location: query - modelType: - $id: '588' - $type: PrimaryType - deprecated: false - knownPrimaryType: string - name: - $id: '589' - fixed: false - raw: String - name: - $id: '587' - fixed: false - raw: api-version - serializedName: api-version - - $id: '590' - clientProperty: - $ref: '330' - collectionFormat: none - defaultValue: - $id: '591' - fixed: false - deprecated: false - documentation: - $id: '592' - fixed: false - raw: >- - Gets subscription credentials which uniquely identify Microsoft - Azure subscription. The subscription ID forms part of the URI - for every service call. - isConstant: false - isRequired: true - location: path - modelType: - $id: '594' - $type: PrimaryType - deprecated: false - knownPrimaryType: string - name: - $id: '595' - fixed: false - raw: String - name: - $id: '593' - fixed: false - raw: subscriptionId - serializedName: subscriptionId - requestContentType: application/json; charset=utf-8 - responseContentTypes: - - application/json - - text/json - responses: - OK: - $id: '598' - body: - $ref: '222' - isNullable: true - returnType: - $id: '600' - body: - $ref: '222' - isNullable: true - serializedName: StorageAccounts_RegenerateKey - url: >- - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/regenerateKey - name: - $id: '601' - fixed: false - raw: checkNameAvailability - nameForProperty: StorageAccounts - summary: |- - { - "$id": "342", - "methods": [ - { - "$id": "343", - "parameters": [ - { - "$id": "344", - "location": "body", - "collectionFormat": "none", - "defaultValue": { - "$id": "345", - "fixed": false - }, - "deprecated": false, - "documentation": { - "$id": "346", - "fixed": false, - "raw": "The name of the storage account within the specified resource group. Storage account names must be between 3 and 24 characters in length and use numbers and lower-case letters only." - }, - "extensions": { - "x-ms-requestBody-name": "accountName" - }, - "isRequired": true, - "isConstant": false, - "name": { - "$id": "347", - "fixed": false, - "raw": "accountName" - }, - "serializedName": "accountName", - "modelType": { - "$ref": "2" - } - }, - { - "$id": "348", - "clientProperty": { - "$ref": "336" - }, - "location": "query", - "collectionFormat": "none", - "defaultValue": { - "$id": "349", - "fixed": false - }, - "deprecated": false, - "documentation": { - "$id": "350", - "fixed": false, - "raw": "Client Api Version." - }, - "isRequired": true, - "isConstant": false, - "name": { - "$id": "351", - "fixed": false, - "raw": "api-version" - }, - "serializedName": "api-version", - "modelType": { - "$id": "352", - "$type": "PrimaryType", - "knownPrimaryType": "string", - "name": { - "$id": "353", - "fixed": false, - "raw": "String" - }, - "deprecated": false - } - }, - { - "$id": "354", - "clientProperty": { - "$ref": "330" - }, - "location": "path", - "collectionFormat": "none", - "defaultValue": { - "$id": "355", - "fixed": false - }, - "deprecated": false, - "documentation": { - "$id": "356", - "fixed": false, - "raw": "Gets subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call." - }, - "isRequired": true, - "isConstant": false, - "name": { - "$id": "357", - "fixed": false, - "raw": "subscriptionId" - }, - "serializedName": "subscriptionId", - "modelType": { - "$id": "358", - "$type": "PrimaryType", - "knownPrimaryType": "string", - "name": { - "$id": "359", - "fixed": false, - "raw": "String" - }, - "deprecated": false - } - } - ], - "name": { - "$id": "360", - "fixed": false, - "raw": "CheckNameAvailability" - }, - "group": { - "$id": "361", - "fixed": false, - "raw": "StorageAccounts" - }, - "serializedName": "StorageAccounts_CheckNameAvailability", - "url": "/subscriptions/{subscriptionId}/providers/Microsoft.Storage/checkNameAvailability", - "isAbsoluteUrl": false, - "httpMethod": "post", - "responses": { - "OK": { - "$id": "362", - "body": { - "$ref": "16" - }, - "isNullable": true - } - }, - "defaultResponse": { - "$id": "363", - "isNullable": true - }, - "returnType": { - "$id": "364", - "body": { - "$ref": "16" - }, - "isNullable": true - }, - "description": "Checks that the account name has sufficient cowbell (in order to prevent fevers).", - "requestContentType": "application/json; charset=utf-8", - "responseContentTypes": [ - "application/json", - "text/json" - ], - "extensions": { - "x-ms-requestBody-index": "0" - }, - "deprecated": false, - "hidden": false - }, - { - "$id": "365", - "parameters": [ - { - "$id": "366", - "location": "path", - "collectionFormat": "none", - "defaultValue": { - "$id": "367", - "fixed": false - }, - "deprecated": false, - "documentation": { - "$id": "368", - "fixed": false, - "raw": "The name of the resource group within the user's subscription." - }, - "isRequired": true, - "isConstant": false, - "name": { - "$id": "369", - "fixed": false, - "raw": "resourceGroupName" - }, - "serializedName": "resourceGroupName", - "modelType": { - "$id": "370", - "$type": "PrimaryType", - "knownPrimaryType": "string", - "name": { - "$id": "371", - "fixed": false, - "raw": "String" - }, - "deprecated": false - } - }, - { - "$id": "372", - "location": "path", - "collectionFormat": "none", - "constraints": { - "MaxLength": "24", - "MinLength": "3" - }, - "defaultValue": { - "$id": "373", - "fixed": false - }, - "deprecated": false, - "documentation": { - "$id": "374", - "fixed": false, - "raw": "The name of the storage account within the specified resource group. Storage account names must be between 3 and 24 characters in length and use numbers and lower-case letters only. " - }, - "isRequired": true, - "isConstant": false, - "name": { - "$id": "375", - "fixed": false, - "raw": "accountName" - }, - "serializedName": "accountName", - "modelType": { - "$id": "376", - "$type": "PrimaryType", - "knownPrimaryType": "string", - "name": { - "$id": "377", - "fixed": false, - "raw": "String" - }, - "deprecated": false - } - }, - { - "$id": "378", - "location": "body", - "collectionFormat": "none", - "defaultValue": { - "$id": "379", - "fixed": false - }, - "deprecated": false, - "documentation": { - "$id": "380", - "fixed": false, - "raw": "The parameters to provide for the created account." - }, - "extensions": { - "x-ms-requestBody-name": "parameters" - }, - "isRequired": true, - "isConstant": false, - "name": { - "$id": "381", - "fixed": false, - "raw": "parameters" - }, - "serializedName": "parameters", - "modelType": { - "$ref": "55" - } - }, - { - "$id": "382", - "clientProperty": { - "$ref": "336" - }, - "location": "query", - "collectionFormat": "none", - "defaultValue": { - "$id": "383", - "fixed": false - }, - "deprecated": false, - "documentation": { - "$id": "384", - "fixed": false, - "raw": "Client Api Version." - }, - "isRequired": true, - "isConstant": false, - "name": { - "$id": "385", - "fixed": false, - "raw": "api-version" - }, - "serializedName": "api-version", - "modelType": { - "$id": "386", - "$type": "PrimaryType", - "knownPrimaryType": "string", - "name": { - "$id": "387", - "fixed": false, - "raw": "String" - }, - "deprecated": false - } - }, - { - "$id": "388", - "clientProperty": { - "$ref": "330" - }, - "location": "path", - "collectionFormat": "none", - "defaultValue": { - "$id": "389", - "fixed": false - }, - "deprecated": false, - "documentation": { - "$id": "390", - "fixed": false, - "raw": "Gets subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call." - }, - "isRequired": true, - "isConstant": false, - "name": { - "$id": "391", - "fixed": false, - "raw": "subscriptionId" - }, - "serializedName": "subscriptionId", - "modelType": { - "$id": "392", - "$type": "PrimaryType", - "knownPrimaryType": "string", - "name": { - "$id": "393", - "fixed": false, - "raw": "String" - }, - "deprecated": false - } - } - ], - "name": { - "$id": "394", - "fixed": false, - "raw": "Create" - }, - "group": { - "$id": "395", - "fixed": false, - "raw": "StorageAccounts" - }, - "serializedName": "StorageAccounts_Create", - "url": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}", - "isAbsoluteUrl": false, - "httpMethod": "put", - "responses": { - "OK": { - "$id": "396", - "body": { - "$ref": "182" - }, - "isNullable": true - }, - "Accepted": { - "$id": "397", - "isNullable": true - } - }, - "defaultResponse": { - "$id": "398", - "isNullable": true - }, - "returnType": { - "$id": "399", - "body": { - "$ref": "182" - }, - "isNullable": true - }, - "description": "Asynchronously creates a new storage account with the specified parameters. Existing accounts cannot be updated with this API and should instead use the Update Storage Account API. If an account is already created and subsequent PUT request is issued with exact same set of properties, then HTTP 200 would be returned. Make sure you add that extra cowbell.", - "requestContentType": "application/json; charset=utf-8", - "responseContentTypes": [ - "application/json", - "text/json" - ], - "extensions": { - "x-ms-long-running-operation": true, - "x-ms-requestBody-index": "2" - }, - "deprecated": false, - "hidden": false - }, - { - "$id": "400", - "parameters": [ - { - "$id": "401", - "location": "path", - "collectionFormat": "none", - "defaultValue": { - "$id": "402", - "fixed": false - }, - "deprecated": false, - "documentation": { - "$id": "403", - "fixed": false, - "raw": "The name of the resource group within the user's subscription." - }, - "isRequired": true, - "isConstant": false, - "name": { - "$id": "404", - "fixed": false, - "raw": "resourceGroupName" - }, - "serializedName": "resourceGroupName", - "modelType": { - "$id": "405", - "$type": "PrimaryType", - "knownPrimaryType": "string", - "name": { - "$id": "406", - "fixed": false, - "raw": "String" - }, - "deprecated": false - } - }, - { - "$id": "407", - "location": "path", - "collectionFormat": "none", - "constraints": { - "MaxLength": "24", - "MinLength": "3" - }, - "defaultValue": { - "$id": "408", - "fixed": false - }, - "deprecated": false, - "documentation": { - "$id": "409", - "fixed": false, - "raw": "The name of the storage account within the specified resource group. Storage account names must be between 3 and 24 characters in length and use numbers and lower-case letters only. " - }, - "isRequired": true, - "isConstant": false, - "name": { - "$id": "410", - "fixed": false, - "raw": "accountName" - }, - "serializedName": "accountName", - "modelType": { - "$id": "411", - "$type": "PrimaryType", - "knownPrimaryType": "string", - "name": { - "$id": "412", - "fixed": false, - "raw": "String" - }, - "deprecated": false - } - }, - { - "$id": "413", - "clientProperty": { - "$ref": "336" - }, - "location": "query", - "collectionFormat": "none", - "defaultValue": { - "$id": "414", - "fixed": false - }, - "deprecated": false, - "documentation": { - "$id": "415", - "fixed": false, - "raw": "Client Api Version." - }, - "isRequired": true, - "isConstant": false, - "name": { - "$id": "416", - "fixed": false, - "raw": "api-version" - }, - "serializedName": "api-version", - "modelType": { - "$id": "417", - "$type": "PrimaryType", - "knownPrimaryType": "string", - "name": { - "$id": "418", - "fixed": false, - "raw": "String" - }, - "deprecated": false - } - }, - { - "$id": "419", - "clientProperty": { - "$ref": "330" - }, - "location": "path", - "collectionFormat": "none", - "defaultValue": { - "$id": "420", - "fixed": false - }, - "deprecated": false, - "documentation": { - "$id": "421", - "fixed": false, - "raw": "Gets subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call." - }, - "isRequired": true, - "isConstant": false, - "name": { - "$id": "422", - "fixed": false, - "raw": "subscriptionId" - }, - "serializedName": "subscriptionId", - "modelType": { - "$id": "423", - "$type": "PrimaryType", - "knownPrimaryType": "string", - "name": { - "$id": "424", - "fixed": false, - "raw": "String" - }, - "deprecated": false - } - } - ], - "name": { - "$id": "425", - "fixed": false, - "raw": "Delete" - }, - "group": { - "$id": "426", - "fixed": false, - "raw": "StorageAccounts" - }, - "serializedName": "StorageAccounts_Delete", - "url": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}", - "isAbsoluteUrl": false, - "httpMethod": "delete", - "responses": { - "OK": { - "$id": "427", - "isNullable": true - }, - "NoContent": { - "$id": "428", - "isNullable": true - } - }, - "defaultResponse": { - "$id": "429", - "isNullable": true - }, - "returnType": { - "$id": "430", - "isNullable": true - }, - "description": "Deletes a storage account in Microsoft Azure.", - "requestContentType": "application/json; charset=utf-8", - "responseContentTypes": [ - "application/json" - ], - "deprecated": false, - "hidden": false - }, - { - "$id": "431", - "parameters": [ - { - "$id": "432", - "location": "path", - "collectionFormat": "none", - "defaultValue": { - "$id": "433", - "fixed": false - }, - "deprecated": false, - "documentation": { - "$id": "434", - "fixed": false, - "raw": "The name of the resource group within the user's subscription." - }, - "isRequired": true, - "isConstant": false, - "name": { - "$id": "435", - "fixed": false, - "raw": "resourceGroupName" - }, - "serializedName": "resourceGroupName", - "modelType": { - "$id": "436", - "$type": "PrimaryType", - "knownPrimaryType": "string", - "name": { - "$id": "437", - "fixed": false, - "raw": "String" - }, - "deprecated": false - } - }, - { - "$id": "438", - "location": "path", - "collectionFormat": "none", - "constraints": { - "MaxLength": "24", - "MinLength": "3" - }, - "defaultValue": { - "$id": "439", - "fixed": false - }, - "deprecated": false, - "documentation": { - "$id": "440", - "fixed": false, - "raw": "The name of the storage account within the specified resource group. Storage account names must be between 3 and 24 characters in length and use numbers and lower-case letters only. " - }, - "isRequired": true, - "isConstant": false, - "name": { - "$id": "441", - "fixed": false, - "raw": "accountName" - }, - "serializedName": "accountName", - "modelType": { - "$id": "442", - "$type": "PrimaryType", - "knownPrimaryType": "string", - "name": { - "$id": "443", - "fixed": false, - "raw": "String" - }, - "deprecated": false - } - }, - { - "$id": "444", - "clientProperty": { - "$ref": "336" - }, - "location": "query", - "collectionFormat": "none", - "defaultValue": { - "$id": "445", - "fixed": false - }, - "deprecated": false, - "documentation": { - "$id": "446", - "fixed": false, - "raw": "Client Api Version." - }, - "isRequired": true, - "isConstant": false, - "name": { - "$id": "447", - "fixed": false, - "raw": "api-version" - }, - "serializedName": "api-version", - "modelType": { - "$id": "448", - "$type": "PrimaryType", - "knownPrimaryType": "string", - "name": { - "$id": "449", - "fixed": false, - "raw": "String" - }, - "deprecated": false - } - }, - { - "$id": "450", - "clientProperty": { - "$ref": "330" - }, - "location": "path", - "collectionFormat": "none", - "defaultValue": { - "$id": "451", - "fixed": false - }, - "deprecated": false, - "documentation": { - "$id": "452", - "fixed": false, - "raw": "Gets subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call." - }, - "isRequired": true, - "isConstant": false, - "name": { - "$id": "453", - "fixed": false, - "raw": "subscriptionId" - }, - "serializedName": "subscriptionId", - "modelType": { - "$id": "454", - "$type": "PrimaryType", - "knownPrimaryType": "string", - "name": { - "$id": "455", - "fixed": false, - "raw": "String" - }, - "deprecated": false - } - } - ], - "name": { - "$id": "456", - "fixed": false, - "raw": "GetProperty" - }, - "group": { - "$id": "457", - "fixed": false, - "raw": "StorageAccounts" - }, - "serializedName": "StorageAccounts_GetProperty", - "url": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}", - "isAbsoluteUrl": false, - "httpMethod": "get", - "responses": { - "OK": { - "$id": "458", - "body": { - "$ref": "182" - }, - "isNullable": true - } - }, - "defaultResponse": { - "$id": "459", - "isNullable": true - }, - "returnType": { - "$id": "460", - "body": { - "$ref": "182" - }, - "isNullable": true - }, - "description": "Returns the properties for the specified storage account including but not limited to name, account type, location, and account status. The ListKeys operation should be used to retrieve storage keys.", - "requestContentType": "application/json; charset=utf-8", - "responseContentTypes": [ - "application/json", - "text/json" - ], - "deprecated": false, - "hidden": false - }, - { - "$id": "461", - "parameters": [ - { - "$id": "462", - "location": "path", - "collectionFormat": "none", - "defaultValue": { - "$id": "463", - "fixed": false - }, - "deprecated": false, - "documentation": { - "$id": "464", - "fixed": false, - "raw": "The name of the resource group within the user's subscription." - }, - "isRequired": true, - "isConstant": false, - "name": { - "$id": "465", - "fixed": false, - "raw": "resourceGroupName" - }, - "serializedName": "resourceGroupName", - "modelType": { - "$id": "466", - "$type": "PrimaryType", - "knownPrimaryType": "string", - "name": { - "$id": "467", - "fixed": false, - "raw": "String" - }, - "deprecated": false - } - }, - { - "$id": "468", - "location": "path", - "collectionFormat": "none", - "constraints": { - "MaxLength": "24", - "MinLength": "3" - }, - "defaultValue": { - "$id": "469", - "fixed": false - }, - "deprecated": false, - "documentation": { - "$id": "470", - "fixed": false, - "raw": "The name of the storage account within the specified resource group. Storage account names must be between 3 and 24 characters in length and use numbers and lower-case letters only. " - }, - "isRequired": true, - "isConstant": false, - "name": { - "$id": "471", - "fixed": false, - "raw": "accountName" - }, - "serializedName": "accountName", - "modelType": { - "$id": "472", - "$type": "PrimaryType", - "knownPrimaryType": "string", - "name": { - "$id": "473", - "fixed": false, - "raw": "String" - }, - "deprecated": false - } - }, - { - "$id": "474", - "location": "body", - "collectionFormat": "none", - "defaultValue": { - "$id": "475", - "fixed": false - }, - "deprecated": false, - "documentation": { - "$id": "476", - "fixed": false, - "raw": "The parameters to update on the account. Note that only one property can be changed at a time using this API. " - }, - "extensions": { - "x-ms-requestBody-name": "parameters" - }, - "isRequired": true, - "isConstant": false, - "name": { - "$id": "477", - "fixed": false, - "raw": "parameters" - }, - "serializedName": "parameters", - "modelType": { - "$ref": "254" - } - }, - { - "$id": "478", - "clientProperty": { - "$ref": "336" - }, - "location": "query", - "collectionFormat": "none", - "defaultValue": { - "$id": "479", - "fixed": false - }, - "deprecated": false, - "documentation": { - "$id": "480", - "fixed": false, - "raw": "Client Api Version." - }, - "isRequired": true, - "isConstant": false, - "name": { - "$id": "481", - "fixed": false, - "raw": "api-version" - }, - "serializedName": "api-version", - "modelType": { - "$id": "482", - "$type": "PrimaryType", - "knownPrimaryType": "string", - "name": { - "$id": "483", - "fixed": false, - "raw": "String" - }, - "deprecated": false - } - }, - { - "$id": "484", - "clientProperty": { - "$ref": "330" - }, - "location": "path", - "collectionFormat": "none", - "defaultValue": { - "$id": "485", - "fixed": false - }, - "deprecated": false, - "documentation": { - "$id": "486", - "fixed": false, - "raw": "Gets subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call." - }, - "isRequired": true, - "isConstant": false, - "name": { - "$id": "487", - "fixed": false, - "raw": "subscriptionId" - }, - "serializedName": "subscriptionId", - "modelType": { - "$id": "488", - "$type": "PrimaryType", - "knownPrimaryType": "string", - "name": { - "$id": "489", - "fixed": false, - "raw": "String" - }, - "deprecated": false - } - } - ], - "name": { - "$id": "490", - "fixed": false, - "raw": "Update" - }, - "group": { - "$id": "491", - "fixed": false, - "raw": "StorageAccounts" - }, - "serializedName": "StorageAccounts_Update", - "url": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}", - "isAbsoluteUrl": false, - "httpMethod": "patch", - "responses": { - "OK": { - "$id": "492", - "body": { - "$ref": "182" - }, - "isNullable": true - } - }, - "defaultResponse": { - "$id": "493", - "isNullable": true - }, - "returnType": { - "$id": "494", - "body": { - "$ref": "182" - }, - "isNullable": true - }, - "description": "Updates the account type or tags for a storage account. It can also be used to add a custom domain (note that custom domains cannot be added via the Create operation). Only one custom domain is supported per storage account. In order to replace a custom domain, the old value must be cleared before a new value may be set. To clear a custom domain, simply update the custom domain with empty string. Then call update again with the new cutsom domain name. The update API can only be used to update one of tags, accountType, or customDomain per call. To update multiple of these properties, call the API multiple times with one change per call. This call does not change the storage keys for the account. If you want to change storage account keys, use the RegenerateKey operation. The location and name of the storage account cannot be changed after creation.", - "requestContentType": "application/json; charset=utf-8", - "responseContentTypes": [ - "application/json", - "text/json" - ], - "extensions": { - "x-ms-requestBody-index": "2" - }, - "deprecated": false, - "hidden": false - }, - { - "$id": "495", - "parameters": [ - { - "$id": "496", - "location": "path", - "collectionFormat": "none", - "defaultValue": { - "$id": "497", - "fixed": false - }, - "deprecated": false, - "documentation": { - "$id": "498", - "fixed": false, - "raw": "The name of the resource group." - }, - "isRequired": true, - "isConstant": false, - "name": { - "$id": "499", - "fixed": false, - "raw": "resourceGroupName" - }, - "serializedName": "resourceGroupName", - "modelType": { - "$id": "500", - "$type": "PrimaryType", - "knownPrimaryType": "string", - "name": { - "$id": "501", - "fixed": false, - "raw": "String" - }, - "deprecated": false - } - }, - { - "$id": "502", - "location": "path", - "collectionFormat": "none", - "constraints": { - "MaxLength": "24", - "MinLength": "3" - }, - "defaultValue": { - "$id": "503", - "fixed": false - }, - "deprecated": false, - "documentation": { - "$id": "504", - "fixed": false, - "raw": "The name of the storage account." - }, - "isRequired": true, - "isConstant": false, - "name": { - "$id": "505", - "fixed": false, - "raw": "accountName" - }, - "serializedName": "accountName", - "modelType": { - "$id": "506", - "$type": "PrimaryType", - "knownPrimaryType": "string", - "name": { - "$id": "507", - "fixed": false, - "raw": "String" - }, - "deprecated": false - } - }, - { - "$id": "508", - "clientProperty": { - "$ref": "336" - }, - "location": "query", - "collectionFormat": "none", - "defaultValue": { - "$id": "509", - "fixed": false - }, - "deprecated": false, - "documentation": { - "$id": "510", - "fixed": false, - "raw": "Client Api Version." - }, - "isRequired": true, - "isConstant": false, - "name": { - "$id": "511", - "fixed": false, - "raw": "api-version" - }, - "serializedName": "api-version", - "modelType": { - "$id": "512", - "$type": "PrimaryType", - "knownPrimaryType": "string", - "name": { - "$id": "513", - "fixed": false, - "raw": "String" - }, - "deprecated": false - } - }, - { - "$id": "514", - "clientProperty": { - "$ref": "330" - }, - "location": "path", - "collectionFormat": "none", - "defaultValue": { - "$id": "515", - "fixed": false - }, - "deprecated": false, - "documentation": { - "$id": "516", - "fixed": false, - "raw": "Gets subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call." - }, - "isRequired": true, - "isConstant": false, - "name": { - "$id": "517", - "fixed": false, - "raw": "subscriptionId" - }, - "serializedName": "subscriptionId", - "modelType": { - "$id": "518", - "$type": "PrimaryType", - "knownPrimaryType": "string", - "name": { - "$id": "519", - "fixed": false, - "raw": "String" - }, - "deprecated": false - } - } - ], - "name": { - "$id": "520", - "fixed": false, - "raw": "ListKeys" - }, - "group": { - "$id": "521", - "fixed": false, - "raw": "StorageAccounts" - }, - "serializedName": "StorageAccounts_ListKeys", - "url": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/listKeys", - "isAbsoluteUrl": false, - "httpMethod": "post", - "responses": { - "OK": { - "$id": "522", - "body": { - "$ref": "222" - }, - "isNullable": true - } - }, - "defaultResponse": { - "$id": "523", - "isNullable": true - }, - "returnType": { - "$id": "524", - "body": { - "$ref": "222" - }, - "isNullable": true - }, - "description": "Lists the access keys for the specified storage account.", - "requestContentType": "application/json; charset=utf-8", - "responseContentTypes": [ - "application/json", - "text/json" - ], - "deprecated": false, - "hidden": false - }, - { - "$id": "525", - "parameters": [ - { - "$id": "526", - "clientProperty": { - "$ref": "336" - }, - "location": "query", - "collectionFormat": "none", - "defaultValue": { - "$id": "527", - "fixed": false - }, - "deprecated": false, - "documentation": { - "$id": "528", - "fixed": false, - "raw": "Client Api Version." - }, - "isRequired": true, - "isConstant": false, - "name": { - "$id": "529", - "fixed": false, - "raw": "api-version" - }, - "serializedName": "api-version", - "modelType": { - "$id": "530", - "$type": "PrimaryType", - "knownPrimaryType": "string", - "name": { - "$id": "531", - "fixed": false, - "raw": "String" - }, - "deprecated": false - } - }, - { - "$id": "532", - "clientProperty": { - "$ref": "330" - }, - "location": "path", - "collectionFormat": "none", - "defaultValue": { - "$id": "533", - "fixed": false - }, - "deprecated": false, - "documentation": { - "$id": "534", - "fixed": false, - "raw": "Gets subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call." - }, - "isRequired": true, - "isConstant": false, - "name": { - "$id": "535", - "fixed": false, - "raw": "subscriptionId" - }, - "serializedName": "subscriptionId", - "modelType": { - "$id": "536", - "$type": "PrimaryType", - "knownPrimaryType": "string", - "name": { - "$id": "537", - "fixed": false, - "raw": "String" - }, - "deprecated": false - } - } - ], - "name": { - "$id": "538", - "fixed": false, - "raw": "List" - }, - "group": { - "$id": "539", - "fixed": false, - "raw": "StorageAccounts" - }, - "serializedName": "StorageAccounts_List", - "url": "/subscriptions/{subscriptionId}/providers/Microsoft.Storage/storageAccounts", - "isAbsoluteUrl": false, - "httpMethod": "get", - "responses": { - "OK": { - "$id": "540", - "body": { - "$ref": "236" - }, - "isNullable": true - } - }, - "defaultResponse": { - "$id": "541", - "isNullable": true - }, - "returnType": { - "$id": "542", - "body": { - "$ref": "236" - }, - "isNullable": true - }, - "description": "Lists all the storage accounts available under the subscription. Note that storage keys are not returned; use the ListKeys operation for this.", - "requestContentType": "application/json; charset=utf-8", - "responseContentTypes": [ - "application/json", - "text/json" - ], - "extensions": { - "x-ms-pageable": { - "nextLinkName": null - } - }, - "deprecated": false, - "hidden": false - }, - { - "$id": "543", - "parameters": [ - { - "$id": "544", - "location": "path", - "collectionFormat": "none", - "defaultValue": { - "$id": "545", - "fixed": false - }, - "deprecated": false, - "documentation": { - "$id": "546", - "fixed": false, - "raw": "The name of the resource group within the user's subscription." - }, - "isRequired": true, - "isConstant": false, - "name": { - "$id": "547", - "fixed": false, - "raw": "resourceGroupName" - }, - "serializedName": "resourceGroupName", - "modelType": { - "$id": "548", - "$type": "PrimaryType", - "knownPrimaryType": "string", - "name": { - "$id": "549", - "fixed": false, - "raw": "String" - }, - "deprecated": false - } - }, - { - "$id": "550", - "clientProperty": { - "$ref": "336" - }, - "location": "query", - "collectionFormat": "none", - "defaultValue": { - "$id": "551", - "fixed": false - }, - "deprecated": false, - "documentation": { - "$id": "552", - "fixed": false, - "raw": "Client Api Version." - }, - "isRequired": true, - "isConstant": false, - "name": { - "$id": "553", - "fixed": false, - "raw": "api-version" - }, - "serializedName": "api-version", - "modelType": { - "$id": "554", - "$type": "PrimaryType", - "knownPrimaryType": "string", - "name": { - "$id": "555", - "fixed": false, - "raw": "String" - }, - "deprecated": false - } - }, - { - "$id": "556", - "clientProperty": { - "$ref": "330" - }, - "location": "path", - "collectionFormat": "none", - "defaultValue": { - "$id": "557", - "fixed": false - }, - "deprecated": false, - "documentation": { - "$id": "558", - "fixed": false, - "raw": "Gets subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call." - }, - "isRequired": true, - "isConstant": false, - "name": { - "$id": "559", - "fixed": false, - "raw": "subscriptionId" - }, - "serializedName": "subscriptionId", - "modelType": { - "$id": "560", - "$type": "PrimaryType", - "knownPrimaryType": "string", - "name": { - "$id": "561", - "fixed": false, - "raw": "String" - }, - "deprecated": false - } - } - ], - "name": { - "$id": "562", - "fixed": false, - "raw": "ListByResourceGroup" - }, - "group": { - "$id": "563", - "fixed": false, - "raw": "StorageAccounts" - }, - "serializedName": "StorageAccounts_ListByResourceGroup", - "url": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts", - "isAbsoluteUrl": false, - "httpMethod": "get", - "responses": { - "OK": { - "$id": "564", - "body": { - "$ref": "236" - }, - "isNullable": true - } - }, - "defaultResponse": { - "$id": "565", - "isNullable": true - }, - "returnType": { - "$id": "566", - "body": { - "$ref": "236" - }, - "isNullable": true - }, - "description": "Lists all the storage accounts available under the given resource group. Note that storage keys are not returned; use the ListKeys operation for this.", - "requestContentType": "application/json; charset=utf-8", - "responseContentTypes": [ - "application/json", - "text/json" - ], - "extensions": { - "x-ms-pageable": { - "nextLinkName": null - } - }, - "deprecated": false, - "hidden": false - }, - { - "$id": "567", - "parameters": [ - { - "$id": "568", - "location": "path", - "collectionFormat": "none", - "defaultValue": { - "$id": "569", - "fixed": false - }, - "deprecated": false, - "documentation": { - "$id": "570", - "fixed": false, - "raw": "The name of the resource group within the user's subscription." - }, - "isRequired": true, - "isConstant": false, - "name": { - "$id": "571", - "fixed": false, - "raw": "resourceGroupName" - }, - "serializedName": "resourceGroupName", - "modelType": { - "$id": "572", - "$type": "PrimaryType", - "knownPrimaryType": "string", - "name": { - "$id": "573", - "fixed": false, - "raw": "String" - }, - "deprecated": false - } - }, - { - "$id": "574", - "location": "path", - "collectionFormat": "none", - "constraints": { - "MaxLength": "24", - "MinLength": "3" - }, - "defaultValue": { - "$id": "575", - "fixed": false - }, - "deprecated": false, - "documentation": { - "$id": "576", - "fixed": false, - "raw": "The name of the storage account within the specified resource group. Storage account names must be between 3 and 24 characters in length and use numbers and lower-case letters only. " - }, - "isRequired": true, - "isConstant": false, - "name": { - "$id": "577", - "fixed": false, - "raw": "accountName" - }, - "serializedName": "accountName", - "modelType": { - "$id": "578", - "$type": "PrimaryType", - "knownPrimaryType": "string", - "name": { - "$id": "579", - "fixed": false, - "raw": "String" - }, - "deprecated": false - } - }, - { - "$id": "580", - "location": "body", - "collectionFormat": "none", - "defaultValue": { - "$id": "581", - "fixed": false - }, - "deprecated": false, - "documentation": { - "$id": "582", - "fixed": false, - "raw": "Specifies name of the key which should be regenerated. key1 or key2 for the default keys" - }, - "extensions": { - "x-ms-requestBody-name": "regenerateKey" - }, - "isRequired": true, - "isConstant": false, - "name": { - "$id": "583", - "fixed": false, - "raw": "regenerateKey" - }, - "serializedName": "regenerateKey", - "modelType": { - "$ref": "268" - } - }, - { - "$id": "584", - "clientProperty": { - "$ref": "336" - }, - "location": "query", - "collectionFormat": "none", - "defaultValue": { - "$id": "585", - "fixed": false - }, - "deprecated": false, - "documentation": { - "$id": "586", - "fixed": false, - "raw": "Client Api Version." - }, - "isRequired": true, - "isConstant": false, - "name": { - "$id": "587", - "fixed": false, - "raw": "api-version" - }, - "serializedName": "api-version", - "modelType": { - "$id": "588", - "$type": "PrimaryType", - "knownPrimaryType": "string", - "name": { - "$id": "589", - "fixed": false, - "raw": "String" - }, - "deprecated": false - } - }, - { - "$id": "590", - "clientProperty": { - "$ref": "330" - }, - "location": "path", - "collectionFormat": "none", - "defaultValue": { - "$id": "591", - "fixed": false - }, - "deprecated": false, - "documentation": { - "$id": "592", - "fixed": false, - "raw": "Gets subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call." - }, - "isRequired": true, - "isConstant": false, - "name": { - "$id": "593", - "fixed": false, - "raw": "subscriptionId" - }, - "serializedName": "subscriptionId", - "modelType": { - "$id": "594", - "$type": "PrimaryType", - "knownPrimaryType": "string", - "name": { - "$id": "595", - "fixed": false, - "raw": "String" - }, - "deprecated": false - } - } - ], - "name": { - "$id": "596", - "fixed": false, - "raw": "RegenerateKey" - }, - "group": { - "$id": "597", - "fixed": false, - "raw": "StorageAccounts" - }, - "serializedName": "StorageAccounts_RegenerateKey", - "url": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/regenerateKey", - "isAbsoluteUrl": false, - "httpMethod": "post", - "responses": { - "OK": { - "$id": "598", - "body": { - "$ref": "222" - }, - "isNullable": true - } - }, - "defaultResponse": { - "$id": "599", - "isNullable": true - }, - "returnType": { - "$id": "600", - "body": { - "$ref": "222" - }, - "isNullable": true - }, - "description": "Regenerates the access keys for the specified storage account.", - "requestContentType": "application/json; charset=utf-8", - "responseContentTypes": [ - "application/json", - "text/json" - ], - "extensions": { - "x-ms-requestBody-index": "2" - }, - "deprecated": false, - "hidden": false - } - ], - "name": { - "$id": "601", - "fixed": false, - "raw": "checkNameAvailability" - }, - "typeName": { - "$id": "602", - "fixed": false - }, - "nameForProperty": "StorageAccounts" - } - typeName: - $id: '602' - fixed: false - - $id: '603' - methods: - - $id: '604' - defaultResponse: - $id: '620' - isNullable: true - deprecated: false - description: >- - Gets the current usage count and the limit for the resources under the - subscription. - extensions: - x-ms-pageable: - nextLinkName: null - group: - $id: '618' - fixed: false - raw: Usage - hidden: false - httpMethod: get - isAbsoluteUrl: false - name: - $id: '617' - fixed: false - raw: List - parameters: - - $id: '605' - clientProperty: - $ref: '336' - collectionFormat: none - defaultValue: - $id: '606' - fixed: false - deprecated: false - documentation: - $id: '607' - fixed: false - raw: Client Api Version. - isConstant: false - isRequired: true - location: query - modelType: - $id: '609' - $type: PrimaryType - deprecated: false - knownPrimaryType: string - name: - $id: '610' - fixed: false - raw: String - name: - $id: '608' - fixed: false - raw: api-version - serializedName: api-version - - $id: '611' - clientProperty: - $ref: '330' - collectionFormat: none - defaultValue: - $id: '612' - fixed: false - deprecated: false - documentation: - $id: '613' - fixed: false - raw: >- - Gets subscription credentials which uniquely identify Microsoft - Azure subscription. The subscription ID forms part of the URI - for every service call. - isConstant: false - isRequired: true - location: path - modelType: - $id: '615' - $type: PrimaryType - deprecated: false - knownPrimaryType: string - name: - $id: '616' - fixed: false - raw: String - name: - $id: '614' - fixed: false - raw: subscriptionId - serializedName: subscriptionId - requestContentType: application/json; charset=utf-8 - responseContentTypes: - - application/json - - text/json - responses: - OK: - $id: '619' - body: - $ref: '322' - isNullable: true - returnType: - $id: '621' - body: - $ref: '322' - isNullable: true - serializedName: Usage_List - url: '/subscriptions/{subscriptionId}/providers/Microsoft.Storage/usages' - name: - $id: '622' - fixed: false - raw: usages - nameForProperty: Usage - summary: |- - { - "$id": "603", - "methods": [ - { - "$id": "604", - "parameters": [ - { - "$id": "605", - "clientProperty": { - "$ref": "336" - }, - "location": "query", - "collectionFormat": "none", - "defaultValue": { - "$id": "606", - "fixed": false - }, - "deprecated": false, - "documentation": { - "$id": "607", - "fixed": false, - "raw": "Client Api Version." - }, - "isRequired": true, - "isConstant": false, - "name": { - "$id": "608", - "fixed": false, - "raw": "api-version" - }, - "serializedName": "api-version", - "modelType": { - "$id": "609", - "$type": "PrimaryType", - "knownPrimaryType": "string", - "name": { - "$id": "610", - "fixed": false, - "raw": "String" - }, - "deprecated": false - } - }, - { - "$id": "611", - "clientProperty": { - "$ref": "330" - }, - "location": "path", - "collectionFormat": "none", - "defaultValue": { - "$id": "612", - "fixed": false - }, - "deprecated": false, - "documentation": { - "$id": "613", - "fixed": false, - "raw": "Gets subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call." - }, - "isRequired": true, - "isConstant": false, - "name": { - "$id": "614", - "fixed": false, - "raw": "subscriptionId" - }, - "serializedName": "subscriptionId", - "modelType": { - "$id": "615", - "$type": "PrimaryType", - "knownPrimaryType": "string", - "name": { - "$id": "616", - "fixed": false, - "raw": "String" - }, - "deprecated": false - } - } - ], - "name": { - "$id": "617", - "fixed": false, - "raw": "List" - }, - "group": { - "$id": "618", - "fixed": false, - "raw": "Usage" - }, - "serializedName": "Usage_List", - "url": "/subscriptions/{subscriptionId}/providers/Microsoft.Storage/usages", - "isAbsoluteUrl": false, - "httpMethod": "get", - "responses": { - "OK": { - "$id": "619", - "body": { - "$ref": "322" - }, - "isNullable": true - } - }, - "defaultResponse": { - "$id": "620", - "isNullable": true - }, - "returnType": { - "$id": "621", - "body": { - "$ref": "322" - }, - "isNullable": true - }, - "description": "Gets the current usage count and the limit for the resources under the subscription.", - "requestContentType": "application/json; charset=utf-8", - "responseContentTypes": [ - "application/json", - "text/json" - ], - "extensions": { - "x-ms-pageable": { - "nextLinkName": null - } - }, - "deprecated": false, - "hidden": false - } - ], - "name": { - "$id": "622", - "fixed": false, - "raw": "usages" - }, - "typeName": { - "$id": "623", - "fixed": false - }, - "nameForProperty": "Usage" - } - typeName: - $id: '623' - fixed: false -properties: - - $id: '330' - collectionFormat: none - defaultValue: - $id: '331' - fixed: false - deprecated: false - documentation: - $id: '332' - fixed: false - raw: >- - Gets subscription credentials which uniquely identify Microsoft Azure - subscription. The subscription ID forms part of the URI for every - service call. - isConstant: false - isReadOnly: false - isRequired: true - modelType: - $id: '334' - $type: PrimaryType - deprecated: false - knownPrimaryType: string - name: - $id: '335' - fixed: false - raw: String - name: - $id: '333' - fixed: false - raw: subscriptionId - realPath: - - subscriptionId - serializedName: subscriptionId - - $id: '336' - collectionFormat: none - defaultValue: - $id: '337' - fixed: false - deprecated: false - documentation: - $id: '338' - fixed: false - raw: Client Api Version. - isConstant: false - isReadOnly: false - isRequired: true - modelType: - $id: '340' - $type: PrimaryType - deprecated: false - knownPrimaryType: string - name: - $id: '341' - fixed: false - raw: String - name: - $id: '339' - fixed: false - raw: api-version - realPath: - - api-version - serializedName: api-version diff --git a/Samples/openapi-v2/3b-custom-transformations/generated/configuration.yaml b/Samples/openapi-v2/3b-custom-transformations/generated/configuration.yaml deleted file mode 100644 index 393f081042..0000000000 --- a/Samples/openapi-v2/3b-custom-transformations/generated/configuration.yaml +++ /dev/null @@ -1,455 +0,0 @@ ---- -directive: - - from: storage.json - where: >- - $.paths["/subscriptions/{subscriptionId}/providers/Microsoft.Storage/checkNameAvailability"].post.description - set: >- - Checks that the account name has sufficient cowbell (in order to prevent - fevers). - reason: We've experienced a lack of cowbell in storage account names. - - from: storage.json - where: >- - $.paths["/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}"].put.description - transform: $ += " Make sure you add that extra cowbell." - reason: Make sure people know. - - from: storage.json - where: $.definitions.Usage.description - transform: return $.toUpperCase() - reason: >- - Our new guidelines require upper case descriptions here. Customers love - it. - - from: swagger-document - where: $.paths..operationId - transform: 'return $.replace(/ies$/, "y")' - reason: I don't like plural. - - from: code-model-v1 - where: '$.operations[*]' - transform: > - const url = $.methods[0]["url"]; const res = - url.split("/Microsoft.Storage/")[1].split("/")[0]; $.name.raw = res; - $.summary = JSON.stringify($, null, 2); - reason: We wanna group methods by URI. - - from: swagger-document - where: $.definitions.*.additionalProperties - transform: | - return typeof $ === "boolean" - ? ($ ? { type: "object" } : undefined) - : $ - reason: polyfill - - from: swagger-document - where: >- - $..*[?(typeof @.modelAsString === "boolean" && typeof @.oldModelAsString - !== "boolean")] - transform: $.oldModelAsString = $.modelAsString -input-file: - - >- - https://github.com/Azure/azure-rest-api-specs/blob/d374d03801e97737ddb32e01f20513e7b2bbd9c3/arm-storage/2015-06-15/swagger/storage.json -output-artifact: - - swagger-document.json - - code-model-v1.norm.yaml - - pipeline.yaml - - configuration.yaml - - preserved-files - - source-file-csharp - - source-file-jsonrpcclient -require: [] -try-require: - - readme.clear-output-folder.md - - readme.no-upgrade-check.md - - readme.skip-upgrade-check.md - - ./readme.csharp.md -use: [] -clear-output-folder: {} -use-extension: - '@microsoft.azure/autorest.csharp': ~2.3.79 - '@microsoft.azure/classic-openapi-validator': ~1.0.9 - '@microsoft.azure/openapi-validator': ~1.0.2 - '@microsoft.azure/autorest.modeler': 2.3.55 - -no-upgrade-check: {} -skip-upgrade-check: {} -azure-arm: true -azure-validator: true -csharp: - output-folder: Client -__info: yaml -output-folder: generated -openapi-type: arm -pipeline: - swagger-document/reflect-api-versions-cs: - input: - - identity - - individual/identity - - csharp/emitter - scope: reflect-api-versions - suffixes: [] - swagger-document/reflect-api-versions-cs/emitter: - input: reflect-api-versions-cs - scope: scope-reflect-api-versions-cs-emitter - suffixes: [] - pipeline-emitter: - scope: scope-pipeline-emitter - suffixes: - - '' - configuration-emitter: - scope: scope-configuration-emitter - suffixes: - - '' - swagger-document-override/md-override-loader: - output-artifact: immediate-config - scope: perform-load - suffixes: - - '' - swagger-document/loader: - output-artifact: swagger-document - scope: perform-load - suffixes: - - '' - swagger-document/individual/transform: - input: loader - output-artifact: swagger-document - suffixes: - - '' - swagger-document/individual/schema-validator: - input: transform - output-artifact: swagger-document - suffixes: - - '' - swagger-document/individual/identity: - input: schema-validator - output-artifact: swagger-document - suffixes: - - '' - swagger-document/compose: - input: individual/identity - output-artifact: swagger-document - suffixes: - - '' - swagger-document/transform-immediate: - input: - - swagger-document-override/md-override-loader - - compose - output-artifact: swagger-document - suffixes: - - '' - swagger-document/transform: - input: transform-immediate - output-artifact: swagger-document - suffixes: - - '' - swagger-document/identity: - input: transform - output-artifact: swagger-document - suffixes: - - '' - swagger-document/emitter: - input: identity - scope: scope-swagger-document/emitter - suffixes: - - '' - openapi-document/openapi-document-converter: - input: swagger-document/identity - output-artifact: openapi-document - suffixes: - - '' - openapi-document/transform: - input: openapi-document-converter - output-artifact: openapi-document - suffixes: - - '' - openapi-document/component-modifiers: - input: transform - output-artifact: openapi-document - suffixes: - - '' - openapi-document/identity: - input: component-modifiers - output-artifact: openapi-document - suffixes: - - '' - openapi-document/emitter: - input: identity - scope: scope-openapi-document/emitter - suffixes: - - '' - swagger-document/model-validator: - input: swagger-document/identity - scope: model-validator - suffixes: [] - swagger-document/semantic-validator: - input: swagger-document/identity - scope: semantic-validator - suffixes: [] - csharp/imodeler1: - input: openapi-document/identity - output-artifact: code-model-v1 - scope: csharp - suffixes: - - '' - csharp/commonmarker: - input: imodeler1 - output-artifact: code-model-v1 - suffixes: - - '' - csharp/cm/transform: - input: commonmarker - output-artifact: code-model-v1 - suffixes: - - '' - csharp/cm/emitter: - input: transform - scope: scope-cm/emitter - suffixes: - - '' - csharp/generate: - plugin: csharp - input: cm/transform - output-artifact: source-file-csharp - suffixes: - - '' - csharp/simplifier: - plugin: csharp-simplifier - input: generate - output-artifact: source-file-csharp - suffixes: - - '' - csharp/transform: - input: simplifier - output-artifact: source-file-csharp - scope: scope-transform-string - suffixes: - - '' - csharp/emitter: - input: transform - scope: scope-csharp/emitter - suffixes: - - '' - jsonrpcclient/imodeler1: - input: openapi-document/identity - output-artifact: code-model-v1 - scope: jsonrpcclient - suffixes: [] - jsonrpcclient/generate: - plugin: jsonrpcclient - input: imodeler1 - output-artifact: source-file-jsonrpcclient - suffixes: [] - jsonrpcclient/transform: - input: generate - output-artifact: source-file-jsonrpcclient - scope: scope-transform-string - suffixes: [] - jsonrpcclient/emitter: - input: transform - scope: scope-jsonrpcclient/emitter - suffixes: [] - swagger-document/classic-openapi-validator: - input: swagger-document/identity - scope: azure-validator-composed - suffixes: - - '' - swagger-document/individual/classic-openapi-validator: - input: swagger-document/individual/identity - scope: azure-validator-individual - suffixes: - - '' - swagger-document/openapi-validator: - input: swagger-document/identity - scope: azure-validator-composed - suffixes: - - '' - swagger-document/individual/openapi-validator: - input: swagger-document/individual/identity - scope: azure-validator-individual - suffixes: - - '' -scope-reflect-api-versions-cs-emitter: - input-artifact: source-file-csharp - output-uri-expr: $key -scope-pipeline-emitter: - input-artifact: pipeline - is-object: true - output-uri-expr: | - "pipeline" -scope-configuration-emitter: - input-artifact: configuration - is-object: true - output-uri-expr: | - "configuration" -perform-load: true -scope-swagger-document/emitter: - input-artifact: swagger-document - is-object: true - output-uri-expr: > - $config["output-file"] || - - ($config.namespace ? $config.namespace.replace(/:/g,'_') : undefined) || - - $config["input-file"][0].split('/').reverse()[0].split('\\').reverse()[0].replace(/\.json$/, - "") -scope-openapi-document/emitter: - input-artifact: openapi-document - is-object: true - output-uri-expr: > - $config["output-file"] || - - ($config.namespace ? $config.namespace.replace(/:/g,'_') : undefined) || - - $config["input-file"][0].split('/').reverse()[0].split('\\').reverse()[0].replace(/\.json$/, - "") -scope-cm/emitter: - input-artifact: code-model-v1 - is-object: true - output-uri-expr: | - "code-model-v1" -client-side-validation: true -declare-directive: - set: '{ transform: `return ${JSON.stringify($)}` }' - where-operation: |- - (() => { - switch ($context.from) { - case "code-model-v1": - return { from: "code-model-v1", where: `$.operations[*].methods[?(@.serializedName == ${JSON.stringify($)})]` }; - case "swagger-document": - default: - return { from: "swagger-document", where: `$.paths.*[?(@.operationId == ${JSON.stringify($)})]` }; - } - })() - where-model: |- - (() => { - switch ($context.from) { - case "code-model-v1": - throw "not implemented"; - case "swagger-document": - default: - return { from: "swagger-document", where: `$.definitions[${JSON.stringify($)}]` }; - } - })() - remove-operation: |- - { - from: 'swagger-document', - "where-operation": $, - transform: 'return undefined' - } - rename-operation: |- - { - from: 'swagger-document', - "where-operation": $.from, - transform: `$.operationId = ${JSON.stringify($.to)}` - } - remove-model: |- - { - from: 'swagger-document', - "where-model": $, - transform: 'return undefined' - } - rename-model: |- - [{ - from: 'swagger-document', - where: '$.definitions', - transform: `if ($[${JSON.stringify($.from)}]) { $[${JSON.stringify($.to)}] = $[${JSON.stringify($.from)}]; delete $[${JSON.stringify($.from)}]; }` - }, { - from: 'swagger-document', - where: `$..['$ref']`, - transform: `$ = $ === "#/definitions/${$.from}" ? "#/definitions/${$.to}" : $` - }] - remove-property: |- - { - from: 'swagger-document', - transform: `delete $.properties[${JSON.stringify($)}]` - } - rename-property: |- - { - from: 'swagger-document', - transform: `if ($.properties[${JSON.stringify($.from)}]) { $.properties[${JSON.stringify($.to)}] = $.properties[${JSON.stringify($.from)}]; delete $.properties[${JSON.stringify($.from)}]; }` - } -used-extension: - - '["@microsoft.azure/autorest.csharp","~2.3.79"]' - - '["@microsoft.azure/classic-openapi-validator","~1.0.9"]' - - '["@microsoft.azure/openapi-validator","~1.0.2"]' - - '["@microsoft.azure/autorest.modeler","2.3.55"]' -scope-csharp/emitter: - input-artifact: source-file-csharp -scope-jsonrpcclient/emitter: - input-artifact: source-file-jsonrpcclient -help-content: - csharp: - activationScope: csharp - categoryFriendlyName: 'C# Generator' - settings: - - key: azure-arm - description: generate code in Azure flavor - - key: fluent - description: generate code in fluent flavor - - key: namespace - description: determines the root namespace to be used in generated code - type: string - required: true - - key: license-header - description: >- - text to include as a header comment in generated files (magic strings: - MICROSOFT_MIT, MICROSOFT_APACHE, MICROSOFT_MIT_NO_VERSION, - MICROSOFT_APACHE_NO_VERSION, MICROSOFT_MIT_NO_CODEGEN) - type: string - - key: payload-flattening-threshold - description: >- - max. number of properties in a request body. If the number of - properties in the request body is less than or equal to this value, - these properties will be represented as individual method arguments - instead - type: number - - key: add-credentials - description: >- - include a credential property and constructor parameter supporting - different authentication behaviors - - key: override-client-name - description: >- - overrides the name of the client class (usually derived from - $.info.title) - type: string - - key: use-internal-constructors - description: >- - generate constructors with internal instead of public visibility - (useful for convenience layers) - - key: sync-methods - description: >- - determines amount of synchronous wrappers to generate; default: - essential - type: '"essential" | "all" | "none"' - - key: use-datetimeoffset - description: use DateTimeOffset instead of DateTime to model date/time types - - key: client-side-validation - description: >- - whether to validate parameters at the client side (according to - OpenAPI definition) before making a request; default: true - type: boolean - - key: max-comment-columns - description: maximum line width of comments before breaking into a new line - type: number - - key: output-file - description: >- - generate all code into the specified, single file (instead of the - usual folder structure) - type: string - - key: sample-generation - description: generate sample code from x-ms-examples (experimental) - - key: static-serializer - description: generate client serlializer settings as a static member (experimental) -azure-validator-composed: - merge-state: composed -azure-validator-individual: - merge-state: individual -scope-cm-yaml/emitter: - input-artifact: code-model-v1-yaml - is-object: true - output-uri-expr: | - "code-model-v1-yaml" -scope-transform-string: - is-object: false -base-folder: . -debug: false -verbose: false -disable-validation: false -configurationFiles: - ' -__status: {} diff --git a/Samples/openapi-v2/3b-custom-transformations/generated/pipeline.yaml b/Samples/openapi-v2/3b-custom-transformations/generated/pipeline.yaml deleted file mode 100644 index 0338e770ce..0000000000 --- a/Samples/openapi-v2/3b-custom-transformations/generated/pipeline.yaml +++ /dev/null @@ -1,209 +0,0 @@ ---- -swagger-document-override/md-override-loader: - pluginName: md-override-loader - outputArtifact: immediate-config - configScope: - - perform-load - inputs: [] -swagger-document/loader: - pluginName: loader - outputArtifact: swagger-document - configScope: - - perform-load - inputs: [] -swagger-document/individual/transform: - pluginName: transform - outputArtifact: swagger-document - configScope: - - perform-load - inputs: - - swagger-document/loader -swagger-document/individual/schema-validator: - pluginName: schema-validator - outputArtifact: swagger-document - configScope: - - perform-load - inputs: - - swagger-document/individual/transform -swagger-document/individual/identity: - pluginName: identity - outputArtifact: swagger-document - configScope: - - perform-load - inputs: - - swagger-document/individual/schema-validator -swagger-document/compose: - pluginName: compose - outputArtifact: swagger-document - configScope: - - perform-load - inputs: - - swagger-document/individual/identity -swagger-document/transform-immediate: - pluginName: transform-immediate - outputArtifact: swagger-document - configScope: - - perform-load - inputs: - - swagger-document-override/md-override-loader - - swagger-document/compose -swagger-document/transform: - pluginName: transform - outputArtifact: swagger-document - configScope: - - perform-load - inputs: - - swagger-document/transform-immediate -swagger-document/identity: - pluginName: identity - outputArtifact: swagger-document - configScope: - - perform-load - inputs: - - swagger-document/transform -openapi-document/openapi-document-converter: - pluginName: openapi-document-converter - outputArtifact: openapi-document - configScope: - - perform-load - inputs: - - swagger-document/identity -openapi-document/transform: - pluginName: transform - outputArtifact: openapi-document - configScope: - - perform-load - inputs: - - openapi-document/openapi-document-converter -openapi-document/component-modifiers: - pluginName: component-modifiers - outputArtifact: openapi-document - configScope: - - perform-load - inputs: - - openapi-document/transform -openapi-document/identity: - pluginName: identity - outputArtifact: openapi-document - configScope: - - perform-load - inputs: - - openapi-document/component-modifiers -csharp/imodeler1: - pluginName: imodeler1 - outputArtifact: code-model-v1 - configScope: - - perform-load - - csharp - inputs: - - openapi-document/identity -csharp/commonmarker: - pluginName: commonmarker - outputArtifact: code-model-v1 - configScope: - - perform-load - - csharp - inputs: - - csharp/imodeler1 -csharp/cm/transform: - pluginName: transform - outputArtifact: code-model-v1 - configScope: - - perform-load - - csharp - inputs: - - csharp/commonmarker -csharp/generate: - pluginName: csharp - outputArtifact: source-file-csharp - configScope: - - perform-load - - csharp - inputs: - - csharp/cm/transform -csharp/simplifier: - pluginName: csharp-simplifier - outputArtifact: source-file-csharp - configScope: - - perform-load - - csharp - inputs: - - csharp/generate -csharp/transform: - pluginName: transform - outputArtifact: source-file-csharp - configScope: - - perform-load - - csharp - - scope-transform-string - inputs: - - csharp/simplifier -csharp/emitter: - pluginName: emitter - configScope: - - perform-load - - csharp - - scope-transform-string - - scope-csharp/emitter - inputs: - - csharp/transform -pipeline-emitter: - pluginName: pipeline-emitter - configScope: - - scope-pipeline-emitter - inputs: [] -configuration-emitter: - pluginName: configuration-emitter - configScope: - - scope-configuration-emitter - inputs: [] -swagger-document/emitter: - pluginName: emitter - configScope: - - perform-load - - scope-swagger-document/emitter - inputs: - - swagger-document/identity -openapi-document/emitter: - pluginName: emitter - configScope: - - perform-load - - scope-openapi-document/emitter - inputs: - - openapi-document/identity -csharp/cm/emitter: - pluginName: emitter - configScope: - - perform-load - - csharp - - scope-cm/emitter - inputs: - - csharp/cm/transform -swagger-document/classic-openapi-validator: - pluginName: classic-openapi-validator - configScope: - - perform-load - - azure-validator-composed - inputs: - - swagger-document/identity -swagger-document/individual/classic-openapi-validator: - pluginName: classic-openapi-validator - configScope: - - perform-load - - azure-validator-individual - inputs: - - swagger-document/individual/identity -swagger-document/openapi-validator: - pluginName: openapi-validator - configScope: - - perform-load - - azure-validator-composed - inputs: - - swagger-document/identity -swagger-document/individual/openapi-validator: - pluginName: openapi-validator - configScope: - - perform-load - - azure-validator-individual - inputs: - - swagger-document/individual/identity diff --git a/Samples/openapi-v2/3b-custom-transformations/generated/storage.json b/Samples/openapi-v2/3b-custom-transformations/generated/storage.json deleted file mode 100644 index 66b9793d20..0000000000 --- a/Samples/openapi-v2/3b-custom-transformations/generated/storage.json +++ /dev/null @@ -1,928 +0,0 @@ -{ - "swagger": "2.0", - "info": { - "version": "2015-06-15", - "title": "StorageManagementClient", - "description": "The Storage Management Client." - }, - "host": "management.azure.com", - "schemes": [ - "https" - ], - "security": [ - { - "azure_auth": [ - "user_impersonation" - ] - } - ], - "securityDefinitions": { - "azure_auth": { - "type": "oauth2", - "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", - "flow": "implicit", - "description": "Azure Active Directory OAuth2 Flow", - "scopes": { - "user_impersonation": "impersonate your user account" - } - } - }, - "paths": { - "/subscriptions/{subscriptionId}/providers/Microsoft.Storage/checkNameAvailability": { - "post": { - "tags": [ - "StorageAccounts" - ], - "operationId": "StorageAccounts_CheckNameAvailability", - "description": "Checks that the account name has sufficient cowbell (in order to prevent fevers).", - "parameters": [ - { - "name": "accountName", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/StorageAccountCheckNameAvailabilityParameters" - }, - "description": "The name of the storage account within the specified resource group. Storage account names must be between 3 and 24 characters in length and use numbers and lower-case letters only." - }, - { - "$ref": "#/parameters/ApiVersionParameter" - }, - { - "$ref": "#/parameters/SubscriptionIdParameter" - } - ], - "responses": { - "200": { - "description": "", - "schema": { - "$ref": "#/definitions/CheckNameAvailabilityResult" - } - } - }, - "produces": [ - "application/json", - "text/json" - ], - "consumes": [ - "application/json", - "text/json" - ] - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}": { - "put": { - "tags": [ - "StorageAccounts" - ], - "operationId": "StorageAccounts_Create", - "description": "Asynchronously creates a new storage account with the specified parameters. Existing accounts cannot be updated with this API and should instead use the Update Storage Account API. If an account is already created and subsequent PUT request is issued with exact same set of properties, then HTTP 200 would be returned. Make sure you add that extra cowbell.", - "parameters": [ - { - "name": "resourceGroupName", - "in": "path", - "required": true, - "type": "string", - "description": "The name of the resource group within the user's subscription." - }, - { - "name": "accountName", - "in": "path", - "required": true, - "type": "string", - "description": "The name of the storage account within the specified resource group. Storage account names must be between 3 and 24 characters in length and use numbers and lower-case letters only. ", - "maxLength": 24, - "minLength": 3 - }, - { - "name": "parameters", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/StorageAccountCreateParameters" - }, - "description": "The parameters to provide for the created account." - }, - { - "$ref": "#/parameters/ApiVersionParameter" - }, - { - "$ref": "#/parameters/SubscriptionIdParameter" - } - ], - "responses": { - "200": { - "description": "", - "schema": { - "$ref": "#/definitions/StorageAccount" - } - }, - "202": { - "description": "" - } - }, - "x-ms-long-running-operation": true, - "produces": [ - "application/json", - "text/json" - ], - "consumes": [ - "application/json", - "text/json" - ] - }, - "delete": { - "tags": [ - "StorageAccounts" - ], - "operationId": "StorageAccounts_Delete", - "description": "Deletes a storage account in Microsoft Azure.", - "parameters": [ - { - "name": "resourceGroupName", - "in": "path", - "required": true, - "type": "string", - "description": "The name of the resource group within the user's subscription." - }, - { - "name": "accountName", - "in": "path", - "required": true, - "type": "string", - "description": "The name of the storage account within the specified resource group. Storage account names must be between 3 and 24 characters in length and use numbers and lower-case letters only. ", - "maxLength": 24, - "minLength": 3 - }, - { - "$ref": "#/parameters/ApiVersionParameter" - }, - { - "$ref": "#/parameters/SubscriptionIdParameter" - } - ], - "responses": { - "200": { - "description": "" - }, - "204": { - "description": "" - } - }, - "produces": [ - "application/json", - "text/json" - ], - "consumes": [ - "application/json", - "text/json" - ] - }, - "get": { - "tags": [ - "StorageAccounts" - ], - "operationId": "StorageAccounts_GetProperty", - "description": "Returns the properties for the specified storage account including but not limited to name, account type, location, and account status. The ListKeys operation should be used to retrieve storage keys.", - "parameters": [ - { - "name": "resourceGroupName", - "in": "path", - "required": true, - "type": "string", - "description": "The name of the resource group within the user's subscription." - }, - { - "name": "accountName", - "in": "path", - "required": true, - "type": "string", - "description": "The name of the storage account within the specified resource group. Storage account names must be between 3 and 24 characters in length and use numbers and lower-case letters only. ", - "maxLength": 24, - "minLength": 3 - }, - { - "$ref": "#/parameters/ApiVersionParameter" - }, - { - "$ref": "#/parameters/SubscriptionIdParameter" - } - ], - "responses": { - "200": { - "description": "", - "schema": { - "$ref": "#/definitions/StorageAccount" - } - } - }, - "produces": [ - "application/json", - "text/json" - ], - "consumes": [ - "application/json", - "text/json" - ] - }, - "patch": { - "tags": [ - "StorageAccounts" - ], - "operationId": "StorageAccounts_Update", - "description": "Updates the account type or tags for a storage account. It can also be used to add a custom domain (note that custom domains cannot be added via the Create operation). Only one custom domain is supported per storage account. In order to replace a custom domain, the old value must be cleared before a new value may be set. To clear a custom domain, simply update the custom domain with empty string. Then call update again with the new cutsom domain name. The update API can only be used to update one of tags, accountType, or customDomain per call. To update multiple of these properties, call the API multiple times with one change per call. This call does not change the storage keys for the account. If you want to change storage account keys, use the RegenerateKey operation. The location and name of the storage account cannot be changed after creation.", - "parameters": [ - { - "name": "resourceGroupName", - "in": "path", - "required": true, - "type": "string", - "description": "The name of the resource group within the user's subscription." - }, - { - "name": "accountName", - "in": "path", - "required": true, - "type": "string", - "description": "The name of the storage account within the specified resource group. Storage account names must be between 3 and 24 characters in length and use numbers and lower-case letters only. ", - "maxLength": 24, - "minLength": 3 - }, - { - "name": "parameters", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/StorageAccountUpdateParameters" - }, - "description": "The parameters to update on the account. Note that only one property can be changed at a time using this API. " - }, - { - "$ref": "#/parameters/ApiVersionParameter" - }, - { - "$ref": "#/parameters/SubscriptionIdParameter" - } - ], - "responses": { - "200": { - "description": "", - "schema": { - "$ref": "#/definitions/StorageAccount" - } - } - }, - "produces": [ - "application/json", - "text/json" - ], - "consumes": [ - "application/json", - "text/json" - ] - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/listKeys": { - "post": { - "tags": [ - "StorageAccounts" - ], - "operationId": "StorageAccounts_ListKeys", - "description": "Lists the access keys for the specified storage account.", - "parameters": [ - { - "name": "resourceGroupName", - "in": "path", - "required": true, - "type": "string", - "description": "The name of the resource group." - }, - { - "name": "accountName", - "in": "path", - "required": true, - "type": "string", - "description": "The name of the storage account.", - "maxLength": 24, - "minLength": 3 - }, - { - "$ref": "#/parameters/ApiVersionParameter" - }, - { - "$ref": "#/parameters/SubscriptionIdParameter" - } - ], - "responses": { - "200": { - "description": "", - "schema": { - "$ref": "#/definitions/StorageAccountKeys" - } - } - }, - "produces": [ - "application/json", - "text/json" - ], - "consumes": [ - "application/json", - "text/json" - ] - } - }, - "/subscriptions/{subscriptionId}/providers/Microsoft.Storage/storageAccounts": { - "get": { - "tags": [ - "StorageAccounts" - ], - "operationId": "StorageAccounts_List", - "description": "Lists all the storage accounts available under the subscription. Note that storage keys are not returned; use the ListKeys operation for this.", - "parameters": [ - { - "$ref": "#/parameters/ApiVersionParameter" - }, - { - "$ref": "#/parameters/SubscriptionIdParameter" - } - ], - "responses": { - "200": { - "description": "", - "schema": { - "$ref": "#/definitions/StorageAccountListResult" - } - } - }, - "x-ms-pageable": { - "nextLinkName": null - }, - "produces": [ - "application/json", - "text/json" - ], - "consumes": [ - "application/json", - "text/json" - ] - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts": { - "get": { - "tags": [ - "StorageAccounts" - ], - "operationId": "StorageAccounts_ListByResourceGroup", - "description": "Lists all the storage accounts available under the given resource group. Note that storage keys are not returned; use the ListKeys operation for this.", - "parameters": [ - { - "name": "resourceGroupName", - "in": "path", - "required": true, - "type": "string", - "description": "The name of the resource group within the user's subscription." - }, - { - "$ref": "#/parameters/ApiVersionParameter" - }, - { - "$ref": "#/parameters/SubscriptionIdParameter" - } - ], - "responses": { - "200": { - "description": "", - "schema": { - "$ref": "#/definitions/StorageAccountListResult" - } - } - }, - "x-ms-pageable": { - "nextLinkName": null - }, - "produces": [ - "application/json", - "text/json" - ], - "consumes": [ - "application/json", - "text/json" - ] - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/regenerateKey": { - "post": { - "tags": [ - "StorageAccounts" - ], - "operationId": "StorageAccounts_RegenerateKey", - "description": "Regenerates the access keys for the specified storage account.", - "parameters": [ - { - "name": "resourceGroupName", - "in": "path", - "required": true, - "type": "string", - "description": "The name of the resource group within the user's subscription." - }, - { - "name": "accountName", - "in": "path", - "required": true, - "type": "string", - "description": "The name of the storage account within the specified resource group. Storage account names must be between 3 and 24 characters in length and use numbers and lower-case letters only. ", - "maxLength": 24, - "minLength": 3 - }, - { - "name": "regenerateKey", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/StorageAccountRegenerateKeyParameters" - }, - "description": "Specifies name of the key which should be regenerated. key1 or key2 for the default keys" - }, - { - "$ref": "#/parameters/ApiVersionParameter" - }, - { - "$ref": "#/parameters/SubscriptionIdParameter" - } - ], - "responses": { - "200": { - "description": "", - "schema": { - "$ref": "#/definitions/StorageAccountKeys" - } - } - }, - "produces": [ - "application/json", - "text/json" - ], - "consumes": [ - "application/json", - "text/json" - ] - } - }, - "/subscriptions/{subscriptionId}/providers/Microsoft.Storage/usages": { - "get": { - "tags": [ - "Usage" - ], - "operationId": "Usage_List", - "description": "Gets the current usage count and the limit for the resources under the subscription.", - "parameters": [ - { - "$ref": "#/parameters/ApiVersionParameter" - }, - { - "$ref": "#/parameters/SubscriptionIdParameter" - } - ], - "responses": { - "200": { - "description": "", - "schema": { - "$ref": "#/definitions/UsageListResult" - } - } - }, - "x-ms-pageable": { - "nextLinkName": null - }, - "produces": [ - "application/json", - "text/json" - ], - "consumes": [ - "application/json", - "text/json" - ] - } - } - }, - "definitions": { - "StorageAccountCheckNameAvailabilityParameters": { - "properties": { - "name": { - "type": "string" - }, - "type": { - "type": "string", - "default": "Microsoft.Storage/storageAccounts" - } - }, - "required": [ - "name" - ] - }, - "CheckNameAvailabilityResult": { - "properties": { - "nameAvailable": { - "type": "boolean", - "description": "Gets a boolean value that indicates whether the name is available for you to use. If true, the name is available. If false, the name has already been taken or invalid and cannot be used." - }, - "reason": { - "type": "string", - "description": "Gets the reason that a storage account name could not be used. The Reason element is only returned if NameAvailable is false.", - "enum": [ - "AccountNameInvalid", - "AlreadyExists" - ], - "x-ms-enum": { - "name": "Reason", - "modelAsString": false, - "oldModelAsString": false - } - }, - "message": { - "type": "string", - "description": "Gets an error message explaining the Reason value in more detail." - } - }, - "description": "The CheckNameAvailability operation response." - }, - "StorageAccountPropertiesCreateParameters": { - "properties": { - "accountType": { - "type": "string", - "description": "Gets or sets the account type.", - "enum": [ - "Standard_LRS", - "Standard_ZRS", - "Standard_GRS", - "Standard_RAGRS", - "Premium_LRS" - ], - "x-ms-enum": { - "name": "AccountType", - "modelAsString": false, - "oldModelAsString": false - } - } - }, - "required": [ - "accountType" - ] - }, - "StorageAccountCreateParameters": { - "properties": { - "location": { - "type": "string", - "description": "Resource location" - }, - "tags": { - "type": "object", - "additionalProperties": { - "type": "string" - }, - "description": "Resource tags" - }, - "properties": { - "x-ms-client-flatten": true, - "$ref": "#/definitions/StorageAccountPropertiesCreateParameters" - } - }, - "required": [ - "location" - ], - "x-ms-azure-resource": true, - "description": "The parameters to provide for the account." - }, - "Endpoints": { - "properties": { - "blob": { - "type": "string", - "description": "Gets the blob endpoint." - }, - "queue": { - "type": "string", - "description": "Gets the queue endpoint." - }, - "table": { - "type": "string", - "description": "Gets the table endpoint." - }, - "file": { - "type": "string", - "description": "Gets the file endpoint." - } - }, - "description": "The URIs that are used to perform a retrieval of a public blob, queue or table object." - }, - "CustomDomain": { - "properties": { - "name": { - "type": "string", - "description": "Gets or sets the custom domain name. Name is the CNAME source." - }, - "useSubDomain": { - "type": "boolean", - "description": "Indicates whether indirect CName validation is enabled. Default value is false. This should only be set on updates" - } - }, - "required": [ - "name" - ], - "description": "The custom domain assigned to this storage account. This can be set via Update." - }, - "StorageAccountProperties": { - "properties": { - "provisioningState": { - "type": "string", - "description": "Gets the status of the storage account at the time the operation was called.", - "enum": [ - "Creating", - "ResolvingDNS", - "Succeeded" - ], - "x-ms-enum": { - "name": "ProvisioningState", - "modelAsString": false, - "oldModelAsString": false - } - }, - "accountType": { - "type": "string", - "description": "Gets the type of the storage account.", - "enum": [ - "Standard_LRS", - "Standard_ZRS", - "Standard_GRS", - "Standard_RAGRS", - "Premium_LRS" - ], - "x-ms-enum": { - "name": "AccountType", - "modelAsString": false, - "oldModelAsString": false - } - }, - "primaryEndpoints": { - "$ref": "#/definitions/Endpoints", - "description": "Gets the URLs that are used to perform a retrieval of a public blob, queue or table object.Note that StandardZRS and PremiumLRS accounts only return the blob endpoint." - }, - "primaryLocation": { - "type": "string", - "description": "Gets the location of the primary for the storage account." - }, - "statusOfPrimary": { - "type": "string", - "description": "Gets the status indicating whether the primary location of the storage account is available or unavailable.", - "enum": [ - "Available", - "Unavailable" - ], - "x-ms-enum": { - "name": "AccountStatus", - "modelAsString": false, - "oldModelAsString": false - } - }, - "lastGeoFailoverTime": { - "type": "string", - "format": "date-time", - "description": "Gets the timestamp of the most recent instance of a failover to the secondary location. Only the most recent timestamp is retained. This element is not returned if there has never been a failover instance. Only available if the accountType is StandardGRS or StandardRAGRS." - }, - "secondaryLocation": { - "type": "string", - "description": "Gets the location of the geo replicated secondary for the storage account. Only available if the accountType is StandardGRS or StandardRAGRS." - }, - "statusOfSecondary": { - "type": "string", - "description": "Gets the status indicating whether the secondary location of the storage account is available or unavailable. Only available if the accountType is StandardGRS or StandardRAGRS.", - "enum": [ - "Available", - "Unavailable" - ], - "x-ms-enum": { - "name": "AccountStatus", - "modelAsString": false, - "oldModelAsString": false - } - }, - "creationTime": { - "type": "string", - "format": "date-time", - "description": "Gets the creation date and time of the storage account in UTC." - }, - "customDomain": { - "$ref": "#/definitions/CustomDomain", - "description": "Gets the user assigned custom domain assigned to this storage account." - }, - "secondaryEndpoints": { - "$ref": "#/definitions/Endpoints", - "description": "Gets the URLs that are used to perform a retrieval of a public blob, queue or table object from the secondary location of the storage account. Only available if the accountType is StandardRAGRS." - } - } - }, - "StorageAccount": { - "properties": { - "properties": { - "x-ms-client-flatten": true, - "$ref": "#/definitions/StorageAccountProperties" - } - }, - "allOf": [ - { - "$ref": "#/definitions/Resource" - } - ], - "description": "The storage account." - }, - "StorageAccountKeys": { - "properties": { - "key1": { - "type": "string", - "description": "Gets the value of key 1." - }, - "key2": { - "type": "string", - "description": "Gets the value of key 2." - } - }, - "description": "The access keys for the storage account." - }, - "StorageAccountListResult": { - "properties": { - "value": { - "type": "array", - "items": { - "$ref": "#/definitions/StorageAccount" - }, - "description": "Gets the list of storage accounts and their properties." - } - }, - "description": "The list storage accounts operation response." - }, - "StorageAccountPropertiesUpdateParameters": { - "properties": { - "accountType": { - "type": "string", - "description": "Gets or sets the account type. Note that StandardZRS and PremiumLRS accounts cannot be changed to other account types, and other account types cannot be changed to StandardZRS or PremiumLRS.", - "enum": [ - "Standard_LRS", - "Standard_ZRS", - "Standard_GRS", - "Standard_RAGRS", - "Premium_LRS" - ], - "x-ms-enum": { - "name": "AccountType", - "modelAsString": false, - "oldModelAsString": false - } - }, - "customDomain": { - "$ref": "#/definitions/CustomDomain", - "description": "User domain assigned to the storage account. Name is the CNAME source. Only one custom domain is supported per storage account at this time. To clear the existing custom domain, use an empty string for the custom domain name property." - } - } - }, - "StorageAccountUpdateParameters": { - "properties": { - "tags": { - "type": "object", - "additionalProperties": { - "type": "string" - }, - "description": "Resource tags" - }, - "properties": { - "x-ms-client-flatten": true, - "$ref": "#/definitions/StorageAccountPropertiesUpdateParameters" - } - }, - "x-ms-azure-resource": true, - "description": "The parameters to update on the account." - }, - "StorageAccountRegenerateKeyParameters": { - "properties": { - "keyName": { - "type": "string" - } - }, - "required": [ - "keyName" - ] - }, - "UsageName": { - "properties": { - "value": { - "type": "string", - "description": "Gets a string describing the resource name." - }, - "localizedValue": { - "type": "string", - "description": "Gets a localized string describing the resource name." - } - }, - "description": "The Usage Names." - }, - "Usage": { - "properties": { - "unit": { - "type": "string", - "description": "Gets the unit of measurement.", - "enum": [ - "Count", - "Bytes", - "Seconds", - "Percent", - "CountsPerSecond", - "BytesPerSecond" - ], - "x-ms-enum": { - "name": "UsageUnit", - "modelAsString": false, - "oldModelAsString": false - } - }, - "currentValue": { - "type": "integer", - "format": "int32", - "description": "Gets the current count of the allocated resources in the subscription." - }, - "limit": { - "type": "integer", - "format": "int32", - "description": "Gets the maximum count of the resources that can be allocated in the subscription." - }, - "name": { - "$ref": "#/definitions/UsageName", - "description": "Gets the name of the type of usage." - } - }, - "required": [ - "unit", - "currentValue", - "limit", - "name" - ], - "description": "DESCRIBES STORAGE RESOURCE USAGE." - }, - "UsageListResult": { - "properties": { - "value": { - "type": "array", - "items": { - "$ref": "#/definitions/Usage" - }, - "description": "Gets or sets the list Storage Resource Usages." - } - }, - "description": "The List Usages operation response." - }, - "Resource": { - "properties": { - "id": { - "readOnly": true, - "type": "string", - "description": "Resource Id" - }, - "name": { - "readOnly": true, - "type": "string", - "description": "Resource name" - }, - "type": { - "readOnly": true, - "type": "string", - "description": "Resource type" - }, - "location": { - "type": "string", - "description": "Resource location" - }, - "tags": { - "type": "object", - "additionalProperties": { - "type": "string" - }, - "description": "Resource tags" - } - }, - "x-ms-azure-resource": true - } - }, - "parameters": { - "SubscriptionIdParameter": { - "name": "subscriptionId", - "in": "path", - "required": true, - "type": "string", - "description": "Gets subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call." - }, - "ApiVersionParameter": { - "name": "api-version", - "in": "query", - "required": true, - "type": "string", - "description": "Client Api Version." - } - } -} \ No newline at end of file diff --git a/Samples/openapi-v2/3b-custom-transformations/readme.md b/Samples/openapi-v2/3b-custom-transformations/readme.md deleted file mode 100644 index cc167a9931..0000000000 --- a/Samples/openapi-v2/3b-custom-transformations/readme.md +++ /dev/null @@ -1,75 +0,0 @@ -# Scenario: Custom transformations - -> see https://aka.ms/autorest - -## Configuration - -``` yaml -input-file: https://github.com/Azure/azure-rest-api-specs/blob/d374d03801e97737ddb32e01f20513e7b2bbd9c3/arm-storage/2015-06-15/swagger/storage.json -azure-arm: true -azure-validator: true -output-artifact: - - swagger-document.json - - code-model-v1.norm.yaml - - pipeline.yaml - - configuration.yaml -csharp: - output-folder: Client -``` - -## Transformations - -### OpenAPI definition: Override a description - -``` yaml -directive: - from: storage.json - where: $.paths["/subscriptions/{subscriptionId}/providers/Microsoft.Storage/checkNameAvailability"].post.description - # The description will be set to the following: - set: Checks that the account name has sufficient cowbell (in order to prevent fevers). - reason: We've experienced a lack of cowbell in storage account names. -``` - -### OpenAPI definition: Mutate descriptions - -``` yaml -directive: -- from: storage.json - where: $.paths["/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}"].put.description - # The following can be arbitrary JavaScript code that will be evaluated to determine the new value. - # The original value is accessible via variable "$". - # Here: We append a string to the existing value. - transform: $ += " Make sure you add that extra cowbell." - reason: Make sure people know. -- from: storage.json - where: $.definitions.Usage.description - transform: return $.toUpperCase() - reason: Our new guidelines require upper case descriptions here. Customers love it. -``` - -### OpenAPI definition: Rename methods - -``` yaml -directive: - from: swagger-document # do it globally (in case there are multiple input OpenAPI definitions) - where: $.paths..operationId - # Replace operation IDs ending in "...ies" with "...y", because that's the safest way to make stuff singular. - transform: return $.replace(/ies$/, "y") - reason: I don't like plural. -``` - -### CodeModel: Use endpoint URIs to determine operation group names - -By default (without an explicit return statement), `$` is considered the result of the transformation. - -``` yaml -directive: - from: code-model-v1 - where: $.operations[*] - transform: > - const url = $.methods[0]["url"]; - const res = url.split("/Microsoft.Storage/")[1].split("/")[0]; - $.name.raw = res; - $.summary = JSON.stringify($, null, 2); - reason: We wanna group methods by URI. -``` diff --git a/Samples/openapi-v2/3b-custom-transformations/shell/code.txt b/Samples/openapi-v2/3b-custom-transformations/shell/code.txt deleted file mode 100644 index 9d607966b7..0000000000 --- a/Samples/openapi-v2/3b-custom-transformations/shell/code.txt +++ /dev/null @@ -1 +0,0 @@ -11 \ No newline at end of file diff --git a/Samples/openapi-v2/3b-custom-transformations/shell/stderr.txt b/Samples/openapi-v2/3b-custom-transformations/shell/stderr.txt deleted file mode 100644 index 034e5d5494..0000000000 --- a/Samples/openapi-v2/3b-custom-transformations/shell/stderr.txt +++ /dev/null @@ -1,33 +0,0 @@ - - - - - - - - - - - - - https://raw.githubusercontent.com/Azure/azure-rest-api-specs/d374d03801e97737ddb32e01f20513e7b2bbd9c3/arm-storage/2015-06-15/swagger/storage.json:126:6 ($.paths["/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}"].delete) - - https://raw.githubusercontent.com/Azure/azure-rest-api-specs/d374d03801e97737ddb32e01f20513e7b2bbd9c3/arm-storage/2015-06-15/swagger/storage.json:165:6 ($.paths["/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}"].get) - - https://raw.githubusercontent.com/Azure/azure-rest-api-specs/d374d03801e97737ddb32e01f20513e7b2bbd9c3/arm-storage/2015-06-15/swagger/storage.json:204:6 ($.paths["/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}"].patch) - - https://raw.githubusercontent.com/Azure/azure-rest-api-specs/d374d03801e97737ddb32e01f20513e7b2bbd9c3/arm-storage/2015-06-15/swagger/storage.json:254:6 ($.paths["/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/listKeys"].post) - - https://raw.githubusercontent.com/Azure/azure-rest-api-specs/d374d03801e97737ddb32e01f20513e7b2bbd9c3/arm-storage/2015-06-15/swagger/storage.json:295:6 ($.paths["/subscriptions/{subscriptionId}/providers/Microsoft.Storage/storageAccounts"].get) - - https://raw.githubusercontent.com/Azure/azure-rest-api-specs/d374d03801e97737ddb32e01f20513e7b2bbd9c3/arm-storage/2015-06-15/swagger/storage.json:323:6 ($.paths["/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts"].get) - - https://raw.githubusercontent.com/Azure/azure-rest-api-specs/d374d03801e97737ddb32e01f20513e7b2bbd9c3/arm-storage/2015-06-15/swagger/storage.json:358:6 ($.paths["/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/regenerateKey"].post) - - https://raw.githubusercontent.com/Azure/azure-rest-api-specs/d374d03801e97737ddb32e01f20513e7b2bbd9c3/arm-storage/2015-06-15/swagger/storage.json:38:2 ($.paths) - - https://raw.githubusercontent.com/Azure/azure-rest-api-specs/d374d03801e97737ddb32e01f20513e7b2bbd9c3/arm-storage/2015-06-15/swagger/storage.json:40:6 ($.paths["/subscriptions/{subscriptionId}/providers/Microsoft.Storage/checkNameAvailability"].post) - - https://raw.githubusercontent.com/Azure/azure-rest-api-specs/d374d03801e97737ddb32e01f20513e7b2bbd9c3/arm-storage/2015-06-15/swagger/storage.json:408:6 ($.paths["/subscriptions/{subscriptionId}/providers/Microsoft.Storage/usages"].get) - - https://raw.githubusercontent.com/Azure/azure-rest-api-specs/d374d03801e97737ddb32e01f20513e7b2bbd9c3/arm-storage/2015-06-15/swagger/storage.json:74:6 ($.paths["/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}"].put) -ERROR (OperationsAPIImplementation/R3023/ARMViolation): Operations API must be implemented for '/providers/Microsoft.Storage/operations'. -ERROR (XmsExamplesRequired/D5001/Documentation): Please provide x-ms-examples describing minimum/maximum property set for response/request payloads for operations. Operation: 'StorageAccounts_CheckNameAvailability' -ERROR (XmsExamplesRequired/D5001/Documentation): Please provide x-ms-examples describing minimum/maximum property set for response/request payloads for operations. Operation: 'StorageAccounts_Create' -ERROR (XmsExamplesRequired/D5001/Documentation): Please provide x-ms-examples describing minimum/maximum property set for response/request payloads for operations. Operation: 'StorageAccounts_Delete' -ERROR (XmsExamplesRequired/D5001/Documentation): Please provide x-ms-examples describing minimum/maximum property set for response/request payloads for operations. Operation: 'StorageAccounts_GetProperty' -ERROR (XmsExamplesRequired/D5001/Documentation): Please provide x-ms-examples describing minimum/maximum property set for response/request payloads for operations. Operation: 'StorageAccounts_List' -ERROR (XmsExamplesRequired/D5001/Documentation): Please provide x-ms-examples describing minimum/maximum property set for response/request payloads for operations. Operation: 'StorageAccounts_ListByResourceGroup' -ERROR (XmsExamplesRequired/D5001/Documentation): Please provide x-ms-examples describing minimum/maximum property set for response/request payloads for operations. Operation: 'StorageAccounts_ListKeys' -ERROR (XmsExamplesRequired/D5001/Documentation): Please provide x-ms-examples describing minimum/maximum property set for response/request payloads for operations. Operation: 'StorageAccounts_RegenerateKey' -ERROR (XmsExamplesRequired/D5001/Documentation): Please provide x-ms-examples describing minimum/maximum property set for response/request payloads for operations. Operation: 'StorageAccounts_Update' -ERROR (XmsExamplesRequired/D5001/Documentation): Please provide x-ms-examples describing minimum/maximum property set for response/request payloads for operations. Operation: 'Usage_List' diff --git a/Samples/openapi-v2/3b-custom-transformations/shell/stdout.txt b/Samples/openapi-v2/3b-custom-transformations/shell/stdout.txt deleted file mode 100644 index 0a8c85d008..0000000000 --- a/Samples/openapi-v2/3b-custom-transformations/shell/stdout.txt +++ /dev/null @@ -1,55 +0,0 @@ - - - - - - - - - - - - - - - - - - - - https://raw.githubusercontent.com/Azure/azure-rest-api-specs/d374d03801e97737ddb32e01f20513e7b2bbd9c3/arm-storage/2015-06-15/swagger/storage.json:14:4 ($.consumes[1]) - - https://raw.githubusercontent.com/Azure/azure-rest-api-specs/d374d03801e97737ddb32e01f20513e7b2bbd9c3/arm-storage/2015-06-15/swagger/storage.json:18:4 ($.produces[1]) - - https://raw.githubusercontent.com/Azure/azure-rest-api-specs/d374d03801e97737ddb32e01f20513e7b2bbd9c3/arm-storage/2015-06-15/swagger/storage.json:412:8 ($.paths["/subscriptions/{subscriptionId}/providers/Microsoft.Storage/usages"].get.operationId) - - https://raw.githubusercontent.com/Azure/azure-rest-api-specs/d374d03801e97737ddb32e01f20513e7b2bbd9c3/arm-storage/2015-06-15/swagger/storage.json:437:4 ($.definitions.StorageAccountCheckNameAvailabilityParameters) - - https://raw.githubusercontent.com/Azure/azure-rest-api-specs/d374d03801e97737ddb32e01f20513e7b2bbd9c3/arm-storage/2015-06-15/swagger/storage.json:439:8 ($.definitions.StorageAccountCheckNameAvailabilityParameters.properties.name) - - https://raw.githubusercontent.com/Azure/azure-rest-api-specs/d374d03801e97737ddb32e01f20513e7b2bbd9c3/arm-storage/2015-06-15/swagger/storage.json:442:8 ($.definitions.StorageAccountCheckNameAvailabilityParameters.properties.type) - - https://raw.githubusercontent.com/Azure/azure-rest-api-specs/d374d03801e97737ddb32e01f20513e7b2bbd9c3/arm-storage/2015-06-15/swagger/storage.json:453:8 ($.definitions.CheckNameAvailabilityResult.properties.nameAvailable) - - https://raw.githubusercontent.com/Azure/azure-rest-api-specs/d374d03801e97737ddb32e01f20513e7b2bbd9c3/arm-storage/2015-06-15/swagger/storage.json:476:4 ($.definitions.StorageAccountPropertiesCreateParameters) - - https://raw.githubusercontent.com/Azure/azure-rest-api-specs/d374d03801e97737ddb32e01f20513e7b2bbd9c3/arm-storage/2015-06-15/swagger/storage.json:511:8 ($.definitions.StorageAccountCreateParameters.properties.properties) - - https://raw.githubusercontent.com/Azure/azure-rest-api-specs/d374d03801e97737ddb32e01f20513e7b2bbd9c3/arm-storage/2015-06-15/swagger/storage.json:549:8 ($.definitions.CustomDomain.properties.useSubDomain) - - https://raw.githubusercontent.com/Azure/azure-rest-api-specs/d374d03801e97737ddb32e01f20513e7b2bbd9c3/arm-storage/2015-06-15/swagger/storage.json:559:4 ($.definitions.StorageAccountProperties) - - https://raw.githubusercontent.com/Azure/azure-rest-api-specs/d374d03801e97737ddb32e01f20513e7b2bbd9c3/arm-storage/2015-06-15/swagger/storage.json:647:8 ($.definitions.StorageAccount.properties.properties) - - https://raw.githubusercontent.com/Azure/azure-rest-api-specs/d374d03801e97737ddb32e01f20513e7b2bbd9c3/arm-storage/2015-06-15/swagger/storage.json:684:4 ($.definitions.StorageAccountPropertiesUpdateParameters) - - https://raw.githubusercontent.com/Azure/azure-rest-api-specs/d374d03801e97737ddb32e01f20513e7b2bbd9c3/arm-storage/2015-06-15/swagger/storage.json:716:8 ($.definitions.StorageAccountUpdateParameters.properties.properties) - - https://raw.githubusercontent.com/Azure/azure-rest-api-specs/d374d03801e97737ddb32e01f20513e7b2bbd9c3/arm-storage/2015-06-15/swagger/storage.json:724:4 ($.definitions.StorageAccountRegenerateKeyParameters) - - https://raw.githubusercontent.com/Azure/azure-rest-api-specs/d374d03801e97737ddb32e01f20513e7b2bbd9c3/arm-storage/2015-06-15/swagger/storage.json:726:8 ($.definitions.StorageAccountRegenerateKeyParameters.properties.keyName) - - https://raw.githubusercontent.com/Azure/azure-rest-api-specs/d374d03801e97737ddb32e01f20513e7b2bbd9c3/arm-storage/2015-06-15/swagger/storage.json:74:6 ($.paths["/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}"].put) - - https://raw.githubusercontent.com/Azure/azure-rest-api-specs/d374d03801e97737ddb32e01f20513e7b2bbd9c3/arm-storage/2015-06-15/swagger/storage.json:800:4 ($.definitions.Resource) -https://aka.ms/autorest -WARNING (DescriptionAndTitleMissing/R4000/SDKViolation): 'keyName' model/property lacks 'description' and 'title' property. Consider adding a 'description'/'title' element. Accurate description/title is essential for maintaining reference documentation. -WARNING (DescriptionAndTitleMissing/R4000/SDKViolation): 'name' model/property lacks 'description' and 'title' property. Consider adding a 'description'/'title' element. Accurate description/title is essential for maintaining reference documentation. -WARNING (DescriptionAndTitleMissing/R4000/SDKViolation): 'properties' model/property lacks 'description' and 'title' property. Consider adding a 'description'/'title' element. Accurate description/title is essential for maintaining reference documentation. -WARNING (DescriptionAndTitleMissing/R4000/SDKViolation): 'properties' model/property lacks 'description' and 'title' property. Consider adding a 'description'/'title' element. Accurate description/title is essential for maintaining reference documentation. -WARNING (DescriptionAndTitleMissing/R4000/SDKViolation): 'properties' model/property lacks 'description' and 'title' property. Consider adding a 'description'/'title' element. Accurate description/title is essential for maintaining reference documentation. -WARNING (DescriptionAndTitleMissing/R4000/SDKViolation): 'Resource' model/property lacks 'description' and 'title' property. Consider adding a 'description'/'title' element. Accurate description/title is essential for maintaining reference documentation. -WARNING (DescriptionAndTitleMissing/R4000/SDKViolation): 'StorageAccountCheckNameAvailabilityParameters' model/property lacks 'description' and 'title' property. Consider adding a 'description'/'title' element. Accurate description/title is essential for maintaining reference documentation. -WARNING (DescriptionAndTitleMissing/R4000/SDKViolation): 'StorageAccountProperties' model/property lacks 'description' and 'title' property. Consider adding a 'description'/'title' element. Accurate description/title is essential for maintaining reference documentation. -WARNING (DescriptionAndTitleMissing/R4000/SDKViolation): 'StorageAccountPropertiesCreateParameters' model/property lacks 'description' and 'title' property. Consider adding a 'description'/'title' element. Accurate description/title is essential for maintaining reference documentation. -WARNING (DescriptionAndTitleMissing/R4000/SDKViolation): 'StorageAccountPropertiesUpdateParameters' model/property lacks 'description' and 'title' property. Consider adding a 'description'/'title' element. Accurate description/title is essential for maintaining reference documentation. -WARNING (DescriptionAndTitleMissing/R4000/SDKViolation): 'StorageAccountRegenerateKeyParameters' model/property lacks 'description' and 'title' property. Consider adding a 'description'/'title' element. Accurate description/title is essential for maintaining reference documentation. -WARNING (DescriptionAndTitleMissing/R4000/SDKViolation): 'type' model/property lacks 'description' and 'title' property. Consider adding a 'description'/'title' element. Accurate description/title is essential for maintaining reference documentation. -WARNING (EnumInsteadOfBoolean/R3018/ARMViolation): Booleans are not descriptive and make them hard to use. Consider using string enums with allowed set of values defined. Property: nameAvailable -WARNING (EnumInsteadOfBoolean/R3018/ARMViolation): Booleans are not descriptive and make them hard to use. Consider using string enums with allowed set of values defined. Property: useSubDomain -WARNING (NonApplicationJsonType/R2004/ARMViolation): Only 'application/json' content-type is supported by ARM. -WARNING (NonApplicationJsonType/R2004/ARMViolation): Only 'application/json' content-type is supported by ARM. -WARNING (OperationIdNounConflictingModelNames/R2063/SDKViolation): OperationId has a noun that conflicts with one of the model names in definitions section. The model name will be disambiguated to 'UsageModel'. Consider using the plural form of 'Usage' to avoid this. Note: If you have already shipped an SDK on top of this spec, fixing this warning may introduce a breaking change. -WARNING (PutRequestResponseScheme/R2017/SDKViolation): A PUT operation request body schema should be the same as its 200 response schema, to allow reusing the same entity between GET and PUT. If the schema of the PUT request body is a superset of the GET response body, make sure you have a PATCH operation to make the resource updatable. Operation: 'StorageAccounts_Create' Request Model: 'StorageAccountCreateParameters' Response Model: 'StorageAccount' diff --git a/Samples/openapi-v2/3c-guards/Client/IStorageAccounts.cs b/Samples/openapi-v2/3c-guards/Client/IStorageAccounts.cs deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/3c-guards/Client/IStorageAccounts.cs +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/3c-guards/Client/IStorageManagementClient.cs b/Samples/openapi-v2/3c-guards/Client/IStorageManagementClient.cs deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/3c-guards/Client/IStorageManagementClient.cs +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/3c-guards/Client/IUsageOperations.cs b/Samples/openapi-v2/3c-guards/Client/IUsageOperations.cs deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/3c-guards/Client/IUsageOperations.cs +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/3c-guards/Client/Models/AccountStatus.cs b/Samples/openapi-v2/3c-guards/Client/Models/AccountStatus.cs deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/3c-guards/Client/Models/AccountStatus.cs +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/3c-guards/Client/Models/AccountType.cs b/Samples/openapi-v2/3c-guards/Client/Models/AccountType.cs deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/3c-guards/Client/Models/AccountType.cs +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/3c-guards/Client/Models/CheckNameAvailabilityResult.cs b/Samples/openapi-v2/3c-guards/Client/Models/CheckNameAvailabilityResult.cs deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/3c-guards/Client/Models/CheckNameAvailabilityResult.cs +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/3c-guards/Client/Models/CustomDomain.cs b/Samples/openapi-v2/3c-guards/Client/Models/CustomDomain.cs deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/3c-guards/Client/Models/CustomDomain.cs +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/3c-guards/Client/Models/Endpoints.cs b/Samples/openapi-v2/3c-guards/Client/Models/Endpoints.cs deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/3c-guards/Client/Models/Endpoints.cs +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/3c-guards/Client/Models/ProvisioningState.cs b/Samples/openapi-v2/3c-guards/Client/Models/ProvisioningState.cs deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/3c-guards/Client/Models/ProvisioningState.cs +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/3c-guards/Client/Models/Reason.cs b/Samples/openapi-v2/3c-guards/Client/Models/Reason.cs deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/3c-guards/Client/Models/Reason.cs +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/3c-guards/Client/Models/Resource.cs b/Samples/openapi-v2/3c-guards/Client/Models/Resource.cs deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/3c-guards/Client/Models/Resource.cs +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/3c-guards/Client/Models/StorageAccount.cs b/Samples/openapi-v2/3c-guards/Client/Models/StorageAccount.cs deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/3c-guards/Client/Models/StorageAccount.cs +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/3c-guards/Client/Models/StorageAccountCheckNameAvailabilityParameters.cs b/Samples/openapi-v2/3c-guards/Client/Models/StorageAccountCheckNameAvailabilityParameters.cs deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/3c-guards/Client/Models/StorageAccountCheckNameAvailabilityParameters.cs +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/3c-guards/Client/Models/StorageAccountCreateParameters.cs b/Samples/openapi-v2/3c-guards/Client/Models/StorageAccountCreateParameters.cs deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/3c-guards/Client/Models/StorageAccountCreateParameters.cs +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/3c-guards/Client/Models/StorageAccountKeys.cs b/Samples/openapi-v2/3c-guards/Client/Models/StorageAccountKeys.cs deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/3c-guards/Client/Models/StorageAccountKeys.cs +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/3c-guards/Client/Models/StorageAccountListResult.cs b/Samples/openapi-v2/3c-guards/Client/Models/StorageAccountListResult.cs deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/3c-guards/Client/Models/StorageAccountListResult.cs +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/3c-guards/Client/Models/StorageAccountRegenerateKeyParameters.cs b/Samples/openapi-v2/3c-guards/Client/Models/StorageAccountRegenerateKeyParameters.cs deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/3c-guards/Client/Models/StorageAccountRegenerateKeyParameters.cs +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/3c-guards/Client/Models/StorageAccountUpdateParameters.cs b/Samples/openapi-v2/3c-guards/Client/Models/StorageAccountUpdateParameters.cs deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/3c-guards/Client/Models/StorageAccountUpdateParameters.cs +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/3c-guards/Client/Models/Usage.cs b/Samples/openapi-v2/3c-guards/Client/Models/Usage.cs deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/3c-guards/Client/Models/Usage.cs +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/3c-guards/Client/Models/UsageListResult.cs b/Samples/openapi-v2/3c-guards/Client/Models/UsageListResult.cs deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/3c-guards/Client/Models/UsageListResult.cs +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/3c-guards/Client/Models/UsageName.cs b/Samples/openapi-v2/3c-guards/Client/Models/UsageName.cs deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/3c-guards/Client/Models/UsageName.cs +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/3c-guards/Client/Models/UsageUnit.cs b/Samples/openapi-v2/3c-guards/Client/Models/UsageUnit.cs deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/3c-guards/Client/Models/UsageUnit.cs +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/3c-guards/Client/StorageAccounts.cs b/Samples/openapi-v2/3c-guards/Client/StorageAccounts.cs deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/3c-guards/Client/StorageAccounts.cs +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/3c-guards/Client/StorageAccountsExtensions.cs b/Samples/openapi-v2/3c-guards/Client/StorageAccountsExtensions.cs deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/3c-guards/Client/StorageAccountsExtensions.cs +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/3c-guards/Client/StorageManagementClient.cs b/Samples/openapi-v2/3c-guards/Client/StorageManagementClient.cs deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/3c-guards/Client/StorageManagementClient.cs +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/3c-guards/Client/UsageOperations.cs b/Samples/openapi-v2/3c-guards/Client/UsageOperations.cs deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/3c-guards/Client/UsageOperations.cs +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/3c-guards/Client/UsageOperationsExtensions.cs b/Samples/openapi-v2/3c-guards/Client/UsageOperationsExtensions.cs deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/3c-guards/Client/UsageOperationsExtensions.cs +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/3c-guards/OtherClient/StorageAccounts.java b/Samples/openapi-v2/3c-guards/OtherClient/StorageAccounts.java deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/3c-guards/OtherClient/StorageAccounts.java +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/3c-guards/OtherClient/StorageManagementClient.java b/Samples/openapi-v2/3c-guards/OtherClient/StorageManagementClient.java deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/3c-guards/OtherClient/StorageManagementClient.java +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/3c-guards/OtherClient/Usages.java b/Samples/openapi-v2/3c-guards/OtherClient/Usages.java deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/3c-guards/OtherClient/Usages.java +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/3c-guards/OtherClient/implementation/StorageAccountsImpl.java b/Samples/openapi-v2/3c-guards/OtherClient/implementation/StorageAccountsImpl.java deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/3c-guards/OtherClient/implementation/StorageAccountsImpl.java +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/3c-guards/OtherClient/implementation/StorageManagementClientImpl.java b/Samples/openapi-v2/3c-guards/OtherClient/implementation/StorageManagementClientImpl.java deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/3c-guards/OtherClient/implementation/StorageManagementClientImpl.java +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/3c-guards/OtherClient/implementation/UsagesImpl.java b/Samples/openapi-v2/3c-guards/OtherClient/implementation/UsagesImpl.java deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/3c-guards/OtherClient/implementation/UsagesImpl.java +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/3c-guards/OtherClient/implementation/package-info.java b/Samples/openapi-v2/3c-guards/OtherClient/implementation/package-info.java deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/3c-guards/OtherClient/implementation/package-info.java +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/3c-guards/OtherClient/models/AccountStatus.java b/Samples/openapi-v2/3c-guards/OtherClient/models/AccountStatus.java deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/3c-guards/OtherClient/models/AccountStatus.java +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/3c-guards/OtherClient/models/AccountType.java b/Samples/openapi-v2/3c-guards/OtherClient/models/AccountType.java deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/3c-guards/OtherClient/models/AccountType.java +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/3c-guards/OtherClient/models/CheckNameAvailabilityResult.java b/Samples/openapi-v2/3c-guards/OtherClient/models/CheckNameAvailabilityResult.java deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/3c-guards/OtherClient/models/CheckNameAvailabilityResult.java +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/3c-guards/OtherClient/models/CustomDomain.java b/Samples/openapi-v2/3c-guards/OtherClient/models/CustomDomain.java deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/3c-guards/OtherClient/models/CustomDomain.java +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/3c-guards/OtherClient/models/Endpoints.java b/Samples/openapi-v2/3c-guards/OtherClient/models/Endpoints.java deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/3c-guards/OtherClient/models/Endpoints.java +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/3c-guards/OtherClient/models/ProvisioningState.java b/Samples/openapi-v2/3c-guards/OtherClient/models/ProvisioningState.java deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/3c-guards/OtherClient/models/ProvisioningState.java +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/3c-guards/OtherClient/models/Reason.java b/Samples/openapi-v2/3c-guards/OtherClient/models/Reason.java deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/3c-guards/OtherClient/models/Reason.java +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/3c-guards/OtherClient/models/Resource.java b/Samples/openapi-v2/3c-guards/OtherClient/models/Resource.java deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/3c-guards/OtherClient/models/Resource.java +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/3c-guards/OtherClient/models/StorageAccount.java b/Samples/openapi-v2/3c-guards/OtherClient/models/StorageAccount.java deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/3c-guards/OtherClient/models/StorageAccount.java +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/3c-guards/OtherClient/models/StorageAccountCheckNameAvailabilityParameters.java b/Samples/openapi-v2/3c-guards/OtherClient/models/StorageAccountCheckNameAvailabilityParameters.java deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/3c-guards/OtherClient/models/StorageAccountCheckNameAvailabilityParameters.java +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/3c-guards/OtherClient/models/StorageAccountCreateParameters.java b/Samples/openapi-v2/3c-guards/OtherClient/models/StorageAccountCreateParameters.java deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/3c-guards/OtherClient/models/StorageAccountCreateParameters.java +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/3c-guards/OtherClient/models/StorageAccountKeys.java b/Samples/openapi-v2/3c-guards/OtherClient/models/StorageAccountKeys.java deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/3c-guards/OtherClient/models/StorageAccountKeys.java +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/3c-guards/OtherClient/models/StorageAccountListResult.java b/Samples/openapi-v2/3c-guards/OtherClient/models/StorageAccountListResult.java deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/3c-guards/OtherClient/models/StorageAccountListResult.java +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/3c-guards/OtherClient/models/StorageAccountRegenerateKeyParameters.java b/Samples/openapi-v2/3c-guards/OtherClient/models/StorageAccountRegenerateKeyParameters.java deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/3c-guards/OtherClient/models/StorageAccountRegenerateKeyParameters.java +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/3c-guards/OtherClient/models/StorageAccountUpdateParameters.java b/Samples/openapi-v2/3c-guards/OtherClient/models/StorageAccountUpdateParameters.java deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/3c-guards/OtherClient/models/StorageAccountUpdateParameters.java +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/3c-guards/OtherClient/models/Usage.java b/Samples/openapi-v2/3c-guards/OtherClient/models/Usage.java deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/3c-guards/OtherClient/models/Usage.java +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/3c-guards/OtherClient/models/UsageListResult.java b/Samples/openapi-v2/3c-guards/OtherClient/models/UsageListResult.java deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/3c-guards/OtherClient/models/UsageListResult.java +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/3c-guards/OtherClient/models/UsageName.java b/Samples/openapi-v2/3c-guards/OtherClient/models/UsageName.java deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/3c-guards/OtherClient/models/UsageName.java +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/3c-guards/OtherClient/models/UsageUnit.java b/Samples/openapi-v2/3c-guards/OtherClient/models/UsageUnit.java deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/3c-guards/OtherClient/models/UsageUnit.java +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/3c-guards/OtherClient/models/package-info.java b/Samples/openapi-v2/3c-guards/OtherClient/models/package-info.java deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/3c-guards/OtherClient/models/package-info.java +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/3c-guards/OtherClient/package-info.java b/Samples/openapi-v2/3c-guards/OtherClient/package-info.java deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/3c-guards/OtherClient/package-info.java +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/3c-guards/readme.md b/Samples/openapi-v2/3c-guards/readme.md deleted file mode 100644 index f9737a2577..0000000000 --- a/Samples/openapi-v2/3c-guards/readme.md +++ /dev/null @@ -1,44 +0,0 @@ -# Scenario: Guards for conditional configuration - -> see https://aka.ms/autorest - -## Inputs - -``` yaml -input-file: - - https://github.com/Azure/azure-rest-api-specs/blob/d374d03801e97737ddb32e01f20513e7b2bbd9c3/arm-storage/2015-06-15/swagger/storage.json -``` - -### Preview features (run with `--preview` to activate) - -``` yaml $(preview) -input-file: - - https://github.com/Azure/azure-rest-api-specs/blob/d374d03801e97737ddb32e01f20513e7b2bbd9c3/arm-dns/2015-05-04-preview/swagger/dns.json -``` - -## Generation - -``` yaml -csharp: - output-folder: Client -``` - -## More fun with guards - -Defining custom flags... - -``` yaml $(csharp["output-folder"] == "Client") -please-generate-java-too: true -``` - -...and depending on them: - -``` yaml $(please-generate-java-too) -java: - output-folder: OtherClient -``` - -``` yaml $(please-generate-go-too) -go: - output-folder: YetAnotherClient -``` diff --git a/Samples/openapi-v2/3c-guards/shell/code.txt b/Samples/openapi-v2/3c-guards/shell/code.txt deleted file mode 100644 index c227083464..0000000000 --- a/Samples/openapi-v2/3c-guards/shell/code.txt +++ /dev/null @@ -1 +0,0 @@ -0 \ No newline at end of file diff --git a/Samples/openapi-v2/3c-guards/shell/stderr.txt b/Samples/openapi-v2/3c-guards/shell/stderr.txt deleted file mode 100644 index 8b13789179..0000000000 --- a/Samples/openapi-v2/3c-guards/shell/stderr.txt +++ /dev/null @@ -1 +0,0 @@ - diff --git a/Samples/openapi-v2/3c-guards/shell/stdout.txt b/Samples/openapi-v2/3c-guards/shell/stdout.txt deleted file mode 100644 index 17d46a9413..0000000000 --- a/Samples/openapi-v2/3c-guards/shell/stdout.txt +++ /dev/null @@ -1 +0,0 @@ -https://aka.ms/autorest diff --git a/Samples/openapi-v2/3d-custom-validation/Client/IStorageAccounts.cs b/Samples/openapi-v2/3d-custom-validation/Client/IStorageAccounts.cs deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/3d-custom-validation/Client/IStorageAccounts.cs +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/3d-custom-validation/Client/IStorageManagementClient.cs b/Samples/openapi-v2/3d-custom-validation/Client/IStorageManagementClient.cs deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/3d-custom-validation/Client/IStorageManagementClient.cs +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/3d-custom-validation/Client/IUsageOperations.cs b/Samples/openapi-v2/3d-custom-validation/Client/IUsageOperations.cs deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/3d-custom-validation/Client/IUsageOperations.cs +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/3d-custom-validation/Client/Models/AccountStatus.cs b/Samples/openapi-v2/3d-custom-validation/Client/Models/AccountStatus.cs deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/3d-custom-validation/Client/Models/AccountStatus.cs +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/3d-custom-validation/Client/Models/AccountType.cs b/Samples/openapi-v2/3d-custom-validation/Client/Models/AccountType.cs deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/3d-custom-validation/Client/Models/AccountType.cs +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/3d-custom-validation/Client/Models/CheckNameAvailabilityResult.cs b/Samples/openapi-v2/3d-custom-validation/Client/Models/CheckNameAvailabilityResult.cs deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/3d-custom-validation/Client/Models/CheckNameAvailabilityResult.cs +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/3d-custom-validation/Client/Models/CustomDomain.cs b/Samples/openapi-v2/3d-custom-validation/Client/Models/CustomDomain.cs deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/3d-custom-validation/Client/Models/CustomDomain.cs +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/3d-custom-validation/Client/Models/Endpoints.cs b/Samples/openapi-v2/3d-custom-validation/Client/Models/Endpoints.cs deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/3d-custom-validation/Client/Models/Endpoints.cs +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/3d-custom-validation/Client/Models/ProvisioningState.cs b/Samples/openapi-v2/3d-custom-validation/Client/Models/ProvisioningState.cs deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/3d-custom-validation/Client/Models/ProvisioningState.cs +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/3d-custom-validation/Client/Models/Reason.cs b/Samples/openapi-v2/3d-custom-validation/Client/Models/Reason.cs deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/3d-custom-validation/Client/Models/Reason.cs +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/3d-custom-validation/Client/Models/Resource.cs b/Samples/openapi-v2/3d-custom-validation/Client/Models/Resource.cs deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/3d-custom-validation/Client/Models/Resource.cs +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/3d-custom-validation/Client/Models/StorageAccount.cs b/Samples/openapi-v2/3d-custom-validation/Client/Models/StorageAccount.cs deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/3d-custom-validation/Client/Models/StorageAccount.cs +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/3d-custom-validation/Client/Models/StorageAccountCheckNameAvailabilityParameters.cs b/Samples/openapi-v2/3d-custom-validation/Client/Models/StorageAccountCheckNameAvailabilityParameters.cs deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/3d-custom-validation/Client/Models/StorageAccountCheckNameAvailabilityParameters.cs +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/3d-custom-validation/Client/Models/StorageAccountCreateParameters.cs b/Samples/openapi-v2/3d-custom-validation/Client/Models/StorageAccountCreateParameters.cs deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/3d-custom-validation/Client/Models/StorageAccountCreateParameters.cs +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/3d-custom-validation/Client/Models/StorageAccountKeys.cs b/Samples/openapi-v2/3d-custom-validation/Client/Models/StorageAccountKeys.cs deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/3d-custom-validation/Client/Models/StorageAccountKeys.cs +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/3d-custom-validation/Client/Models/StorageAccountListResult.cs b/Samples/openapi-v2/3d-custom-validation/Client/Models/StorageAccountListResult.cs deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/3d-custom-validation/Client/Models/StorageAccountListResult.cs +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/3d-custom-validation/Client/Models/StorageAccountRegenerateKeyParameters.cs b/Samples/openapi-v2/3d-custom-validation/Client/Models/StorageAccountRegenerateKeyParameters.cs deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/3d-custom-validation/Client/Models/StorageAccountRegenerateKeyParameters.cs +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/3d-custom-validation/Client/Models/StorageAccountUpdateParameters.cs b/Samples/openapi-v2/3d-custom-validation/Client/Models/StorageAccountUpdateParameters.cs deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/3d-custom-validation/Client/Models/StorageAccountUpdateParameters.cs +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/3d-custom-validation/Client/Models/Usage.cs b/Samples/openapi-v2/3d-custom-validation/Client/Models/Usage.cs deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/3d-custom-validation/Client/Models/Usage.cs +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/3d-custom-validation/Client/Models/UsageListResult.cs b/Samples/openapi-v2/3d-custom-validation/Client/Models/UsageListResult.cs deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/3d-custom-validation/Client/Models/UsageListResult.cs +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/3d-custom-validation/Client/Models/UsageName.cs b/Samples/openapi-v2/3d-custom-validation/Client/Models/UsageName.cs deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/3d-custom-validation/Client/Models/UsageName.cs +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/3d-custom-validation/Client/Models/UsageUnit.cs b/Samples/openapi-v2/3d-custom-validation/Client/Models/UsageUnit.cs deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/3d-custom-validation/Client/Models/UsageUnit.cs +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/3d-custom-validation/Client/StorageAccounts.cs b/Samples/openapi-v2/3d-custom-validation/Client/StorageAccounts.cs deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/3d-custom-validation/Client/StorageAccounts.cs +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/3d-custom-validation/Client/StorageAccountsExtensions.cs b/Samples/openapi-v2/3d-custom-validation/Client/StorageAccountsExtensions.cs deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/3d-custom-validation/Client/StorageAccountsExtensions.cs +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/3d-custom-validation/Client/StorageManagementClient.cs b/Samples/openapi-v2/3d-custom-validation/Client/StorageManagementClient.cs deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/3d-custom-validation/Client/StorageManagementClient.cs +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/3d-custom-validation/Client/UsageOperations.cs b/Samples/openapi-v2/3d-custom-validation/Client/UsageOperations.cs deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/3d-custom-validation/Client/UsageOperations.cs +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/3d-custom-validation/Client/UsageOperationsExtensions.cs b/Samples/openapi-v2/3d-custom-validation/Client/UsageOperationsExtensions.cs deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/3d-custom-validation/Client/UsageOperationsExtensions.cs +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/3d-custom-validation/readme.md b/Samples/openapi-v2/3d-custom-validation/readme.md deleted file mode 100644 index ab1ae7df32..0000000000 --- a/Samples/openapi-v2/3d-custom-validation/readme.md +++ /dev/null @@ -1,68 +0,0 @@ -# Scenario: Custom validation rules - -> see https://aka.ms/autorest - -## Standard - -``` yaml -input-file: - - https://github.com/Azure/azure-rest-api-specs/blob/d374d03801e97737ddb32e01f20513e7b2bbd9c3/arm-storage/2015-06-15/swagger/storage.json -csharp: - output-folder: Client -``` - -## Check StorageAccounts.cs (expecting success) - -``` yaml -directive: - from: StorageAccounts.cs - where: $ - test: - # boolean expression (false => failure, true => success) - - $.indexOf("partial class StorageAccounts") !== -1 - # generator body, yielding booleans - - |- - const validationCount = $.split("new ValidationException").length - 1; - yield validationCount > 0; // we want some validations - yield validationCount < 1000; // but not too many - # generator body, yielding message text - - |- - const validationCount = $.split("new ValidationException").length - 1; - if (validationCount == 0) - yield "we want some validations - found none"; - if (validationCount >= 1000) - yield "too many validations"; - # generator body, yielding full blown messages - - |- - const validationCount = $.split("new ValidationException").length - 1; - if (validationCount == 0) - yield { Channel: "error", Text: "we want some validations - found none" }; - if (validationCount >= 1000) - yield { Channel: "warning", Text: "too many validations" }; -``` - -## Check StorageAccounts.cs (expecting failure, to demonstrate effects) - -``` yaml -directive: - from: StorageAccounts.cs - where: $ - test: - # boolean expression (false => failure, true => success) - - $.indexOf("cowbell") !== -1 - # generator body, yielding booleans - - |- - const cowbellCount = $.split("cowbell").length - 1; - yield cowbellCount > 0; // we want some cowbell - # generator body, yielding message text - - |- - const cowbellCount = $.split("cowbell").length - 1; - if (cowbellCount == 0) - yield "we want some cowbell - found none"; - # generator body, yielding full blown messages - - |- - const cowbellCount = $.split("cowbell").length - 1; - if (cowbellCount == 0) - yield { Channel: "error", Text: "we want some cowbell - found none" }; -``` - diff --git a/Samples/openapi-v2/3d-custom-validation/shell/code.txt b/Samples/openapi-v2/3d-custom-validation/shell/code.txt deleted file mode 100644 index 56a6051ca2..0000000000 --- a/Samples/openapi-v2/3d-custom-validation/shell/code.txt +++ /dev/null @@ -1 +0,0 @@ -1 \ No newline at end of file diff --git a/Samples/openapi-v2/3d-custom-validation/shell/stderr.txt b/Samples/openapi-v2/3d-custom-validation/shell/stderr.txt deleted file mode 100644 index 730b93a820..0000000000 --- a/Samples/openapi-v2/3d-custom-validation/shell/stderr.txt +++ /dev/null @@ -1,2 +0,0 @@ - - trans_input?mem:1:0 -ERROR: we want some cowbell - found none diff --git a/Samples/openapi-v2/3d-custom-validation/shell/stdout.txt b/Samples/openapi-v2/3d-custom-validation/shell/stdout.txt deleted file mode 100644 index 894b42aa4d..0000000000 --- a/Samples/openapi-v2/3d-custom-validation/shell/stdout.txt +++ /dev/null @@ -1,7 +0,0 @@ - - trans_input?mem:1:0 - - trans_input?mem:1:0 - - trans_input?mem:1:0 -https://aka.ms/autorest -WARNING: Custom test failed -WARNING: Custom test failed -WARNING: we want some cowbell - found none diff --git a/Samples/openapi-v2/3e-batch-mode/output1/IStorageAccountsOperations.cs b/Samples/openapi-v2/3e-batch-mode/output1/IStorageAccountsOperations.cs deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/3e-batch-mode/output1/IStorageAccountsOperations.cs +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/3e-batch-mode/output1/IStorageManagementClient.cs b/Samples/openapi-v2/3e-batch-mode/output1/IStorageManagementClient.cs deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/3e-batch-mode/output1/IStorageManagementClient.cs +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/3e-batch-mode/output1/IUsageOperations.cs b/Samples/openapi-v2/3e-batch-mode/output1/IUsageOperations.cs deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/3e-batch-mode/output1/IUsageOperations.cs +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/3e-batch-mode/output1/Models/AccountStatus.cs b/Samples/openapi-v2/3e-batch-mode/output1/Models/AccountStatus.cs deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/3e-batch-mode/output1/Models/AccountStatus.cs +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/3e-batch-mode/output1/Models/AccountType.cs b/Samples/openapi-v2/3e-batch-mode/output1/Models/AccountType.cs deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/3e-batch-mode/output1/Models/AccountType.cs +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/3e-batch-mode/output1/Models/CheckNameAvailabilityResult.cs b/Samples/openapi-v2/3e-batch-mode/output1/Models/CheckNameAvailabilityResult.cs deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/3e-batch-mode/output1/Models/CheckNameAvailabilityResult.cs +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/3e-batch-mode/output1/Models/CustomDomain.cs b/Samples/openapi-v2/3e-batch-mode/output1/Models/CustomDomain.cs deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/3e-batch-mode/output1/Models/CustomDomain.cs +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/3e-batch-mode/output1/Models/Endpoints.cs b/Samples/openapi-v2/3e-batch-mode/output1/Models/Endpoints.cs deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/3e-batch-mode/output1/Models/Endpoints.cs +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/3e-batch-mode/output1/Models/Page.cs b/Samples/openapi-v2/3e-batch-mode/output1/Models/Page.cs deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/3e-batch-mode/output1/Models/Page.cs +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/3e-batch-mode/output1/Models/ProvisioningState.cs b/Samples/openapi-v2/3e-batch-mode/output1/Models/ProvisioningState.cs deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/3e-batch-mode/output1/Models/ProvisioningState.cs +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/3e-batch-mode/output1/Models/Reason.cs b/Samples/openapi-v2/3e-batch-mode/output1/Models/Reason.cs deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/3e-batch-mode/output1/Models/Reason.cs +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/3e-batch-mode/output1/Models/Resource.cs b/Samples/openapi-v2/3e-batch-mode/output1/Models/Resource.cs deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/3e-batch-mode/output1/Models/Resource.cs +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/3e-batch-mode/output1/Models/StorageAccount.cs b/Samples/openapi-v2/3e-batch-mode/output1/Models/StorageAccount.cs deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/3e-batch-mode/output1/Models/StorageAccount.cs +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/3e-batch-mode/output1/Models/StorageAccountCheckNameAvailabilityParameters.cs b/Samples/openapi-v2/3e-batch-mode/output1/Models/StorageAccountCheckNameAvailabilityParameters.cs deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/3e-batch-mode/output1/Models/StorageAccountCheckNameAvailabilityParameters.cs +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/3e-batch-mode/output1/Models/StorageAccountCreateParameters.cs b/Samples/openapi-v2/3e-batch-mode/output1/Models/StorageAccountCreateParameters.cs deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/3e-batch-mode/output1/Models/StorageAccountCreateParameters.cs +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/3e-batch-mode/output1/Models/StorageAccountKeys.cs b/Samples/openapi-v2/3e-batch-mode/output1/Models/StorageAccountKeys.cs deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/3e-batch-mode/output1/Models/StorageAccountKeys.cs +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/3e-batch-mode/output1/Models/StorageAccountRegenerateKeyParameters.cs b/Samples/openapi-v2/3e-batch-mode/output1/Models/StorageAccountRegenerateKeyParameters.cs deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/3e-batch-mode/output1/Models/StorageAccountRegenerateKeyParameters.cs +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/3e-batch-mode/output1/Models/StorageAccountUpdateParameters.cs b/Samples/openapi-v2/3e-batch-mode/output1/Models/StorageAccountUpdateParameters.cs deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/3e-batch-mode/output1/Models/StorageAccountUpdateParameters.cs +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/3e-batch-mode/output1/Models/Usage.cs b/Samples/openapi-v2/3e-batch-mode/output1/Models/Usage.cs deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/3e-batch-mode/output1/Models/Usage.cs +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/3e-batch-mode/output1/Models/UsageName.cs b/Samples/openapi-v2/3e-batch-mode/output1/Models/UsageName.cs deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/3e-batch-mode/output1/Models/UsageName.cs +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/3e-batch-mode/output1/Models/UsageUnit.cs b/Samples/openapi-v2/3e-batch-mode/output1/Models/UsageUnit.cs deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/3e-batch-mode/output1/Models/UsageUnit.cs +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/3e-batch-mode/output1/StorageAccountsOperations.cs b/Samples/openapi-v2/3e-batch-mode/output1/StorageAccountsOperations.cs deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/3e-batch-mode/output1/StorageAccountsOperations.cs +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/3e-batch-mode/output1/StorageAccountsOperationsExtensions.cs b/Samples/openapi-v2/3e-batch-mode/output1/StorageAccountsOperationsExtensions.cs deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/3e-batch-mode/output1/StorageAccountsOperationsExtensions.cs +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/3e-batch-mode/output1/StorageManagementClient.cs b/Samples/openapi-v2/3e-batch-mode/output1/StorageManagementClient.cs deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/3e-batch-mode/output1/StorageManagementClient.cs +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/3e-batch-mode/output1/UsageOperations.cs b/Samples/openapi-v2/3e-batch-mode/output1/UsageOperations.cs deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/3e-batch-mode/output1/UsageOperations.cs +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/3e-batch-mode/output1/UsageOperationsExtensions.cs b/Samples/openapi-v2/3e-batch-mode/output1/UsageOperationsExtensions.cs deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/3e-batch-mode/output1/UsageOperationsExtensions.cs +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/3e-batch-mode/output2/StorageAccounts.java b/Samples/openapi-v2/3e-batch-mode/output2/StorageAccounts.java deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/3e-batch-mode/output2/StorageAccounts.java +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/3e-batch-mode/output2/StorageManagementClient.java b/Samples/openapi-v2/3e-batch-mode/output2/StorageManagementClient.java deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/3e-batch-mode/output2/StorageManagementClient.java +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/3e-batch-mode/output2/Usages.java b/Samples/openapi-v2/3e-batch-mode/output2/Usages.java deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/3e-batch-mode/output2/Usages.java +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/3e-batch-mode/output2/implementation/StorageAccountsImpl.java b/Samples/openapi-v2/3e-batch-mode/output2/implementation/StorageAccountsImpl.java deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/3e-batch-mode/output2/implementation/StorageAccountsImpl.java +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/3e-batch-mode/output2/implementation/StorageManagementClientImpl.java b/Samples/openapi-v2/3e-batch-mode/output2/implementation/StorageManagementClientImpl.java deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/3e-batch-mode/output2/implementation/StorageManagementClientImpl.java +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/3e-batch-mode/output2/implementation/UsagesImpl.java b/Samples/openapi-v2/3e-batch-mode/output2/implementation/UsagesImpl.java deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/3e-batch-mode/output2/implementation/UsagesImpl.java +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/3e-batch-mode/output2/implementation/package-info.java b/Samples/openapi-v2/3e-batch-mode/output2/implementation/package-info.java deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/3e-batch-mode/output2/implementation/package-info.java +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/3e-batch-mode/output2/models/AccountStatus.java b/Samples/openapi-v2/3e-batch-mode/output2/models/AccountStatus.java deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/3e-batch-mode/output2/models/AccountStatus.java +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/3e-batch-mode/output2/models/AccountType.java b/Samples/openapi-v2/3e-batch-mode/output2/models/AccountType.java deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/3e-batch-mode/output2/models/AccountType.java +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/3e-batch-mode/output2/models/CheckNameAvailabilityResult.java b/Samples/openapi-v2/3e-batch-mode/output2/models/CheckNameAvailabilityResult.java deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/3e-batch-mode/output2/models/CheckNameAvailabilityResult.java +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/3e-batch-mode/output2/models/CustomDomain.java b/Samples/openapi-v2/3e-batch-mode/output2/models/CustomDomain.java deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/3e-batch-mode/output2/models/CustomDomain.java +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/3e-batch-mode/output2/models/Endpoints.java b/Samples/openapi-v2/3e-batch-mode/output2/models/Endpoints.java deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/3e-batch-mode/output2/models/Endpoints.java +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/3e-batch-mode/output2/models/ProvisioningState.java b/Samples/openapi-v2/3e-batch-mode/output2/models/ProvisioningState.java deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/3e-batch-mode/output2/models/ProvisioningState.java +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/3e-batch-mode/output2/models/Reason.java b/Samples/openapi-v2/3e-batch-mode/output2/models/Reason.java deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/3e-batch-mode/output2/models/Reason.java +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/3e-batch-mode/output2/models/Resource.java b/Samples/openapi-v2/3e-batch-mode/output2/models/Resource.java deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/3e-batch-mode/output2/models/Resource.java +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/3e-batch-mode/output2/models/StorageAccount.java b/Samples/openapi-v2/3e-batch-mode/output2/models/StorageAccount.java deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/3e-batch-mode/output2/models/StorageAccount.java +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/3e-batch-mode/output2/models/StorageAccountCheckNameAvailabilityParameters.java b/Samples/openapi-v2/3e-batch-mode/output2/models/StorageAccountCheckNameAvailabilityParameters.java deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/3e-batch-mode/output2/models/StorageAccountCheckNameAvailabilityParameters.java +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/3e-batch-mode/output2/models/StorageAccountCreateParameters.java b/Samples/openapi-v2/3e-batch-mode/output2/models/StorageAccountCreateParameters.java deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/3e-batch-mode/output2/models/StorageAccountCreateParameters.java +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/3e-batch-mode/output2/models/StorageAccountKeys.java b/Samples/openapi-v2/3e-batch-mode/output2/models/StorageAccountKeys.java deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/3e-batch-mode/output2/models/StorageAccountKeys.java +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/3e-batch-mode/output2/models/StorageAccountListResult.java b/Samples/openapi-v2/3e-batch-mode/output2/models/StorageAccountListResult.java deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/3e-batch-mode/output2/models/StorageAccountListResult.java +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/3e-batch-mode/output2/models/StorageAccountRegenerateKeyParameters.java b/Samples/openapi-v2/3e-batch-mode/output2/models/StorageAccountRegenerateKeyParameters.java deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/3e-batch-mode/output2/models/StorageAccountRegenerateKeyParameters.java +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/3e-batch-mode/output2/models/StorageAccountUpdateParameters.java b/Samples/openapi-v2/3e-batch-mode/output2/models/StorageAccountUpdateParameters.java deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/3e-batch-mode/output2/models/StorageAccountUpdateParameters.java +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/3e-batch-mode/output2/models/Usage.java b/Samples/openapi-v2/3e-batch-mode/output2/models/Usage.java deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/3e-batch-mode/output2/models/Usage.java +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/3e-batch-mode/output2/models/UsageListResult.java b/Samples/openapi-v2/3e-batch-mode/output2/models/UsageListResult.java deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/3e-batch-mode/output2/models/UsageListResult.java +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/3e-batch-mode/output2/models/UsageName.java b/Samples/openapi-v2/3e-batch-mode/output2/models/UsageName.java deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/3e-batch-mode/output2/models/UsageName.java +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/3e-batch-mode/output2/models/UsageUnit.java b/Samples/openapi-v2/3e-batch-mode/output2/models/UsageUnit.java deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/3e-batch-mode/output2/models/UsageUnit.java +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/3e-batch-mode/output2/models/package-info.java b/Samples/openapi-v2/3e-batch-mode/output2/models/package-info.java deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/3e-batch-mode/output2/models/package-info.java +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/3e-batch-mode/output2/package-info.java b/Samples/openapi-v2/3e-batch-mode/output2/package-info.java deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/3e-batch-mode/output2/package-info.java +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/3e-batch-mode/output3/generated/advisor.rb b/Samples/openapi-v2/3e-batch-mode/output3/generated/advisor.rb deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/3e-batch-mode/output3/generated/advisor.rb +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/3e-batch-mode/output3/generated/advisor/composed_cowbell_client.rb b/Samples/openapi-v2/3e-batch-mode/output3/generated/advisor/composed_cowbell_client.rb deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/3e-batch-mode/output3/generated/advisor/composed_cowbell_client.rb +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/3e-batch-mode/output3/generated/advisor/models/account_status.rb b/Samples/openapi-v2/3e-batch-mode/output3/generated/advisor/models/account_status.rb deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/3e-batch-mode/output3/generated/advisor/models/account_status.rb +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/3e-batch-mode/output3/generated/advisor/models/account_type.rb b/Samples/openapi-v2/3e-batch-mode/output3/generated/advisor/models/account_type.rb deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/3e-batch-mode/output3/generated/advisor/models/account_type.rb +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/3e-batch-mode/output3/generated/advisor/models/category.rb b/Samples/openapi-v2/3e-batch-mode/output3/generated/advisor/models/category.rb deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/3e-batch-mode/output3/generated/advisor/models/category.rb +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/3e-batch-mode/output3/generated/advisor/models/check_name_availability_result.rb b/Samples/openapi-v2/3e-batch-mode/output3/generated/advisor/models/check_name_availability_result.rb deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/3e-batch-mode/output3/generated/advisor/models/check_name_availability_result.rb +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/3e-batch-mode/output3/generated/advisor/models/custom_domain.rb b/Samples/openapi-v2/3e-batch-mode/output3/generated/advisor/models/custom_domain.rb deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/3e-batch-mode/output3/generated/advisor/models/custom_domain.rb +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/3e-batch-mode/output3/generated/advisor/models/endpoints.rb b/Samples/openapi-v2/3e-batch-mode/output3/generated/advisor/models/endpoints.rb deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/3e-batch-mode/output3/generated/advisor/models/endpoints.rb +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/3e-batch-mode/output3/generated/advisor/models/impact.rb b/Samples/openapi-v2/3e-batch-mode/output3/generated/advisor/models/impact.rb deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/3e-batch-mode/output3/generated/advisor/models/impact.rb +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/3e-batch-mode/output3/generated/advisor/models/operation_display_info.rb b/Samples/openapi-v2/3e-batch-mode/output3/generated/advisor/models/operation_display_info.rb deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/3e-batch-mode/output3/generated/advisor/models/operation_display_info.rb +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/3e-batch-mode/output3/generated/advisor/models/operation_entity.rb b/Samples/openapi-v2/3e-batch-mode/output3/generated/advisor/models/operation_entity.rb deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/3e-batch-mode/output3/generated/advisor/models/operation_entity.rb +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/3e-batch-mode/output3/generated/advisor/models/operation_entity_list_result.rb b/Samples/openapi-v2/3e-batch-mode/output3/generated/advisor/models/operation_entity_list_result.rb deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/3e-batch-mode/output3/generated/advisor/models/operation_entity_list_result.rb +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/3e-batch-mode/output3/generated/advisor/models/provisioning_state.rb b/Samples/openapi-v2/3e-batch-mode/output3/generated/advisor/models/provisioning_state.rb deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/3e-batch-mode/output3/generated/advisor/models/provisioning_state.rb +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/3e-batch-mode/output3/generated/advisor/models/reason.rb b/Samples/openapi-v2/3e-batch-mode/output3/generated/advisor/models/reason.rb deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/3e-batch-mode/output3/generated/advisor/models/reason.rb +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/3e-batch-mode/output3/generated/advisor/models/resource.rb b/Samples/openapi-v2/3e-batch-mode/output3/generated/advisor/models/resource.rb deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/3e-batch-mode/output3/generated/advisor/models/resource.rb +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/3e-batch-mode/output3/generated/advisor/models/resource_recommendation_base.rb b/Samples/openapi-v2/3e-batch-mode/output3/generated/advisor/models/resource_recommendation_base.rb deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/3e-batch-mode/output3/generated/advisor/models/resource_recommendation_base.rb +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/3e-batch-mode/output3/generated/advisor/models/resource_recommendation_base_list_result.rb b/Samples/openapi-v2/3e-batch-mode/output3/generated/advisor/models/resource_recommendation_base_list_result.rb deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/3e-batch-mode/output3/generated/advisor/models/resource_recommendation_base_list_result.rb +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/3e-batch-mode/output3/generated/advisor/models/risk.rb b/Samples/openapi-v2/3e-batch-mode/output3/generated/advisor/models/risk.rb deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/3e-batch-mode/output3/generated/advisor/models/risk.rb +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/3e-batch-mode/output3/generated/advisor/models/short_description.rb b/Samples/openapi-v2/3e-batch-mode/output3/generated/advisor/models/short_description.rb deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/3e-batch-mode/output3/generated/advisor/models/short_description.rb +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/3e-batch-mode/output3/generated/advisor/models/storage_account.rb b/Samples/openapi-v2/3e-batch-mode/output3/generated/advisor/models/storage_account.rb deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/3e-batch-mode/output3/generated/advisor/models/storage_account.rb +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/3e-batch-mode/output3/generated/advisor/models/storage_account_check_name_availability_parameters.rb b/Samples/openapi-v2/3e-batch-mode/output3/generated/advisor/models/storage_account_check_name_availability_parameters.rb deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/3e-batch-mode/output3/generated/advisor/models/storage_account_check_name_availability_parameters.rb +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/3e-batch-mode/output3/generated/advisor/models/storage_account_create_parameters.rb b/Samples/openapi-v2/3e-batch-mode/output3/generated/advisor/models/storage_account_create_parameters.rb deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/3e-batch-mode/output3/generated/advisor/models/storage_account_create_parameters.rb +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/3e-batch-mode/output3/generated/advisor/models/storage_account_keys.rb b/Samples/openapi-v2/3e-batch-mode/output3/generated/advisor/models/storage_account_keys.rb deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/3e-batch-mode/output3/generated/advisor/models/storage_account_keys.rb +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/3e-batch-mode/output3/generated/advisor/models/storage_account_list_result.rb b/Samples/openapi-v2/3e-batch-mode/output3/generated/advisor/models/storage_account_list_result.rb deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/3e-batch-mode/output3/generated/advisor/models/storage_account_list_result.rb +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/3e-batch-mode/output3/generated/advisor/models/storage_account_regenerate_key_parameters.rb b/Samples/openapi-v2/3e-batch-mode/output3/generated/advisor/models/storage_account_regenerate_key_parameters.rb deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/3e-batch-mode/output3/generated/advisor/models/storage_account_regenerate_key_parameters.rb +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/3e-batch-mode/output3/generated/advisor/models/storage_account_update_parameters.rb b/Samples/openapi-v2/3e-batch-mode/output3/generated/advisor/models/storage_account_update_parameters.rb deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/3e-batch-mode/output3/generated/advisor/models/storage_account_update_parameters.rb +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/3e-batch-mode/output3/generated/advisor/models/suppression_contract.rb b/Samples/openapi-v2/3e-batch-mode/output3/generated/advisor/models/suppression_contract.rb deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/3e-batch-mode/output3/generated/advisor/models/suppression_contract.rb +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/3e-batch-mode/output3/generated/advisor/models/suppression_contract_list_result.rb b/Samples/openapi-v2/3e-batch-mode/output3/generated/advisor/models/suppression_contract_list_result.rb deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/3e-batch-mode/output3/generated/advisor/models/suppression_contract_list_result.rb +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/3e-batch-mode/output3/generated/advisor/models/usage.rb b/Samples/openapi-v2/3e-batch-mode/output3/generated/advisor/models/usage.rb deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/3e-batch-mode/output3/generated/advisor/models/usage.rb +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/3e-batch-mode/output3/generated/advisor/models/usage_list_result.rb b/Samples/openapi-v2/3e-batch-mode/output3/generated/advisor/models/usage_list_result.rb deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/3e-batch-mode/output3/generated/advisor/models/usage_list_result.rb +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/3e-batch-mode/output3/generated/advisor/models/usage_name.rb b/Samples/openapi-v2/3e-batch-mode/output3/generated/advisor/models/usage_name.rb deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/3e-batch-mode/output3/generated/advisor/models/usage_name.rb +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/3e-batch-mode/output3/generated/advisor/models/usage_unit.rb b/Samples/openapi-v2/3e-batch-mode/output3/generated/advisor/models/usage_unit.rb deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/3e-batch-mode/output3/generated/advisor/models/usage_unit.rb +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/3e-batch-mode/output3/generated/advisor/module_definition.rb b/Samples/openapi-v2/3e-batch-mode/output3/generated/advisor/module_definition.rb deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/3e-batch-mode/output3/generated/advisor/module_definition.rb +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/3e-batch-mode/output3/generated/advisor/operations.rb b/Samples/openapi-v2/3e-batch-mode/output3/generated/advisor/operations.rb deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/3e-batch-mode/output3/generated/advisor/operations.rb +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/3e-batch-mode/output3/generated/advisor/recommendations.rb b/Samples/openapi-v2/3e-batch-mode/output3/generated/advisor/recommendations.rb deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/3e-batch-mode/output3/generated/advisor/recommendations.rb +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/3e-batch-mode/output3/generated/advisor/storage_accounts.rb b/Samples/openapi-v2/3e-batch-mode/output3/generated/advisor/storage_accounts.rb deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/3e-batch-mode/output3/generated/advisor/storage_accounts.rb +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/3e-batch-mode/output3/generated/advisor/suppressions.rb b/Samples/openapi-v2/3e-batch-mode/output3/generated/advisor/suppressions.rb deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/3e-batch-mode/output3/generated/advisor/suppressions.rb +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/3e-batch-mode/output3/generated/advisor/usage_operations.rb b/Samples/openapi-v2/3e-batch-mode/output3/generated/advisor/usage_operations.rb deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/3e-batch-mode/output3/generated/advisor/usage_operations.rb +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v2/3e-batch-mode/readme.md b/Samples/openapi-v2/3e-batch-mode/readme.md deleted file mode 100644 index 9a50796534..0000000000 --- a/Samples/openapi-v2/3e-batch-mode/readme.md +++ /dev/null @@ -1,44 +0,0 @@ -# Scenario: Batching AutoRest calls - -> see https://aka.ms/autorest - -## Common Settings - -The following settings will be used for every task of the batch. - -``` yaml -input-file: - - https://github.com/Azure/azure-rest-api-specs/blob/d374d03801e97737ddb32e01f20513e7b2bbd9c3/arm-storage/2015-06-15/swagger/storage.json -``` - -Batch tasks can also active guards: - -``` yaml $(activate-csharp) -csharp: - azure-arm: true -``` - -## Batch - -The following definition will cause AutoRest to be called multiple times, using the settings of each entry. - -``` yaml -batch: - - activate-csharp: true - output-folder: output1 - - java: true - output-folder: output2 - - ruby: true - # the following input will be added to the existing one - input-file: https://github.com/Azure/azure-rest-api-specs/blob/d374d03801e97737ddb32e01f20513e7b2bbd9c3/arm-advisor/2017-04-19/swagger/advisor.json - # have to override title since the 2 input files have conflicting ones - title: ComposedCowbellClient - # have to remove one of the `Resource` definitions and `securityDefinitions` since descriptions differ - directive: - from: advisor.json - where: $ - transform: |- - delete $.definitions.Resource; - delete $.securityDefinitions; - output-folder: output3 -``` \ No newline at end of file diff --git a/Samples/openapi-v2/3e-batch-mode/shell/code.txt b/Samples/openapi-v2/3e-batch-mode/shell/code.txt deleted file mode 100644 index c227083464..0000000000 --- a/Samples/openapi-v2/3e-batch-mode/shell/code.txt +++ /dev/null @@ -1 +0,0 @@ -0 \ No newline at end of file diff --git a/Samples/openapi-v2/3e-batch-mode/shell/stderr.txt b/Samples/openapi-v2/3e-batch-mode/shell/stderr.txt deleted file mode 100644 index 8b13789179..0000000000 --- a/Samples/openapi-v2/3e-batch-mode/shell/stderr.txt +++ /dev/null @@ -1 +0,0 @@ - diff --git a/Samples/openapi-v2/3e-batch-mode/shell/stdout.txt b/Samples/openapi-v2/3e-batch-mode/shell/stdout.txt deleted file mode 100644 index 7443c0650b..0000000000 --- a/Samples/openapi-v2/3e-batch-mode/shell/stdout.txt +++ /dev/null @@ -1,4 +0,0 @@ -https://aka.ms/autorest -Processing batch task - {"activate-csharp":true,"output-folder":"output1"} . -Processing batch task - {"java":true,"output-folder":"output2"} . -Processing batch task - {"ruby":true,"input-file":"https://github.com/Azure/azure-rest-api-specs/blob/d374d03801e97737ddb32e01f20513e7b2bbd9c3/arm-advisor/2017-04-19/swagger/advisor.json","title":"ComposedCowbellClient","directive":{"from":"advisor.json","where":"$","transform":"delete $.definitions.Resource;\ndelete $.securityDefinitions;"},"output-folder":"output3"} . diff --git a/Samples/openapi-v2/3f-example-generation/Azure.CSharp.Fluent/combined b/Samples/openapi-v2/3f-example-generation/Azure.CSharp.Fluent/combined deleted file mode 100644 index a3ad5cf056..0000000000 --- a/Samples/openapi-v2/3f-example-generation/Azure.CSharp.Fluent/combined +++ /dev/null @@ -1,774 +0,0 @@ -{ -// Client: NetworkManagementClient -// Group: LoadBalancers -// Method: Delete -// Example: Delete load balancer - - -await this.Client.LoadBalancers.DeleteAsync( - resourceGroupName: "rg1", - loadBalancerName: "lb"); -} - - -{ -// Client: NetworkManagementClient -// Group: LoadBalancers -// Method: Get -// Example: Get load balancer - - -var loadBalancerInner = await this.Client.LoadBalancers.GetAsync( - resourceGroupName: "rg1", - loadBalancerName: "lb"); -} - - -{ -// Client: NetworkManagementClient -// Group: LoadBalancers -// Method: CreateOrUpdate -// Example: Create load balancer - -var parameters = new LoadBalancerInner -{ - FrontendIPConfigurations = new List - { - new FrontendIPConfigurationInner - { - InboundNatRules = new List - { - new Microsoft.Rest.Azure.SubResource("/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/loadBalancers/lb/inboundNatRules/in-nat-rule") - }, - LoadBalancingRules = new List - { - new Microsoft.Rest.Azure.SubResource("/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/loadBalancers/lb/loadBalancingRules/rulelb") - }, - Subnet = new SubnetInner(), - Name = "fe-lb" - } - }, - BackendAddressPools = new List - { - new BackendAddressPoolInner - { - LoadBalancingRules = new List - { - new Microsoft.Rest.Azure.SubResource("/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/loadBalancers/lb/loadBalancingRules/rulelb") - }, - Name = "be-lb" - } - }, - LoadBalancingRules = new List - { - new LoadBalancingRuleInner - { - FrontendIPConfiguration = new Microsoft.Rest.Azure.SubResource("/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/loadBalancers/lb/frontendIPConfigurations/fe-lb"), - BackendAddressPool = new Microsoft.Rest.Azure.SubResource("/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/loadBalancers/lb/backendAddressPools/be-lb"), - Probe = new Microsoft.Rest.Azure.SubResource("/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/loadBalancers/lb/probes/probe-lb"), - Protocol = Tcp, - LoadDistribution = Default, - FrontendPort = 80, - BackendPort = 80, - IdleTimeoutInMinutes = 15, - EnableFloatingIP = true, - Name = "rulelb" - } - }, - Probes = new List - { - new ProbeInner - { - LoadBalancingRules = new List - { - new Microsoft.Rest.Azure.SubResource("/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/loadBalancers/lb/loadBalancingRules/rulelb") - }, - Protocol = Http, - Port = 80, - IntervalInSeconds = 15, - NumberOfProbes = 2, - RequestPath = "healthcheck.aspx", - Name = "probe-lb" - } - }, - InboundNatRules = new List - { - new InboundNatRuleInner - { - FrontendIPConfiguration = new Microsoft.Rest.Azure.SubResource("/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/loadBalancers/lb/frontendIPConfigurations/fe-lb"), - Protocol = Tcp, - FrontendPort = 3389, - BackendPort = 3389, - IdleTimeoutInMinutes = 15, - EnableFloatingIP = true, - Name = "in-nat-rule" - } - }, - InboundNatPools = new List(), - OutboundNatRules = new List() -}; - -var loadBalancerInner = await this.Client.LoadBalancers.CreateOrUpdateAsync( - resourceGroupName: "rg1", - loadBalancerName: "lb", - parameters: parameters); -} - - -{ -// Client: NetworkManagementClient -// Group: LoadBalancers -// Method: ListAll -// Example: List all load balancers - - -var page = await this.Client.LoadBalancers.ListAllAsync(); -} - - -{ -// Client: NetworkManagementClient -// Group: LoadBalancers -// Method: List -// Example: List load balancers in resource group - - -var page = await this.Client.LoadBalancers.ListAsync( - resourceGroupName: "rg1"); -} - - -{ -// Client: NetworkManagementClient -// Group: LoadBalancerBackendAddressPools -// Method: List -// Example: LoadBalancerBackendAddressPoolList - - -var page = await this.Client.LoadBalancerBackendAddressPools.ListAsync( - resourceGroupName: "testrg", - loadBalancerName: "lb"); -} - - -{ -// Client: NetworkManagementClient -// Group: LoadBalancerBackendAddressPools -// Method: Get -// Example: LoadBalancerBackendAddressPoolGet - - -var backendAddressPoolInner = await this.Client.LoadBalancerBackendAddressPools.GetAsync( - resourceGroupName: "testrg", - loadBalancerName: "lb", - backendAddressPoolName: "backend"); -} - - -{ -// Client: NetworkManagementClient -// Group: LoadBalancerFrontendIPConfigurations -// Method: List -// Example: LoadBalancerFrontendIPConfigurationList - - -var page = await this.Client.LoadBalancerFrontendIPConfigurations.ListAsync( - resourceGroupName: "testrg", - loadBalancerName: "lb"); -} - - -{ -// Client: NetworkManagementClient -// Group: LoadBalancerFrontendIPConfigurations -// Method: Get -// Example: LoadBalancerFrontendIPConfigurationGet - - -var frontendIPConfigurationInner = await this.Client.LoadBalancerFrontendIPConfigurations.GetAsync( - resourceGroupName: "testrg", - loadBalancerName: "lb", - frontendIPConfigurationName: "frontend"); -} - - -{ -// Client: NetworkManagementClient -// Group: InboundNatRules -// Method: List -// Example: InboundNatRuleList - - -var page = await this.Client.InboundNatRules.ListAsync( - resourceGroupName: "testrg", - loadBalancerName: "lb1"); -} - - -{ -// Client: NetworkManagementClient -// Group: InboundNatRules -// Method: Delete -// Example: InboundNatRuleDelete - - -await this.Client.InboundNatRules.DeleteAsync( - resourceGroupName: "testrg", - loadBalancerName: "lb1", - inboundNatRuleName: "natRule1.1"); -} - - -{ -// Client: NetworkManagementClient -// Group: InboundNatRules -// Method: Get -// Example: InboundNatRuleGet - - -var inboundNatRuleInner = await this.Client.InboundNatRules.GetAsync( - resourceGroupName: "testrg", - loadBalancerName: "lb1", - inboundNatRuleName: "natRule1.1"); -} - - -{ -// Client: NetworkManagementClient -// Group: InboundNatRules -// Method: CreateOrUpdate -// Example: InboundNatRuleCreate - -var inboundNatRuleParameters = new InboundNatRuleInner -{ - FrontendIPConfiguration = new Microsoft.Rest.Azure.SubResource("/subscriptions/subid/resourceGroups/testrg/providers/Microsoft.Network/loadBalancers/lb1/frontendIPConfigurations/ip1"), - Protocol = Tcp, - FrontendPort = 3390, - BackendPort = 3389, - IdleTimeoutInMinutes = 4, - EnableFloatingIP = false -}; - -var inboundNatRuleInner = await this.Client.InboundNatRules.CreateOrUpdateAsync( - resourceGroupName: "testrg", - loadBalancerName: "lb1", - inboundNatRuleName: "natRule1.1", - inboundNatRuleParameters: inboundNatRuleParameters); -} - - -{ -// Client: NetworkManagementClient -// Group: LoadBalancerLoadBalancingRules -// Method: List -// Example: LoadBalancerLoadBalancingRuleList - - -var page = await this.Client.LoadBalancerLoadBalancingRules.ListAsync( - resourceGroupName: "testrg", - loadBalancerName: "lb1"); -} - - -{ -// Client: NetworkManagementClient -// Group: LoadBalancerLoadBalancingRules -// Method: Get -// Example: LoadBalancerLoadBalancingRuleGet - - -var loadBalancingRuleInner = await this.Client.LoadBalancerLoadBalancingRules.GetAsync( - resourceGroupName: "testrg", - loadBalancerName: "lb1", - loadBalancingRuleName: "rule1"); -} - - -{ -// Client: NetworkManagementClient -// Group: LoadBalancerNetworkInterfaces -// Method: List -// Example: LoadBalancerNetworkInterfaceListVmss - - -var page = await this.Client.LoadBalancerNetworkInterfaces.ListAsync( - resourceGroupName: "testrg", - loadBalancerName: "lb"); -} - - -{ -// Client: NetworkManagementClient -// Group: LoadBalancerNetworkInterfaces -// Method: List -// Example: LoadBalancerNetworkInterfaceListSimple - - -var page = await this.Client.LoadBalancerNetworkInterfaces.ListAsync( - resourceGroupName: "testrg", - loadBalancerName: "lb"); -} - - -{ -// Client: NetworkManagementClient -// Group: LoadBalancerProbes -// Method: List -// Example: LoadBalancerProbeList - - -var page = await this.Client.LoadBalancerProbes.ListAsync( - resourceGroupName: "testrg", - loadBalancerName: "lb"); -} - - -{ -// Client: NetworkManagementClient -// Group: LoadBalancerProbes -// Method: Get -// Example: LoadBalancerProbeGet - - -var probeInner = await this.Client.LoadBalancerProbes.GetAsync( - resourceGroupName: "testrg", - loadBalancerName: "lb", - probeName: "probe1"); -} - - -{ -// Client: NetworkManagementClient -// Group: NetworkInterfaces -// Method: Delete -// Example: Delete network interface - - -await this.Client.NetworkInterfaces.DeleteAsync( - resourceGroupName: "rg1", - networkInterfaceName: "test-nic"); -} - - -{ -// Client: NetworkManagementClient -// Group: NetworkInterfaces -// Method: Get -// Example: Get network interface - - -var networkInterfaceInner = await this.Client.NetworkInterfaces.GetAsync( - resourceGroupName: "rg1", - networkInterfaceName: "test-nic"); -} - - -{ -// Client: NetworkManagementClient -// Group: NetworkInterfaces -// Method: CreateOrUpdate -// Example: Create network interface - -var parameters = new NetworkInterfaceInner -{ - IpConfigurations = new List - { - new NetworkInterfaceIPConfigurationInner - { - Subnet = new SubnetInner(), - PublicIPAddress = new PublicIPAddressInner(), - Name = "ipconfig1" - } - }, - EnableAcceleratedNetworking = true -}; - -var networkInterfaceInner = await this.Client.NetworkInterfaces.CreateOrUpdateAsync( - resourceGroupName: "rg1", - networkInterfaceName: "test-nic", - parameters: parameters); -} - - -{ -// Client: NetworkManagementClient -// Group: NetworkInterfaces -// Method: ListAll -// Example: List all network interfaces - - -var page = await this.Client.NetworkInterfaces.ListAllAsync(); -} - - -{ -// Client: NetworkManagementClient -// Group: NetworkInterfaces -// Method: List -// Example: List network interfaces in resource group - - -var page = await this.Client.NetworkInterfaces.ListAsync( - resourceGroupName: "rg1"); -} - - -{ -// Client: NetworkManagementClient -// Group: NetworkInterfaces -// Method: GetEffectiveRouteTable -// Example: Show network interface effective route tables - - -var page = await this.Client.NetworkInterfaces.GetEffectiveRouteTableAsync( - resourceGroupName: "rg1", - networkInterfaceName: "nic1"); -} - - -{ -// Client: NetworkManagementClient -// Group: NetworkInterfaces -// Method: ListEffectiveNetworkSecurityGroups -// Example: List network interface effective network security groups - - -var page = await this.Client.NetworkInterfaces.ListEffectiveNetworkSecurityGroupsAsync( - resourceGroupName: "rg1", - networkInterfaceName: "nic1"); -} - - -{ -// Client: NetworkManagementClient -// Group: NetworkInterfaceIPConfigurations -// Method: List -// Example: NetworkInterfaceIPConfigurationList - - -var page = await this.Client.NetworkInterfaceIPConfigurations.ListAsync( - resourceGroupName: "testrg", - networkInterfaceName: "nic1"); -} - - -{ -// Client: NetworkManagementClient -// Group: NetworkInterfaceIPConfigurations -// Method: Get -// Example: NetworkInterfaceIPConfigurationGet - - -var networkInterfaceIPConfigurationInner = await this.Client.NetworkInterfaceIPConfigurations.GetAsync( - resourceGroupName: "testrg", - networkInterfaceName: "mynic", - ipConfigurationName: "ipconfig1"); -} - - -{ -// Client: NetworkManagementClient -// Group: NetworkInterfaceLoadBalancers -// Method: List -// Example: NetworkInterfaceLoadBalancerList - - -var page = await this.Client.NetworkInterfaceLoadBalancers.ListAsync( - resourceGroupName: "testrg", - networkInterfaceName: "nic1"); -} - - -{ -// Client: NetworkManagementClient -// Group: NetworkSecurityGroups -// Method: Delete -// Example: Delete network security group - - -await this.Client.NetworkSecurityGroups.DeleteAsync( - resourceGroupName: "rg1", - networkSecurityGroupName: "testnsg"); -} - - -{ -// Client: NetworkManagementClient -// Group: NetworkSecurityGroups -// Method: Get -// Example: Get network security group - - -var networkSecurityGroupInner = await this.Client.NetworkSecurityGroups.GetAsync( - resourceGroupName: "rg1", - networkSecurityGroupName: "testnsg"); -} - - -{ -// Client: NetworkManagementClient -// Group: NetworkSecurityGroups -// Method: CreateOrUpdate -// Example: Create network security group - -var parameters = new NetworkSecurityGroupInner(); - -var networkSecurityGroupInner = await this.Client.NetworkSecurityGroups.CreateOrUpdateAsync( - resourceGroupName: "rg1", - networkSecurityGroupName: "testnsg", - parameters: parameters); -} - - -{ -// Client: NetworkManagementClient -// Group: NetworkSecurityGroups -// Method: CreateOrUpdate -// Example: Create network security group with rule - -var parameters = new NetworkSecurityGroupInner -{ - SecurityRules = new List - { - new SecurityRuleInner - { - Protocol = *, - SourcePortRange = "*", - DestinationPortRange = "80", - SourceAddressPrefix = "*", - DestinationAddressPrefix = "*", - Access = Allow, - Priority = 130, - Direction = Inbound, - Name = "rule1" - } - } -}; - -var networkSecurityGroupInner = await this.Client.NetworkSecurityGroups.CreateOrUpdateAsync( - resourceGroupName: "rg1", - networkSecurityGroupName: "testnsg", - parameters: parameters); -} - - -{ -// Client: NetworkManagementClient -// Group: NetworkSecurityGroups -// Method: ListAll -// Example: List all network security groups - - -var page = await this.Client.NetworkSecurityGroups.ListAllAsync(); -} - - -{ -// Client: NetworkManagementClient -// Group: NetworkSecurityGroups -// Method: List -// Example: List network security groups in resource group - - -var page = await this.Client.NetworkSecurityGroups.ListAsync( - resourceGroupName: "rg1"); -} - - -{ -// Client: NetworkManagementClient -// Group: SecurityRules -// Method: Delete -// Example: Delete network security rule from network security group - - -await this.Client.SecurityRules.DeleteAsync( - resourceGroupName: "rg1", - networkSecurityGroupName: "testnsg", - securityRuleName: "rule1"); -} - - -{ -// Client: NetworkManagementClient -// Group: SecurityRules -// Method: Get -// Example: Get network security rule in network security group - - -var securityRuleInner = await this.Client.SecurityRules.GetAsync( - resourceGroupName: "rg1", - networkSecurityGroupName: "testnsg", - securityRuleName: "rule1"); -} - - -{ -// Client: NetworkManagementClient -// Group: SecurityRules -// Method: CreateOrUpdate -// Example: Create security rule - -var securityRuleParameters = new SecurityRuleInner -{ - Protocol = *, - SourcePortRange = "*", - DestinationPortRange = "8080", - SourceAddressPrefix = "10.0.0.0/8", - DestinationAddressPrefix = "11.0.0.0/8", - Access = Deny, - Priority = 100, - Direction = Outbound -}; - -var securityRuleInner = await this.Client.SecurityRules.CreateOrUpdateAsync( - resourceGroupName: "rg1", - networkSecurityGroupName: "testnsg", - securityRuleName: "rule1", - securityRuleParameters: securityRuleParameters); -} - - -{ -// Client: NetworkManagementClient -// Group: SecurityRules -// Method: List -// Example: List network security rules in network security group - - -var page = await this.Client.SecurityRules.ListAsync( - resourceGroupName: "rg1", - networkSecurityGroupName: "testnsg"); -} - - -{ -// Client: NetworkManagementClient -// Group: DefaultSecurityRules -// Method: List -// Example: DefaultSecurityRuleList - - -var page = await this.Client.DefaultSecurityRules.ListAsync( - resourceGroupName: "testrg", - networkSecurityGroupName: "nsg1"); -} - - -{ -// Client: NetworkManagementClient -// Group: DefaultSecurityRules -// Method: Get -// Example: DefaultSecurityRuleGet - - -var securityRuleInner = await this.Client.DefaultSecurityRules.GetAsync( - resourceGroupName: "testrg", - networkSecurityGroupName: "nsg1", - defaultSecurityRuleName: "AllowVnetInBound"); -} - - -{ -// Client: NetworkManagementClient -// Group: PublicIPAddresses -// Method: Delete -// Example: Delete public IP address - - -await this.Client.PublicIPAddresses.DeleteAsync( - resourceGroupName: "rg1", - publicIpAddressName: "test-ip"); -} - - -{ -// Client: NetworkManagementClient -// Group: PublicIPAddresses -// Method: Get -// Example: Get public IP address - - -var publicIPAddressInner = await this.Client.PublicIPAddresses.GetAsync( - resourceGroupName: "rg1", - publicIpAddressName: "testDNS-ip"); -} - - -{ -// Client: NetworkManagementClient -// Group: PublicIPAddresses -// Method: CreateOrUpdate -// Example: Create public IP address defaults - -var parameters = new PublicIPAddressInner(); - -var publicIPAddressInner = await this.Client.PublicIPAddresses.CreateOrUpdateAsync( - resourceGroupName: "rg1", - publicIpAddressName: "test-ip", - parameters: parameters); -} - - -{ -// Client: NetworkManagementClient -// Group: PublicIPAddresses -// Method: CreateOrUpdate -// Example: Create public IP address allocation method - -var parameters = new PublicIPAddressInner -{ - PublicIPAllocationMethod = Static, - PublicIPAddressVersion = IPv4, - IdleTimeoutInMinutes = 10 -}; - -var publicIPAddressInner = await this.Client.PublicIPAddresses.CreateOrUpdateAsync( - resourceGroupName: "rg1", - publicIpAddressName: "test-ip", - parameters: parameters); -} - - -{ -// Client: NetworkManagementClient -// Group: PublicIPAddresses -// Method: CreateOrUpdate -// Example: Create public IP address DNS - -var parameters = new PublicIPAddressInner -{ - DnsSettings = new PublicIPAddressDnsSettings - { - DomainNameLabel = "dnslbl" - } -}; - -var publicIPAddressInner = await this.Client.PublicIPAddresses.CreateOrUpdateAsync( - resourceGroupName: "rg1", - publicIpAddressName: "test-ip", - parameters: parameters); -} - - -{ -// Client: NetworkManagementClient -// Group: PublicIPAddresses -// Method: ListAll -// Example: List all public IP addresses - - -var page = await this.Client.PublicIPAddresses.ListAllAsync(); -} - - -{ -// Client: NetworkManagementClient -// Group: PublicIPAddresses -// Method: List -// Example: List resource group public IP addresses - - -var page = await this.Client.PublicIPAddresses.ListAsync( - resourceGroupName: "rg1"); -} diff --git a/Samples/openapi-v2/3f-example-generation/Azure.CSharp/combined b/Samples/openapi-v2/3f-example-generation/Azure.CSharp/combined deleted file mode 100644 index 9a974011d4..0000000000 --- a/Samples/openapi-v2/3f-example-generation/Azure.CSharp/combined +++ /dev/null @@ -1,774 +0,0 @@ -{ -// Client: NetworkManagementClient -// Group: LoadBalancers -// Method: Delete -// Example: Delete load balancer - - -await this.Client.LoadBalancers.DeleteAsync( - resourceGroupName: "rg1", - loadBalancerName: "lb"); -} - - -{ -// Client: NetworkManagementClient -// Group: LoadBalancers -// Method: Get -// Example: Get load balancer - - -var loadBalancer = await this.Client.LoadBalancers.GetAsync( - resourceGroupName: "rg1", - loadBalancerName: "lb"); -} - - -{ -// Client: NetworkManagementClient -// Group: LoadBalancers -// Method: CreateOrUpdate -// Example: Create load balancer - -var parameters = new LoadBalancer -{ - FrontendIPConfigurations = new List - { - new FrontendIPConfiguration - { - InboundNatRules = new List - { - new SubResource("/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/loadBalancers/lb/inboundNatRules/in-nat-rule") - }, - LoadBalancingRules = new List - { - new SubResource("/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/loadBalancers/lb/loadBalancingRules/rulelb") - }, - Subnet = new Subnet(), - Name = "fe-lb" - } - }, - BackendAddressPools = new List - { - new BackendAddressPool - { - LoadBalancingRules = new List - { - new SubResource("/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/loadBalancers/lb/loadBalancingRules/rulelb") - }, - Name = "be-lb" - } - }, - LoadBalancingRules = new List - { - new LoadBalancingRule - { - FrontendIPConfiguration = new SubResource("/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/loadBalancers/lb/frontendIPConfigurations/fe-lb"), - BackendAddressPool = new SubResource("/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/loadBalancers/lb/backendAddressPools/be-lb"), - Probe = new SubResource("/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/loadBalancers/lb/probes/probe-lb"), - Protocol = Tcp, - LoadDistribution = Default, - FrontendPort = 80, - BackendPort = 80, - IdleTimeoutInMinutes = 15, - EnableFloatingIP = true, - Name = "rulelb" - } - }, - Probes = new List - { - new Probe - { - LoadBalancingRules = new List - { - new SubResource("/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/loadBalancers/lb/loadBalancingRules/rulelb") - }, - Protocol = Http, - Port = 80, - IntervalInSeconds = 15, - NumberOfProbes = 2, - RequestPath = "healthcheck.aspx", - Name = "probe-lb" - } - }, - InboundNatRules = new List - { - new InboundNatRule - { - FrontendIPConfiguration = new SubResource("/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/loadBalancers/lb/frontendIPConfigurations/fe-lb"), - Protocol = Tcp, - FrontendPort = 3389, - BackendPort = 3389, - IdleTimeoutInMinutes = 15, - EnableFloatingIP = true, - Name = "in-nat-rule" - } - }, - InboundNatPools = new List(), - OutboundNatRules = new List() -}; - -var loadBalancer = await this.Client.LoadBalancers.CreateOrUpdateAsync( - resourceGroupName: "rg1", - loadBalancerName: "lb", - parameters: parameters); -} - - -{ -// Client: NetworkManagementClient -// Group: LoadBalancers -// Method: ListAll -// Example: List all load balancers - - -var page = await this.Client.LoadBalancers.ListAllAsync(); -} - - -{ -// Client: NetworkManagementClient -// Group: LoadBalancers -// Method: List -// Example: List load balancers in resource group - - -var page = await this.Client.LoadBalancers.ListAsync( - resourceGroupName: "rg1"); -} - - -{ -// Client: NetworkManagementClient -// Group: LoadBalancerBackendAddressPools -// Method: List -// Example: LoadBalancerBackendAddressPoolList - - -var page = await this.Client.LoadBalancerBackendAddressPools.ListAsync( - resourceGroupName: "testrg", - loadBalancerName: "lb"); -} - - -{ -// Client: NetworkManagementClient -// Group: LoadBalancerBackendAddressPools -// Method: Get -// Example: LoadBalancerBackendAddressPoolGet - - -var backendAddressPool = await this.Client.LoadBalancerBackendAddressPools.GetAsync( - resourceGroupName: "testrg", - loadBalancerName: "lb", - backendAddressPoolName: "backend"); -} - - -{ -// Client: NetworkManagementClient -// Group: LoadBalancerFrontendIPConfigurations -// Method: List -// Example: LoadBalancerFrontendIPConfigurationList - - -var page = await this.Client.LoadBalancerFrontendIPConfigurations.ListAsync( - resourceGroupName: "testrg", - loadBalancerName: "lb"); -} - - -{ -// Client: NetworkManagementClient -// Group: LoadBalancerFrontendIPConfigurations -// Method: Get -// Example: LoadBalancerFrontendIPConfigurationGet - - -var frontendIPConfiguration = await this.Client.LoadBalancerFrontendIPConfigurations.GetAsync( - resourceGroupName: "testrg", - loadBalancerName: "lb", - frontendIPConfigurationName: "frontend"); -} - - -{ -// Client: NetworkManagementClient -// Group: InboundNatRules -// Method: List -// Example: InboundNatRuleList - - -var page = await this.Client.InboundNatRules.ListAsync( - resourceGroupName: "testrg", - loadBalancerName: "lb1"); -} - - -{ -// Client: NetworkManagementClient -// Group: InboundNatRules -// Method: Delete -// Example: InboundNatRuleDelete - - -await this.Client.InboundNatRules.DeleteAsync( - resourceGroupName: "testrg", - loadBalancerName: "lb1", - inboundNatRuleName: "natRule1.1"); -} - - -{ -// Client: NetworkManagementClient -// Group: InboundNatRules -// Method: Get -// Example: InboundNatRuleGet - - -var inboundNatRule = await this.Client.InboundNatRules.GetAsync( - resourceGroupName: "testrg", - loadBalancerName: "lb1", - inboundNatRuleName: "natRule1.1"); -} - - -{ -// Client: NetworkManagementClient -// Group: InboundNatRules -// Method: CreateOrUpdate -// Example: InboundNatRuleCreate - -var inboundNatRuleParameters = new InboundNatRule -{ - FrontendIPConfiguration = new SubResource("/subscriptions/subid/resourceGroups/testrg/providers/Microsoft.Network/loadBalancers/lb1/frontendIPConfigurations/ip1"), - Protocol = Tcp, - FrontendPort = 3390, - BackendPort = 3389, - IdleTimeoutInMinutes = 4, - EnableFloatingIP = false -}; - -var inboundNatRule = await this.Client.InboundNatRules.CreateOrUpdateAsync( - resourceGroupName: "testrg", - loadBalancerName: "lb1", - inboundNatRuleName: "natRule1.1", - inboundNatRuleParameters: inboundNatRuleParameters); -} - - -{ -// Client: NetworkManagementClient -// Group: LoadBalancerLoadBalancingRules -// Method: List -// Example: LoadBalancerLoadBalancingRuleList - - -var page = await this.Client.LoadBalancerLoadBalancingRules.ListAsync( - resourceGroupName: "testrg", - loadBalancerName: "lb1"); -} - - -{ -// Client: NetworkManagementClient -// Group: LoadBalancerLoadBalancingRules -// Method: Get -// Example: LoadBalancerLoadBalancingRuleGet - - -var loadBalancingRule = await this.Client.LoadBalancerLoadBalancingRules.GetAsync( - resourceGroupName: "testrg", - loadBalancerName: "lb1", - loadBalancingRuleName: "rule1"); -} - - -{ -// Client: NetworkManagementClient -// Group: LoadBalancerNetworkInterfaces -// Method: List -// Example: LoadBalancerNetworkInterfaceListVmss - - -var page = await this.Client.LoadBalancerNetworkInterfaces.ListAsync( - resourceGroupName: "testrg", - loadBalancerName: "lb"); -} - - -{ -// Client: NetworkManagementClient -// Group: LoadBalancerNetworkInterfaces -// Method: List -// Example: LoadBalancerNetworkInterfaceListSimple - - -var page = await this.Client.LoadBalancerNetworkInterfaces.ListAsync( - resourceGroupName: "testrg", - loadBalancerName: "lb"); -} - - -{ -// Client: NetworkManagementClient -// Group: LoadBalancerProbes -// Method: List -// Example: LoadBalancerProbeList - - -var page = await this.Client.LoadBalancerProbes.ListAsync( - resourceGroupName: "testrg", - loadBalancerName: "lb"); -} - - -{ -// Client: NetworkManagementClient -// Group: LoadBalancerProbes -// Method: Get -// Example: LoadBalancerProbeGet - - -var probe = await this.Client.LoadBalancerProbes.GetAsync( - resourceGroupName: "testrg", - loadBalancerName: "lb", - probeName: "probe1"); -} - - -{ -// Client: NetworkManagementClient -// Group: NetworkInterfaces -// Method: Delete -// Example: Delete network interface - - -await this.Client.NetworkInterfaces.DeleteAsync( - resourceGroupName: "rg1", - networkInterfaceName: "test-nic"); -} - - -{ -// Client: NetworkManagementClient -// Group: NetworkInterfaces -// Method: Get -// Example: Get network interface - - -var networkInterface = await this.Client.NetworkInterfaces.GetAsync( - resourceGroupName: "rg1", - networkInterfaceName: "test-nic"); -} - - -{ -// Client: NetworkManagementClient -// Group: NetworkInterfaces -// Method: CreateOrUpdate -// Example: Create network interface - -var parameters = new NetworkInterface -{ - IpConfigurations = new List - { - new NetworkInterfaceIPConfiguration - { - Subnet = new Subnet(), - PublicIPAddress = new PublicIPAddress(), - Name = "ipconfig1" - } - }, - EnableAcceleratedNetworking = true -}; - -var networkInterface = await this.Client.NetworkInterfaces.CreateOrUpdateAsync( - resourceGroupName: "rg1", - networkInterfaceName: "test-nic", - parameters: parameters); -} - - -{ -// Client: NetworkManagementClient -// Group: NetworkInterfaces -// Method: ListAll -// Example: List all network interfaces - - -var page = await this.Client.NetworkInterfaces.ListAllAsync(); -} - - -{ -// Client: NetworkManagementClient -// Group: NetworkInterfaces -// Method: List -// Example: List network interfaces in resource group - - -var page = await this.Client.NetworkInterfaces.ListAsync( - resourceGroupName: "rg1"); -} - - -{ -// Client: NetworkManagementClient -// Group: NetworkInterfaces -// Method: GetEffectiveRouteTable -// Example: Show network interface effective route tables - - -var page = await this.Client.NetworkInterfaces.GetEffectiveRouteTableAsync( - resourceGroupName: "rg1", - networkInterfaceName: "nic1"); -} - - -{ -// Client: NetworkManagementClient -// Group: NetworkInterfaces -// Method: ListEffectiveNetworkSecurityGroups -// Example: List network interface effective network security groups - - -var page = await this.Client.NetworkInterfaces.ListEffectiveNetworkSecurityGroupsAsync( - resourceGroupName: "rg1", - networkInterfaceName: "nic1"); -} - - -{ -// Client: NetworkManagementClient -// Group: NetworkInterfaceIPConfigurations -// Method: List -// Example: NetworkInterfaceIPConfigurationList - - -var page = await this.Client.NetworkInterfaceIPConfigurations.ListAsync( - resourceGroupName: "testrg", - networkInterfaceName: "nic1"); -} - - -{ -// Client: NetworkManagementClient -// Group: NetworkInterfaceIPConfigurations -// Method: Get -// Example: NetworkInterfaceIPConfigurationGet - - -var networkInterfaceIPConfiguration = await this.Client.NetworkInterfaceIPConfigurations.GetAsync( - resourceGroupName: "testrg", - networkInterfaceName: "mynic", - ipConfigurationName: "ipconfig1"); -} - - -{ -// Client: NetworkManagementClient -// Group: NetworkInterfaceLoadBalancers -// Method: List -// Example: NetworkInterfaceLoadBalancerList - - -var page = await this.Client.NetworkInterfaceLoadBalancers.ListAsync( - resourceGroupName: "testrg", - networkInterfaceName: "nic1"); -} - - -{ -// Client: NetworkManagementClient -// Group: NetworkSecurityGroups -// Method: Delete -// Example: Delete network security group - - -await this.Client.NetworkSecurityGroups.DeleteAsync( - resourceGroupName: "rg1", - networkSecurityGroupName: "testnsg"); -} - - -{ -// Client: NetworkManagementClient -// Group: NetworkSecurityGroups -// Method: Get -// Example: Get network security group - - -var networkSecurityGroup = await this.Client.NetworkSecurityGroups.GetAsync( - resourceGroupName: "rg1", - networkSecurityGroupName: "testnsg"); -} - - -{ -// Client: NetworkManagementClient -// Group: NetworkSecurityGroups -// Method: CreateOrUpdate -// Example: Create network security group - -var parameters = new NetworkSecurityGroup(); - -var networkSecurityGroup = await this.Client.NetworkSecurityGroups.CreateOrUpdateAsync( - resourceGroupName: "rg1", - networkSecurityGroupName: "testnsg", - parameters: parameters); -} - - -{ -// Client: NetworkManagementClient -// Group: NetworkSecurityGroups -// Method: CreateOrUpdate -// Example: Create network security group with rule - -var parameters = new NetworkSecurityGroup -{ - SecurityRules = new List - { - new SecurityRule - { - Protocol = *, - SourcePortRange = "*", - DestinationPortRange = "80", - SourceAddressPrefix = "*", - DestinationAddressPrefix = "*", - Access = Allow, - Priority = 130, - Direction = Inbound, - Name = "rule1" - } - } -}; - -var networkSecurityGroup = await this.Client.NetworkSecurityGroups.CreateOrUpdateAsync( - resourceGroupName: "rg1", - networkSecurityGroupName: "testnsg", - parameters: parameters); -} - - -{ -// Client: NetworkManagementClient -// Group: NetworkSecurityGroups -// Method: ListAll -// Example: List all network security groups - - -var page = await this.Client.NetworkSecurityGroups.ListAllAsync(); -} - - -{ -// Client: NetworkManagementClient -// Group: NetworkSecurityGroups -// Method: List -// Example: List network security groups in resource group - - -var page = await this.Client.NetworkSecurityGroups.ListAsync( - resourceGroupName: "rg1"); -} - - -{ -// Client: NetworkManagementClient -// Group: SecurityRules -// Method: Delete -// Example: Delete network security rule from network security group - - -await this.Client.SecurityRules.DeleteAsync( - resourceGroupName: "rg1", - networkSecurityGroupName: "testnsg", - securityRuleName: "rule1"); -} - - -{ -// Client: NetworkManagementClient -// Group: SecurityRules -// Method: Get -// Example: Get network security rule in network security group - - -var securityRule = await this.Client.SecurityRules.GetAsync( - resourceGroupName: "rg1", - networkSecurityGroupName: "testnsg", - securityRuleName: "rule1"); -} - - -{ -// Client: NetworkManagementClient -// Group: SecurityRules -// Method: CreateOrUpdate -// Example: Create security rule - -var securityRuleParameters = new SecurityRule -{ - Protocol = *, - SourcePortRange = "*", - DestinationPortRange = "8080", - SourceAddressPrefix = "10.0.0.0/8", - DestinationAddressPrefix = "11.0.0.0/8", - Access = Deny, - Priority = 100, - Direction = Outbound -}; - -var securityRule = await this.Client.SecurityRules.CreateOrUpdateAsync( - resourceGroupName: "rg1", - networkSecurityGroupName: "testnsg", - securityRuleName: "rule1", - securityRuleParameters: securityRuleParameters); -} - - -{ -// Client: NetworkManagementClient -// Group: SecurityRules -// Method: List -// Example: List network security rules in network security group - - -var page = await this.Client.SecurityRules.ListAsync( - resourceGroupName: "rg1", - networkSecurityGroupName: "testnsg"); -} - - -{ -// Client: NetworkManagementClient -// Group: DefaultSecurityRules -// Method: List -// Example: DefaultSecurityRuleList - - -var page = await this.Client.DefaultSecurityRules.ListAsync( - resourceGroupName: "testrg", - networkSecurityGroupName: "nsg1"); -} - - -{ -// Client: NetworkManagementClient -// Group: DefaultSecurityRules -// Method: Get -// Example: DefaultSecurityRuleGet - - -var securityRule = await this.Client.DefaultSecurityRules.GetAsync( - resourceGroupName: "testrg", - networkSecurityGroupName: "nsg1", - defaultSecurityRuleName: "AllowVnetInBound"); -} - - -{ -// Client: NetworkManagementClient -// Group: PublicIPAddresses -// Method: Delete -// Example: Delete public IP address - - -await this.Client.PublicIPAddresses.DeleteAsync( - resourceGroupName: "rg1", - publicIpAddressName: "test-ip"); -} - - -{ -// Client: NetworkManagementClient -// Group: PublicIPAddresses -// Method: Get -// Example: Get public IP address - - -var publicIPAddress = await this.Client.PublicIPAddresses.GetAsync( - resourceGroupName: "rg1", - publicIpAddressName: "testDNS-ip"); -} - - -{ -// Client: NetworkManagementClient -// Group: PublicIPAddresses -// Method: CreateOrUpdate -// Example: Create public IP address defaults - -var parameters = new PublicIPAddress(); - -var publicIPAddress = await this.Client.PublicIPAddresses.CreateOrUpdateAsync( - resourceGroupName: "rg1", - publicIpAddressName: "test-ip", - parameters: parameters); -} - - -{ -// Client: NetworkManagementClient -// Group: PublicIPAddresses -// Method: CreateOrUpdate -// Example: Create public IP address allocation method - -var parameters = new PublicIPAddress -{ - PublicIPAllocationMethod = Static, - PublicIPAddressVersion = IPv4, - IdleTimeoutInMinutes = 10 -}; - -var publicIPAddress = await this.Client.PublicIPAddresses.CreateOrUpdateAsync( - resourceGroupName: "rg1", - publicIpAddressName: "test-ip", - parameters: parameters); -} - - -{ -// Client: NetworkManagementClient -// Group: PublicIPAddresses -// Method: CreateOrUpdate -// Example: Create public IP address DNS - -var parameters = new PublicIPAddress -{ - DnsSettings = new PublicIPAddressDnsSettings - { - DomainNameLabel = "dnslbl" - } -}; - -var publicIPAddress = await this.Client.PublicIPAddresses.CreateOrUpdateAsync( - resourceGroupName: "rg1", - publicIpAddressName: "test-ip", - parameters: parameters); -} - - -{ -// Client: NetworkManagementClient -// Group: PublicIPAddresses -// Method: ListAll -// Example: List all public IP addresses - - -var page = await this.Client.PublicIPAddresses.ListAllAsync(); -} - - -{ -// Client: NetworkManagementClient -// Group: PublicIPAddresses -// Method: List -// Example: List resource group public IP addresses - - -var page = await this.Client.PublicIPAddresses.ListAsync( - resourceGroupName: "rg1"); -} diff --git a/Samples/openapi-v2/3f-example-generation/CSharp/combined b/Samples/openapi-v2/3f-example-generation/CSharp/combined deleted file mode 100644 index 7079da02e1..0000000000 --- a/Samples/openapi-v2/3f-example-generation/CSharp/combined +++ /dev/null @@ -1,774 +0,0 @@ -{ -// Client: NetworkManagementClient -// Group: LoadBalancers -// Method: Delete -// Example: Delete load balancer - - -await this.Client.LoadBalancers.DeleteAsync( - resourceGroupName: "rg1", - loadBalancerName: "lb"); -} - - -{ -// Client: NetworkManagementClient -// Group: LoadBalancers -// Method: Get -// Example: Get load balancer - - -var loadBalancer = await this.Client.LoadBalancers.GetAsync( - resourceGroupName: "rg1", - loadBalancerName: "lb"); -} - - -{ -// Client: NetworkManagementClient -// Group: LoadBalancers -// Method: CreateOrUpdate -// Example: Create load balancer - -var parameters = new LoadBalancer -{ - FrontendIPConfigurations = new List - { - new FrontendIPConfiguration - { - InboundNatRulesProperty = new List - { - new SubResource("/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/loadBalancers/lb/inboundNatRules/in-nat-rule") - }, - LoadBalancingRules = new List - { - new SubResource("/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/loadBalancers/lb/loadBalancingRules/rulelb") - }, - Subnet = new Subnet(), - Name = "fe-lb" - } - }, - BackendAddressPools = new List - { - new BackendAddressPool - { - LoadBalancingRules = new List - { - new SubResource("/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/loadBalancers/lb/loadBalancingRules/rulelb") - }, - Name = "be-lb" - } - }, - LoadBalancingRules = new List - { - new LoadBalancingRule - { - FrontendIPConfiguration = new SubResource("/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/loadBalancers/lb/frontendIPConfigurations/fe-lb"), - BackendAddressPool = new SubResource("/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/loadBalancers/lb/backendAddressPools/be-lb"), - Probe = new SubResource("/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/loadBalancers/lb/probes/probe-lb"), - Protocol = Tcp, - LoadDistribution = Default, - FrontendPort = 80, - BackendPort = 80, - IdleTimeoutInMinutes = 15, - EnableFloatingIP = true, - Name = "rulelb" - } - }, - Probes = new List - { - new Probe - { - LoadBalancingRules = new List - { - new SubResource("/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/loadBalancers/lb/loadBalancingRules/rulelb") - }, - Protocol = Http, - Port = 80, - IntervalInSeconds = 15, - NumberOfProbes = 2, - RequestPath = "healthcheck.aspx", - Name = "probe-lb" - } - }, - InboundNatRulesProperty = new List - { - new InboundNatRule - { - FrontendIPConfiguration = new SubResource("/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/loadBalancers/lb/frontendIPConfigurations/fe-lb"), - Protocol = Tcp, - FrontendPort = 3389, - BackendPort = 3389, - IdleTimeoutInMinutes = 15, - EnableFloatingIP = true, - Name = "in-nat-rule" - } - }, - InboundNatPools = new List(), - OutboundNatRules = new List() -}; - -var loadBalancer = await this.Client.LoadBalancers.CreateOrUpdateAsync( - resourceGroupName: "rg1", - loadBalancerName: "lb", - parameters: parameters); -} - - -{ -// Client: NetworkManagementClient -// Group: LoadBalancers -// Method: ListAll -// Example: List all load balancers - - -var loadBalancerListResult = await this.Client.LoadBalancers.ListAllAsync(); -} - - -{ -// Client: NetworkManagementClient -// Group: LoadBalancers -// Method: List -// Example: List load balancers in resource group - - -var loadBalancerListResult = await this.Client.LoadBalancers.ListAsync( - resourceGroupName: "rg1"); -} - - -{ -// Client: NetworkManagementClient -// Group: LoadBalancerBackendAddressPools -// Method: List -// Example: LoadBalancerBackendAddressPoolList - - -var loadBalancerBackendAddressPoolListResult = await this.Client.LoadBalancerBackendAddressPools.ListAsync( - resourceGroupName: "testrg", - loadBalancerName: "lb"); -} - - -{ -// Client: NetworkManagementClient -// Group: LoadBalancerBackendAddressPools -// Method: Get -// Example: LoadBalancerBackendAddressPoolGet - - -var backendAddressPool = await this.Client.LoadBalancerBackendAddressPools.GetAsync( - resourceGroupName: "testrg", - loadBalancerName: "lb", - backendAddressPoolName: "backend"); -} - - -{ -// Client: NetworkManagementClient -// Group: LoadBalancerFrontendIPConfigurations -// Method: List -// Example: LoadBalancerFrontendIPConfigurationList - - -var loadBalancerFrontendIPConfigurationListResult = await this.Client.LoadBalancerFrontendIPConfigurations.ListAsync( - resourceGroupName: "testrg", - loadBalancerName: "lb"); -} - - -{ -// Client: NetworkManagementClient -// Group: LoadBalancerFrontendIPConfigurations -// Method: Get -// Example: LoadBalancerFrontendIPConfigurationGet - - -var frontendIPConfiguration = await this.Client.LoadBalancerFrontendIPConfigurations.GetAsync( - resourceGroupName: "testrg", - loadBalancerName: "lb", - frontendIPConfigurationName: "frontend"); -} - - -{ -// Client: NetworkManagementClient -// Group: InboundNatRules -// Method: List -// Example: InboundNatRuleList - - -var inboundNatRuleListResult = await this.Client.InboundNatRules.ListAsync( - resourceGroupName: "testrg", - loadBalancerName: "lb1"); -} - - -{ -// Client: NetworkManagementClient -// Group: InboundNatRules -// Method: Delete -// Example: InboundNatRuleDelete - - -await this.Client.InboundNatRules.DeleteAsync( - resourceGroupName: "testrg", - loadBalancerName: "lb1", - inboundNatRuleName: "natRule1.1"); -} - - -{ -// Client: NetworkManagementClient -// Group: InboundNatRules -// Method: Get -// Example: InboundNatRuleGet - - -var inboundNatRule = await this.Client.InboundNatRules.GetAsync( - resourceGroupName: "testrg", - loadBalancerName: "lb1", - inboundNatRuleName: "natRule1.1"); -} - - -{ -// Client: NetworkManagementClient -// Group: InboundNatRules -// Method: CreateOrUpdate -// Example: InboundNatRuleCreate - -var inboundNatRuleParameters = new InboundNatRule -{ - FrontendIPConfiguration = new SubResource("/subscriptions/subid/resourceGroups/testrg/providers/Microsoft.Network/loadBalancers/lb1/frontendIPConfigurations/ip1"), - Protocol = Tcp, - FrontendPort = 3390, - BackendPort = 3389, - IdleTimeoutInMinutes = 4, - EnableFloatingIP = false -}; - -var inboundNatRule = await this.Client.InboundNatRules.CreateOrUpdateAsync( - resourceGroupName: "testrg", - loadBalancerName: "lb1", - inboundNatRuleName: "natRule1.1", - inboundNatRuleParameters: inboundNatRuleParameters); -} - - -{ -// Client: NetworkManagementClient -// Group: LoadBalancerLoadBalancingRules -// Method: List -// Example: LoadBalancerLoadBalancingRuleList - - -var loadBalancerLoadBalancingRuleListResult = await this.Client.LoadBalancerLoadBalancingRules.ListAsync( - resourceGroupName: "testrg", - loadBalancerName: "lb1"); -} - - -{ -// Client: NetworkManagementClient -// Group: LoadBalancerLoadBalancingRules -// Method: Get -// Example: LoadBalancerLoadBalancingRuleGet - - -var loadBalancingRule = await this.Client.LoadBalancerLoadBalancingRules.GetAsync( - resourceGroupName: "testrg", - loadBalancerName: "lb1", - loadBalancingRuleName: "rule1"); -} - - -{ -// Client: NetworkManagementClient -// Group: LoadBalancerNetworkInterfaces -// Method: List -// Example: LoadBalancerNetworkInterfaceListVmss - - -var networkInterfaceListResult = await this.Client.LoadBalancerNetworkInterfaces.ListAsync( - resourceGroupName: "testrg", - loadBalancerName: "lb"); -} - - -{ -// Client: NetworkManagementClient -// Group: LoadBalancerNetworkInterfaces -// Method: List -// Example: LoadBalancerNetworkInterfaceListSimple - - -var networkInterfaceListResult = await this.Client.LoadBalancerNetworkInterfaces.ListAsync( - resourceGroupName: "testrg", - loadBalancerName: "lb"); -} - - -{ -// Client: NetworkManagementClient -// Group: LoadBalancerProbes -// Method: List -// Example: LoadBalancerProbeList - - -var loadBalancerProbeListResult = await this.Client.LoadBalancerProbes.ListAsync( - resourceGroupName: "testrg", - loadBalancerName: "lb"); -} - - -{ -// Client: NetworkManagementClient -// Group: LoadBalancerProbes -// Method: Get -// Example: LoadBalancerProbeGet - - -var probe = await this.Client.LoadBalancerProbes.GetAsync( - resourceGroupName: "testrg", - loadBalancerName: "lb", - probeName: "probe1"); -} - - -{ -// Client: NetworkManagementClient -// Group: NetworkInterfaces -// Method: Delete -// Example: Delete network interface - - -await this.Client.NetworkInterfaces.DeleteAsync( - resourceGroupName: "rg1", - networkInterfaceName: "test-nic"); -} - - -{ -// Client: NetworkManagementClient -// Group: NetworkInterfaces -// Method: Get -// Example: Get network interface - - -var networkInterface = await this.Client.NetworkInterfaces.GetAsync( - resourceGroupName: "rg1", - networkInterfaceName: "test-nic"); -} - - -{ -// Client: NetworkManagementClient -// Group: NetworkInterfaces -// Method: CreateOrUpdate -// Example: Create network interface - -var parameters = new NetworkInterface -{ - IpConfigurations = new List - { - new NetworkInterfaceIPConfiguration - { - Subnet = new Subnet(), - PublicIPAddress = new PublicIPAddress(), - Name = "ipconfig1" - } - }, - EnableAcceleratedNetworking = true -}; - -var networkInterface = await this.Client.NetworkInterfaces.CreateOrUpdateAsync( - resourceGroupName: "rg1", - networkInterfaceName: "test-nic", - parameters: parameters); -} - - -{ -// Client: NetworkManagementClient -// Group: NetworkInterfaces -// Method: ListAll -// Example: List all network interfaces - - -var networkInterfaceListResult = await this.Client.NetworkInterfaces.ListAllAsync(); -} - - -{ -// Client: NetworkManagementClient -// Group: NetworkInterfaces -// Method: List -// Example: List network interfaces in resource group - - -var networkInterfaceListResult = await this.Client.NetworkInterfaces.ListAsync( - resourceGroupName: "rg1"); -} - - -{ -// Client: NetworkManagementClient -// Group: NetworkInterfaces -// Method: GetEffectiveRouteTable -// Example: Show network interface effective route tables - - -var effectiveRouteListResult = await this.Client.NetworkInterfaces.GetEffectiveRouteTableAsync( - resourceGroupName: "rg1", - networkInterfaceName: "nic1"); -} - - -{ -// Client: NetworkManagementClient -// Group: NetworkInterfaces -// Method: ListEffectiveNetworkSecurityGroups -// Example: List network interface effective network security groups - - -var effectiveNetworkSecurityGroupListResult = await this.Client.NetworkInterfaces.ListEffectiveNetworkSecurityGroupsAsync( - resourceGroupName: "rg1", - networkInterfaceName: "nic1"); -} - - -{ -// Client: NetworkManagementClient -// Group: NetworkInterfaceIPConfigurations -// Method: List -// Example: NetworkInterfaceIPConfigurationList - - -var networkInterfaceIPConfigurationListResult = await this.Client.NetworkInterfaceIPConfigurations.ListAsync( - resourceGroupName: "testrg", - networkInterfaceName: "nic1"); -} - - -{ -// Client: NetworkManagementClient -// Group: NetworkInterfaceIPConfigurations -// Method: Get -// Example: NetworkInterfaceIPConfigurationGet - - -var networkInterfaceIPConfiguration = await this.Client.NetworkInterfaceIPConfigurations.GetAsync( - resourceGroupName: "testrg", - networkInterfaceName: "mynic", - ipConfigurationName: "ipconfig1"); -} - - -{ -// Client: NetworkManagementClient -// Group: NetworkInterfaceLoadBalancers -// Method: List -// Example: NetworkInterfaceLoadBalancerList - - -var networkInterfaceLoadBalancerListResult = await this.Client.NetworkInterfaceLoadBalancers.ListAsync( - resourceGroupName: "testrg", - networkInterfaceName: "nic1"); -} - - -{ -// Client: NetworkManagementClient -// Group: NetworkSecurityGroups -// Method: Delete -// Example: Delete network security group - - -await this.Client.NetworkSecurityGroups.DeleteAsync( - resourceGroupName: "rg1", - networkSecurityGroupName: "testnsg"); -} - - -{ -// Client: NetworkManagementClient -// Group: NetworkSecurityGroups -// Method: Get -// Example: Get network security group - - -var networkSecurityGroup = await this.Client.NetworkSecurityGroups.GetAsync( - resourceGroupName: "rg1", - networkSecurityGroupName: "testnsg"); -} - - -{ -// Client: NetworkManagementClient -// Group: NetworkSecurityGroups -// Method: CreateOrUpdate -// Example: Create network security group - -var parameters = new NetworkSecurityGroup(); - -var networkSecurityGroup = await this.Client.NetworkSecurityGroups.CreateOrUpdateAsync( - resourceGroupName: "rg1", - networkSecurityGroupName: "testnsg", - parameters: parameters); -} - - -{ -// Client: NetworkManagementClient -// Group: NetworkSecurityGroups -// Method: CreateOrUpdate -// Example: Create network security group with rule - -var parameters = new NetworkSecurityGroup -{ - SecurityRulesProperty = new List - { - new SecurityRule - { - Protocol = *, - SourcePortRange = "*", - DestinationPortRange = "80", - SourceAddressPrefix = "*", - DestinationAddressPrefix = "*", - Access = Allow, - Priority = 130, - Direction = Inbound, - Name = "rule1" - } - } -}; - -var networkSecurityGroup = await this.Client.NetworkSecurityGroups.CreateOrUpdateAsync( - resourceGroupName: "rg1", - networkSecurityGroupName: "testnsg", - parameters: parameters); -} - - -{ -// Client: NetworkManagementClient -// Group: NetworkSecurityGroups -// Method: ListAll -// Example: List all network security groups - - -var networkSecurityGroupListResult = await this.Client.NetworkSecurityGroups.ListAllAsync(); -} - - -{ -// Client: NetworkManagementClient -// Group: NetworkSecurityGroups -// Method: List -// Example: List network security groups in resource group - - -var networkSecurityGroupListResult = await this.Client.NetworkSecurityGroups.ListAsync( - resourceGroupName: "rg1"); -} - - -{ -// Client: NetworkManagementClient -// Group: SecurityRules -// Method: Delete -// Example: Delete network security rule from network security group - - -await this.Client.SecurityRules.DeleteAsync( - resourceGroupName: "rg1", - networkSecurityGroupName: "testnsg", - securityRuleName: "rule1"); -} - - -{ -// Client: NetworkManagementClient -// Group: SecurityRules -// Method: Get -// Example: Get network security rule in network security group - - -var securityRule = await this.Client.SecurityRules.GetAsync( - resourceGroupName: "rg1", - networkSecurityGroupName: "testnsg", - securityRuleName: "rule1"); -} - - -{ -// Client: NetworkManagementClient -// Group: SecurityRules -// Method: CreateOrUpdate -// Example: Create security rule - -var securityRuleParameters = new SecurityRule -{ - Protocol = *, - SourcePortRange = "*", - DestinationPortRange = "8080", - SourceAddressPrefix = "10.0.0.0/8", - DestinationAddressPrefix = "11.0.0.0/8", - Access = Deny, - Priority = 100, - Direction = Outbound -}; - -var securityRule = await this.Client.SecurityRules.CreateOrUpdateAsync( - resourceGroupName: "rg1", - networkSecurityGroupName: "testnsg", - securityRuleName: "rule1", - securityRuleParameters: securityRuleParameters); -} - - -{ -// Client: NetworkManagementClient -// Group: SecurityRules -// Method: List -// Example: List network security rules in network security group - - -var securityRuleListResult = await this.Client.SecurityRules.ListAsync( - resourceGroupName: "rg1", - networkSecurityGroupName: "testnsg"); -} - - -{ -// Client: NetworkManagementClient -// Group: DefaultSecurityRules -// Method: List -// Example: DefaultSecurityRuleList - - -var securityRuleListResult = await this.Client.DefaultSecurityRules.ListAsync( - resourceGroupName: "testrg", - networkSecurityGroupName: "nsg1"); -} - - -{ -// Client: NetworkManagementClient -// Group: DefaultSecurityRules -// Method: Get -// Example: DefaultSecurityRuleGet - - -var securityRule = await this.Client.DefaultSecurityRules.GetAsync( - resourceGroupName: "testrg", - networkSecurityGroupName: "nsg1", - defaultSecurityRuleName: "AllowVnetInBound"); -} - - -{ -// Client: NetworkManagementClient -// Group: PublicIPAddresses -// Method: Delete -// Example: Delete public IP address - - -await this.Client.PublicIPAddresses.DeleteAsync( - resourceGroupName: "rg1", - publicIpAddressName: "test-ip"); -} - - -{ -// Client: NetworkManagementClient -// Group: PublicIPAddresses -// Method: Get -// Example: Get public IP address - - -var publicIPAddress = await this.Client.PublicIPAddresses.GetAsync( - resourceGroupName: "rg1", - publicIpAddressName: "testDNS-ip"); -} - - -{ -// Client: NetworkManagementClient -// Group: PublicIPAddresses -// Method: CreateOrUpdate -// Example: Create public IP address defaults - -var parameters = new PublicIPAddress(); - -var publicIPAddress = await this.Client.PublicIPAddresses.CreateOrUpdateAsync( - resourceGroupName: "rg1", - publicIpAddressName: "test-ip", - parameters: parameters); -} - - -{ -// Client: NetworkManagementClient -// Group: PublicIPAddresses -// Method: CreateOrUpdate -// Example: Create public IP address allocation method - -var parameters = new PublicIPAddress -{ - PublicIPAllocationMethod = Static, - PublicIPAddressVersion = IPv4, - IdleTimeoutInMinutes = 10 -}; - -var publicIPAddress = await this.Client.PublicIPAddresses.CreateOrUpdateAsync( - resourceGroupName: "rg1", - publicIpAddressName: "test-ip", - parameters: parameters); -} - - -{ -// Client: NetworkManagementClient -// Group: PublicIPAddresses -// Method: CreateOrUpdate -// Example: Create public IP address DNS - -var parameters = new PublicIPAddress -{ - DnsSettings = new PublicIPAddressDnsSettings - { - DomainNameLabel = "dnslbl" - } -}; - -var publicIPAddress = await this.Client.PublicIPAddresses.CreateOrUpdateAsync( - resourceGroupName: "rg1", - publicIpAddressName: "test-ip", - parameters: parameters); -} - - -{ -// Client: NetworkManagementClient -// Group: PublicIPAddresses -// Method: ListAll -// Example: List all public IP addresses - - -var publicIPAddressListResult = await this.Client.PublicIPAddresses.ListAllAsync(); -} - - -{ -// Client: NetworkManagementClient -// Group: PublicIPAddresses -// Method: List -// Example: List resource group public IP addresses - - -var publicIPAddressListResult = await this.Client.PublicIPAddresses.ListAsync( - resourceGroupName: "rg1"); -} diff --git a/Samples/openapi-v2/3f-example-generation/readme.md b/Samples/openapi-v2/3f-example-generation/readme.md deleted file mode 100644 index dbc0c0165c..0000000000 --- a/Samples/openapi-v2/3f-example-generation/readme.md +++ /dev/null @@ -1,82 +0,0 @@ -# Scenario: Sample code generation from x-ms-examples - -> see https://aka.ms/autorest - -## Input - -``` yaml -input-file: -- https://github.com/Azure/azure-rest-api-specs/blob/53b26d1ed62c7b1958009153cba534b52f17da62/specification/network/resource-manager/Microsoft.Network/2017-06-01/loadBalancer.json -- https://github.com/Azure/azure-rest-api-specs/blob/53b26d1ed62c7b1958009153cba534b52f17da62/specification/network/resource-manager/Microsoft.Network/2017-06-01/network.json -- https://github.com/Azure/azure-rest-api-specs/blob/53b26d1ed62c7b1958009153cba534b52f17da62/specification/network/resource-manager/Microsoft.Network/2017-06-01/networkInterface.json -- https://github.com/Azure/azure-rest-api-specs/blob/53b26d1ed62c7b1958009153cba534b52f17da62/specification/network/resource-manager/Microsoft.Network/2017-06-01/networkSecurityGroup.json -- https://github.com/Azure/azure-rest-api-specs/blob/53b26d1ed62c7b1958009153cba534b52f17da62/specification/network/resource-manager/Microsoft.Network/2017-06-01/networkWatcher.json -- https://github.com/Azure/azure-rest-api-specs/blob/53b26d1ed62c7b1958009153cba534b52f17da62/specification/network/resource-manager/Microsoft.Network/2017-06-01/publicIpAddress.json -``` - - -## Generation - -Generate samples instead of REST client code. - -``` yaml -sample-generation: true -output-file: combined -``` - -### CSharp - -``` yaml -csharp: - - output-folder: CSharp - namespace: CSharpNamespace - - output-folder: Azure.CSharp - azure-arm: true - - output-folder: Azure.CSharp.Fluent - azure-arm: true - fluent: true -``` - -### Go - -``` yaml -go: - output-folder: Go -``` - -### Java - -``` yaml -java: -- output-folder: Java - namespace: JavaNamespace -- output-folder: Azure.Java - azure-arm: true -- output-folder: Azure.Java.Fluent - azure-arm: true - fluent: true -``` - -### NodeJS -``` yaml -nodejs: - - output-folder: NodeJS - - output-folder: Azure.NodeJS - azure-arm: true -``` - -### Python -``` yaml -pyhton: - - output-folder: Python - - output-folder: Azure.Python - azure-arm: true -``` - -### Ruby -``` yaml -ruby: - - output-folder: Ruby - - output-folder: Azure.Ruby - azure-arm: true -``` diff --git a/Samples/openapi-v2/3f-example-generation/shell/code.txt b/Samples/openapi-v2/3f-example-generation/shell/code.txt deleted file mode 100644 index c227083464..0000000000 --- a/Samples/openapi-v2/3f-example-generation/shell/code.txt +++ /dev/null @@ -1 +0,0 @@ -0 \ No newline at end of file diff --git a/Samples/openapi-v2/3f-example-generation/shell/stderr.txt b/Samples/openapi-v2/3f-example-generation/shell/stderr.txt deleted file mode 100644 index 8b13789179..0000000000 --- a/Samples/openapi-v2/3f-example-generation/shell/stderr.txt +++ /dev/null @@ -1 +0,0 @@ - diff --git a/Samples/openapi-v2/3f-example-generation/shell/stdout.txt b/Samples/openapi-v2/3f-example-generation/shell/stdout.txt deleted file mode 100644 index 555ceb3263..0000000000 --- a/Samples/openapi-v2/3f-example-generation/shell/stdout.txt +++ /dev/null @@ -1,438 +0,0 @@ -https://aka.ms/autorest -WARNING: Did not generate example 'Create load balancer' of 'loadBalancers/beginCreateOrUpdate' -WARNING: Did not generate example 'Create load balancer' of 'loadBalancers/beginCreateOrUpdate' -WARNING: Did not generate example 'Create load balancer' of 'LoadBalancers/create_or_update' -WARNING: Did not generate example 'Create load balancer' of 'LoadBalancers/create_or_update' -WARNING: Did not generate example 'Create load balancer' of 'LoadBalancers/createOrUpdate' -WARNING: Did not generate example 'Create load balancer' of 'LoadBalancers/createOrUpdate' -WARNING: Did not generate example 'Create load balancer' of 'loadBalancers/createOrUpdate' -WARNING: Did not generate example 'Create load balancer' of 'loadBalancers/createOrUpdate' -WARNING: Did not generate example 'Create load balancer' of 'loadBalancers/createOrUpdate' -WARNING: Did not generate example 'Create load balancer' of 'LoadBalancers/CreateOrUpdateMethod' -WARNING: Did not generate example 'Create network interface' of 'networkInterfaces/beginCreateOrUpdate' -WARNING: Did not generate example 'Create network interface' of 'networkInterfaces/beginCreateOrUpdate' -WARNING: Did not generate example 'Create network interface' of 'NetworkInterfaces/create_or_update' -WARNING: Did not generate example 'Create network interface' of 'NetworkInterfaces/create_or_update' -WARNING: Did not generate example 'Create network interface' of 'NetworkInterfaces/createOrUpdate' -WARNING: Did not generate example 'Create network interface' of 'NetworkInterfaces/createOrUpdate' -WARNING: Did not generate example 'Create network interface' of 'networkInterfaces/createOrUpdate' -WARNING: Did not generate example 'Create network interface' of 'networkInterfaces/createOrUpdate' -WARNING: Did not generate example 'Create network interface' of 'networkInterfaces/createOrUpdate' -WARNING: Did not generate example 'Create network interface' of 'NetworkInterfaces/CreateOrUpdateMethod' -WARNING: Did not generate example 'Create network security group with rule' of 'networkSecurityGroups/beginCreateOrUpdate' -WARNING: Did not generate example 'Create network security group with rule' of 'networkSecurityGroups/beginCreateOrUpdate' -WARNING: Did not generate example 'Create network security group with rule' of 'NetworkSecurityGroups/create_or_update' -WARNING: Did not generate example 'Create network security group with rule' of 'NetworkSecurityGroups/create_or_update' -WARNING: Did not generate example 'Create network security group with rule' of 'NetworkSecurityGroups/createOrUpdate' -WARNING: Did not generate example 'Create network security group with rule' of 'NetworkSecurityGroups/createOrUpdate' -WARNING: Did not generate example 'Create network security group with rule' of 'networkSecurityGroups/createOrUpdate' -WARNING: Did not generate example 'Create network security group with rule' of 'networkSecurityGroups/createOrUpdate' -WARNING: Did not generate example 'Create network security group with rule' of 'networkSecurityGroups/createOrUpdate' -WARNING: Did not generate example 'Create network security group with rule' of 'NetworkSecurityGroups/CreateOrUpdateMethod' -WARNING: Did not generate example 'Create network security group' of 'networkSecurityGroups/beginCreateOrUpdate' -WARNING: Did not generate example 'Create network security group' of 'networkSecurityGroups/beginCreateOrUpdate' -WARNING: Did not generate example 'Create network security group' of 'NetworkSecurityGroups/create_or_update' -WARNING: Did not generate example 'Create network security group' of 'NetworkSecurityGroups/create_or_update' -WARNING: Did not generate example 'Create network security group' of 'NetworkSecurityGroups/createOrUpdate' -WARNING: Did not generate example 'Create network security group' of 'NetworkSecurityGroups/createOrUpdate' -WARNING: Did not generate example 'Create network security group' of 'networkSecurityGroups/createOrUpdate' -WARNING: Did not generate example 'Create network security group' of 'networkSecurityGroups/createOrUpdate' -WARNING: Did not generate example 'Create network security group' of 'networkSecurityGroups/createOrUpdate' -WARNING: Did not generate example 'Create network security group' of 'NetworkSecurityGroups/CreateOrUpdateMethod' -WARNING: Did not generate example 'Create public IP address allocation method' of 'publicIPAddresses/beginCreateOrUpdate' -WARNING: Did not generate example 'Create public IP address allocation method' of 'publicIPAddresses/beginCreateOrUpdate' -WARNING: Did not generate example 'Create public IP address allocation method' of 'PublicIPAddresses/create_or_update' -WARNING: Did not generate example 'Create public IP address allocation method' of 'PublicIPAddresses/create_or_update' -WARNING: Did not generate example 'Create public IP address allocation method' of 'PublicIPAddresses/createOrUpdate' -WARNING: Did not generate example 'Create public IP address allocation method' of 'PublicIPAddresses/createOrUpdate' -WARNING: Did not generate example 'Create public IP address allocation method' of 'publicIPAddresses/createOrUpdate' -WARNING: Did not generate example 'Create public IP address allocation method' of 'publicIPAddresses/createOrUpdate' -WARNING: Did not generate example 'Create public IP address allocation method' of 'publicIPAddresses/createOrUpdate' -WARNING: Did not generate example 'Create public IP address allocation method' of 'PublicIPAddresses/CreateOrUpdateMethod' -WARNING: Did not generate example 'Create public IP address defaults' of 'publicIPAddresses/beginCreateOrUpdate' -WARNING: Did not generate example 'Create public IP address defaults' of 'publicIPAddresses/beginCreateOrUpdate' -WARNING: Did not generate example 'Create public IP address defaults' of 'PublicIPAddresses/create_or_update' -WARNING: Did not generate example 'Create public IP address defaults' of 'PublicIPAddresses/create_or_update' -WARNING: Did not generate example 'Create public IP address defaults' of 'PublicIPAddresses/createOrUpdate' -WARNING: Did not generate example 'Create public IP address defaults' of 'PublicIPAddresses/createOrUpdate' -WARNING: Did not generate example 'Create public IP address defaults' of 'publicIPAddresses/createOrUpdate' -WARNING: Did not generate example 'Create public IP address defaults' of 'publicIPAddresses/createOrUpdate' -WARNING: Did not generate example 'Create public IP address defaults' of 'publicIPAddresses/createOrUpdate' -WARNING: Did not generate example 'Create public IP address defaults' of 'PublicIPAddresses/CreateOrUpdateMethod' -WARNING: Did not generate example 'Create public IP address DNS' of 'publicIPAddresses/beginCreateOrUpdate' -WARNING: Did not generate example 'Create public IP address DNS' of 'publicIPAddresses/beginCreateOrUpdate' -WARNING: Did not generate example 'Create public IP address DNS' of 'PublicIPAddresses/create_or_update' -WARNING: Did not generate example 'Create public IP address DNS' of 'PublicIPAddresses/create_or_update' -WARNING: Did not generate example 'Create public IP address DNS' of 'PublicIPAddresses/createOrUpdate' -WARNING: Did not generate example 'Create public IP address DNS' of 'PublicIPAddresses/createOrUpdate' -WARNING: Did not generate example 'Create public IP address DNS' of 'publicIPAddresses/createOrUpdate' -WARNING: Did not generate example 'Create public IP address DNS' of 'publicIPAddresses/createOrUpdate' -WARNING: Did not generate example 'Create public IP address DNS' of 'publicIPAddresses/createOrUpdate' -WARNING: Did not generate example 'Create public IP address DNS' of 'PublicIPAddresses/CreateOrUpdateMethod' -WARNING: Did not generate example 'Create security rule' of 'securityRules/beginCreateOrUpdate' -WARNING: Did not generate example 'Create security rule' of 'securityRules/beginCreateOrUpdate' -WARNING: Did not generate example 'Create security rule' of 'SecurityRules/create_or_update' -WARNING: Did not generate example 'Create security rule' of 'SecurityRules/create_or_update' -WARNING: Did not generate example 'Create security rule' of 'SecurityRules/createOrUpdate' -WARNING: Did not generate example 'Create security rule' of 'SecurityRules/createOrUpdate' -WARNING: Did not generate example 'Create security rule' of 'securityRules/createOrUpdate' -WARNING: Did not generate example 'Create security rule' of 'securityRules/createOrUpdate' -WARNING: Did not generate example 'Create security rule' of 'securityRules/createOrUpdate' -WARNING: Did not generate example 'Create security rule' of 'SecurityRules/CreateOrUpdateMethod' -WARNING: Did not generate example 'DefaultSecurityRuleGet' of 'DefaultSecurityRules/get' -WARNING: Did not generate example 'DefaultSecurityRuleGet' of 'DefaultSecurityRules/get' -WARNING: Did not generate example 'DefaultSecurityRuleGet' of 'DefaultSecurityRules/get' -WARNING: Did not generate example 'DefaultSecurityRuleGet' of 'DefaultSecurityRules/get' -WARNING: Did not generate example 'DefaultSecurityRuleGet' of 'defaultSecurityRules/get' -WARNING: Did not generate example 'DefaultSecurityRuleGet' of 'defaultSecurityRules/get' -WARNING: Did not generate example 'DefaultSecurityRuleGet' of 'defaultSecurityRules/get' -WARNING: Did not generate example 'DefaultSecurityRuleGet' of 'DefaultSecurityRules/GetMethod' -WARNING: Did not generate example 'DefaultSecurityRuleList' of 'DefaultSecurityRules/list_as_lazy' -WARNING: Did not generate example 'DefaultSecurityRuleList' of 'DefaultSecurityRules/list' -WARNING: Did not generate example 'DefaultSecurityRuleList' of 'DefaultSecurityRules/list' -WARNING: Did not generate example 'DefaultSecurityRuleList' of 'DefaultSecurityRules/list' -WARNING: Did not generate example 'DefaultSecurityRuleList' of 'DefaultSecurityRules/list' -WARNING: Did not generate example 'DefaultSecurityRuleList' of 'defaultSecurityRules/list' -WARNING: Did not generate example 'DefaultSecurityRuleList' of 'defaultSecurityRules/list' -WARNING: Did not generate example 'DefaultSecurityRuleList' of 'defaultSecurityRules/list' -WARNING: Did not generate example 'DefaultSecurityRuleList' of 'DefaultSecurityRules/ListMethod' -WARNING: Did not generate example 'Delete load balancer' of 'loadBalancers/beginDelete' -WARNING: Did not generate example 'Delete load balancer' of 'loadBalancers/beginDelete' -WARNING: Did not generate example 'Delete load balancer' of 'LoadBalancers/delete' -WARNING: Did not generate example 'Delete load balancer' of 'LoadBalancers/delete' -WARNING: Did not generate example 'Delete load balancer' of 'loadBalancers/delete' -WARNING: Did not generate example 'Delete load balancer' of 'loadBalancers/delete' -WARNING: Did not generate example 'Delete load balancer' of 'loadBalancers/delete' -WARNING: Did not generate example 'Delete load balancer' of 'LoadBalancers/DeleteMethod' -WARNING: Did not generate example 'Delete load balancer' of 'LoadBalancers/deleteMethod' -WARNING: Did not generate example 'Delete load balancer' of 'LoadBalancers/deleteMethod' -WARNING: Did not generate example 'Delete network interface' of 'networkInterfaces/beginDelete' -WARNING: Did not generate example 'Delete network interface' of 'networkInterfaces/beginDelete' -WARNING: Did not generate example 'Delete network interface' of 'NetworkInterfaces/delete' -WARNING: Did not generate example 'Delete network interface' of 'NetworkInterfaces/delete' -WARNING: Did not generate example 'Delete network interface' of 'networkInterfaces/delete' -WARNING: Did not generate example 'Delete network interface' of 'networkInterfaces/delete' -WARNING: Did not generate example 'Delete network interface' of 'networkInterfaces/delete' -WARNING: Did not generate example 'Delete network interface' of 'NetworkInterfaces/DeleteMethod' -WARNING: Did not generate example 'Delete network interface' of 'NetworkInterfaces/deleteMethod' -WARNING: Did not generate example 'Delete network interface' of 'NetworkInterfaces/deleteMethod' -WARNING: Did not generate example 'Delete network security group' of 'networkSecurityGroups/beginDelete' -WARNING: Did not generate example 'Delete network security group' of 'networkSecurityGroups/beginDelete' -WARNING: Did not generate example 'Delete network security group' of 'NetworkSecurityGroups/delete' -WARNING: Did not generate example 'Delete network security group' of 'NetworkSecurityGroups/delete' -WARNING: Did not generate example 'Delete network security group' of 'networkSecurityGroups/delete' -WARNING: Did not generate example 'Delete network security group' of 'networkSecurityGroups/delete' -WARNING: Did not generate example 'Delete network security group' of 'networkSecurityGroups/delete' -WARNING: Did not generate example 'Delete network security group' of 'NetworkSecurityGroups/DeleteMethod' -WARNING: Did not generate example 'Delete network security group' of 'NetworkSecurityGroups/deleteMethod' -WARNING: Did not generate example 'Delete network security group' of 'NetworkSecurityGroups/deleteMethod' -WARNING: Did not generate example 'Delete network security rule from network security group' of 'securityRules/beginDelete' -WARNING: Did not generate example 'Delete network security rule from network security group' of 'securityRules/beginDelete' -WARNING: Did not generate example 'Delete network security rule from network security group' of 'SecurityRules/delete' -WARNING: Did not generate example 'Delete network security rule from network security group' of 'SecurityRules/delete' -WARNING: Did not generate example 'Delete network security rule from network security group' of 'securityRules/delete' -WARNING: Did not generate example 'Delete network security rule from network security group' of 'securityRules/delete' -WARNING: Did not generate example 'Delete network security rule from network security group' of 'securityRules/delete' -WARNING: Did not generate example 'Delete network security rule from network security group' of 'SecurityRules/DeleteMethod' -WARNING: Did not generate example 'Delete network security rule from network security group' of 'SecurityRules/deleteMethod' -WARNING: Did not generate example 'Delete network security rule from network security group' of 'SecurityRules/deleteMethod' -WARNING: Did not generate example 'Delete public IP address' of 'publicIPAddresses/beginDelete' -WARNING: Did not generate example 'Delete public IP address' of 'publicIPAddresses/beginDelete' -WARNING: Did not generate example 'Delete public IP address' of 'PublicIPAddresses/delete' -WARNING: Did not generate example 'Delete public IP address' of 'PublicIPAddresses/delete' -WARNING: Did not generate example 'Delete public IP address' of 'publicIPAddresses/delete' -WARNING: Did not generate example 'Delete public IP address' of 'publicIPAddresses/delete' -WARNING: Did not generate example 'Delete public IP address' of 'publicIPAddresses/delete' -WARNING: Did not generate example 'Delete public IP address' of 'PublicIPAddresses/DeleteMethod' -WARNING: Did not generate example 'Delete public IP address' of 'PublicIPAddresses/deleteMethod' -WARNING: Did not generate example 'Delete public IP address' of 'PublicIPAddresses/deleteMethod' -WARNING: Did not generate example 'Get load balancer' of 'LoadBalancers/get' -WARNING: Did not generate example 'Get load balancer' of 'LoadBalancers/get' -WARNING: Did not generate example 'Get load balancer' of 'LoadBalancers/get' -WARNING: Did not generate example 'Get load balancer' of 'LoadBalancers/get' -WARNING: Did not generate example 'Get load balancer' of 'loadBalancers/get' -WARNING: Did not generate example 'Get load balancer' of 'loadBalancers/get' -WARNING: Did not generate example 'Get load balancer' of 'loadBalancers/getByResourceGroup' -WARNING: Did not generate example 'Get load balancer' of 'LoadBalancers/GetMethod' -WARNING: Did not generate example 'Get network interface' of 'NetworkInterfaces/get' -WARNING: Did not generate example 'Get network interface' of 'NetworkInterfaces/get' -WARNING: Did not generate example 'Get network interface' of 'NetworkInterfaces/get' -WARNING: Did not generate example 'Get network interface' of 'NetworkInterfaces/get' -WARNING: Did not generate example 'Get network interface' of 'networkInterfaces/get' -WARNING: Did not generate example 'Get network interface' of 'networkInterfaces/get' -WARNING: Did not generate example 'Get network interface' of 'networkInterfaces/getByResourceGroup' -WARNING: Did not generate example 'Get network interface' of 'NetworkInterfaces/GetMethod' -WARNING: Did not generate example 'Get network security group' of 'NetworkSecurityGroups/get' -WARNING: Did not generate example 'Get network security group' of 'NetworkSecurityGroups/get' -WARNING: Did not generate example 'Get network security group' of 'NetworkSecurityGroups/get' -WARNING: Did not generate example 'Get network security group' of 'NetworkSecurityGroups/get' -WARNING: Did not generate example 'Get network security group' of 'networkSecurityGroups/get' -WARNING: Did not generate example 'Get network security group' of 'networkSecurityGroups/get' -WARNING: Did not generate example 'Get network security group' of 'networkSecurityGroups/getByResourceGroup' -WARNING: Did not generate example 'Get network security group' of 'NetworkSecurityGroups/GetMethod' -WARNING: Did not generate example 'Get network security rule in network security group' of 'SecurityRules/get' -WARNING: Did not generate example 'Get network security rule in network security group' of 'SecurityRules/get' -WARNING: Did not generate example 'Get network security rule in network security group' of 'SecurityRules/get' -WARNING: Did not generate example 'Get network security rule in network security group' of 'SecurityRules/get' -WARNING: Did not generate example 'Get network security rule in network security group' of 'securityRules/get' -WARNING: Did not generate example 'Get network security rule in network security group' of 'securityRules/get' -WARNING: Did not generate example 'Get network security rule in network security group' of 'securityRules/get' -WARNING: Did not generate example 'Get network security rule in network security group' of 'SecurityRules/GetMethod' -WARNING: Did not generate example 'Get public IP address' of 'PublicIPAddresses/get' -WARNING: Did not generate example 'Get public IP address' of 'PublicIPAddresses/get' -WARNING: Did not generate example 'Get public IP address' of 'PublicIPAddresses/get' -WARNING: Did not generate example 'Get public IP address' of 'PublicIPAddresses/get' -WARNING: Did not generate example 'Get public IP address' of 'publicIPAddresses/get' -WARNING: Did not generate example 'Get public IP address' of 'publicIPAddresses/get' -WARNING: Did not generate example 'Get public IP address' of 'publicIPAddresses/getByResourceGroup' -WARNING: Did not generate example 'Get public IP address' of 'PublicIPAddresses/GetMethod' -WARNING: Did not generate example 'InboundNatRuleCreate' of 'inboundNatRules/beginCreateOrUpdate' -WARNING: Did not generate example 'InboundNatRuleCreate' of 'inboundNatRules/beginCreateOrUpdate' -WARNING: Did not generate example 'InboundNatRuleCreate' of 'InboundNatRules/create_or_update' -WARNING: Did not generate example 'InboundNatRuleCreate' of 'InboundNatRules/create_or_update' -WARNING: Did not generate example 'InboundNatRuleCreate' of 'InboundNatRules/createOrUpdate' -WARNING: Did not generate example 'InboundNatRuleCreate' of 'InboundNatRules/createOrUpdate' -WARNING: Did not generate example 'InboundNatRuleCreate' of 'inboundNatRules/createOrUpdate' -WARNING: Did not generate example 'InboundNatRuleCreate' of 'inboundNatRules/createOrUpdate' -WARNING: Did not generate example 'InboundNatRuleCreate' of 'inboundNatRules/createOrUpdate' -WARNING: Did not generate example 'InboundNatRuleCreate' of 'InboundNatRules/CreateOrUpdateMethod' -WARNING: Did not generate example 'InboundNatRuleDelete' of 'inboundNatRules/beginDelete' -WARNING: Did not generate example 'InboundNatRuleDelete' of 'inboundNatRules/beginDelete' -WARNING: Did not generate example 'InboundNatRuleDelete' of 'InboundNatRules/delete' -WARNING: Did not generate example 'InboundNatRuleDelete' of 'InboundNatRules/delete' -WARNING: Did not generate example 'InboundNatRuleDelete' of 'inboundNatRules/delete' -WARNING: Did not generate example 'InboundNatRuleDelete' of 'inboundNatRules/delete' -WARNING: Did not generate example 'InboundNatRuleDelete' of 'inboundNatRules/delete' -WARNING: Did not generate example 'InboundNatRuleDelete' of 'InboundNatRules/DeleteMethod' -WARNING: Did not generate example 'InboundNatRuleDelete' of 'InboundNatRules/deleteMethod' -WARNING: Did not generate example 'InboundNatRuleDelete' of 'InboundNatRules/deleteMethod' -WARNING: Did not generate example 'InboundNatRuleGet' of 'InboundNatRules/get' -WARNING: Did not generate example 'InboundNatRuleGet' of 'InboundNatRules/get' -WARNING: Did not generate example 'InboundNatRuleGet' of 'InboundNatRules/get' -WARNING: Did not generate example 'InboundNatRuleGet' of 'InboundNatRules/get' -WARNING: Did not generate example 'InboundNatRuleGet' of 'inboundNatRules/get' -WARNING: Did not generate example 'InboundNatRuleGet' of 'inboundNatRules/get' -WARNING: Did not generate example 'InboundNatRuleGet' of 'inboundNatRules/get' -WARNING: Did not generate example 'InboundNatRuleGet' of 'InboundNatRules/GetMethod' -WARNING: Did not generate example 'InboundNatRuleList' of 'InboundNatRules/list_as_lazy' -WARNING: Did not generate example 'InboundNatRuleList' of 'InboundNatRules/list' -WARNING: Did not generate example 'InboundNatRuleList' of 'InboundNatRules/list' -WARNING: Did not generate example 'InboundNatRuleList' of 'InboundNatRules/list' -WARNING: Did not generate example 'InboundNatRuleList' of 'InboundNatRules/list' -WARNING: Did not generate example 'InboundNatRuleList' of 'inboundNatRules/list' -WARNING: Did not generate example 'InboundNatRuleList' of 'inboundNatRules/list' -WARNING: Did not generate example 'InboundNatRuleList' of 'inboundNatRules/list' -WARNING: Did not generate example 'InboundNatRuleList' of 'InboundNatRules/ListMethod' -WARNING: Did not generate example 'List all load balancers' of 'LoadBalancers/list_all_as_lazy' -WARNING: Did not generate example 'List all load balancers' of 'LoadBalancers/list_all' -WARNING: Did not generate example 'List all load balancers' of 'LoadBalancers/list_all' -WARNING: Did not generate example 'List all load balancers' of 'loadBalancers/list' -WARNING: Did not generate example 'List all load balancers' of 'LoadBalancers/listAll' -WARNING: Did not generate example 'List all load balancers' of 'LoadBalancers/listAll' -WARNING: Did not generate example 'List all load balancers' of 'loadBalancers/listAll' -WARNING: Did not generate example 'List all load balancers' of 'loadBalancers/listAll' -WARNING: Did not generate example 'List all load balancers' of 'LoadBalancers/ListAllMethod' -WARNING: Did not generate example 'List all network interfaces' of 'NetworkInterfaces/list_all_as_lazy' -WARNING: Did not generate example 'List all network interfaces' of 'NetworkInterfaces/list_all' -WARNING: Did not generate example 'List all network interfaces' of 'NetworkInterfaces/list_all' -WARNING: Did not generate example 'List all network interfaces' of 'networkInterfaces/list' -WARNING: Did not generate example 'List all network interfaces' of 'NetworkInterfaces/listAll' -WARNING: Did not generate example 'List all network interfaces' of 'NetworkInterfaces/listAll' -WARNING: Did not generate example 'List all network interfaces' of 'networkInterfaces/listAll' -WARNING: Did not generate example 'List all network interfaces' of 'networkInterfaces/listAll' -WARNING: Did not generate example 'List all network interfaces' of 'NetworkInterfaces/ListAllMethod' -WARNING: Did not generate example 'List all network security groups' of 'NetworkSecurityGroups/list_all_as_lazy' -WARNING: Did not generate example 'List all network security groups' of 'NetworkSecurityGroups/list_all' -WARNING: Did not generate example 'List all network security groups' of 'NetworkSecurityGroups/list_all' -WARNING: Did not generate example 'List all network security groups' of 'networkSecurityGroups/list' -WARNING: Did not generate example 'List all network security groups' of 'NetworkSecurityGroups/listAll' -WARNING: Did not generate example 'List all network security groups' of 'NetworkSecurityGroups/listAll' -WARNING: Did not generate example 'List all network security groups' of 'networkSecurityGroups/listAll' -WARNING: Did not generate example 'List all network security groups' of 'networkSecurityGroups/listAll' -WARNING: Did not generate example 'List all network security groups' of 'NetworkSecurityGroups/ListAllMethod' -WARNING: Did not generate example 'List all public IP addresses' of 'PublicIPAddresses/list_all_as_lazy' -WARNING: Did not generate example 'List all public IP addresses' of 'PublicIPAddresses/list_all' -WARNING: Did not generate example 'List all public IP addresses' of 'PublicIPAddresses/list_all' -WARNING: Did not generate example 'List all public IP addresses' of 'publicIPAddresses/list' -WARNING: Did not generate example 'List all public IP addresses' of 'PublicIPAddresses/listAll' -WARNING: Did not generate example 'List all public IP addresses' of 'PublicIPAddresses/listAll' -WARNING: Did not generate example 'List all public IP addresses' of 'publicIPAddresses/listAll' -WARNING: Did not generate example 'List all public IP addresses' of 'publicIPAddresses/listAll' -WARNING: Did not generate example 'List all public IP addresses' of 'PublicIPAddresses/ListAllMethod' -WARNING: Did not generate example 'List load balancers in resource group' of 'LoadBalancers/list_as_lazy' -WARNING: Did not generate example 'List load balancers in resource group' of 'LoadBalancers/list' -WARNING: Did not generate example 'List load balancers in resource group' of 'LoadBalancers/list' -WARNING: Did not generate example 'List load balancers in resource group' of 'LoadBalancers/list' -WARNING: Did not generate example 'List load balancers in resource group' of 'LoadBalancers/list' -WARNING: Did not generate example 'List load balancers in resource group' of 'loadBalancers/list' -WARNING: Did not generate example 'List load balancers in resource group' of 'loadBalancers/list' -WARNING: Did not generate example 'List load balancers in resource group' of 'loadBalancers/listByResourceGroup' -WARNING: Did not generate example 'List load balancers in resource group' of 'LoadBalancers/ListMethod' -WARNING: Did not generate example 'List network interface effective network security groups' of 'networkInterfaces/beginListEffectiveNetworkSecurityGroups' -WARNING: Did not generate example 'List network interface effective network security groups' of 'networkInterfaces/beginListEffectiveNetworkSecurityGroups' -WARNING: Did not generate example 'List network interface effective network security groups' of 'NetworkInterfaces/list_effective_network_security_groups' -WARNING: Did not generate example 'List network interface effective network security groups' of 'NetworkInterfaces/list_effective_network_security_groups' -WARNING: Did not generate example 'List network interface effective network security groups' of 'NetworkInterfaces/listEffectiveNetworkSecurityGroups' -WARNING: Did not generate example 'List network interface effective network security groups' of 'NetworkInterfaces/listEffectiveNetworkSecurityGroups' -WARNING: Did not generate example 'List network interface effective network security groups' of 'networkInterfaces/listEffectiveNetworkSecurityGroups' -WARNING: Did not generate example 'List network interface effective network security groups' of 'networkInterfaces/listEffectiveNetworkSecurityGroups' -WARNING: Did not generate example 'List network interface effective network security groups' of 'networkInterfaces/listEffectiveNetworkSecurityGroups' -WARNING: Did not generate example 'List network interface effective network security groups' of 'NetworkInterfaces/ListEffectiveNetworkSecurityGroupsMethod' -WARNING: Did not generate example 'List network interfaces in resource group' of 'NetworkInterfaces/list_as_lazy' -WARNING: Did not generate example 'List network interfaces in resource group' of 'NetworkInterfaces/list' -WARNING: Did not generate example 'List network interfaces in resource group' of 'NetworkInterfaces/list' -WARNING: Did not generate example 'List network interfaces in resource group' of 'NetworkInterfaces/list' -WARNING: Did not generate example 'List network interfaces in resource group' of 'NetworkInterfaces/list' -WARNING: Did not generate example 'List network interfaces in resource group' of 'networkInterfaces/list' -WARNING: Did not generate example 'List network interfaces in resource group' of 'networkInterfaces/list' -WARNING: Did not generate example 'List network interfaces in resource group' of 'networkInterfaces/listByResourceGroup' -WARNING: Did not generate example 'List network interfaces in resource group' of 'NetworkInterfaces/ListMethod' -WARNING: Did not generate example 'List network security groups in resource group' of 'NetworkSecurityGroups/list_as_lazy' -WARNING: Did not generate example 'List network security groups in resource group' of 'NetworkSecurityGroups/list' -WARNING: Did not generate example 'List network security groups in resource group' of 'NetworkSecurityGroups/list' -WARNING: Did not generate example 'List network security groups in resource group' of 'NetworkSecurityGroups/list' -WARNING: Did not generate example 'List network security groups in resource group' of 'NetworkSecurityGroups/list' -WARNING: Did not generate example 'List network security groups in resource group' of 'networkSecurityGroups/list' -WARNING: Did not generate example 'List network security groups in resource group' of 'networkSecurityGroups/list' -WARNING: Did not generate example 'List network security groups in resource group' of 'networkSecurityGroups/listByResourceGroup' -WARNING: Did not generate example 'List network security groups in resource group' of 'NetworkSecurityGroups/ListMethod' -WARNING: Did not generate example 'List network security rules in network security group' of 'SecurityRules/list_as_lazy' -WARNING: Did not generate example 'List network security rules in network security group' of 'SecurityRules/list' -WARNING: Did not generate example 'List network security rules in network security group' of 'SecurityRules/list' -WARNING: Did not generate example 'List network security rules in network security group' of 'SecurityRules/list' -WARNING: Did not generate example 'List network security rules in network security group' of 'SecurityRules/list' -WARNING: Did not generate example 'List network security rules in network security group' of 'securityRules/list' -WARNING: Did not generate example 'List network security rules in network security group' of 'securityRules/list' -WARNING: Did not generate example 'List network security rules in network security group' of 'securityRules/list' -WARNING: Did not generate example 'List network security rules in network security group' of 'SecurityRules/ListMethod' -WARNING: Did not generate example 'List resource group public IP addresses' of 'PublicIPAddresses/list_as_lazy' -WARNING: Did not generate example 'List resource group public IP addresses' of 'PublicIPAddresses/list' -WARNING: Did not generate example 'List resource group public IP addresses' of 'PublicIPAddresses/list' -WARNING: Did not generate example 'List resource group public IP addresses' of 'PublicIPAddresses/list' -WARNING: Did not generate example 'List resource group public IP addresses' of 'PublicIPAddresses/list' -WARNING: Did not generate example 'List resource group public IP addresses' of 'publicIPAddresses/list' -WARNING: Did not generate example 'List resource group public IP addresses' of 'publicIPAddresses/list' -WARNING: Did not generate example 'List resource group public IP addresses' of 'publicIPAddresses/listByResourceGroup' -WARNING: Did not generate example 'List resource group public IP addresses' of 'PublicIPAddresses/ListMethod' -WARNING: Did not generate example 'LoadBalancerBackendAddressPoolGet' of 'LoadBalancerBackendAddressPools/get' -WARNING: Did not generate example 'LoadBalancerBackendAddressPoolGet' of 'LoadBalancerBackendAddressPools/get' -WARNING: Did not generate example 'LoadBalancerBackendAddressPoolGet' of 'LoadBalancerBackendAddressPools/get' -WARNING: Did not generate example 'LoadBalancerBackendAddressPoolGet' of 'LoadBalancerBackendAddressPools/get' -WARNING: Did not generate example 'LoadBalancerBackendAddressPoolGet' of 'loadBalancerBackendAddressPools/get' -WARNING: Did not generate example 'LoadBalancerBackendAddressPoolGet' of 'loadBalancerBackendAddressPools/get' -WARNING: Did not generate example 'LoadBalancerBackendAddressPoolGet' of 'loadBalancerBackendAddressPools/get' -WARNING: Did not generate example 'LoadBalancerBackendAddressPoolGet' of 'LoadBalancerBackendAddressPools/GetMethod' -WARNING: Did not generate example 'LoadBalancerBackendAddressPoolList' of 'LoadBalancerBackendAddressPools/list_as_lazy' -WARNING: Did not generate example 'LoadBalancerBackendAddressPoolList' of 'LoadBalancerBackendAddressPools/list' -WARNING: Did not generate example 'LoadBalancerBackendAddressPoolList' of 'LoadBalancerBackendAddressPools/list' -WARNING: Did not generate example 'LoadBalancerBackendAddressPoolList' of 'LoadBalancerBackendAddressPools/list' -WARNING: Did not generate example 'LoadBalancerBackendAddressPoolList' of 'LoadBalancerBackendAddressPools/list' -WARNING: Did not generate example 'LoadBalancerBackendAddressPoolList' of 'loadBalancerBackendAddressPools/list' -WARNING: Did not generate example 'LoadBalancerBackendAddressPoolList' of 'loadBalancerBackendAddressPools/list' -WARNING: Did not generate example 'LoadBalancerBackendAddressPoolList' of 'loadBalancerBackendAddressPools/list' -WARNING: Did not generate example 'LoadBalancerBackendAddressPoolList' of 'LoadBalancerBackendAddressPools/ListMethod' -WARNING: Did not generate example 'LoadBalancerFrontendIPConfigurationGet' of 'LoadBalancerFrontendIPConfigurations/get' -WARNING: Did not generate example 'LoadBalancerFrontendIPConfigurationGet' of 'LoadBalancerFrontendIPConfigurations/get' -WARNING: Did not generate example 'LoadBalancerFrontendIPConfigurationGet' of 'LoadBalancerFrontendIPConfigurations/get' -WARNING: Did not generate example 'LoadBalancerFrontendIPConfigurationGet' of 'LoadBalancerFrontendIPConfigurations/get' -WARNING: Did not generate example 'LoadBalancerFrontendIPConfigurationGet' of 'loadBalancerFrontendIPConfigurations/get' -WARNING: Did not generate example 'LoadBalancerFrontendIPConfigurationGet' of 'loadBalancerFrontendIPConfigurations/get' -WARNING: Did not generate example 'LoadBalancerFrontendIPConfigurationGet' of 'loadBalancerFrontendIPConfigurations/get' -WARNING: Did not generate example 'LoadBalancerFrontendIPConfigurationGet' of 'LoadBalancerFrontendIPConfigurations/GetMethod' -WARNING: Did not generate example 'LoadBalancerFrontendIPConfigurationList' of 'LoadBalancerFrontendIPConfigurations/list_as_lazy' -WARNING: Did not generate example 'LoadBalancerFrontendIPConfigurationList' of 'LoadBalancerFrontendIPConfigurations/list' -WARNING: Did not generate example 'LoadBalancerFrontendIPConfigurationList' of 'LoadBalancerFrontendIPConfigurations/list' -WARNING: Did not generate example 'LoadBalancerFrontendIPConfigurationList' of 'LoadBalancerFrontendIPConfigurations/list' -WARNING: Did not generate example 'LoadBalancerFrontendIPConfigurationList' of 'LoadBalancerFrontendIPConfigurations/list' -WARNING: Did not generate example 'LoadBalancerFrontendIPConfigurationList' of 'loadBalancerFrontendIPConfigurations/list' -WARNING: Did not generate example 'LoadBalancerFrontendIPConfigurationList' of 'loadBalancerFrontendIPConfigurations/list' -WARNING: Did not generate example 'LoadBalancerFrontendIPConfigurationList' of 'loadBalancerFrontendIPConfigurations/list' -WARNING: Did not generate example 'LoadBalancerFrontendIPConfigurationList' of 'LoadBalancerFrontendIPConfigurations/ListMethod' -WARNING: Did not generate example 'LoadBalancerLoadBalancingRuleGet' of 'LoadBalancerLoadBalancingRules/get' -WARNING: Did not generate example 'LoadBalancerLoadBalancingRuleGet' of 'LoadBalancerLoadBalancingRules/get' -WARNING: Did not generate example 'LoadBalancerLoadBalancingRuleGet' of 'LoadBalancerLoadBalancingRules/get' -WARNING: Did not generate example 'LoadBalancerLoadBalancingRuleGet' of 'LoadBalancerLoadBalancingRules/get' -WARNING: Did not generate example 'LoadBalancerLoadBalancingRuleGet' of 'loadBalancerLoadBalancingRules/get' -WARNING: Did not generate example 'LoadBalancerLoadBalancingRuleGet' of 'loadBalancerLoadBalancingRules/get' -WARNING: Did not generate example 'LoadBalancerLoadBalancingRuleGet' of 'loadBalancerLoadBalancingRules/get' -WARNING: Did not generate example 'LoadBalancerLoadBalancingRuleGet' of 'LoadBalancerLoadBalancingRules/GetMethod' -WARNING: Did not generate example 'LoadBalancerLoadBalancingRuleList' of 'LoadBalancerLoadBalancingRules/list_as_lazy' -WARNING: Did not generate example 'LoadBalancerLoadBalancingRuleList' of 'LoadBalancerLoadBalancingRules/list' -WARNING: Did not generate example 'LoadBalancerLoadBalancingRuleList' of 'LoadBalancerLoadBalancingRules/list' -WARNING: Did not generate example 'LoadBalancerLoadBalancingRuleList' of 'LoadBalancerLoadBalancingRules/list' -WARNING: Did not generate example 'LoadBalancerLoadBalancingRuleList' of 'LoadBalancerLoadBalancingRules/list' -WARNING: Did not generate example 'LoadBalancerLoadBalancingRuleList' of 'loadBalancerLoadBalancingRules/list' -WARNING: Did not generate example 'LoadBalancerLoadBalancingRuleList' of 'loadBalancerLoadBalancingRules/list' -WARNING: Did not generate example 'LoadBalancerLoadBalancingRuleList' of 'loadBalancerLoadBalancingRules/list' -WARNING: Did not generate example 'LoadBalancerLoadBalancingRuleList' of 'LoadBalancerLoadBalancingRules/ListMethod' -WARNING: Did not generate example 'LoadBalancerNetworkInterfaceListSimple' of 'LoadBalancerNetworkInterfaces/list_as_lazy' -WARNING: Did not generate example 'LoadBalancerNetworkInterfaceListSimple' of 'LoadBalancerNetworkInterfaces/list' -WARNING: Did not generate example 'LoadBalancerNetworkInterfaceListSimple' of 'LoadBalancerNetworkInterfaces/list' -WARNING: Did not generate example 'LoadBalancerNetworkInterfaceListSimple' of 'LoadBalancerNetworkInterfaces/list' -WARNING: Did not generate example 'LoadBalancerNetworkInterfaceListSimple' of 'LoadBalancerNetworkInterfaces/list' -WARNING: Did not generate example 'LoadBalancerNetworkInterfaceListSimple' of 'loadBalancerNetworkInterfaces/list' -WARNING: Did not generate example 'LoadBalancerNetworkInterfaceListSimple' of 'loadBalancerNetworkInterfaces/list' -WARNING: Did not generate example 'LoadBalancerNetworkInterfaceListSimple' of 'loadBalancerNetworkInterfaces/list' -WARNING: Did not generate example 'LoadBalancerNetworkInterfaceListSimple' of 'LoadBalancerNetworkInterfaces/ListMethod' -WARNING: Did not generate example 'LoadBalancerNetworkInterfaceListVmss' of 'LoadBalancerNetworkInterfaces/list_as_lazy' -WARNING: Did not generate example 'LoadBalancerNetworkInterfaceListVmss' of 'LoadBalancerNetworkInterfaces/list' -WARNING: Did not generate example 'LoadBalancerNetworkInterfaceListVmss' of 'LoadBalancerNetworkInterfaces/list' -WARNING: Did not generate example 'LoadBalancerNetworkInterfaceListVmss' of 'LoadBalancerNetworkInterfaces/list' -WARNING: Did not generate example 'LoadBalancerNetworkInterfaceListVmss' of 'LoadBalancerNetworkInterfaces/list' -WARNING: Did not generate example 'LoadBalancerNetworkInterfaceListVmss' of 'loadBalancerNetworkInterfaces/list' -WARNING: Did not generate example 'LoadBalancerNetworkInterfaceListVmss' of 'loadBalancerNetworkInterfaces/list' -WARNING: Did not generate example 'LoadBalancerNetworkInterfaceListVmss' of 'loadBalancerNetworkInterfaces/list' -WARNING: Did not generate example 'LoadBalancerNetworkInterfaceListVmss' of 'LoadBalancerNetworkInterfaces/ListMethod' -WARNING: Did not generate example 'LoadBalancerProbeGet' of 'LoadBalancerProbes/get' -WARNING: Did not generate example 'LoadBalancerProbeGet' of 'LoadBalancerProbes/get' -WARNING: Did not generate example 'LoadBalancerProbeGet' of 'LoadBalancerProbes/get' -WARNING: Did not generate example 'LoadBalancerProbeGet' of 'LoadBalancerProbes/get' -WARNING: Did not generate example 'LoadBalancerProbeGet' of 'loadBalancerProbes/get' -WARNING: Did not generate example 'LoadBalancerProbeGet' of 'loadBalancerProbes/get' -WARNING: Did not generate example 'LoadBalancerProbeGet' of 'loadBalancerProbes/get' -WARNING: Did not generate example 'LoadBalancerProbeGet' of 'LoadBalancerProbes/GetMethod' -WARNING: Did not generate example 'LoadBalancerProbeList' of 'LoadBalancerProbes/list_as_lazy' -WARNING: Did not generate example 'LoadBalancerProbeList' of 'LoadBalancerProbes/list' -WARNING: Did not generate example 'LoadBalancerProbeList' of 'LoadBalancerProbes/list' -WARNING: Did not generate example 'LoadBalancerProbeList' of 'LoadBalancerProbes/list' -WARNING: Did not generate example 'LoadBalancerProbeList' of 'LoadBalancerProbes/list' -WARNING: Did not generate example 'LoadBalancerProbeList' of 'loadBalancerProbes/list' -WARNING: Did not generate example 'LoadBalancerProbeList' of 'loadBalancerProbes/list' -WARNING: Did not generate example 'LoadBalancerProbeList' of 'loadBalancerProbes/list' -WARNING: Did not generate example 'LoadBalancerProbeList' of 'LoadBalancerProbes/ListMethod' -WARNING: Did not generate example 'NetworkInterfaceIPConfigurationGet' of 'NetworkInterfaceIPConfigurations/get' -WARNING: Did not generate example 'NetworkInterfaceIPConfigurationGet' of 'NetworkInterfaceIPConfigurations/get' -WARNING: Did not generate example 'NetworkInterfaceIPConfigurationGet' of 'NetworkInterfaceIPConfigurations/get' -WARNING: Did not generate example 'NetworkInterfaceIPConfigurationGet' of 'NetworkInterfaceIPConfigurations/get' -WARNING: Did not generate example 'NetworkInterfaceIPConfigurationGet' of 'networkInterfaceIPConfigurations/get' -WARNING: Did not generate example 'NetworkInterfaceIPConfigurationGet' of 'networkInterfaceIPConfigurations/get' -WARNING: Did not generate example 'NetworkInterfaceIPConfigurationGet' of 'networkInterfaceIPConfigurations/get' -WARNING: Did not generate example 'NetworkInterfaceIPConfigurationGet' of 'NetworkInterfaceIPConfigurations/GetMethod' -WARNING: Did not generate example 'NetworkInterfaceIPConfigurationList' of 'NetworkInterfaceIPConfigurations/list_as_lazy' -WARNING: Did not generate example 'NetworkInterfaceIPConfigurationList' of 'NetworkInterfaceIPConfigurations/list' -WARNING: Did not generate example 'NetworkInterfaceIPConfigurationList' of 'NetworkInterfaceIPConfigurations/list' -WARNING: Did not generate example 'NetworkInterfaceIPConfigurationList' of 'NetworkInterfaceIPConfigurations/list' -WARNING: Did not generate example 'NetworkInterfaceIPConfigurationList' of 'NetworkInterfaceIPConfigurations/list' -WARNING: Did not generate example 'NetworkInterfaceIPConfigurationList' of 'networkInterfaceIPConfigurations/list' -WARNING: Did not generate example 'NetworkInterfaceIPConfigurationList' of 'networkInterfaceIPConfigurations/list' -WARNING: Did not generate example 'NetworkInterfaceIPConfigurationList' of 'networkInterfaceIPConfigurations/list' -WARNING: Did not generate example 'NetworkInterfaceIPConfigurationList' of 'NetworkInterfaceIPConfigurations/ListMethod' -WARNING: Did not generate example 'NetworkInterfaceLoadBalancerList' of 'NetworkInterfaceLoadBalancers/list_as_lazy' -WARNING: Did not generate example 'NetworkInterfaceLoadBalancerList' of 'NetworkInterfaceLoadBalancers/list' -WARNING: Did not generate example 'NetworkInterfaceLoadBalancerList' of 'NetworkInterfaceLoadBalancers/list' -WARNING: Did not generate example 'NetworkInterfaceLoadBalancerList' of 'NetworkInterfaceLoadBalancers/list' -WARNING: Did not generate example 'NetworkInterfaceLoadBalancerList' of 'NetworkInterfaceLoadBalancers/list' -WARNING: Did not generate example 'NetworkInterfaceLoadBalancerList' of 'networkInterfaceLoadBalancers/list' -WARNING: Did not generate example 'NetworkInterfaceLoadBalancerList' of 'networkInterfaceLoadBalancers/list' -WARNING: Did not generate example 'NetworkInterfaceLoadBalancerList' of 'networkInterfaceLoadBalancers/list' -WARNING: Did not generate example 'NetworkInterfaceLoadBalancerList' of 'NetworkInterfaceLoadBalancers/ListMethod' -WARNING: Did not generate example 'Show network interface effective route tables' of 'networkInterfaces/beginGetEffectiveRouteTable' -WARNING: Did not generate example 'Show network interface effective route tables' of 'networkInterfaces/beginGetEffectiveRouteTable' -WARNING: Did not generate example 'Show network interface effective route tables' of 'NetworkInterfaces/get_effective_route_table' -WARNING: Did not generate example 'Show network interface effective route tables' of 'NetworkInterfaces/get_effective_route_table' -WARNING: Did not generate example 'Show network interface effective route tables' of 'NetworkInterfaces/getEffectiveRouteTable' -WARNING: Did not generate example 'Show network interface effective route tables' of 'NetworkInterfaces/getEffectiveRouteTable' -WARNING: Did not generate example 'Show network interface effective route tables' of 'networkInterfaces/getEffectiveRouteTable' -WARNING: Did not generate example 'Show network interface effective route tables' of 'networkInterfaces/getEffectiveRouteTable' -WARNING: Did not generate example 'Show network interface effective route tables' of 'networkInterfaces/getEffectiveRouteTable' -WARNING: Did not generate example 'Show network interface effective route tables' of 'NetworkInterfaces/GetEffectiveRouteTableMethod' diff --git a/Samples/openapi-v2/3g-require-config/.gitignore b/Samples/openapi-v2/3g-require-config/.gitignore deleted file mode 100644 index 12a563cd1d..0000000000 --- a/Samples/openapi-v2/3g-require-config/.gitignore +++ /dev/null @@ -1,2 +0,0 @@ -Client/* -!Client/SwaggerPetstore.cs \ No newline at end of file diff --git a/Samples/openapi-v2/3g-require-config/Client/SwaggerPetstore.cs b/Samples/openapi-v2/3g-require-config/Client/SwaggerPetstore.cs deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/3g-require-config/Client/SwaggerPetstore.cs +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git "a/Samples/openapi-v2/3g-require-config/p\303\251tst\303\266re.json" "b/Samples/openapi-v2/3g-require-config/p\303\251tst\303\266re.json" deleted file mode 100644 index 8445743d70..0000000000 --- "a/Samples/openapi-v2/3g-require-config/p\303\251tst\303\266re.json" +++ /dev/null @@ -1,1109 +0,0 @@ -{ - "swagger": "2.0", - "info": { - "description": "This is a sample server Petstore server. You can find out more about Swagger at http://swagger.io or on irc.freenode.net, #swagger. For this sample, you can use the api key \"special-key\" to test the authorization filters", - "version": "1.0.0", - "title": "Swagger Petstore", - "termsOfService": "http://swagger.io/terms/", - "contact": { - "email": "apiteam@swagger.io" - }, - "license": { - "name": "Apache 2.0", - "url": "http://www.apache.org/licenses/LICENSE-2.0.html" - } - }, - "host": "petstore.swagger.io", - "basePath": "/v2", - "schemes": [ - "http" - ], - "paths": { - "/pet?testing_byte_array=true": { - "post": { - "tags": [ - "pet" - ], - "summary": "Fake endpoint to test byte array in body parameter for adding a new pet to the store", - "description": "", - "operationId": "addPetUsingByteArray", - "consumes": [ - "application/json", - "application/xml" - ], - "produces": [ - "application/json", - "application/xml" - ], - "parameters": [ - { - "in": "body", - "name": "body", - "description": "Pet object in the form of byte array", - "required": false, - "schema": { - "type": "string", - "format": "binary" - } - } - ], - "responses": { - "405": { - "description": "Invalid input" - } - }, - "security": [ - { - "petstore_auth": [ - "write:pets", - "read:pets" - ] - } - ] - } - }, - "/pet": { - "post": { - "tags": [ - "pet" - ], - "summary": "Add a new pet to the store", - "description": "Adds a new pet to the store. You may receive an HTTP invalid input if your pet is invalid.", - "operationId": "addPet", - "consumes": [ - "application/json", - "application/xml" - ], - "produces": [ - "application/json", - "application/xml" - ], - "parameters": [ - { - "in": "body", - "name": "body", - "description": "Pet object that needs to be added to the store", - "required": false, - "schema": { - "$ref": "#/definitions/Pet" - } - } - ], - "responses": { - "405": { - "description": "Invalid input" - } - }, - "security": [ - { - "petstore_auth": [ - "write:pets", - "read:pets" - ] - } - ] - }, - "put": { - "tags": [ - "pet" - ], - "summary": "Update an existing pet", - "description": "", - "operationId": "updatePet", - "consumes": [ - "application/json", - "application/xml" - ], - "produces": [ - "application/json", - "application/xml" - ], - "parameters": [ - { - "in": "body", - "name": "body", - "description": "Pet object that needs to be added to the store", - "required": false, - "schema": { - "$ref": "#/definitions/Pet" - } - } - ], - "responses": { - "405": { - "description": "Validation exception" - }, - "404": { - "description": "Pet not found" - }, - "400": { - "description": "Invalid ID supplied" - } - }, - "security": [ - { - "petstore_auth": [ - "write:pets", - "read:pets" - ] - } - ] - } - }, - "/pet/findByStatus": { - "get": { - "tags": [ - "pet" - ], - "summary": "Finds Pets by status", - "description": "Multiple status values can be provided with comma seperated strings", - "operationId": "findPetsByStatus", - "produces": [ - "application/json", - "application/xml" - ], - "parameters": [ - { - "name": "status", - "in": "query", - "description": "Status values that need to be considered for filter", - "required": false, - "type": "array", - "items": { - "type": "string" - }, - "collectionFormat": "csv", - "default": "available" - } - ], - "responses": { - "200": { - "description": "successful operation", - "schema": { - "type": "array", - "items": { - "$ref": "#/definitions/Pet" - } - } - }, - "400": { - "description": "Invalid status value" - } - }, - "security": [ - { - "petstore_auth": [ - "write:pets", - "read:pets" - ] - } - ] - } - }, - "/pet/findByTags": { - "get": { - "tags": [ - "pet" - ], - "summary": "Finds Pets by tags", - "description": "Muliple tags can be provided with comma seperated strings. Use tag1, tag2, tag3 for testing.", - "operationId": "findPetsByTags", - "produces": [ - "application/json", - "application/xml" - ], - "parameters": [ - { - "name": "tags", - "in": "query", - "description": "Tags to filter by", - "required": false, - "type": "array", - "items": { - "type": "string" - }, - "collectionFormat": "csv" - } - ], - "responses": { - "200": { - "description": "successful operation", - "schema": { - "type": "array", - "items": { - "$ref": "#/definitions/Pet" - } - } - }, - "400": { - "description": "Invalid tag value" - } - }, - "security": [ - { - "petstore_auth": [ - "write:pets", - "read:pets" - ] - } - ] - } - }, - "/pet/{petId}?testing_byte_array=true": { - "get": { - "tags": [ - "pet" - ], - "summary": "Fake endpoint to test byte array return by 'Find pet by ID'", - "description": "Returns a pet when ID < 10. ID > 10 or nonintegers will simulate API error conditions", - "operationId": "findPetsWithByteArray", - "produces": [ - "application/json", - "application/xml" - ], - "parameters": [ - { - "name": "petId", - "in": "path", - "description": "ID of pet that needs to be fetched", - "required": true, - "type": "integer", - "format": "int64" - } - ], - "responses": { - "404": { - "description": "Pet not found" - }, - "200": { - "description": "successful operation", - "schema": { - "type": "string", - "format": "binary" - } - }, - "400": { - "description": "Invalid ID supplied" - } - }, - "security": [ - { - "api_key": [] - }, - { - "petstore_auth": [ - "write:pets", - "read:pets" - ] - } - ] - } - }, - "/pet/{petId}": { - "get": { - "tags": [ - "pet" - ], - "summary": "Find pet by ID", - "description": "Returns a pet when ID < 10. ID > 10 or nonintegers will simulate API error conditions", - "operationId": "getPetById", - "produces": [ - "application/json", - "application/xml" - ], - "parameters": [ - { - "name": "petId", - "in": "path", - "description": "ID of pet that needs to be fetched", - "required": true, - "type": "integer", - "format": "int64" - } - ], - "responses": { - "404": { - "description": "Pet not found" - }, - "200": { - "description": "successful operation", - "schema": { - "$ref": "#/definitions/Pet" - } - }, - "400": { - "description": "Invalid ID supplied" - } - }, - "security": [ - { - "api_key": [] - }, - { - "petstore_auth": [ - "write:pets", - "read:pets" - ] - } - ] - }, - "post": { - "tags": [ - "pet" - ], - "summary": "Updates a pet in the store with form data", - "description": "", - "operationId": "updatePetWithForm", - "consumes": [ - "application/x-www-form-urlencoded" - ], - "produces": [ - "application/json", - "application/xml" - ], - "parameters": [ - { - "name": "petId", - "in": "path", - "description": "ID of pet that needs to be updated", - "required": true, - "type": "string" - }, - { - "name": "name", - "in": "formData", - "description": "Updated name of the pet", - "required": false, - "type": "string" - }, - { - "name": "status", - "in": "formData", - "description": "Updated status of the pet", - "required": false, - "type": "string" - } - ], - "responses": { - "405": { - "description": "Invalid input" - } - }, - "security": [ - { - "petstore_auth": [ - "write:pets", - "read:pets" - ] - } - ] - }, - "delete": { - "tags": [ - "pet" - ], - "summary": "Deletes a pet", - "description": "", - "operationId": "deletePet", - "produces": [ - "application/json", - "application/xml" - ], - "parameters": [ - { - "name": "api_key", - "in": "header", - "description": "", - "required": false, - "type": "string" - }, - { - "name": "petId", - "in": "path", - "description": "Pet id to delete", - "required": true, - "type": "integer", - "format": "int64" - } - ], - "responses": { - "400": { - "description": "Invalid pet value" - } - }, - "security": [ - { - "petstore_auth": [ - "write:pets", - "read:pets" - ] - } - ] - } - }, - "/pet/{petId}/uploadImage": { - "post": { - "tags": [ - "pet" - ], - "summary": "uploads an image", - "description": "", - "operationId": "uploadFile", - "consumes": [ - "multipart/form-data" - ], - "produces": [ - "application/json", - "application/xml" - ], - "parameters": [ - { - "name": "petId", - "in": "path", - "description": "ID of pet to update", - "required": true, - "type": "integer", - "format": "int64" - }, - { - "name": "additionalMetadata", - "in": "formData", - "description": "Additional data to pass to server", - "required": false, - "type": "string" - }, - { - "name": "file", - "in": "formData", - "description": "file to upload", - "required": false, - "type": "file" - } - ], - "responses": { - "default": { - "description": "successful operation" - } - }, - "security": [ - { - "petstore_auth": [ - "write:pets", - "read:pets" - ] - } - ] - } - }, - "/store/inventory": { - "get": { - "tags": [ - "store" - ], - "summary": "Returns pet inventories by status", - "description": "Returns a map of status codes to quantities", - "operationId": "getInventory", - "produces": [ - "application/json", - "application/xml" - ], - "responses": { - "200": { - "description": "successful operation", - "schema": { - "type": "object", - "additionalProperties": { - "type": "integer", - "format": "int32" - } - } - } - }, - "security": [ - { - "api_key": [] - } - ] - } - }, - "/store/order": { - "post": { - "tags": [ - "store" - ], - "summary": "Place an order for a pet", - "description": "", - "operationId": "placeOrder", - "produces": [ - "application/json", - "application/xml" - ], - "parameters": [ - { - "in": "body", - "name": "body", - "description": "order placed for purchasing the pet", - "required": false, - "schema": { - "$ref": "#/definitions/Order" - } - } - ], - "responses": { - "200": { - "description": "successful operation", - "schema": { - "$ref": "#/definitions/Order" - } - }, - "400": { - "description": "Invalid Order" - } - }, - "security": [ - { - "test_api_client_id": [], - "test_api_client_secret": [] - } - ] - } - }, - "/store/order/{orderId}": { - "get": { - "tags": [ - "store" - ], - "summary": "Find purchase order by ID", - "description": "For valid response try integer IDs with value <= 5 or > 10. Other values will generated exceptions", - "operationId": "getOrderById", - "produces": [ - "application/json", - "application/xml" - ], - "parameters": [ - { - "name": "orderId", - "in": "path", - "description": "ID of pet that needs to be fetched", - "required": true, - "type": "string" - } - ], - "responses": { - "404": { - "description": "Order not found" - }, - "200": { - "description": "successful operation", - "schema": { - "$ref": "#/definitions/Order" - } - }, - "400": { - "description": "Invalid ID supplied" - } - }, - "security": [ - { - "test_api_key_header": [] - }, - { - "test_api_key_query": [] - } - ] - }, - "delete": { - "tags": [ - "store" - ], - "summary": "Delete purchase order by ID", - "description": "For valid response try integer IDs with value < 1000. Anything above 1000 or nonintegers will generate API errors", - "operationId": "deleteOrder", - "produces": [ - "application/json", - "application/xml" - ], - "parameters": [ - { - "name": "orderId", - "in": "path", - "description": "ID of the order that needs to be deleted", - "required": true, - "type": "string" - } - ], - "responses": { - "404": { - "description": "Order not found" - }, - "400": { - "description": "Invalid ID supplied" - } - } - } - }, - "/user": { - "post": { - "tags": [ - "user" - ], - "summary": "Create user", - "description": "This can only be done by the logged in user.", - "operationId": "createUser", - "produces": [ - "application/json", - "application/xml" - ], - "parameters": [ - { - "in": "body", - "name": "body", - "description": "Created user object", - "required": false, - "schema": { - "$ref": "#/definitions/User" - } - } - ], - "responses": { - "default": { - "description": "successful operation" - } - } - } - }, - "/user/createWithArray": { - "post": { - "tags": [ - "user" - ], - "summary": "Creates list of users with given input array", - "description": "", - "operationId": "createUsersWithArrayInput", - "produces": [ - "application/json", - "application/xml" - ], - "parameters": [ - { - "in": "body", - "name": "body", - "description": "List of user object", - "required": false, - "schema": { - "type": "array", - "items": { - "$ref": "#/definitions/User" - } - } - } - ], - "responses": { - "default": { - "description": "successful operation" - } - } - } - }, - "/user/createWithList": { - "post": { - "tags": [ - "user" - ], - "summary": "Creates list of users with given input array", - "description": "", - "operationId": "createUsersWithListInput", - "produces": [ - "application/json", - "application/xml" - ], - "parameters": [ - { - "in": "body", - "name": "body", - "description": "List of user object", - "required": false, - "schema": { - "type": "array", - "items": { - "$ref": "#/definitions/User" - } - } - } - ], - "responses": { - "default": { - "description": "successful operation" - } - } - } - }, - "/user/login": { - "get": { - "tags": [ - "user" - ], - "summary": "Logs user into the system", - "description": "", - "operationId": "loginUser", - "produces": [ - "application/json", - "application/xml" - ], - "parameters": [ - { - "name": "username", - "in": "query", - "description": "The user name for login", - "required": false, - "type": "string" - }, - { - "name": "password", - "in": "query", - "description": "The password for login in clear text", - "required": false, - "type": "string" - } - ], - "responses": { - "200": { - "description": "successful operation", - "schema": { - "type": "string" - } - }, - "400": { - "description": "Invalid username/password supplied" - } - } - } - }, - "/user/logout": { - "get": { - "tags": [ - "user" - ], - "summary": "Logs out current logged in user session", - "description": "", - "operationId": "logoutUser", - "produces": [ - "application/json", - "application/xml" - ], - "responses": { - "default": { - "description": "successful operation" - } - } - } - }, - "/user/{username}": { - "get": { - "tags": [ - "user" - ], - "summary": "Get user by user name", - "description": "", - "operationId": "getUserByName", - "produces": [ - "application/json", - "application/xml" - ], - "parameters": [ - { - "name": "username", - "in": "path", - "description": "The name that needs to be fetched. Use user1 for testing. ", - "required": true, - "type": "string" - } - ], - "responses": { - "404": { - "description": "User not found" - }, - "200": { - "description": "successful operation", - "schema": { - "$ref": "#/definitions/User" - }, - "examples": { - "application/json": { - "id": 1, - "username": "johnp", - "firstName": "John", - "lastName": "Public", - "email": "johnp@swagger.io", - "password": "-secret-", - "phone": "0123456789", - "userStatus": 0 - } - } - }, - "400": { - "description": "Invalid username supplied" - } - } - }, - "put": { - "tags": [ - "user" - ], - "summary": "Updated user", - "description": "This can only be done by the logged in user.", - "operationId": "updateUser", - "produces": [ - "application/json", - "application/xml" - ], - "parameters": [ - { - "name": "username", - "in": "path", - "description": "name that need to be deleted", - "required": true, - "type": "string" - }, - { - "in": "body", - "name": "body", - "description": "Updated user object", - "required": false, - "schema": { - "$ref": "#/definitions/User" - } - } - ], - "responses": { - "404": { - "description": "User not found" - }, - "400": { - "description": "Invalid user supplied" - } - } - }, - "delete": { - "tags": [ - "user" - ], - "summary": "Delete user", - "description": "This can only be done by the logged in user.", - "operationId": "deleteUser", - "produces": [ - "application/json", - "application/xml" - ], - "parameters": [ - { - "name": "username", - "in": "path", - "description": "The name that needs to be deleted", - "required": true, - "type": "string" - } - ], - "responses": { - "404": { - "description": "User not found" - }, - "400": { - "description": "Invalid username supplied" - } - } - } - } - }, - "securityDefinitions": { - "api_key": { - "type": "apiKey", - "name": "api_key", - "in": "header" - }, - "petstore_auth": { - "type": "oauth2", - "authorizationUrl": "http://petstore.swagger.io/api/oauth/dialog", - "flow": "implicit", - "scopes": { - "write:pets": "modify pets in your account", - "read:pets": "read your pets" - } - }, - "test_api_client_id": { - "type": "apiKey", - "name": "x-test_api_client_id", - "in": "header" - }, - "test_api_client_secret": { - "type": "apiKey", - "name": "x-test_api_client_secret", - "in": "header" - }, - "test_api_key_header": { - "type": "apiKey", - "name": "test_api_key_header", - "in": "header" - }, - "test_api_key_query": { - "type": "apiKey", - "name": "test_api_key_query", - "in": "query" - } - }, - "definitions": { - "User": { - "properties": { - "id": { - "type": "integer", - "format": "int64" - }, - "username": { - "type": "string" - }, - "firstName": { - "type": "string" - }, - "lastName": { - "type": "string" - }, - "email": { - "type": "string" - }, - "password": { - "type": "string" - }, - "phone": { - "type": "string" - }, - "userStatus": { - "type": "integer", - "format": "int32", - "description": "User Status" - } - }, - "xml": { - "name": "User" - } - }, - "Category": { - "properties": { - "id": { - "type": "integer", - "format": "int64" - }, - "name": { - "type": "string" - } - }, - "xml": { - "name": "Category" - } - }, - "Pet": { - "required": [ - "name", - "photoUrls" - ], - "properties": { - "id": { - "type": "integer", - "format": "int64", - "title": "The id of the pet.", - "description": "A more detailed description of the id of the pet." - }, - "category": { - "$ref": "#/definitions/Category" - }, - "name": { - "type": "string", - "example": "doggie" - }, - "photoUrls": { - "type": "array", - "xml": { - "name": "photoUrl", - "wrapped": true - }, - "items": { - "type": "string" - } - }, - "tags": { - "type": "array", - "xml": { - "name": "tag", - "wrapped": true - }, - "items": { - "$ref": "#/definitions/Tag" - } - }, - "status": { - "type": "string", - "description": "pet status in the store", - "enum": [ - "available", - "pending", - "sold" - ] - } - }, - "title": "A pet", - "description": "A group of properties representing a pet.", - "xml": { - "name": "Pet" - } - }, - "Tag": { - "properties": { - "id": { - "type": "integer", - "format": "int64" - }, - "name": { - "type": "string" - } - }, - "xml": { - "name": "Tag" - } - }, - "Order": { - "properties": { - "id": { - "type": "integer", - "format": "int64", - "readOnly": true - }, - "petId": { - "type": "integer", - "format": "int64" - }, - "quantity": { - "type": "integer", - "format": "int32" - }, - "shipDate": { - "type": "string", - "format": "date-time" - }, - "status": { - "type": "string", - "description": "Order Status", - "enum": [ - "placed", - "approved", - "delivered" - ] - }, - "complete": { - "type": "boolean" - } - }, - "xml": { - "name": "Order" - } - } - } -} \ No newline at end of file diff --git a/Samples/openapi-v2/3g-require-config/readme.md b/Samples/openapi-v2/3g-require-config/readme.md deleted file mode 100644 index 3e5c170d68..0000000000 --- a/Samples/openapi-v2/3g-require-config/readme.md +++ /dev/null @@ -1,20 +0,0 @@ -# Scenario: Include further configuration files - -> see https://aka.ms/autorest - - -One can include other configuration files into the current one using `require`: - -``` yaml -require: # can be a single relative/absolute path/URL or an array of such - - ../1a-code-generation-minimal/readme.md -``` - -However, note that paths within included configuration files will be resolved relative to *this* file instead of the included one. -This becomes relevant for `input-file`s or further `require`s in referenced files. -Use `require` together with `batch` mode and `base-folder` if the intent is to invoke AutoRest on other, self-contained configuration files. - -Common use cases for external configuration files include extracting and reusing: -- verbose code generation settings -- large numbers of directives -- declarations \ No newline at end of file diff --git a/Samples/openapi-v2/3g-require-config/shell/code.txt b/Samples/openapi-v2/3g-require-config/shell/code.txt deleted file mode 100644 index c227083464..0000000000 --- a/Samples/openapi-v2/3g-require-config/shell/code.txt +++ /dev/null @@ -1 +0,0 @@ -0 \ No newline at end of file diff --git a/Samples/openapi-v2/3g-require-config/shell/stderr.txt b/Samples/openapi-v2/3g-require-config/shell/stderr.txt deleted file mode 100644 index 8b13789179..0000000000 --- a/Samples/openapi-v2/3g-require-config/shell/stderr.txt +++ /dev/null @@ -1 +0,0 @@ - diff --git a/Samples/openapi-v2/3g-require-config/shell/stdout.txt b/Samples/openapi-v2/3g-require-config/shell/stdout.txt deleted file mode 100644 index 17d46a9413..0000000000 --- a/Samples/openapi-v2/3g-require-config/shell/stdout.txt +++ /dev/null @@ -1 +0,0 @@ -https://aka.ms/autorest diff --git a/Samples/openapi-v2/3h-try-require/.gitignore b/Samples/openapi-v2/3h-try-require/.gitignore deleted file mode 100644 index 12a563cd1d..0000000000 --- a/Samples/openapi-v2/3h-try-require/.gitignore +++ /dev/null @@ -1,2 +0,0 @@ -Client/* -!Client/SwaggerPetstore.cs \ No newline at end of file diff --git a/Samples/openapi-v2/3h-try-require/Client/SwaggerPetstore.cs b/Samples/openapi-v2/3h-try-require/Client/SwaggerPetstore.cs deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v2/3h-try-require/Client/SwaggerPetstore.cs +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git "a/Samples/openapi-v2/3h-try-require/p\303\251tst\303\266re.json" "b/Samples/openapi-v2/3h-try-require/p\303\251tst\303\266re.json" deleted file mode 100644 index 8445743d70..0000000000 --- "a/Samples/openapi-v2/3h-try-require/p\303\251tst\303\266re.json" +++ /dev/null @@ -1,1109 +0,0 @@ -{ - "swagger": "2.0", - "info": { - "description": "This is a sample server Petstore server. You can find out more about Swagger at http://swagger.io or on irc.freenode.net, #swagger. For this sample, you can use the api key \"special-key\" to test the authorization filters", - "version": "1.0.0", - "title": "Swagger Petstore", - "termsOfService": "http://swagger.io/terms/", - "contact": { - "email": "apiteam@swagger.io" - }, - "license": { - "name": "Apache 2.0", - "url": "http://www.apache.org/licenses/LICENSE-2.0.html" - } - }, - "host": "petstore.swagger.io", - "basePath": "/v2", - "schemes": [ - "http" - ], - "paths": { - "/pet?testing_byte_array=true": { - "post": { - "tags": [ - "pet" - ], - "summary": "Fake endpoint to test byte array in body parameter for adding a new pet to the store", - "description": "", - "operationId": "addPetUsingByteArray", - "consumes": [ - "application/json", - "application/xml" - ], - "produces": [ - "application/json", - "application/xml" - ], - "parameters": [ - { - "in": "body", - "name": "body", - "description": "Pet object in the form of byte array", - "required": false, - "schema": { - "type": "string", - "format": "binary" - } - } - ], - "responses": { - "405": { - "description": "Invalid input" - } - }, - "security": [ - { - "petstore_auth": [ - "write:pets", - "read:pets" - ] - } - ] - } - }, - "/pet": { - "post": { - "tags": [ - "pet" - ], - "summary": "Add a new pet to the store", - "description": "Adds a new pet to the store. You may receive an HTTP invalid input if your pet is invalid.", - "operationId": "addPet", - "consumes": [ - "application/json", - "application/xml" - ], - "produces": [ - "application/json", - "application/xml" - ], - "parameters": [ - { - "in": "body", - "name": "body", - "description": "Pet object that needs to be added to the store", - "required": false, - "schema": { - "$ref": "#/definitions/Pet" - } - } - ], - "responses": { - "405": { - "description": "Invalid input" - } - }, - "security": [ - { - "petstore_auth": [ - "write:pets", - "read:pets" - ] - } - ] - }, - "put": { - "tags": [ - "pet" - ], - "summary": "Update an existing pet", - "description": "", - "operationId": "updatePet", - "consumes": [ - "application/json", - "application/xml" - ], - "produces": [ - "application/json", - "application/xml" - ], - "parameters": [ - { - "in": "body", - "name": "body", - "description": "Pet object that needs to be added to the store", - "required": false, - "schema": { - "$ref": "#/definitions/Pet" - } - } - ], - "responses": { - "405": { - "description": "Validation exception" - }, - "404": { - "description": "Pet not found" - }, - "400": { - "description": "Invalid ID supplied" - } - }, - "security": [ - { - "petstore_auth": [ - "write:pets", - "read:pets" - ] - } - ] - } - }, - "/pet/findByStatus": { - "get": { - "tags": [ - "pet" - ], - "summary": "Finds Pets by status", - "description": "Multiple status values can be provided with comma seperated strings", - "operationId": "findPetsByStatus", - "produces": [ - "application/json", - "application/xml" - ], - "parameters": [ - { - "name": "status", - "in": "query", - "description": "Status values that need to be considered for filter", - "required": false, - "type": "array", - "items": { - "type": "string" - }, - "collectionFormat": "csv", - "default": "available" - } - ], - "responses": { - "200": { - "description": "successful operation", - "schema": { - "type": "array", - "items": { - "$ref": "#/definitions/Pet" - } - } - }, - "400": { - "description": "Invalid status value" - } - }, - "security": [ - { - "petstore_auth": [ - "write:pets", - "read:pets" - ] - } - ] - } - }, - "/pet/findByTags": { - "get": { - "tags": [ - "pet" - ], - "summary": "Finds Pets by tags", - "description": "Muliple tags can be provided with comma seperated strings. Use tag1, tag2, tag3 for testing.", - "operationId": "findPetsByTags", - "produces": [ - "application/json", - "application/xml" - ], - "parameters": [ - { - "name": "tags", - "in": "query", - "description": "Tags to filter by", - "required": false, - "type": "array", - "items": { - "type": "string" - }, - "collectionFormat": "csv" - } - ], - "responses": { - "200": { - "description": "successful operation", - "schema": { - "type": "array", - "items": { - "$ref": "#/definitions/Pet" - } - } - }, - "400": { - "description": "Invalid tag value" - } - }, - "security": [ - { - "petstore_auth": [ - "write:pets", - "read:pets" - ] - } - ] - } - }, - "/pet/{petId}?testing_byte_array=true": { - "get": { - "tags": [ - "pet" - ], - "summary": "Fake endpoint to test byte array return by 'Find pet by ID'", - "description": "Returns a pet when ID < 10. ID > 10 or nonintegers will simulate API error conditions", - "operationId": "findPetsWithByteArray", - "produces": [ - "application/json", - "application/xml" - ], - "parameters": [ - { - "name": "petId", - "in": "path", - "description": "ID of pet that needs to be fetched", - "required": true, - "type": "integer", - "format": "int64" - } - ], - "responses": { - "404": { - "description": "Pet not found" - }, - "200": { - "description": "successful operation", - "schema": { - "type": "string", - "format": "binary" - } - }, - "400": { - "description": "Invalid ID supplied" - } - }, - "security": [ - { - "api_key": [] - }, - { - "petstore_auth": [ - "write:pets", - "read:pets" - ] - } - ] - } - }, - "/pet/{petId}": { - "get": { - "tags": [ - "pet" - ], - "summary": "Find pet by ID", - "description": "Returns a pet when ID < 10. ID > 10 or nonintegers will simulate API error conditions", - "operationId": "getPetById", - "produces": [ - "application/json", - "application/xml" - ], - "parameters": [ - { - "name": "petId", - "in": "path", - "description": "ID of pet that needs to be fetched", - "required": true, - "type": "integer", - "format": "int64" - } - ], - "responses": { - "404": { - "description": "Pet not found" - }, - "200": { - "description": "successful operation", - "schema": { - "$ref": "#/definitions/Pet" - } - }, - "400": { - "description": "Invalid ID supplied" - } - }, - "security": [ - { - "api_key": [] - }, - { - "petstore_auth": [ - "write:pets", - "read:pets" - ] - } - ] - }, - "post": { - "tags": [ - "pet" - ], - "summary": "Updates a pet in the store with form data", - "description": "", - "operationId": "updatePetWithForm", - "consumes": [ - "application/x-www-form-urlencoded" - ], - "produces": [ - "application/json", - "application/xml" - ], - "parameters": [ - { - "name": "petId", - "in": "path", - "description": "ID of pet that needs to be updated", - "required": true, - "type": "string" - }, - { - "name": "name", - "in": "formData", - "description": "Updated name of the pet", - "required": false, - "type": "string" - }, - { - "name": "status", - "in": "formData", - "description": "Updated status of the pet", - "required": false, - "type": "string" - } - ], - "responses": { - "405": { - "description": "Invalid input" - } - }, - "security": [ - { - "petstore_auth": [ - "write:pets", - "read:pets" - ] - } - ] - }, - "delete": { - "tags": [ - "pet" - ], - "summary": "Deletes a pet", - "description": "", - "operationId": "deletePet", - "produces": [ - "application/json", - "application/xml" - ], - "parameters": [ - { - "name": "api_key", - "in": "header", - "description": "", - "required": false, - "type": "string" - }, - { - "name": "petId", - "in": "path", - "description": "Pet id to delete", - "required": true, - "type": "integer", - "format": "int64" - } - ], - "responses": { - "400": { - "description": "Invalid pet value" - } - }, - "security": [ - { - "petstore_auth": [ - "write:pets", - "read:pets" - ] - } - ] - } - }, - "/pet/{petId}/uploadImage": { - "post": { - "tags": [ - "pet" - ], - "summary": "uploads an image", - "description": "", - "operationId": "uploadFile", - "consumes": [ - "multipart/form-data" - ], - "produces": [ - "application/json", - "application/xml" - ], - "parameters": [ - { - "name": "petId", - "in": "path", - "description": "ID of pet to update", - "required": true, - "type": "integer", - "format": "int64" - }, - { - "name": "additionalMetadata", - "in": "formData", - "description": "Additional data to pass to server", - "required": false, - "type": "string" - }, - { - "name": "file", - "in": "formData", - "description": "file to upload", - "required": false, - "type": "file" - } - ], - "responses": { - "default": { - "description": "successful operation" - } - }, - "security": [ - { - "petstore_auth": [ - "write:pets", - "read:pets" - ] - } - ] - } - }, - "/store/inventory": { - "get": { - "tags": [ - "store" - ], - "summary": "Returns pet inventories by status", - "description": "Returns a map of status codes to quantities", - "operationId": "getInventory", - "produces": [ - "application/json", - "application/xml" - ], - "responses": { - "200": { - "description": "successful operation", - "schema": { - "type": "object", - "additionalProperties": { - "type": "integer", - "format": "int32" - } - } - } - }, - "security": [ - { - "api_key": [] - } - ] - } - }, - "/store/order": { - "post": { - "tags": [ - "store" - ], - "summary": "Place an order for a pet", - "description": "", - "operationId": "placeOrder", - "produces": [ - "application/json", - "application/xml" - ], - "parameters": [ - { - "in": "body", - "name": "body", - "description": "order placed for purchasing the pet", - "required": false, - "schema": { - "$ref": "#/definitions/Order" - } - } - ], - "responses": { - "200": { - "description": "successful operation", - "schema": { - "$ref": "#/definitions/Order" - } - }, - "400": { - "description": "Invalid Order" - } - }, - "security": [ - { - "test_api_client_id": [], - "test_api_client_secret": [] - } - ] - } - }, - "/store/order/{orderId}": { - "get": { - "tags": [ - "store" - ], - "summary": "Find purchase order by ID", - "description": "For valid response try integer IDs with value <= 5 or > 10. Other values will generated exceptions", - "operationId": "getOrderById", - "produces": [ - "application/json", - "application/xml" - ], - "parameters": [ - { - "name": "orderId", - "in": "path", - "description": "ID of pet that needs to be fetched", - "required": true, - "type": "string" - } - ], - "responses": { - "404": { - "description": "Order not found" - }, - "200": { - "description": "successful operation", - "schema": { - "$ref": "#/definitions/Order" - } - }, - "400": { - "description": "Invalid ID supplied" - } - }, - "security": [ - { - "test_api_key_header": [] - }, - { - "test_api_key_query": [] - } - ] - }, - "delete": { - "tags": [ - "store" - ], - "summary": "Delete purchase order by ID", - "description": "For valid response try integer IDs with value < 1000. Anything above 1000 or nonintegers will generate API errors", - "operationId": "deleteOrder", - "produces": [ - "application/json", - "application/xml" - ], - "parameters": [ - { - "name": "orderId", - "in": "path", - "description": "ID of the order that needs to be deleted", - "required": true, - "type": "string" - } - ], - "responses": { - "404": { - "description": "Order not found" - }, - "400": { - "description": "Invalid ID supplied" - } - } - } - }, - "/user": { - "post": { - "tags": [ - "user" - ], - "summary": "Create user", - "description": "This can only be done by the logged in user.", - "operationId": "createUser", - "produces": [ - "application/json", - "application/xml" - ], - "parameters": [ - { - "in": "body", - "name": "body", - "description": "Created user object", - "required": false, - "schema": { - "$ref": "#/definitions/User" - } - } - ], - "responses": { - "default": { - "description": "successful operation" - } - } - } - }, - "/user/createWithArray": { - "post": { - "tags": [ - "user" - ], - "summary": "Creates list of users with given input array", - "description": "", - "operationId": "createUsersWithArrayInput", - "produces": [ - "application/json", - "application/xml" - ], - "parameters": [ - { - "in": "body", - "name": "body", - "description": "List of user object", - "required": false, - "schema": { - "type": "array", - "items": { - "$ref": "#/definitions/User" - } - } - } - ], - "responses": { - "default": { - "description": "successful operation" - } - } - } - }, - "/user/createWithList": { - "post": { - "tags": [ - "user" - ], - "summary": "Creates list of users with given input array", - "description": "", - "operationId": "createUsersWithListInput", - "produces": [ - "application/json", - "application/xml" - ], - "parameters": [ - { - "in": "body", - "name": "body", - "description": "List of user object", - "required": false, - "schema": { - "type": "array", - "items": { - "$ref": "#/definitions/User" - } - } - } - ], - "responses": { - "default": { - "description": "successful operation" - } - } - } - }, - "/user/login": { - "get": { - "tags": [ - "user" - ], - "summary": "Logs user into the system", - "description": "", - "operationId": "loginUser", - "produces": [ - "application/json", - "application/xml" - ], - "parameters": [ - { - "name": "username", - "in": "query", - "description": "The user name for login", - "required": false, - "type": "string" - }, - { - "name": "password", - "in": "query", - "description": "The password for login in clear text", - "required": false, - "type": "string" - } - ], - "responses": { - "200": { - "description": "successful operation", - "schema": { - "type": "string" - } - }, - "400": { - "description": "Invalid username/password supplied" - } - } - } - }, - "/user/logout": { - "get": { - "tags": [ - "user" - ], - "summary": "Logs out current logged in user session", - "description": "", - "operationId": "logoutUser", - "produces": [ - "application/json", - "application/xml" - ], - "responses": { - "default": { - "description": "successful operation" - } - } - } - }, - "/user/{username}": { - "get": { - "tags": [ - "user" - ], - "summary": "Get user by user name", - "description": "", - "operationId": "getUserByName", - "produces": [ - "application/json", - "application/xml" - ], - "parameters": [ - { - "name": "username", - "in": "path", - "description": "The name that needs to be fetched. Use user1 for testing. ", - "required": true, - "type": "string" - } - ], - "responses": { - "404": { - "description": "User not found" - }, - "200": { - "description": "successful operation", - "schema": { - "$ref": "#/definitions/User" - }, - "examples": { - "application/json": { - "id": 1, - "username": "johnp", - "firstName": "John", - "lastName": "Public", - "email": "johnp@swagger.io", - "password": "-secret-", - "phone": "0123456789", - "userStatus": 0 - } - } - }, - "400": { - "description": "Invalid username supplied" - } - } - }, - "put": { - "tags": [ - "user" - ], - "summary": "Updated user", - "description": "This can only be done by the logged in user.", - "operationId": "updateUser", - "produces": [ - "application/json", - "application/xml" - ], - "parameters": [ - { - "name": "username", - "in": "path", - "description": "name that need to be deleted", - "required": true, - "type": "string" - }, - { - "in": "body", - "name": "body", - "description": "Updated user object", - "required": false, - "schema": { - "$ref": "#/definitions/User" - } - } - ], - "responses": { - "404": { - "description": "User not found" - }, - "400": { - "description": "Invalid user supplied" - } - } - }, - "delete": { - "tags": [ - "user" - ], - "summary": "Delete user", - "description": "This can only be done by the logged in user.", - "operationId": "deleteUser", - "produces": [ - "application/json", - "application/xml" - ], - "parameters": [ - { - "name": "username", - "in": "path", - "description": "The name that needs to be deleted", - "required": true, - "type": "string" - } - ], - "responses": { - "404": { - "description": "User not found" - }, - "400": { - "description": "Invalid username supplied" - } - } - } - } - }, - "securityDefinitions": { - "api_key": { - "type": "apiKey", - "name": "api_key", - "in": "header" - }, - "petstore_auth": { - "type": "oauth2", - "authorizationUrl": "http://petstore.swagger.io/api/oauth/dialog", - "flow": "implicit", - "scopes": { - "write:pets": "modify pets in your account", - "read:pets": "read your pets" - } - }, - "test_api_client_id": { - "type": "apiKey", - "name": "x-test_api_client_id", - "in": "header" - }, - "test_api_client_secret": { - "type": "apiKey", - "name": "x-test_api_client_secret", - "in": "header" - }, - "test_api_key_header": { - "type": "apiKey", - "name": "test_api_key_header", - "in": "header" - }, - "test_api_key_query": { - "type": "apiKey", - "name": "test_api_key_query", - "in": "query" - } - }, - "definitions": { - "User": { - "properties": { - "id": { - "type": "integer", - "format": "int64" - }, - "username": { - "type": "string" - }, - "firstName": { - "type": "string" - }, - "lastName": { - "type": "string" - }, - "email": { - "type": "string" - }, - "password": { - "type": "string" - }, - "phone": { - "type": "string" - }, - "userStatus": { - "type": "integer", - "format": "int32", - "description": "User Status" - } - }, - "xml": { - "name": "User" - } - }, - "Category": { - "properties": { - "id": { - "type": "integer", - "format": "int64" - }, - "name": { - "type": "string" - } - }, - "xml": { - "name": "Category" - } - }, - "Pet": { - "required": [ - "name", - "photoUrls" - ], - "properties": { - "id": { - "type": "integer", - "format": "int64", - "title": "The id of the pet.", - "description": "A more detailed description of the id of the pet." - }, - "category": { - "$ref": "#/definitions/Category" - }, - "name": { - "type": "string", - "example": "doggie" - }, - "photoUrls": { - "type": "array", - "xml": { - "name": "photoUrl", - "wrapped": true - }, - "items": { - "type": "string" - } - }, - "tags": { - "type": "array", - "xml": { - "name": "tag", - "wrapped": true - }, - "items": { - "$ref": "#/definitions/Tag" - } - }, - "status": { - "type": "string", - "description": "pet status in the store", - "enum": [ - "available", - "pending", - "sold" - ] - } - }, - "title": "A pet", - "description": "A group of properties representing a pet.", - "xml": { - "name": "Pet" - } - }, - "Tag": { - "properties": { - "id": { - "type": "integer", - "format": "int64" - }, - "name": { - "type": "string" - } - }, - "xml": { - "name": "Tag" - } - }, - "Order": { - "properties": { - "id": { - "type": "integer", - "format": "int64", - "readOnly": true - }, - "petId": { - "type": "integer", - "format": "int64" - }, - "quantity": { - "type": "integer", - "format": "int32" - }, - "shipDate": { - "type": "string", - "format": "date-time" - }, - "status": { - "type": "string", - "description": "Order Status", - "enum": [ - "placed", - "approved", - "delivered" - ] - }, - "complete": { - "type": "boolean" - } - }, - "xml": { - "name": "Order" - } - } - } -} \ No newline at end of file diff --git a/Samples/openapi-v2/3h-try-require/readme.csharp.md b/Samples/openapi-v2/3h-try-require/readme.csharp.md deleted file mode 100644 index 3b6ece70e1..0000000000 --- a/Samples/openapi-v2/3h-try-require/readme.csharp.md +++ /dev/null @@ -1,19 +0,0 @@ -# Scenario: Include further configuration files (probing) - -This file only gets include if you say `--csharp` - -> see https://aka.ms/autorest - -``` yaml -try-require: # can be a single relative/absolute path/URL or an array of such - - ../1a-code-generation-minimal/readme.md -``` - -However, note that paths within included configuration files will be resolved relative to *this* file instead of the included one. -This becomes relevant for `input-file`s or further `require`s in referenced files. -Use `require` together with `batch` mode and `base-folder` if the intent is to invoke AutoRest on other, self-contained configuration files. - -Common use cases for external configuration files include extracting and reusing: -- verbose code generation settings -- large numbers of directives -- declarations \ No newline at end of file diff --git a/Samples/openapi-v2/3h-try-require/readme.md b/Samples/openapi-v2/3h-try-require/readme.md deleted file mode 100644 index 518ca92d96..0000000000 --- a/Samples/openapi-v2/3h-try-require/readme.md +++ /dev/null @@ -1,24 +0,0 @@ -# Scenario: Include further configuration files - -> see https://aka.ms/autorest - - - -One can include other configuration files into the current one using `require`: - -``` yaml -csharp: - foo: bar - -try-require: # can be a single relative/absolute path/URL or an array of such - - ../1a-code-generation-minimal/no-readme.md # should ignore this safely. -``` - -However, note that paths within included configuration files will be resolved relative to *this* file instead of the included one. -This becomes relevant for `input-file`s or further `require`s in referenced files. -Use `require` together with `batch` mode and `base-folder` if the intent is to invoke AutoRest on other, self-contained configuration files. - -Common use cases for external configuration files include extracting and reusing: -- verbose code generation settings -- large numbers of directives -- declarations \ No newline at end of file diff --git a/Samples/openapi-v2/3h-try-require/shell/code.txt b/Samples/openapi-v2/3h-try-require/shell/code.txt deleted file mode 100644 index c227083464..0000000000 --- a/Samples/openapi-v2/3h-try-require/shell/code.txt +++ /dev/null @@ -1 +0,0 @@ -0 \ No newline at end of file diff --git a/Samples/openapi-v2/3h-try-require/shell/stderr.txt b/Samples/openapi-v2/3h-try-require/shell/stderr.txt deleted file mode 100644 index 8b13789179..0000000000 --- a/Samples/openapi-v2/3h-try-require/shell/stderr.txt +++ /dev/null @@ -1 +0,0 @@ - diff --git a/Samples/openapi-v2/3h-try-require/shell/stdout.txt b/Samples/openapi-v2/3h-try-require/shell/stdout.txt deleted file mode 100644 index 17d46a9413..0000000000 --- a/Samples/openapi-v2/3h-try-require/shell/stdout.txt +++ /dev/null @@ -1 +0,0 @@ -https://aka.ms/autorest diff --git a/Samples/openapi-v3/1a-code-generation-minimal/Client/ISwaggerPetstore.cs b/Samples/openapi-v3/1a-code-generation-minimal/Client/ISwaggerPetstore.cs deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v3/1a-code-generation-minimal/Client/ISwaggerPetstore.cs +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v3/1a-code-generation-minimal/Client/Models/Error.cs b/Samples/openapi-v3/1a-code-generation-minimal/Client/Models/Error.cs deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v3/1a-code-generation-minimal/Client/Models/Error.cs +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v3/1a-code-generation-minimal/Client/Models/ErrorException.cs b/Samples/openapi-v3/1a-code-generation-minimal/Client/Models/ErrorException.cs deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v3/1a-code-generation-minimal/Client/Models/ErrorException.cs +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v3/1a-code-generation-minimal/Client/Models/ListPetsHeaders.cs b/Samples/openapi-v3/1a-code-generation-minimal/Client/Models/ListPetsHeaders.cs deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v3/1a-code-generation-minimal/Client/Models/ListPetsHeaders.cs +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v3/1a-code-generation-minimal/Client/Models/Pet.cs b/Samples/openapi-v3/1a-code-generation-minimal/Client/Models/Pet.cs deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v3/1a-code-generation-minimal/Client/Models/Pet.cs +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v3/1a-code-generation-minimal/Client/SwaggerPetstore.cs b/Samples/openapi-v3/1a-code-generation-minimal/Client/SwaggerPetstore.cs deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v3/1a-code-generation-minimal/Client/SwaggerPetstore.cs +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v3/1a-code-generation-minimal/Client/SwaggerPetstoreExtensions.cs b/Samples/openapi-v3/1a-code-generation-minimal/Client/SwaggerPetstoreExtensions.cs deleted file mode 100644 index 9d6cafc2c3..0000000000 --- a/Samples/openapi-v3/1a-code-generation-minimal/Client/SwaggerPetstoreExtensions.cs +++ /dev/null @@ -1 +0,0 @@ -SRC \ No newline at end of file diff --git a/Samples/openapi-v3/1a-code-generation-minimal/petstore.yaml b/Samples/openapi-v3/1a-code-generation-minimal/petstore.yaml deleted file mode 100644 index 09941de971..0000000000 --- a/Samples/openapi-v3/1a-code-generation-minimal/petstore.yaml +++ /dev/null @@ -1,109 +0,0 @@ -openapi: "3.0.0" -info: - version: 1.0.0 - title: Swagger Petstore - license: - name: MIT -servers: - - url: http://petstore.swagger.io/v1 -paths: - /pets: - get: - summary: List all pets - operationId: listPets - tags: - - pets - parameters: - - name: limit - in: query - description: How many items to return at one time (max 100) - required: false - schema: - type: integer - format: int32 - responses: - '200': - description: A paged array of pets - headers: - x-next: - description: A link to the next page of responses - schema: - type: string - content: - application/json: - schema: - $ref: "#/components/schemas/Pets" - default: - description: unexpected error - content: - application/json: - schema: - $ref: "#/components/schemas/Error" - post: - summary: Create a pet - operationId: createPets - tags: - - pets - responses: - '201': - description: Null response - default: - description: unexpected error - content: - application/json: - schema: - $ref: "#/components/schemas/Error" - /pets/{petId}: - get: - summary: Info for a specific pet - operationId: showPetById - tags: - - pets - parameters: - - name: petId - in: path - required: true - description: The id of the pet to retrieve - schema: - type: string - responses: - '200': - description: Expected response to a valid request - content: - application/json: - schema: - $ref: "#/components/schemas/Pets" - default: - description: unexpected error - content: - application/json: - schema: - $ref: "#/components/schemas/Error" -components: - schemas: - Pet: - required: - - id - - name - properties: - id: - type: integer - format: int64 - name: - type: string - tag: - type: string - Pets: - type: array - items: - $ref: "#/components/schemas/Pet" - Error: - required: - - code - - message - properties: - code: - type: integer - format: int32 - message: - type: string diff --git a/Samples/openapi-v3/1a-code-generation-minimal/readme.md b/Samples/openapi-v3/1a-code-generation-minimal/readme.md deleted file mode 100644 index 0819ae9193..0000000000 --- a/Samples/openapi-v3/1a-code-generation-minimal/readme.md +++ /dev/null @@ -1,13 +0,0 @@ -# Scenario: Client generation - -> see https://aka.ms/autorest - -``` yaml -input-file: petstore.yaml - -csharp: - namespace: Petstore - output-folder: Client - enable-xml: true # enable experimental XML serialization support - # azure-arm: true # uncomment this line to enable code generation in the Azure flavor -``` \ No newline at end of file diff --git a/Samples/openapi-v3/1a-code-generation-minimal/shell/code.txt b/Samples/openapi-v3/1a-code-generation-minimal/shell/code.txt deleted file mode 100644 index c227083464..0000000000 --- a/Samples/openapi-v3/1a-code-generation-minimal/shell/code.txt +++ /dev/null @@ -1 +0,0 @@ -0 \ No newline at end of file diff --git a/Samples/openapi-v3/1a-code-generation-minimal/shell/stderr.txt b/Samples/openapi-v3/1a-code-generation-minimal/shell/stderr.txt deleted file mode 100644 index 8b13789179..0000000000 --- a/Samples/openapi-v3/1a-code-generation-minimal/shell/stderr.txt +++ /dev/null @@ -1 +0,0 @@ - diff --git a/Samples/openapi-v3/1a-code-generation-minimal/shell/stdout.txt b/Samples/openapi-v3/1a-code-generation-minimal/shell/stdout.txt deleted file mode 100644 index 17d46a9413..0000000000 --- a/Samples/openapi-v3/1a-code-generation-minimal/shell/stdout.txt +++ /dev/null @@ -1 +0,0 @@ -https://aka.ms/autorest diff --git a/docs/proposals/generator-specific-settings/literate-configuration.md b/docs/proposals/generator-specific-settings/literate-configuration.md index 4d833a1f99..9e2e93c8e2 100644 --- a/docs/proposals/generator-specific-settings/literate-configuration.md +++ b/docs/proposals/generator-specific-settings/literate-configuration.md @@ -421,7 +421,7 @@ Then, once you've installed AutoRest, you can use any arbitrary version by just |disable-simplifier| `disable-simplfier:true` | Disables c# post-codegeneration simplifier| |internal-constructors| `internal-constructors: true` | Indicates whether ctor needs to be generated with internal protection level. | |sync-methods| `sync-methods: true `| Specifies mode for generating sync wrappers. | -|use-date-time-offset| `use-date-time-offset: true` | Indicates whether to use DateTimeOffset instead of DateTime to model date-time types | +|use-datetimeoffset| `use-datetimeoffset: true` | Indicates whether to use DateTimeOffset instead of DateTime to model date-time types | #### NodeJS Settings: |Setting|Example|Purpose| diff --git a/docs/user/cli.md b/docs/user/cli.md index 7f3daf1a7c..142cf39715 100644 --- a/docs/user/cli.md +++ b/docs/user/cli.md @@ -49,6 +49,7 @@ autorest --input-file=myfile.json --output-folder=./generated/code/ --namespace= |`--runtime-id=id`|overrides the platform detection for the dotnet runtime (special case). Refer to the Runtime Identifier (RID) catalog for more details.| #### Commonly used Settings + |Option                                                                 | Description | |------------------|-------------| |`--input-file=FILENAME`|Adds the given file to the list of input files for generation process| @@ -82,6 +83,7 @@ This is the way to go for all scripts and automation. Needless to say, *do not put this token* into scripts directly, use Azure KeyVault or similar. #### Validation + |Option                                                                 | Description | |------------------|-------------| |`--azure-validator`|If set, runs the Azure specific validator plugin.| diff --git a/docs/user/literate-file-formats/configuration.md b/docs/user/literate-file-formats/configuration.md index d688e00691..3f7ddb6ba6 100644 --- a/docs/user/literate-file-formats/configuration.md +++ b/docs/user/literate-file-formats/configuration.md @@ -15,7 +15,7 @@ desired when authoring and processing instructions. The Literate configuration file is a CommonMark (aka Markdown) file that has code blocks. -In order that AutoRest identifies a CommonMark document as a **AutoRest Configuration** file, the markdown must contain the following string exactly (and not as the first line in the file!) : +In order that AutoRest identifies a CommonMark document as a **AutoRest Configuration** file, the markdown must contain the following string (we call it the magic string) exactly (and not as the first line in the file!) : ``` markdown > see https://aka.ms/autorest diff --git a/package.json b/package.json index d502896590..a35cdb190f 100644 --- a/package.json +++ b/package.json @@ -46,7 +46,7 @@ "semver": "^5.3.0", "shelljs": "^0.7.6", "through2-parallel": "^0.1.3", - "typescript": "^3.0.0", + "typescript": "2.6.2", "tslint": "^5.9.1", "tslint-language-service": "^0.9.9", "tslint-microsoft-contrib": "^5.0.3", diff --git a/schema/openapi3-schema.json b/schema/openapi3-schema.json deleted file mode 100644 index 4d6d4dc95a..0000000000 --- a/schema/openapi3-schema.json +++ /dev/null @@ -1,2279 +0,0 @@ -{ - "type": "object", - "required": [ - "openapi", - "info", - "paths" - ], - "properties": { - "openapi": { - "type": "string", - "pattern": "^3\\.0\\.\\d(-.+)?$" - }, - "info": { - "$ref": "#/definitions/Info" - }, - "externalDocs": { - "$ref": "#/definitions/ExternalDocumentation" - }, - "servers": { - "type": "array", - "items": { - "$ref": "#/definitions/Server" - } - }, - "security": { - "type": "array", - "items": { - "$ref": "#/definitions/SecurityRequirement" - } - }, - "tags": { - "type": "array", - "items": { - "$ref": "#/definitions/Tag" - } - }, - "paths": { - "$ref": "#/definitions/Paths" - }, - "components": { - "$ref": "#/definitions/Components" - } - }, - "patternProperties": { - "^x-": {} - }, - "additionalProperties": false, - "definitions": { - "Reference": { - "type": "object", - "required": [ - "$ref" - ], - "properties": { - "$ref": { - "type": "string" - } - } - }, - "Info": { - "type": "object", - "required": [ - "title", - "version" - ], - "properties": { - "title": { - "type": "string" - }, - "description": { - "type": "string" - }, - "termsOfService": { - "type": "string" - }, - "contact": { - "$ref": "#/definitions/Contact" - }, - "license": { - "$ref": "#/definitions/License" - }, - "version": { - "type": "string" - } - }, - "patternProperties": { - "^x-": {} - }, - "additionalProperties": false - }, - "Contact": { - "type": "object", - "properties": { - "name": { - "type": "string" - }, - "url": { - "type": "string" - }, - "email": { - "type": "string", - "format": "email" - } - }, - "patternProperties": { - "^x-": {} - }, - "additionalProperties": false - }, - "License": { - "type": "object", - "required": [ - "name" - ], - "properties": { - "name": { - "type": "string" - }, - "url": { - "type": "string" - } - }, - "patternProperties": { - "^x-": {} - }, - "additionalProperties": false - }, - "Server": { - "type": "object", - "required": [ - "url" - ], - "properties": { - "url": { - "type": "string" - }, - "description": { - "type": "string" - }, - "variables": { - "type": "object", - "additionalProperties": { - "$ref": "#/definitions/ServerVariable" - } - } - }, - "patternProperties": { - "^x-": {} - }, - "additionalProperties": false - }, - "ServerVariable": { - "type": "object", - "required": [ - "default" - ], - "properties": { - "enum": { - "type": "array", - "items": { - "type": "string" - } - }, - "default": { - "type": "string" - }, - "description": { - "type": "string" - } - }, - "patternProperties": { - "^x-": {} - }, - "additionalProperties": false - }, - "Components": { - "type": "object", - "properties": { - "schemas": { - "type": "object", - "patternProperties": { - "^[a-zA-Z0-9\\.\\-_]+$": { - "oneOf": [ - { - "$ref": "#/definitions/Reference" - }, - { - "$ref": "#/definitions/Schema" - } - ] - } - } - }, - "responses": { - "type": "object", - "patternProperties": { - "^[a-zA-Z0-9\\.\\-_]+$": { - "oneOf": [ - { - "$ref": "#/definitions/Reference" - }, - { - "$ref": "#/definitions/Response" - } - ] - } - } - }, - "parameters": { - "type": "object", - "patternProperties": { - "^[a-zA-Z0-9\\.\\-_]+$": { - "oneOf": [ - { - "$ref": "#/definitions/Reference" - }, - { - "$ref": "#/definitions/Parameter" - } - ] - } - } - }, - "examples": { - "type": "object", - "patternProperties": { - "^[a-zA-Z0-9\\.\\-_]+$": { - "oneOf": [ - { - "$ref": "#/definitions/Reference" - }, - { - "$ref": "#/definitions/Example" - } - ] - } - } - }, - "requestBodies": { - "type": "object", - "patternProperties": { - "^[a-zA-Z0-9\\.\\-_]+$": { - "oneOf": [ - { - "$ref": "#/definitions/Reference" - }, - { - "$ref": "#/definitions/RequestBody" - } - ] - } - } - }, - "headers": { - "type": "object", - "patternProperties": { - "^[a-zA-Z0-9\\.\\-_]+$": { - "oneOf": [ - { - "$ref": "#/definitions/Reference" - }, - { - "$ref": "#/definitions/Header" - } - ] - } - } - }, - "securitySchemes": { - "type": "object", - "patternProperties": { - "^[a-zA-Z0-9\\.\\-_]+$": { - "oneOf": [ - { - "$ref": "#/definitions/Reference" - }, - { - "$ref": "#/definitions/SecurityScheme" - } - ] - } - } - }, - "links": { - "type": "object", - "patternProperties": { - "^[a-zA-Z0-9\\.\\-_]+$": { - "oneOf": [ - { - "$ref": "#/definitions/Reference" - }, - { - "$ref": "#/definitions/Link" - } - ] - } - } - }, - "callbacks": { - "type": "object", - "patternProperties": { - "^[a-zA-Z0-9\\.\\-_]+$": { - "oneOf": [ - { - "$ref": "#/definitions/Reference" - }, - { - "$ref": "#/definitions/Callback" - } - ] - } - } - } - }, - "patternProperties": { - "^x-": {} - }, - "additionalProperties": false - }, - "Schema": { - "type": "object", - "properties": { - "title": { - "type": "string" - }, - "multipleOf": { - "type": "number", - "minimum": 0, - "exclusiveMinimum": true - }, - "maximum": { - "type": "number" - }, - "exclusiveMaximum": { - "type": "boolean", - "default": false - }, - "minimum": { - "type": "number" - }, - "exclusiveMinimum": { - "type": "boolean", - "default": false - }, - "maxLength": { - "type": "integer", - "minimum": 0 - }, - "minLength": { - "type": "integer", - "minimum": 0, - "default": 0 - }, - "pattern": { - "type": "string", - "format": "regex" - }, - "maxItems": { - "type": "integer", - "minimum": 0 - }, - "minItems": { - "type": "integer", - "minimum": 0, - "default": 0 - }, - "uniqueItems": { - "type": "boolean", - "default": false - }, - "maxProperties": { - "type": "integer", - "minimum": 0 - }, - "minProperties": { - "type": "integer", - "minimum": 0, - "default": 0 - }, - "required": { - "type": "array", - "items": { - "type": "string" - }, - "minItems": 1, - "uniqueItems": true - }, - "enum": { - "type": "array", - "items": {}, - "minItems": 1, - "uniqueItems": true - }, - "type": { - "type": "string", - "enum": [ - "array", - "boolean", - "integer", - "number", - "object", - "string" - ] - }, - "not": { - "oneOf": [ - { - "$ref": "#/definitions/Schema" - }, - { - "$ref": "#/definitions/Reference" - } - ] - }, - "allOf": { - "type": "array", - "items": { - "oneOf": [ - { - "$ref": "#/definitions/Schema" - }, - { - "$ref": "#/definitions/Reference" - } - ] - } - }, - "oneOf": { - "type": "array", - "items": { - "oneOf": [ - { - "$ref": "#/definitions/Schema" - }, - { - "$ref": "#/definitions/Reference" - } - ] - } - }, - "anyOf": { - "type": "array", - "items": { - "oneOf": [ - { - "$ref": "#/definitions/Schema" - }, - { - "$ref": "#/definitions/Reference" - } - ] - } - }, - "items": { - "oneOf": [ - { - "$ref": "#/definitions/Schema" - }, - { - "$ref": "#/definitions/Reference" - } - ] - }, - "properties": { - "type": "object", - "additionalProperties": { - "oneOf": [ - { - "$ref": "#/definitions/Schema" - }, - { - "$ref": "#/definitions/Reference" - } - ] - } - }, - "additionalProperties": { - "oneOf": [ - { - "$ref": "#/definitions/Schema" - }, - { - "$ref": "#/definitions/Reference" - }, - { - "type": "boolean" - } - ], - "default": true - }, - "description": { - "type": "string" - }, - "format": { - "type": "string" - }, - "default": {}, - "nullable": { - "type": "boolean", - "default": false - }, - "discriminator": { - "$ref": "#/definitions/Discriminator" - }, - "readOnly": { - "type": "boolean", - "default": false - }, - "writeOnly": { - "type": "boolean", - "default": false - }, - "example": {}, - "externalDocs": { - "$ref": "#/definitions/ExternalDocumentation" - }, - "deprecated": { - "type": "boolean", - "default": false - }, - "xml": { - "$ref": "#/definitions/XML" - } - }, - "patternProperties": { - "^x-": {} - }, - "additionalProperties": false - }, - "Discriminator": { - "type": "object", - "required": [ - "propertyName" - ], - "properties": { - "propertyName": { - "type": "string" - }, - "mapping": { - "type": "object", - "additionalProperties": { - "type": "string" - } - } - } - }, - "XML": { - "type": "object", - "properties": { - "name": { - "type": "string" - }, - "namespace": { - "type": "string" - }, - "prefix": { - "type": "string" - }, - "attribute": { - "type": "boolean", - "default": false - }, - "wrapped": { - "type": "boolean", - "default": false - } - }, - "patternProperties": { - "^x-": {} - }, - "additionalProperties": false - }, - "Response": { - "type": "object", - "required": [ - "description" - ], - "properties": { - "description": { - "type": "string" - }, - "headers": { - "additionalProperties": { - "oneOf": [ - { - "$ref": "#/definitions/Header" - }, - { - "$ref": "#/definitions/Reference" - } - ] - } - }, - "content": { - "type": "object", - "additionalProperties": { - "$ref": "#/definitions/MediaType" - } - }, - "links": { - "type": "object", - "additionalProperties": { - "oneOf": [ - { - "$ref": "#/definitions/Link" - }, - { - "$ref": "#/definitions/Reference" - } - ] - } - } - }, - "patternProperties": { - "^x-": {} - }, - "additionalProperties": false - }, - "MediaType": { - "oneOf": [ - { - "$ref": "#/definitions/MediaTypeWithExample" - }, - { - "$ref": "#/definitions/MediaTypeWithExamples" - } - ] - }, - "MediaTypeWithExample": { - "type": "object", - "properties": { - "schema": { - "oneOf": [ - { - "$ref": "#/definitions/Schema" - }, - { - "$ref": "#/definitions/Reference" - } - ] - }, - "example": {}, - "encoding": { - "type": "object", - "additionalProperties": { - "$ref": "#/definitions/Encoding" - } - } - }, - "patternProperties": { - "^x-": {} - }, - "additionalProperties": false - }, - "MediaTypeWithExamples": { - "type": "object", - "required": [ - "examples" - ], - "properties": { - "schema": { - "oneOf": [ - { - "$ref": "#/definitions/Schema" - }, - { - "$ref": "#/definitions/Reference" - } - ] - }, - "examples": { - "type": "object", - "additionalProperties": { - "oneOf": [ - { - "$ref": "#/definitions/Example" - }, - { - "$ref": "#/definitions/Reference" - } - ] - } - }, - "encoding": { - "type": "object", - "additionalProperties": { - "$ref": "#/definitions/Encoding" - } - } - }, - "patternProperties": { - "^x-": {} - }, - "additionalProperties": false - }, - "Example": { - "type": "object", - "properties": { - "summary": { - "type": "string" - }, - "description": { - "type": "string" - }, - "value": {}, - "externalValue": { - "type": "string" - } - }, - "patternProperties": { - "^x-": {} - }, - "additionalProperties": false - }, - "Header": { - "oneOf": [ - { - "$ref": "#/definitions/HeaderWithSchema" - }, - { - "$ref": "#/definitions/HeaderWithContent" - } - ] - }, - "HeaderWithSchema": { - "oneOf": [ - { - "$ref": "#/definitions/HeaderWithSchemaWithExample" - }, - { - "$ref": "#/definitions/HeaderWithSchemaWithExamples" - } - ] - }, - "HeaderWithSchemaWithExample": { - "type": "object", - "required": [ - "schema" - ], - "properties": { - "description": { - "type": "string" - }, - "required": { - "type": "boolean", - "default": false - }, - "deprecated": { - "type": "boolean", - "default": false - }, - "allowEmptyValue": { - "type": "boolean", - "default": false - }, - "style": { - "type": "string", - "enum": [ - "simple" - ], - "default": "simple" - }, - "explode": { - "type": "boolean" - }, - "allowReserved": { - "type": "boolean", - "default": false - }, - "schema": { - "oneOf": [ - { - "$ref": "#/definitions/Schema" - }, - { - "$ref": "#/definitions/Reference" - } - ] - }, - "example": {} - }, - "patternProperties": { - "^x-": {} - }, - "additionalProperties": false - }, - "HeaderWithSchemaWithExamples": { - "type": "object", - "required": [ - "schema", - "examples" - ], - "properties": { - "description": { - "type": "string" - }, - "required": { - "type": "boolean", - "default": false - }, - "deprecated": { - "type": "boolean", - "default": false - }, - "allowEmptyValue": { - "type": "boolean", - "default": false - }, - "style": { - "type": "string", - "enum": [ - "simple" - ], - "default": "simple" - }, - "explode": { - "type": "boolean" - }, - "allowReserved": { - "type": "boolean", - "default": false - }, - "schema": { - "oneOf": [ - { - "$ref": "#/definitions/Schema" - }, - { - "$ref": "#/definitions/Reference" - } - ] - }, - "examples": { - "type": "object", - "additionalProperties": { - "oneOf": [ - { - "$ref": "#/definitions/Example" - }, - { - "$ref": "#/definitions/Reference" - } - ] - } - } - }, - "patternProperties": { - "^x-": {} - }, - "additionalProperties": false - }, - "HeaderWithContent": { - "type": "object", - "required": [ - "content" - ], - "properties": { - "description": { - "type": "string" - }, - "required": { - "type": "boolean", - "default": false - }, - "deprecated": { - "type": "boolean", - "default": false - }, - "allowEmptyValue": { - "type": "boolean", - "default": false - }, - "content": { - "type": "object", - "additionalProperties": { - "$ref": "#/definitions/MediaType" - }, - "minProperties": 1, - "maxProperties": 1 - } - }, - "patternProperties": { - "^x-": {} - }, - "additionalProperties": false - }, - "Paths": { - "type": "object", - "patternProperties": { - "^\\/": { - "$ref": "#/definitions/PathItem" - }, - "^x-": {} - }, - "additionalProperties": false - }, - "PathItem": { - "type": "object", - "properties": { - "$ref": { - "type": "string" - }, - "summary": { - "type": "string" - }, - "description": { - "type": "string" - }, - "get": { - "$ref": "#/definitions/Operation" - }, - "put": { - "$ref": "#/definitions/Operation" - }, - "post": { - "$ref": "#/definitions/Operation" - }, - "delete": { - "$ref": "#/definitions/Operation" - }, - "options": { - "$ref": "#/definitions/Operation" - }, - "head": { - "$ref": "#/definitions/Operation" - }, - "patch": { - "$ref": "#/definitions/Operation" - }, - "trace": { - "$ref": "#/definitions/Operation" - }, - "servers": { - "type": "array", - "items": { - "$ref": "#/definitions/Server" - } - }, - "parameters": { - "type": "array", - "items": { - "oneOf": [ - { - "$ref": "#/definitions/Parameter" - }, - { - "$ref": "#/definitions/Reference" - } - ] - } - } - }, - "patternProperties": { - "^x-": {} - }, - "additionalProperties": false - }, - "Operation": { - "type": "object", - "required": [ - "responses" - ], - "properties": { - "tags": { - "type": "array", - "items": { - "type": "string" - } - }, - "summary": { - "type": "string" - }, - "description": { - "type": "string" - }, - "externalDocs": { - "$ref": "#/definitions/ExternalDocumentation" - }, - "operationId": { - "type": "string" - }, - "parameters": { - "type": "array", - "items": { - "oneOf": [ - { - "$ref": "#/definitions/Parameter" - }, - { - "$ref": "#/definitions/Reference" - } - ] - } - }, - "requestBody": { - "oneOf": [ - { - "$ref": "#/definitions/RequestBody" - }, - { - "$ref": "#/definitions/Reference" - } - ] - }, - "responses": { - "$ref": "#/definitions/Responses" - }, - "callbacks": { - "type": "object", - "additionalProperties": { - "oneOf": [ - { - "$ref": "#/definitions/Callback" - }, - { - "$ref": "#/definitions/Reference" - } - ] - } - }, - "deprecated": { - "type": "boolean", - "default": false - }, - "security": { - "type": "array", - "items": { - "$ref": "#/definitions/SecurityRequirement" - } - }, - "servers": { - "type": "array", - "items": { - "$ref": "#/definitions/Server" - } - } - }, - "patternProperties": { - "^x-": {} - }, - "additionalProperties": false - }, - "Responses": { - "type": "object", - "properties": { - "default": { - "oneOf": [ - { - "$ref": "#/definitions/Response" - }, - { - "$ref": "#/definitions/Reference" - } - ] - } - }, - "patternProperties": { - "[1-5](?:\\d{2}|XX)": { - "oneOf": [ - { - "$ref": "#/definitions/Response" - }, - { - "$ref": "#/definitions/Reference" - } - ] - }, - "^x-": {} - }, - "minProperties": 1, - "additionalProperties": false, - "not": { - "type": "object", - "patternProperties": { - "^x-": {} - }, - "additionalProperties": false - } - }, - "SecurityRequirement": { - "type": "object", - "additionalProperties": { - "type": "array", - "items": { - "type": "string" - } - } - }, - "Tag": { - "type": "object", - "required": [ - "name" - ], - "properties": { - "name": { - "type": "string" - }, - "description": { - "type": "string" - }, - "externalDocs": { - "$ref": "#/definitions/ExternalDocumentation" - } - }, - "patternProperties": { - "^x-": {} - }, - "additionalProperties": false - }, - "ExternalDocumentation": { - "type": "object", - "required": [ - "url" - ], - "properties": { - "description": { - "type": "string" - }, - "url": { - "type": "string" - } - }, - "patternProperties": { - "^x-": {} - }, - "additionalProperties": false - }, - "Parameter": { - "oneOf": [ - { - "$ref": "#/definitions/ParameterWithSchema" - }, - { - "$ref": "#/definitions/ParameterWithContent" - } - ] - }, - "ParameterWithSchema": { - "oneOf": [ - { - "$ref": "#/definitions/ParameterWithSchemaWithExample" - }, - { - "$ref": "#/definitions/ParameterWithSchemaWithExamples" - } - ] - }, - "ParameterWithSchemaWithExample": { - "oneOf": [ - { - "$ref": "#/definitions/ParameterWithSchemaWithExampleInPath" - }, - { - "$ref": "#/definitions/ParameterWithSchemaWithExampleInQuery" - }, - { - "$ref": "#/definitions/ParameterWithSchemaWithExampleInHeader" - }, - { - "$ref": "#/definitions/ParameterWithSchemaWithExampleInCookie" - } - ] - }, - "ParameterWithSchemaWithExampleInPath": { - "type": "object", - "required": [ - "name", - "in", - "schema", - "required" - ], - "properties": { - "name": { - "type": "string" - }, - "in": { - "type": "string", - "enum": [ - "path" - ] - }, - "description": { - "type": "string" - }, - "required": { - "type": "boolean", - "enum": [ - true - ] - }, - "deprecated": { - "type": "boolean", - "default": false - }, - "allowEmptyValue": { - "type": "boolean", - "default": false - }, - "style": { - "type": "string", - "enum": [ - "matrix", - "label", - "simple" - ], - "default": "simple" - }, - "explode": { - "type": "boolean" - }, - "allowReserved": { - "type": "boolean", - "default": false - }, - "schema": { - "oneOf": [ - { - "$ref": "#/definitions/Schema" - }, - { - "$ref": "#/definitions/Reference" - } - ] - }, - "example": {} - }, - "patternProperties": { - "^x-": {} - }, - "additionalProperties": false - }, - "ParameterWithSchemaWithExampleInQuery": { - "type": "object", - "required": [ - "name", - "in", - "schema" - ], - "properties": { - "name": { - "type": "string" - }, - "in": { - "type": "string", - "enum": [ - "query" - ] - }, - "description": { - "type": "string" - }, - "required": { - "type": "boolean", - "default": false - }, - "deprecated": { - "type": "boolean", - "default": false - }, - "allowEmptyValue": { - "type": "boolean", - "default": false - }, - "style": { - "type": "string", - "enum": [ - "form", - "spaceDelimited", - "pipeDelimited", - "deepObject" - ], - "default": "form" - }, - "explode": { - "type": "boolean" - }, - "allowReserved": { - "type": "boolean", - "default": false - }, - "schema": { - "oneOf": [ - { - "$ref": "#/definitions/Schema" - }, - { - "$ref": "#/definitions/Reference" - } - ] - }, - "example": {} - }, - "patternProperties": { - "^x-": {} - }, - "additionalProperties": false - }, - "ParameterWithSchemaWithExampleInHeader": { - "type": "object", - "required": [ - "name", - "in", - "schema" - ], - "properties": { - "name": { - "type": "string" - }, - "in": { - "type": "string", - "enum": [ - "header" - ] - }, - "description": { - "type": "string" - }, - "required": { - "type": "boolean", - "default": false - }, - "deprecated": { - "type": "boolean", - "default": false - }, - "allowEmptyValue": { - "type": "boolean", - "default": false - }, - "style": { - "type": "string", - "enum": [ - "simple" - ], - "default": "simple" - }, - "explode": { - "type": "boolean" - }, - "allowReserved": { - "type": "boolean", - "default": false - }, - "schema": { - "oneOf": [ - { - "$ref": "#/definitions/Schema" - }, - { - "$ref": "#/definitions/Reference" - } - ] - }, - "example": {} - }, - "patternProperties": { - "^x-": {} - }, - "additionalProperties": false - }, - "ParameterWithSchemaWithExampleInCookie": { - "type": "object", - "required": [ - "name", - "in", - "schema" - ], - "properties": { - "name": { - "type": "string" - }, - "in": { - "type": "string", - "enum": [ - "cookie" - ] - }, - "description": { - "type": "string" - }, - "required": { - "type": "boolean", - "default": false - }, - "deprecated": { - "type": "boolean", - "default": false - }, - "allowEmptyValue": { - "type": "boolean", - "default": false - }, - "style": { - "type": "string", - "enum": [ - "form" - ], - "default": "form" - }, - "explode": { - "type": "boolean" - }, - "allowReserved": { - "type": "boolean", - "default": false - }, - "schema": { - "oneOf": [ - { - "$ref": "#/definitions/Schema" - }, - { - "$ref": "#/definitions/Reference" - } - ] - }, - "example": {} - }, - "patternProperties": { - "^x-": {} - }, - "additionalProperties": false - }, - "ParameterWithSchemaWithExamples": { - "oneOf": [ - { - "$ref": "#/definitions/ParameterWithSchemaWithExamplesInPath" - }, - { - "$ref": "#/definitions/ParameterWithSchemaWithExamplesInQuery" - }, - { - "$ref": "#/definitions/ParameterWithSchemaWithExamplesInHeader" - }, - { - "$ref": "#/definitions/ParameterWithSchemaWithExamplesInCookie" - } - ] - }, - "ParameterWithSchemaWithExamplesInPath": { - "type": "object", - "required": [ - "name", - "in", - "schema", - "required", - "examples" - ], - "properties": { - "name": { - "type": "string" - }, - "in": { - "type": "string", - "enum": [ - "path" - ] - }, - "description": { - "type": "string" - }, - "required": { - "type": "boolean", - "enum": [ - true - ] - }, - "deprecated": { - "type": "boolean", - "default": false - }, - "allowEmptyValue": { - "type": "boolean", - "default": false - }, - "style": { - "type": "string", - "enum": [ - "matrix", - "label", - "simple" - ], - "default": "simple" - }, - "explode": { - "type": "boolean" - }, - "allowReserved": { - "type": "boolean", - "default": false - }, - "schema": { - "oneOf": [ - { - "$ref": "#/definitions/Schema" - }, - { - "$ref": "#/definitions/Reference" - } - ] - }, - "examples": { - "type": "object", - "additionalProperties": { - "oneOf": [ - { - "$ref": "#/definitions/Example" - }, - { - "$ref": "#/definitions/Reference" - } - ] - } - } - }, - "patternProperties": { - "^x-": {} - }, - "additionalProperties": false - }, - "ParameterWithSchemaWithExamplesInQuery": { - "type": "object", - "required": [ - "name", - "in", - "schema", - "examples" - ], - "properties": { - "name": { - "type": "string" - }, - "in": { - "type": "string", - "enum": [ - "query" - ] - }, - "description": { - "type": "string" - }, - "required": { - "type": "boolean", - "default": false - }, - "deprecated": { - "type": "boolean", - "default": false - }, - "allowEmptyValue": { - "type": "boolean", - "default": false - }, - "style": { - "type": "string", - "enum": [ - "form", - "spaceDelimited", - "pipeDelimited", - "deepObject" - ], - "default": "form" - }, - "explode": { - "type": "boolean" - }, - "allowReserved": { - "type": "boolean", - "default": false - }, - "schema": { - "oneOf": [ - { - "$ref": "#/definitions/Schema" - }, - { - "$ref": "#/definitions/Reference" - } - ] - }, - "examples": { - "type": "object", - "additionalProperties": { - "oneOf": [ - { - "$ref": "#/definitions/Example" - }, - { - "$ref": "#/definitions/Reference" - } - ] - } - } - }, - "patternProperties": { - "^x-": {} - }, - "additionalProperties": false - }, - "ParameterWithSchemaWithExamplesInHeader": { - "type": "object", - "required": [ - "name", - "in", - "schema", - "examples" - ], - "properties": { - "name": { - "type": "string" - }, - "in": { - "type": "string", - "enum": [ - "header" - ] - }, - "description": { - "type": "string" - }, - "required": { - "type": "boolean", - "default": false - }, - "deprecated": { - "type": "boolean", - "default": false - }, - "allowEmptyValue": { - "type": "boolean", - "default": false - }, - "style": { - "type": "string", - "enum": [ - "simple" - ], - "default": "simple" - }, - "explode": { - "type": "boolean" - }, - "allowReserved": { - "type": "boolean", - "default": false - }, - "schema": { - "oneOf": [ - { - "$ref": "#/definitions/Schema" - }, - { - "$ref": "#/definitions/Reference" - } - ] - }, - "examples": { - "type": "object", - "additionalProperties": { - "oneOf": [ - { - "$ref": "#/definitions/Example" - }, - { - "$ref": "#/definitions/Reference" - } - ] - } - } - }, - "patternProperties": { - "^x-": {} - }, - "additionalProperties": false - }, - "ParameterWithSchemaWithExamplesInCookie": { - "type": "object", - "required": [ - "name", - "in", - "schema", - "examples" - ], - "properties": { - "name": { - "type": "string" - }, - "in": { - "type": "string", - "enum": [ - "cookie" - ] - }, - "description": { - "type": "string" - }, - "required": { - "type": "boolean", - "default": false - }, - "deprecated": { - "type": "boolean", - "default": false - }, - "allowEmptyValue": { - "type": "boolean", - "default": false - }, - "style": { - "type": "string", - "enum": [ - "form" - ], - "default": "form" - }, - "explode": { - "type": "boolean" - }, - "allowReserved": { - "type": "boolean", - "default": false - }, - "schema": { - "oneOf": [ - { - "$ref": "#/definitions/Schema" - }, - { - "$ref": "#/definitions/Reference" - } - ] - }, - "examples": { - "type": "object", - "additionalProperties": { - "oneOf": [ - { - "$ref": "#/definitions/Example" - }, - { - "$ref": "#/definitions/Reference" - } - ] - } - } - }, - "patternProperties": { - "^x-": {} - }, - "additionalProperties": false - }, - "ParameterWithContent": { - "oneOf": [ - { - "$ref": "#/definitions/ParameterWithContentInPath" - }, - { - "$ref": "#/definitions/ParameterWithContentNotInPath" - } - ] - }, - "ParameterWithContentInPath": { - "type": "object", - "required": [ - "name", - "in", - "content" - ], - "properties": { - "name": { - "type": "string" - }, - "in": { - "type": "string", - "enum": [ - "path" - ] - }, - "description": { - "type": "string" - }, - "required": { - "type": "boolean", - "enum": [ - true - ] - }, - "deprecated": { - "type": "boolean", - "default": false - }, - "allowEmptyValue": { - "type": "boolean", - "default": false - }, - "content": { - "type": "object", - "additionalProperties": { - "$ref": "#/definitions/MediaType" - }, - "minProperties": 1, - "maxProperties": 1 - } - }, - "patternProperties": { - "^x-": {} - }, - "additionalProperties": false - }, - "ParameterWithContentNotInPath": { - "type": "object", - "required": [ - "name", - "in", - "content" - ], - "properties": { - "name": { - "type": "string" - }, - "in": { - "type": "string", - "enum": [ - "query", - "header", - "cookie" - ] - }, - "description": { - "type": "string" - }, - "required": { - "type": "boolean", - "default": false - }, - "deprecated": { - "type": "boolean", - "default": false - }, - "allowEmptyValue": { - "type": "boolean", - "default": false - }, - "content": { - "type": "object", - "additionalProperties": { - "$ref": "#/definitions/MediaType" - }, - "minProperties": 1, - "maxProperties": 1 - } - }, - "patternProperties": { - "^x-": {} - }, - "additionalProperties": false - }, - "RequestBody": { - "type": "object", - "required": [ - "content" - ], - "properties": { - "description": { - "type": "string" - }, - "content": { - "type": "object", - "additionalProperties": { - "$ref": "#/definitions/MediaType" - } - }, - "required": { - "type": "boolean", - "default": false - } - }, - "patternProperties": { - "^x-": {} - }, - "additionalProperties": false - }, - "SecurityScheme": { - "oneOf": [ - { - "$ref": "#/definitions/APIKeySecurityScheme" - }, - { - "$ref": "#/definitions/HTTPSecurityScheme" - }, - { - "$ref": "#/definitions/OAuth2SecurityScheme" - }, - { - "$ref": "#/definitions/OpenIdConnectSecurityScheme" - } - ] - }, - "APIKeySecurityScheme": { - "type": "object", - "required": [ - "type", - "name", - "in" - ], - "properties": { - "type": { - "type": "string", - "enum": [ - "apiKey" - ] - }, - "name": { - "type": "string" - }, - "in": { - "type": "string", - "enum": [ - "header", - "query", - "cookie" - ] - }, - "description": { - "type": "string" - } - }, - "patternProperties": { - "^x-": {} - }, - "additionalProperties": false - }, - "HTTPSecurityScheme": { - "oneOf": [ - { - "$ref": "#/definitions/NonBearerHTTPSecurityScheme" - }, - { - "$ref": "#/definitions/BearerHTTPSecurityScheme" - } - ] - }, - "NonBearerHTTPSecurityScheme": { - "not": { - "type": "object", - "properties": { - "scheme": { - "type": "string", - "enum": [ - "bearer" - ] - } - } - }, - "type": "object", - "required": [ - "scheme", - "type" - ], - "properties": { - "scheme": { - "type": "string" - }, - "description": { - "type": "string" - }, - "type": { - "type": "string", - "enum": [ - "http" - ] - } - }, - "patternProperties": { - "^x-": {} - }, - "additionalProperties": false - }, - "BearerHTTPSecurityScheme": { - "type": "object", - "required": [ - "type", - "scheme" - ], - "properties": { - "scheme": { - "type": "string", - "enum": [ - "bearer" - ] - }, - "bearerFormat": { - "type": "string" - }, - "type": { - "type": "string", - "enum": [ - "http" - ] - }, - "description": { - "type": "string" - } - }, - "patternProperties": { - "^x-": {} - }, - "additionalProperties": false - }, - "OAuth2SecurityScheme": { - "type": "object", - "required": [ - "type", - "flows" - ], - "properties": { - "type": { - "type": "string", - "enum": [ - "oauth2" - ] - }, - "flows": { - "$ref": "#/definitions/OAuthFlows" - }, - "description": { - "type": "string" - } - }, - "patternProperties": { - "^x-": {} - }, - "additionalProperties": false - }, - "OpenIdConnectSecurityScheme": { - "type": "object", - "required": [ - "type", - "openIdConnectUrl" - ], - "properties": { - "type": { - "type": "string", - "enum": [ - "openIdConnect" - ] - }, - "openIdConnectUrl": { - "type": "string" - }, - "description": { - "type": "string" - } - }, - "patternProperties": { - "^x-": {} - }, - "additionalProperties": false - }, - "OAuthFlows": { - "type": "object", - "properties": { - "implicit": { - "$ref": "#/definitions/ImplicitOAuthFlow" - }, - "password": { - "$ref": "#/definitions/PasswordOAuthFlow" - }, - "clientCredentials": { - "$ref": "#/definitions/ClientCredentialsFlow" - }, - "authorizationCode": { - "$ref": "#/definitions/AuthorizationCodeOAuthFlow" - } - }, - "patternProperties": { - "^x-": {} - }, - "additionalProperties": false - }, - "ImplicitOAuthFlow": { - "type": "object", - "required": [ - "authorizationUrl", - "scopes" - ], - "properties": { - "authorizationUrl": { - "type": "string" - }, - "refreshUrl": { - "type": "string" - }, - "scopes": { - "type": "object", - "additionalProperties": { - "type": "string" - } - } - }, - "patternProperties": { - "^x-": {} - }, - "additionalProperties": false - }, - "PasswordOAuthFlow": { - "type": "object", - "required": [ - "tokenUrl" - ], - "properties": { - "tokenUrl": { - "type": "string" - }, - "refreshUrl": { - "type": "string" - }, - "scopes": { - "type": "object", - "additionalProperties": { - "type": "string" - } - } - }, - "patternProperties": { - "^x-": {} - }, - "additionalProperties": false - }, - "ClientCredentialsFlow": { - "type": "object", - "required": [ - "tokenUrl" - ], - "properties": { - "tokenUrl": { - "type": "string" - }, - "refreshUrl": { - "type": "string" - }, - "scopes": { - "type": "object", - "additionalProperties": { - "type": "string" - } - } - }, - "patternProperties": { - "^x-": {} - }, - "additionalProperties": false - }, - "AuthorizationCodeOAuthFlow": { - "type": "object", - "required": [ - "authorizationUrl", - "tokenUrl" - ], - "properties": { - "authorizationUrl": { - "type": "string" - }, - "tokenUrl": { - "type": "string" - }, - "refreshUrl": { - "type": "string" - }, - "scopes": { - "type": "object", - "additionalProperties": { - "type": "string" - } - } - }, - "patternProperties": { - "^x-": {} - }, - "additionalProperties": false - }, - "Link": { - "oneOf": [ - { - "$ref": "#/definitions/LinkWithOperationRef" - }, - { - "$ref": "#/definitions/LinkWithOperationId" - } - ] - }, - "LinkWithOperationRef": { - "type": "object", - "properties": { - "operationRef": { - "type": "string" - }, - "parameters": { - "type": "object", - "additionalProperties": {} - }, - "requestBody": {}, - "description": { - "type": "string" - }, - "server": { - "$ref": "#/definitions/Server" - } - }, - "patternProperties": { - "^x-": {} - }, - "additionalProperties": false - }, - "LinkWithOperationId": { - "type": "object", - "properties": { - "operationId": { - "type": "string" - }, - "parameters": { - "type": "object", - "additionalProperties": {} - }, - "requestBody": {}, - "description": { - "type": "string" - }, - "server": { - "$ref": "#/definitions/Server" - } - }, - "patternProperties": { - "^x-": {} - }, - "additionalProperties": false - }, - "Callback": { - "type": "object", - "additionalProperties": { - "$ref": "#/definitions/PathItem" - }, - "patternProperties": { - "^x-": {} - } - }, - "Encoding": { - "type": "object", - "properties": { - "contentType": { - "type": "string" - }, - "headers": { - "type": "object", - "additionalProperties": { - "$ref": "#/definitions/Header" - } - }, - "style": { - "type": "string", - "enum": [ - "form", - "spaceDelimited", - "pipeDelimited", - "deepObject" - ] - }, - "explode": { - "type": "boolean" - }, - "allowReserved": { - "type": "boolean", - "default": false - } - }, - "additionalProperties": false - } - } -} \ No newline at end of file diff --git a/src/autorest-core/app.ts b/src/autorest-core/app.ts index 2075cabe90..91319eebe2 100644 --- a/src/autorest-core/app.ts +++ b/src/autorest-core/app.ts @@ -1,7 +1,7 @@ -// #!/usr/bin/env node +#!/usr/bin/env node // load modules from static linker filesystem. -if (process.argv.indexOf('--no-static-loader') === -1 && process.env['no-static-loader'] === undefined) { - require('./static-loader.js').load(`${__dirname}/static_modules.fs`); +if (process.argv.indexOf("--no-static-loader") === -1 && process.env["no-static-loader"] === undefined) { + require('./static-loader.js').load(`${__dirname}/static_modules.fs`) } /*--------------------------------------------------------------------------------------------- @@ -13,14 +13,15 @@ if (process.argv.indexOf('--no-static-loader') === -1 && process.env['no-static- // https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/padEnd if (!String.prototype.padEnd) { String.prototype.padEnd = function padEnd(targetLength, padString) { - targetLength = targetLength >> 0; // floor if number or convert non-number to 0; + targetLength = targetLength >> 0; //floor if number or convert non-number to 0; padString = String(padString || ' '); if (this.length > targetLength) { return String(this); - } else { + } + else { targetLength = targetLength - this.length; if (targetLength > padString.length) { - padString += padString.repeat(targetLength / padString.length); // append to original to ensure we are longer than needed + padString += padString.repeat(targetLength / padString.length); //append to original to ensure we are longer than needed } return String(this) + padString.slice(0, targetLength); } @@ -28,11 +29,11 @@ if (!String.prototype.padEnd) { } require('events').EventEmitter.defaultMaxListeners = 100; -process.env['ELECTRON_RUN_AS_NODE'] = '1'; +process.env['ELECTRON_RUN_AS_NODE'] = "1"; delete process.env['ELECTRON_NO_ATTACH_CONSOLE']; -process.on('exit', () => { - Shutdown(); +process.on("exit", () => { + Shutdown() }); const color: (text: string) => string = (global).color ? (global).color : p => p; @@ -40,38 +41,38 @@ const color: (text: string) => string = (global).color ? (global).colo // start of autorest-ng // the console app starts for real here. -import { ChildProcess } from "child_process"; -import { join, resolve as currentDirectory } from "path"; -import { Help } from "./help"; -import { CreateConfiguration, isLegacy } from "./legacyCli"; import { Artifact } from './lib/artifact'; -import { AutoRest, ConfigurationView, IsOpenApiDocument, Shutdown } from './lib/autorest-core'; import { AutoRestConfigurationImpl, MergeConfigurations } from './lib/configuration'; -import { DataStore } from "./lib/data-store/data-store"; -import { Exception, OperationCanceledException } from "./lib/exception"; -import { EnhancedFileSystem, RealFileSystem } from './lib/file-system'; -import { Channel, Message } from "./lib/message"; -import { OutstandingTaskAwaiter } from "./lib/outstanding-task-awaiter"; -import { CreateObject, nodes } from "./lib/ref/jsonpath"; -import { ClearFolder, CreateFolderUri, MakeRelativeUri, ReadUri, ResolveUri, WriteString } from "./lib/ref/uri"; import { Parse, Stringify } from "./lib/ref/yaml"; +import { CreateObject, nodes } from "./lib/ref/jsonpath"; +import { OutstandingTaskAwaiter } from "./lib/outstanding-task-awaiter"; +import { AutoRest, ConfigurationView, IsOpenApiDocument, Shutdown } from './lib/autorest-core'; import { ShallowCopy } from "./lib/source-map/merging"; +import { Message, Channel } from "./lib/message"; +import { join, resolve as currentDirectory } from "path"; +import { ChildProcess } from "child_process"; +import { CreateFolderUri, MakeRelativeUri, ReadUri, ResolveUri, WriteString, ClearFolder } from "./lib/ref/uri"; +import { isLegacy, CreateConfiguration } from "./legacyCli"; +import { DataStore } from "./lib/data-store/data-store"; +import { EnhancedFileSystem, RealFileSystem } from './lib/file-system'; +import { Exception, OperationCanceledException } from "./lib/exception"; +import { Help } from "./help"; let verbose = false; let debug = false; function awaitable(child: ChildProcess): Promise { return new Promise((resolve, reject) => { - child.addListener('error', reject); - child.addListener('exit', resolve); + child.addListener("error", reject); + child.addListener("exit", resolve); }); } async function showHelp(): Promise { - await currentMain(['--help']); + await currentMain(["--help"]); } -async function legacyMain(autorestArgs: Array): Promise { +async function legacyMain(autorestArgs: string[]): Promise { // generate virtual config file const currentDirUri = CreateFolderUri(currentDirectory()); const dataStore = new DataStore(); @@ -79,27 +80,27 @@ async function legacyMain(autorestArgs: Array): Promise { try { config = await CreateConfiguration(currentDirUri, dataStore.GetReadThroughScope(new RealFileSystem()), autorestArgs); } catch (e) { - console.error(color('!Error: You have provided legacy command line arguments (single-dash syntax) that seem broken.')); - console.error(''); + console.error(color("!Error: You have provided legacy command line arguments (single-dash syntax) that seem broken.")); + console.error(""); console.error(color( - '> While AutoRest keeps on supporting the old CLI by converting it over to the new one internally, \n' + - '> it does not have crazy logic determining *what* is wrong with arguments, should conversion fail. \n' + - '> Please try fixing your arguments or consider moving to the new CLI. \n' + - '> isit https://github.com/Azure/autorest/blob/master/docs/user/cli.md for information about the new CLI.')); - console.error(''); - console.error(color('!Internal error: ' + e)); + "> While AutoRest keeps on supporting the old CLI by converting it over to the new one internally, \n" + + "> it does not have crazy logic determining *what* is wrong with arguments, should conversion fail. \n" + + "> Please try fixing your arguments or consider moving to the new CLI. \n" + + "> isit https://github.com/Azure/autorest/blob/master/docs/user/cli.md for information about the new CLI.")); + console.error(""); + console.error(color("!Internal error: " + e)); await showHelp(); return 1; } // autorest init - if (autorestArgs[0] === 'init') { - const clientNameGuess = (config['override-info'] || {}).title || Parse(await ReadUri((config['input-file'] as any)[0])).info.title; - await autorestInit(clientNameGuess, Array.isArray(config['input-file']) ? config['input-file'] as any : []); + if (autorestArgs[0] === "init") { + const clientNameGuess = (config["override-info"] || {}).title || Parse(await ReadUri((config["input-file"] as any)[0])).info.title; + await autorestInit(clientNameGuess, Array.isArray(config["input-file"]) ? config["input-file"] as any : []); return 0; } // autorest init-min - if (autorestArgs[0] === 'init-min') { + if (autorestArgs[0] === "init-min") { console.log(`# AutoRest Configuration (auto-generated, please adjust title) > see https://aka.ms/autorest @@ -107,44 +108,44 @@ async function legacyMain(autorestArgs: Array): Promise { The following configuration was auto-generated and can be adjusted. ~~~ yaml -${Stringify(config).replace(/^---\n/, '')} +${Stringify(config).replace(/^---\n/, "")} ~~~ -`.replace(/~/g, '`')); +`.replace(/~/g, "`")); return 0; } // autorest init-cli - if (autorestArgs[0] === 'init-cli') { - const args: Array = []; - for (const node of nodes(config, '$..*')) { - const path = node.path.join('.'); - const values = node.value instanceof Array ? node.value : (typeof node.value === 'object' ? [] : [node.value]); + if (autorestArgs[0] === "init-cli") { + const args: string[] = []; + for (const node of nodes(config, "$..*")) { + const path = node.path.join("."); + const values = node.value instanceof Array ? node.value : (typeof node.value === "object" ? [] : [node.value]); for (const value of values) { args.push(`--${path}=${value}`); } } - console.log(args.join(' ')); + console.log(args.join(" ")); return 0; } - config['base-folder'] = currentDirUri; + config["base-folder"] = currentDirUri; const api = new AutoRest(new RealFileSystem()); api.AddConfiguration(config); const view = await api.view; let outstanding: Promise = Promise.resolve(); - api.GeneratedFile.Subscribe((_: AutoRest, file: Artifact) => outstanding = outstanding.then(() => WriteString(file.uri, file.content))); - api.ClearFolder.Subscribe((_: AutoRest, folder: string) => outstanding = outstanding.then(async () => { try { await ClearFolder(folder); } catch (e) { } })); + api.GeneratedFile.Subscribe((_, file) => outstanding = outstanding.then(() => WriteString(file.uri, file.content))); + api.ClearFolder.Subscribe((_, folder) => outstanding = outstanding.then(async () => { try { await ClearFolder(folder); } catch (e) { } })); subscribeMessages(api, () => { }); // warn about `--` arguments - for (let arg of autorestArgs) { - if (arg.startsWith('--')) { + for (var arg of autorestArgs) { + if (arg.startsWith("--")) { view.Message({ Channel: Channel.Warning, Text: `The parameter ${arg} looks like it was meant for the new CLI! ` + - 'Note that you have invoked the legacy CLI (by using at least one single-dash argument). ' + - 'Please visit https://github.com/Azure/autorest/blob/master/docs/user/cli.md for information about the new CLI.' + "Note that you have invoked the legacy CLI (by using at least one single-dash argument). " + + "Please visit https://github.com/Azure/autorest/blob/master/docs/user/cli.md for information about the new CLI." }); } } @@ -158,13 +159,14 @@ ${Stringify(config).replace(/^---\n/, '')} return 0; } + /** * Current AutoRest */ -interface CommandLineArgs { configFileOrFolder?: string, switches: any[], rawSwitches: any } +type CommandLineArgs = { configFileOrFolder?: string, switches: any[], rawSwitches: any }; -function parseArgs(autorestArgs: Array): CommandLineArgs { +function parseArgs(autorestArgs: string[]): CommandLineArgs { const result: CommandLineArgs = { switches: [], rawSwitches: {} @@ -184,7 +186,7 @@ function parseArgs(autorestArgs: Array): CommandLineArgs { // switch const key = match[1]; - let rawValue = match[3] || '{}'; + let rawValue = match[3] || "{}"; if (rawValue.startsWith('.')) { // starts with a . or .. -> this is a relative path to current directory @@ -197,7 +199,7 @@ function parseArgs(autorestArgs: Array): CommandLineArgs { rawValue = !isNaN(parseFloat(rawValue)) && rawValue.includes('.') ? `'${rawValue}'` : rawValue; const value = Parse(rawValue); result.rawSwitches[key] = value; - result.switches.push(CreateObject(key.split('.'), value)); + result.switches.push(CreateObject(key.split("."), value)); } return result; @@ -235,7 +237,7 @@ function subscribeMessages(api: AutoRest, errorCounter: () => void) { }); } -async function autorestInit(title: string = 'API-NAME', inputs: Array = ['LIST INPUT FILES HERE']) { +async function autorestInit(title: string = "API-NAME", inputs: string[] = ["LIST INPUT FILES HERE"]) { const cwdUri = CreateFolderUri(currentDirectory()); for (let i = 0; i < inputs.length; ++i) { try { @@ -243,19 +245,19 @@ async function autorestInit(title: string = 'API-NAME', inputs: Array = } catch (e) { } } console.log(`# ${title} -> see https://aka.ms/autorest +> see https://aka.ms/autorest This is the AutoRest configuration file for the ${title}. --- -## Getting Started -To build the SDK for ${title}, simply [Install AutoRest](https://aka.ms/autorest/install) and in this folder, run: +## Getting Started  +To build the SDK for ${title}, simply [Install AutoRest](https://aka.ms/autorest/install) and in this folder, run: -> ~autorest~ +> ~autorest~ To see additional help and options, run: -> ~autorest --help~ +> ~autorest --help~ --- ## Configuration for generating APIs @@ -263,33 +265,33 @@ To see additional help and options, run: ...insert-some-meanigful-notes-here... --- -#### Basic Information +#### Basic Information  These are the global settings for the API. ~~~ yaml # list all the input OpenAPI files (may be YAML, JSON, or Literate- OpenAPI markdown) input-file: -${inputs.map(x => ' - ' + x).join('\n')} +${inputs.map(x => " - " + x).join("\n")} ~~~ --- #### Language-specific settings: CSharp -These settings apply only when ~--csharp~ is specified on the command line. +These settings apply only when ~--csharp~ is specified on the command line. -~~~ yaml $(csharp) +~~~ yaml $(csharp)  csharp: # override the default output folder - output-folder: generated/csharp + output-folder: generated/csharp ~~~ -`.replace(/~/g, '`')); +`.replace(/~/g, "`")); } let exitcode = 0; let args: CommandLineArgs; -async function currentMain(autorestArgs: Array): Promise { - if (autorestArgs[0] === 'init') { +async function currentMain(autorestArgs: string[]): Promise { + if (autorestArgs[0] === "init") { await autorestInit(); return 0; } @@ -307,36 +309,38 @@ async function currentMain(autorestArgs: Array): Promise { // parse the args from the command line args = parseArgs([...autorestArgs, ...more]); - if ((!args.rawSwitches['message-format']) || args.rawSwitches['message-format'] === 'regular') { - console.log(color(`> Loading AutoRest core '${__dirname}' (${require('../package.json').version})`)); + if ((!args.rawSwitches["message-format"]) || args.rawSwitches["message-format"] === "regular") { + console.log(color(`> Loading AutoRest core '${__dirname}' (${require("../package.json").version})`)); } - verbose = verbose || args.rawSwitches['verbose']; - debug = debug || args.rawSwitches['debug']; + verbose = verbose || args.rawSwitches["verbose"]; + debug = debug || args.rawSwitches["debug"]; // identify where we are starting from. const currentDirUri = CreateFolderUri(currentDirectory()); // get an instance of AutoRest and add the command line switches to the configuration. - const api = new AutoRest(new EnhancedFileSystem((MergeConfigurations(...args.switches) as any)['github-auth-token'] || process.env.GITHUB_AUTH_TOKEN), ResolveUri(currentDirUri, args.configFileOrFolder || '.')); + const api = new AutoRest(new EnhancedFileSystem((MergeConfigurations(...args.switches) as any)["github-auth-token"] || process.env.GITHUB_AUTH_TOKEN), ResolveUri(currentDirUri, args.configFileOrFolder || ".")); api.AddConfiguration(args.switches); // listen for output messages and file writes subscribeMessages(api, () => exitcode++); - const artifacts: Array = []; - const clearFolders: Array = []; + const artifacts: Artifact[] = []; + const clearFolders: string[] = []; api.GeneratedFile.Subscribe((_, artifact) => artifacts.push(artifact)); api.ClearFolder.Subscribe((_, folder) => clearFolders.push(folder)); const config = (await api.view); // maybe a resource schema batch process - if (config['resource-schema-batch']) { - return resourceSchemaBatch(api); + if (config["resource-schema-batch"]) { + return await resourceSchemaBatch(api); } - if (config['batch']) { + if (config["batch"]) { await batch(api); - } else { + } + + else { const result = await api.Process().finish; if (result !== true) { throw result; @@ -346,11 +350,11 @@ async function currentMain(autorestArgs: Array): Promise { if (config.HelpRequested) { // no fs operations on --help! Instead, format and print artifacts to console. // - print boilerplate help - console.log(''); - console.log(''); - console.log(color('**Usage**: autorest `[configuration-file.md] [...options]`')); - console.log(''); - console.log(color(' See: https://aka.ms/autorest/cli for additional documentation')); + console.log(""); + console.log(""); + console.log(color("**Usage**: autorest `[configuration-file.md] [...options]`")); + console.log(""); + console.log(color(" See: https://aka.ms/autorest/cli for additional documentation")); // - sort artifacts by name (then content, just for stability) const helpArtifacts = artifacts.sort((a, b) => a.uri === b.uri ? (a.content > b.content ? 1 : -1) : (a.uri > b.uri ? 1 : -1)); // - format and print @@ -359,17 +363,17 @@ async function currentMain(autorestArgs: Array): Promise { if (!help) { continue; } - const activatedBySuffix = help.activationScope ? ` (activated by --${help.activationScope})` : ''; - console.log(''); + const activatedBySuffix = help.activationScope ? ` (activated by --${help.activationScope})` : ""; + console.log(""); console.log(color(`### ${help.categoryFriendlyName}${activatedBySuffix}`)); if (help.description) { console.log(color(help.description)); } - console.log(''); + console.log(""); for (const settingHelp of help.settings) { const keyPart = `--${settingHelp.key}`; - const typePart = settingHelp.type ? `=<${settingHelp.type}>` : ` `;// `[=]`; - const settingPart = `${keyPart}\`${typePart}\``; + const typePart = settingHelp.type ? `=<${settingHelp.type}>` : ` `;//`[=]`; + let settingPart = `${keyPart}\`${typePart}\``; // if (!settingHelp.required) { // settingPart = `[${settingPart}]`; // } @@ -416,7 +420,7 @@ function getRds(schema: any, path: string): Array { const m = rx.exec(path) || []; const apiversion = m[1]; const namespace = m[2]; - const result = new Array(); + const result = []; if (schema.resourceDefinitions) { for (const name of Object.getOwnPropertyNames(schema.resourceDefinitions)) { result.push(`{ "$ref": "https://schema.management.azure.com/schemas/${apiversion}/${namespace}.json#/resourceDefinitions/${name}" }, `); @@ -432,10 +436,10 @@ async function resourceSchemaBatch(api: AutoRest): Promise { let outstanding: Promise = Promise.resolve(); - // ask for the view without + // ask for the view without const config = await api.RegenerateView(); - for (const batchConfig of config.GetNestedConfiguration('resource-schema-batch')) { // really, there should be only one - for (const eachFile of batchConfig['input-file']) { + for (const batchConfig of config.GetNestedConfiguration("resource-schema-batch")) { // really, there should be only one + for (const eachFile of batchConfig["input-file"]) { const path = ResolveUri(config.configFileFolderUri, eachFile); const content = await ReadUri(path); if (!await IsOpenApiDocument(content)) { @@ -447,12 +451,12 @@ async function resourceSchemaBatch(api: AutoRest): Promise { // Create the autorest instance for that item const instance = new AutoRest(new RealFileSystem(), config.configFileFolderUri); instance.GeneratedFile.Subscribe((_, file) => { - if (file.uri.endsWith('.json')) { + if (file.uri.endsWith(".json")) { const more = JSON.parse(file.content); if (!outputs.has(file.uri)) { // Console.Log(` Writing *${file.uri}*`); outputs.set(file.uri, file.content); - outstanding = outstanding.then(() => WriteString(file.uri, file.content)); + outstanding = outstanding.then(() => WriteString(file.uri, file.content)) schemas.push(...getRds(more, file.uri)); return; } else { @@ -471,14 +475,18 @@ async function resourceSchemaBatch(api: AutoRest): Promise { subscribeMessages(instance, () => exitcode++); // set configuration for that item - instance.AddConfiguration(ShallowCopy(batchConfig, 'input-file')); - instance.AddConfiguration({ 'input-file': eachFile }); + instance.AddConfiguration(ShallowCopy(batchConfig, "input-file")); + instance.AddConfiguration({ "input-file": eachFile }); + + // const newView = await instance.view; + // console.log(`Inputs: ${newView["input-file"]}`); + // newView.Dump() console.log(`Running autorest for *${path}* `); // ok, kick off the process for that one. await instance.Process().finish.then(async (result) => { - if (result !== true) { + if (result != true) { exitcode++; throw result; } @@ -495,14 +503,14 @@ async function batch(api: AutoRest): Promise { const config = await api.view; const batchTaskConfigReference: any = {}; api.AddConfiguration(batchTaskConfigReference); - for (const batchTaskConfig of config.GetEntry('batch' as any)) { + for (const batchTaskConfig of config.GetEntry("batch" as any)) { outputMessage(api, { Channel: Channel.Information, Text: `Processing batch task - ${JSON.stringify(batchTaskConfig)} .` }, () => { }); // update batch task config section - for (const key of Object.keys(batchTaskConfigReference)) { delete batchTaskConfigReference[key]; } + for (const key of Object.keys(batchTaskConfigReference)) delete batchTaskConfigReference[key]; Object.assign(batchTaskConfigReference, batchTaskConfig); api.Invalidate(); @@ -522,7 +530,7 @@ async function batch(api: AutoRest): Promise { */ async function mainImpl(): Promise { let autorestArgs: Array = []; - const exitcode: number = 0; + let exitcode: number = 0; try { autorestArgs = process.argv.slice(2); @@ -535,12 +543,12 @@ async function mainImpl(): Promise { // be very careful about the following check: // - doing the inversion (instanceof Error) doesn't reliably work since that seems to return false on Errors marshalled from safeEval if (e instanceof Exception) { - if (autorestArgs.indexOf('--debug') !== -1) { + if (autorestArgs.indexOf("--debug") !== -1) { console.log(e); } else { console.log(e.message); } - return e.exitCode; + return e.exitCode } if (e !== false) { console.error(color(`!${e}`)); @@ -555,7 +563,8 @@ async function main() { exitcode = await mainImpl(); } catch { exitcode = 102; - } finally { + } + finally { try { await Shutdown(); } catch { @@ -565,4 +574,4 @@ async function main() { } } -main(); +main(); \ No newline at end of file diff --git a/src/autorest-core/language-service/language-service.ts b/src/autorest-core/language-service/language-service.ts index bf0adc0153..dc26280b0b 100644 --- a/src/autorest-core/language-service/language-service.ts +++ b/src/autorest-core/language-service/language-service.ts @@ -1,4 +1,4 @@ -//#!/usr/bin/env node +#!/usr/bin/env node // load modules from static linker filesystem. if (process.argv.indexOf("--no-static-loader") === -1 && process.env["no-static-loader"] === undefined) { require('../static-loader.js').load(`${__dirname}/../static_modules.fs`) @@ -312,7 +312,7 @@ class OpenApiLanguageService extends TextDocuments implements IFileSystem { // if this is a configuration, clear it's own errors this.getDiagnosticCollection(documentUri).clear(true); - // and if there are no files open, then clear theirs too. + // and if there are no input-files open, then clear theirs too. const result = this.results.get(documentUri); if (result) { // make sure it's not doing anything... diff --git a/src/autorest-core/lib/autorest-core.ts b/src/autorest-core/lib/autorest-core.ts index 7279121595..4b8a64a7b4 100644 --- a/src/autorest-core/lib/autorest-core.ts +++ b/src/autorest-core/lib/autorest-core.ts @@ -3,41 +3,41 @@ * Licensed under the MIT License. See License.txt in the project root for license information. *--------------------------------------------------------------------------------------------*/ -import { Configuration, ConfigurationView, MessageEmitter } from "./configuration"; -import { EventEmitter, IEvent } from "./events"; -import { Exception } from "./exception"; -import { IFileSystem, RealFileSystem } from "./file-system"; import { RunPipeline } from "./pipeline/pipeline"; import { Push } from "./ref/linq"; -export { ConfigurationView } from './configuration'; -import { homedir } from "os" -import { Artifact } from "./artifact"; +import { IEvent, EventEmitter } from "./events"; +import { IFileSystem, RealFileSystem } from "./file-system"; +import { Exception } from "./exception"; +import { Configuration, ConfigurationView, MessageEmitter } from "./configuration"; +export { ConfigurationView } from "./configuration"; +import { Message, Channel } from "./message"; import * as Constants from "./constants"; +import { Artifact } from "./artifact"; +import { homedir } from "os" import { DocumentType } from "./document-type"; -import { Channel, Message } from "./message"; /** - * An instance of the AutoRest generator. - * + * An instance of the AutoRest generator. + * * Note: to create an instance of autore */ export class AutoRest extends EventEmitter { /** * Event: Signals when a Process() finishes. */ - @EventEmitter.Event public Finished!: IEvent; + @EventEmitter.Event public Finished: IEvent; /** * Event: Signals when a File is generated */ - @EventEmitter.Event public GeneratedFile!: IEvent; + @EventEmitter.Event public GeneratedFile: IEvent; /** * Event: Signals when a Folder is supposed to be cleared */ - @EventEmitter.Event public ClearFolder!: IEvent; + @EventEmitter.Event public ClearFolder: IEvent; /** * Event: Signals when a message is generated */ - @EventEmitter.Event public Message!: IEvent; + @EventEmitter.Event public Message: IEvent; private _configurations = new Array(); private _view: ConfigurationView | undefined; @@ -53,7 +53,7 @@ export class AutoRest extends EventEmitter { public constructor(private fileSystem: IFileSystem = new RealFileSystem(), public configFileOrFolderUri?: string) { super(); // ensure the environment variable for the home folder is set. - process.env['autorest.home'] = process.env['autorest.home'] || homedir(); + process.env["autorest.home"] = process.env["autorest.home"] || homedir(); } public async RegenerateView(includeDefault: boolean = false): Promise { @@ -89,7 +89,7 @@ export class AutoRest extends EventEmitter { /** * Called to start processing of the files. */ - public Process(): { finish: Promise, cancel(): void } { + public Process(): { finish: Promise, cancel: () => void } { let earlyCancel = false; let cancel: () => void = () => earlyCancel = true; const processInternal = async () => { @@ -108,15 +108,16 @@ export class AutoRest extends EventEmitter { view.messageEmitter.removeAllListeners(); } }; + if (view.InputFileUris.length === 0) { - if (view.GetEntry('allow-no-input')) { + if (view.GetEntry("allow-no-input")) { this.Finished.Dispatch(true); return true; } else { // if this is using perform-load we don't need to require files. - // if it's using batch, we might not have files in the main body - if ((view.Raw as any)['perform-load'] !== false) { - return new Exception('No input files provided.\n\nUse --help to get help information.'); + // if it's using batch, we might not have files in the main body + if ((view.Raw as any)["perform-load"] !== false) { + return new Exception("No input files provided.\n\nUse --help to get help information."); } } } @@ -127,8 +128,8 @@ export class AutoRest extends EventEmitter { } await Promise.race([ - RunPipeline(view, this.fileSystem), - new Promise((_, rej) => view.CancellationToken.onCancellationRequested(() => rej('Cancellation requested.')))]); + RunPipeline(view, this.fileSystem), + new Promise((_, rej) => view.CancellationToken.onCancellationRequested(() => rej("Cancellation requested.")))]); // finished -- return status (if cancelled, returns false.) this.Finished.Dispatch(!view.CancellationTokenSource.token.isCancellationRequested); @@ -152,26 +153,26 @@ export class AutoRest extends EventEmitter { } }; return { - cancel: cancel, + cancel: () => cancel(), finish: processInternal() - }; + } } } /** Determines the document type based on the content of the document - * + * * @returns Promise one of: * - DocumentType.LiterateConfiguration - contains the magic string '\n> see https://aka.ms/autorest' * - DocumentType.OpenAPI2 - $.swagger === "2.0" * - DocumentType.OpenAPI3 - $.openapi === "3.0.0" * - DocumentType.Unknown - content does not match a known document type - * + * * @see {@link DocumentType} */ export async function IdentifyDocument(content: string): Promise { if (content) { - // check for configuratuion + // check for configuratuion if (await IsConfigurationDocument(content)) { return DocumentType.LiterateConfiguration; } @@ -191,8 +192,8 @@ export async function IdentifyDocument(content: string): Promise { } } if (doc) { - return (doc.swagger && doc.swagger === '2.0') ? DocumentType.OpenAPI2 : - (doc.openapi && doc.openapi === '3.0.0') ? DocumentType.OpenAPI3 : + return (doc.swagger && doc.swagger === "2.0") ? DocumentType.OpenAPI2 : + (doc.openapi && doc.openapi === "3.0.0") ? DocumentType.OpenAPI3 : DocumentType.Unknown; } } @@ -202,17 +203,17 @@ export async function IdentifyDocument(content: string): Promise { /** * Processes a document (yaml, markdown or JSON) and returns the document as a JSON-encoded document text * @param content - the document content - * + * * @returns the content as a JSON string (not a JSON DOM) */ export async function LiterateToJson(content: string): Promise { try { - const autorest = new AutoRest({ - async EnumerateFileUris(folderUri: string): Promise> { return []; }, - ReadFile: async (f: string): Promise => f == 'none:///empty-file.md' ? content || '# empty file' : '# empty file' + let autorest = new AutoRest({ + EnumerateFileUris: async function (folderUri: string): Promise> { return []; }, + ReadFile: async (f: string): Promise => f == "none:///empty-file.md" ? content || "# empty file" : "# empty file" }); - let result = ''; - autorest.AddConfiguration({ 'input-file': 'none:///empty-file.md', 'output-artifact': ['swagger-document'] }); + let result = ""; + autorest.AddConfiguration({ "input-file": "none:///empty-file.md", "output-artifact": ["swagger-document"] }); autorest.GeneratedFile.Subscribe((source, artifact) => { result = artifact.content; }); @@ -221,13 +222,13 @@ export async function LiterateToJson(content: string): Promise { await (await autorest.Process()).finish; return result; } catch (x) { - return ''; + return ""; } } /** * Checks to see if the document is a literate configuation document. - * + * * @param content the document content to check */ export async function IsConfigurationDocument(content: string): Promise { @@ -235,7 +236,7 @@ export async function IsConfigurationDocument(content: string): Promise return content.indexOf(Constants.MagicString) > -1; } -/** +/** * Given a document's content, does this represent a openapi document of some sort? * * @param content - the document content to evaluate @@ -262,8 +263,8 @@ export async function Shutdown() { */ export async function IsConfigurationExtension(extension: string): Promise { switch (extension) { - case 'markdown': - case 'md': + case "markdown": + case "md": return true; default: return false; @@ -276,13 +277,13 @@ export async function IsConfigurationExtension(extension: string): Promise { switch (extension) { - case 'yaml': - case 'yml': - case 'markdown': - case 'md': - case 'json': + case "yaml": + case "yml": + case "markdown": + case "md": + case "json": return true; default: return false; } -} +} \ No newline at end of file diff --git a/src/autorest-core/lib/configuration.ts b/src/autorest-core/lib/configuration.ts index bae697cd85..b1a9b20382 100644 --- a/src/autorest-core/lib/configuration.ts +++ b/src/autorest-core/lib/configuration.ts @@ -3,11 +3,11 @@ * Licensed under the MIT License. See License.txt in the project root for license information. *--------------------------------------------------------------------------------------------*/ +import { Stringify, ParseToAst } from './ref/yaml'; import { Extension, ExtensionManager, LocalExtension } from "@microsoft.azure/extension"; import { ChildProcess } from "child_process"; -import { ParseToAst, Stringify } from './ref/yaml'; -import { basename, dirname, join } from "path"; +import { join, basename, dirname } from "path"; import { Artifact } from './artifact'; import * as Constants from './constants'; import { DataHandle, DataStore } from './data-store/data-store'; @@ -16,7 +16,6 @@ import { OperationAbortedException } from './exception'; import { IFileSystem, RealFileSystem } from './file-system'; import { LazyPromise } from './lazy'; import { Channel, Message, Range, SourceLocation } from './message'; -import { OutstandingTaskAwaiter } from "./outstanding-task-awaiter" import { EvaluateGuard, ParseCodeBlocks } from './parsing/literate-yaml'; import { AutoRestExtension } from './pipeline/plugin-endpoint'; import { Suppressor } from './pipeline/suppression'; @@ -24,57 +23,58 @@ import { exists } from './ref/async'; import { CancellationToken, CancellationTokenSource } from './ref/cancellation'; import { stringify } from './ref/jsonpath'; import { From } from './ref/linq'; -import { safeEval } from './ref/safe-eval'; import { CreateFileUri, CreateFolderUri, EnsureIsFolderUri, ExistsUri, ResolveUri } from './ref/uri'; import { BlameTree } from './source-map/blaming'; import { MergeOverwriteOrAppend, resolveRValue } from './source-map/merging'; import { TryDecodeEnhancedPositionFromName } from './source-map/source-map'; +import { safeEval } from './ref/safe-eval'; +import { OutstandingTaskAwaiter } from "./outstanding-task-awaiter" -const untildify: (path: string) => string = require('untildify'); +const untildify: (path: string) => string = require("untildify"); const RESOLVE_MACROS_AT_RUNTIME = true; export interface AutoRestConfigurationImpl { __info?: string | null; - 'allow-no-input'?: boolean; - 'input-file'?: Array | string; - 'base-folder'?: string; - 'directive'?: Array | Directive; - 'declare-directive'?: { [name: string]: string }; - 'output-artifact'?: Array | string; - 'message-format'?: 'json' | 'yaml' | 'regular'; - 'use-extension'?: { [extensionName: string]: string }; - 'require'?: Array | string; - 'try-require'?: Array | string; - 'help'?: any; - 'vscode'?: any; // activates VS Code specific behavior and does *NOT* influence the core's behavior (only consumed by VS Code extension) - - 'override-info'?: any; // make sure source maps are pulling it! (see "composite swagger" method) - 'title'?: any; - 'description'?: any; - - 'debug'?: boolean; - 'verbose'?: boolean; + "allow-no-input"?: boolean; + "input-file"?: string[] | string; + "base-folder"?: string; + "directive"?: Directive[] | Directive; + "declare-directive"?: { [name: string]: string }; + "output-artifact"?: string[] | string; + "message-format"?: "json" | "yaml" | "regular"; + "use-extension"?: { [extensionName: string]: string }; + "require"?: string[] | string; + "try-require"?: string[] | string; + "help"?: any; + "vscode"?: any; // activates VS Code specific behavior and does *NOT* influence the core's behavior (only consumed by VS Code extension) + + "override-info"?: any; // make sure source maps are pulling it! (see "composite swagger" method) + "title"?: any; + "description"?: any; + + "debug"?: boolean; + "verbose"?: boolean; // plugin specific - 'output-file'?: string; - 'output-folder'?: string; + "output-file"?: string; + "output-folder"?: string; // from here on: CONVENTION, not cared about by the core - 'client-side-validation'?: boolean; // C# - 'fluent'?: boolean; - 'azure-arm'?: boolean; - 'namespace'?: string; - 'license-header'?: string; - 'add-credentials'?: boolean; - 'package-name'?: string; // Ruby, Python, ... - 'package-version'?: string; - 'sync-methods'?: 'all' | 'essential' | 'none'; - 'payload-flattening-threshold'?: number; - 'openapi-type'?: string; // the specification type (ARM/Data-Plane/Default) + "client-side-validation"?: boolean; // C# + "fluent"?: boolean; + "azure-arm"?: boolean; + "namespace"?: string; + "license-header"?: string; + "add-credentials"?: boolean; + "package-name"?: string; // Ruby, Python, ... + "package-version"?: string; + "sync-methods"?: "all" | "essential" | "none"; + "payload-flattening-threshold"?: number; + "openapi-type"?: string // the specification type (ARM/Data-Plane/Default) } -export function MergeConfigurations(...configs: Array): AutoRestConfigurationImpl { +export function MergeConfigurations(...configs: AutoRestConfigurationImpl[]): AutoRestConfigurationImpl { let result: AutoRestConfigurationImpl = {}; for (const config of configs) { result = MergeConfiguration(result, config); @@ -105,15 +105,15 @@ function ValuesOf(value: any): Iterable { } export interface Directive { - from?: Array | string; - where?: Array | string; + from?: string[] | string; + where?: string[] | string; reason?: string; // one of: - suppress?: Array | string; - set?: Array | string; - transform?: Array | string; - test?: Array | string; + suppress?: string[] | string; + set?: string[] | string; + transform?: string[] | string; + test?: string[] | string; } export class DirectiveView { @@ -121,11 +121,11 @@ export class DirectiveView { } public get from(): Iterable { - return ValuesOf(this.directive['from']); + return ValuesOf(this.directive["from"]); } public get where(): Iterable { - return ValuesOf(this.directive['where']); + return ValuesOf(this.directive["where"]); } public get reason(): string | null { @@ -133,31 +133,31 @@ export class DirectiveView { } public get suppress(): Iterable { - return ValuesOf(this.directive['suppress']); + return ValuesOf(this.directive["suppress"]); } public get transform(): Iterable { - return ValuesOf(this.directive['transform']); + return ValuesOf(this.directive["transform"]); } public get test(): Iterable { - return ValuesOf(this.directive['test']); + return ValuesOf(this.directive["test"]); } } export class MessageEmitter extends EventEmitter { /** - * Event: Signals when a File is generated - */ - @EventEmitter.Event public GeneratedFile!: IEvent; + * Event: Signals when a File is generated + */ + @EventEmitter.Event public GeneratedFile: IEvent; /** * Event: Signals when a Folder is supposed to be cleared */ - @EventEmitter.Event public ClearFolder!: IEvent; + @EventEmitter.Event public ClearFolder: IEvent; /** * Event: Signals when a message is generated */ - @EventEmitter.Event public Message!: IEvent; + @EventEmitter.Event public Message: IEvent; private cancellationTokenSource = new CancellationTokenSource(); constructor() { @@ -173,11 +173,11 @@ export class MessageEmitter extends EventEmitter { function ProxifyConfigurationView(cfgView: any) { return new Proxy(cfgView, { get: (target, property) => { - const value = (target)[property]; + const value = (target)[property]; if (value && value instanceof Array) { - const result = new Array(); + const result = []; for (const each of value) { - result.push(resolveRValue(each, '', target, null)); + result.push(resolveRValue(each, "", target, null)); } return result; } @@ -188,7 +188,7 @@ function ProxifyConfigurationView(cfgView: any) { const loadedExtensions: { [fullyQualified: string]: { extension: Extension, autorestExtension: LazyPromise } } = {}; /*@internal*/ export async function GetExtension(fullyQualified: string): Promise { - return loadedExtensions[fullyQualified].autorestExtension; + return await loadedExtensions[fullyQualified].autorestExtension; } export class ConfigurationView { @@ -208,12 +208,12 @@ export class ConfigurationView { // theoretically the `ValuesOf` approach and such won't support blaming (who to blame if $.directives[3] sucks? which code block was it from) // long term, we simply gotta write a `Merge` method that adheres to the rules we need in here. this.rawConfig = { - 'directive': [], - 'input-file': [], - 'output-artifact': [], - 'require': [], - 'try-require': [], - 'use': [], + "directive": [], + "input-file": [], + "output-artifact": [], + "require": [], + "try-require": [], + "use": [], }; this.rawConfig = MergeConfigurations(this.rawConfig, ...configs); @@ -221,11 +221,11 @@ export class ConfigurationView { // default values that are the least priority. // TODO: why is this here and not in default-configuration? this.rawConfig = MergeConfiguration(this.rawConfig, { - 'base-folder': '.', - 'output-folder': 'generated', - 'debug': false, - 'verbose': false, - 'disable-validation': false + "base-folder": ".", + "output-folder": "generated", + "debug": false, + "verbose": false, + "disable-validation": false }); if (RESOLVE_MACROS_AT_RUNTIME) { @@ -260,26 +260,26 @@ export class ConfigurationView { if (keys && keys.length > 0) { const path = dirname(keys[0]); - if (path.startsWith('file://')) { + if (path.startsWith("file://")) { // the configuration is a file path // we can save the configuration file to the target location - this.GeneratedFile.Dispatch({ content, type: 'configuration', uri: `${path}/${filename}` }); + this.GeneratedFile.Dispatch({ content, type: "configuration", uri: `${path}/${filename}` }); } } } - public Dump(title: string = ''): void { - console.log(`\n${title}\n===================================`); + public Dump(title: string = ""): void { + console.log(`\n${title}\n===================================`) for (const each of Object.getOwnPropertyNames(this.config)) { console.log(`${each} : ${(this.config)[each]}`); - } + }; } /* @internal */ public get Indexer(): ConfigurationView { return new Proxy(this, { get: (target, property) => { - return property in target.config ? (target.config)[property] : this[property]; + return property in target.config ? (target.config)[property] : this[property]; } }); } @@ -302,26 +302,26 @@ export class ConfigurationView { } private get BaseFolderUri(): string { - return EnsureIsFolderUri(ResolveUri(this.configFileFolderUri, this.config['base-folder'] as string)); + return EnsureIsFolderUri(ResolveUri(this.configFileFolderUri, this.config["base-folder"] as string)); } // public methods public get UseExtensions(): Array<{ name: string, source: string, fullyQualified: string }> { - const useExtensions = this.Indexer['use-extension'] || {}; + const useExtensions = this.Indexer["use-extension"] || {}; return Object.keys(useExtensions).map(name => { const source = useExtensions[name]; return { - name, - source, + name: name, + source: source, fullyQualified: JSON.stringify([name, source]) }; }); } - public async IncludedConfigurationFiles(fileSystem: IFileSystem, ignoreFiles: Set): Promise> { + public async IncludedConfigurationFiles(fileSystem: IFileSystem, ignoreFiles: Set): Promise { const result = new Array(); - for (const each of From(ValuesOf(this.config['require']))) { + for (const each of From(ValuesOf(this.config["require"]))) { const path = this.ResolveAsPath(each); if (!ignoreFiles.has(path)) { result.push(this.ResolveAsPath(each)); @@ -329,7 +329,7 @@ export class ConfigurationView { } // for try require, see if it exists before including it in the list. - for (const each of From(ValuesOf(this.config['try-require']))) { + for (const each of From(ValuesOf(this.config["try-require"]))) { const path = this.ResolveAsPath(each); try { if (!ignoreFiles.has(path) && await fileSystem.ReadFile(path)) { @@ -346,11 +346,11 @@ export class ConfigurationView { return result; } - public get Directives(): Array { - const plainDirectives = ValuesOf(this.config['directive']); - const declarations = this.config['declare-directive'] || {}; + public get Directives(): DirectiveView[] { + const plainDirectives = ValuesOf(this.config["directive"]); + const declarations = this.config["declare-directive"] || {}; const expandDirective = (dir: Directive): Iterable => { - const makro = Object.keys(dir).filter(m => declarations[m])[0]; + const makro = Object.keys(dir).filter(makro => declarations[makro])[0]; if (!makro) { return [dir]; // nothing to expand } @@ -367,29 +367,29 @@ export class ConfigurationView { const result = safeEval(declarations[makro], { $: parameter, $context: dir }); return Array.isArray(result) ? result : [result]; }).ToArray(); - return From(makroResults).SelectMany((result: any) => expandDirective({ ...result, ...dir })); + return From(makroResults).SelectMany((result: any) => expandDirective(Object.assign(result, dir))); }; // makro expansion return From(plainDirectives).SelectMany(expandDirective).Select(each => new DirectiveView(each)).ToArray(); } - public get InputFileUris(): Array { - return From(ValuesOf(this.config['input-file'])) + public get InputFileUris(): string[] { + return From(ValuesOf(this.config["input-file"])) .Select(each => this.ResolveAsPath(each)) .ToArray(); } public get OutputFolderUri(): string { - return this.ResolveAsFolder(this.config['output-folder'] as string); + return this.ResolveAsFolder(this.config["output-folder"] as string); } public IsOutputArtifactRequested(artifact: string): boolean { - return From(ValuesOf(this.config['output-artifact'])).Contains(artifact); + return From(ValuesOf(this.config["output-artifact"])).Contains(artifact); } public GetEntry(key: keyof AutoRestConfigurationImpl): any { let result = this.config as any; - for (const keyPart of key.split('.')) { + for (const keyPart of key.split(".")) { result = result[keyPart]; } return result; @@ -400,15 +400,15 @@ export class ConfigurationView { } public get DebugMode(): boolean { - return !!this.config['debug']; + return !!this.config["debug"]; } public get VerboseMode(): boolean { - return !!this.config['verbose']; + return !!this.config["verbose"]; } public get HelpRequested(): boolean { - return !!this.config['help']; + return !!this.config["help"]; } public * GetNestedConfiguration(pluginName: string): Iterable { @@ -419,7 +419,7 @@ export class ConfigurationView { } } - public GetNestedConfigurationImmediate(...scope: Array): ConfigurationView { + public GetNestedConfigurationImmediate(...scope: any[]): ConfigurationView { return new ConfigurationView(this.configurationFiles, this.fileSystem, this.messageEmitter, this.configFileFolderUri, ...scope, this.config).Indexer; } @@ -455,16 +455,18 @@ export class ConfigurationView { if (!shouldComplain) { shouldComplain = true; } - const path = s.Position.path as Array; + const path = s.Position.path as string[]; if (path) { if (path.length === 0) { throw e; } // adjustment // 1) skip leading `$` - if (path[0] === '$') { + if (path[0] === "$") { path.shift(); - } else { + } + // 2) drop last part + else { path.pop(); } } else { @@ -484,8 +486,8 @@ export class ConfigurationView { return blameTree.BlameLeafs().map(r => { document: r.source, Position: { ...TryDecodeEnhancedPositionFromName(r.name), line: r.line, column: r.column } }); }); - // console.log("---"); - // console.log(JSON.stringify(m.Source, null, 2)); + //console.log("---"); + //console.log(JSON.stringify(m.Source, null, 2)); m.Source = From(blameSources).SelectMany(x => x).ToArray(); // get friendly names @@ -499,8 +501,8 @@ export class ConfigurationView { } } - // console.log(JSON.stringify(m.Source, null, 2)); - // console.log("---"); + //console.log(JSON.stringify(m.Source, null, 2)); + //console.log("---"); } // set range (dummy) @@ -523,8 +525,8 @@ export class ConfigurationView { // forward if (mx !== null) { // format message - switch (this.GetEntry('message-format')) { - case 'json': + switch (this.GetEntry("message-format")) { + case "json": // TODO: WHAT THE FUDGE, check with the consumers whether this has to be like that... otherwise, consider changing the format to something less generic if (mx.Details) { mx.Details.sources = (mx.Source || []).filter(x => x.Position).map(source => { @@ -535,17 +537,17 @@ export class ConfigurationView { return text; }); if (mx.Details.sources.length > 0) { - mx.Details['jsonref'] = mx.Details.sources[0]; - mx.Details['json-path'] = mx.Details.sources[0]; + mx.Details["jsonref"] = mx.Details.sources[0]; + mx.Details["json-path"] = mx.Details.sources[0]; } } mx.FormattedMessage = JSON.stringify(mx.Details || mx, null, 2); break; - case 'yaml': - mx.FormattedMessage = Stringify([mx.Details || mx]).replace(/^---/, ''); + case "yaml": + mx.FormattedMessage = Stringify([mx.Details || mx]).replace(/^---/, ""); break; default: - let text = `${(mx.Channel || Channel.Information).toString().toUpperCase()}${mx.Key ? ` (${[...mx.Key].join('/')})` : ''}: ${mx.Text}`; + let text = `${(mx.Channel || Channel.Information).toString().toUpperCase()}${mx.Key ? ` (${[...mx.Key].join("/")})` : ""}: ${mx.Text}`; for (const source of mx.Source || []) { if (source.Position) { try { @@ -581,24 +583,24 @@ export class Configuration { private configFileOrFolderUri?: string, ) { } - private async ParseCodeBlocks(configFile: DataHandle, contextConfig: ConfigurationView, scope: string): Promise> { + private async ParseCodeBlocks(configFile: DataHandle, contextConfig: ConfigurationView, scope: string): Promise { // load config const hConfig = await ParseCodeBlocks( contextConfig, configFile, contextConfig.DataStore.getDataSink()); - if (hConfig.length === 1 && hConfig[0].info === null && configFile.Description.toLowerCase().endsWith('.md')) { + if (hConfig.length === 1 && hConfig[0].info === null && configFile.Description.toLowerCase().endsWith(".md")) { // this is a whole file, and it's a markdown file. return []; } const blocks = hConfig.filter(each => each).map(each => { const block = each.data.ReadObject() || {}; - if (typeof block !== 'object') { + if (typeof block !== "object") { contextConfig.Message({ Channel: Channel.Error, - Text: 'Syntax error: Invalid YAML object.', + Text: "Syntax error: Invalid YAML object.", Source: [{ document: each.data.key, Position: { line: 1, column: 0 } }] }); throw new OperationAbortedException(); @@ -609,12 +611,12 @@ export class Configuration { return blocks; } - private static extensionManager: LazyPromise = new LazyPromise(() => ExtensionManager.Create(join(process.env['autorest.home'] || require('os').homedir(), '.autorest'))); + private static extensionManager: LazyPromise = new LazyPromise(() => ExtensionManager.Create(join(process.env["autorest.home"] || require("os").homedir(), ".autorest"))); private async DesugarRawConfig(configs: any): Promise { // shallow copy - configs = { ...configs }; - configs['use-extension'] = { ...configs['use-extension'] }; + configs = Object.assign({}, configs); + configs["use-extension"] = { ...configs["use-extension"] }; if (configs.hasOwnProperty('licence-header')) { configs['license-header'] = configs['licence-header']; @@ -623,22 +625,22 @@ export class Configuration { // use => use-extension let use = configs.use; - if (typeof use === 'string') { + if (typeof use === "string") { use = [use]; } if (Array.isArray(use)) { const extMgr = await Configuration.extensionManager; for (const useEntry of use) { - if (typeof useEntry === 'string') { + if (typeof useEntry === "string") { // attempt @ interpretation const separatorIndex = useEntry.lastIndexOf('@'); const versionPart = useEntry.slice(separatorIndex + 1); if (separatorIndex > 0 && /^[^/\\]+$/.test(versionPart)) { const pkg = await extMgr.findPackage(useEntry.slice(0, separatorIndex), versionPart); - configs['use-extension'][pkg.name] = versionPart; + configs["use-extension"][pkg.name] = versionPart; } else { - const pkg = await extMgr.findPackage('foo', useEntry); - configs['use-extension'][pkg.name] = useEntry; + const pkg = await extMgr.findPackage("foo", useEntry); + configs["use-extension"][pkg.name] = useEntry; } } } @@ -648,7 +650,7 @@ export class Configuration { return configs; } - private async DesugarRawConfigs(configs: Array): Promise> { + private async DesugarRawConfigs(configs: any[]): Promise { return Promise.all(configs.map(c => this.DesugarRawConfig(c))); } @@ -656,12 +658,12 @@ export class Configuration { try { AutoRestExtension.killAll(); - // once we shutdown those extensions, we should shutdown the EM too. + // once we shutdown those extensions, we should shutdown the EM too. const extMgr = await Configuration.extensionManager; extMgr.dispose(); // but if someone goes to use that, we're going to need a new instance (since the shared lock will be gone in the one we disposed.) - Configuration.extensionManager = new LazyPromise(() => ExtensionManager.Create(join(process.env['autorest.home'] || require('os').homedir(), '.autorest'))); + Configuration.extensionManager = new LazyPromise(() => ExtensionManager.Create(join(process.env["autorest.home"] || require("os").homedir(), ".autorest"))) for (const each in loadedExtensions) { const ext = loadedExtensions[each]; @@ -678,12 +680,12 @@ export class Configuration { const configFileUri = this.fileSystem && this.configFileOrFolderUri ? await Configuration.DetectConfigurationFile(this.fileSystem, this.configFileOrFolderUri, messageEmitter) : null; - const configFileFolderUri = configFileUri ? ResolveUri(configFileUri, './') : (this.configFileOrFolderUri || 'file:///'); + const configFileFolderUri = configFileUri ? ResolveUri(configFileUri, "./") : (this.configFileOrFolderUri || "file:///"); const configurationFiles: { [key: string]: any; } = {}; - const configSegments: Array = []; - const createView = (segments: Array = configSegments) => new ConfigurationView(configurationFiles, this.fileSystem, messageEmitter, configFileFolderUri, ...segments); - const addSegments = async (configs: Array): Promise> => { const segs = await this.DesugarRawConfigs(configs); configSegments.push(...segs); return segs; }; + const configSegments: any[] = []; + const createView = (segments: any[] = configSegments) => new ConfigurationView(configurationFiles, this.fileSystem, messageEmitter, configFileFolderUri, ...segments); + const addSegments = async (configs: any[]): Promise => { const segs = await this.DesugarRawConfigs(configs); configSegments.push(...segs); return segs; }; // 1. overrides (CLI, ...) await addSegments(configs); @@ -697,7 +699,7 @@ export class Configuration { const blocks = await this.ParseCodeBlocks( await inputView.ReadStrict(configFileUri), createView(), - 'config'); + "config"); await addSegments(blocks); } // 3. resolve 'require'd configuration @@ -742,9 +744,9 @@ export class Configuration { if (includeDefault) { const inputView = messageEmitter.DataStore.GetReadThroughScope(new RealFileSystem()); const blocks = await this.ParseCodeBlocks( - await inputView.ReadStrict(ResolveUri(CreateFolderUri(__dirname), '../../resources/default-configuration.md')), + await inputView.ReadStrict(ResolveUri(CreateFolderUri(__dirname), "../../resources/default-configuration.md")), createView(), - 'default-config'); + "default-config"); await addSegments(blocks); } @@ -753,11 +755,11 @@ export class Configuration { // 5. resolve extensions const extMgr = await Configuration.extensionManager; const addedExtensions = new Set(); - const viewsToHandle: Array = [createView()]; + const viewsToHandle: ConfigurationView[] = [createView()]; while (viewsToHandle.length > 0) { const tmpView = viewsToHandle.pop(); const additionalExtensions = tmpView.UseExtensions.filter(ext => !addedExtensions.has(ext.fullyQualified)); - await addSegments([{ 'used-extension': tmpView.UseExtensions.map(x => x.fullyQualified) }]); + await addSegments([{ "used-extension": tmpView.UseExtensions.map(x => x.fullyQualified) }]); if (additionalExtensions.length === 0) { continue; } @@ -774,7 +776,7 @@ export class Configuration { // try resolving the package locally (useful for self-contained) try { - const fileProbe = '/package.json'; + const fileProbe = "/package.json"; localPath = require.resolve(additionalExtension.name + fileProbe); // have to resolve specific file - resolving a package by name will fail if no 'main' is present localPath = localPath.slice(0, localPath.length - fileProbe.length); } catch (e) { } @@ -790,10 +792,11 @@ export class Configuration { const extension = new LocalExtension(pack, localPath); // start extension ext = loadedExtensions[additionalExtension.fullyQualified] = { - extension, + extension: extension, autorestExtension: new LazyPromise(async () => AutoRestExtension.FromChildProcess(additionalExtension.name, await extension.start())) }; - } else { + } + else { // remote package const installedExtension = await extMgr.getInstalledExtension(additionalExtension.name, additionalExtension.source); if (installedExtension) { @@ -818,7 +821,7 @@ export class Configuration { process.chdir(cwd); // start extension ext = loadedExtensions[additionalExtension.fullyQualified] = { - extension, + extension: extension, autorestExtension: new LazyPromise(async () => AutoRestExtension.FromChildProcess(additionalExtension.name, await extension.start())) }; } @@ -847,7 +850,7 @@ export class Configuration { public static async DetectConfigurationFile(fileSystem: IFileSystem, configFileOrFolderUri: string | null, messageEmitter?: MessageEmitter, walkUpFolders: boolean = false): Promise { const files = await this.DetectConfigurationFiles(fileSystem, configFileOrFolderUri, messageEmitter, walkUpFolders); - return From(files).FirstOrDefault(each => each.toLowerCase().endsWith('/' + Constants.DefaultConfiguration)) || + return From(files).FirstOrDefault(each => each.toLowerCase().endsWith("/" + Constants.DefaultConfiguration)) || From(files).OrderBy(each => each.length).FirstOrDefault() || null; } @@ -887,7 +890,7 @@ export class Configuration { // scan the filesystem items for configurations. const results = new Array(); for (const name of await fileSystem.EnumerateFileUris(EnsureIsFolderUri(configFileOrFolderUri))) { - if (name.endsWith('.md')) { + if (name.endsWith(".md")) { const content = await fileSystem.ReadFile(name); if (content.indexOf(Constants.MagicString) > -1) { results.push(name); @@ -897,9 +900,9 @@ export class Configuration { if (walkUpFolders) { // walk up - const newUriToConfigFileOrWorkingFolder = ResolveUri(configFileOrFolderUri, '..'); + const newUriToConfigFileOrWorkingFolder = ResolveUri(configFileOrFolderUri, ".."); if (newUriToConfigFileOrWorkingFolder !== configFileOrFolderUri) { - results.push(... await this.DetectConfigurationFiles(fileSystem, newUriToConfigFileOrWorkingFolder, messageEmitter, walkUpFolders)); + results.push(... await this.DetectConfigurationFiles(fileSystem, newUriToConfigFileOrWorkingFolder, messageEmitter, walkUpFolders)) } } else { if (messageEmitter && results.length === 0) { @@ -912,4 +915,4 @@ export class Configuration { return results; } -} +} \ No newline at end of file diff --git a/src/autorest-core/lib/data-store/data-store.ts b/src/autorest-core/lib/data-store/data-store.ts index d4756ec041..18c7f665b9 100644 --- a/src/autorest-core/lib/data-store/data-store.ts +++ b/src/autorest-core/lib/data-store/data-store.ts @@ -3,20 +3,20 @@ * Licensed under the MIT License. See License.txt in the project root for license information. *--------------------------------------------------------------------------------------------*/ -import { RawSourceMap, SourceMapConsumer, SourceMapGenerator } from "source-map"; import { ConfigurationView } from '../autorest-core'; -import { OperationCanceledException } from "../exception"; -import { IFileSystem } from "../file-system"; -import { Lazy } from "../lazy"; import { LineIndices } from "../parsing/text-utility"; import { CancellationToken } from "../ref/cancellation"; -import { Mapping, Mappings, Position, SmartPosition } from "../ref/source-map"; +import { Mappings, Mapping, SmartPosition, Position } from "../ref/source-map"; import { EnsureIsFolderUri, ReadUri, ResolveUri, ToRawDataUrl, WriteString } from "../ref/uri"; import { FastStringify, ParseNode, ParseToAst as parseAst, YAMLNode } from "../ref/yaml"; -import { BlameTree } from "../source-map/blaming"; +import { RawSourceMap, SourceMapGenerator, SourceMapConsumer } from "source-map"; import { Compile, CompilePosition } from "../source-map/source-map"; +import { BlameTree } from "../source-map/blaming"; +import { Lazy } from "../lazy"; +import { IFileSystem } from "../file-system"; +import { OperationCanceledException } from "../exception"; -const FALLBACK_DEFAULT_OUTPUT_ARTIFACT = ''; +const FALLBACK_DEFAULT_OUTPUT_ARTIFACT = ""; /******************************************** * Data model section (not exposed) @@ -26,9 +26,9 @@ export interface Metadata { artifact: string; inputSourceMap: Lazy; sourceMap: Lazy; - sourceMapEachMappingByLine: Lazy[]>; + sourceMapEachMappingByLine: Lazy; yamlAst: Lazy; - lineIndices: Lazy>; + lineIndices: Lazy; } export interface Data { @@ -36,7 +36,8 @@ export interface Data { metadata: Metadata; } -interface Store { [uri: string]: Data } +type Store = { [uri: string]: Data }; + /******************************************** * Central data controller @@ -45,8 +46,7 @@ interface Store { [uri: string]: Data } ********************************************/ export abstract class DataSource { - public skip: boolean | undefined; - public abstract Enum(): Promise>; + public abstract Enum(): Promise; public abstract Read(uri: string): Promise; public async ReadStrict(uri: string): Promise { @@ -66,35 +66,31 @@ export abstract class DataSource { const metadata = dataHandle.ReadMetadata(); const targetFileUri = ResolveUri( targetDirUri, - key.replace(':', '')); // make key (URI) a descriptive relative path + key.replace(":", "")); // make key (URI) a descriptive relative path await WriteString(targetFileUri, data); - await WriteString(targetFileUri + '.map', JSON.stringify(metadata.sourceMap.Value, null, 2)); - await WriteString(targetFileUri + '.input.map', JSON.stringify(metadata.inputSourceMap.Value, null, 2)); + await WriteString(targetFileUri + ".map", JSON.stringify(metadata.sourceMap.Value, null, 2)); + await WriteString(targetFileUri + ".input.map", JSON.stringify(metadata.inputSourceMap.Value, null, 2)); } } } export class QuickDataSource extends DataSource { - public constructor(private handles: Array, skip?: boolean) { + public constructor(private handles: DataHandle[]) { super(); - this.skip = skip; } - public async Enum(): Promise> { - return this.skip ? new Array() : this.handles.map(x => x.key); + public async Enum(): Promise { + return this.handles.map(x => x.key); } public async Read(key: string): Promise { - if (this.skip) { - return null; - } const data = this.handles.filter(x => x.key === key)[0]; return data || null; } } class ReadThroughDataSource extends DataSource { - private uris: Array = []; + private uris: string[] = []; private cache: { [uri: string]: Promise } = {}; constructor(private store: DataStore, private fs: IFileSystem) { @@ -124,23 +120,23 @@ class ReadThroughDataSource extends DataSource { return null; } } - const readHandle = await this.store.WriteData(uri, data, 'input-file'); + const readHandle = await this.store.WriteData(uri, data, "input-file"); this.uris.push(uri); return readHandle; })(); } - return this.cache[uri]; + return await this.cache[uri]; } - public async Enum(): Promise> { + public async Enum(): Promise { return this.uris; } } export class DataStore { - public static readonly BaseUri = 'mem://'; + public static readonly BaseUri = "mem://"; public readonly BaseUri = DataStore.BaseUri; private store: Store = {}; @@ -169,8 +165,8 @@ export class DataStore { throw new Error(`can only write '${uri}' once`); } this.store[uri] = { - data, - metadata + data: data, + metadata: metadata }; return this.Read(uri); @@ -199,8 +195,8 @@ export class DataStore { return sourceMap; }); - metadata.sourceMapEachMappingByLine = new Lazy>(() => { - const result: Array = []; + metadata.sourceMapEachMappingByLine = new Lazy(() => { + const result: sourceMap.MappingItem[][] = []; const sourceMapConsumer = new SourceMapConsumer(metadata.sourceMap.Value); @@ -220,7 +216,7 @@ export class DataStore { }); metadata.inputSourceMap = new Lazy(() => this.CreateInputSourceMapFor(uri)); metadata.yamlAst = new Lazy(() => parseAst(data)); - metadata.lineIndices = new Lazy>(() => LineIndices(data)); + metadata.lineIndices = new Lazy(() => LineIndices(data)); return result; } @@ -271,13 +267,13 @@ export class DataStore { const data = this.ReadStrictSync(absoluteUri); // retrieve all target positions - const targetPositions: Array = []; + const targetPositions: SmartPosition[] = []; const metadata = data.ReadMetadata(); const sourceMapConsumer = new SourceMapConsumer(metadata.sourceMap.Value); sourceMapConsumer.eachMapping(m => targetPositions.push({ column: m.generatedColumn, line: m.generatedLine })); // collect blame - const mappings: Array = []; + const mappings: Mapping[] = []; for (const targetPosition of targetPositions) { const blameTree = this.Blame(absoluteUri, targetPosition); const inputPositions = blameTree.BlameLeafs(); @@ -296,6 +292,7 @@ export class DataStore { } } + /******************************************** * Data handles * - provide well-defined access to specific data @@ -309,18 +306,18 @@ export class DataSink { } public async WriteDataWithSourceMap(description: string, data: string, artifact: string | undefined, sourceMapFactory: (readHandle: DataHandle) => RawSourceMap): Promise { - return this.write(description, data, artifact, sourceMapFactory); + return await this.write(description, data, artifact, sourceMapFactory); } - public async WriteData(description: string, data: string, artifact?: string, mappings: Mappings = [], mappingSources: Array = []): Promise { - return this.WriteDataWithSourceMap(description, data, artifact, readHandle => { + public async WriteData(description: string, data: string, artifact?: string, mappings: Mappings = [], mappingSources: DataHandle[] = []): Promise { + return await this.WriteDataWithSourceMap(description, data, artifact, readHandle => { const sourceMapGenerator = new SourceMapGenerator({ file: readHandle.key }); Compile(mappings, sourceMapGenerator, mappingSources.concat(readHandle)); return sourceMapGenerator.toJSON(); }); } - public WriteObject(description: string, obj: T, artifact?: string, mappings: Mappings = [], mappingSources: Array = []): Promise { + public WriteObject(description: string, obj: T, artifact?: string, mappings: Mappings = [], mappingSources: DataHandle[] = []): Promise { return this.WriteData(description, FastStringify(obj), artifact, mappings, mappingSources); } @@ -366,7 +363,7 @@ export class DataHandle { } } - public Blame(position: sourceMap.Position): Array { + public Blame(position: sourceMap.Position): sourceMap.MappedPosition[] { const metadata = this.ReadMetadata(); const sameLineResults = (metadata.sourceMapEachMappingByLine.Value[position.line] || []) .filter(mapping => mapping.generatedColumn <= position.column); @@ -381,4 +378,4 @@ export class DataHandle { }; }); } -} +} \ No newline at end of file diff --git a/src/autorest-core/lib/message.ts b/src/autorest-core/lib/message.ts index b43a594c7e..fc9386f005 100644 --- a/src/autorest-core/lib/message.ts +++ b/src/autorest-core/lib/message.ts @@ -37,8 +37,6 @@ export enum Channel { /** content represents an update/creation of a configuration file. The final uri will be in the same folder as the primary config file. */ Configuration = "configuration", - - Control = "Control", } export interface SourceLocation { diff --git a/src/autorest-core/lib/parsing/literate-yaml.ts b/src/autorest-core/lib/parsing/literate-yaml.ts index f355b8d34b..d87bbb2651 100644 --- a/src/autorest-core/lib/parsing/literate-yaml.ts +++ b/src/autorest-core/lib/parsing/literate-yaml.ts @@ -14,8 +14,8 @@ import { Channel, SourceLocation } from "../message"; import { safeEval } from "../ref/safe-eval"; export class CodeBlock { - info!: string | null; - data!: DataHandle; + info: string | null; + data: DataHandle; } function TryMarkdown(rawMarkdownOrYaml: string): boolean { diff --git a/src/autorest-core/lib/pipeline/common.ts b/src/autorest-core/lib/pipeline/common.ts index 3dfe9a504b..533a0a9109 100644 --- a/src/autorest-core/lib/pipeline/common.ts +++ b/src/autorest-core/lib/pipeline/common.ts @@ -18,6 +18,6 @@ export function CreatePerFilePlugin(processorBuilder: (config: ConfigurationView const fileOut = await processor(fileIn, sink); result.push(fileOut); } - return new QuickDataSource(result, input.skip); + return new QuickDataSource(result); }; } \ No newline at end of file diff --git a/src/autorest-core/lib/pipeline/component-modifier.ts b/src/autorest-core/lib/pipeline/component-modifier.ts index 45b5873712..9b553c8343 100644 --- a/src/autorest-core/lib/pipeline/component-modifier.ts +++ b/src/autorest-core/lib/pipeline/component-modifier.ts @@ -8,18 +8,18 @@ import { MergeOverwriteOrAppend } from '../source-map/merging'; import { CreatePerFilePlugin, PipelinePlugin } from './common'; function decorateSpecialProperties(o: any): void { - if (o['implementation']) { - o['x-ms-implementation'] = o['implementation']; - delete o['implementation']; + if (o["implementation"]) { + o["x-ms-implementation"] = o["implementation"]; + delete o["implementation"]; } - if (o['forward-to']) { - o['x-ms-forward-to'] = o['forward-to']; - delete o['forward-to']; + if (o["forward-to"]) { + o["x-ms-forward-to"] = o["forward-to"]; + delete o["forward-to"]; } } export function GetPlugin_ComponentModifier(): PipelinePlugin { - const noWireExtension = 'x-ms-no-wire'; + const noWireExtension = "x-ms-no-wire"; return CreatePerFilePlugin(async config => async (fileIn, sink) => { const componentModifier = Clone((config.Raw as any).components); @@ -38,7 +38,7 @@ export function GetPlugin_ComponentModifier(): PipelinePlugin { // decorate properties if (schemaSource.properties) { for (const propertyKey of Object.keys(schemaSource.properties)) { - const propSource = schemaSource.properties[propertyKey]; + const propSource = schemaSource.properties[propertyKey] if (!schemaTarget.properties || !schemaTarget.properties[propertyKey]) { propSource[noWireExtension] = true; } @@ -62,10 +62,10 @@ export function GetPlugin_ComponentModifier(): PipelinePlugin { // operations: // merge-override semantics based on operationId, but decorate operations so they're not targetting the wire const operationsSource = componentModifier.operations || []; - const operationsTarget1 = o['paths'] = o['paths'] || {}; - const operationsTarget2 = o['x-ms-paths'] = o['x-ms-paths'] || {}; - const getOperationWithId = (operationId: string): { get(): any, set(x: any): void } | null => { - for (const path of [...Object.values(operationsTarget1), ...Object.values(operationsTarget2)]) { + const operationsTarget1 = o["paths"] = o["paths"] || {}; + const operationsTarget2 = o["x-ms-paths"] = o["x-ms-paths"] || {}; + const getOperationWithId = (operationId: string): { get: () => any, set: (x: any) => void } | null => { + for (const path of [...Object.values(operationsTarget1), ...Object.values(operationsTarget2)]) { for (const method of Object.keys(path)) { if (path[method].operationId === operationId) { return { get: () => path[method], set: x => path[method] = x }; @@ -75,9 +75,9 @@ export function GetPlugin_ComponentModifier(): PipelinePlugin { return null; }; const getDummyPath = (): string => { - let path = '/dummy?' + Object.keys(operationsTarget2).length; + let path = "/dummy?" + Object.keys(operationsTarget2).length; while (path in operationsTarget2) { - path += '0'; + path += "0"; } return path; }; @@ -95,8 +95,8 @@ export function GetPlugin_ComponentModifier(): PipelinePlugin { } } - return sink.WriteObject(fileIn.Description, o); + return await sink.WriteObject(fileIn.Description, o); } return fileIn; }); -} +} \ No newline at end of file diff --git a/src/autorest-core/lib/pipeline/metadata-generation.ts b/src/autorest-core/lib/pipeline/metadata-generation.ts index bb5b0078f8..6aa0963731 100644 --- a/src/autorest-core/lib/pipeline/metadata-generation.ts +++ b/src/autorest-core/lib/pipeline/metadata-generation.ts @@ -23,7 +23,7 @@ export function GetPlugin_ReflectApiVersion(): PipelinePlugin { for (const path of Object.keys(paths)) { const namespace: string = (/\/Microsoft\.(.*?)\//i.exec(path) || [])[1] || title; const groups = Object.values(paths[path]) - .map(x => (x).operationId).filter(x => !!x) + .map(x => x.operationId).filter(x => !!x) .map(x => x.split('_')[0]).filter(x => !!x); for (const group of groups) { data.push({ namespace, group, apiVersion }); diff --git a/src/autorest-core/lib/pipeline/pipeline.ts b/src/autorest-core/lib/pipeline/pipeline.ts index 70b1e7fe5d..9c7165bd3c 100644 --- a/src/autorest-core/lib/pipeline/pipeline.ts +++ b/src/autorest-core/lib/pipeline/pipeline.ts @@ -3,164 +3,122 @@ * Licensed under the MIT License. See License.txt in the project root for license information. *--------------------------------------------------------------------------------------------*/ -import { Help } from '../../help'; -import { ConfigurationView, GetExtension } from '../configuration'; -import { DataHandle, DataSink, DataSource, QuickDataSource } from '../data-store/data-store'; -import { IFileSystem } from '../file-system'; -import { LazyPromise } from '../lazy'; -import { Channel, Message } from '../message'; -import { ConvertOAI2toOAI3 } from '../openapi/conversion'; -import { OutstandingTaskAwaiter } from '../outstanding-task-awaiter'; +import { GetPlugin_ComponentModifier } from './component-modifier'; +import { GetPlugin_SchemaValidator } from './schema-validation'; import { ConvertJsonx2Yaml, ConvertYaml2Jsonx } from '../parsing/yaml'; -import { JsonPath, stringify } from '../ref/jsonpath'; -import { safeEval } from '../ref/safe-eval'; -import { ResolveUri } from '../ref/uri'; import { Descendants, FastStringify, StringifyAst } from '../ref/yaml'; -import { EmitArtifacts } from './artifact-emitter'; +import { JsonPath, stringify } from "../ref/jsonpath"; +import { safeEval } from "../ref/safe-eval"; +import { LazyPromise } from "../lazy"; +import { OutstandingTaskAwaiter } from "../outstanding-task-awaiter"; +import { AutoRestExtension } from "./plugin-endpoint"; +import { Manipulator } from "./manipulation"; +import { ProcessCodeModel } from "./commonmark-documentation"; +import { Channel } from "../message"; +import { ResolveUri } from "../ref/uri"; +import { ConfigurationView, GetExtension } from '../configuration'; +import { DataHandle, DataSink, DataSource, QuickDataSource } from '../data-store/data-store'; +import { IFileSystem } from "../file-system"; +import { EmitArtifacts } from "./artifact-emitter"; +import { ComposeSwaggers, LoadLiterateSwaggerOverrides, LoadLiterateSwaggers } from './swagger-loader'; +import { ConvertOAI2toOAI3 } from "../openapi/conversion"; +import { Help } from '../../help'; +import { GetPlugin_Help } from "./help"; +import { GetPlugin_ReflectApiVersion } from "./metadata-generation"; import { CreatePerFilePlugin, PipelinePlugin } from './common'; -import { ProcessCodeModel } from './commonmark-documentation'; -import { GetPlugin_ComponentModifier } from './component-modifier'; -import { GetPlugin_Help } from './help'; -import { Manipulator } from './manipulation'; -import { GetPlugin_ReflectApiVersion } from './metadata-generation'; -import { AutoRestExtension } from './plugin-endpoint'; -import { GetPlugin_SchemaValidatorOpenApi, GetPlugin_SchemaValidatorSwagger } from './schema-validation'; -import { ComposeSwaggers, LoadLiterateOpenApi, LoadLiterateOpenApiOverrides, LoadLiterateOpenApis, LoadLiterateSwaggerOverrides, LoadLiterateSwaggers } from './swagger-loader'; interface PipelineNode { outputArtifact?: string; pluginName: string; configScope: JsonPath; - inputs: Array; - skip: boolean; -} + inputs: string[]; +}; function GetPlugin_Identity(): PipelinePlugin { return async (config, input) => input; } - -function GetPlugin_LoaderSwagger(): PipelinePlugin { +function GetPlugin_Loader(): PipelinePlugin { return async (config, input, sink) => { - const inputs = config.InputFileUris; + let inputs = config.InputFileUris; const swaggers = await LoadLiterateSwaggers( config, input, inputs, sink); - const result: Array = []; - if (swaggers.length === inputs.length) { - for (let i = 0; i < inputs.length; ++i) { - result.push(await sink.Forward(inputs[i], swaggers[i])); - } - } - return new QuickDataSource(result, swaggers.length !== inputs.length); - }; -} - -function GetPlugin_LoaderOpenApi(): PipelinePlugin { - return async (config, input, sink) => { - const inputs = config.InputFileUris; - const openapis = await LoadLiterateOpenApis( - config, - input, - inputs, sink); - const result: Array = []; - if (openapis.length === inputs.length) { - for (let i = 0; i < inputs.length; ++i) { - result.push(await sink.Forward(inputs[i], openapis[i])); - } - } - return new QuickDataSource(result, openapis.length !== inputs.length); - }; -} - -function GetPlugin_MdOverrideLoaderSwagger(): PipelinePlugin { - return async (config, input, sink) => { - const inputs = config.InputFileUris; - const swaggers = await LoadLiterateSwaggerOverrides( - config, - input, - inputs, sink); - const result: Array = []; + const result: DataHandle[] = []; for (let i = 0; i < inputs.length; ++i) { result.push(await sink.Forward(inputs[i], swaggers[i])); } - return new QuickDataSource(result, input.skip); + return new QuickDataSource(result); }; } - -function GetPlugin_MdOverrideLoaderOpenApi(): PipelinePlugin { +function GetPlugin_MdOverrideLoader(): PipelinePlugin { return async (config, input, sink) => { - const inputs = config.InputFileUris; - const openapis = await LoadLiterateOpenApiOverrides( + let inputs = config.InputFileUris; + const swaggers = await LoadLiterateSwaggerOverrides( config, input, inputs, sink); - const result: Array = []; + const result: DataHandle[] = []; for (let i = 0; i < inputs.length; ++i) { - result.push(await sink.Forward(inputs[i], openapis[i])); + result.push(await sink.Forward(inputs[i], swaggers[i])); } - return new QuickDataSource(result, input.skip); + return new QuickDataSource(result); }; } function GetPlugin_OAI2toOAIx(): PipelinePlugin { return CreatePerFilePlugin(async config => async (fileIn, sink) => { const fileOut = await ConvertOAI2toOAI3(fileIn, sink); - return sink.Forward(fileIn.Description, fileOut); + return await sink.Forward(fileIn.Description, fileOut); }); } - function GetPlugin_Yaml2Jsonx(): PipelinePlugin { return CreatePerFilePlugin(async config => async (fileIn, sink) => { let ast = fileIn.ReadYamlAst(); ast = ConvertYaml2Jsonx(ast); - return sink.WriteData(fileIn.Description, StringifyAst(ast)); + return await sink.WriteData(fileIn.Description, StringifyAst(ast)); }); } - function GetPlugin_Jsonx2Yaml(): PipelinePlugin { return CreatePerFilePlugin(async config => async (fileIn, sink) => { let ast = fileIn.ReadYamlAst(); ast = ConvertJsonx2Yaml(ast); - return sink.WriteData(fileIn.Description, StringifyAst(ast)); + return await sink.WriteData(fileIn.Description, StringifyAst(ast)); }); } function GetPlugin_Transformer(): PipelinePlugin { return CreatePerFilePlugin(async config => { - const isObject = config.GetEntry('is-object' as any) === false ? false : true; + const isObject = config.GetEntry("is-object" as any) === false ? false : true; const manipulator = new Manipulator(config); return async (fileIn, sink) => { const fileOut = await manipulator.Process(fileIn, sink, isObject, fileIn.Description); - return sink.Forward(fileIn.Description, fileOut); + return await sink.Forward(fileIn.Description, fileOut); }; }); } - function GetPlugin_TransformerImmediate(): PipelinePlugin { return async (config, input, sink) => { - const isObject = config.GetEntry('is-object' as any) === false ? false : true; + const isObject = config.GetEntry("is-object" as any) === false ? false : true; const files = await input.Enum(); // first all the immediate-configs, then a single swagger-document const scopes = await Promise.all(files.slice(0, files.length - 1).map(f => input.ReadStrict(f))); const manipulator = new Manipulator(config.GetNestedConfigurationImmediate(...scopes.map(s => s.ReadObject()))); const file = files[files.length - 1]; const fileIn = await input.ReadStrict(file); const fileOut = await manipulator.Process(fileIn, sink, isObject, fileIn.Description); - return new QuickDataSource([await sink.Forward('swagger-document', fileOut)], input.skip); + return new QuickDataSource([await sink.Forward("swagger-document", fileOut)]); }; } - function GetPlugin_Composer(): PipelinePlugin { return async (config, input, sink) => { const swaggers = await Promise.all((await input.Enum()).map(x => input.ReadStrict(x))); - const overrideInfo = config.GetEntry('override-info'); - const overrideTitle = (overrideInfo && overrideInfo.title) || config.GetEntry('title'); - const overrideDescription = (overrideInfo && overrideInfo.description) || config.GetEntry('description'); + const overrideInfo = config.GetEntry("override-info"); + const overrideTitle = (overrideInfo && overrideInfo.title) || config.GetEntry("title"); + const overrideDescription = (overrideInfo && overrideInfo.description) || config.GetEntry("description"); const swagger = await ComposeSwaggers(config, overrideTitle, overrideDescription, swaggers, sink); - return new QuickDataSource([await sink.Forward('composed', swagger)], input.skip); + return new QuickDataSource([await sink.Forward("composed", swagger)]); }; } - function GetPlugin_External(host: AutoRestExtension, pluginName: string): PipelinePlugin { return async (config, input, sink) => { const plugin = await host; @@ -168,9 +126,8 @@ function GetPlugin_External(host: AutoRestExtension, pluginName: string): Pipeli if (pluginNames.indexOf(pluginName) === -1) { throw new Error(`Plugin ${pluginName} not found.`); } - let shouldSkip: boolean | undefined; - const results: Array = []; + const results: DataHandle[] = []; const result = await plugin.Process( pluginName, key => config.GetEntry(key as any), @@ -178,39 +135,27 @@ function GetPlugin_External(host: AutoRestExtension, pluginName: string): Pipeli input, sink, f => results.push(f), - (message: Message) => { - if (message.Channel === Channel.Control) { - if (message.Details && message.Details.skip !== undefined) { - shouldSkip = message.Details.skip; - } - - } else { - return config.Message.bind(config)(message); - } - }, - + config.Message.bind(config), config.CancellationToken); if (!result) { throw new Error(`Plugin ${pluginName} reported failure.`); } - return new QuickDataSource(results, shouldSkip); + return new QuickDataSource(results); }; } - function GetPlugin_CommonmarkProcessor(): PipelinePlugin { return async (config, input, sink) => { const files = await input.Enum(); - const results: Array = []; + const results: DataHandle[] = []; for (let file of files) { const fileIn = await input.ReadStrict(file); const fileOut = await ProcessCodeModel(fileIn, sink); - file = file.substr(file.indexOf('/output/') + '/output/'.length); - results.push(await sink.Forward('code-model-v1', fileOut)); + file = file.substr(file.indexOf("/output/") + "/output/".length); + results.push(await sink.Forward("code-model-v1", fileOut)); } - return new QuickDataSource(results, input.skip); + return new QuickDataSource(results); }; } - function GetPlugin_ArtifactEmitter(inputOverride?: () => Promise): PipelinePlugin { return async (config, input, sink) => { if (inputOverride) { @@ -218,24 +163,24 @@ function GetPlugin_ArtifactEmitter(inputOverride?: () => Promise): P } // clear output-folder if requested - if (config.GetEntry('clear-output-folder' as any)) { + if (config.GetEntry("clear-output-folder" as any)) { config.ClearFolder.Dispatch(config.OutputFolderUri); } await EmitArtifacts( config, - config.GetEntry('input-artifact' as any) || null, + config.GetEntry("input-artifact" as any) || null, key => ResolveUri( config.OutputFolderUri, - safeEval(config.GetEntry('output-uri-expr' as any) || '$key', { $key: key, $config: config.Raw })), + safeEval(config.GetEntry("output-uri-expr" as any) || "$key", { $key: key, $config: config.Raw })), input, - config.GetEntry('is-object' as any)); + config.GetEntry("is-object" as any)); return new QuickDataSource([]); }; } function BuildPipeline(config: ConfigurationView): { pipeline: { [name: string]: PipelineNode }, configs: { [jsonPath: string]: ConfigurationView } } { - const cfgPipeline = config.GetEntry('pipeline' as any); + const cfgPipeline = config.GetEntry("pipeline" as any); const pipeline: { [name: string]: PipelineNode } = {}; const configCache: { [jsonPath: string]: ConfigurationView } = {}; @@ -248,9 +193,9 @@ function BuildPipeline(config: ConfigurationView): { pipeline: { [name: string]: // --> commonmarker if such a stage exists // --> THROWS otherwise const resolvePipelineStageName = (currentStageName: string, relativeName: string) => { - while (currentStageName !== '') { + while (currentStageName !== "") { currentStageName = currentStageName.substring(0, currentStageName.length - 1); - currentStageName = currentStageName.substring(0, currentStageName.lastIndexOf('/') + 1); + currentStageName = currentStageName.substring(0, currentStageName.lastIndexOf("/") + 1); if (cfgPipeline[currentStageName + relativeName]) { return currentStageName + relativeName; @@ -262,7 +207,7 @@ function BuildPipeline(config: ConfigurationView): { pipeline: { [name: string]: // One pipeline stage can generate multiple nodes in the pipeline graph // if the stage is associated with a configuration scope that has multiple entries. // Example: multiple generator calls - const createNodesAndSuffixes: (stageName: string) => { name: string, suffixes: Array } = stageName => { + const createNodesAndSuffixes: (stageName: string) => { name: string, suffixes: string[] } = stageName => { const cfg = cfgPipeline[stageName]; if (!cfg) { throw new Error(`Cannot find pipeline stage '${stageName}'.`); @@ -272,12 +217,12 @@ function BuildPipeline(config: ConfigurationView): { pipeline: { [name: string]: } // derive information about given pipeline stage - const plugin = cfg.plugin || stageName.split('/').reverse()[0]; - const outputArtifact = cfg['output-artifact']; + const plugin = cfg.plugin || stageName.split("/").reverse()[0]; + const outputArtifact = cfg["output-artifact"]; const scope = cfg.scope; - const inputs: Array = (!cfg.input ? [] : (Array.isArray(cfg.input) ? cfg.input : [cfg.input])).map((x: string) => resolvePipelineStageName(stageName, x)); + const inputs: string[] = (!cfg.input ? [] : (Array.isArray(cfg.input) ? cfg.input : [cfg.input])).map((x: string) => resolvePipelineStageName(stageName, x)); - const suffixes: Array = []; + const suffixes: string[] = []; // adds nodes using at least suffix `suffix`, the input nodes called `inputs` using the context `config` // AFTER considering all the input nodes `inputNodes` // Example: @@ -287,23 +232,22 @@ function BuildPipeline(config: ConfigurationView): { pipeline: { [name: string]: // --> ("/1", ["a/1"], cfg of "a/1", []) // --> adds node `${stageName}/1` // Note: inherits the config of the LAST input node (affects for example `.../generate`) - const addNodesAndSuffixes = (suffix: string, inputs: Array, configScope: JsonPath, inputNodes: Array<{ name: string, suffixes: Array }>) => { + const addNodesAndSuffixes = (suffix: string, inputs: string[], configScope: JsonPath, inputNodes: { name: string, suffixes: string[] }[]) => { if (inputNodes.length === 0) { const config = configCache[stringify(configScope)]; const configs = scope ? [...config.GetNestedConfiguration(scope)] : [config]; for (let i = 0; i < configs.length; ++i) { - const newSuffix = configs.length === 1 ? '' : '/' + i; + const newSuffix = configs.length === 1 ? "" : "/" + i; suffixes.push(suffix + newSuffix); const path: JsonPath = configScope.slice(); - if (scope) { path.push(scope); } - if (configs.length !== 1) { path.push(i); } + if (scope) path.push(scope); + if (configs.length !== 1) path.push(i); configCache[stringify(path)] = configs[i]; pipeline[stageName + suffix + newSuffix] = { pluginName: plugin, - outputArtifact, + outputArtifact: outputArtifact, configScope: path, - inputs, - skip: false, + inputs: inputs }; } } else { @@ -321,7 +265,7 @@ function BuildPipeline(config: ConfigurationView): { pipeline: { [name: string]: }; configCache[stringify([])] = config; - addNodesAndSuffixes('', [], [], inputs.map(createNodesAndSuffixes)); + addNodesAndSuffixes("", [], [], inputs.map(createNodesAndSuffixes)); return { name: stageName, suffixes: cfg.suffixes = suffixes }; }; @@ -331,7 +275,7 @@ function BuildPipeline(config: ConfigurationView): { pipeline: { [name: string]: } return { - pipeline, + pipeline: pipeline, configs: configCache }; } @@ -339,34 +283,31 @@ function BuildPipeline(config: ConfigurationView): { pipeline: { [name: string]: export async function RunPipeline(configView: ConfigurationView, fileSystem: IFileSystem): Promise { // built-in plugins const plugins: { [name: string]: PipelinePlugin } = { - 'help': GetPlugin_Help(), - 'identity': GetPlugin_Identity(), - 'loader-swagger': GetPlugin_LoaderSwagger(), - 'loader-openapi': GetPlugin_LoaderOpenApi(), - 'md-override-loader-swagger': GetPlugin_MdOverrideLoaderSwagger(), - 'md-override-loader-openapi': GetPlugin_MdOverrideLoaderOpenApi(), - 'transform': GetPlugin_Transformer(), - 'transform-immediate': GetPlugin_TransformerImmediate(), - 'compose': GetPlugin_Composer(), - 'schema-validator-openapi': GetPlugin_SchemaValidatorOpenApi(), - 'schema-validator-swagger': GetPlugin_SchemaValidatorSwagger(), + "help": GetPlugin_Help(), + "identity": GetPlugin_Identity(), + "loader": GetPlugin_Loader(), + "md-override-loader": GetPlugin_MdOverrideLoader(), + "transform": GetPlugin_Transformer(), + "transform-immediate": GetPlugin_TransformerImmediate(), + "compose": GetPlugin_Composer(), + "schema-validator": GetPlugin_SchemaValidator(), // TODO: replace with OAV again - 'semantic-validator': GetPlugin_Identity(), - - 'openapi-document-converter': GetPlugin_OAI2toOAIx(), - 'component-modifiers': GetPlugin_ComponentModifier(), - 'yaml2jsonx': GetPlugin_Yaml2Jsonx(), - 'jsonx2yaml': GetPlugin_Jsonx2Yaml(), - 'reflect-api-versions-cs': GetPlugin_ReflectApiVersion(), - 'commonmarker': GetPlugin_CommonmarkProcessor(), - 'emitter': GetPlugin_ArtifactEmitter(), - 'pipeline-emitter': GetPlugin_ArtifactEmitter(async () => new QuickDataSource([await configView.DataStore.getDataSink().WriteObject('pipeline', pipeline.pipeline, 'pipeline')])), - 'configuration-emitter': GetPlugin_ArtifactEmitter(async () => new QuickDataSource([await configView.DataStore.getDataSink().WriteObject('configuration', configView.Raw, 'configuration')])) + "semantic-validator": GetPlugin_Identity(), + + "openapi-document-converter": GetPlugin_OAI2toOAIx(), + "component-modifiers": GetPlugin_ComponentModifier(), + "yaml2jsonx": GetPlugin_Yaml2Jsonx(), + "jsonx2yaml": GetPlugin_Jsonx2Yaml(), + "reflect-api-versions-cs": GetPlugin_ReflectApiVersion(), + "commonmarker": GetPlugin_CommonmarkProcessor(), + "emitter": GetPlugin_ArtifactEmitter(), + "pipeline-emitter": GetPlugin_ArtifactEmitter(async () => new QuickDataSource([await configView.DataStore.getDataSink().WriteObject("pipeline", pipeline.pipeline, "pipeline")])), + "configuration-emitter": GetPlugin_ArtifactEmitter(async () => new QuickDataSource([await configView.DataStore.getDataSink().WriteObject("configuration", configView.Raw, "configuration")])) }; // dynamically loaded, auto-discovered plugins const __extensionExtension: { [pluginName: string]: AutoRestExtension } = {}; - for (const useExtensionQualifiedName of configView.GetEntry('used-extension' as any) || []) { + for (const useExtensionQualifiedName of configView.GetEntry("used-extension" as any) || []) { const extension = await GetExtension(useExtensionQualifiedName); for (const plugin of await extension.GetPluginNames(configView.CancellationToken)) { if (!plugins[plugin]) { @@ -380,18 +321,18 @@ export async function RunPipeline(configView: ConfigurationView, fileSystem: IFi const startTime = Date.now(); (configView.Raw as any).__status = new Proxy({}, { get(_, key) { - if (key === '__info') { return false; } - const expr = new Buffer(key.toString(), 'base64').toString('ascii'); + if (key === "__info") return false; + const expr = new Buffer(key.toString(), "base64").toString("ascii"); try { return FastStringify(safeEval(expr, { pipeline: pipeline.pipeline, external: __extensionExtension, - tasks, - startTime, + tasks: tasks, + startTime: startTime, blame: (uri: string, position: any /*TODO: cleanup, nail type*/) => configView.DataStore.Blame(uri, position) })); } catch (e) { - return '' + e; + return "" + e; } } }); @@ -410,39 +351,27 @@ export async function RunPipeline(configView: ConfigurationView, fileSystem: IFi } // get input - const inputScopes: Array = await Promise.all(node.inputs.map(getTask)); - + const inputScopes: DataSource[] = await Promise.all(node.inputs.map(getTask)); let inputScope: DataSource; if (inputScopes.length === 0) { inputScope = fsInput; } else { - let skip: boolean | undefined; - - const handles: Array = []; + const handles: DataHandle[] = []; for (const pscope of inputScopes) { const scope = await pscope; - if (pscope.skip !== undefined) { - skip = skip === undefined ? pscope.skip : skip && pscope.skip; - } for (const handle of await scope.Enum()) { handles.push(await scope.ReadStrict(handle)); } } - inputScope = new QuickDataSource(handles, skip); + inputScope = new QuickDataSource(handles); } const config = pipeline.configs[stringify(node.configScope)]; const pluginName = node.pluginName; const plugin = plugins[pluginName]; - if (!plugin) { throw new Error(`Plugin '${pluginName}' not found.`); } - - if (inputScope.skip) { - config.Message({ Channel: Channel.Debug, Text: `${nodeName} - SKIPPING` }); - return inputScope; - } try { config.Message({ Channel: Channel.Debug, Text: `${nodeName} - START` }); @@ -469,14 +398,14 @@ export async function RunPipeline(configView: ConfigurationView, fileSystem: IFi for (const name of Object.keys(pipeline.pipeline)) { const task = getTask(name); - const taskx: { _state: 'running' | 'failed' | 'complete'; _result(): Array; _finishedAt: number } = task as any; - taskx._state = 'running'; + const taskx: { _state: "running" | "failed" | "complete", _result: () => DataHandle[], _finishedAt: number } = task as any; + taskx._state = "running"; task.then(async x => { const res = await Promise.all((await x.Enum()).map(key => x.ReadStrict(key))); taskx._result = () => res; - taskx._state = 'complete'; + taskx._state = "complete"; taskx._finishedAt = Date.now(); - }).catch(() => taskx._state = 'failed'); + }).catch(() => taskx._state = "failed"); barrier.Await(task); barrierRobust.Await(task.catch(() => { })); } diff --git a/src/autorest-core/lib/pipeline/plugin-endpoint.ts b/src/autorest-core/lib/pipeline/plugin-endpoint.ts index 629b3277f5..a9d0ee336f 100644 --- a/src/autorest-core/lib/pipeline/plugin-endpoint.ts +++ b/src/autorest-core/lib/pipeline/plugin-endpoint.ts @@ -87,7 +87,7 @@ export class AutoRestExtension extends EventEmitter { const writerProxy = new Writable({ write: (chunk: string | Buffer, encoding: string, callback: Function) => { try { this.__inspectTraffic.push([Date.now(), true, chunk.toString()]); } catch (e) { } - return writer.write(chunk, encoding, callback); + return writer.write(chunk, encoding, callback); } }); diff --git a/src/autorest-core/lib/pipeline/schema-validation.ts b/src/autorest-core/lib/pipeline/schema-validation.ts index 646fe0b017..a872c00a04 100644 --- a/src/autorest-core/lib/pipeline/schema-validation.ts +++ b/src/autorest-core/lib/pipeline/schema-validation.ts @@ -12,10 +12,10 @@ import { CreatePerFilePlugin, PipelinePlugin } from "./common"; import { Channel } from "../message"; import { OperationAbortedException } from '../exception'; -export function GetPlugin_SchemaValidatorSwagger(): PipelinePlugin { +export function GetPlugin_SchemaValidator(): PipelinePlugin { const validator = new SchemaValidator({ breakOnFirstError: false }); - const extendedSwaggerSchema = require('./swagger-extensions.json'); + const extendedSwaggerSchema = require("./swagger-extensions.json"); (validator as any).setRemoteReference("http://json.schemastore.org/swagger-2.0", require("./swagger.json")); (validator as any).setRemoteReference("https://raw.githubusercontent.com/Azure/autorest/master/schema/example-schema.json", require("./example-schema.json")); return CreatePerFilePlugin(async config => async (fileIn, sink) => { @@ -26,30 +26,7 @@ export function GetPlugin_SchemaValidatorSwagger(): PipelinePlugin { config.Message({ Channel: Channel.Error, Details: error, - Plugin: 'schema-validator-swagger', - Source: [{ document: fileIn.key, Position: { path: parseJsonPointer(error.path) } as any }], - Text: `Schema violation: ${error.message}` - }); - } - throw new OperationAbortedException(); - } - return await sink.Forward(fileIn.Description, fileIn); - }); -} - -export function GetPlugin_SchemaValidatorOpenApi(): PipelinePlugin { - const validator = new SchemaValidator({ breakOnFirstError: false }); - - const extendedOpenApiSchema = require('./openapi3-schema.json'); - return CreatePerFilePlugin(async config => async (fileIn, sink) => { - const obj = fileIn.ReadObject(); - const errors = await new Promise<{ code: string, params: string[], message: string, path: string }[] | null>(res => validator.validate(obj, extendedOpenApiSchema, (err, valid) => res(valid ? null : err))); - if (errors !== null) { - for (const error of errors) { - config.Message({ - Channel: Channel.Error, - Details: error, - Plugin: 'schema-validator-openapi', + Plugin: "schema-validator", Source: [{ document: fileIn.key, Position: { path: parseJsonPointer(error.path) } as any }], Text: `Schema violation: ${error.message}` }); diff --git a/src/autorest-core/lib/pipeline/swagger-loader.ts b/src/autorest-core/lib/pipeline/swagger-loader.ts index e3c81ae591..7de552039a 100644 --- a/src/autorest-core/lib/pipeline/swagger-loader.ts +++ b/src/autorest-core/lib/pipeline/swagger-loader.ts @@ -3,45 +3,45 @@ * Licensed under the MIT License. See License.txt in the project root for license information. *--------------------------------------------------------------------------------------------*/ -import { ConfigurationView } from "../autorest-core"; -import { DataHandle, DataSink, DataSource } from '../data-store/data-store'; -import { OperationAbortedException } from "../exception"; -import { Channel, SourceLocation } from "../message"; +import { pushAll } from '../ref/array'; +import { Lines, IndexToPosition } from "../parsing/text-utility"; import { CommonmarkHeadingFollowingText, CommonmarkHeadingText, CommonmarkSubHeadings, ParseCommonmark } from "../parsing/literate"; -import { Parse as ParseLiterateYaml } from "../parsing/literate-yaml"; -import { IndexToPosition, Lines } from "../parsing/text-utility"; -import { ResolvePath, ResolveRelativeNode } from "../parsing/yaml"; -import { pushAll } from '../ref/array'; -import { IsPrefix, JsonPath, JsonPathComponent, stringify } from "../ref/jsonpath"; -import { From } from "../ref/linq"; +import { Channel, SourceLocation } from "../message"; +import { OperationAbortedException } from "../exception"; import { safeEval } from "../ref/safe-eval"; -import { Mapping, Mappings } from "../ref/source-map"; +import { ConfigurationView } from "../autorest-core"; +import { DataHandle, DataSink, DataSource } from '../data-store/data-store'; +import { IsPrefix, JsonPath, JsonPathComponent, stringify } from "../ref/jsonpath"; +import { ResolvePath, ResolveRelativeNode } from "../parsing/yaml"; +import { Clone, CloneAst, Descendants, StringifyAst, ToAst, YAMLNodeWithPath, StrictJsonSyntaxCheck } from "../ref/yaml"; import { ResolveUri } from "../ref/uri"; -import { Clone, CloneAst, Descendants, StrictJsonSyntaxCheck, StringifyAst, ToAst, YAMLNodeWithPath } from "../ref/yaml"; -import { IdentitySourceMapping, MergeYamls } from "../source-map/merging"; +import { From } from "../ref/linq"; +import { Mappings, Mapping } from "../ref/source-map"; import { CreateAssignmentMapping } from "../source-map/source-map"; +import { Parse as ParseLiterateYaml } from "../parsing/literate-yaml"; +import { MergeYamls, IdentitySourceMapping } from "../source-map/merging"; -const ctr = 0; +let ctr = 0; function isReferenceNode(node: YAMLNodeWithPath): boolean { const lastKey = node.path[node.path.length - 1]; - return (lastKey === '$ref' || lastKey === 'x-ms-odata') && typeof node.node.value === 'string'; + return (lastKey === "$ref" || lastKey === "x-ms-odata") && typeof node.node.value === "string"; } async function EnsureCompleteDefinitionIsPresent( config: ConfigurationView, inputScope: DataSource, sink: DataSink, - visitedEntities: Array, + visitedEntities: string[], externalFiles: { [uri: string]: DataHandle }, sourceFileUri: string, sourceDocObj: any, - sourceDocMappings: Array, + sourceDocMappings: Mapping[], currentFileUri?: string, entityType?: string, modelName?: string) { @@ -54,7 +54,7 @@ async function EnsureCompleteDefinitionIsPresent( Channel: Channel.Error, Source: [complaintLocation], Text: `Referenced file '${fileUri}' not found` - }); + }) throw new OperationAbortedException(); } const externalFile = await ParseLiterateYaml(config, file, sink); @@ -67,14 +67,14 @@ async function EnsureCompleteDefinitionIsPresent( currentFileUri = sourceFileUri; } - const references: Array = []; + const references: YAMLNodeWithPath[] = []; const currentDoc = externalFiles[currentFileUri]; const currentDocAst = currentDoc.ReadYamlAst(); if (entityType == null || modelName == null) { // external references for (const node of Descendants(currentDocAst)) { if (isReferenceNode(node)) { - if (!(node.node.value as string).startsWith('#')) { + if (!(node.node.value as string).startsWith("#")) { references.push(node); } } @@ -89,20 +89,20 @@ async function EnsureCompleteDefinitionIsPresent( } } - const inputs: Array = [sourceDoc]; + const inputs: DataHandle[] = [sourceDoc]; for (const { node, path } of references) { - const complaintLocation: SourceLocation = { document: currentDoc.key, Position: { path } }; + const complaintLocation: SourceLocation = { document: currentDoc.key, Position: { path: path } }; const refPath = node.value as string; - if (refPath.indexOf('#') === -1) { + if (refPath.indexOf("#") === -1) { // inject entire file right here const fileUri = ResolveUri(currentFileUri, refPath); await ensureExtFilePresent(fileUri, config, complaintLocation); // console.error("Resolving ", fileUri); const targetPath = path.slice(0, path.length - 1); const extObj = externalFiles[fileUri].ReadObject(); - safeEval(`${stringify(targetPath)} = extObj`, { $: sourceDocObj, extObj }); + safeEval(`${stringify(targetPath)} = extObj`, { $: sourceDocObj, extObj: extObj }); //// performance hit: // inputs.push(externalFiles[fileUri]); // sourceDocMappings.push(...CreateAssignmentMapping( @@ -114,17 +114,17 @@ async function EnsureCompleteDefinitionIsPresent( sourceDocMappings = sourceDocMappings.filter(m => !IsPrefix(path, (m.generated as any).path)); continue; } - const refPathParts = refPath.split('#').filter(s => s.length > 0); + const refPathParts = refPath.split("#").filter(s => s.length > 0); let fileUri: string | null = null; let entityPath = refPath; if (refPathParts.length === 2) { fileUri = refPathParts[0]; - entityPath = '#' + refPathParts[1]; + entityPath = "#" + refPathParts[1]; fileUri = ResolveUri(currentFileUri, fileUri); await ensureExtFilePresent(fileUri, config, complaintLocation); } - const entityPathParts = entityPath.split('/').filter(s => s.length > 0); + const entityPathParts = entityPath.split("/").filter(s => s.length > 0); const referencedEntityType = entityPathParts[1]; const referencedModelName = entityPathParts[2]; @@ -141,7 +141,8 @@ async function EnsureCompleteDefinitionIsPresent( extObj[referencedEntityType][referencedModelName], externalFiles[fileUri].key, [referencedEntityType, referencedModelName], [referencedEntityType, referencedModelName], `resolving '${refPath}' in '${currentFileUri}'`)); - } else { + } + else { sourceDocMappings = await EnsureCompleteDefinitionIsPresent(config, inputScope, sink, visitedEntities, externalFiles, sourceFileUri, sourceDocObj, sourceDocMappings, currentFileUri, referencedEntityType, referencedModelName); const currentObj = externalFiles[currentFileUri].ReadObject(); inputs.push(externalFiles[currentFileUri]); @@ -157,23 +158,23 @@ async function EnsureCompleteDefinitionIsPresent( } } - // ensure that all the models that are an allOf on the current model in the external doc are also included + //ensure that all the models that are an allOf on the current model in the external doc are also included if (entityType != null && modelName != null) { - let reference = '#/' + entityType + '/' + modelName; - const dependentRefs: Array = []; + var reference = "#/" + entityType + "/" + modelName; + const dependentRefs: YAMLNodeWithPath[] = []; for (const node of Descendants(currentDocAst)) { const path = node.path; - if (path.length > 3 && path[path.length - 3] === 'allOf' && isReferenceNode(node) && (node.node.value as string) === reference) { + if (path.length > 3 && path[path.length - 3] === "allOf" && isReferenceNode(node) && (node.node.value as string) === reference) { dependentRefs.push(node); } } for (const dependentRef of dependentRefs) { - // the JSON Path "definitions.ModelName.allOf[0].$ref" provides the name of the model that is an allOf on the current model + //the JSON Path "definitions.ModelName.allOf[0].$ref" provides the name of the model that is an allOf on the current model const refs = dependentRef.path; const defSec = refs[0]; const model = refs[1]; - if (typeof defSec === 'string' && typeof model === 'string' && visitedEntities.indexOf(`#/${defSec}/${model}`) === -1) { - // recursively check if the model is completely defined. + if (typeof defSec === "string" && typeof model === "string" && visitedEntities.indexOf(`#/${defSec}/${model}`) === -1) { + //recursively check if the model is completely defined. sourceDocMappings = await EnsureCompleteDefinitionIsPresent(config, inputScope, sink, visitedEntities, externalFiles, sourceFileUri, sourceDocObj, sourceDocMappings, currentFileUri, defSec, model); const currentObj = externalFiles[currentFileUri].ReadObject(); inputs.push(externalFiles[currentFileUri]); @@ -187,7 +188,7 @@ async function EnsureCompleteDefinitionIsPresent( } // commit back - externalFiles[sourceFileUri] = await sink.WriteObject('revision', sourceDocObj, undefined, sourceDocMappings, [...Object.getOwnPropertyNames(externalFiles).map(x => externalFiles[x]), sourceDoc] /* inputs */ /*TODO: fix*/); + externalFiles[sourceFileUri] = await sink.WriteObject("revision", sourceDocObj, undefined, sourceDocMappings, [...Object.getOwnPropertyNames(externalFiles).map(x => externalFiles[x]), sourceDoc] /* inputs */ /*TODO: fix*/); return sourceDocMappings; } @@ -196,13 +197,13 @@ async function StripExternalReferences(swagger: DataHandle, sink: DataSink): Pro const mapping = IdentitySourceMapping(swagger.key, ast); for (const node of Descendants(ast)) { if (isReferenceNode(node)) { - const parts = (node.node.value as string).split('#'); + const parts = (node.node.value as string).split("#"); if (parts.length === 2) { - node.node.value = '#' + (node.node.value as string).split('#')[1]; + node.node.value = "#" + (node.node.value as string).split("#")[1]; } } } - return sink.WriteData('result.yaml', StringifyAst(ast), undefined, mapping, [swagger]); + return await sink.WriteData("result.yaml", StringifyAst(ast), undefined, mapping, [swagger]); } export async function LoadLiterateSwaggerOverride(config: ConfigurationView, inputScope: DataSource, inputFileUri: string, sink: DataSink): Promise { @@ -210,85 +211,13 @@ export async function LoadLiterateSwaggerOverride(config: ConfigurationView, inp const rawCommonmark = commonmark.ReadData(); const commonmarkNode = await ParseCommonmark(rawCommonmark); - const directives: Array = []; - const mappings: Mappings = []; - const transformer: Array = []; - const state = [...CommonmarkSubHeadings(commonmarkNode.firstChild)].map(x => ({ node: x, query: "$" })); - - while (state.length > 0) { - const x = state.pop(); if (x === undefined) { throw "unreachable"; } - // extract heading clue - // Syntax: (``) - // query syntax: - // - implicit prefix: "@." (omitted if starts with "$." or "@.") - // - "#" to obtain the object containing a string property containing "" - let clue: string | null = null; - let node = x.node.firstChild; - while (node) { - if ((node.literal || '').endsWith('(') - && (((node.next || {}).next || {}).literal || '').startsWith(')') - && node.next - && node.next.type === 'code') { - clue = node.next.literal; - break; - } - node = node.next; - } - - // process clue - if (clue) { - // be explicit about relativity - if (!clue.startsWith('@.') && !clue.startsWith('$.')) { - clue = '@.' + clue; - } - - // make absolute - if (clue.startsWith('@.')) { - clue = x.query + clue.slice(1); - } - - // replace queries - const candidProperties = ['name', 'operationId', '$ref']; - clue = clue.replace(/\.\#(.+?)\b/g, (_, match) => `..[?(${candidProperties.map(p => `(@[${JSON.stringify(p)}] && @[${JSON.stringify(p)}].indexOf(${JSON.stringify(match)}) !== -1)`).join(' || ')})]`); - - // console.log(clue); - - // target field - const allowedTargetFields = ['description', 'summary']; - const targetField = allowedTargetFields.filter(f => (clue || '').endsWith('.' + f))[0] || 'description'; - const targetPath = clue.endsWith('.' + targetField) ? clue.slice(0, clue.length - targetField.length - 1) : clue; - - if (targetPath !== '$.parameters' && targetPath !== '$.definitions') { - // add directive - const headingTextRange = CommonmarkHeadingFollowingText(x.node); - const documentation = Lines(rawCommonmark).slice(headingTextRange[0] - 1, headingTextRange[1]).join('\n'); - directives.push({ - where: targetPath, - transform: ` - if (typeof $.${targetField} === "string" || typeof $.${targetField} === "undefined") - $.${targetField} = ${JSON.stringify(documentation)};` - }); - } - } - - state.push(...[...CommonmarkSubHeadings(x.node)].map(y => ({ node: y, query: clue || x.query }))); - } - - return sink.WriteObject('override-directives', { directive: directives }, undefined, mappings, [commonmark]); -} - -export async function LoadLiterateOpenApiOverride(config: ConfigurationView, inputScope: DataSource, inputFileUri: string, sink: DataSink): Promise { - const commonmark = await inputScope.ReadStrict(inputFileUri); - const rawCommonmark = commonmark.ReadData(); - const commonmarkNode = await ParseCommonmark(rawCommonmark); - - const directives: Array = []; + const directives: any[] = []; const mappings: Mappings = []; - const transformer: Array = []; - const state = [...CommonmarkSubHeadings(commonmarkNode.firstChild)].map(x => ({ node: x, query: "$" })); + let transformer: string[] = []; + const state = [...CommonmarkSubHeadings(commonmarkNode.firstChild)].map(x => { return { node: x, query: "$" }; }); while (state.length > 0) { - const x = state.pop(); if (x === undefined) { throw "unreachable"; } + const x = state.pop(); if (x === undefined) throw "unreachable"; // extract heading clue // Syntax: (``) // query syntax: @@ -297,10 +226,10 @@ export async function LoadLiterateOpenApiOverride(config: ConfigurationView, inp let clue: string | null = null; let node = x.node.firstChild; while (node) { - if ((node.literal || '').endsWith('(') - && (((node.next || {}).next || {}).literal || '').startsWith(')') + if ((node.literal || "").endsWith("(") + && (((node.next || {}).next || {}).literal || "").startsWith(")") && node.next - && node.next.type === 'code') { + && node.next.type === "code") { clue = node.next.literal; break; } @@ -310,30 +239,30 @@ export async function LoadLiterateOpenApiOverride(config: ConfigurationView, inp // process clue if (clue) { // be explicit about relativity - if (!clue.startsWith('@.') && !clue.startsWith('$.')) { - clue = '@.' + clue; + if (!clue.startsWith("@.") && !clue.startsWith("$.")) { + clue = "@." + clue; } // make absolute - if (clue.startsWith('@.')) { + if (clue.startsWith("@.")) { clue = x.query + clue.slice(1); } // replace queries - const candidProperties = ['name', 'operationId', '$ref']; - clue = clue.replace(/\.\#(.+?)\b/g, (_, match) => `..[?(${candidProperties.map(p => `(@[${JSON.stringify(p)}] && @[${JSON.stringify(p)}].indexOf(${JSON.stringify(match)}) !== -1)`).join(' || ')})]`); + const candidProperties = ["name", "operationId", "$ref"]; + clue = clue.replace(/\.\#(.+?)\b/g, (_, match) => `..[?(${candidProperties.map(p => `(@[${JSON.stringify(p)}] && @[${JSON.stringify(p)}].indexOf(${JSON.stringify(match)}) !== -1)`).join(" || ")})]`); // console.log(clue); // target field - const allowedTargetFields = ['description', 'summary']; - const targetField = allowedTargetFields.filter(f => (clue || '').endsWith('.' + f))[0] || 'description'; - const targetPath = clue.endsWith('.' + targetField) ? clue.slice(0, clue.length - targetField.length - 1) : clue; + const allowedTargetFields = ["description", "summary"]; + const targetField = allowedTargetFields.filter(f => (clue || "").endsWith("." + f))[0] || "description"; + const targetPath = clue.endsWith("." + targetField) ? clue.slice(0, clue.length - targetField.length - 1) : clue; - if (targetPath !== '$.parameters' && targetPath !== '$.definitions') { + if (targetPath !== "$.parameters" && targetPath !== "$.definitions") { // add directive const headingTextRange = CommonmarkHeadingFollowingText(x.node); - const documentation = Lines(rawCommonmark).slice(headingTextRange[0] - 1, headingTextRange[1]).join('\n'); + const documentation = Lines(rawCommonmark).slice(headingTextRange[0] - 1, headingTextRange[1]).join("\n"); directives.push({ where: targetPath, transform: ` @@ -343,30 +272,29 @@ export async function LoadLiterateOpenApiOverride(config: ConfigurationView, inp } } - state.push(...[...CommonmarkSubHeadings(x.node)].map(y => ({ node: y, query: clue || x.query }))); + state.push(...[...CommonmarkSubHeadings(x.node)].map(y => { return { node: y, query: clue || x.query }; })); } - return sink.WriteObject('override-directives', { directive: directives }, undefined, mappings, [commonmark]); + return sink.WriteObject("override-directives", { directive: directives }, undefined, mappings, [commonmark]); } -export async function LoadLiterateSwagger(config: ConfigurationView, inputScope: DataSource, inputFileUri: string, sink: DataSink): Promise { +export async function LoadLiterateSwagger(config: ConfigurationView, inputScope: DataSource, inputFileUri: string, sink: DataSink): Promise { const handle = await inputScope.ReadStrict(inputFileUri); // strict JSON check - if (inputFileUri.toLowerCase().endsWith('.json')) { + if (inputFileUri.toLowerCase().endsWith(".json")) { const error = StrictJsonSyntaxCheck(handle.ReadData()); if (error) { config.Message({ Channel: Channel.Error, - Text: 'Syntax Error Encountered: ' + error.message, + Text: "Syntax Error Encountered: " + error.message, Source: [{ Position: IndexToPosition(handle, error.index), document: handle.key }], }); } } const data = await ParseLiterateYaml(config, handle, sink); // check OpenAPI version - if (data.ReadObject().swagger !== '2.0') { - return null; - //throw new Error(`File '${inputFileUri}' is not a valid OpenAPI 2.0 definition (expected 'swagger: 2.0')`); + if (data.ReadObject().swagger !== "2.0") { + throw new Error(`File '${inputFileUri}' is not a valid OpenAPI 2.0 definition (expected 'swagger: 2.0')`); } const externalFiles: { [uri: string]: DataHandle } = {}; externalFiles[inputFileUri] = data; @@ -382,66 +310,19 @@ export async function LoadLiterateSwagger(config: ConfigurationView, inputScope: return result; } -export async function LoadLiterateOpenApi(config: ConfigurationView, inputScope: DataSource, inputFileUri: string, sink: DataSink): Promise { - const handle = await inputScope.ReadStrict(inputFileUri); - // strict JSON check - if (inputFileUri.toLowerCase().endsWith('.json')) { - const error = StrictJsonSyntaxCheck(handle.ReadData()); - if (error) { - config.Message({ - Channel: Channel.Error, - Text: `Syntax Error Encountered: ${error.message}`, - Source: [{ Position: IndexToPosition(handle, error.index), document: handle.key }], - }); - } - } - const data = await ParseLiterateYaml(config, handle, sink); - const openapifound = /^3.\d.\d$/g.exec(data.ReadObject().openapi); - if (!openapifound) { - // throw new Error(`File '${inputFileUri}' is not a valid OpenAPI 3.X.X definition (expected 'openapi: 3.X.X')`); - return null; - } - - const externalFiles: { [uri: string]: DataHandle } = {}; - externalFiles[inputFileUri] = data; - await EnsureCompleteDefinitionIsPresent(config, - inputScope, - sink, - [], - externalFiles, - inputFileUri, - data.ReadObject(), - IdentitySourceMapping(data.key, data.ReadYamlAst())); - const result = await StripExternalReferences(externalFiles[inputFileUri], sink); - return result; -} - -export async function LoadLiterateSwaggers(config: ConfigurationView, inputScope: DataSource, inputFileUris: Array, sink: DataSink): Promise> { - const rawSwaggers: Array = []; +export async function LoadLiterateSwaggers(config: ConfigurationView, inputScope: DataSource, inputFileUris: string[], sink: DataSink): Promise { + const rawSwaggers: DataHandle[] = []; + let i = 0; for (const inputFileUri of inputFileUris) { // read literate Swagger const pluginInput = await LoadLiterateSwagger(config, inputScope, inputFileUri, sink); - if (pluginInput) { - rawSwaggers.push(pluginInput); - } + rawSwaggers.push(pluginInput); + i++; } return rawSwaggers; } - -export async function LoadLiterateOpenApis(config: ConfigurationView, inputScope: DataSource, inputFileUris: Array, sink: DataSink): Promise> { - const rawOpenApis: Array = []; - for (const inputFileUri of inputFileUris) { - // read literate Swagger - const pluginInput = await LoadLiterateOpenApi(config, inputScope, inputFileUri, sink); - if (pluginInput) { - rawOpenApis.push(pluginInput); - } - } - return rawOpenApis; -} - -export async function LoadLiterateSwaggerOverrides(config: ConfigurationView, inputScope: DataSource, inputFileUris: Array, sink: DataSink): Promise> { - const rawSwaggers: Array = []; +export async function LoadLiterateSwaggerOverrides(config: ConfigurationView, inputScope: DataSource, inputFileUris: string[], sink: DataSink): Promise { + const rawSwaggers: DataHandle[] = []; let i = 0; for (const inputFileUri of inputFileUris) { // read literate Swagger @@ -452,102 +333,90 @@ export async function LoadLiterateSwaggerOverrides(config: ConfigurationView, in return rawSwaggers; } -export async function LoadLiterateOpenApiOverrides(config: ConfigurationView, inputScope: DataSource, inputFileUris: Array, sink: DataSink): Promise> { - const rawOpenApis: Array = []; - let i = 0; - for (const inputFileUri of inputFileUris) { - // read literate Swagger - const pluginInput = await LoadLiterateOpenApiOverride(config, inputScope, inputFileUri, sink); - rawOpenApis.push(pluginInput); - i++; - } - return rawOpenApis; -} - -interface ObjectWithPath { obj: T, path: JsonPath } -function getPropertyValues(obj: ObjectWithPath): Array> { +type ObjectWithPath = { obj: T, path: JsonPath }; +function getPropertyValues(obj: ObjectWithPath): ObjectWithPath[] { const o: T = obj.obj || {}; return Object.getOwnPropertyNames(o).map(n => getProperty(obj, n)); } function getProperty(obj: ObjectWithPath, key: string): ObjectWithPath { return { obj: (obj.obj as any)[key], path: obj.path.concat([key]) }; } -function getArrayValues(obj: ObjectWithPath>): Array> { - const o: Array = obj.obj || []; - return o.map((x, i) => ({ obj: x, path: obj.path.concat([i]) })); +function getArrayValues(obj: ObjectWithPath): ObjectWithPath[] { + const o: T[] = obj.obj || []; + return o.map((x, i) => { return { obj: x, path: obj.path.concat([i]) }; }); } -function distinct(list: Array): Array { +function distinct(list: T[]): T[] { const sorted = list.slice().sort(); return sorted.filter((x, i) => i === 0 || x !== sorted[i - 1]); } -export async function ComposeSwaggers(config: ConfigurationView, overrideInfoTitle: any, overrideInfoDescription: any, inputSwaggers: Array, sink: DataSink): Promise { +export async function ComposeSwaggers(config: ConfigurationView, overrideInfoTitle: any, overrideInfoDescription: any, inputSwaggers: DataHandle[], sink: DataSink): Promise { const inputSwaggerObjects = inputSwaggers.map(sw => sw.ReadObject()); - const candidateTitles: Array = overrideInfoTitle + const candidateTitles: string[] = overrideInfoTitle ? [overrideInfoTitle] : distinct(inputSwaggerObjects.map(s => s.info).filter(i => !!i).map(i => i.title)); - const candidateDescriptions: Array = overrideInfoDescription + const candidateDescriptions: string[] = overrideInfoDescription ? [overrideInfoDescription] : distinct(inputSwaggerObjects.map(s => s.info).filter(i => !!i).map(i => i.description).filter(i => !!i)); const uniqueVersion: boolean = distinct(inputSwaggerObjects.map(s => s.info).filter(i => !!i).map(i => i.version)).length === 1; - if (candidateTitles.length === 0) { throw new Error(`No 'title' in provided OpenAPI definition(s).`); } - if (candidateTitles.length > 1) { throw new Error(`The 'title' across provided OpenAPI definitions has to match. Found: ${candidateTitles.map(x => `'${x}'`).join(", ")}. Please adjust or provide an override (--title=...).`); } - if (candidateDescriptions.length !== 1) { candidateDescriptions.splice(0, candidateDescriptions.length); } + if (candidateTitles.length === 0) throw new Error(`No 'title' in provided OpenAPI definition(s).`); + if (candidateTitles.length > 1) throw new Error(`The 'title' across provided OpenAPI definitions has to match. Found: ${candidateTitles.map(x => `'${x}'`).join(", ")}. Please adjust or provide an override (--title=...).`); + if (candidateDescriptions.length !== 1) candidateDescriptions.splice(0, candidateDescriptions.length); // prepare component Swaggers (override info, lift version param, ...) for (let i = 0; i < inputSwaggers.length; ++i) { const inputSwagger = inputSwaggers[i]; const swagger = inputSwaggerObjects[i]; const mapping: Mappings = []; - const populate: Array<() => void> = []; // populate swagger; deferred in order to simplify source map generation + const populate: (() => void)[] = []; // populate swagger; deferred in order to simplify source map generation // digest "info" const info = swagger.info; const version = info.version; delete info.title; delete info.description; - if (!uniqueVersion) { delete info.version; } + if (!uniqueVersion) delete info.version; // extract interesting nodes const paths = From>([]) - .Concat(getPropertyValues(getProperty({ obj: swagger, path: [] }, 'paths'))) - .Concat(getPropertyValues(getProperty({ obj: swagger, path: [] }, 'x-ms-paths'))); + .Concat(getPropertyValues(getProperty({ obj: swagger, path: [] }, "paths"))) + .Concat(getPropertyValues(getProperty({ obj: swagger, path: [] }, "x-ms-paths"))); const methods = paths.SelectMany(getPropertyValues); const parameters = - methods.SelectMany((method: any) => getArrayValues(getProperty(method, 'parameters'))).Concat( - paths.SelectMany((path: any) => getArrayValues(getProperty(path, 'parameters')))); + methods.SelectMany((method: any) => getArrayValues(getProperty(method, "parameters"))).Concat( + paths.SelectMany((path: any) => getArrayValues(getProperty(path, "parameters")))); // inline api-version params if (!uniqueVersion) { const clientParams = swagger.parameters || {}; - const apiVersionClientParamName = Object.getOwnPropertyNames(clientParams).filter(n => clientParams[n].name === 'api-version')[0]; + const apiVersionClientParamName = Object.getOwnPropertyNames(clientParams).filter(n => clientParams[n].name === "api-version")[0]; const apiVersionClientParam = apiVersionClientParamName ? clientParams[apiVersionClientParamName] : null; if (apiVersionClientParam) { const apiVersionClientParam = clientParams[apiVersionClientParamName]; const apiVersionParameters = parameters.Where((p: any) => p.obj.$ref === `#/parameters/${apiVersionClientParamName}`); - for (const apiVersionParameter of apiVersionParameters) { + for (let apiVersionParameter of apiVersionParameters) { delete apiVersionParameter.obj.$ref; // forward client param - populate.push(() => ({ ...apiVersionParameter.obj, ...apiVersionClientParam })); + populate.push(() => Object.assign(apiVersionParameter.obj, apiVersionClientParam)); mapping.push(...CreateAssignmentMapping( apiVersionClientParam, inputSwagger.key, - ['parameters', apiVersionClientParamName], apiVersionParameter.path, - 'inlining api-version')); + ["parameters", apiVersionClientParamName], apiVersionParameter.path, + "inlining api-version")); // make constant populate.push(() => apiVersionParameter.obj.enum = [version]); mapping.push({ - name: 'inlining api-version', source: inputSwagger.key, - original: { path: ['info', 'version'] }, - generated: { path: apiVersionParameter.path.concat('enum') } + name: "inlining api-version", source: inputSwagger.key, + original: { path: ["info", "version"] }, + generated: { path: apiVersionParameter.path.concat("enum") } }); mapping.push({ - name: 'inlining api-version', source: inputSwagger.key, - original: { path: ['info', 'version'] }, - generated: { path: apiVersionParameter.path.concat('enum', 0) } + name: "inlining api-version", source: inputSwagger.key, + original: { path: ["info", "version"] }, + generated: { path: apiVersionParameter.path.concat("enum", 0) } }); } @@ -557,11 +426,11 @@ export async function ComposeSwaggers(config: ConfigurationView, overrideInfoTit } // inline produces/consumes - for (const pc of ['produces', 'consumes']) { + for (const pc of ["produces", "consumes"]) { const clientPC = swagger[pc]; if (clientPC) { for (const method of methods) { - if (typeof method.obj === 'object' && !Array.isArray(method.obj) && !(method.obj as any)[pc]) { + if (typeof method.obj === "object" && !Array.isArray(method.obj) && !(method.obj as any)[pc]) { populate.push(() => (method.obj as any)[pc] = Clone(clientPC)); mapping.push(...CreateAssignmentMapping( clientPC, inputSwagger.key, @@ -580,17 +449,17 @@ export async function ComposeSwaggers(config: ConfigurationView, overrideInfoTit populate.forEach(f => f()); // write back - inputSwaggers[i] = await sink.WriteObject('prepared', swagger, undefined, mapping, [inputSwagger]); + inputSwaggers[i] = await sink.WriteObject("prepared", swagger, undefined, mapping, [inputSwagger]); } let hSwagger = await MergeYamls(config, inputSwaggers, sink, true); // override info section const info: any = { title: candidateTitles[0] }; - if (candidateDescriptions[0]) { info.description = candidateDescriptions[0]; } - const hInfo = await sink.WriteObject('info.yaml', { info }); + if (candidateDescriptions[0]) info.description = candidateDescriptions[0]; + const hInfo = await sink.WriteObject("info.yaml", { info: info }); hSwagger = await MergeYamls(config, [hSwagger, hInfo], sink); return hSwagger; -} +} \ No newline at end of file diff --git a/src/autorest-core/lib/source-map/merging.ts b/src/autorest-core/lib/source-map/merging.ts index d096ae2a17..f78934f5df 100644 --- a/src/autorest-core/lib/source-map/merging.ts +++ b/src/autorest-core/lib/source-map/merging.ts @@ -12,7 +12,6 @@ import * as yaml from '../ref/yaml'; import { Mappings } from "../ref/source-map"; import { DataHandle, DataSink } from "../data-store/data-store"; import { ResolvePath } from '../parsing/yaml'; -import { isArray } from 'util'; // // TODO: may want ASTy merge! (supporting circular structure and such?) function Merge(a: any, b: any, path: JsonPath = []): any { @@ -68,16 +67,6 @@ function Merge(a: any, b: any, path: JsonPath = []): any { } export function ShallowCopy(input: any, ...filter: Array): any { - /* TODO; replace and test with this: - const copy = { ...input }; - for (const each of filter) { - if (copy[each]) { - delete copy[each]; - } - } - return copy; - */ - if (!input) { return input; } @@ -107,9 +96,6 @@ function toJsValue(value: any) { if (value === null) { return "null"; } - if (isArray(value) && value.length === 0) { - return "false"; - } return "true"; } return `'${value}'`; @@ -164,7 +150,7 @@ export function resolveRValue(value: any, propertyName: string, higherPriority: // resolve macro values for array values if (value instanceof Array) { - const result = new Array(); + const result = []; for (const each of value) { // since we're not naming the parameter, // if there isn't a higher priority, diff --git a/src/autorest-core/package.json b/src/autorest-core/package.json index f698cb40dd..8dff0304fc 100644 --- a/src/autorest-core/package.json +++ b/src/autorest-core/package.json @@ -25,7 +25,7 @@ }, "scripts": { "test": "./node_modules/.bin/mocha ./dist/test --timeout 100000", - "build": "tsc -p . && dts-generator --name autorest-core --project . --out ../autorest/interfaces/autorest-core.d.ts --indent \"\" --exclude \"test/**/*\" --exclude \"node_modules/**/*.d.ts\" --exclude \"lib/source-map/**\" --exclude \"lib/pipeline/**\" --exclude \"lib/parsing/**\" --exclude \"lib/data-store/**\" --exclude \"lib/ref/yaml.ts\" --extern ./source-maps.d.ts && shx cp ../../schema/openapi3-schema.json dist/lib/pipeline && shx cp ../../schema/swagger-extensions.json dist/lib/pipeline && shx cp ../../schema/example-schema.json dist/lib/pipeline && shx cp ../../schema/swagger.json dist/lib/pipeline", + "build": "tsc -p . && dts-generator --name autorest-core --project . --out ../autorest/interfaces/autorest-core.d.ts --indent \"\" --exclude \"test/**/*\" --exclude \"node_modules/**/*.d.ts\" --exclude \"lib/source-map/**\" --exclude \"lib/pipeline/**\" --exclude \"lib/parsing/**\" --exclude \"lib/data-store/**\" --exclude \"lib/ref/yaml.ts\" --extern ./source-maps.d.ts && shx cp ../../schema/swagger-extensions.json dist/lib/pipeline && shx cp ../../schema/example-schema.json dist/lib/pipeline && shx cp ../../schema/swagger.json dist/lib/pipeline", "static-link": "static-link", "postinstall": "node ./post-install --force", "reinstall": "shx rm ./package-lock.json && shx rm -rf ./node_modules && npm install", @@ -35,27 +35,27 @@ "devDependencies": { "@types/commonmark": "^0.27.0", "@types/jsonpath": "^0.1.29", + "@types/node": "^8.0.53", "@types/source-map": "0.5.0", "@types/yargs": "^8.0.2", + "@types/mocha": "5.2.0", "@types/z-schema": "^3.16.31", "dts-generator": "^2.1.0", - "mocha-typescript": "1.1.17", - "@types/node": "10.9.4", - "mocha": "^5.0.0", - "typescript": "^3.0.0", + "mocha": "5.2.0", "shx": "0.2.2", "tslint": "^5.9.1", "tslint-language-service": "^0.9.9", "tslint-microsoft-contrib": "^5.0.3", + "mocha-typescript": "1.1.14", "static-link": "^0.2.3", "vscode-jsonrpc": "^3.3.1" }, "static-link": { "entrypoints": [], "dependencies": { + "@microsoft.azure/async-io": "~2.0.7", + "@microsoft.azure/extension": "~2.0.24", "vscode-languageserver": "3.5.1", - "@microsoft.azure/async-io": "2.0.21", - "@microsoft.azure/extension": "2.0.30", "commonmark": "^0.27.0", "file-url": "^2.0.2", "get-uri": "^2.0.0", @@ -74,5 +74,7 @@ }, "patch": "const fs = require(`fs`); let txt = fs.readFileSync('./node_modules/npm/lib/install/action/extract.js','utf8').replace(`const ENABLE_WORKERS = process.platform === 'darwin'`, `const ENABLE_WORKERS = false;`); fs.writeFileSync('./node_modules/npm/lib/install/action/extract.js', txt ); txt = fs.readFileSync(`./node_modules/npm/lib/npm.js`,`utf8`).replace(`var j = parseJSON(fs.readFileSync(`, `var j = require(path.join(__dirname, '../package.json'));` ).replace(`path.join(__dirname, '../package.json')) + '')`,``); fs.writeFileSync(`./node_modules/npm/lib/npm.js`, txt ); txt = fs.readFileSync('./node_modules/npm/lib/pack.js','utf8').replace(`require.main.filename`, `require.resolve('../bin/npm-cli.js')`); fs.writeFileSync('./node_modules/npm/lib/pack.js', txt );" }, - "dependencies": {} + "dependencies": { + "typescript": "2.6.2" + } } diff --git a/src/autorest-core/resources/default-configuration.md b/src/autorest-core/resources/default-configuration.md index d8f461a1d4..2aa8fe30ff 100644 --- a/src/autorest-core/resources/default-configuration.md +++ b/src/autorest-core/resources/default-configuration.md @@ -143,8 +143,8 @@ use-extension: #### Reflection ##### Input API versions (azure-rest-api-specs + C# specific) - -``` yaml $(csharp) + +``` yaml $(csharp) pipeline: swagger-document/reflect-api-versions-cs: # emits a *.cs file containing information about the API versions involved in this call input: @@ -155,23 +155,7 @@ pipeline: swagger-document/reflect-api-versions-cs/emitter: # emits the pipeline graph input: reflect-api-versions-cs scope: scope-reflect-api-versions-cs-emitter -``` - -``` yaml $(csharp) -pipeline: - openapi-document/reflect-api-versions-cs: # emits a *.cs file containing information about the API versions involved in this call - input: - - identity - - individual/identity - - csharp/emitter # ensures delay and C# scope - scope: reflect-api-versions - openapi-document/reflect-api-versions-cs/emitter: # emits the pipeline graph - input: reflect-api-versions-cs - scope: scope-reflect-api-versions-cs-emitter -``` - -``` yaml scope-reflect-api-versions-cs-emitter: input-artifact: source-file-csharp output-uri-expr: $key @@ -307,44 +291,36 @@ perform-load: true # kick off loading Markdown documentation overrides: -``` yaml -pipeline: - swagger-document-override/md-override-loader-swagger: - output-artifact: immediate-config - scope: perform-load -``` - -``` yaml +``` yaml pipeline: - openapi-document-override/md-override-loader-openapi: + swagger-document-override/md-override-loader: output-artifact: immediate-config scope: perform-load ``` OpenAPI definitions: -Pipeline for Swagger (openapi2) files. ``` yaml pipeline: - swagger-document/loader-swagger: + swagger-document/loader: # plugin: loader # IMPLICIT: default to last item if split by '/' output-artifact: swagger-document scope: perform-load swagger-document/individual/transform: - input: loader-swagger + input: loader output-artifact: swagger-document - swagger-document/individual/schema-validator-swagger: + swagger-document/individual/schema-validator: input: transform output-artifact: swagger-document swagger-document/individual/identity: - input: schema-validator-swagger + input: schema-validator output-artifact: swagger-document swagger-document/compose: input: individual/identity output-artifact: swagger-document swagger-document/transform-immediate: input: - - swagger-document-override/md-override-loader-swagger + - swagger-document-override/md-override-loader - compose output-artifact: swagger-document swagger-document/transform: @@ -360,45 +336,11 @@ pipeline: openapi-document/openapi-document-converter: input: swagger-document/identity output-artifact: openapi-document -``` - -# Pipeline for OpenAPI 3+ - -``` yaml -pipeline: - openapi-document/loader-openapi: - # plugin: loader # IMPLICIT: default to last item if split by '/' - output-artifact: openapi-document - scope: perform-load - openapi-document/individual/transform: - input: loader-openapi - output-artifact: openapi-document - openapi-document/individual/schema-validator-openapi: - input: transform - output-artifact: openapi-document - openapi-document/individual/identity: - input: schema-validator-openapi - output-artifact: openapi-document - openapi-document/compose: - input: individual/identity - output-artifact: openapi-document - openapi-document/transform-immediate: - input: - - openapi-document-override/md-override-loader-openapi - - compose - output-artifact: openapi-document -``` - -``` yaml -pipeline: openapi-document/transform: - input: - - openapi-document-converter - - transform-immediate - output-artifact: openapi-document - + input: openapi-document-converter + output-artifact: openapi-document openapi-document/component-modifiers: - input: openapi-document/transform + input: transform output-artifact: openapi-document openapi-document/identity: input: component-modifiers @@ -415,9 +357,6 @@ scope-swagger-document/emitter: $config["output-file"] || ($config.namespace ? $config.namespace.replace(/:/g,'_') : undefined) || $config["input-file"][0].split('/').reverse()[0].split('\\').reverse()[0].replace(/\.json$/, "") -``` - -``` yaml scope-openapi-document/emitter: input-artifact: openapi-document is-object: true @@ -426,9 +365,6 @@ scope-openapi-document/emitter: $config["output-file"] || ($config.namespace ? $config.namespace.replace(/:/g,'_') : undefined) || $config["input-file"][0].split('/').reverse()[0].split('\\').reverse()[0].replace(/\.json$/, "") -``` - -``` yaml scope-cm/emitter: # can remove once every generator depends on recent modeler input-artifact: code-model-v1 is-object: true @@ -450,13 +386,6 @@ directive: ? ($ ? { type: "object" } : undefined) : $ reason: polyfill -- from: openapi-document - where: $.definitions.*.additionalProperties - transform: | - return typeof $ === "boolean" - ? ($ ? { type: "object" } : undefined) - : $ - reason: polyfill ``` ##### Reproduce old buggy behavior of ignoring `required`ness of properties in nested schemas (anything outside `definitions` section) @@ -473,7 +402,7 @@ directive: #### Validation -``` yaml +``` yaml pipeline: swagger-document/model-validator: input: swagger-document/identity @@ -483,16 +412,6 @@ pipeline: scope: semantic-validator ``` -``` yaml -pipeline: - openapi-document/model-validator: - input: openapi-document/identity - scope: model-validator - openapi-document/semantic-validator: - input: openapi-document/identity - scope: semantic-validator -``` - # Validation ## Client Side Validation diff --git a/src/autorest-core/test/cancellation.ts b/src/autorest-core/test/cancellation.ts index d0e057266c..97dbb81ecc 100644 --- a/src/autorest-core/test/cancellation.ts +++ b/src/autorest-core/test/cancellation.ts @@ -1,34 +1,34 @@ -import * as assert from 'assert'; -import { only, skip, slow, suite, test, timeout } from 'mocha-typescript'; import { Delay } from '../lib/sleep'; +import { suite, test, slow, timeout, skip, only } from "mocha-typescript"; +import * as assert from "assert"; -import { AutoRest } from '../lib/autorest-core'; -import { Configuration } from '../lib/configuration'; -import { RealFileSystem } from '../lib/file-system'; -import { Message } from '../lib/message'; -import { CreateFolderUri, ResolveUri } from '../lib/ref/uri'; +import { AutoRest } from "../lib/autorest-core"; +import { RealFileSystem } from "../lib/file-system"; +import { CreateFolderUri, ResolveUri } from "../lib/ref/uri"; +import { Message } from "../lib/message"; +import { Configuration } from "../lib/configuration"; /*@suite */ class Cancellation { private async CreateLongRunningAutoRest(): Promise { const autoRest = new AutoRest(new RealFileSystem()); await autoRest.AddConfiguration({ - 'input-file': [ - 'https://github.com/Azure/azure-rest-api-specs/blob/master/specification/network/resource-manager/Microsoft.Network/stable/2017-03-01/applicationGateway.json', - 'https://github.com/Azure/azure-rest-api-specs/blob/master/specification/network/resource-manager/Microsoft.Network/stable/2017-03-01/checkDnsAvailability.json', - 'https://github.com/Azure/azure-rest-api-specs/blob/master/specification/network/resource-manager/Microsoft.Network/stable/2017-03-01/expressRouteCircuit.json', - 'https://github.com/Azure/azure-rest-api-specs/blob/master/specification/network/resource-manager/Microsoft.Network/stable/2017-03-01/loadBalancer.json', - 'https://github.com/Azure/azure-rest-api-specs/blob/master/specification/network/resource-manager/Microsoft.Network/stable/2017-03-01/network.json', - 'https://github.com/Azure/azure-rest-api-specs/blob/master/specification/network/resource-manager/Microsoft.Network/stable/2017-03-01/networkInterface.json', - 'https://github.com/Azure/azure-rest-api-specs/blob/master/specification/network/resource-manager/Microsoft.Network/stable/2017-03-01/networkSecurityGroup.json', - 'https://github.com/Azure/azure-rest-api-specs/blob/master/specification/network/resource-manager/Microsoft.Network/stable/2017-03-01/networkWatcher.json', - 'https://github.com/Azure/azure-rest-api-specs/blob/master/specification/network/resource-manager/Microsoft.Network/stable/2017-03-01/publicIpAddress.json', - 'https://github.com/Azure/azure-rest-api-specs/blob/master/specification/network/resource-manager/Microsoft.Network/stable/2017-03-01/routeFilter.json', - 'https://github.com/Azure/azure-rest-api-specs/blob/master/specification/network/resource-manager/Microsoft.Network/stable/2017-03-01/routeTable.json', - 'https://github.com/Azure/azure-rest-api-specs/blob/master/specification/network/resource-manager/Microsoft.Network/stable/2017-03-01/serviceCommunity.json', - 'https://github.com/Azure/azure-rest-api-specs/blob/master/specification/network/resource-manager/Microsoft.Network/stable/2017-03-01/usage.json', - 'https://github.com/Azure/azure-rest-api-specs/blob/master/specification/network/resource-manager/Microsoft.Network/stable/2017-03-01/virtualNetwork.json', - 'https://github.com/Azure/azure-rest-api-specs/blob/master/specification/network/resource-manager/Microsoft.Network/stable/2017-03-01/virtualNetworkGateway.json', - 'https://github.com/Azure/azure-rest-api-specs/blob/master/specification/network/resource-manager/Microsoft.Network/stable/2017-03-01/vmssNetworkInterface.json'] + "input-file": [ + "https://github.com/Azure/azure-rest-api-specs/blob/master/specification/network/resource-manager/Microsoft.Network/stable/2017-03-01/applicationGateway.json", + "https://github.com/Azure/azure-rest-api-specs/blob/master/specification/network/resource-manager/Microsoft.Network/stable/2017-03-01/checkDnsAvailability.json", + "https://github.com/Azure/azure-rest-api-specs/blob/master/specification/network/resource-manager/Microsoft.Network/stable/2017-03-01/expressRouteCircuit.json", + "https://github.com/Azure/azure-rest-api-specs/blob/master/specification/network/resource-manager/Microsoft.Network/stable/2017-03-01/loadBalancer.json", + "https://github.com/Azure/azure-rest-api-specs/blob/master/specification/network/resource-manager/Microsoft.Network/stable/2017-03-01/network.json", + "https://github.com/Azure/azure-rest-api-specs/blob/master/specification/network/resource-manager/Microsoft.Network/stable/2017-03-01/networkInterface.json", + "https://github.com/Azure/azure-rest-api-specs/blob/master/specification/network/resource-manager/Microsoft.Network/stable/2017-03-01/networkSecurityGroup.json", + "https://github.com/Azure/azure-rest-api-specs/blob/master/specification/network/resource-manager/Microsoft.Network/stable/2017-03-01/networkWatcher.json", + "https://github.com/Azure/azure-rest-api-specs/blob/master/specification/network/resource-manager/Microsoft.Network/stable/2017-03-01/publicIpAddress.json", + "https://github.com/Azure/azure-rest-api-specs/blob/master/specification/network/resource-manager/Microsoft.Network/stable/2017-03-01/routeFilter.json", + "https://github.com/Azure/azure-rest-api-specs/blob/master/specification/network/resource-manager/Microsoft.Network/stable/2017-03-01/routeTable.json", + "https://github.com/Azure/azure-rest-api-specs/blob/master/specification/network/resource-manager/Microsoft.Network/stable/2017-03-01/serviceCommunity.json", + "https://github.com/Azure/azure-rest-api-specs/blob/master/specification/network/resource-manager/Microsoft.Network/stable/2017-03-01/usage.json", + "https://github.com/Azure/azure-rest-api-specs/blob/master/specification/network/resource-manager/Microsoft.Network/stable/2017-03-01/virtualNetwork.json", + "https://github.com/Azure/azure-rest-api-specs/blob/master/specification/network/resource-manager/Microsoft.Network/stable/2017-03-01/virtualNetworkGateway.json", + "https://github.com/Azure/azure-rest-api-specs/blob/master/specification/network/resource-manager/Microsoft.Network/stable/2017-03-01/vmssNetworkInterface.json"] }); return autoRest; } @@ -46,17 +46,17 @@ import { CreateFolderUri, ResolveUri } from '../lib/ref/uri'; assert.ok(ms2 - ms1 < 500); } - @test async 'immediate'() { await this.TestCancellationAfter(0); } - @test async 'after 100ms'() { await this.TestCancellationAfter(100); } - @test async 'after 1s'() { await this.TestCancellationAfter(1000); } - @test async 'after 2s'() { await this.TestCancellationAfter(2000); } - @test async 'after 3s'() { await this.TestCancellationAfter(3000); } - @test async 'after 5s'() { await this.TestCancellationAfter(5000); } - @test async 'after 8s'() { await this.TestCancellationAfter(8000); } - @test async 'after 10s'() { await this.TestCancellationAfter(10000); } - @test async 'after 15s'() { await this.TestCancellationAfter(15000); } + @test async "immediate"() { await this.TestCancellationAfter(0); } + @test async "after 100ms"() { await this.TestCancellationAfter(100); } + @test async "after 1s"() { await this.TestCancellationAfter(1000); } + @test async "after 2s"() { await this.TestCancellationAfter(2000); } + @test async "after 3s"() { await this.TestCancellationAfter(3000); } + @test async "after 5s"() { await this.TestCancellationAfter(5000); } + @test async "after 8s"() { await this.TestCancellationAfter(8000); } + @test async "after 10s"() { await this.TestCancellationAfter(10000); } + @test async "after 15s"() { await this.TestCancellationAfter(15000); } static after() { - Configuration.shutdown(); + Configuration.shutdown() } -} +} \ No newline at end of file diff --git a/src/autorest-core/test/declarations.ts b/src/autorest-core/test/declarations.ts deleted file mode 100644 index eb24443dd8..0000000000 --- a/src/autorest-core/test/declarations.ts +++ /dev/null @@ -1,3 +0,0 @@ -import * as Mocha from 'mocha'; - -declare type MochaDone = Mocha.Done; diff --git a/src/autorest-core/test/end-to-end.ts b/src/autorest-core/test/end-to-end.ts index 579dda770e..7d3db0d317 100644 --- a/src/autorest-core/test/end-to-end.ts +++ b/src/autorest-core/test/end-to-end.ts @@ -1,39 +1,39 @@ +import { suite, test, slow, timeout, skip, only } from "mocha-typescript"; import * as assert from "assert"; -import { only, skip, slow, suite, test, timeout } from "mocha-typescript"; import { AutoRest } from "../lib/autorest-core"; import { RealFileSystem } from "../lib/file-system"; -import { Channel, Message } from "../lib/message"; import { CreateFolderUri, ResolveUri } from "../lib/ref/uri"; +import { Message, Channel } from "../lib/message"; import { PumpMessagesToConsole } from './test-utility'; @suite class EndToEnd { - @test async 'network full game'() { + @test async "network full game"() { const autoRest = new AutoRest(new RealFileSystem()); // PumpMessagesToConsole(autoRest); autoRest.AddConfiguration({ - 'input-file': [ - 'https://github.com/Azure/azure-rest-api-specs/blob/master/specification/network/resource-manager/Microsoft.Network/stable/2017-03-01/applicationGateway.json', - 'https://github.com/Azure/azure-rest-api-specs/blob/master/specification/network/resource-manager/Microsoft.Network/stable/2017-03-01/checkDnsAvailability.json', - 'https://github.com/Azure/azure-rest-api-specs/blob/master/specification/network/resource-manager/Microsoft.Network/stable/2017-03-01/expressRouteCircuit.json', - 'https://github.com/Azure/azure-rest-api-specs/blob/master/specification/network/resource-manager/Microsoft.Network/stable/2017-03-01/loadBalancer.json', - 'https://github.com/Azure/azure-rest-api-specs/blob/master/specification/network/resource-manager/Microsoft.Network/stable/2017-03-01/network.json', - 'https://github.com/Azure/azure-rest-api-specs/blob/master/specification/network/resource-manager/Microsoft.Network/stable/2017-03-01/networkInterface.json', - 'https://github.com/Azure/azure-rest-api-specs/blob/master/specification/network/resource-manager/Microsoft.Network/stable/2017-03-01/networkSecurityGroup.json', - 'https://github.com/Azure/azure-rest-api-specs/blob/master/specification/network/resource-manager/Microsoft.Network/stable/2017-03-01/networkWatcher.json', - 'https://github.com/Azure/azure-rest-api-specs/blob/master/specification/network/resource-manager/Microsoft.Network/stable/2017-03-01/publicIpAddress.json', - 'https://github.com/Azure/azure-rest-api-specs/blob/master/specification/network/resource-manager/Microsoft.Network/stable/2017-03-01/routeFilter.json', - 'https://github.com/Azure/azure-rest-api-specs/blob/master/specification/network/resource-manager/Microsoft.Network/stable/2017-03-01/routeTable.json', - 'https://github.com/Azure/azure-rest-api-specs/blob/master/specification/network/resource-manager/Microsoft.Network/stable/2017-03-01/serviceCommunity.json', - 'https://github.com/Azure/azure-rest-api-specs/blob/master/specification/network/resource-manager/Microsoft.Network/stable/2017-03-01/usage.json', - 'https://github.com/Azure/azure-rest-api-specs/blob/master/specification/network/resource-manager/Microsoft.Network/stable/2017-03-01/virtualNetwork.json', - 'https://github.com/Azure/azure-rest-api-specs/blob/master/specification/network/resource-manager/Microsoft.Network/stable/2017-03-01/virtualNetworkGateway.json', - 'https://github.com/Azure/azure-rest-api-specs/blob/master/specification/network/resource-manager/Microsoft.Network/stable/2017-03-01/vmssNetworkInterface.json'] + "input-file": [ + "https://github.com/Azure/azure-rest-api-specs/blob/master/specification/network/resource-manager/Microsoft.Network/stable/2017-03-01/applicationGateway.json", + "https://github.com/Azure/azure-rest-api-specs/blob/master/specification/network/resource-manager/Microsoft.Network/stable/2017-03-01/checkDnsAvailability.json", + "https://github.com/Azure/azure-rest-api-specs/blob/master/specification/network/resource-manager/Microsoft.Network/stable/2017-03-01/expressRouteCircuit.json", + "https://github.com/Azure/azure-rest-api-specs/blob/master/specification/network/resource-manager/Microsoft.Network/stable/2017-03-01/loadBalancer.json", + "https://github.com/Azure/azure-rest-api-specs/blob/master/specification/network/resource-manager/Microsoft.Network/stable/2017-03-01/network.json", + "https://github.com/Azure/azure-rest-api-specs/blob/master/specification/network/resource-manager/Microsoft.Network/stable/2017-03-01/networkInterface.json", + "https://github.com/Azure/azure-rest-api-specs/blob/master/specification/network/resource-manager/Microsoft.Network/stable/2017-03-01/networkSecurityGroup.json", + "https://github.com/Azure/azure-rest-api-specs/blob/master/specification/network/resource-manager/Microsoft.Network/stable/2017-03-01/networkWatcher.json", + "https://github.com/Azure/azure-rest-api-specs/blob/master/specification/network/resource-manager/Microsoft.Network/stable/2017-03-01/publicIpAddress.json", + "https://github.com/Azure/azure-rest-api-specs/blob/master/specification/network/resource-manager/Microsoft.Network/stable/2017-03-01/routeFilter.json", + "https://github.com/Azure/azure-rest-api-specs/blob/master/specification/network/resource-manager/Microsoft.Network/stable/2017-03-01/routeTable.json", + "https://github.com/Azure/azure-rest-api-specs/blob/master/specification/network/resource-manager/Microsoft.Network/stable/2017-03-01/serviceCommunity.json", + "https://github.com/Azure/azure-rest-api-specs/blob/master/specification/network/resource-manager/Microsoft.Network/stable/2017-03-01/usage.json", + "https://github.com/Azure/azure-rest-api-specs/blob/master/specification/network/resource-manager/Microsoft.Network/stable/2017-03-01/virtualNetwork.json", + "https://github.com/Azure/azure-rest-api-specs/blob/master/specification/network/resource-manager/Microsoft.Network/stable/2017-03-01/virtualNetworkGateway.json", + "https://github.com/Azure/azure-rest-api-specs/blob/master/specification/network/resource-manager/Microsoft.Network/stable/2017-03-01/vmssNetworkInterface.json"] }); autoRest.AddConfiguration({ - 'override-info': { - title: 'Network' + "override-info": { + title: "Network" } }); @@ -43,48 +43,49 @@ import { PumpMessagesToConsole } from './test-utility'; assert.strictEqual(success, true); } - @test async 'other configuration scenario'() { - const autoRest = new AutoRest(new RealFileSystem(), ResolveUri(CreateFolderUri(__dirname), '../../test/resources/literate-example/readme-complicated.md')); + @test async "other configuration scenario"() { + const autoRest = new AutoRest(new RealFileSystem(), ResolveUri(CreateFolderUri(__dirname), "../../test/resources/literate-example/readme-complicated.md")); // PumpMessagesToConsole(autoRest); + const config = await autoRest.view; - assert.strictEqual(config['shouldwork'], true); + assert.strictEqual(config["shouldwork"], true); } - @test async 'complicated configuration scenario'() { - const autoRest = new AutoRest(new RealFileSystem(), ResolveUri(CreateFolderUri(__dirname), '../../test/resources/literate-example/readme-complicated.md')); + @test async "complicated configuration scenario"() { + const autoRest = new AutoRest(new RealFileSystem(), ResolveUri(CreateFolderUri(__dirname), "../../test/resources/literate-example/readme-complicated.md")); // PumpMessagesToConsole(autoRest); autoRest.AddConfiguration({ - 'cmd-line-true': true, - 'cmd-line-false': false, - 'cmd-line-complex': { - 'true': true, - 'false': false + "cmd-line-true": true, + "cmd-line-false": false, + "cmd-line-complex": { + "true": true, + "false": false } }); const config = await autoRest.view; assert.strictEqual(config.InputFileUris.length, 1); - const messages: Array = []; + const messages: Message[] = []; autoRest.Message.Subscribe((_, m) => { if (m.Channel === Channel.Warning) { messages.push(m); } }); assert.equal(await autoRest.Process().finish, true); assert.notEqual(messages.length, 0); } - // testing end-to-end for non-arm type validation rules. Since all validation rules are currently defaulted to + // testing end-to-end for non-arm type validation rules. Since all validation rules are currently defaulted to // ARM, non-ARM documents should show 0 validation messages // TODO: fix this test when validation rules are properly categorized - @test async 'non-arm type spec testing'() { - const autoRest = new AutoRest(new RealFileSystem(), ResolveUri(CreateFolderUri(__dirname), '../../test/resources/validation-options/readme.md')); + @test async "non-arm type spec testing"() { + const autoRest = new AutoRest(new RealFileSystem(), ResolveUri(CreateFolderUri(__dirname), "../../test/resources/validation-options/readme.md")); autoRest.AddConfiguration({ - 'openapi-type': 'default', - 'azure-validator': true + "openapi-type": "default", + "azure-validator": true }); const config = await autoRest.view; - const messages: Array = []; + const messages: Message[] = []; autoRest.Message.Subscribe((_, m) => { messages.push(m); }); assert.equal(await autoRest.Process().finish, true); @@ -92,16 +93,16 @@ import { PumpMessagesToConsole } from './test-utility'; // flag any fatal errors assert.equal(messages.filter(m => m.Channel === Channel.Fatal).length, 0); } - @test async 'arm type spec testing'() { - const autoRest = new AutoRest(new RealFileSystem(), ResolveUri(CreateFolderUri(__dirname), '../../test/resources/validation-options/readme.md')); + @test async "arm type spec testing"() { + const autoRest = new AutoRest(new RealFileSystem(), ResolveUri(CreateFolderUri(__dirname), "../../test/resources/validation-options/readme.md")); autoRest.AddConfiguration({ - 'openapi-type': 'arm', - 'azure-validator': true + "openapi-type": "arm", + "azure-validator": true }); const config = await autoRest.view; - const messages: Array = []; + const messages: Message[] = []; autoRest.Message.Subscribe((_, m) => { messages.push(m); }); // PumpMessagesToConsole(autoRest); @@ -110,4 +111,4 @@ import { PumpMessagesToConsole } from './test-utility'; assert.equal(messages.filter(m => m.Channel === Channel.Fatal).length, 0); assert.notEqual(messages.length, 0); } -} +} \ No newline at end of file diff --git a/src/autorest-core/test/eventing.ts b/src/autorest-core/test/eventing.ts index 9497bd2e13..cfaebc0667 100644 --- a/src/autorest-core/test/eventing.ts +++ b/src/autorest-core/test/eventing.ts @@ -4,7 +4,7 @@ import { IEvent, EventEmitter } from "../lib/events"; export class MyClass extends EventEmitter { - @EventEmitter.Event public Debug!: IEvent; + @EventEmitter.Event public Debug: IEvent; public go() { this.Debug.Dispatch("Hello"); diff --git a/src/autorest-core/test/object-manipulator.ts b/src/autorest-core/test/object-manipulator.ts index 2aa9eb7e7a..028bf47765 100644 --- a/src/autorest-core/test/object-manipulator.ts +++ b/src/autorest-core/test/object-manipulator.ts @@ -2,11 +2,11 @@ * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. *--------------------------------------------------------------------------------------------*/ -import * as assert from "assert"; -import { only, skip, slow, suite, test, timeout } from "mocha-typescript"; +import { safeEval } from "../lib/ref/safe-eval"; import { DataStore } from "../lib/data-store/data-store"; import { ManipulateObject } from "../lib/pipeline/object-manipulator"; -import { safeEval } from "../lib/ref/safe-eval"; +import { suite, test, slow, timeout, skip, only } from "mocha-typescript"; +import * as assert from "assert"; @suite class ObjectManipulator { @@ -34,60 +34,60 @@ definitions: child: "$ref": "#/definitions/NodeB"`; - @test async 'any hit'() { + @test async "any hit"() { // setup const dataStore = new DataStore(); - const input = await dataStore.WriteData('mem://input.yaml', this.exampleObject, 'input-file'); + const input = await dataStore.WriteData("mem://input.yaml", this.exampleObject, "input-file"); const expectHit = async (jsonQuery: string, anyHit: boolean) => { const result = await ManipulateObject(input, dataStore.getDataSink(), jsonQuery, (_, x) => x); assert.strictEqual(result.anyHit, anyHit, jsonQuery); }; - await expectHit('$..post', false); - await expectHit('$..get', true); - await expectHit('$.parameters', false); - await expectHit('$.definitions', true); - await expectHit('$..summary', false); - await expectHit('$..description', true); - await expectHit('$.definitions[?(@.summary)]', false); - await expectHit('$.definitions[?(@.description)]', true); - await expectHit('$.definitions[?(@.description=="Descriptio")]', false); - await expectHit('$.definitions[?(@.description=="Description")]', true); - await expectHit('$..[?(@.description=="Descriptio")]', false); - await expectHit('$..[?(@.description=="Description")]', true); + await expectHit("$..post", false); + await expectHit("$..get", true); + await expectHit("$.parameters", false); + await expectHit("$.definitions", true); + await expectHit("$..summary", false); + await expectHit("$..description", true); + await expectHit("$.definitions[?(@.summary)]", false); + await expectHit("$.definitions[?(@.description)]", true); + await expectHit("$.definitions[?(@.description==\"Descriptio\")]", false); + await expectHit("$.definitions[?(@.description==\"Description\")]", true); + await expectHit("$..[?(@.description==\"Descriptio\")]", false); + await expectHit("$..[?(@.description==\"Description\")]", true); } - @test async 'removal'() { + @test async "removal"() { // setup const dataStore = new DataStore(); - const input = await dataStore.WriteData('mem://input.yaml', this.exampleObject, 'input-file'); + const input = await dataStore.WriteData("mem://input.yaml", this.exampleObject, "input-file"); // remove all models that don't have a description - const result = await ManipulateObject(input, dataStore.getDataSink(), '$.definitions[?(!@.description)]', (_, x) => undefined); + const result = await ManipulateObject(input, dataStore.getDataSink(), "$.definitions[?(!@.description)]", (_, x) => undefined); assert.strictEqual(result.anyHit, true); const resultRaw = result.result.ReadData(); - assert.ok(resultRaw.indexOf('NodeA') !== -1); - assert.ok(resultRaw.indexOf('NodeB') === -1); + assert.ok(resultRaw.indexOf("NodeA") !== -1); + assert.ok(resultRaw.indexOf("NodeB") === -1); } - @test async 'update'() { + @test async "update"() { // setup const dataStore = new DataStore(); - const input = await dataStore.WriteData('mem://input.yaml', this.exampleObject, 'input-file'); + const input = await dataStore.WriteData("mem://input.yaml", this.exampleObject, "input-file"); { // override all existing model descriptions - const bestDescriptionEver = 'best description ever'; - const result = await ManipulateObject(input, dataStore.getDataSink(), '$.definitions.*.description', (_, x) => bestDescriptionEver); + const bestDescriptionEver = "best description ever"; + const result = await ManipulateObject(input, dataStore.getDataSink(), "$.definitions.*.description", (_, x) => bestDescriptionEver); assert.strictEqual(result.anyHit, true); const resultObject = result.result.ReadObject(); assert.strictEqual(resultObject.definitions.NodeA.description, bestDescriptionEver); } { // override & insert all model descriptions - const bestDescriptionEver = 'best description ever'; - const result = await ManipulateObject(input, dataStore.getDataSink(), '$.definitions.*', (_, x) => { x.description = bestDescriptionEver; return x; }); + const bestDescriptionEver = "best description ever"; + const result = await ManipulateObject(input, dataStore.getDataSink(), "$.definitions.*", (_, x) => { x.description = bestDescriptionEver; return x; }); assert.strictEqual(result.anyHit, true); const resultObject = result.result.ReadObject(); assert.strictEqual(resultObject.definitions.NodeA.description, bestDescriptionEver); @@ -95,21 +95,21 @@ definitions: } { // make all descriptions upper case - const bestDescriptionEver = 'best description ever'; - const result = await ManipulateObject(input, dataStore.getDataSink(), '$..description', (_, x) => (x as string).toUpperCase()); + const bestDescriptionEver = "best description ever"; + const result = await ManipulateObject(input, dataStore.getDataSink(), "$..description", (_, x) => (x as string).toUpperCase()); assert.strictEqual(result.anyHit, true); const resultObject = result.result.ReadObject(); - assert.strictEqual(resultObject.definitions.NodeA.description, 'DESCRIPTION'); - assert.strictEqual(resultObject.paths['/api/circular'].get.description, 'FUN TIME'); + assert.strictEqual(resultObject.definitions.NodeA.description, "DESCRIPTION"); + assert.strictEqual(resultObject.paths["/api/circular"].get.description, "FUN TIME"); } { // make all descriptions upper case by using safe-eval - const bestDescriptionEver = 'best description ever'; - const result = await ManipulateObject(input, dataStore.getDataSink(), '$..description', (_, x) => safeEval('$.toUpperCase()', { $: x })); + const bestDescriptionEver = "best description ever"; + const result = await ManipulateObject(input, dataStore.getDataSink(), "$..description", (_, x) => safeEval("$.toUpperCase()", { $: x })); assert.strictEqual(result.anyHit, true); const resultObject = result.result.ReadObject(); - assert.strictEqual(resultObject.definitions.NodeA.description, 'DESCRIPTION'); - assert.strictEqual(resultObject.paths['/api/circular'].get.description, 'FUN TIME'); + assert.strictEqual(resultObject.definitions.NodeA.description, "DESCRIPTION"); + assert.strictEqual(resultObject.paths["/api/circular"].get.description, "FUN TIME"); } } -} +} \ No newline at end of file diff --git a/src/autorest-core/test/plugin.ts b/src/autorest-core/test/plugin.ts index 29b1a713da..4372faa69e 100644 --- a/src/autorest-core/test/plugin.ts +++ b/src/autorest-core/test/plugin.ts @@ -2,26 +2,26 @@ * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. *--------------------------------------------------------------------------------------------*/ +import { suite, test, slow, timeout, skip, only } from "mocha-typescript"; import * as assert from 'assert'; -import { only, skip, slow, suite, test, timeout } from "mocha-typescript"; import { PumpMessagesToConsole } from './test-utility'; import { Extension, ExtensionManager } from "@microsoft.azure/extension"; -import { homedir } from "os"; -import { join } from "path"; -import { AutoRest } from "../lib/autorest-core"; -import { DataHandle, DataStore, QuickDataSource } from '../lib/data-store/data-store'; import { RealFileSystem } from "../lib/file-system"; -import { Channel, Message } from "../lib/message"; -import { AutoRestExtension } from "../lib/pipeline/plugin-endpoint"; -import { LoadLiterateSwagger } from "../lib/pipeline/swagger-loader"; +import { AutoRest } from "../lib/autorest-core"; import { CancellationToken } from "../lib/ref/cancellation"; import { CreateFolderUri, ResolveUri } from "../lib/ref/uri"; +import { Message, Channel } from "../lib/message"; +import { AutoRestExtension } from "../lib/pipeline/plugin-endpoint"; +import { DataHandle, DataStore, QuickDataSource } from '../lib/data-store/data-store'; +import { LoadLiterateSwagger } from "../lib/pipeline/swagger-loader"; +import { homedir } from "os"; +import { join } from "path"; async function GetAutoRestDotNetPlugin(plugin: string): Promise { - const extMgr = await ExtensionManager.Create(join(homedir(), '.autorest')); - const name = '@microsoft.azure/' + plugin; - const source = '*'; + const extMgr = await ExtensionManager.Create(join(homedir(), ".autorest")); + const name = "@microsoft.azure/" + plugin; + const source = "*"; const pack = await extMgr.findPackage(name, source); const ext = await extMgr.installPackage(pack); return AutoRestExtension.FromChildProcess(name, await ext.start()); @@ -29,14 +29,14 @@ async function GetAutoRestDotNetPlugin(plugin: string): Promise = []; + const errorMessages: Message[] = []; autoRest.Message.Subscribe((_, m) => { if (m.Channel === Channel.Error) { errorMessages.push(m); @@ -50,22 +50,22 @@ async function GetAutoRestDotNetPlugin(plugin: string): Promiseawait LoadLiterateSwagger( + const swagger = await LoadLiterateSwagger( config, dataStore.GetReadThroughScope(new RealFileSystem()), - 'https://github.com/Azure/azure-rest-api-specs/blob/fa91f9109c1e9107bb92027924ec2983b067f5ec/arm-network/2016-12-01/swagger/network.json', + "https://github.com/Azure/azure-rest-api-specs/blob/fa91f9109c1e9107bb92027924ec2983b067f5ec/arm-network/2016-12-01/swagger/network.json", dataStore.getDataSink()); // call modeler - const autorestPlugin = await GetAutoRestDotNetPlugin('modeler'); - const results: Array = []; - const result = await autorestPlugin.Process('modeler', key => ({ namespace: "SomeNamespace" } as any)[key], config, new QuickDataSource([swagger]), dataStore.getDataSink(), f => results.push(f), m => null, CancellationToken.None); + const autorestPlugin = await GetAutoRestDotNetPlugin("modeler"); + const results: DataHandle[] = []; + const result = await autorestPlugin.Process("modeler", key => { return ({ namespace: "SomeNamespace" } as any)[key]; }, config, new QuickDataSource([swagger]), dataStore.getDataSink(), f => results.push(f), m => null, CancellationToken.None); assert.strictEqual(result, true); if (results.length !== 1) { throw new Error(`Modeler plugin produced '${results.length}' items. Only expected one (the code model).`); @@ -73,56 +73,56 @@ async function GetAutoRestDotNetPlugin(plugin: string): Promiseawait LoadLiterateSwagger( + const swagger = await LoadLiterateSwagger( config, dataStore.GetReadThroughScope(new RealFileSystem()), - 'https://github.com/Azure/azure-rest-api-specs/blob/fa91f9109c1e9107bb92027924ec2983b067f5ec/arm-network/2016-12-01/swagger/network.json', + "https://github.com/Azure/azure-rest-api-specs/blob/fa91f9109c1e9107bb92027924ec2983b067f5ec/arm-network/2016-12-01/swagger/network.json", dataStore.getDataSink()); // load code model - const codeModelUri = ResolveUri(CreateFolderUri(__dirname), '../../test/resources/code-model.yaml'); + const codeModelUri = ResolveUri(CreateFolderUri(__dirname), "../../test/resources/code-model.yaml"); const inputScope = dataStore.GetReadThroughScope(new RealFileSystem()); const codeModelHandle = await inputScope.ReadStrict(codeModelUri); // call generator - const autorestPlugin = await GetAutoRestDotNetPlugin('csharp'); - const results: Array = []; + const autorestPlugin = await GetAutoRestDotNetPlugin("csharp"); + const results: DataHandle[] = []; const result = await autorestPlugin.Process( - 'csharp', + "csharp", key => config.GetEntry(key as any), config, new QuickDataSource([swagger, codeModelHandle]), dataStore.getDataSink(), f => results.push(f), - m => { if (m.Channel === Channel.Fatal) { console.log(m.Text); } }, + m => { if (m.Channel === Channel.Fatal) console.log(m.Text); }, CancellationToken.None); assert.strictEqual(result, true); // check results assert.notEqual(results.length, 0); - assert.notEqual(results.filter(file => file.Description.indexOf('Models/') !== -1).length, 0); - assert.ok(results.every(file => file.Description.indexOf('.cs') !== -1)); + assert.notEqual(results.filter(file => file.Description.indexOf("Models/") !== -1).length, 0); + assert.ok(results.every(file => file.Description.indexOf(".cs") !== -1)); console.log(results); } // SKIPPING because this is using a local path for now - @test @skip async 'custom plugin module'() { + @test @skip async "custom plugin module"() { /* const cancellationToken = CancellationToken.None; const dataStore = new DataStore(cancellationToken); @@ -146,4 +146,4 @@ async function GetAutoRestDotNetPlugin(plugin: string): Promiseawait LoadLiterateSwagger( + const swaggerFile = await LoadLiterateSwagger( config, dataStore.GetReadThroughScope(new RealFileSystem()), "https://raw.githubusercontent.com/Azure/azure-rest-api-specs/087554c4480e144f715fe92f97621ff5603cd907/specification/network/resource-manager/Microsoft.Network/2016-12-01/applicationGateway.json", diff --git a/src/autorest-core/tsconfig.json b/src/autorest-core/tsconfig.json index 5bf687af5d..b31294a820 100644 --- a/src/autorest-core/tsconfig.json +++ b/src/autorest-core/tsconfig.json @@ -5,7 +5,7 @@ "forceConsistentCasingInFileNames": false, "module": "commonjs", "noEmitOnError": true, - "noImplicitAny": false, + "noImplicitAny": true, "noImplicitReturns": true, "noImplicitThis": true, "sourceMap": true, @@ -18,7 +18,7 @@ "mocha" ], "lib": [ - "es2017" + "esnext" ], "experimentalDecorators": true, "newLine": "LF", diff --git a/src/autorest/app.ts b/src/autorest/app.ts index f70a4a8e3b..2447733fd5 100644 --- a/src/autorest/app.ts +++ b/src/autorest/app.ts @@ -1,7 +1,7 @@ #!/usr/bin/env node // load modules from static linker filesystem. -if (process.argv.indexOf('--no-static-loader') === -1 && process.env['no-static-loader'] === undefined) { - require('./static-loader.js').load(`${__dirname}/static_modules.fs`); +if (process.argv.indexOf("--no-static-loader") === -1 && process.env["no-static-loader"] === undefined) { + require('./static-loader.js').load(`${__dirname}/static_modules.fs`) } /*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. @@ -14,48 +14,49 @@ const cwd = process.cwd(); // https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/padEnd if (!String.prototype.padEnd) { String.prototype.padEnd = function padEnd(targetLength, padString) { - targetLength = targetLength >> 0; // floor if number or convert non-number to 0; + targetLength = targetLength >> 0; //floor if number or convert non-number to 0; padString = String(padString || ' '); if (this.length > targetLength) { return String(this); - } else { + } + else { targetLength = targetLength - this.length; if (targetLength > padString.length) { - padString += padString.repeat(targetLength / padString.length); // append to original to ensure we are longer than needed + padString += padString.repeat(targetLength / padString.length); //append to original to ensure we are longer than needed } return String(this) + padString.slice(0, targetLength); } }; } -import { isFile } from '@microsoft.azure/async-io'; -import { Exception, LazyPromise } from '@microsoft.azure/tasks'; -import chalk from 'chalk' -import { join } from 'path'; -import { gt } from 'semver'; -import { availableVersions, corePackage, ensureAutorestHome, extensionManager, installedCores, networkEnabled, pkgVersion, resolvePathForLocalVersion, rootFolder, selectVersion, tryRequire } from './autorest-as-a-service' -import { color } from './coloring' +import { isFile } from "@microsoft.azure/async-io"; +import { Exception, LazyPromise } from "@microsoft.azure/tasks"; +import { networkEnabled, rootFolder, extensionManager, availableVersions, corePackage, installedCores, tryRequire, resolvePathForLocalVersion, ensureAutorestHome, selectVersion, pkgVersion } from "./autorest-as-a-service" +import { gt } from "semver"; +import { join } from "path"; +import { color } from "./coloring" +import chalk from "chalk" // aliases, round one. -if (process.argv.indexOf('--no-upgrade-check') != -1) { - process.argv.push('--skip-upgrade-check'); +if (process.argv.indexOf("--no-upgrade-check") != -1) { + process.argv.push("--skip-upgrade-check"); } -if (process.argv.indexOf('--json') !== -1) { - process.argv.push('--message-format=json'); +if (process.argv.indexOf("--json") !== -1) { + process.argv.push("--message-format=json"); } -if (process.argv.indexOf('--yaml') !== -1) { - process.argv.push('--message-format=yaml'); +if (process.argv.indexOf("--yaml") !== -1) { + process.argv.push("--message-format=yaml"); } -function parseArgs(autorestArgs: Array): any { +function parseArgs(autorestArgs: string[]): any { const result: any = {}; for (const arg of autorestArgs) { const match = /^--([^=:]+)([=:](.+))?$/g.exec(arg); if (match) { const key = match[1]; - let rawValue = match[3] || 'true'; + let rawValue = match[3] || "true"; if (rawValue.startsWith('.')) { // starts with a . or .. -> this is a relative path to current directory rawValue = join(cwd, rawValue); @@ -65,7 +66,7 @@ function parseArgs(autorestArgs: Array): any { try { value = JSON.parse(rawValue); // restrict allowed types (because with great type selection comes great responsibility) - if (typeof value !== 'string' && typeof value !== 'boolean') { + if (typeof value !== "string" && typeof value !== "boolean") { value = rawValue; } } catch (e) { @@ -81,11 +82,11 @@ const args = parseArgs(process.argv); (global).__args = args; // aliases -args['info'] = args['info'] || args['list-installed']; -args['preview'] = args['preview'] || args['prerelease']; +args["info"] = args["info"] || args["list-installed"]; +args["preview"] = args["preview"] || args["prerelease"]; // Suppress the banner if the message-format is set to something other than regular. -if ((!args['message-format']) || args['message-format'] === 'regular') { +if ((!args["message-format"]) || args["message-format"] === "regular") { console.log(chalk.green.bold.underline(`AutoRest code generation utility [version: ${chalk.white.bold(pkgVersion)}; node: ${chalk.white.bold(process.version)}]`)); console.log(color(`(C) 2018 **Microsoft Corporation.**`)); console.log(chalk.blue.bold.underline(`https://aka.ms/autorest`)); @@ -93,17 +94,17 @@ if ((!args['message-format']) || args['message-format'] === 'regular') { // argument tweakin' const preview: boolean = args.preview; -args.info = (args.version === '' || args.version === true) || args.info; // show --info if they use unparameterized --version. -const listAvailable: boolean = args['list-available'] || false; -const force = args.force || false; +args.info = (args.version === "" || args.version === true) || args.info; // show --info if they use unparameterized --version. +const listAvailable: boolean = args["list-available"] || false; +let force = args.force || false; /** Check if there is an update for the bootstrapper available. */ const checkBootstrapper = new LazyPromise(async () => { if (await networkEnabled && !args['skip-upgrade-check']) { try { - const pkg = await (await extensionManager).findPackage('autorest', preview ? 'preview' : 'latest'); + const pkg = await (await extensionManager).findPackage("autorest", preview ? "preview" : "latest"); if (gt(pkg.version, pkgVersion)) { - console.log(color(`\n## There is a new version of AutoRest available (${pkg.version}).\n > You can install the newer version with with \`npm install -g autorest@${preview ? 'preview' : 'latest'}\`\n`)); + console.log(color(`\n## There is a new version of AutoRest available (${pkg.version}).\n > You can install the newer version with with \`npm install -g autorest@${preview ? "preview" : "latest"}\`\n`)); } } catch (e) { // no message then. @@ -113,7 +114,7 @@ const checkBootstrapper = new LazyPromise(async () => { /** Shows the valid available autorest core packages. */ async function showAvailableCores(): Promise { - let table = ''; + let table = ""; let max = 10; const cores = await availableVersions(); for (const v of cores) { @@ -124,7 +125,7 @@ async function showAvailableCores(): Promise { } } if (args.json) { - console.log(JSON.stringify(cores, null, ' ')); + console.log(JSON.stringify(cores, null, " ")); } else { if (table) { console.log(`${chalk.green.bold.underline(' Extension Name'.padEnd(30, ' '))} ${chalk.green.bold.underline('Version'.padEnd(14, ' '))}\n${table}`); @@ -136,20 +137,20 @@ async function showAvailableCores(): Promise { /** Shows all the autorest extensions that are installed. */ async function showInstalledExtensions(): Promise { const extensions = await (await extensionManager).getInstalledExtensions(); - let table = ''; + let table = ""; if (extensions.length > 0) { for (const extension of extensions) { - table += `\n ${chalk.cyan((extension.name === corePackage ? 'core' : 'extension').padEnd(10))} ${chalk.cyan.bold(extension.name.padEnd(40))} ${chalk.cyan(extension.version.padEnd(12))} ${chalk.cyan(extension.location)}`; + table += `\n ${chalk.cyan((extension.name === corePackage ? "core" : "extension").padEnd(10))} ${chalk.cyan.bold(extension.name.padEnd(40))} ${chalk.cyan(extension.version.padEnd(12))} ${chalk.cyan(extension.location)}`; } } if (args.json) { - console.log(JSON.stringify(extensions, null, ' ')); + console.log(JSON.stringify(extensions, null, " ")); } else { if (table) { console.log(color(`\n\n# Showing All Installed Extensions\n\n ${chalk.underline('Type'.padEnd(10))} ${chalk.underline('Extension Name'.padEnd(40))} ${chalk.underline('Version'.padEnd(12))} ${chalk.underline('Location')} ${table}\n\n`)); } else { - console.log(color('\n\n# Showing All Installed Extensions\n\n > No Extensions are currently installed.\n\n')); + console.log(color("\n\n# Showing All Installed Extensions\n\n > No Extensions are currently installed.\n\n")); } } return 0; @@ -172,8 +173,8 @@ async function main() { /* make sure we have a .autorest folder */ await ensureAutorestHome(); - // if we have an autorest home folder, --reset may mean something. - // if it's not there, --reset won't do anything. + // if we have an autorest home folder, --reset may mean something. + // if it's not there, --reset won't do anything. if (args.reset) { if (args.debug) { console.log(`Resetting autorest extension folder '${rootFolder}'`); @@ -181,22 +182,23 @@ async function main() { try { await (await extensionManager).reset(); } catch (e) { - console.log(color('\n\n## The AutoRest extension folder appears to be locked.\nDo you have a process that is currently using AutoRest (perhaps the vscode extension?).\n\nUnable to reset the extension folder, exiting.')); + console.log(color("\n\n## The AutoRest extension folder appears to be locked.\nDo you have a process that is currently using AutoRest (perhaps the vscode extension?).\n\nUnable to reset the extension folder, exiting.")); process.exit(10); } } - } catch { + } + catch { // We have a chance to fail again later if this proves problematic. } - let requestedVersion: string = args.version || (args.latest && 'latest') || (args.preview && 'preview') || 'latest-installed'; + let requestedVersion: string = args.version || (args.latest && "latest") || (args.preview && "preview") || "latest-installed"; // check to see if local installed core is available. const localVersion = resolvePathForLocalVersion(args.version ? requestedVersion : null); // try to use a specified folder or one in node_modules if it is there. process.chdir(cwd); - if (await tryRequire(localVersion, 'app.js')) { + if (await tryRequire(localVersion, "app.js")) { return; } @@ -219,7 +221,7 @@ async function main() { // logic to resolve and optionally install a autorest core package. // will throw if it's not doable. - const selectedVersion = await selectVersion(requestedVersion, force); + let selectedVersion = await selectVersion(requestedVersion, force); // let's strip the extra stuff from the command line before we require the core module. const oldArgs = process.argv; @@ -227,7 +229,7 @@ async function main() { for (const each of process.argv) { let keep = true; - for (const discard of ['--version', '--list-installed', '--list-available', '--reset', '--latest', '--latest-release', '--runtime-id']) { + for (const discard of ["--version", "--list-installed", "--list-available", "--reset", "--latest", "--latest-release", "--runtime-id"]) { if (each === discard || each.startsWith(`${discard}=`) || each.startsWith(`${discard}:`)) { keep = false; } @@ -242,19 +244,19 @@ async function main() { // this is a valid scenario for "preparation calls" to autorest like `autorest --reset` or `autorest --latest` if (args.reset || args.latest || args.version == 'latest') { // if there is *any* other argument left, that's an indicator that the core is supposed to do something - process.argv.push('--allow-no-input'); + process.argv.push("--allow-no-input"); } if (args.debug) { console.log(`Starting ${corePackage} from ${await selectedVersion.location}`); } process.chdir(cwd); - const result = await tryRequire(await selectedVersion.modulePath, 'app.js'); + const result = await tryRequire(await selectedVersion.modulePath, "app.js"); if (!result) { throw new Error(`Unable to start AutoRest Core from ${await selectedVersion.modulePath}`); } } catch (exception) { - console.log(chalk.redBright('Failure:')); + console.log(chalk.redBright("Failure:")); console.error(chalk.bold(exception)); console.error(chalk.bold((exception).stack)); process.exit(1); diff --git a/src/autorest/autorest-as-a-service.ts b/src/autorest/autorest-as-a-service.ts index 9a12afa303..9fc907fa39 100644 --- a/src/autorest/autorest-as-a-service.ts +++ b/src/autorest/autorest-as-a-service.ts @@ -74,10 +74,8 @@ export function resolvePathForLocalVersion(requestedVersion: string | null): str export async function tryRequire(localPath: string | null, entrypoint: string): Promise { try { - return require(await resolveEntrypoint(localPath, entrypoint)); - } catch (E) { - console.log(E); - } + return require(await resolveEntrypoint(localPath, entrypoint)) + } catch{ } return null; } diff --git a/src/autorest/interfaces/autorest-core.d.ts b/src/autorest/interfaces/autorest-core.d.ts index b88c75fa92..2479610b09 100644 --- a/src/autorest/interfaces/autorest-core.d.ts +++ b/src/autorest/interfaces/autorest-core.d.ts @@ -1,75 +1,10 @@ /// -declare module 'autorest-core/help' { -export interface Help { - categoryFriendlyName: string; - activationScope?: string; - description?: string; - settings: SettingHelp[]; -} -export interface SettingHelp { - required?: boolean; - key: string; - type?: string; - description: string; -} - -} -declare module 'autorest-core/lib/ref/async' { -/// -export function mkdir(path: string | Buffer): Promise; -export const exists: (path: string | Buffer) => Promise; -export function readdir(path: string): Promise>; -export function close(fd: number): Promise; -export function readFile(path: string, options?: { - encoding?: string | null; - flag?: string; -}): Promise; -export function writeFile(filename: string, content: string): Promise; - +declare module 'autorest-core/lib/artifact' { +export interface Artifact { + uri: string; + type: string; + content: string; } -declare module 'autorest-core/lib/ref/uri' { -export function IsUri(uri: string): boolean; -/** - * Loads a UTF8 string from given URI. - */ -export function ReadUri(uri: string, headers?: { - [key: string]: string; -}): Promise; -export function ExistsUri(uri: string): Promise; -/** - * Create a 'file:///' URI from given absolute path. - * Examples: - * - "C:\swagger\storage.yaml" -> "file:///C:/swagger/storage.yaml" - * - "/input/swagger.yaml" -> "file:///input/swagger.yaml" - */ -export function CreateFileOrFolderUri(absolutePath: string): string; -export function CreateFileUri(absolutePath: string): string; -export function CreateFolderUri(absolutePath: string): string; -export function EnsureIsFolderUri(uri: string): string; -export function EnsureIsFileUri(uri: string): string; -export function GetFilename(uri: string): string; -export function GetFilenameWithoutExtension(uri: string): string; -export function ToRawDataUrl(uri: string): string; -/** - * The singularity of all resolving. - * With URI as our one data type of truth, this method maps an absolute or relative path or URI to a URI using given base URI. - * @param baseUri Absolute base URI - * @param pathOrUri Relative/absolute path/URI - * @returns Absolute URI - */ -export function ResolveUri(baseUri: string, pathOrUri: string): string; -export function ParentFolderUri(uri: string): string | null; -export function MakeRelativeUri(baseUri: string, absoluteUri: string): string; -export function EnumerateFiles(folderUri: string, probeFiles?: string[]): Promise; -/** - * Writes string to local file system. - * @param fileUri Target file uri. - * @param data String to write (encoding: UTF8). - */ -export function WriteString(fileUri: string, data: string): Promise; -export function ClearFolder(folderUri: string): Promise; -export function FileUriToPath(fileUri: string): string; -export function GetExtension(name: string): string; } declare module 'autorest-core/lib/ref/safe-eval' { @@ -92,61 +27,14 @@ export function CreateObject(jsonPath: JsonPath, leafObject: any): any; export function matches(jsonQuery: string, jsonPath: JsonPath): boolean; export function parseJsonPointer(jsonPointer: string): JsonPath; -} -declare module 'autorest-core/lib/artifact' { -export interface Artifact { - uri: string; - type: string; - content: string; -} - } declare module 'autorest-core/lib/constants' { export const MagicString: string; export const DefaultConfiguration: string; } -declare module 'autorest-core/lib/events' { -/// -import * as events from "events"; -export interface IEvent { - Subscribe(fn: (sender: TSender, args: TArgs) => void): () => void; - Unsubscribe(fn: (sender: TSender, args: TArgs) => void): void; - Dispatch(args: TArgs): void; -} -export class EventDispatcher implements IEvent { - private _instance; - private _name; - private _subscriptions; - constructor(instance: TSender, name: string); - UnsubscribeAll(): void; - Subscribe(fn: (sender: TSender, args: TArgs) => void): () => void; - Unsubscribe(fn: (sender: TSender, args: TArgs) => void): void; - Dispatch(args: TArgs): void; -} -export class EventEmitter extends events.EventEmitter { - private _subscriptions; - constructor(); - protected static Event(target: TSender, propertyKey: string): void; - protected _init(t: EventEmitter): void; -} - -} -declare module 'autorest-core/lib/exception' { -export class Exception extends Error { - exitCode: number; - constructor(message: string, exitCode?: number); -} -export class OperationCanceledException extends Exception { - exitCode: number; - constructor(message?: string, exitCode?: number); -} -export class OutstandingTaskAlreadyCompletedException extends Exception { - constructor(); -} -export class OperationAbortedException extends Exception { - constructor(); -} +declare module 'autorest-core/lib/ref/array' { +export function pushAll(target: T[], source: T[]): void; } declare module 'autorest-core/lib/ref/source-map' { @@ -198,7 +86,6 @@ export enum Channel { File, /** content represents an update/creation of a configuration file. The final uri will be in the same folder as the primary config file. */ Configuration, - Control } export interface SourceLocation { document: string; @@ -226,36 +113,78 @@ export interface ArtifactMessage extends Message { } } -declare module 'autorest-core/lib/ref/linq' { -export {}; +declare module 'autorest-core/lib/ref/async' { +/// +export function mkdir(path: string | Buffer): Promise; +export const exists: (path: string | Buffer) => Promise; +export function readdir(path: string): Promise>; +export function close(fd: number): Promise; +export function readFile(path: string, options?: { + encoding?: string | null; + flag?: string; +}): Promise; +export function writeFile(filename: string, content: string): Promise; } -declare module 'autorest-core/lib/file-system' { -export interface IFileSystem { - EnumerateFileUris(folderUri: string): Promise>; - ReadFile(uri: string): Promise; +declare module 'autorest-core/lib/ref/uri' { +export function IsUri(uri: string): boolean; +/** + * Loads a UTF8 string from given URI. + */ +export function ReadUri(uri: string, headers?: { + [key: string]: string; +}): Promise; +export function ExistsUri(uri: string): Promise; +/** + * Create a 'file:///' URI from given absolute path. + * Examples: + * - "C:\swagger\storage.yaml" -> "file:///C:/swagger/storage.yaml" + * - "/input/swagger.yaml" -> "file:///input/swagger.yaml" + */ +export function CreateFileOrFolderUri(absolutePath: string): string; +export function CreateFileUri(absolutePath: string): string; +export function CreateFolderUri(absolutePath: string): string; +export function EnsureIsFolderUri(uri: string): string; +export function EnsureIsFileUri(uri: string): string; +export function GetFilename(uri: string): string; +export function GetFilenameWithoutExtension(uri: string): string; +export function ToRawDataUrl(uri: string): string; +/** + * The singularity of all resolving. + * With URI as our one data type of truth, this method maps an absolute or relative path or URI to a URI using given base URI. + * @param baseUri Absolute base URI + * @param pathOrUri Relative/absolute path/URI + * @returns Absolute URI + */ +export function ResolveUri(baseUri: string, pathOrUri: string): string; +export function ParentFolderUri(uri: string): string | null; +export function MakeRelativeUri(baseUri: string, absoluteUri: string): string; +export function EnumerateFiles(folderUri: string, probeFiles?: string[]): Promise; +/** + * Writes string to local file system. + * @param fileUri Target file uri. + * @param data String to write (encoding: UTF8). + */ +export function WriteString(fileUri: string, data: string): Promise; +export function ClearFolder(folderUri: string): Promise; +export function FileUriToPath(fileUri: string): string; +export function GetExtension(name: string): string; + } -export class MemoryFileSystem implements IFileSystem { - static readonly DefaultVirtualRootUri: string; - private filesByUri; - constructor(files: Map); - readonly Outputs: Map; - ReadFile(uri: string): Promise; - EnumerateFileUris(folderUri?: string): Promise>; - WriteFile(uri: string, content: string): Promise; +declare module 'autorest-core/lib/exception' { +export class Exception extends Error { + exitCode: number; + constructor(message: string, exitCode?: number); } -export class RealFileSystem implements IFileSystem { +export class OperationCanceledException extends Exception { + exitCode: number; + constructor(message?: string, exitCode?: number); +} +export class OutstandingTaskAlreadyCompletedException extends Exception { constructor(); - EnumerateFileUris(folderUri: string): Promise; - ReadFile(uri: string): Promise; - WriteFile(uri: string, content: string): Promise; } -export class EnhancedFileSystem implements IFileSystem { - private githubAuthToken?; - constructor(githubAuthToken?: string | undefined); - EnumerateFileUris(folderUri: string): Promise; - ReadFile(uri: string): Promise; - WriteFile(uri: string, content: string): Promise; +export class OperationAbortedException extends Exception { + constructor(); } } @@ -285,12 +214,30 @@ export class OutstandingTaskAwaiter { } } -declare module 'autorest-core/lib/ref/array' { -export function pushAll(target: T[], source: T[]): void; - +declare module 'autorest-core/lib/events' { +/// +import * as events from "events"; +export interface IEvent { + Subscribe(fn: (sender: TSender, args: TArgs) => void): () => void; + Unsubscribe(fn: (sender: TSender, args: TArgs) => void): void; + Dispatch(args: TArgs): void; +} +export class EventDispatcher implements IEvent { + private _instance; + private _name; + private _subscriptions; + constructor(instance: TSender, name: string); + UnsubscribeAll(): void; + Subscribe(fn: (sender: TSender, args: TArgs) => void): () => void; + Unsubscribe(fn: (sender: TSender, args: TArgs) => void): void; + Dispatch(args: TArgs): void; +} +export class EventEmitter extends events.EventEmitter { + private _subscriptions; + constructor(); + protected static Event(target: TSender, propertyKey: string): void; + protected _init(t: EventEmitter): void; } -declare module 'autorest-core/lib/ref/commonmark' { -export { Node, Parser } from "commonmark"; } declare module 'autorest-core/lib/ref/cancellation' { @@ -300,19 +247,48 @@ export { CancellationToken, CancellationTokenSource } from "vscode-jsonrpc"; declare module 'autorest-core/lib/ref/jsonrpc' { export * from "vscode-jsonrpc"; +} +declare module 'autorest-core/lib/file-system' { +export interface IFileSystem { + EnumerateFileUris(folderUri: string): Promise>; + ReadFile(uri: string): Promise; +} +export class MemoryFileSystem implements IFileSystem { + static readonly DefaultVirtualRootUri: string; + private filesByUri; + constructor(files: Map); + readonly Outputs: Map; + ReadFile(uri: string): Promise; + EnumerateFileUris(folderUri?: string): Promise>; + WriteFile(uri: string, content: string): Promise; +} +export class RealFileSystem implements IFileSystem { + constructor(); + EnumerateFileUris(folderUri: string): Promise; + ReadFile(uri: string): Promise; + WriteFile(uri: string, content: string): Promise; +} +export class EnhancedFileSystem implements IFileSystem { + private githubAuthToken; + constructor(githubAuthToken?: string | undefined); + EnumerateFileUris(folderUri: string): Promise; + ReadFile(uri: string): Promise; + WriteFile(uri: string, content: string): Promise; +} + } declare module 'autorest-core/lib/document-type' { export enum DocumentType { OpenAPI2, OpenAPI3, LiterateConfiguration, - Unknown + Unknown, } export enum DocumentFormat { Markdown, Yaml, Json, - Unknown + Unknown, } export const DocumentExtension: { "yaml": DocumentFormat; @@ -337,145 +313,32 @@ export { AutoRest, ConfigurationView, IdentifyDocument, IsConfigurationExtension export { DocumentFormat, DocumentExtension, DocumentPatterns, DocumentType } from 'autorest-core/lib/document-type'; } -declare module 'autorest-core/lib/configuration' { -import { Artifact } from 'autorest-core/lib/artifact'; -import { EventEmitter, IEvent } from 'autorest-core/lib/events'; -import { IFileSystem } from 'autorest-core/lib/file-system'; -import { Message } from 'autorest-core/lib/message'; -export interface AutoRestConfigurationImpl { - __info?: string | null; - 'allow-no-input'?: boolean; - 'input-file'?: Array | string; - 'base-folder'?: string; - 'directive'?: Array | Directive; - 'declare-directive'?: { - [name: string]: string; - }; - 'output-artifact'?: Array | string; - 'message-format'?: 'json' | 'yaml' | 'regular'; - 'use-extension'?: { - [extensionName: string]: string; - }; - 'require'?: Array | string; - 'try-require'?: Array | string; - 'help'?: any; - 'vscode'?: any; - 'override-info'?: any; - 'title'?: any; - 'description'?: any; - 'debug'?: boolean; - 'verbose'?: boolean; - 'output-file'?: string; - 'output-folder'?: string; - 'client-side-validation'?: boolean; - 'fluent'?: boolean; - 'azure-arm'?: boolean; - 'namespace'?: string; - 'license-header'?: string; - 'add-credentials'?: boolean; - 'package-name'?: string; - 'package-version'?: string; - 'sync-methods'?: 'all' | 'essential' | 'none'; - 'payload-flattening-threshold'?: number; - 'openapi-type'?: string; -} -export function MergeConfigurations(...configs: Array): AutoRestConfigurationImpl; -export interface Directive { - from?: Array | string; - where?: Array | string; - reason?: string; - suppress?: Array | string; - set?: Array | string; - transform?: Array | string; - test?: Array | string; -} -export class DirectiveView { - private directive; - constructor(directive: Directive); - readonly from: Iterable; - readonly where: Iterable; - readonly reason: string | null; - readonly suppress: Iterable; - readonly transform: Iterable; - readonly test: Iterable; -} -export class MessageEmitter extends EventEmitter { - /** - * Event: Signals when a File is generated - */ - GeneratedFile: IEvent; - /** - * Event: Signals when a Folder is supposed to be cleared - */ - ClearFolder: IEvent; - /** - * Event: Signals when a message is generated - */ - Message: IEvent; - private cancellationTokenSource; - constructor(); -} -export class ConfigurationView { - configurationFiles: { - [key: string]: any; - }; - fileSystem: IFileSystem; - messageEmitter: MessageEmitter; - configFileFolderUri: string; - [name: string]: any; - private suppressor; - readonly Keys: Array; - Dump(title?: string): void; - private config; - private rawConfig; - private ResolveAsFolder; - private ResolveAsPath; - private readonly BaseFolderUri; - readonly UseExtensions: Array<{ - name: string; - source: string; - fullyQualified: string; - }>; - IncludedConfigurationFiles(fileSystem: IFileSystem, ignoreFiles: Set): Promise>; - readonly Directives: Array; - readonly InputFileUris: Array; - readonly OutputFolderUri: string; - IsOutputArtifactRequested(artifact: string): boolean; - GetEntry(key: keyof AutoRestConfigurationImpl): any; - readonly Raw: AutoRestConfigurationImpl; - readonly DebugMode: boolean; - readonly VerboseMode: boolean; - readonly HelpRequested: boolean; - GetNestedConfiguration(pluginName: string): Iterable; - GetNestedConfigurationImmediate(...scope: Array): ConfigurationView; - Message(m: Message): void; +declare module 'autorest-core/lib/ref/commonmark' { +export { Node, Parser } from "commonmark"; + } -export class Configuration { - private fileSystem; - private configFileOrFolderUri?; - constructor(fileSystem?: IFileSystem, configFileOrFolderUri?: string | undefined); - private ParseCodeBlocks; - private static extensionManager; - private DesugarRawConfig; - private DesugarRawConfigs; - static shutdown(): Promise; - CreateView(messageEmitter: MessageEmitter, includeDefault: boolean, ...configs: Array): Promise; - static DetectConfigurationFile(fileSystem: IFileSystem, configFileOrFolderUri: string | null, messageEmitter?: MessageEmitter, walkUpFolders?: boolean): Promise; - static DetectConfigurationFiles(fileSystem: IFileSystem, configFileOrFolderUri: string | null, messageEmitter?: MessageEmitter, walkUpFolders?: boolean): Promise>; +declare module 'autorest-core/help' { +export interface Help { + categoryFriendlyName: string; + activationScope?: string; + description?: string; + settings: SettingHelp[]; } - +export interface SettingHelp { + required?: boolean; + key: string; + type?: string; + description: string; } -declare module 'autorest-core/lib/openapi/conversion' { -export {}; } declare module 'autorest-core/lib/autorest-core' { +import { IEvent, EventEmitter } from 'autorest-core/lib/events'; import { ConfigurationView } from 'autorest-core/lib/configuration'; -import { EventEmitter, IEvent } from 'autorest-core/lib/events'; export { ConfigurationView } from 'autorest-core/lib/configuration'; +import { Message } from 'autorest-core/lib/message'; import { Artifact } from 'autorest-core/lib/artifact'; import { DocumentType } from 'autorest-core/lib/document-type'; -import { Message } from 'autorest-core/lib/message'; /** * An instance of the AutoRest generator. * @@ -483,7 +346,7 @@ import { Message } from 'autorest-core/lib/message'; */ export class AutoRest extends EventEmitter { private fileSystem; - configFileOrFolderUri?: string | undefined; + configFileOrFolderUri: string | undefined; /** * Event: Signals when a Process() finishes. */ @@ -512,7 +375,7 @@ export class AutoRest extends EventEmitter { */ Process(): { finish: Promise; - cancel(): void; + cancel: () => void; }; } /** Determines the document type based on the content of the document @@ -561,20 +424,132 @@ export function IsConfigurationExtension(extension: string): Promise; export function IsOpenApiExtension(extension: string): Promise; } -declare module 'autorest-core/legacyCli' { -export {}; - +declare module 'autorest-core/lib/configuration' { +import { Artifact } from 'autorest-core/lib/artifact'; +import { EventEmitter, IEvent } from 'autorest-core/lib/events'; +import { IFileSystem } from 'autorest-core/lib/file-system'; +import { Message } from 'autorest-core/lib/message'; +export interface AutoRestConfigurationImpl { + __info?: string | null; + "allow-no-input"?: boolean; + "input-file"?: string[] | string; + "base-folder"?: string; + "directive"?: Directive[] | Directive; + "declare-directive"?: { + [name: string]: string; + }; + "output-artifact"?: string[] | string; + "message-format"?: "json" | "yaml" | "regular"; + "use-extension"?: { + [extensionName: string]: string; + }; + "require"?: string[] | string; + "try-require"?: string[] | string; + "help"?: any; + "vscode"?: any; + "override-info"?: any; + "title"?: any; + "description"?: any; + "debug"?: boolean; + "verbose"?: boolean; + "output-file"?: string; + "output-folder"?: string; + "client-side-validation"?: boolean; + "fluent"?: boolean; + "azure-arm"?: boolean; + "namespace"?: string; + "license-header"?: string; + "add-credentials"?: boolean; + "package-name"?: string; + "package-version"?: string; + "sync-methods"?: "all" | "essential" | "none"; + "payload-flattening-threshold"?: number; + "openapi-type"?: string; +} +export function MergeConfigurations(...configs: AutoRestConfigurationImpl[]): AutoRestConfigurationImpl; +export interface Directive { + from?: string[] | string; + where?: string[] | string; + reason?: string; + suppress?: string[] | string; + set?: string[] | string; + transform?: string[] | string; + test?: string[] | string; } -declare module 'autorest-core/app' { -export {}; - +export class DirectiveView { + private directive; + constructor(directive: Directive); + readonly from: Iterable; + readonly where: Iterable; + readonly reason: string | null; + readonly suppress: Iterable; + readonly transform: Iterable; + readonly test: Iterable; } -declare module 'autorest-core/language-service/source-map' { -export {}; - +export class MessageEmitter extends EventEmitter { + /** + * Event: Signals when a File is generated + */ + GeneratedFile: IEvent; + /** + * Event: Signals when a Folder is supposed to be cleared + */ + ClearFolder: IEvent; + /** + * Event: Signals when a message is generated + */ + Message: IEvent; + private cancellationTokenSource; + constructor(); +} +export class ConfigurationView { + configurationFiles: { + [key: string]: any; + }; + fileSystem: IFileSystem; + messageEmitter: MessageEmitter; + configFileFolderUri: string; + [name: string]: any; + private suppressor; + readonly Keys: Array; + Dump(title?: string): void; + private config; + private rawConfig; + private ResolveAsFolder(path); + private ResolveAsPath(path); + private readonly BaseFolderUri; + readonly UseExtensions: Array<{ + name: string; + source: string; + fullyQualified: string; + }>; + IncludedConfigurationFiles(fileSystem: IFileSystem, ignoreFiles: Set): Promise; + readonly Directives: DirectiveView[]; + readonly InputFileUris: string[]; + readonly OutputFolderUri: string; + IsOutputArtifactRequested(artifact: string): boolean; + GetEntry(key: keyof AutoRestConfigurationImpl): any; + readonly Raw: AutoRestConfigurationImpl; + readonly DebugMode: boolean; + readonly VerboseMode: boolean; + readonly HelpRequested: boolean; + GetNestedConfiguration(pluginName: string): Iterable; + GetNestedConfigurationImmediate(...scope: any[]): ConfigurationView; + Message(m: Message): void; +} +export class Configuration { + private fileSystem; + private configFileOrFolderUri; + constructor(fileSystem?: IFileSystem, configFileOrFolderUri?: string | undefined); + private ParseCodeBlocks(configFile, contextConfig, scope); + private static extensionManager; + private DesugarRawConfig(configs); + private DesugarRawConfigs(configs); + static shutdown(): Promise; + CreateView(messageEmitter: MessageEmitter, includeDefault: boolean, ...configs: Array): Promise; + static DetectConfigurationFile(fileSystem: IFileSystem, configFileOrFolderUri: string | null, messageEmitter?: MessageEmitter, walkUpFolders?: boolean): Promise; + static DetectConfigurationFiles(fileSystem: IFileSystem, configFileOrFolderUri: string | null, messageEmitter?: MessageEmitter, walkUpFolders?: boolean): Promise>; } -declare module 'autorest-core/language-service/document-analysis' { -export {}; } declare module 'autorest-core/language-service/language-service' { diff --git a/src/autorest/package.json b/src/autorest/package.json index 0b81250f93..312b9a6a7e 100644 --- a/src/autorest/package.json +++ b/src/autorest/package.json @@ -38,12 +38,12 @@ "typings": "./dist/main.d.ts", "devDependencies": { "@types/commonmark": "^0.22.29", - "@types/node": "10.9.4", + "@types/node": "^7.0.48", "@types/semver": "^5.3.30", "@types/mocha": "5.2.0", "mocha": "5.2.0", - "mocha-typescript": "1.1.17", - "typescript": "^3.0.0", + "mocha-typescript": "1.1.14", + "typescript": "2.6.2", "tslint": "^5.9.1", "tslint-language-service": "^0.9.9", "tslint-microsoft-contrib": "^5.0.3", @@ -53,9 +53,9 @@ "static-link": { "entrypoints": [], "dependencies": { - "@microsoft.azure/async-io": "2.0.21", - "@microsoft.azure/extension": "~2.0.30", - "@microsoft.azure/tasks": "~2.0.27", + "@microsoft.azure/async-io": "~2.0.7", + "@microsoft.azure/extension": "~2.0.24", + "@microsoft.azure/tasks": "~2.0.19", "semver": "^5.3.0", "chalk": "2.3.0" }, diff --git a/src/autorest/tsconfig.json b/src/autorest/tsconfig.json index 82f2b0d5e3..2066c0bed4 100644 --- a/src/autorest/tsconfig.json +++ b/src/autorest/tsconfig.json @@ -18,7 +18,7 @@ "./node_modules/@types" ], "lib": [ - "es2017" + "esnext" ], "plugins": [ {