From ce562e4eee44fd4c7c162509899a0573666c7e58 Mon Sep 17 00:00:00 2001 From: AutoPrFromHttpClientPython Date: Thu, 16 Apr 2026 03:39:34 +0000 Subject: [PATCH 1/6] Update dependencies --- packages/autorest.python/package.json | 2 +- packages/typespec-python/package.json | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/autorest.python/package.json b/packages/autorest.python/package.json index 8fdd3b36a3..8bb182515b 100644 --- a/packages/autorest.python/package.json +++ b/packages/autorest.python/package.json @@ -29,7 +29,7 @@ }, "homepage": "https://github.com/Azure/autorest.python/blob/main/README.md", "dependencies": { - "@typespec/http-client-python": "https://artprodcus3.artifacts.visualstudio.com/A0fb41ef4-5012-48a9-bf39-4ee3de03ee35/29ec6040-b234-4e31-b139-33dc4287b756/_apis/artifact/cGlwZWxpbmVhcnRpZmFjdDovL2F6dXJlLXNkay9wcm9qZWN0SWQvMjllYzYwNDAtYjIzNC00ZTMxLWIxMzktMzNkYzQyODdiNzU2L2J1aWxkSWQvNjE1ODIzMi9hcnRpZmFjdE5hbWUvYnVpbGRfYXJ0aWZhY3RzX3B5dGhvbg2/content?format=file&subPath=%2Fpackages%2Ftypespec-http-client-python-0.28.3.tgz", + "@typespec/http-client-python": "https://artprodcus3.artifacts.visualstudio.com/A0fb41ef4-5012-48a9-bf39-4ee3de03ee35/29ec6040-b234-4e31-b139-33dc4287b756/_apis/artifact/cGlwZWxpbmVhcnRpZmFjdDovL2F6dXJlLXNkay9wcm9qZWN0SWQvMjllYzYwNDAtYjIzNC00ZTMxLWIxMzktMzNkYzQyODdiNzU2L2J1aWxkSWQvNjE2MzI1OS9hcnRpZmFjdE5hbWUvYnVpbGRfYXJ0aWZhY3RzX3B5dGhvbg2/content?format=file&subPath=%2Fpackages%2Ftypespec-http-client-python-0.28.3.tgz", "@autorest/system-requirements": "~1.0.2", "fs-extra": "~11.2.0", "tsx": "^4.21.0" diff --git a/packages/typespec-python/package.json b/packages/typespec-python/package.json index b5f1b45beb..57ee308a12 100644 --- a/packages/typespec-python/package.json +++ b/packages/typespec-python/package.json @@ -65,7 +65,7 @@ "@typespec/xml": ">=0.81.0 <1.0.0" }, "dependencies": { - "@typespec/http-client-python": "https://artprodcus3.artifacts.visualstudio.com/A0fb41ef4-5012-48a9-bf39-4ee3de03ee35/29ec6040-b234-4e31-b139-33dc4287b756/_apis/artifact/cGlwZWxpbmVhcnRpZmFjdDovL2F6dXJlLXNkay9wcm9qZWN0SWQvMjllYzYwNDAtYjIzNC00ZTMxLWIxMzktMzNkYzQyODdiNzU2L2J1aWxkSWQvNjE1ODIzMi9hcnRpZmFjdE5hbWUvYnVpbGRfYXJ0aWZhY3RzX3B5dGhvbg2/content?format=file&subPath=%2Fpackages%2Ftypespec-http-client-python-0.28.3.tgz", + "@typespec/http-client-python": "https://artprodcus3.artifacts.visualstudio.com/A0fb41ef4-5012-48a9-bf39-4ee3de03ee35/29ec6040-b234-4e31-b139-33dc4287b756/_apis/artifact/cGlwZWxpbmVhcnRpZmFjdDovL2F6dXJlLXNkay9wcm9qZWN0SWQvMjllYzYwNDAtYjIzNC00ZTMxLWIxMzktMzNkYzQyODdiNzU2L2J1aWxkSWQvNjE2MzI1OS9hcnRpZmFjdE5hbWUvYnVpbGRfYXJ0aWZhY3RzX3B5dGhvbg2/content?format=file&subPath=%2Fpackages%2Ftypespec-http-client-python-0.28.3.tgz", "fs-extra": "~11.2.0", "js-yaml": "~4.1.0", "semver": "~7.6.2", @@ -106,4 +106,4 @@ "typescript-eslint": "^8.49.0", "vitest": "^4.0.15" } -} +} \ No newline at end of file From 5cfe20fc62f6fd287dcce012108f56d860597d16 Mon Sep 17 00:00:00 2001 From: AutoPrFromHttpClientPython Date: Thu, 16 Apr 2026 03:39:36 +0000 Subject: [PATCH 2/6] Sync shared files from typespec repo (2026-04-16 03:39:36) --- .../eng/scripts/regenerate-common.ts | 863 +++++++++--------- ...t_generation_subdir2_for_generated_code.py | 2 +- ...st_generation_subdir_for_generated_code.py | 2 +- 3 files changed, 444 insertions(+), 423 deletions(-) diff --git a/packages/typespec-python/eng/scripts/regenerate-common.ts b/packages/typespec-python/eng/scripts/regenerate-common.ts index 6f8c0e090f..f54fe03466 100644 --- a/packages/typespec-python/eng/scripts/regenerate-common.ts +++ b/packages/typespec-python/eng/scripts/regenerate-common.ts @@ -6,467 +6,488 @@ import { dirname, join, relative, resolve } from "path"; export const SKIP_SPECS: string[] = ["type/file", "service/multiple-services"]; export const SpecialFlags: Record> = { - azure: { - "generate-test": true, - "generate-sample": true, - }, + azure: { + "generate-test": true, + "generate-sample": true, + }, }; // ---- Base emitter options (shared across repos) ---- -export const BASE_AZURE_EMITTER_OPTIONS: Record | Record[]> = { - "azure/client-generator-core/access": { - namespace: "specs.azure.clientgenerator.core.access", - }, - "azure/client-generator-core/alternate-type": { - namespace: "specs.azure.clientgenerator.core.alternatetype", - }, - "azure/client-generator-core/api-version": { - namespace: "specs.azure.clientgenerator.core.apiversion", - }, - "azure/client-generator-core/client-initialization/default": { - namespace: "specs.azure.clientgenerator.core.clientinitialization.default", - }, - "azure/client-generator-core/client-initialization/individually": { - namespace: "specs.azure.clientgenerator.core.clientinitialization.individually", - }, - "azure/client-generator-core/client-initialization/individuallyParent": { - namespace: "specs.azure.clientgenerator.core.clientinitialization.individuallyparent", - }, - "azure/client-generator-core/client-location": { - namespace: "specs.azure.clientgenerator.core.clientlocation", - }, - "azure/client-generator-core/deserialize-empty-string-as-null": { - namespace: "specs.azure.clientgenerator.core.emptystring", - }, - "azure/client-generator-core/flatten-property": { - namespace: "specs.azure.clientgenerator.core.flattenproperty", - }, - "azure/client-generator-core/usage": { - namespace: "specs.azure.clientgenerator.core.usage", - }, - "azure/client-generator-core/override": { - namespace: "specs.azure.clientgenerator.core.override", - }, - "azure/client-generator-core/hierarchy-building": { - namespace: "specs.azure.clientgenerator.core.hierarchybuilding", - }, - "azure/core/basic": { - namespace: "specs.azure.core.basic", - }, - "azure/core/lro/rpc": { - namespace: "specs.azure.core.lro.rpc", - }, - "azure/core/lro/standard": { - namespace: "specs.azure.core.lro.standard", - }, - "azure/core/model": { - namespace: "specs.azure.core.model", - }, - "azure/core/page": { - namespace: "specs.azure.core.page", - }, - "azure/core/scalar": { - namespace: "specs.azure.core.scalar", - }, - "azure/core/traits": { - namespace: "specs.azure.core.traits", - }, - "azure/encode/duration": { - namespace: "specs.azure.encode.duration", - }, - "azure/example/basic": { - namespace: "specs.azure.example.basic", - }, - "azure/payload/pageable": { - namespace: "specs.azure.payload.pageable", - }, - "azure/versioning/previewVersion": { - namespace: "specs.azure.versioning.previewversion", - }, - "client/structure/default": { - namespace: "client.structure.service", - }, - "client/structure/multi-client": { - "package-name": "client-structure-multiclient", - "namespace": "client.structure.multiclient", - }, - "client/structure/renamed-operation": { - "package-name": "client-structure-renamedoperation", - "namespace": "client.structure.renamedoperation", - }, - "client/structure/two-operation-group": { - "package-name": "client-structure-twooperationgroup", - "namespace": "client.structure.twooperationgroup", - }, - "client/naming": { - namespace: "client.naming.main", - }, - "client/overload": { - namespace: "client.overload", - }, - "encode/duration": { - namespace: "encode.duration", - }, - "encode/numeric": { - namespace: "encode.numeric", - }, - "parameters/basic": { - namespace: "parameters.basic", - }, - "parameters/spread": { - namespace: "parameters.spread", - }, - "payload/content-negotiation": { - namespace: "payload.contentnegotiation", - }, - "payload/multipart": { - namespace: "payload.multipart", - }, - "serialization/encoded-name/json": { - namespace: "serialization.encodedname.json", - }, - "special-words": { - namespace: "specialwords", - }, - "service/multi-service": { - namespace: "service.multiservice", - }, +export const BASE_AZURE_EMITTER_OPTIONS: Record< + string, + Record | Record[] +> = { + "azure/client-generator-core/access": { + namespace: "specs.azure.clientgenerator.core.access", + }, + "azure/client-generator-core/alternate-type": { + namespace: "specs.azure.clientgenerator.core.alternatetype", + }, + "azure/client-generator-core/api-version": { + namespace: "specs.azure.clientgenerator.core.apiversion", + }, + "azure/client-generator-core/client-initialization/default": { + namespace: "specs.azure.clientgenerator.core.clientinitialization.default", + }, + "azure/client-generator-core/client-initialization/individually": { + namespace: "specs.azure.clientgenerator.core.clientinitialization.individually", + }, + "azure/client-generator-core/client-initialization/individuallyParent": { + namespace: "specs.azure.clientgenerator.core.clientinitialization.individuallyparent", + }, + "azure/client-generator-core/client-location": { + namespace: "specs.azure.clientgenerator.core.clientlocation", + }, + "azure/client-generator-core/deserialize-empty-string-as-null": { + namespace: "specs.azure.clientgenerator.core.emptystring", + }, + "azure/client-generator-core/flatten-property": { + namespace: "specs.azure.clientgenerator.core.flattenproperty", + }, + "azure/client-generator-core/usage": { + namespace: "specs.azure.clientgenerator.core.usage", + }, + "azure/client-generator-core/override": { + namespace: "specs.azure.clientgenerator.core.override", + }, + "azure/client-generator-core/hierarchy-building": { + namespace: "specs.azure.clientgenerator.core.hierarchybuilding", + }, + "azure/core/basic": { + namespace: "specs.azure.core.basic", + }, + "azure/core/lro/rpc": { + namespace: "specs.azure.core.lro.rpc", + }, + "azure/core/lro/standard": { + namespace: "specs.azure.core.lro.standard", + }, + "azure/core/model": { + namespace: "specs.azure.core.model", + }, + "azure/core/page": { + namespace: "specs.azure.core.page", + }, + "azure/core/scalar": { + namespace: "specs.azure.core.scalar", + }, + "azure/core/traits": { + namespace: "specs.azure.core.traits", + }, + "azure/encode/duration": { + namespace: "specs.azure.encode.duration", + }, + "azure/example/basic": { + namespace: "specs.azure.example.basic", + }, + "azure/payload/pageable": { + namespace: "specs.azure.payload.pageable", + }, + "azure/versioning/previewVersion": { + namespace: "specs.azure.versioning.previewversion", + }, + "client/structure/default": { + namespace: "client.structure.service", + }, + "client/structure/multi-client": { + "package-name": "client-structure-multiclient", + namespace: "client.structure.multiclient", + }, + "client/structure/renamed-operation": { + "package-name": "client-structure-renamedoperation", + namespace: "client.structure.renamedoperation", + }, + "client/structure/two-operation-group": { + "package-name": "client-structure-twooperationgroup", + namespace: "client.structure.twooperationgroup", + }, + "client/naming": { + namespace: "client.naming.main", + }, + "client/overload": { + namespace: "client.overload", + }, + "encode/duration": { + namespace: "encode.duration", + }, + "encode/numeric": { + namespace: "encode.numeric", + }, + "parameters/basic": { + namespace: "parameters.basic", + }, + "parameters/spread": { + namespace: "parameters.spread", + }, + "payload/content-negotiation": { + namespace: "payload.contentnegotiation", + }, + "payload/multipart": { + namespace: "payload.multipart", + }, + "serialization/encoded-name/json": { + namespace: "serialization.encodedname.json", + }, + "special-words": { + namespace: "specialwords", + }, + "service/multi-service": { + namespace: "service.multiservice", + }, }; -export const BASE_EMITTER_OPTIONS: Record | Record[]> = { - "resiliency/srv-driven/old.tsp": { - "package-name": "resiliency-srv-driven1", - "namespace": "resiliency.srv.driven1", - "package-mode": "azure-dataplane", - "package-pprint-name": "ResiliencySrvDriven1", - }, - "resiliency/srv-driven": { - "package-name": "resiliency-srv-driven2", - "namespace": "resiliency.srv.driven2", - "package-mode": "azure-dataplane", - "package-pprint-name": "ResiliencySrvDriven2", - }, - "authentication/api-key": { - "clear-output-folder": "true", - }, - "authentication/http/custom": { - "package-name": "authentication-http-custom", - "namespace": "authentication.http.custom", - "package-pprint-name": "Authentication Http Custom", - }, - "authentication/union": [ - { - "package-name": "authentication-union", - "namespace": "authentication.union", - }, - { - "package-name": "setuppy-authentication-union", - "namespace": "setuppy.authentication.union", - "keep-setup-py": "true", - }, - ], - "type/array": { - "package-name": "typetest-array", - "namespace": "typetest.array", - }, - "type/dictionary": { - "package-name": "typetest-dictionary", - "namespace": "typetest.dictionary", - }, - "type/enum/extensible": { - "package-name": "typetest-enum-extensible", - "namespace": "typetest.enum.extensible", - }, - "type/enum/fixed": { - "package-name": "typetest-enum-fixed", - "namespace": "typetest.enum.fixed", - }, - "type/model/empty": { - "package-name": "typetest-model-empty", - "namespace": "typetest.model.empty", - }, - "type/model/inheritance/enum-discriminator": { - "package-name": "typetest-model-enumdiscriminator", - "namespace": "typetest.model.enumdiscriminator", - }, - "type/model/inheritance/nested-discriminator": { - "package-name": "typetest-model-nesteddiscriminator", - "namespace": "typetest.model.nesteddiscriminator", - }, - "type/model/inheritance/not-discriminated": { - "package-name": "typetest-model-notdiscriminated", - "namespace": "typetest.model.notdiscriminated", - }, - "type/model/inheritance/single-discriminator": { - "package-name": "typetest-model-singlediscriminator", - "namespace": "typetest.model.singlediscriminator", - }, - "type/model/inheritance/recursive": [ - { - "package-name": "typetest-model-recursive", - "namespace": "typetest.model.recursive", - }, - { - // basic test for configuration "generation-subdir" - "package-name": "generation-subdir", - "namespace": "generation.subdir", - "generation-subdir": "_generated", - "generate-test": "false", - "clear-output-folder": "true", - }, - ], - "type/model/usage": { - "package-name": "typetest-model-usage", - "namespace": "typetest.model.usage", - }, - "type/model/visibility": [ - { - "package-name": "typetest-model-visibility", - "namespace": "typetest.model.visibility", - }, - { - "package-name": "headasbooleantrue", - "namespace": "headasbooleantrue", - "head-as-boolean": "true", - }, - { - "package-name": "headasbooleanfalse", - "namespace": "headasbooleanfalse", - "head-as-boolean": "false", - }, - ], - "type/property/nullable": { - "package-name": "typetest-property-nullable", - "namespace": "typetest.property.nullable", - }, - "type/property/optionality": { - "package-name": "typetest-property-optional", - "namespace": "typetest.property.optional", - }, - "type/property/additional-properties": { - "package-name": "typetest-property-additionalproperties", - "namespace": "typetest.property.additionalproperties", - }, - "type/scalar": { - "package-name": "typetest-scalar", - "namespace": "typetest.scalar", - }, - "type/property/value-types": { - "package-name": "typetest-property-valuetypes", - "namespace": "typetest.property.valuetypes", - }, - "type/union": { - "package-name": "typetest-union", - "namespace": "typetest.union", - }, - "type/union/discriminated": { - "package-name": "typetest-discriminatedunion", - "namespace": "typetest.discriminatedunion", - }, - "type/file": { - "package-name": "typetest-file", - "namespace": "typetest.file", - }, - "documentation": { - "package-name": "specs-documentation", - "namespace": "specs.documentation", - }, - "versioning/added": [ - { - "package-name": "versioning-added", - "namespace": "versioning.added", - }, - // check whether import of _validation.py/_types.py works when "generation-subdir" is configured - { - "package-name": "generation-subdir2", - "namespace": "generation.subdir2", - "generate-test": "false", - "generation-subdir": "_generated", - }, - ], +export const BASE_EMITTER_OPTIONS: Record< + string, + Record | Record[] +> = { + "resiliency/srv-driven/old.tsp": { + "package-name": "resiliency-srv-driven1", + namespace: "resiliency.srv.driven1", + "package-mode": "azure-dataplane", + "package-pprint-name": "ResiliencySrvDriven1", + }, + "resiliency/srv-driven": { + "package-name": "resiliency-srv-driven2", + namespace: "resiliency.srv.driven2", + "package-mode": "azure-dataplane", + "package-pprint-name": "ResiliencySrvDriven2", + }, + "authentication/api-key": { + "clear-output-folder": "true", + }, + "authentication/http/custom": { + "package-name": "authentication-http-custom", + namespace: "authentication.http.custom", + "package-pprint-name": "Authentication Http Custom", + }, + "authentication/union": [ + { + "package-name": "authentication-union", + namespace: "authentication.union", + }, + { + "package-name": "setuppy-authentication-union", + namespace: "setuppy.authentication.union", + "keep-setup-py": "true", + }, + ], + "type/array": { + "package-name": "typetest-array", + namespace: "typetest.array", + }, + "type/dictionary": { + "package-name": "typetest-dictionary", + namespace: "typetest.dictionary", + }, + "type/enum/extensible": { + "package-name": "typetest-enum-extensible", + namespace: "typetest.enum.extensible", + }, + "type/enum/fixed": { + "package-name": "typetest-enum-fixed", + namespace: "typetest.enum.fixed", + }, + "type/model/empty": { + "package-name": "typetest-model-empty", + namespace: "typetest.model.empty", + }, + "type/model/inheritance/enum-discriminator": { + "package-name": "typetest-model-enumdiscriminator", + namespace: "typetest.model.enumdiscriminator", + }, + "type/model/inheritance/nested-discriminator": { + "package-name": "typetest-model-nesteddiscriminator", + namespace: "typetest.model.nesteddiscriminator", + }, + "type/model/inheritance/not-discriminated": { + "package-name": "typetest-model-notdiscriminated", + namespace: "typetest.model.notdiscriminated", + }, + "type/model/inheritance/single-discriminator": { + "package-name": "typetest-model-singlediscriminator", + namespace: "typetest.model.singlediscriminator", + }, + "type/model/inheritance/recursive": [ + { + "package-name": "typetest-model-recursive", + namespace: "typetest.model.recursive", + }, + { + // basic test for configuration "generation-subdir" + "package-name": "generation-subdir", + namespace: "generation.subdir", + "generation-subdir": "_generated", + "generate-test": "false", + "clear-output-folder": "true", + }, + ], + "type/model/usage": { + "package-name": "typetest-model-usage", + namespace: "typetest.model.usage", + }, + "type/model/visibility": [ + { + "package-name": "typetest-model-visibility", + namespace: "typetest.model.visibility", + }, + { + "package-name": "headasbooleantrue", + namespace: "headasbooleantrue", + "head-as-boolean": "true", + }, + { + "package-name": "headasbooleanfalse", + namespace: "headasbooleanfalse", + "head-as-boolean": "false", + }, + ], + "type/property/nullable": { + "package-name": "typetest-property-nullable", + namespace: "typetest.property.nullable", + }, + "type/property/optionality": { + "package-name": "typetest-property-optional", + namespace: "typetest.property.optional", + }, + "type/property/additional-properties": { + "package-name": "typetest-property-additionalproperties", + namespace: "typetest.property.additionalproperties", + }, + "type/scalar": { + "package-name": "typetest-scalar", + namespace: "typetest.scalar", + }, + "type/property/value-types": { + "package-name": "typetest-property-valuetypes", + namespace: "typetest.property.valuetypes", + }, + "type/union": { + "package-name": "typetest-union", + namespace: "typetest.union", + }, + "type/union/discriminated": { + "package-name": "typetest-discriminatedunion", + namespace: "typetest.discriminatedunion", + }, + "type/file": { + "package-name": "typetest-file", + namespace: "typetest.file", + }, + documentation: { + "package-name": "specs-documentation", + namespace: "specs.documentation", + }, + "versioning/added": [ + { + "package-name": "versioning-added", + namespace: "versioning.added", + }, + // check whether import of _validation.py/_types.py works when "generation-subdir" is configured + { + "package-name": "generation-subdir2", + namespace: "generation.subdir2", + "generate-test": "false", + "generation-subdir": "_generated", + }, + ], }; // ---- Shared interfaces ---- export interface TspCommand { - outputDir: string; - command: string | string[]; + outputDir: string; + command: string | string[]; } export interface RegenerateFlagsInput { - flavor?: string; - debug?: boolean; - name?: string; - pyodide?: boolean; - jobs?: number; + flavor?: string; + debug?: boolean; + name?: string; + pyodide?: boolean; + jobs?: number; } export interface RegenerateFlags { - flavor: string; - debug: boolean; - name?: string; - pyodide?: boolean; + flavor: string; + debug: boolean; + name?: string; + pyodide?: boolean; } export interface RegenerateConfig { - azureHttpSpecs: string; - httpSpecs: string; - emitterOptions: Record | Record[]>; - azureEmitterOptions: Record | Record[]>; - preprocess: (flags: RegenerateFlagsInput) => Promise; - getCmdList: (spec: string, flags: RegenerateFlags) => TspCommand[]; - executeCommand: (cmd: TspCommand) => Promise; + azureHttpSpecs: string; + httpSpecs: string; + emitterOptions: Record | Record[]>; + azureEmitterOptions: Record | Record[]>; + preprocess: (flags: RegenerateFlagsInput) => Promise; + getCmdList: (spec: string, flags: RegenerateFlags) => TspCommand[]; + executeCommand: (cmd: TspCommand) => Promise; } // ---- Shared utility functions ---- export function toPosix(dir: string): string { - return dir.replace(/\\/g, "/"); + return dir.replace(/\\/g, "/"); } -export function getEmitterOption(spec: string, flavor: string, config: RegenerateConfig): Record[] { - const specDir = spec.includes("azure") ? config.azureHttpSpecs : config.httpSpecs; - const relativeSpec = toPosix(relative(specDir, spec)); - const key = relativeSpec.includes("resiliency/srv-driven/old.tsp") ? relativeSpec : dirname(relativeSpec); - const emitter_options = config.emitterOptions[key] || - (flavor === "azure" ? config.azureEmitterOptions[key] : [{}]) || [{}]; - return Array.isArray(emitter_options) ? emitter_options : [emitter_options]; +export function getEmitterOption( + spec: string, + flavor: string, + config: RegenerateConfig, +): Record[] { + const specDir = spec.includes("azure") ? config.azureHttpSpecs : config.httpSpecs; + const relativeSpec = toPosix(relative(specDir, spec)); + const key = relativeSpec.includes("resiliency/srv-driven/old.tsp") + ? relativeSpec + : dirname(relativeSpec); + const emitter_options = config.emitterOptions[key] || + (flavor === "azure" ? config.azureEmitterOptions[key] : [{}]) || [{}]; + return Array.isArray(emitter_options) ? emitter_options : [emitter_options]; } -export async function getSubdirectories(baseDir: string, flags: RegenerateFlags): Promise { - const subdirectories: string[] = []; - - async function searchDir(currentDir: string) { - const items = await promises.readdir(currentDir, { withFileTypes: true }); - - const promisesArray = items.map(async (item) => { - const subDirPath = join(currentDir, item.name); - if (item.isDirectory()) { - const mainTspPath = join(subDirPath, "main.tsp"); - const clientTspPath = join(subDirPath, "client.tsp"); - - const mainTspRelativePath = toPosix(relative(baseDir, mainTspPath)); - - if (SKIP_SPECS.some((skipSpec) => mainTspRelativePath.includes(skipSpec))) return; - - const hasMainTsp = await promises - .access(mainTspPath) - .then(() => true) - .catch(() => false); - const hasClientTsp = await promises - .access(clientTspPath) - .then(() => true) - .catch(() => false); - - if (mainTspRelativePath.toLowerCase().includes(flags.name || "")) { - if (mainTspRelativePath.includes("resiliency/srv-driven")) { - subdirectories.push(resolve(subDirPath, "old.tsp")); - } - if (hasClientTsp) { - subdirectories.push(resolve(subDirPath, "client.tsp")); - } else if (hasMainTsp) { - subdirectories.push(resolve(subDirPath, "main.tsp")); - } - } - - // Recursively search in the subdirectory - await searchDir(subDirPath); - } - }); - - await Promise.all(promisesArray); - } +export async function getSubdirectories( + baseDir: string, + flags: RegenerateFlags, +): Promise { + const subdirectories: string[] = []; + + async function searchDir(currentDir: string) { + const items = await promises.readdir(currentDir, { withFileTypes: true }); + + const promisesArray = items.map(async (item) => { + const subDirPath = join(currentDir, item.name); + if (item.isDirectory()) { + const mainTspPath = join(subDirPath, "main.tsp"); + const clientTspPath = join(subDirPath, "client.tsp"); + + const mainTspRelativePath = toPosix(relative(baseDir, mainTspPath)); + + if (SKIP_SPECS.some((skipSpec) => mainTspRelativePath.includes(skipSpec))) return; + + const hasMainTsp = await promises + .access(mainTspPath) + .then(() => true) + .catch(() => false); + const hasClientTsp = await promises + .access(clientTspPath) + .then(() => true) + .catch(() => false); + + if (mainTspRelativePath.toLowerCase().includes(flags.name || "")) { + if (mainTspRelativePath.includes("resiliency/srv-driven")) { + subdirectories.push(resolve(subDirPath, "old.tsp")); + } + if (hasClientTsp) { + subdirectories.push(resolve(subDirPath, "client.tsp")); + } else if (hasMainTsp) { + subdirectories.push(resolve(subDirPath, "main.tsp")); + } + } + + // Recursively search in the subdirectory + await searchDir(subDirPath); + } + }); - await searchDir(baseDir); - return subdirectories; + await Promise.all(promisesArray); + } + + await searchDir(baseDir); + return subdirectories; } -export async function runTaskPool(tasks: Array<() => Promise>, poolLimit: number): Promise { - const executing: Set> = new Set(); +export async function runTaskPool( + tasks: Array<() => Promise>, + poolLimit: number, +): Promise { + const executing: Set> = new Set(); - for (const task of tasks) { - // Start the task and remove from set when done - const p: Promise = task().finally(() => executing.delete(p)); - executing.add(p); + for (const task of tasks) { + // Start the task and remove from set when done + const p: Promise = task().finally(() => executing.delete(p)); + executing.add(p); - // If at capacity, wait for one to complete - if (executing.size >= poolLimit) { - await Promise.race(executing); - } + // If at capacity, wait for one to complete + if (executing.size >= poolLimit) { + await Promise.race(executing); } + } - // Wait for remaining tasks - await Promise.all(executing); + // Wait for remaining tasks + await Promise.all(executing); } -export async function regenerate(flags: RegenerateFlagsInput, config: RegenerateConfig): Promise { - if (flags.flavor === undefined) { - await regenerate({ flavor: "azure", ...flags }, config); - await regenerate({ flavor: "unbranded", ...flags }, config); - } else { - await config.preprocess(flags); - - const flagsResolved: RegenerateFlags = { debug: false, flavor: flags.flavor, ...flags }; - const subdirectoriesForAzure = await getSubdirectories(config.azureHttpSpecs, flagsResolved); - const subdirectoriesForNonAzure = await getSubdirectories(config.httpSpecs, flagsResolved); - const subdirectories = - flags.flavor === "azure" - ? [...subdirectoriesForAzure, ...subdirectoriesForNonAzure] - : subdirectoriesForNonAzure; - const cmdList: TspCommand[] = subdirectories.flatMap((subdirectory) => - config.getCmdList(subdirectory, flagsResolved), - ); - - // Create tasks as functions for the pool - const tasks: Array<() => Promise> = cmdList.map((tspCommand) => { - return () => config.executeCommand(tspCommand); - }); - - // Run tasks with a concurrency limit - // Default: 30 jobs, or use provided value - const poolLimit = flags.jobs ?? 30; - await runTaskPool(tasks, poolLimit); - } +export async function regenerate( + flags: RegenerateFlagsInput, + config: RegenerateConfig, +): Promise { + if (flags.flavor === undefined) { + await regenerate({ flavor: "azure", ...flags }, config); + await regenerate({ flavor: "unbranded", ...flags }, config); + } else { + await config.preprocess(flags); + + const flagsResolved: RegenerateFlags = { debug: false, flavor: flags.flavor, ...flags }; + const subdirectoriesForAzure = await getSubdirectories(config.azureHttpSpecs, flagsResolved); + const subdirectoriesForNonAzure = await getSubdirectories(config.httpSpecs, flagsResolved); + const subdirectories = + flags.flavor === "azure" + ? [...subdirectoriesForAzure, ...subdirectoriesForNonAzure] + : subdirectoriesForNonAzure; + const cmdList: TspCommand[] = subdirectories.flatMap((subdirectory) => + config.getCmdList(subdirectory, flagsResolved), + ); + + // Create tasks as functions for the pool + const tasks: Array<() => Promise> = cmdList.map((tspCommand) => { + return () => config.executeCommand(tspCommand); + }); + + // Run tasks with a concurrency limit + // Default: 30 jobs, or use provided value + const poolLimit = flags.jobs ?? 30; + await runTaskPool(tasks, poolLimit); + } } // Preprocess: create files that should be deleted after regeneration (for testing) export async function preprocess(flavor: string, generatedFolder: string): Promise { - if (flavor === "azure") { - // Use tests/generated// structure (same as output) - const testsGeneratedDir = resolve(generatedFolder, "../tests/generated/azure"); - - const DELETE_CONTENT = "# This file is to be deleted after regeneration"; - const DELETE_FILE = "to_be_deleted.py"; - const entries: { folder: string[]; file: string; content: string }[] = [ - { - folder: ["authentication-api-key", "authentication", "apikey", "_operations"], - file: DELETE_FILE, - content: DELETE_CONTENT, - }, - { - folder: ["generation-subdir", "generation", "subdir", "_generated"], - file: DELETE_FILE, - content: DELETE_CONTENT, - }, - { - folder: ["generation-subdir", "generated_tests"], - file: DELETE_FILE, - content: DELETE_CONTENT, - }, - { - folder: ["generation-subdir", "generation", "subdir"], - file: "to_be_kept.py", - content: "# This file is to be kept after regeneration", - }, - ]; - - await Promise.all( - entries.map(async ({ folder, file, content }) => { - const targetFolder = join(testsGeneratedDir, ...folder); - await promises.mkdir(targetFolder, { recursive: true }); - await promises.writeFile(join(targetFolder, file), content); - }), - ); - } + if (flavor === "azure") { + // Use tests/generated// structure (same as output) + const testsGeneratedDir = resolve(generatedFolder, "../tests/generated/azure"); + + const DELETE_CONTENT = "# This file is to be deleted after regeneration"; + const DELETE_FILE = "to_be_deleted.py"; + const entries: { folder: string[]; file: string; content: string }[] = [ + { + folder: ["authentication-api-key", "authentication", "apikey", "_operations"], + file: DELETE_FILE, + content: DELETE_CONTENT, + }, + { + folder: ["generation-subdir", "generation", "subdir", "_generated"], + file: DELETE_FILE, + content: DELETE_CONTENT, + }, + { + folder: ["generation-subdir", "generated_tests"], + file: DELETE_FILE, + content: DELETE_CONTENT, + }, + { + folder: ["generation-subdir", "generation", "subdir"], + file: "to_be_kept.py", + content: "# This file is to be kept after regeneration", + }, + ]; + + await Promise.all( + entries.map(async ({ folder, file, content }) => { + const targetFolder = join(testsGeneratedDir, ...folder); + await promises.mkdir(targetFolder, { recursive: true }); + await promises.writeFile(join(targetFolder, file), content); + }), + ); + } } diff --git a/packages/typespec-python/tests/mock_api/shared/test_generation_subdir2_for_generated_code.py b/packages/typespec-python/tests/mock_api/shared/test_generation_subdir2_for_generated_code.py index 345defd17b..32bbfc784d 100644 --- a/packages/typespec-python/tests/mock_api/shared/test_generation_subdir2_for_generated_code.py +++ b/packages/typespec-python/tests/mock_api/shared/test_generation_subdir2_for_generated_code.py @@ -30,4 +30,4 @@ def test_v2(client: AddedClient): def test_interface_v2(client: AddedClient): assert client.interface_v2.v2_in_interface( ModelV2(prop="foo", enum_prop=EnumV2.ENUM_MEMBER, union_prop="bar") - ) == ModelV2(prop="foo", enum_prop=EnumV2.ENUM_MEMBER, union_prop="bar") + ) == ModelV2(prop="foo", enum_prop=EnumV2.ENUM_MEMBER, union_prop="bar") \ No newline at end of file diff --git a/packages/typespec-python/tests/mock_api/shared/test_generation_subdir_for_generated_code.py b/packages/typespec-python/tests/mock_api/shared/test_generation_subdir_for_generated_code.py index 661fbaecf2..3750a98f1a 100644 --- a/packages/typespec-python/tests/mock_api/shared/test_generation_subdir_for_generated_code.py +++ b/packages/typespec-python/tests/mock_api/shared/test_generation_subdir_for_generated_code.py @@ -14,4 +14,4 @@ def test_custom_method(): "level": 0, "extension": [{"level": 1, "extension": [{"level": 2}]}, {"level": 1}], } - ) + ) \ No newline at end of file From 3b31f1cb52299c2a60fee0e05b0c2a5564cb6bda Mon Sep 17 00:00:00 2001 From: AutoPrFromHttpClientPython Date: Thu, 16 Apr 2026 03:39:37 +0000 Subject: [PATCH 3/6] Add changelog --- .chronus/changes/python-add-ai-link-readme-2026-4-15.md | 9 +++++++++ .../changes/python-refine-api-version-doc-2026-4-15.md | 8 ++++++++ 2 files changed, 17 insertions(+) create mode 100644 .chronus/changes/python-add-ai-link-readme-2026-4-15.md create mode 100644 .chronus/changes/python-refine-api-version-doc-2026-4-15.md diff --git a/.chronus/changes/python-add-ai-link-readme-2026-4-15.md b/.chronus/changes/python-add-ai-link-readme-2026-4-15.md new file mode 100644 index 0000000000..a176b9afcc --- /dev/null +++ b/.chronus/changes/python-add-ai-link-readme-2026-4-15.md @@ -0,0 +1,9 @@ +--- +# Change versionKind to one of: internal, fix, dependencies, feature, deprecation, breaking +changeKind: feature +packages: + - "@autorest/python" + - "@azure-tools/typespec-python" +--- + +Add "Use with AI tools" section to Azure packages README template diff --git a/.chronus/changes/python-refine-api-version-doc-2026-4-15.md b/.chronus/changes/python-refine-api-version-doc-2026-4-15.md new file mode 100644 index 0000000000..2c57d82c85 --- /dev/null +++ b/.chronus/changes/python-refine-api-version-doc-2026-4-15.md @@ -0,0 +1,8 @@ +--- +changeKind: fix +packages: + - "@autorest/python" + - "@azure-tools/typespec-python" +--- + +Refine `api_version` argument doc to show `None` as default value and include note about operation's default API version being used when not set From ed3fb64c248ccc4f8ed046e6309e9a61ab390d77 Mon Sep 17 00:00:00 2001 From: AutoPrFromHttpClientPython Date: Thu, 16 Apr 2026 03:40:42 +0000 Subject: [PATCH 4/6] Update dependencies (2026-04-16 03:40:42) --- .../eng/scripts/regenerate-common.ts | 863 +++++++++--------- packages/typespec-python/package.json | 2 +- ...t_generation_subdir2_for_generated_code.py | 2 +- ...st_generation_subdir_for_generated_code.py | 2 +- pnpm-lock.yaml | 14 +- 5 files changed, 431 insertions(+), 452 deletions(-) diff --git a/packages/typespec-python/eng/scripts/regenerate-common.ts b/packages/typespec-python/eng/scripts/regenerate-common.ts index f54fe03466..6f8c0e090f 100644 --- a/packages/typespec-python/eng/scripts/regenerate-common.ts +++ b/packages/typespec-python/eng/scripts/regenerate-common.ts @@ -6,488 +6,467 @@ import { dirname, join, relative, resolve } from "path"; export const SKIP_SPECS: string[] = ["type/file", "service/multiple-services"]; export const SpecialFlags: Record> = { - azure: { - "generate-test": true, - "generate-sample": true, - }, + azure: { + "generate-test": true, + "generate-sample": true, + }, }; // ---- Base emitter options (shared across repos) ---- -export const BASE_AZURE_EMITTER_OPTIONS: Record< - string, - Record | Record[] -> = { - "azure/client-generator-core/access": { - namespace: "specs.azure.clientgenerator.core.access", - }, - "azure/client-generator-core/alternate-type": { - namespace: "specs.azure.clientgenerator.core.alternatetype", - }, - "azure/client-generator-core/api-version": { - namespace: "specs.azure.clientgenerator.core.apiversion", - }, - "azure/client-generator-core/client-initialization/default": { - namespace: "specs.azure.clientgenerator.core.clientinitialization.default", - }, - "azure/client-generator-core/client-initialization/individually": { - namespace: "specs.azure.clientgenerator.core.clientinitialization.individually", - }, - "azure/client-generator-core/client-initialization/individuallyParent": { - namespace: "specs.azure.clientgenerator.core.clientinitialization.individuallyparent", - }, - "azure/client-generator-core/client-location": { - namespace: "specs.azure.clientgenerator.core.clientlocation", - }, - "azure/client-generator-core/deserialize-empty-string-as-null": { - namespace: "specs.azure.clientgenerator.core.emptystring", - }, - "azure/client-generator-core/flatten-property": { - namespace: "specs.azure.clientgenerator.core.flattenproperty", - }, - "azure/client-generator-core/usage": { - namespace: "specs.azure.clientgenerator.core.usage", - }, - "azure/client-generator-core/override": { - namespace: "specs.azure.clientgenerator.core.override", - }, - "azure/client-generator-core/hierarchy-building": { - namespace: "specs.azure.clientgenerator.core.hierarchybuilding", - }, - "azure/core/basic": { - namespace: "specs.azure.core.basic", - }, - "azure/core/lro/rpc": { - namespace: "specs.azure.core.lro.rpc", - }, - "azure/core/lro/standard": { - namespace: "specs.azure.core.lro.standard", - }, - "azure/core/model": { - namespace: "specs.azure.core.model", - }, - "azure/core/page": { - namespace: "specs.azure.core.page", - }, - "azure/core/scalar": { - namespace: "specs.azure.core.scalar", - }, - "azure/core/traits": { - namespace: "specs.azure.core.traits", - }, - "azure/encode/duration": { - namespace: "specs.azure.encode.duration", - }, - "azure/example/basic": { - namespace: "specs.azure.example.basic", - }, - "azure/payload/pageable": { - namespace: "specs.azure.payload.pageable", - }, - "azure/versioning/previewVersion": { - namespace: "specs.azure.versioning.previewversion", - }, - "client/structure/default": { - namespace: "client.structure.service", - }, - "client/structure/multi-client": { - "package-name": "client-structure-multiclient", - namespace: "client.structure.multiclient", - }, - "client/structure/renamed-operation": { - "package-name": "client-structure-renamedoperation", - namespace: "client.structure.renamedoperation", - }, - "client/structure/two-operation-group": { - "package-name": "client-structure-twooperationgroup", - namespace: "client.structure.twooperationgroup", - }, - "client/naming": { - namespace: "client.naming.main", - }, - "client/overload": { - namespace: "client.overload", - }, - "encode/duration": { - namespace: "encode.duration", - }, - "encode/numeric": { - namespace: "encode.numeric", - }, - "parameters/basic": { - namespace: "parameters.basic", - }, - "parameters/spread": { - namespace: "parameters.spread", - }, - "payload/content-negotiation": { - namespace: "payload.contentnegotiation", - }, - "payload/multipart": { - namespace: "payload.multipart", - }, - "serialization/encoded-name/json": { - namespace: "serialization.encodedname.json", - }, - "special-words": { - namespace: "specialwords", - }, - "service/multi-service": { - namespace: "service.multiservice", - }, +export const BASE_AZURE_EMITTER_OPTIONS: Record | Record[]> = { + "azure/client-generator-core/access": { + namespace: "specs.azure.clientgenerator.core.access", + }, + "azure/client-generator-core/alternate-type": { + namespace: "specs.azure.clientgenerator.core.alternatetype", + }, + "azure/client-generator-core/api-version": { + namespace: "specs.azure.clientgenerator.core.apiversion", + }, + "azure/client-generator-core/client-initialization/default": { + namespace: "specs.azure.clientgenerator.core.clientinitialization.default", + }, + "azure/client-generator-core/client-initialization/individually": { + namespace: "specs.azure.clientgenerator.core.clientinitialization.individually", + }, + "azure/client-generator-core/client-initialization/individuallyParent": { + namespace: "specs.azure.clientgenerator.core.clientinitialization.individuallyparent", + }, + "azure/client-generator-core/client-location": { + namespace: "specs.azure.clientgenerator.core.clientlocation", + }, + "azure/client-generator-core/deserialize-empty-string-as-null": { + namespace: "specs.azure.clientgenerator.core.emptystring", + }, + "azure/client-generator-core/flatten-property": { + namespace: "specs.azure.clientgenerator.core.flattenproperty", + }, + "azure/client-generator-core/usage": { + namespace: "specs.azure.clientgenerator.core.usage", + }, + "azure/client-generator-core/override": { + namespace: "specs.azure.clientgenerator.core.override", + }, + "azure/client-generator-core/hierarchy-building": { + namespace: "specs.azure.clientgenerator.core.hierarchybuilding", + }, + "azure/core/basic": { + namespace: "specs.azure.core.basic", + }, + "azure/core/lro/rpc": { + namespace: "specs.azure.core.lro.rpc", + }, + "azure/core/lro/standard": { + namespace: "specs.azure.core.lro.standard", + }, + "azure/core/model": { + namespace: "specs.azure.core.model", + }, + "azure/core/page": { + namespace: "specs.azure.core.page", + }, + "azure/core/scalar": { + namespace: "specs.azure.core.scalar", + }, + "azure/core/traits": { + namespace: "specs.azure.core.traits", + }, + "azure/encode/duration": { + namespace: "specs.azure.encode.duration", + }, + "azure/example/basic": { + namespace: "specs.azure.example.basic", + }, + "azure/payload/pageable": { + namespace: "specs.azure.payload.pageable", + }, + "azure/versioning/previewVersion": { + namespace: "specs.azure.versioning.previewversion", + }, + "client/structure/default": { + namespace: "client.structure.service", + }, + "client/structure/multi-client": { + "package-name": "client-structure-multiclient", + "namespace": "client.structure.multiclient", + }, + "client/structure/renamed-operation": { + "package-name": "client-structure-renamedoperation", + "namespace": "client.structure.renamedoperation", + }, + "client/structure/two-operation-group": { + "package-name": "client-structure-twooperationgroup", + "namespace": "client.structure.twooperationgroup", + }, + "client/naming": { + namespace: "client.naming.main", + }, + "client/overload": { + namespace: "client.overload", + }, + "encode/duration": { + namespace: "encode.duration", + }, + "encode/numeric": { + namespace: "encode.numeric", + }, + "parameters/basic": { + namespace: "parameters.basic", + }, + "parameters/spread": { + namespace: "parameters.spread", + }, + "payload/content-negotiation": { + namespace: "payload.contentnegotiation", + }, + "payload/multipart": { + namespace: "payload.multipart", + }, + "serialization/encoded-name/json": { + namespace: "serialization.encodedname.json", + }, + "special-words": { + namespace: "specialwords", + }, + "service/multi-service": { + namespace: "service.multiservice", + }, }; -export const BASE_EMITTER_OPTIONS: Record< - string, - Record | Record[] -> = { - "resiliency/srv-driven/old.tsp": { - "package-name": "resiliency-srv-driven1", - namespace: "resiliency.srv.driven1", - "package-mode": "azure-dataplane", - "package-pprint-name": "ResiliencySrvDriven1", - }, - "resiliency/srv-driven": { - "package-name": "resiliency-srv-driven2", - namespace: "resiliency.srv.driven2", - "package-mode": "azure-dataplane", - "package-pprint-name": "ResiliencySrvDriven2", - }, - "authentication/api-key": { - "clear-output-folder": "true", - }, - "authentication/http/custom": { - "package-name": "authentication-http-custom", - namespace: "authentication.http.custom", - "package-pprint-name": "Authentication Http Custom", - }, - "authentication/union": [ - { - "package-name": "authentication-union", - namespace: "authentication.union", - }, - { - "package-name": "setuppy-authentication-union", - namespace: "setuppy.authentication.union", - "keep-setup-py": "true", - }, - ], - "type/array": { - "package-name": "typetest-array", - namespace: "typetest.array", - }, - "type/dictionary": { - "package-name": "typetest-dictionary", - namespace: "typetest.dictionary", - }, - "type/enum/extensible": { - "package-name": "typetest-enum-extensible", - namespace: "typetest.enum.extensible", - }, - "type/enum/fixed": { - "package-name": "typetest-enum-fixed", - namespace: "typetest.enum.fixed", - }, - "type/model/empty": { - "package-name": "typetest-model-empty", - namespace: "typetest.model.empty", - }, - "type/model/inheritance/enum-discriminator": { - "package-name": "typetest-model-enumdiscriminator", - namespace: "typetest.model.enumdiscriminator", - }, - "type/model/inheritance/nested-discriminator": { - "package-name": "typetest-model-nesteddiscriminator", - namespace: "typetest.model.nesteddiscriminator", - }, - "type/model/inheritance/not-discriminated": { - "package-name": "typetest-model-notdiscriminated", - namespace: "typetest.model.notdiscriminated", - }, - "type/model/inheritance/single-discriminator": { - "package-name": "typetest-model-singlediscriminator", - namespace: "typetest.model.singlediscriminator", - }, - "type/model/inheritance/recursive": [ - { - "package-name": "typetest-model-recursive", - namespace: "typetest.model.recursive", - }, - { - // basic test for configuration "generation-subdir" - "package-name": "generation-subdir", - namespace: "generation.subdir", - "generation-subdir": "_generated", - "generate-test": "false", - "clear-output-folder": "true", - }, - ], - "type/model/usage": { - "package-name": "typetest-model-usage", - namespace: "typetest.model.usage", - }, - "type/model/visibility": [ - { - "package-name": "typetest-model-visibility", - namespace: "typetest.model.visibility", - }, - { - "package-name": "headasbooleantrue", - namespace: "headasbooleantrue", - "head-as-boolean": "true", - }, - { - "package-name": "headasbooleanfalse", - namespace: "headasbooleanfalse", - "head-as-boolean": "false", - }, - ], - "type/property/nullable": { - "package-name": "typetest-property-nullable", - namespace: "typetest.property.nullable", - }, - "type/property/optionality": { - "package-name": "typetest-property-optional", - namespace: "typetest.property.optional", - }, - "type/property/additional-properties": { - "package-name": "typetest-property-additionalproperties", - namespace: "typetest.property.additionalproperties", - }, - "type/scalar": { - "package-name": "typetest-scalar", - namespace: "typetest.scalar", - }, - "type/property/value-types": { - "package-name": "typetest-property-valuetypes", - namespace: "typetest.property.valuetypes", - }, - "type/union": { - "package-name": "typetest-union", - namespace: "typetest.union", - }, - "type/union/discriminated": { - "package-name": "typetest-discriminatedunion", - namespace: "typetest.discriminatedunion", - }, - "type/file": { - "package-name": "typetest-file", - namespace: "typetest.file", - }, - documentation: { - "package-name": "specs-documentation", - namespace: "specs.documentation", - }, - "versioning/added": [ - { - "package-name": "versioning-added", - namespace: "versioning.added", - }, - // check whether import of _validation.py/_types.py works when "generation-subdir" is configured - { - "package-name": "generation-subdir2", - namespace: "generation.subdir2", - "generate-test": "false", - "generation-subdir": "_generated", - }, - ], +export const BASE_EMITTER_OPTIONS: Record | Record[]> = { + "resiliency/srv-driven/old.tsp": { + "package-name": "resiliency-srv-driven1", + "namespace": "resiliency.srv.driven1", + "package-mode": "azure-dataplane", + "package-pprint-name": "ResiliencySrvDriven1", + }, + "resiliency/srv-driven": { + "package-name": "resiliency-srv-driven2", + "namespace": "resiliency.srv.driven2", + "package-mode": "azure-dataplane", + "package-pprint-name": "ResiliencySrvDriven2", + }, + "authentication/api-key": { + "clear-output-folder": "true", + }, + "authentication/http/custom": { + "package-name": "authentication-http-custom", + "namespace": "authentication.http.custom", + "package-pprint-name": "Authentication Http Custom", + }, + "authentication/union": [ + { + "package-name": "authentication-union", + "namespace": "authentication.union", + }, + { + "package-name": "setuppy-authentication-union", + "namespace": "setuppy.authentication.union", + "keep-setup-py": "true", + }, + ], + "type/array": { + "package-name": "typetest-array", + "namespace": "typetest.array", + }, + "type/dictionary": { + "package-name": "typetest-dictionary", + "namespace": "typetest.dictionary", + }, + "type/enum/extensible": { + "package-name": "typetest-enum-extensible", + "namespace": "typetest.enum.extensible", + }, + "type/enum/fixed": { + "package-name": "typetest-enum-fixed", + "namespace": "typetest.enum.fixed", + }, + "type/model/empty": { + "package-name": "typetest-model-empty", + "namespace": "typetest.model.empty", + }, + "type/model/inheritance/enum-discriminator": { + "package-name": "typetest-model-enumdiscriminator", + "namespace": "typetest.model.enumdiscriminator", + }, + "type/model/inheritance/nested-discriminator": { + "package-name": "typetest-model-nesteddiscriminator", + "namespace": "typetest.model.nesteddiscriminator", + }, + "type/model/inheritance/not-discriminated": { + "package-name": "typetest-model-notdiscriminated", + "namespace": "typetest.model.notdiscriminated", + }, + "type/model/inheritance/single-discriminator": { + "package-name": "typetest-model-singlediscriminator", + "namespace": "typetest.model.singlediscriminator", + }, + "type/model/inheritance/recursive": [ + { + "package-name": "typetest-model-recursive", + "namespace": "typetest.model.recursive", + }, + { + // basic test for configuration "generation-subdir" + "package-name": "generation-subdir", + "namespace": "generation.subdir", + "generation-subdir": "_generated", + "generate-test": "false", + "clear-output-folder": "true", + }, + ], + "type/model/usage": { + "package-name": "typetest-model-usage", + "namespace": "typetest.model.usage", + }, + "type/model/visibility": [ + { + "package-name": "typetest-model-visibility", + "namespace": "typetest.model.visibility", + }, + { + "package-name": "headasbooleantrue", + "namespace": "headasbooleantrue", + "head-as-boolean": "true", + }, + { + "package-name": "headasbooleanfalse", + "namespace": "headasbooleanfalse", + "head-as-boolean": "false", + }, + ], + "type/property/nullable": { + "package-name": "typetest-property-nullable", + "namespace": "typetest.property.nullable", + }, + "type/property/optionality": { + "package-name": "typetest-property-optional", + "namespace": "typetest.property.optional", + }, + "type/property/additional-properties": { + "package-name": "typetest-property-additionalproperties", + "namespace": "typetest.property.additionalproperties", + }, + "type/scalar": { + "package-name": "typetest-scalar", + "namespace": "typetest.scalar", + }, + "type/property/value-types": { + "package-name": "typetest-property-valuetypes", + "namespace": "typetest.property.valuetypes", + }, + "type/union": { + "package-name": "typetest-union", + "namespace": "typetest.union", + }, + "type/union/discriminated": { + "package-name": "typetest-discriminatedunion", + "namespace": "typetest.discriminatedunion", + }, + "type/file": { + "package-name": "typetest-file", + "namespace": "typetest.file", + }, + "documentation": { + "package-name": "specs-documentation", + "namespace": "specs.documentation", + }, + "versioning/added": [ + { + "package-name": "versioning-added", + "namespace": "versioning.added", + }, + // check whether import of _validation.py/_types.py works when "generation-subdir" is configured + { + "package-name": "generation-subdir2", + "namespace": "generation.subdir2", + "generate-test": "false", + "generation-subdir": "_generated", + }, + ], }; // ---- Shared interfaces ---- export interface TspCommand { - outputDir: string; - command: string | string[]; + outputDir: string; + command: string | string[]; } export interface RegenerateFlagsInput { - flavor?: string; - debug?: boolean; - name?: string; - pyodide?: boolean; - jobs?: number; + flavor?: string; + debug?: boolean; + name?: string; + pyodide?: boolean; + jobs?: number; } export interface RegenerateFlags { - flavor: string; - debug: boolean; - name?: string; - pyodide?: boolean; + flavor: string; + debug: boolean; + name?: string; + pyodide?: boolean; } export interface RegenerateConfig { - azureHttpSpecs: string; - httpSpecs: string; - emitterOptions: Record | Record[]>; - azureEmitterOptions: Record | Record[]>; - preprocess: (flags: RegenerateFlagsInput) => Promise; - getCmdList: (spec: string, flags: RegenerateFlags) => TspCommand[]; - executeCommand: (cmd: TspCommand) => Promise; + azureHttpSpecs: string; + httpSpecs: string; + emitterOptions: Record | Record[]>; + azureEmitterOptions: Record | Record[]>; + preprocess: (flags: RegenerateFlagsInput) => Promise; + getCmdList: (spec: string, flags: RegenerateFlags) => TspCommand[]; + executeCommand: (cmd: TspCommand) => Promise; } // ---- Shared utility functions ---- export function toPosix(dir: string): string { - return dir.replace(/\\/g, "/"); + return dir.replace(/\\/g, "/"); } -export function getEmitterOption( - spec: string, - flavor: string, - config: RegenerateConfig, -): Record[] { - const specDir = spec.includes("azure") ? config.azureHttpSpecs : config.httpSpecs; - const relativeSpec = toPosix(relative(specDir, spec)); - const key = relativeSpec.includes("resiliency/srv-driven/old.tsp") - ? relativeSpec - : dirname(relativeSpec); - const emitter_options = config.emitterOptions[key] || - (flavor === "azure" ? config.azureEmitterOptions[key] : [{}]) || [{}]; - return Array.isArray(emitter_options) ? emitter_options : [emitter_options]; +export function getEmitterOption(spec: string, flavor: string, config: RegenerateConfig): Record[] { + const specDir = spec.includes("azure") ? config.azureHttpSpecs : config.httpSpecs; + const relativeSpec = toPosix(relative(specDir, spec)); + const key = relativeSpec.includes("resiliency/srv-driven/old.tsp") ? relativeSpec : dirname(relativeSpec); + const emitter_options = config.emitterOptions[key] || + (flavor === "azure" ? config.azureEmitterOptions[key] : [{}]) || [{}]; + return Array.isArray(emitter_options) ? emitter_options : [emitter_options]; } -export async function getSubdirectories( - baseDir: string, - flags: RegenerateFlags, -): Promise { - const subdirectories: string[] = []; - - async function searchDir(currentDir: string) { - const items = await promises.readdir(currentDir, { withFileTypes: true }); - - const promisesArray = items.map(async (item) => { - const subDirPath = join(currentDir, item.name); - if (item.isDirectory()) { - const mainTspPath = join(subDirPath, "main.tsp"); - const clientTspPath = join(subDirPath, "client.tsp"); - - const mainTspRelativePath = toPosix(relative(baseDir, mainTspPath)); - - if (SKIP_SPECS.some((skipSpec) => mainTspRelativePath.includes(skipSpec))) return; - - const hasMainTsp = await promises - .access(mainTspPath) - .then(() => true) - .catch(() => false); - const hasClientTsp = await promises - .access(clientTspPath) - .then(() => true) - .catch(() => false); - - if (mainTspRelativePath.toLowerCase().includes(flags.name || "")) { - if (mainTspRelativePath.includes("resiliency/srv-driven")) { - subdirectories.push(resolve(subDirPath, "old.tsp")); - } - if (hasClientTsp) { - subdirectories.push(resolve(subDirPath, "client.tsp")); - } else if (hasMainTsp) { - subdirectories.push(resolve(subDirPath, "main.tsp")); - } - } - - // Recursively search in the subdirectory - await searchDir(subDirPath); - } - }); - - await Promise.all(promisesArray); - } +export async function getSubdirectories(baseDir: string, flags: RegenerateFlags): Promise { + const subdirectories: string[] = []; + + async function searchDir(currentDir: string) { + const items = await promises.readdir(currentDir, { withFileTypes: true }); + + const promisesArray = items.map(async (item) => { + const subDirPath = join(currentDir, item.name); + if (item.isDirectory()) { + const mainTspPath = join(subDirPath, "main.tsp"); + const clientTspPath = join(subDirPath, "client.tsp"); + + const mainTspRelativePath = toPosix(relative(baseDir, mainTspPath)); + + if (SKIP_SPECS.some((skipSpec) => mainTspRelativePath.includes(skipSpec))) return; + + const hasMainTsp = await promises + .access(mainTspPath) + .then(() => true) + .catch(() => false); + const hasClientTsp = await promises + .access(clientTspPath) + .then(() => true) + .catch(() => false); + + if (mainTspRelativePath.toLowerCase().includes(flags.name || "")) { + if (mainTspRelativePath.includes("resiliency/srv-driven")) { + subdirectories.push(resolve(subDirPath, "old.tsp")); + } + if (hasClientTsp) { + subdirectories.push(resolve(subDirPath, "client.tsp")); + } else if (hasMainTsp) { + subdirectories.push(resolve(subDirPath, "main.tsp")); + } + } + + // Recursively search in the subdirectory + await searchDir(subDirPath); + } + }); + + await Promise.all(promisesArray); + } - await searchDir(baseDir); - return subdirectories; + await searchDir(baseDir); + return subdirectories; } -export async function runTaskPool( - tasks: Array<() => Promise>, - poolLimit: number, -): Promise { - const executing: Set> = new Set(); +export async function runTaskPool(tasks: Array<() => Promise>, poolLimit: number): Promise { + const executing: Set> = new Set(); - for (const task of tasks) { - // Start the task and remove from set when done - const p: Promise = task().finally(() => executing.delete(p)); - executing.add(p); + for (const task of tasks) { + // Start the task and remove from set when done + const p: Promise = task().finally(() => executing.delete(p)); + executing.add(p); - // If at capacity, wait for one to complete - if (executing.size >= poolLimit) { - await Promise.race(executing); + // If at capacity, wait for one to complete + if (executing.size >= poolLimit) { + await Promise.race(executing); + } } - } - // Wait for remaining tasks - await Promise.all(executing); + // Wait for remaining tasks + await Promise.all(executing); } -export async function regenerate( - flags: RegenerateFlagsInput, - config: RegenerateConfig, -): Promise { - if (flags.flavor === undefined) { - await regenerate({ flavor: "azure", ...flags }, config); - await regenerate({ flavor: "unbranded", ...flags }, config); - } else { - await config.preprocess(flags); - - const flagsResolved: RegenerateFlags = { debug: false, flavor: flags.flavor, ...flags }; - const subdirectoriesForAzure = await getSubdirectories(config.azureHttpSpecs, flagsResolved); - const subdirectoriesForNonAzure = await getSubdirectories(config.httpSpecs, flagsResolved); - const subdirectories = - flags.flavor === "azure" - ? [...subdirectoriesForAzure, ...subdirectoriesForNonAzure] - : subdirectoriesForNonAzure; - const cmdList: TspCommand[] = subdirectories.flatMap((subdirectory) => - config.getCmdList(subdirectory, flagsResolved), - ); - - // Create tasks as functions for the pool - const tasks: Array<() => Promise> = cmdList.map((tspCommand) => { - return () => config.executeCommand(tspCommand); - }); - - // Run tasks with a concurrency limit - // Default: 30 jobs, or use provided value - const poolLimit = flags.jobs ?? 30; - await runTaskPool(tasks, poolLimit); - } +export async function regenerate(flags: RegenerateFlagsInput, config: RegenerateConfig): Promise { + if (flags.flavor === undefined) { + await regenerate({ flavor: "azure", ...flags }, config); + await regenerate({ flavor: "unbranded", ...flags }, config); + } else { + await config.preprocess(flags); + + const flagsResolved: RegenerateFlags = { debug: false, flavor: flags.flavor, ...flags }; + const subdirectoriesForAzure = await getSubdirectories(config.azureHttpSpecs, flagsResolved); + const subdirectoriesForNonAzure = await getSubdirectories(config.httpSpecs, flagsResolved); + const subdirectories = + flags.flavor === "azure" + ? [...subdirectoriesForAzure, ...subdirectoriesForNonAzure] + : subdirectoriesForNonAzure; + const cmdList: TspCommand[] = subdirectories.flatMap((subdirectory) => + config.getCmdList(subdirectory, flagsResolved), + ); + + // Create tasks as functions for the pool + const tasks: Array<() => Promise> = cmdList.map((tspCommand) => { + return () => config.executeCommand(tspCommand); + }); + + // Run tasks with a concurrency limit + // Default: 30 jobs, or use provided value + const poolLimit = flags.jobs ?? 30; + await runTaskPool(tasks, poolLimit); + } } // Preprocess: create files that should be deleted after regeneration (for testing) export async function preprocess(flavor: string, generatedFolder: string): Promise { - if (flavor === "azure") { - // Use tests/generated// structure (same as output) - const testsGeneratedDir = resolve(generatedFolder, "../tests/generated/azure"); - - const DELETE_CONTENT = "# This file is to be deleted after regeneration"; - const DELETE_FILE = "to_be_deleted.py"; - const entries: { folder: string[]; file: string; content: string }[] = [ - { - folder: ["authentication-api-key", "authentication", "apikey", "_operations"], - file: DELETE_FILE, - content: DELETE_CONTENT, - }, - { - folder: ["generation-subdir", "generation", "subdir", "_generated"], - file: DELETE_FILE, - content: DELETE_CONTENT, - }, - { - folder: ["generation-subdir", "generated_tests"], - file: DELETE_FILE, - content: DELETE_CONTENT, - }, - { - folder: ["generation-subdir", "generation", "subdir"], - file: "to_be_kept.py", - content: "# This file is to be kept after regeneration", - }, - ]; - - await Promise.all( - entries.map(async ({ folder, file, content }) => { - const targetFolder = join(testsGeneratedDir, ...folder); - await promises.mkdir(targetFolder, { recursive: true }); - await promises.writeFile(join(targetFolder, file), content); - }), - ); - } + if (flavor === "azure") { + // Use tests/generated// structure (same as output) + const testsGeneratedDir = resolve(generatedFolder, "../tests/generated/azure"); + + const DELETE_CONTENT = "# This file is to be deleted after regeneration"; + const DELETE_FILE = "to_be_deleted.py"; + const entries: { folder: string[]; file: string; content: string }[] = [ + { + folder: ["authentication-api-key", "authentication", "apikey", "_operations"], + file: DELETE_FILE, + content: DELETE_CONTENT, + }, + { + folder: ["generation-subdir", "generation", "subdir", "_generated"], + file: DELETE_FILE, + content: DELETE_CONTENT, + }, + { + folder: ["generation-subdir", "generated_tests"], + file: DELETE_FILE, + content: DELETE_CONTENT, + }, + { + folder: ["generation-subdir", "generation", "subdir"], + file: "to_be_kept.py", + content: "# This file is to be kept after regeneration", + }, + ]; + + await Promise.all( + entries.map(async ({ folder, file, content }) => { + const targetFolder = join(testsGeneratedDir, ...folder); + await promises.mkdir(targetFolder, { recursive: true }); + await promises.writeFile(join(targetFolder, file), content); + }), + ); + } } diff --git a/packages/typespec-python/package.json b/packages/typespec-python/package.json index 57ee308a12..72cec8733d 100644 --- a/packages/typespec-python/package.json +++ b/packages/typespec-python/package.json @@ -106,4 +106,4 @@ "typescript-eslint": "^8.49.0", "vitest": "^4.0.15" } -} \ No newline at end of file +} diff --git a/packages/typespec-python/tests/mock_api/shared/test_generation_subdir2_for_generated_code.py b/packages/typespec-python/tests/mock_api/shared/test_generation_subdir2_for_generated_code.py index 32bbfc784d..345defd17b 100644 --- a/packages/typespec-python/tests/mock_api/shared/test_generation_subdir2_for_generated_code.py +++ b/packages/typespec-python/tests/mock_api/shared/test_generation_subdir2_for_generated_code.py @@ -30,4 +30,4 @@ def test_v2(client: AddedClient): def test_interface_v2(client: AddedClient): assert client.interface_v2.v2_in_interface( ModelV2(prop="foo", enum_prop=EnumV2.ENUM_MEMBER, union_prop="bar") - ) == ModelV2(prop="foo", enum_prop=EnumV2.ENUM_MEMBER, union_prop="bar") \ No newline at end of file + ) == ModelV2(prop="foo", enum_prop=EnumV2.ENUM_MEMBER, union_prop="bar") diff --git a/packages/typespec-python/tests/mock_api/shared/test_generation_subdir_for_generated_code.py b/packages/typespec-python/tests/mock_api/shared/test_generation_subdir_for_generated_code.py index 3750a98f1a..661fbaecf2 100644 --- a/packages/typespec-python/tests/mock_api/shared/test_generation_subdir_for_generated_code.py +++ b/packages/typespec-python/tests/mock_api/shared/test_generation_subdir_for_generated_code.py @@ -14,4 +14,4 @@ def test_custom_method(): "level": 0, "extension": [{"level": 1, "extension": [{"level": 2}]}, {"level": 1}], } - ) \ No newline at end of file + ) diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index c872e2fd29..f20a7ad97b 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -60,8 +60,8 @@ importers: specifier: ~1.0.2 version: 1.0.2 '@typespec/http-client-python': - specifier: https://artprodcus3.artifacts.visualstudio.com/A0fb41ef4-5012-48a9-bf39-4ee3de03ee35/29ec6040-b234-4e31-b139-33dc4287b756/_apis/artifact/cGlwZWxpbmVhcnRpZmFjdDovL2F6dXJlLXNkay9wcm9qZWN0SWQvMjllYzYwNDAtYjIzNC00ZTMxLWIxMzktMzNkYzQyODdiNzU2L2J1aWxkSWQvNjE1ODIzMi9hcnRpZmFjdE5hbWUvYnVpbGRfYXJ0aWZhY3RzX3B5dGhvbg2/content?format=file&subPath=%2Fpackages%2Ftypespec-http-client-python-0.28.3.tgz - version: https://artprodcus3.artifacts.visualstudio.com/A0fb41ef4-5012-48a9-bf39-4ee3de03ee35/29ec6040-b234-4e31-b139-33dc4287b756/_apis/artifact/cGlwZWxpbmVhcnRpZmFjdDovL2F6dXJlLXNkay9wcm9qZWN0SWQvMjllYzYwNDAtYjIzNC00ZTMxLWIxMzktMzNkYzQyODdiNzU2L2J1aWxkSWQvNjE1ODIzMi9hcnRpZmFjdE5hbWUvYnVpbGRfYXJ0aWZhY3RzX3B5dGhvbg2/content?format=file&subPath=%2Fpackages%2Ftypespec-http-client-python-0.28.3.tgz(y2blksstlsblh3iqmgy3brbone) + specifier: https://artprodcus3.artifacts.visualstudio.com/A0fb41ef4-5012-48a9-bf39-4ee3de03ee35/29ec6040-b234-4e31-b139-33dc4287b756/_apis/artifact/cGlwZWxpbmVhcnRpZmFjdDovL2F6dXJlLXNkay9wcm9qZWN0SWQvMjllYzYwNDAtYjIzNC00ZTMxLWIxMzktMzNkYzQyODdiNzU2L2J1aWxkSWQvNjE2MzI1OS9hcnRpZmFjdE5hbWUvYnVpbGRfYXJ0aWZhY3RzX3B5dGhvbg2/content?format=file&subPath=%2Fpackages%2Ftypespec-http-client-python-0.28.3.tgz + version: https://artprodcus3.artifacts.visualstudio.com/A0fb41ef4-5012-48a9-bf39-4ee3de03ee35/29ec6040-b234-4e31-b139-33dc4287b756/_apis/artifact/cGlwZWxpbmVhcnRpZmFjdDovL2F6dXJlLXNkay9wcm9qZWN0SWQvMjllYzYwNDAtYjIzNC00ZTMxLWIxMzktMzNkYzQyODdiNzU2L2J1aWxkSWQvNjE2MzI1OS9hcnRpZmFjdE5hbWUvYnVpbGRfYXJ0aWZhY3RzX3B5dGhvbg2/content?format=file&subPath=%2Fpackages%2Ftypespec-http-client-python-0.28.3.tgz(y2blksstlsblh3iqmgy3brbone) fs-extra: specifier: ~11.2.0 version: 11.2.0 @@ -82,8 +82,8 @@ importers: packages/typespec-python: dependencies: '@typespec/http-client-python': - specifier: https://artprodcus3.artifacts.visualstudio.com/A0fb41ef4-5012-48a9-bf39-4ee3de03ee35/29ec6040-b234-4e31-b139-33dc4287b756/_apis/artifact/cGlwZWxpbmVhcnRpZmFjdDovL2F6dXJlLXNkay9wcm9qZWN0SWQvMjllYzYwNDAtYjIzNC00ZTMxLWIxMzktMzNkYzQyODdiNzU2L2J1aWxkSWQvNjE1ODIzMi9hcnRpZmFjdE5hbWUvYnVpbGRfYXJ0aWZhY3RzX3B5dGhvbg2/content?format=file&subPath=%2Fpackages%2Ftypespec-http-client-python-0.28.3.tgz - version: https://artprodcus3.artifacts.visualstudio.com/A0fb41ef4-5012-48a9-bf39-4ee3de03ee35/29ec6040-b234-4e31-b139-33dc4287b756/_apis/artifact/cGlwZWxpbmVhcnRpZmFjdDovL2F6dXJlLXNkay9wcm9qZWN0SWQvMjllYzYwNDAtYjIzNC00ZTMxLWIxMzktMzNkYzQyODdiNzU2L2J1aWxkSWQvNjE1ODIzMi9hcnRpZmFjdE5hbWUvYnVpbGRfYXJ0aWZhY3RzX3B5dGhvbg2/content?format=file&subPath=%2Fpackages%2Ftypespec-http-client-python-0.28.3.tgz(y2blksstlsblh3iqmgy3brbone) + specifier: https://artprodcus3.artifacts.visualstudio.com/A0fb41ef4-5012-48a9-bf39-4ee3de03ee35/29ec6040-b234-4e31-b139-33dc4287b756/_apis/artifact/cGlwZWxpbmVhcnRpZmFjdDovL2F6dXJlLXNkay9wcm9qZWN0SWQvMjllYzYwNDAtYjIzNC00ZTMxLWIxMzktMzNkYzQyODdiNzU2L2J1aWxkSWQvNjE2MzI1OS9hcnRpZmFjdE5hbWUvYnVpbGRfYXJ0aWZhY3RzX3B5dGhvbg2/content?format=file&subPath=%2Fpackages%2Ftypespec-http-client-python-0.28.3.tgz + version: https://artprodcus3.artifacts.visualstudio.com/A0fb41ef4-5012-48a9-bf39-4ee3de03ee35/29ec6040-b234-4e31-b139-33dc4287b756/_apis/artifact/cGlwZWxpbmVhcnRpZmFjdDovL2F6dXJlLXNkay9wcm9qZWN0SWQvMjllYzYwNDAtYjIzNC00ZTMxLWIxMzktMzNkYzQyODdiNzU2L2J1aWxkSWQvNjE2MzI1OS9hcnRpZmFjdE5hbWUvYnVpbGRfYXJ0aWZhY3RzX3B5dGhvbg2/content?format=file&subPath=%2Fpackages%2Ftypespec-http-client-python-0.28.3.tgz(y2blksstlsblh3iqmgy3brbone) fs-extra: specifier: ~11.2.0 version: 11.2.0 @@ -1723,8 +1723,8 @@ packages: peerDependencies: '@typespec/compiler': ^1.11.0 - '@typespec/http-client-python@https://artprodcus3.artifacts.visualstudio.com/A0fb41ef4-5012-48a9-bf39-4ee3de03ee35/29ec6040-b234-4e31-b139-33dc4287b756/_apis/artifact/cGlwZWxpbmVhcnRpZmFjdDovL2F6dXJlLXNkay9wcm9qZWN0SWQvMjllYzYwNDAtYjIzNC00ZTMxLWIxMzktMzNkYzQyODdiNzU2L2J1aWxkSWQvNjE1ODIzMi9hcnRpZmFjdE5hbWUvYnVpbGRfYXJ0aWZhY3RzX3B5dGhvbg2/content?format=file&subPath=%2Fpackages%2Ftypespec-http-client-python-0.28.3.tgz': - resolution: {tarball: https://artprodcus3.artifacts.visualstudio.com/A0fb41ef4-5012-48a9-bf39-4ee3de03ee35/29ec6040-b234-4e31-b139-33dc4287b756/_apis/artifact/cGlwZWxpbmVhcnRpZmFjdDovL2F6dXJlLXNkay9wcm9qZWN0SWQvMjllYzYwNDAtYjIzNC00ZTMxLWIxMzktMzNkYzQyODdiNzU2L2J1aWxkSWQvNjE1ODIzMi9hcnRpZmFjdE5hbWUvYnVpbGRfYXJ0aWZhY3RzX3B5dGhvbg2/content?format=file&subPath=%2Fpackages%2Ftypespec-http-client-python-0.28.3.tgz} + '@typespec/http-client-python@https://artprodcus3.artifacts.visualstudio.com/A0fb41ef4-5012-48a9-bf39-4ee3de03ee35/29ec6040-b234-4e31-b139-33dc4287b756/_apis/artifact/cGlwZWxpbmVhcnRpZmFjdDovL2F6dXJlLXNkay9wcm9qZWN0SWQvMjllYzYwNDAtYjIzNC00ZTMxLWIxMzktMzNkYzQyODdiNzU2L2J1aWxkSWQvNjE2MzI1OS9hcnRpZmFjdE5hbWUvYnVpbGRfYXJ0aWZhY3RzX3B5dGhvbg2/content?format=file&subPath=%2Fpackages%2Ftypespec-http-client-python-0.28.3.tgz': + resolution: {tarball: https://artprodcus3.artifacts.visualstudio.com/A0fb41ef4-5012-48a9-bf39-4ee3de03ee35/29ec6040-b234-4e31-b139-33dc4287b756/_apis/artifact/cGlwZWxpbmVhcnRpZmFjdDovL2F6dXJlLXNkay9wcm9qZWN0SWQvMjllYzYwNDAtYjIzNC00ZTMxLWIxMzktMzNkYzQyODdiNzU2L2J1aWxkSWQvNjE2MzI1OS9hcnRpZmFjdE5hbWUvYnVpbGRfYXJ0aWZhY3RzX3B5dGhvbg2/content?format=file&subPath=%2Fpackages%2Ftypespec-http-client-python-0.28.3.tgz} version: 0.28.3 engines: {node: '>=20.0.0'} peerDependencies: @@ -6708,7 +6708,7 @@ snapshots: dependencies: '@typespec/compiler': 1.11.0(@types/node@25.0.10) - '@typespec/http-client-python@https://artprodcus3.artifacts.visualstudio.com/A0fb41ef4-5012-48a9-bf39-4ee3de03ee35/29ec6040-b234-4e31-b139-33dc4287b756/_apis/artifact/cGlwZWxpbmVhcnRpZmFjdDovL2F6dXJlLXNkay9wcm9qZWN0SWQvMjllYzYwNDAtYjIzNC00ZTMxLWIxMzktMzNkYzQyODdiNzU2L2J1aWxkSWQvNjE1ODIzMi9hcnRpZmFjdE5hbWUvYnVpbGRfYXJ0aWZhY3RzX3B5dGhvbg2/content?format=file&subPath=%2Fpackages%2Ftypespec-http-client-python-0.28.3.tgz(y2blksstlsblh3iqmgy3brbone)': + '@typespec/http-client-python@https://artprodcus3.artifacts.visualstudio.com/A0fb41ef4-5012-48a9-bf39-4ee3de03ee35/29ec6040-b234-4e31-b139-33dc4287b756/_apis/artifact/cGlwZWxpbmVhcnRpZmFjdDovL2F6dXJlLXNkay9wcm9qZWN0SWQvMjllYzYwNDAtYjIzNC00ZTMxLWIxMzktMzNkYzQyODdiNzU2L2J1aWxkSWQvNjE2MzI1OS9hcnRpZmFjdE5hbWUvYnVpbGRfYXJ0aWZhY3RzX3B5dGhvbg2/content?format=file&subPath=%2Fpackages%2Ftypespec-http-client-python-0.28.3.tgz(y2blksstlsblh3iqmgy3brbone)': dependencies: '@azure-tools/typespec-autorest': 0.67.0(7o3sem7p6i3t4jykacdovvl7ii) '@azure-tools/typespec-azure-core': 0.67.0(@typespec/compiler@1.11.0(@types/node@25.0.10))(@typespec/http@1.11.0(@typespec/compiler@1.11.0(@types/node@25.0.10))(@typespec/streams@0.81.0(@typespec/compiler@1.11.0(@types/node@25.0.10))))(@typespec/rest@0.81.0(@typespec/compiler@1.11.0(@types/node@25.0.10))(@typespec/http@1.11.0(@typespec/compiler@1.11.0(@types/node@25.0.10))(@typespec/streams@0.81.0(@typespec/compiler@1.11.0(@types/node@25.0.10))))) From c4aac3439cefcdb29318c14dfa0403038e1d1adc Mon Sep 17 00:00:00 2001 From: AutoPrFromHttpClientPython Date: Thu, 16 Apr 2026 03:46:24 +0000 Subject: [PATCH 5/6] Regenerate for typespec-python (2026-04-16 03:46:24) --- .../client/alternateapiversion/service/header/_client.py | 5 +++-- .../alternateapiversion/service/header/_configuration.py | 5 +++-- .../alternateapiversion/service/header/aio/_client.py | 5 +++-- .../service/header/aio/_configuration.py | 5 +++-- .../client/alternateapiversion/service/path/_client.py | 5 +++-- .../alternateapiversion/service/path/_configuration.py | 5 +++-- .../client/alternateapiversion/service/path/aio/_client.py | 5 +++-- .../alternateapiversion/service/path/aio/_configuration.py | 5 +++-- .../client/alternateapiversion/service/query/_client.py | 5 +++-- .../alternateapiversion/service/query/_configuration.py | 5 +++-- .../client/alternateapiversion/service/query/aio/_client.py | 5 +++-- .../alternateapiversion/service/query/aio/_configuration.py | 5 +++-- .../azure-core-basic/specs/azure/core/basic/_client.py | 5 +++-- .../specs/azure/core/basic/_configuration.py | 5 +++-- .../azure-core-basic/specs/azure/core/basic/aio/_client.py | 5 +++-- .../specs/azure/core/basic/aio/_configuration.py | 5 +++-- .../azure-core-lro-rpc/specs/azure/core/lro/rpc/_client.py | 5 +++-- .../specs/azure/core/lro/rpc/_configuration.py | 5 +++-- .../specs/azure/core/lro/rpc/aio/_client.py | 5 +++-- .../specs/azure/core/lro/rpc/aio/_configuration.py | 5 +++-- .../specs/azure/core/lro/standard/_client.py | 5 +++-- .../specs/azure/core/lro/standard/_configuration.py | 5 +++-- .../specs/azure/core/lro/standard/aio/_client.py | 5 +++-- .../specs/azure/core/lro/standard/aio/_configuration.py | 5 +++-- .../azure/azure-core-page/specs/azure/core/page/_client.py | 5 +++-- .../azure-core-page/specs/azure/core/page/_configuration.py | 5 +++-- .../azure-core-page/specs/azure/core/page/aio/_client.py | 5 +++-- .../specs/azure/core/page/aio/_configuration.py | 5 +++-- .../azure-core-traits/specs/azure/core/traits/_client.py | 5 +++-- .../specs/azure/core/traits/_configuration.py | 5 +++-- .../specs/azure/core/traits/aio/_client.py | 5 +++-- .../specs/azure/core/traits/aio/_configuration.py | 5 +++-- .../specs/azure/example/basic/_client.py | 5 +++-- .../specs/azure/example/basic/_configuration.py | 5 +++-- .../specs/azure/example/basic/aio/_client.py | 5 +++-- .../specs/azure/example/basic/aio/_configuration.py | 5 +++-- .../azure/resourcemanager/commonproperties/_client.py | 5 +++-- .../resourcemanager/commonproperties/_configuration.py | 5 +++-- .../azure/resourcemanager/commonproperties/aio/_client.py | 5 +++-- .../resourcemanager/commonproperties/aio/_configuration.py | 5 +++-- .../azure/resourcemanager/largeheader/_client.py | 5 +++-- .../azure/resourcemanager/largeheader/_configuration.py | 5 +++-- .../azure/resourcemanager/largeheader/aio/_client.py | 5 +++-- .../azure/resourcemanager/largeheader/aio/_configuration.py | 5 +++-- .../azure/resourcemanager/methodsubscriptionid/_client.py | 5 +++-- .../resourcemanager/methodsubscriptionid/_configuration.py | 5 +++-- .../resourcemanager/methodsubscriptionid/aio/_client.py | 5 +++-- .../methodsubscriptionid/aio/_configuration.py | 5 +++-- .../azure/resourcemanager/nonresource/_client.py | 5 +++-- .../azure/resourcemanager/nonresource/_configuration.py | 5 +++-- .../azure/resourcemanager/nonresource/aio/_client.py | 5 +++-- .../azure/resourcemanager/nonresource/aio/_configuration.py | 5 +++-- .../azure/resourcemanager/operationtemplates/_client.py | 5 +++-- .../resourcemanager/operationtemplates/_configuration.py | 5 +++-- .../azure/resourcemanager/operationtemplates/aio/_client.py | 5 +++-- .../operationtemplates/aio/_configuration.py | 5 +++-- .../azure/resourcemanager/resources/_client.py | 5 +++-- .../azure/resourcemanager/resources/_configuration.py | 5 +++-- .../azure/resourcemanager/resources/aio/_client.py | 5 +++-- .../azure/resourcemanager/resources/aio/_configuration.py | 5 +++-- .../specs/azure/versioning/previewversion/_client.py | 5 +++-- .../specs/azure/versioning/previewversion/_configuration.py | 5 +++-- .../specs/azure/versioning/previewversion/aio/_client.py | 5 +++-- .../azure/versioning/previewversion/aio/_configuration.py | 5 +++-- .../generation/subdir2/_generated/_client.py | 5 +++-- .../generation/subdir2/_generated/_configuration.py | 5 +++-- .../generation/subdir2/_generated/aio/_client.py | 5 +++-- .../generation/subdir2/_generated/aio/_configuration.py | 5 +++-- .../resiliency/srv/driven1/_client.py | 5 +++-- .../resiliency/srv/driven1/_configuration.py | 5 +++-- .../resiliency/srv/driven1/aio/_client.py | 5 +++-- .../resiliency/srv/driven1/aio/_configuration.py | 5 +++-- .../resiliency/srv/driven2/_client.py | 5 +++-- .../resiliency/srv/driven2/_configuration.py | 5 +++-- .../resiliency/srv/driven2/aio/_client.py | 5 +++-- .../resiliency/srv/driven2/aio/_configuration.py | 5 +++-- .../server-path-multiple/server/path/multiple/_client.py | 5 +++-- .../server/path/multiple/_configuration.py | 5 +++-- .../server/path/multiple/aio/_client.py | 5 +++-- .../server/path/multiple/aio/_configuration.py | 5 +++-- .../server/versions/versioned/_client.py | 6 +++--- .../server/versions/versioned/_configuration.py | 6 +++--- .../server/versions/versioned/aio/_client.py | 6 +++--- .../server/versions/versioned/aio/_configuration.py | 6 +++--- .../azure/versioning-added/versioning/added/_client.py | 5 +++-- .../versioning-added/versioning/added/_configuration.py | 5 +++-- .../azure/versioning-added/versioning/added/aio/_client.py | 5 +++-- .../versioning-added/versioning/added/aio/_configuration.py | 5 +++-- .../versioning/madeoptional/_client.py | 5 +++-- .../versioning/madeoptional/_configuration.py | 5 +++-- .../versioning/madeoptional/aio/_client.py | 5 +++-- .../versioning/madeoptional/aio/_configuration.py | 5 +++-- .../azure/versioning-removed/versioning/removed/_client.py | 6 +++--- .../versioning-removed/versioning/removed/_configuration.py | 6 +++--- .../versioning-removed/versioning/removed/aio/_client.py | 6 +++--- .../versioning/removed/aio/_configuration.py | 6 +++--- .../versioning/renamedfrom/_client.py | 5 +++-- .../versioning/renamedfrom/_configuration.py | 5 +++-- .../versioning/renamedfrom/aio/_client.py | 5 +++-- .../versioning/renamedfrom/aio/_configuration.py | 5 +++-- .../versioning/returntypechangedfrom/_client.py | 5 +++-- .../versioning/returntypechangedfrom/_configuration.py | 5 +++-- .../versioning/returntypechangedfrom/aio/_client.py | 5 +++-- .../versioning/returntypechangedfrom/aio/_configuration.py | 5 +++-- .../versioning/typechangedfrom/_client.py | 5 +++-- .../versioning/typechangedfrom/_configuration.py | 5 +++-- .../versioning/typechangedfrom/aio/_client.py | 5 +++-- .../versioning/typechangedfrom/aio/_configuration.py | 5 +++-- .../generation/subdir2/_generated/_client.py | 5 +++-- .../generation/subdir2/_generated/_configuration.py | 5 +++-- .../generation/subdir2/_generated/aio/_client.py | 5 +++-- .../generation/subdir2/_generated/aio/_configuration.py | 5 +++-- .../server-path-multiple/server/path/multiple/_client.py | 5 +++-- .../server/path/multiple/_configuration.py | 5 +++-- .../server/path/multiple/aio/_client.py | 5 +++-- .../server/path/multiple/aio/_configuration.py | 5 +++-- .../server/versions/versioned/_client.py | 6 +++--- .../server/versions/versioned/_configuration.py | 6 +++--- .../server/versions/versioned/aio/_client.py | 6 +++--- .../server/versions/versioned/aio/_configuration.py | 6 +++--- .../unbranded/versioning-added/versioning/added/_client.py | 5 +++-- .../versioning-added/versioning/added/_configuration.py | 5 +++-- .../versioning-added/versioning/added/aio/_client.py | 5 +++-- .../versioning-added/versioning/added/aio/_configuration.py | 5 +++-- .../versioning/madeoptional/_client.py | 5 +++-- .../versioning/madeoptional/_configuration.py | 5 +++-- .../versioning/madeoptional/aio/_client.py | 5 +++-- .../versioning/madeoptional/aio/_configuration.py | 5 +++-- .../versioning-removed/versioning/removed/_client.py | 6 +++--- .../versioning-removed/versioning/removed/_configuration.py | 6 +++--- .../versioning-removed/versioning/removed/aio/_client.py | 6 +++--- .../versioning/removed/aio/_configuration.py | 6 +++--- .../versioning/renamedfrom/_client.py | 5 +++-- .../versioning/renamedfrom/_configuration.py | 5 +++-- .../versioning/renamedfrom/aio/_client.py | 5 +++-- .../versioning/renamedfrom/aio/_configuration.py | 5 +++-- .../versioning/returntypechangedfrom/_client.py | 5 +++-- .../versioning/returntypechangedfrom/_configuration.py | 5 +++-- .../versioning/returntypechangedfrom/aio/_client.py | 5 +++-- .../versioning/returntypechangedfrom/aio/_configuration.py | 5 +++-- .../versioning/typechangedfrom/_client.py | 5 +++-- .../versioning/typechangedfrom/_configuration.py | 5 +++-- .../versioning/typechangedfrom/aio/_client.py | 5 +++-- .../versioning/typechangedfrom/aio/_configuration.py | 5 +++-- 144 files changed, 432 insertions(+), 304 deletions(-) diff --git a/packages/typespec-python/tests/generated/azure/azure-client-generator-core-api-version-header/client/alternateapiversion/service/header/_client.py b/packages/typespec-python/tests/generated/azure/azure-client-generator-core-api-version-header/client/alternateapiversion/service/header/_client.py index c004958e3b..5caa918fa5 100644 --- a/packages/typespec-python/tests/generated/azure/azure-client-generator-core-api-version-header/client/alternateapiversion/service/header/_client.py +++ b/packages/typespec-python/tests/generated/azure/azure-client-generator-core-api-version-header/client/alternateapiversion/service/header/_client.py @@ -24,8 +24,9 @@ class HeaderClient(_HeaderClientOperationsMixin): # pylint: disable=client-acce :keyword endpoint: Service host. Default value is "http://localhost:3000". :paramtype endpoint: str - :keyword version: Known values are "2025-01-01". Default value is "2025-01-01". Note that - overriding this default value may result in unsupported behavior. + :keyword version: Known values are "2025-01-01" and None. Default value is None. If not set, + the operation's default API version will be used. Note that overriding this default value may + result in unsupported behavior. :paramtype version: str """ diff --git a/packages/typespec-python/tests/generated/azure/azure-client-generator-core-api-version-header/client/alternateapiversion/service/header/_configuration.py b/packages/typespec-python/tests/generated/azure/azure-client-generator-core-api-version-header/client/alternateapiversion/service/header/_configuration.py index fa38660a7e..8ab8b61646 100644 --- a/packages/typespec-python/tests/generated/azure/azure-client-generator-core-api-version-header/client/alternateapiversion/service/header/_configuration.py +++ b/packages/typespec-python/tests/generated/azure/azure-client-generator-core-api-version-header/client/alternateapiversion/service/header/_configuration.py @@ -21,8 +21,9 @@ class HeaderClientConfiguration: # pylint: disable=too-many-instance-attributes :param endpoint: Service host. Default value is "http://localhost:3000". :type endpoint: str - :keyword version: Known values are "2025-01-01". Default value is "2025-01-01". Note that - overriding this default value may result in unsupported behavior. + :keyword version: Known values are "2025-01-01" and None. Default value is None. If not set, + the operation's default API version will be used. Note that overriding this default value may + result in unsupported behavior. :paramtype version: str """ diff --git a/packages/typespec-python/tests/generated/azure/azure-client-generator-core-api-version-header/client/alternateapiversion/service/header/aio/_client.py b/packages/typespec-python/tests/generated/azure/azure-client-generator-core-api-version-header/client/alternateapiversion/service/header/aio/_client.py index 2d7c0b4744..74d0e35037 100644 --- a/packages/typespec-python/tests/generated/azure/azure-client-generator-core-api-version-header/client/alternateapiversion/service/header/aio/_client.py +++ b/packages/typespec-python/tests/generated/azure/azure-client-generator-core-api-version-header/client/alternateapiversion/service/header/aio/_client.py @@ -24,8 +24,9 @@ class HeaderClient(_HeaderClientOperationsMixin): # pylint: disable=client-acce :keyword endpoint: Service host. Default value is "http://localhost:3000". :paramtype endpoint: str - :keyword version: Known values are "2025-01-01". Default value is "2025-01-01". Note that - overriding this default value may result in unsupported behavior. + :keyword version: Known values are "2025-01-01" and None. Default value is None. If not set, + the operation's default API version will be used. Note that overriding this default value may + result in unsupported behavior. :paramtype version: str """ diff --git a/packages/typespec-python/tests/generated/azure/azure-client-generator-core-api-version-header/client/alternateapiversion/service/header/aio/_configuration.py b/packages/typespec-python/tests/generated/azure/azure-client-generator-core-api-version-header/client/alternateapiversion/service/header/aio/_configuration.py index 7791bf0233..ba34c74e6b 100644 --- a/packages/typespec-python/tests/generated/azure/azure-client-generator-core-api-version-header/client/alternateapiversion/service/header/aio/_configuration.py +++ b/packages/typespec-python/tests/generated/azure/azure-client-generator-core-api-version-header/client/alternateapiversion/service/header/aio/_configuration.py @@ -21,8 +21,9 @@ class HeaderClientConfiguration: # pylint: disable=too-many-instance-attributes :param endpoint: Service host. Default value is "http://localhost:3000". :type endpoint: str - :keyword version: Known values are "2025-01-01". Default value is "2025-01-01". Note that - overriding this default value may result in unsupported behavior. + :keyword version: Known values are "2025-01-01" and None. Default value is None. If not set, + the operation's default API version will be used. Note that overriding this default value may + result in unsupported behavior. :paramtype version: str """ diff --git a/packages/typespec-python/tests/generated/azure/azure-client-generator-core-api-version-path/client/alternateapiversion/service/path/_client.py b/packages/typespec-python/tests/generated/azure/azure-client-generator-core-api-version-path/client/alternateapiversion/service/path/_client.py index a8d367f9f0..f3dc482bcd 100644 --- a/packages/typespec-python/tests/generated/azure/azure-client-generator-core-api-version-path/client/alternateapiversion/service/path/_client.py +++ b/packages/typespec-python/tests/generated/azure/azure-client-generator-core-api-version-path/client/alternateapiversion/service/path/_client.py @@ -24,8 +24,9 @@ class PathClient(_PathClientOperationsMixin): # pylint: disable=client-accepts- :keyword endpoint: Service host. Default value is "http://localhost:3000". :paramtype endpoint: str - :keyword version: Known values are "2025-01-01". Default value is "2025-01-01". Note that - overriding this default value may result in unsupported behavior. + :keyword version: Known values are "2025-01-01" and None. Default value is None. If not set, + the operation's default API version will be used. Note that overriding this default value may + result in unsupported behavior. :paramtype version: str """ diff --git a/packages/typespec-python/tests/generated/azure/azure-client-generator-core-api-version-path/client/alternateapiversion/service/path/_configuration.py b/packages/typespec-python/tests/generated/azure/azure-client-generator-core-api-version-path/client/alternateapiversion/service/path/_configuration.py index bdcc0b07a6..dea6ed38e7 100644 --- a/packages/typespec-python/tests/generated/azure/azure-client-generator-core-api-version-path/client/alternateapiversion/service/path/_configuration.py +++ b/packages/typespec-python/tests/generated/azure/azure-client-generator-core-api-version-path/client/alternateapiversion/service/path/_configuration.py @@ -21,8 +21,9 @@ class PathClientConfiguration: # pylint: disable=too-many-instance-attributes :param endpoint: Service host. Default value is "http://localhost:3000". :type endpoint: str - :keyword version: Known values are "2025-01-01". Default value is "2025-01-01". Note that - overriding this default value may result in unsupported behavior. + :keyword version: Known values are "2025-01-01" and None. Default value is None. If not set, + the operation's default API version will be used. Note that overriding this default value may + result in unsupported behavior. :paramtype version: str """ diff --git a/packages/typespec-python/tests/generated/azure/azure-client-generator-core-api-version-path/client/alternateapiversion/service/path/aio/_client.py b/packages/typespec-python/tests/generated/azure/azure-client-generator-core-api-version-path/client/alternateapiversion/service/path/aio/_client.py index 11b9983662..eb223856d4 100644 --- a/packages/typespec-python/tests/generated/azure/azure-client-generator-core-api-version-path/client/alternateapiversion/service/path/aio/_client.py +++ b/packages/typespec-python/tests/generated/azure/azure-client-generator-core-api-version-path/client/alternateapiversion/service/path/aio/_client.py @@ -24,8 +24,9 @@ class PathClient(_PathClientOperationsMixin): # pylint: disable=client-accepts- :keyword endpoint: Service host. Default value is "http://localhost:3000". :paramtype endpoint: str - :keyword version: Known values are "2025-01-01". Default value is "2025-01-01". Note that - overriding this default value may result in unsupported behavior. + :keyword version: Known values are "2025-01-01" and None. Default value is None. If not set, + the operation's default API version will be used. Note that overriding this default value may + result in unsupported behavior. :paramtype version: str """ diff --git a/packages/typespec-python/tests/generated/azure/azure-client-generator-core-api-version-path/client/alternateapiversion/service/path/aio/_configuration.py b/packages/typespec-python/tests/generated/azure/azure-client-generator-core-api-version-path/client/alternateapiversion/service/path/aio/_configuration.py index a5873e00f7..1987027ac0 100644 --- a/packages/typespec-python/tests/generated/azure/azure-client-generator-core-api-version-path/client/alternateapiversion/service/path/aio/_configuration.py +++ b/packages/typespec-python/tests/generated/azure/azure-client-generator-core-api-version-path/client/alternateapiversion/service/path/aio/_configuration.py @@ -21,8 +21,9 @@ class PathClientConfiguration: # pylint: disable=too-many-instance-attributes :param endpoint: Service host. Default value is "http://localhost:3000". :type endpoint: str - :keyword version: Known values are "2025-01-01". Default value is "2025-01-01". Note that - overriding this default value may result in unsupported behavior. + :keyword version: Known values are "2025-01-01" and None. Default value is None. If not set, + the operation's default API version will be used. Note that overriding this default value may + result in unsupported behavior. :paramtype version: str """ diff --git a/packages/typespec-python/tests/generated/azure/azure-client-generator-core-api-version-query/client/alternateapiversion/service/query/_client.py b/packages/typespec-python/tests/generated/azure/azure-client-generator-core-api-version-query/client/alternateapiversion/service/query/_client.py index fe00df1f90..75edccdf7e 100644 --- a/packages/typespec-python/tests/generated/azure/azure-client-generator-core-api-version-query/client/alternateapiversion/service/query/_client.py +++ b/packages/typespec-python/tests/generated/azure/azure-client-generator-core-api-version-query/client/alternateapiversion/service/query/_client.py @@ -24,8 +24,9 @@ class QueryClient(_QueryClientOperationsMixin): # pylint: disable=client-accept :keyword endpoint: Service host. Default value is "http://localhost:3000". :paramtype endpoint: str - :keyword version: Known values are "2025-01-01". Default value is "2025-01-01". Note that - overriding this default value may result in unsupported behavior. + :keyword version: Known values are "2025-01-01" and None. Default value is None. If not set, + the operation's default API version will be used. Note that overriding this default value may + result in unsupported behavior. :paramtype version: str """ diff --git a/packages/typespec-python/tests/generated/azure/azure-client-generator-core-api-version-query/client/alternateapiversion/service/query/_configuration.py b/packages/typespec-python/tests/generated/azure/azure-client-generator-core-api-version-query/client/alternateapiversion/service/query/_configuration.py index 0aadfabd80..4cb21f95c1 100644 --- a/packages/typespec-python/tests/generated/azure/azure-client-generator-core-api-version-query/client/alternateapiversion/service/query/_configuration.py +++ b/packages/typespec-python/tests/generated/azure/azure-client-generator-core-api-version-query/client/alternateapiversion/service/query/_configuration.py @@ -21,8 +21,9 @@ class QueryClientConfiguration: # pylint: disable=too-many-instance-attributes :param endpoint: Service host. Default value is "http://localhost:3000". :type endpoint: str - :keyword version: Known values are "2025-01-01". Default value is "2025-01-01". Note that - overriding this default value may result in unsupported behavior. + :keyword version: Known values are "2025-01-01" and None. Default value is None. If not set, + the operation's default API version will be used. Note that overriding this default value may + result in unsupported behavior. :paramtype version: str """ diff --git a/packages/typespec-python/tests/generated/azure/azure-client-generator-core-api-version-query/client/alternateapiversion/service/query/aio/_client.py b/packages/typespec-python/tests/generated/azure/azure-client-generator-core-api-version-query/client/alternateapiversion/service/query/aio/_client.py index 027866f24b..9805772f70 100644 --- a/packages/typespec-python/tests/generated/azure/azure-client-generator-core-api-version-query/client/alternateapiversion/service/query/aio/_client.py +++ b/packages/typespec-python/tests/generated/azure/azure-client-generator-core-api-version-query/client/alternateapiversion/service/query/aio/_client.py @@ -24,8 +24,9 @@ class QueryClient(_QueryClientOperationsMixin): # pylint: disable=client-accept :keyword endpoint: Service host. Default value is "http://localhost:3000". :paramtype endpoint: str - :keyword version: Known values are "2025-01-01". Default value is "2025-01-01". Note that - overriding this default value may result in unsupported behavior. + :keyword version: Known values are "2025-01-01" and None. Default value is None. If not set, + the operation's default API version will be used. Note that overriding this default value may + result in unsupported behavior. :paramtype version: str """ diff --git a/packages/typespec-python/tests/generated/azure/azure-client-generator-core-api-version-query/client/alternateapiversion/service/query/aio/_configuration.py b/packages/typespec-python/tests/generated/azure/azure-client-generator-core-api-version-query/client/alternateapiversion/service/query/aio/_configuration.py index 26642efa80..ed78d3e2ee 100644 --- a/packages/typespec-python/tests/generated/azure/azure-client-generator-core-api-version-query/client/alternateapiversion/service/query/aio/_configuration.py +++ b/packages/typespec-python/tests/generated/azure/azure-client-generator-core-api-version-query/client/alternateapiversion/service/query/aio/_configuration.py @@ -21,8 +21,9 @@ class QueryClientConfiguration: # pylint: disable=too-many-instance-attributes :param endpoint: Service host. Default value is "http://localhost:3000". :type endpoint: str - :keyword version: Known values are "2025-01-01". Default value is "2025-01-01". Note that - overriding this default value may result in unsupported behavior. + :keyword version: Known values are "2025-01-01" and None. Default value is None. If not set, + the operation's default API version will be used. Note that overriding this default value may + result in unsupported behavior. :paramtype version: str """ diff --git a/packages/typespec-python/tests/generated/azure/azure-core-basic/specs/azure/core/basic/_client.py b/packages/typespec-python/tests/generated/azure/azure-core-basic/specs/azure/core/basic/_client.py index 4b6bfcbfb7..8a8296eab8 100644 --- a/packages/typespec-python/tests/generated/azure/azure-core-basic/specs/azure/core/basic/_client.py +++ b/packages/typespec-python/tests/generated/azure/azure-core-basic/specs/azure/core/basic/_client.py @@ -25,8 +25,9 @@ class BasicClient(_BasicClientOperationsMixin): :keyword endpoint: Service host. Default value is "http://localhost:3000". :paramtype endpoint: str :keyword api_version: The API version to use for this operation. Known values are - "2022-12-01-preview". Default value is "2022-12-01-preview". Note that overriding this default - value may result in unsupported behavior. + "2022-12-01-preview" and None. Default value is None. If not set, the operation's default API + version will be used. Note that overriding this default value may result in unsupported + behavior. :paramtype api_version: str """ diff --git a/packages/typespec-python/tests/generated/azure/azure-core-basic/specs/azure/core/basic/_configuration.py b/packages/typespec-python/tests/generated/azure/azure-core-basic/specs/azure/core/basic/_configuration.py index 52a9caafe3..7f5f80c265 100644 --- a/packages/typespec-python/tests/generated/azure/azure-core-basic/specs/azure/core/basic/_configuration.py +++ b/packages/typespec-python/tests/generated/azure/azure-core-basic/specs/azure/core/basic/_configuration.py @@ -22,8 +22,9 @@ class BasicClientConfiguration: # pylint: disable=too-many-instance-attributes :param endpoint: Service host. Default value is "http://localhost:3000". :type endpoint: str :keyword api_version: The API version to use for this operation. Known values are - "2022-12-01-preview". Default value is "2022-12-01-preview". Note that overriding this default - value may result in unsupported behavior. + "2022-12-01-preview" and None. Default value is None. If not set, the operation's default API + version will be used. Note that overriding this default value may result in unsupported + behavior. :paramtype api_version: str """ diff --git a/packages/typespec-python/tests/generated/azure/azure-core-basic/specs/azure/core/basic/aio/_client.py b/packages/typespec-python/tests/generated/azure/azure-core-basic/specs/azure/core/basic/aio/_client.py index 6d3a76e05e..d1ffea1fa3 100644 --- a/packages/typespec-python/tests/generated/azure/azure-core-basic/specs/azure/core/basic/aio/_client.py +++ b/packages/typespec-python/tests/generated/azure/azure-core-basic/specs/azure/core/basic/aio/_client.py @@ -25,8 +25,9 @@ class BasicClient(_BasicClientOperationsMixin): :keyword endpoint: Service host. Default value is "http://localhost:3000". :paramtype endpoint: str :keyword api_version: The API version to use for this operation. Known values are - "2022-12-01-preview". Default value is "2022-12-01-preview". Note that overriding this default - value may result in unsupported behavior. + "2022-12-01-preview" and None. Default value is None. If not set, the operation's default API + version will be used. Note that overriding this default value may result in unsupported + behavior. :paramtype api_version: str """ diff --git a/packages/typespec-python/tests/generated/azure/azure-core-basic/specs/azure/core/basic/aio/_configuration.py b/packages/typespec-python/tests/generated/azure/azure-core-basic/specs/azure/core/basic/aio/_configuration.py index 7e4165c3eb..5d6a66954c 100644 --- a/packages/typespec-python/tests/generated/azure/azure-core-basic/specs/azure/core/basic/aio/_configuration.py +++ b/packages/typespec-python/tests/generated/azure/azure-core-basic/specs/azure/core/basic/aio/_configuration.py @@ -22,8 +22,9 @@ class BasicClientConfiguration: # pylint: disable=too-many-instance-attributes :param endpoint: Service host. Default value is "http://localhost:3000". :type endpoint: str :keyword api_version: The API version to use for this operation. Known values are - "2022-12-01-preview". Default value is "2022-12-01-preview". Note that overriding this default - value may result in unsupported behavior. + "2022-12-01-preview" and None. Default value is None. If not set, the operation's default API + version will be used. Note that overriding this default value may result in unsupported + behavior. :paramtype api_version: str """ diff --git a/packages/typespec-python/tests/generated/azure/azure-core-lro-rpc/specs/azure/core/lro/rpc/_client.py b/packages/typespec-python/tests/generated/azure/azure-core-lro-rpc/specs/azure/core/lro/rpc/_client.py index 3055280042..acd49a788b 100644 --- a/packages/typespec-python/tests/generated/azure/azure-core-lro-rpc/specs/azure/core/lro/rpc/_client.py +++ b/packages/typespec-python/tests/generated/azure/azure-core-lro-rpc/specs/azure/core/lro/rpc/_client.py @@ -25,8 +25,9 @@ class RpcClient(_RpcClientOperationsMixin): :keyword endpoint: Service host. Default value is "http://localhost:3000". :paramtype endpoint: str :keyword api_version: The API version to use for this operation. Known values are - "2022-12-01-preview". Default value is "2022-12-01-preview". Note that overriding this default - value may result in unsupported behavior. + "2022-12-01-preview" and None. Default value is None. If not set, the operation's default API + version will be used. Note that overriding this default value may result in unsupported + behavior. :paramtype api_version: str :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. diff --git a/packages/typespec-python/tests/generated/azure/azure-core-lro-rpc/specs/azure/core/lro/rpc/_configuration.py b/packages/typespec-python/tests/generated/azure/azure-core-lro-rpc/specs/azure/core/lro/rpc/_configuration.py index 9e2f161f4f..8b63d4ae0c 100644 --- a/packages/typespec-python/tests/generated/azure/azure-core-lro-rpc/specs/azure/core/lro/rpc/_configuration.py +++ b/packages/typespec-python/tests/generated/azure/azure-core-lro-rpc/specs/azure/core/lro/rpc/_configuration.py @@ -22,8 +22,9 @@ class RpcClientConfiguration: # pylint: disable=too-many-instance-attributes :param endpoint: Service host. Default value is "http://localhost:3000". :type endpoint: str :keyword api_version: The API version to use for this operation. Known values are - "2022-12-01-preview". Default value is "2022-12-01-preview". Note that overriding this default - value may result in unsupported behavior. + "2022-12-01-preview" and None. Default value is None. If not set, the operation's default API + version will be used. Note that overriding this default value may result in unsupported + behavior. :paramtype api_version: str """ diff --git a/packages/typespec-python/tests/generated/azure/azure-core-lro-rpc/specs/azure/core/lro/rpc/aio/_client.py b/packages/typespec-python/tests/generated/azure/azure-core-lro-rpc/specs/azure/core/lro/rpc/aio/_client.py index d5aec7264d..f5895bce2f 100644 --- a/packages/typespec-python/tests/generated/azure/azure-core-lro-rpc/specs/azure/core/lro/rpc/aio/_client.py +++ b/packages/typespec-python/tests/generated/azure/azure-core-lro-rpc/specs/azure/core/lro/rpc/aio/_client.py @@ -25,8 +25,9 @@ class RpcClient(_RpcClientOperationsMixin): :keyword endpoint: Service host. Default value is "http://localhost:3000". :paramtype endpoint: str :keyword api_version: The API version to use for this operation. Known values are - "2022-12-01-preview". Default value is "2022-12-01-preview". Note that overriding this default - value may result in unsupported behavior. + "2022-12-01-preview" and None. Default value is None. If not set, the operation's default API + version will be used. Note that overriding this default value may result in unsupported + behavior. :paramtype api_version: str :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. diff --git a/packages/typespec-python/tests/generated/azure/azure-core-lro-rpc/specs/azure/core/lro/rpc/aio/_configuration.py b/packages/typespec-python/tests/generated/azure/azure-core-lro-rpc/specs/azure/core/lro/rpc/aio/_configuration.py index cdb8280734..e765263063 100644 --- a/packages/typespec-python/tests/generated/azure/azure-core-lro-rpc/specs/azure/core/lro/rpc/aio/_configuration.py +++ b/packages/typespec-python/tests/generated/azure/azure-core-lro-rpc/specs/azure/core/lro/rpc/aio/_configuration.py @@ -22,8 +22,9 @@ class RpcClientConfiguration: # pylint: disable=too-many-instance-attributes :param endpoint: Service host. Default value is "http://localhost:3000". :type endpoint: str :keyword api_version: The API version to use for this operation. Known values are - "2022-12-01-preview". Default value is "2022-12-01-preview". Note that overriding this default - value may result in unsupported behavior. + "2022-12-01-preview" and None. Default value is None. If not set, the operation's default API + version will be used. Note that overriding this default value may result in unsupported + behavior. :paramtype api_version: str """ diff --git a/packages/typespec-python/tests/generated/azure/azure-core-lro-standard/specs/azure/core/lro/standard/_client.py b/packages/typespec-python/tests/generated/azure/azure-core-lro-standard/specs/azure/core/lro/standard/_client.py index 2c5c605b41..da4c813fbb 100644 --- a/packages/typespec-python/tests/generated/azure/azure-core-lro-standard/specs/azure/core/lro/standard/_client.py +++ b/packages/typespec-python/tests/generated/azure/azure-core-lro-standard/specs/azure/core/lro/standard/_client.py @@ -25,8 +25,9 @@ class StandardClient(_StandardClientOperationsMixin): :keyword endpoint: Service host. Default value is "http://localhost:3000". :paramtype endpoint: str :keyword api_version: The API version to use for this operation. Known values are - "2022-12-01-preview". Default value is "2022-12-01-preview". Note that overriding this default - value may result in unsupported behavior. + "2022-12-01-preview" and None. Default value is None. If not set, the operation's default API + version will be used. Note that overriding this default value may result in unsupported + behavior. :paramtype api_version: str :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. diff --git a/packages/typespec-python/tests/generated/azure/azure-core-lro-standard/specs/azure/core/lro/standard/_configuration.py b/packages/typespec-python/tests/generated/azure/azure-core-lro-standard/specs/azure/core/lro/standard/_configuration.py index ddab078ccd..bb0a6e5975 100644 --- a/packages/typespec-python/tests/generated/azure/azure-core-lro-standard/specs/azure/core/lro/standard/_configuration.py +++ b/packages/typespec-python/tests/generated/azure/azure-core-lro-standard/specs/azure/core/lro/standard/_configuration.py @@ -22,8 +22,9 @@ class StandardClientConfiguration: # pylint: disable=too-many-instance-attribut :param endpoint: Service host. Default value is "http://localhost:3000". :type endpoint: str :keyword api_version: The API version to use for this operation. Known values are - "2022-12-01-preview". Default value is "2022-12-01-preview". Note that overriding this default - value may result in unsupported behavior. + "2022-12-01-preview" and None. Default value is None. If not set, the operation's default API + version will be used. Note that overriding this default value may result in unsupported + behavior. :paramtype api_version: str """ diff --git a/packages/typespec-python/tests/generated/azure/azure-core-lro-standard/specs/azure/core/lro/standard/aio/_client.py b/packages/typespec-python/tests/generated/azure/azure-core-lro-standard/specs/azure/core/lro/standard/aio/_client.py index 8d429f22da..79c0a0a27a 100644 --- a/packages/typespec-python/tests/generated/azure/azure-core-lro-standard/specs/azure/core/lro/standard/aio/_client.py +++ b/packages/typespec-python/tests/generated/azure/azure-core-lro-standard/specs/azure/core/lro/standard/aio/_client.py @@ -25,8 +25,9 @@ class StandardClient(_StandardClientOperationsMixin): :keyword endpoint: Service host. Default value is "http://localhost:3000". :paramtype endpoint: str :keyword api_version: The API version to use for this operation. Known values are - "2022-12-01-preview". Default value is "2022-12-01-preview". Note that overriding this default - value may result in unsupported behavior. + "2022-12-01-preview" and None. Default value is None. If not set, the operation's default API + version will be used. Note that overriding this default value may result in unsupported + behavior. :paramtype api_version: str :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. diff --git a/packages/typespec-python/tests/generated/azure/azure-core-lro-standard/specs/azure/core/lro/standard/aio/_configuration.py b/packages/typespec-python/tests/generated/azure/azure-core-lro-standard/specs/azure/core/lro/standard/aio/_configuration.py index 5639a93639..46dc9f6400 100644 --- a/packages/typespec-python/tests/generated/azure/azure-core-lro-standard/specs/azure/core/lro/standard/aio/_configuration.py +++ b/packages/typespec-python/tests/generated/azure/azure-core-lro-standard/specs/azure/core/lro/standard/aio/_configuration.py @@ -22,8 +22,9 @@ class StandardClientConfiguration: # pylint: disable=too-many-instance-attribut :param endpoint: Service host. Default value is "http://localhost:3000". :type endpoint: str :keyword api_version: The API version to use for this operation. Known values are - "2022-12-01-preview". Default value is "2022-12-01-preview". Note that overriding this default - value may result in unsupported behavior. + "2022-12-01-preview" and None. Default value is None. If not set, the operation's default API + version will be used. Note that overriding this default value may result in unsupported + behavior. :paramtype api_version: str """ diff --git a/packages/typespec-python/tests/generated/azure/azure-core-page/specs/azure/core/page/_client.py b/packages/typespec-python/tests/generated/azure/azure-core-page/specs/azure/core/page/_client.py index c777475241..03abd3d712 100644 --- a/packages/typespec-python/tests/generated/azure/azure-core-page/specs/azure/core/page/_client.py +++ b/packages/typespec-python/tests/generated/azure/azure-core-page/specs/azure/core/page/_client.py @@ -28,8 +28,9 @@ class PageClient(_PageClientOperationsMixin): :keyword endpoint: Service host. Default value is "http://localhost:3000". :paramtype endpoint: str :keyword api_version: The API version to use for this operation. Known values are - "2022-12-01-preview". Default value is "2022-12-01-preview". Note that overriding this default - value may result in unsupported behavior. + "2022-12-01-preview" and None. Default value is None. If not set, the operation's default API + version will be used. Note that overriding this default value may result in unsupported + behavior. :paramtype api_version: str """ diff --git a/packages/typespec-python/tests/generated/azure/azure-core-page/specs/azure/core/page/_configuration.py b/packages/typespec-python/tests/generated/azure/azure-core-page/specs/azure/core/page/_configuration.py index 5cd642edfa..80adea6b66 100644 --- a/packages/typespec-python/tests/generated/azure/azure-core-page/specs/azure/core/page/_configuration.py +++ b/packages/typespec-python/tests/generated/azure/azure-core-page/specs/azure/core/page/_configuration.py @@ -22,8 +22,9 @@ class PageClientConfiguration: # pylint: disable=too-many-instance-attributes :param endpoint: Service host. Default value is "http://localhost:3000". :type endpoint: str :keyword api_version: The API version to use for this operation. Known values are - "2022-12-01-preview". Default value is "2022-12-01-preview". Note that overriding this default - value may result in unsupported behavior. + "2022-12-01-preview" and None. Default value is None. If not set, the operation's default API + version will be used. Note that overriding this default value may result in unsupported + behavior. :paramtype api_version: str """ diff --git a/packages/typespec-python/tests/generated/azure/azure-core-page/specs/azure/core/page/aio/_client.py b/packages/typespec-python/tests/generated/azure/azure-core-page/specs/azure/core/page/aio/_client.py index 8ec0eff038..131fcb2fbb 100644 --- a/packages/typespec-python/tests/generated/azure/azure-core-page/specs/azure/core/page/aio/_client.py +++ b/packages/typespec-python/tests/generated/azure/azure-core-page/specs/azure/core/page/aio/_client.py @@ -28,8 +28,9 @@ class PageClient(_PageClientOperationsMixin): :keyword endpoint: Service host. Default value is "http://localhost:3000". :paramtype endpoint: str :keyword api_version: The API version to use for this operation. Known values are - "2022-12-01-preview". Default value is "2022-12-01-preview". Note that overriding this default - value may result in unsupported behavior. + "2022-12-01-preview" and None. Default value is None. If not set, the operation's default API + version will be used. Note that overriding this default value may result in unsupported + behavior. :paramtype api_version: str """ diff --git a/packages/typespec-python/tests/generated/azure/azure-core-page/specs/azure/core/page/aio/_configuration.py b/packages/typespec-python/tests/generated/azure/azure-core-page/specs/azure/core/page/aio/_configuration.py index 5185d0037b..628ff48851 100644 --- a/packages/typespec-python/tests/generated/azure/azure-core-page/specs/azure/core/page/aio/_configuration.py +++ b/packages/typespec-python/tests/generated/azure/azure-core-page/specs/azure/core/page/aio/_configuration.py @@ -22,8 +22,9 @@ class PageClientConfiguration: # pylint: disable=too-many-instance-attributes :param endpoint: Service host. Default value is "http://localhost:3000". :type endpoint: str :keyword api_version: The API version to use for this operation. Known values are - "2022-12-01-preview". Default value is "2022-12-01-preview". Note that overriding this default - value may result in unsupported behavior. + "2022-12-01-preview" and None. Default value is None. If not set, the operation's default API + version will be used. Note that overriding this default value may result in unsupported + behavior. :paramtype api_version: str """ diff --git a/packages/typespec-python/tests/generated/azure/azure-core-traits/specs/azure/core/traits/_client.py b/packages/typespec-python/tests/generated/azure/azure-core-traits/specs/azure/core/traits/_client.py index da980c8194..e28b69d8b3 100644 --- a/packages/typespec-python/tests/generated/azure/azure-core-traits/specs/azure/core/traits/_client.py +++ b/packages/typespec-python/tests/generated/azure/azure-core-traits/specs/azure/core/traits/_client.py @@ -25,8 +25,9 @@ class TraitsClient(_TraitsClientOperationsMixin): :keyword endpoint: Service host. Default value is "http://localhost:3000". :paramtype endpoint: str :keyword api_version: The API version to use for this operation. Known values are - "2022-12-01-preview". Default value is "2022-12-01-preview". Note that overriding this default - value may result in unsupported behavior. + "2022-12-01-preview" and None. Default value is None. If not set, the operation's default API + version will be used. Note that overriding this default value may result in unsupported + behavior. :paramtype api_version: str """ diff --git a/packages/typespec-python/tests/generated/azure/azure-core-traits/specs/azure/core/traits/_configuration.py b/packages/typespec-python/tests/generated/azure/azure-core-traits/specs/azure/core/traits/_configuration.py index bc67ebe075..b1a6d90a86 100644 --- a/packages/typespec-python/tests/generated/azure/azure-core-traits/specs/azure/core/traits/_configuration.py +++ b/packages/typespec-python/tests/generated/azure/azure-core-traits/specs/azure/core/traits/_configuration.py @@ -22,8 +22,9 @@ class TraitsClientConfiguration: # pylint: disable=too-many-instance-attributes :param endpoint: Service host. Default value is "http://localhost:3000". :type endpoint: str :keyword api_version: The API version to use for this operation. Known values are - "2022-12-01-preview". Default value is "2022-12-01-preview". Note that overriding this default - value may result in unsupported behavior. + "2022-12-01-preview" and None. Default value is None. If not set, the operation's default API + version will be used. Note that overriding this default value may result in unsupported + behavior. :paramtype api_version: str """ diff --git a/packages/typespec-python/tests/generated/azure/azure-core-traits/specs/azure/core/traits/aio/_client.py b/packages/typespec-python/tests/generated/azure/azure-core-traits/specs/azure/core/traits/aio/_client.py index d111a11d86..8b2ec0a028 100644 --- a/packages/typespec-python/tests/generated/azure/azure-core-traits/specs/azure/core/traits/aio/_client.py +++ b/packages/typespec-python/tests/generated/azure/azure-core-traits/specs/azure/core/traits/aio/_client.py @@ -25,8 +25,9 @@ class TraitsClient(_TraitsClientOperationsMixin): :keyword endpoint: Service host. Default value is "http://localhost:3000". :paramtype endpoint: str :keyword api_version: The API version to use for this operation. Known values are - "2022-12-01-preview". Default value is "2022-12-01-preview". Note that overriding this default - value may result in unsupported behavior. + "2022-12-01-preview" and None. Default value is None. If not set, the operation's default API + version will be used. Note that overriding this default value may result in unsupported + behavior. :paramtype api_version: str """ diff --git a/packages/typespec-python/tests/generated/azure/azure-core-traits/specs/azure/core/traits/aio/_configuration.py b/packages/typespec-python/tests/generated/azure/azure-core-traits/specs/azure/core/traits/aio/_configuration.py index 915cf567dd..0b22c6391f 100644 --- a/packages/typespec-python/tests/generated/azure/azure-core-traits/specs/azure/core/traits/aio/_configuration.py +++ b/packages/typespec-python/tests/generated/azure/azure-core-traits/specs/azure/core/traits/aio/_configuration.py @@ -22,8 +22,9 @@ class TraitsClientConfiguration: # pylint: disable=too-many-instance-attributes :param endpoint: Service host. Default value is "http://localhost:3000". :type endpoint: str :keyword api_version: The API version to use for this operation. Known values are - "2022-12-01-preview". Default value is "2022-12-01-preview". Note that overriding this default - value may result in unsupported behavior. + "2022-12-01-preview" and None. Default value is None. If not set, the operation's default API + version will be used. Note that overriding this default value may result in unsupported + behavior. :paramtype api_version: str """ diff --git a/packages/typespec-python/tests/generated/azure/azure-example-basic/specs/azure/example/basic/_client.py b/packages/typespec-python/tests/generated/azure/azure-example-basic/specs/azure/example/basic/_client.py index c1a3880db7..0f387711f3 100644 --- a/packages/typespec-python/tests/generated/azure/azure-example-basic/specs/azure/example/basic/_client.py +++ b/packages/typespec-python/tests/generated/azure/azure-example-basic/specs/azure/example/basic/_client.py @@ -25,8 +25,9 @@ class AzureExampleClient(_AzureExampleClientOperationsMixin): :keyword endpoint: Service host. Default value is "http://localhost:3000". :paramtype endpoint: str :keyword api_version: The API version to use for this operation. Known values are - "2022-12-01-preview". Default value is "2022-12-01-preview". Note that overriding this default - value may result in unsupported behavior. + "2022-12-01-preview" and None. Default value is None. If not set, the operation's default API + version will be used. Note that overriding this default value may result in unsupported + behavior. :paramtype api_version: str """ diff --git a/packages/typespec-python/tests/generated/azure/azure-example-basic/specs/azure/example/basic/_configuration.py b/packages/typespec-python/tests/generated/azure/azure-example-basic/specs/azure/example/basic/_configuration.py index 5bc9bc31bd..4996718222 100644 --- a/packages/typespec-python/tests/generated/azure/azure-example-basic/specs/azure/example/basic/_configuration.py +++ b/packages/typespec-python/tests/generated/azure/azure-example-basic/specs/azure/example/basic/_configuration.py @@ -22,8 +22,9 @@ class AzureExampleClientConfiguration: # pylint: disable=too-many-instance-attr :param endpoint: Service host. Default value is "http://localhost:3000". :type endpoint: str :keyword api_version: The API version to use for this operation. Known values are - "2022-12-01-preview". Default value is "2022-12-01-preview". Note that overriding this default - value may result in unsupported behavior. + "2022-12-01-preview" and None. Default value is None. If not set, the operation's default API + version will be used. Note that overriding this default value may result in unsupported + behavior. :paramtype api_version: str """ diff --git a/packages/typespec-python/tests/generated/azure/azure-example-basic/specs/azure/example/basic/aio/_client.py b/packages/typespec-python/tests/generated/azure/azure-example-basic/specs/azure/example/basic/aio/_client.py index 5d8fec87d4..e4bbd107c9 100644 --- a/packages/typespec-python/tests/generated/azure/azure-example-basic/specs/azure/example/basic/aio/_client.py +++ b/packages/typespec-python/tests/generated/azure/azure-example-basic/specs/azure/example/basic/aio/_client.py @@ -25,8 +25,9 @@ class AzureExampleClient(_AzureExampleClientOperationsMixin): :keyword endpoint: Service host. Default value is "http://localhost:3000". :paramtype endpoint: str :keyword api_version: The API version to use for this operation. Known values are - "2022-12-01-preview". Default value is "2022-12-01-preview". Note that overriding this default - value may result in unsupported behavior. + "2022-12-01-preview" and None. Default value is None. If not set, the operation's default API + version will be used. Note that overriding this default value may result in unsupported + behavior. :paramtype api_version: str """ diff --git a/packages/typespec-python/tests/generated/azure/azure-example-basic/specs/azure/example/basic/aio/_configuration.py b/packages/typespec-python/tests/generated/azure/azure-example-basic/specs/azure/example/basic/aio/_configuration.py index 7de3b3bc8d..0688c4595d 100644 --- a/packages/typespec-python/tests/generated/azure/azure-example-basic/specs/azure/example/basic/aio/_configuration.py +++ b/packages/typespec-python/tests/generated/azure/azure-example-basic/specs/azure/example/basic/aio/_configuration.py @@ -22,8 +22,9 @@ class AzureExampleClientConfiguration: # pylint: disable=too-many-instance-attr :param endpoint: Service host. Default value is "http://localhost:3000". :type endpoint: str :keyword api_version: The API version to use for this operation. Known values are - "2022-12-01-preview". Default value is "2022-12-01-preview". Note that overriding this default - value may result in unsupported behavior. + "2022-12-01-preview" and None. Default value is None. If not set, the operation's default API + version will be used. Note that overriding this default value may result in unsupported + behavior. :paramtype api_version: str """ diff --git a/packages/typespec-python/tests/generated/azure/azure-resource-manager-common-properties/azure/resourcemanager/commonproperties/_client.py b/packages/typespec-python/tests/generated/azure/azure-resource-manager-common-properties/azure/resourcemanager/commonproperties/_client.py index 387f3f807a..d94ad53fa8 100644 --- a/packages/typespec-python/tests/generated/azure/azure-resource-manager-common-properties/azure/resourcemanager/commonproperties/_client.py +++ b/packages/typespec-python/tests/generated/azure/azure-resource-manager-common-properties/azure/resourcemanager/commonproperties/_client.py @@ -44,8 +44,9 @@ class CommonPropertiesClient: None. :paramtype cloud_setting: ~azure.core.AzureClouds :keyword api_version: The API version to use for this operation. Known values are - "2023-12-01-preview". Default value is "2023-12-01-preview". Note that overriding this default - value may result in unsupported behavior. + "2023-12-01-preview" and None. Default value is None. If not set, the operation's default API + version will be used. Note that overriding this default value may result in unsupported + behavior. :paramtype api_version: str """ diff --git a/packages/typespec-python/tests/generated/azure/azure-resource-manager-common-properties/azure/resourcemanager/commonproperties/_configuration.py b/packages/typespec-python/tests/generated/azure/azure-resource-manager-common-properties/azure/resourcemanager/commonproperties/_configuration.py index 76c63fc6fb..d5fa8c0866 100644 --- a/packages/typespec-python/tests/generated/azure/azure-resource-manager-common-properties/azure/resourcemanager/commonproperties/_configuration.py +++ b/packages/typespec-python/tests/generated/azure/azure-resource-manager-common-properties/azure/resourcemanager/commonproperties/_configuration.py @@ -34,8 +34,9 @@ class CommonPropertiesClientConfiguration: # pylint: disable=too-many-instance- None. :type cloud_setting: ~azure.core.AzureClouds :keyword api_version: The API version to use for this operation. Known values are - "2023-12-01-preview". Default value is "2023-12-01-preview". Note that overriding this default - value may result in unsupported behavior. + "2023-12-01-preview" and None. Default value is None. If not set, the operation's default API + version will be used. Note that overriding this default value may result in unsupported + behavior. :paramtype api_version: str """ diff --git a/packages/typespec-python/tests/generated/azure/azure-resource-manager-common-properties/azure/resourcemanager/commonproperties/aio/_client.py b/packages/typespec-python/tests/generated/azure/azure-resource-manager-common-properties/azure/resourcemanager/commonproperties/aio/_client.py index 2d3655057c..874b07e3b4 100644 --- a/packages/typespec-python/tests/generated/azure/azure-resource-manager-common-properties/azure/resourcemanager/commonproperties/aio/_client.py +++ b/packages/typespec-python/tests/generated/azure/azure-resource-manager-common-properties/azure/resourcemanager/commonproperties/aio/_client.py @@ -44,8 +44,9 @@ class CommonPropertiesClient: None. :paramtype cloud_setting: ~azure.core.AzureClouds :keyword api_version: The API version to use for this operation. Known values are - "2023-12-01-preview". Default value is "2023-12-01-preview". Note that overriding this default - value may result in unsupported behavior. + "2023-12-01-preview" and None. Default value is None. If not set, the operation's default API + version will be used. Note that overriding this default value may result in unsupported + behavior. :paramtype api_version: str """ diff --git a/packages/typespec-python/tests/generated/azure/azure-resource-manager-common-properties/azure/resourcemanager/commonproperties/aio/_configuration.py b/packages/typespec-python/tests/generated/azure/azure-resource-manager-common-properties/azure/resourcemanager/commonproperties/aio/_configuration.py index fa64f6a817..aa126f8249 100644 --- a/packages/typespec-python/tests/generated/azure/azure-resource-manager-common-properties/azure/resourcemanager/commonproperties/aio/_configuration.py +++ b/packages/typespec-python/tests/generated/azure/azure-resource-manager-common-properties/azure/resourcemanager/commonproperties/aio/_configuration.py @@ -34,8 +34,9 @@ class CommonPropertiesClientConfiguration: # pylint: disable=too-many-instance- None. :type cloud_setting: ~azure.core.AzureClouds :keyword api_version: The API version to use for this operation. Known values are - "2023-12-01-preview". Default value is "2023-12-01-preview". Note that overriding this default - value may result in unsupported behavior. + "2023-12-01-preview" and None. Default value is None. If not set, the operation's default API + version will be used. Note that overriding this default value may result in unsupported + behavior. :paramtype api_version: str """ diff --git a/packages/typespec-python/tests/generated/azure/azure-resource-manager-large-header/azure/resourcemanager/largeheader/_client.py b/packages/typespec-python/tests/generated/azure/azure-resource-manager-large-header/azure/resourcemanager/largeheader/_client.py index 6de9c29a1e..3f57f6f570 100644 --- a/packages/typespec-python/tests/generated/azure/azure-resource-manager-large-header/azure/resourcemanager/largeheader/_client.py +++ b/packages/typespec-python/tests/generated/azure/azure-resource-manager-large-header/azure/resourcemanager/largeheader/_client.py @@ -41,8 +41,9 @@ class LargeHeaderClient: None. :paramtype cloud_setting: ~azure.core.AzureClouds :keyword api_version: The API version to use for this operation. Known values are - "2023-12-01-preview". Default value is "2023-12-01-preview". Note that overriding this default - value may result in unsupported behavior. + "2023-12-01-preview" and None. Default value is None. If not set, the operation's default API + version will be used. Note that overriding this default value may result in unsupported + behavior. :paramtype api_version: str :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. diff --git a/packages/typespec-python/tests/generated/azure/azure-resource-manager-large-header/azure/resourcemanager/largeheader/_configuration.py b/packages/typespec-python/tests/generated/azure/azure-resource-manager-large-header/azure/resourcemanager/largeheader/_configuration.py index 22de33a47e..5b477f4516 100644 --- a/packages/typespec-python/tests/generated/azure/azure-resource-manager-large-header/azure/resourcemanager/largeheader/_configuration.py +++ b/packages/typespec-python/tests/generated/azure/azure-resource-manager-large-header/azure/resourcemanager/largeheader/_configuration.py @@ -34,8 +34,9 @@ class LargeHeaderClientConfiguration: # pylint: disable=too-many-instance-attri None. :type cloud_setting: ~azure.core.AzureClouds :keyword api_version: The API version to use for this operation. Known values are - "2023-12-01-preview". Default value is "2023-12-01-preview". Note that overriding this default - value may result in unsupported behavior. + "2023-12-01-preview" and None. Default value is None. If not set, the operation's default API + version will be used. Note that overriding this default value may result in unsupported + behavior. :paramtype api_version: str """ diff --git a/packages/typespec-python/tests/generated/azure/azure-resource-manager-large-header/azure/resourcemanager/largeheader/aio/_client.py b/packages/typespec-python/tests/generated/azure/azure-resource-manager-large-header/azure/resourcemanager/largeheader/aio/_client.py index 51d26e8b28..45898de9c6 100644 --- a/packages/typespec-python/tests/generated/azure/azure-resource-manager-large-header/azure/resourcemanager/largeheader/aio/_client.py +++ b/packages/typespec-python/tests/generated/azure/azure-resource-manager-large-header/azure/resourcemanager/largeheader/aio/_client.py @@ -41,8 +41,9 @@ class LargeHeaderClient: None. :paramtype cloud_setting: ~azure.core.AzureClouds :keyword api_version: The API version to use for this operation. Known values are - "2023-12-01-preview". Default value is "2023-12-01-preview". Note that overriding this default - value may result in unsupported behavior. + "2023-12-01-preview" and None. Default value is None. If not set, the operation's default API + version will be used. Note that overriding this default value may result in unsupported + behavior. :paramtype api_version: str :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. diff --git a/packages/typespec-python/tests/generated/azure/azure-resource-manager-large-header/azure/resourcemanager/largeheader/aio/_configuration.py b/packages/typespec-python/tests/generated/azure/azure-resource-manager-large-header/azure/resourcemanager/largeheader/aio/_configuration.py index 93452dde87..a08f14ee5f 100644 --- a/packages/typespec-python/tests/generated/azure/azure-resource-manager-large-header/azure/resourcemanager/largeheader/aio/_configuration.py +++ b/packages/typespec-python/tests/generated/azure/azure-resource-manager-large-header/azure/resourcemanager/largeheader/aio/_configuration.py @@ -34,8 +34,9 @@ class LargeHeaderClientConfiguration: # pylint: disable=too-many-instance-attri None. :type cloud_setting: ~azure.core.AzureClouds :keyword api_version: The API version to use for this operation. Known values are - "2023-12-01-preview". Default value is "2023-12-01-preview". Note that overriding this default - value may result in unsupported behavior. + "2023-12-01-preview" and None. Default value is None. If not set, the operation's default API + version will be used. Note that overriding this default value may result in unsupported + behavior. :paramtype api_version: str """ diff --git a/packages/typespec-python/tests/generated/azure/azure-resource-manager-method-subscription-id/azure/resourcemanager/methodsubscriptionid/_client.py b/packages/typespec-python/tests/generated/azure/azure-resource-manager-method-subscription-id/azure/resourcemanager/methodsubscriptionid/_client.py index bfd8f852a3..2f41e9c1b9 100644 --- a/packages/typespec-python/tests/generated/azure/azure-resource-manager-method-subscription-id/azure/resourcemanager/methodsubscriptionid/_client.py +++ b/packages/typespec-python/tests/generated/azure/azure-resource-manager-method-subscription-id/azure/resourcemanager/methodsubscriptionid/_client.py @@ -48,8 +48,9 @@ class MethodSubscriptionIdClient: None. :paramtype cloud_setting: ~azure.core.AzureClouds :keyword api_version: The API version to use for this operation. Known values are - "2023-12-01-preview". Default value is "2023-12-01-preview". Note that overriding this default - value may result in unsupported behavior. + "2023-12-01-preview" and None. Default value is None. If not set, the operation's default API + version will be used. Note that overriding this default value may result in unsupported + behavior. :paramtype api_version: str """ diff --git a/packages/typespec-python/tests/generated/azure/azure-resource-manager-method-subscription-id/azure/resourcemanager/methodsubscriptionid/_configuration.py b/packages/typespec-python/tests/generated/azure/azure-resource-manager-method-subscription-id/azure/resourcemanager/methodsubscriptionid/_configuration.py index 3b91c8278e..6e83a8e590 100644 --- a/packages/typespec-python/tests/generated/azure/azure-resource-manager-method-subscription-id/azure/resourcemanager/methodsubscriptionid/_configuration.py +++ b/packages/typespec-python/tests/generated/azure/azure-resource-manager-method-subscription-id/azure/resourcemanager/methodsubscriptionid/_configuration.py @@ -34,8 +34,9 @@ class MethodSubscriptionIdClientConfiguration: # pylint: disable=too-many-insta None. :type cloud_setting: ~azure.core.AzureClouds :keyword api_version: The API version to use for this operation. Known values are - "2023-12-01-preview". Default value is "2023-12-01-preview". Note that overriding this default - value may result in unsupported behavior. + "2023-12-01-preview" and None. Default value is None. If not set, the operation's default API + version will be used. Note that overriding this default value may result in unsupported + behavior. :paramtype api_version: str """ diff --git a/packages/typespec-python/tests/generated/azure/azure-resource-manager-method-subscription-id/azure/resourcemanager/methodsubscriptionid/aio/_client.py b/packages/typespec-python/tests/generated/azure/azure-resource-manager-method-subscription-id/azure/resourcemanager/methodsubscriptionid/aio/_client.py index 6d358905ac..318dd0f622 100644 --- a/packages/typespec-python/tests/generated/azure/azure-resource-manager-method-subscription-id/azure/resourcemanager/methodsubscriptionid/aio/_client.py +++ b/packages/typespec-python/tests/generated/azure/azure-resource-manager-method-subscription-id/azure/resourcemanager/methodsubscriptionid/aio/_client.py @@ -48,8 +48,9 @@ class MethodSubscriptionIdClient: None. :paramtype cloud_setting: ~azure.core.AzureClouds :keyword api_version: The API version to use for this operation. Known values are - "2023-12-01-preview". Default value is "2023-12-01-preview". Note that overriding this default - value may result in unsupported behavior. + "2023-12-01-preview" and None. Default value is None. If not set, the operation's default API + version will be used. Note that overriding this default value may result in unsupported + behavior. :paramtype api_version: str """ diff --git a/packages/typespec-python/tests/generated/azure/azure-resource-manager-method-subscription-id/azure/resourcemanager/methodsubscriptionid/aio/_configuration.py b/packages/typespec-python/tests/generated/azure/azure-resource-manager-method-subscription-id/azure/resourcemanager/methodsubscriptionid/aio/_configuration.py index e9acefc958..9c5934a377 100644 --- a/packages/typespec-python/tests/generated/azure/azure-resource-manager-method-subscription-id/azure/resourcemanager/methodsubscriptionid/aio/_configuration.py +++ b/packages/typespec-python/tests/generated/azure/azure-resource-manager-method-subscription-id/azure/resourcemanager/methodsubscriptionid/aio/_configuration.py @@ -34,8 +34,9 @@ class MethodSubscriptionIdClientConfiguration: # pylint: disable=too-many-insta None. :type cloud_setting: ~azure.core.AzureClouds :keyword api_version: The API version to use for this operation. Known values are - "2023-12-01-preview". Default value is "2023-12-01-preview". Note that overriding this default - value may result in unsupported behavior. + "2023-12-01-preview" and None. Default value is None. If not set, the operation's default API + version will be used. Note that overriding this default value may result in unsupported + behavior. :paramtype api_version: str """ diff --git a/packages/typespec-python/tests/generated/azure/azure-resource-manager-non-resource/azure/resourcemanager/nonresource/_client.py b/packages/typespec-python/tests/generated/azure/azure-resource-manager-non-resource/azure/resourcemanager/nonresource/_client.py index 8c2b468d12..ac9f3eeb8f 100644 --- a/packages/typespec-python/tests/generated/azure/azure-resource-manager-non-resource/azure/resourcemanager/nonresource/_client.py +++ b/packages/typespec-python/tests/generated/azure/azure-resource-manager-non-resource/azure/resourcemanager/nonresource/_client.py @@ -42,8 +42,9 @@ class NonResourceClient: None. :paramtype cloud_setting: ~azure.core.AzureClouds :keyword api_version: The API version to use for this operation. Known values are - "2023-12-01-preview". Default value is "2023-12-01-preview". Note that overriding this default - value may result in unsupported behavior. + "2023-12-01-preview" and None. Default value is None. If not set, the operation's default API + version will be used. Note that overriding this default value may result in unsupported + behavior. :paramtype api_version: str """ diff --git a/packages/typespec-python/tests/generated/azure/azure-resource-manager-non-resource/azure/resourcemanager/nonresource/_configuration.py b/packages/typespec-python/tests/generated/azure/azure-resource-manager-non-resource/azure/resourcemanager/nonresource/_configuration.py index 3b3c7c451b..726f1ee24a 100644 --- a/packages/typespec-python/tests/generated/azure/azure-resource-manager-non-resource/azure/resourcemanager/nonresource/_configuration.py +++ b/packages/typespec-python/tests/generated/azure/azure-resource-manager-non-resource/azure/resourcemanager/nonresource/_configuration.py @@ -34,8 +34,9 @@ class NonResourceClientConfiguration: # pylint: disable=too-many-instance-attri None. :type cloud_setting: ~azure.core.AzureClouds :keyword api_version: The API version to use for this operation. Known values are - "2023-12-01-preview". Default value is "2023-12-01-preview". Note that overriding this default - value may result in unsupported behavior. + "2023-12-01-preview" and None. Default value is None. If not set, the operation's default API + version will be used. Note that overriding this default value may result in unsupported + behavior. :paramtype api_version: str """ diff --git a/packages/typespec-python/tests/generated/azure/azure-resource-manager-non-resource/azure/resourcemanager/nonresource/aio/_client.py b/packages/typespec-python/tests/generated/azure/azure-resource-manager-non-resource/azure/resourcemanager/nonresource/aio/_client.py index 71c0c4d616..f4fb00f244 100644 --- a/packages/typespec-python/tests/generated/azure/azure-resource-manager-non-resource/azure/resourcemanager/nonresource/aio/_client.py +++ b/packages/typespec-python/tests/generated/azure/azure-resource-manager-non-resource/azure/resourcemanager/nonresource/aio/_client.py @@ -42,8 +42,9 @@ class NonResourceClient: None. :paramtype cloud_setting: ~azure.core.AzureClouds :keyword api_version: The API version to use for this operation. Known values are - "2023-12-01-preview". Default value is "2023-12-01-preview". Note that overriding this default - value may result in unsupported behavior. + "2023-12-01-preview" and None. Default value is None. If not set, the operation's default API + version will be used. Note that overriding this default value may result in unsupported + behavior. :paramtype api_version: str """ diff --git a/packages/typespec-python/tests/generated/azure/azure-resource-manager-non-resource/azure/resourcemanager/nonresource/aio/_configuration.py b/packages/typespec-python/tests/generated/azure/azure-resource-manager-non-resource/azure/resourcemanager/nonresource/aio/_configuration.py index 2d4d2d2554..ca27162865 100644 --- a/packages/typespec-python/tests/generated/azure/azure-resource-manager-non-resource/azure/resourcemanager/nonresource/aio/_configuration.py +++ b/packages/typespec-python/tests/generated/azure/azure-resource-manager-non-resource/azure/resourcemanager/nonresource/aio/_configuration.py @@ -34,8 +34,9 @@ class NonResourceClientConfiguration: # pylint: disable=too-many-instance-attri None. :type cloud_setting: ~azure.core.AzureClouds :keyword api_version: The API version to use for this operation. Known values are - "2023-12-01-preview". Default value is "2023-12-01-preview". Note that overriding this default - value may result in unsupported behavior. + "2023-12-01-preview" and None. Default value is None. If not set, the operation's default API + version will be used. Note that overriding this default value may result in unsupported + behavior. :paramtype api_version: str """ diff --git a/packages/typespec-python/tests/generated/azure/azure-resource-manager-operation-templates/azure/resourcemanager/operationtemplates/_client.py b/packages/typespec-python/tests/generated/azure/azure-resource-manager-operation-templates/azure/resourcemanager/operationtemplates/_client.py index 24f5018cd2..f8b48e18c7 100644 --- a/packages/typespec-python/tests/generated/azure/azure-resource-manager-operation-templates/azure/resourcemanager/operationtemplates/_client.py +++ b/packages/typespec-python/tests/generated/azure/azure-resource-manager-operation-templates/azure/resourcemanager/operationtemplates/_client.py @@ -57,8 +57,9 @@ class OperationTemplatesClient: None. :paramtype cloud_setting: ~azure.core.AzureClouds :keyword api_version: The API version to use for this operation. Known values are - "2023-12-01-preview". Default value is "2023-12-01-preview". Note that overriding this default - value may result in unsupported behavior. + "2023-12-01-preview" and None. Default value is None. If not set, the operation's default API + version will be used. Note that overriding this default value may result in unsupported + behavior. :paramtype api_version: str :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. diff --git a/packages/typespec-python/tests/generated/azure/azure-resource-manager-operation-templates/azure/resourcemanager/operationtemplates/_configuration.py b/packages/typespec-python/tests/generated/azure/azure-resource-manager-operation-templates/azure/resourcemanager/operationtemplates/_configuration.py index 134c5c4baa..7f02beef88 100644 --- a/packages/typespec-python/tests/generated/azure/azure-resource-manager-operation-templates/azure/resourcemanager/operationtemplates/_configuration.py +++ b/packages/typespec-python/tests/generated/azure/azure-resource-manager-operation-templates/azure/resourcemanager/operationtemplates/_configuration.py @@ -34,8 +34,9 @@ class OperationTemplatesClientConfiguration: # pylint: disable=too-many-instanc None. :type cloud_setting: ~azure.core.AzureClouds :keyword api_version: The API version to use for this operation. Known values are - "2023-12-01-preview". Default value is "2023-12-01-preview". Note that overriding this default - value may result in unsupported behavior. + "2023-12-01-preview" and None. Default value is None. If not set, the operation's default API + version will be used. Note that overriding this default value may result in unsupported + behavior. :paramtype api_version: str """ diff --git a/packages/typespec-python/tests/generated/azure/azure-resource-manager-operation-templates/azure/resourcemanager/operationtemplates/aio/_client.py b/packages/typespec-python/tests/generated/azure/azure-resource-manager-operation-templates/azure/resourcemanager/operationtemplates/aio/_client.py index 7a0185165c..cdc53e0b3e 100644 --- a/packages/typespec-python/tests/generated/azure/azure-resource-manager-operation-templates/azure/resourcemanager/operationtemplates/aio/_client.py +++ b/packages/typespec-python/tests/generated/azure/azure-resource-manager-operation-templates/azure/resourcemanager/operationtemplates/aio/_client.py @@ -58,8 +58,9 @@ class OperationTemplatesClient: None. :paramtype cloud_setting: ~azure.core.AzureClouds :keyword api_version: The API version to use for this operation. Known values are - "2023-12-01-preview". Default value is "2023-12-01-preview". Note that overriding this default - value may result in unsupported behavior. + "2023-12-01-preview" and None. Default value is None. If not set, the operation's default API + version will be used. Note that overriding this default value may result in unsupported + behavior. :paramtype api_version: str :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. diff --git a/packages/typespec-python/tests/generated/azure/azure-resource-manager-operation-templates/azure/resourcemanager/operationtemplates/aio/_configuration.py b/packages/typespec-python/tests/generated/azure/azure-resource-manager-operation-templates/azure/resourcemanager/operationtemplates/aio/_configuration.py index 84fb5d2bfa..941591d2b5 100644 --- a/packages/typespec-python/tests/generated/azure/azure-resource-manager-operation-templates/azure/resourcemanager/operationtemplates/aio/_configuration.py +++ b/packages/typespec-python/tests/generated/azure/azure-resource-manager-operation-templates/azure/resourcemanager/operationtemplates/aio/_configuration.py @@ -34,8 +34,9 @@ class OperationTemplatesClientConfiguration: # pylint: disable=too-many-instanc None. :type cloud_setting: ~azure.core.AzureClouds :keyword api_version: The API version to use for this operation. Known values are - "2023-12-01-preview". Default value is "2023-12-01-preview". Note that overriding this default - value may result in unsupported behavior. + "2023-12-01-preview" and None. Default value is None. If not set, the operation's default API + version will be used. Note that overriding this default value may result in unsupported + behavior. :paramtype api_version: str """ diff --git a/packages/typespec-python/tests/generated/azure/azure-resource-manager-resources/azure/resourcemanager/resources/_client.py b/packages/typespec-python/tests/generated/azure/azure-resource-manager-resources/azure/resourcemanager/resources/_client.py index a5fadc9399..689b326c98 100644 --- a/packages/typespec-python/tests/generated/azure/azure-resource-manager-resources/azure/resourcemanager/resources/_client.py +++ b/packages/typespec-python/tests/generated/azure/azure-resource-manager-resources/azure/resourcemanager/resources/_client.py @@ -57,8 +57,9 @@ class ResourcesClient: None. :paramtype cloud_setting: ~azure.core.AzureClouds :keyword api_version: The API version to use for this operation. Known values are - "2023-12-01-preview". Default value is "2023-12-01-preview". Note that overriding this default - value may result in unsupported behavior. + "2023-12-01-preview" and None. Default value is None. If not set, the operation's default API + version will be used. Note that overriding this default value may result in unsupported + behavior. :paramtype api_version: str :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. diff --git a/packages/typespec-python/tests/generated/azure/azure-resource-manager-resources/azure/resourcemanager/resources/_configuration.py b/packages/typespec-python/tests/generated/azure/azure-resource-manager-resources/azure/resourcemanager/resources/_configuration.py index de26d5df35..82d1cb46d2 100644 --- a/packages/typespec-python/tests/generated/azure/azure-resource-manager-resources/azure/resourcemanager/resources/_configuration.py +++ b/packages/typespec-python/tests/generated/azure/azure-resource-manager-resources/azure/resourcemanager/resources/_configuration.py @@ -34,8 +34,9 @@ class ResourcesClientConfiguration: # pylint: disable=too-many-instance-attribu None. :type cloud_setting: ~azure.core.AzureClouds :keyword api_version: The API version to use for this operation. Known values are - "2023-12-01-preview". Default value is "2023-12-01-preview". Note that overriding this default - value may result in unsupported behavior. + "2023-12-01-preview" and None. Default value is None. If not set, the operation's default API + version will be used. Note that overriding this default value may result in unsupported + behavior. :paramtype api_version: str """ diff --git a/packages/typespec-python/tests/generated/azure/azure-resource-manager-resources/azure/resourcemanager/resources/aio/_client.py b/packages/typespec-python/tests/generated/azure/azure-resource-manager-resources/azure/resourcemanager/resources/aio/_client.py index 53440d7a6f..69a7ff1e2e 100644 --- a/packages/typespec-python/tests/generated/azure/azure-resource-manager-resources/azure/resourcemanager/resources/aio/_client.py +++ b/packages/typespec-python/tests/generated/azure/azure-resource-manager-resources/azure/resourcemanager/resources/aio/_client.py @@ -57,8 +57,9 @@ class ResourcesClient: None. :paramtype cloud_setting: ~azure.core.AzureClouds :keyword api_version: The API version to use for this operation. Known values are - "2023-12-01-preview". Default value is "2023-12-01-preview". Note that overriding this default - value may result in unsupported behavior. + "2023-12-01-preview" and None. Default value is None. If not set, the operation's default API + version will be used. Note that overriding this default value may result in unsupported + behavior. :paramtype api_version: str :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. diff --git a/packages/typespec-python/tests/generated/azure/azure-resource-manager-resources/azure/resourcemanager/resources/aio/_configuration.py b/packages/typespec-python/tests/generated/azure/azure-resource-manager-resources/azure/resourcemanager/resources/aio/_configuration.py index 0bff5564c6..0d3d3e209a 100644 --- a/packages/typespec-python/tests/generated/azure/azure-resource-manager-resources/azure/resourcemanager/resources/aio/_configuration.py +++ b/packages/typespec-python/tests/generated/azure/azure-resource-manager-resources/azure/resourcemanager/resources/aio/_configuration.py @@ -34,8 +34,9 @@ class ResourcesClientConfiguration: # pylint: disable=too-many-instance-attribu None. :type cloud_setting: ~azure.core.AzureClouds :keyword api_version: The API version to use for this operation. Known values are - "2023-12-01-preview". Default value is "2023-12-01-preview". Note that overriding this default - value may result in unsupported behavior. + "2023-12-01-preview" and None. Default value is None. If not set, the operation's default API + version will be used. Note that overriding this default value may result in unsupported + behavior. :paramtype api_version: str """ diff --git a/packages/typespec-python/tests/generated/azure/azure-versioning-previewversion/specs/azure/versioning/previewversion/_client.py b/packages/typespec-python/tests/generated/azure/azure-versioning-previewversion/specs/azure/versioning/previewversion/_client.py index 2ed9bdd1d1..333d49a72f 100644 --- a/packages/typespec-python/tests/generated/azure/azure-versioning-previewversion/specs/azure/versioning/previewversion/_client.py +++ b/packages/typespec-python/tests/generated/azure/azure-versioning-previewversion/specs/azure/versioning/previewversion/_client.py @@ -25,8 +25,9 @@ class PreviewVersionClient(_PreviewVersionClientOperationsMixin): :keyword endpoint: Service host. Default value is "http://localhost:3000". :paramtype endpoint: str :keyword api_version: The API version to use for this operation. Known values are - "2024-12-01-preview". Default value is "2024-12-01-preview". Note that overriding this default - value may result in unsupported behavior. + "2024-12-01-preview" and None. Default value is None. If not set, the operation's default API + version will be used. Note that overriding this default value may result in unsupported + behavior. :paramtype api_version: str """ diff --git a/packages/typespec-python/tests/generated/azure/azure-versioning-previewversion/specs/azure/versioning/previewversion/_configuration.py b/packages/typespec-python/tests/generated/azure/azure-versioning-previewversion/specs/azure/versioning/previewversion/_configuration.py index 167e5abe40..6413dd58cf 100644 --- a/packages/typespec-python/tests/generated/azure/azure-versioning-previewversion/specs/azure/versioning/previewversion/_configuration.py +++ b/packages/typespec-python/tests/generated/azure/azure-versioning-previewversion/specs/azure/versioning/previewversion/_configuration.py @@ -22,8 +22,9 @@ class PreviewVersionClientConfiguration: # pylint: disable=too-many-instance-at :param endpoint: Service host. Default value is "http://localhost:3000". :type endpoint: str :keyword api_version: The API version to use for this operation. Known values are - "2024-12-01-preview". Default value is "2024-12-01-preview". Note that overriding this default - value may result in unsupported behavior. + "2024-12-01-preview" and None. Default value is None. If not set, the operation's default API + version will be used. Note that overriding this default value may result in unsupported + behavior. :paramtype api_version: str """ diff --git a/packages/typespec-python/tests/generated/azure/azure-versioning-previewversion/specs/azure/versioning/previewversion/aio/_client.py b/packages/typespec-python/tests/generated/azure/azure-versioning-previewversion/specs/azure/versioning/previewversion/aio/_client.py index c5bead2962..2f1f888be1 100644 --- a/packages/typespec-python/tests/generated/azure/azure-versioning-previewversion/specs/azure/versioning/previewversion/aio/_client.py +++ b/packages/typespec-python/tests/generated/azure/azure-versioning-previewversion/specs/azure/versioning/previewversion/aio/_client.py @@ -25,8 +25,9 @@ class PreviewVersionClient(_PreviewVersionClientOperationsMixin): :keyword endpoint: Service host. Default value is "http://localhost:3000". :paramtype endpoint: str :keyword api_version: The API version to use for this operation. Known values are - "2024-12-01-preview". Default value is "2024-12-01-preview". Note that overriding this default - value may result in unsupported behavior. + "2024-12-01-preview" and None. Default value is None. If not set, the operation's default API + version will be used. Note that overriding this default value may result in unsupported + behavior. :paramtype api_version: str """ diff --git a/packages/typespec-python/tests/generated/azure/azure-versioning-previewversion/specs/azure/versioning/previewversion/aio/_configuration.py b/packages/typespec-python/tests/generated/azure/azure-versioning-previewversion/specs/azure/versioning/previewversion/aio/_configuration.py index f634b0f15c..6445916e3c 100644 --- a/packages/typespec-python/tests/generated/azure/azure-versioning-previewversion/specs/azure/versioning/previewversion/aio/_configuration.py +++ b/packages/typespec-python/tests/generated/azure/azure-versioning-previewversion/specs/azure/versioning/previewversion/aio/_configuration.py @@ -22,8 +22,9 @@ class PreviewVersionClientConfiguration: # pylint: disable=too-many-instance-at :param endpoint: Service host. Default value is "http://localhost:3000". :type endpoint: str :keyword api_version: The API version to use for this operation. Known values are - "2024-12-01-preview". Default value is "2024-12-01-preview". Note that overriding this default - value may result in unsupported behavior. + "2024-12-01-preview" and None. Default value is None. If not set, the operation's default API + version will be used. Note that overriding this default value may result in unsupported + behavior. :paramtype api_version: str """ diff --git a/packages/typespec-python/tests/generated/azure/generation-subdir2/generation/subdir2/_generated/_client.py b/packages/typespec-python/tests/generated/azure/generation-subdir2/generation/subdir2/_generated/_client.py index 7a143a57ba..2887b6ea13 100644 --- a/packages/typespec-python/tests/generated/azure/generation-subdir2/generation/subdir2/_generated/_client.py +++ b/packages/typespec-python/tests/generated/azure/generation-subdir2/generation/subdir2/_generated/_client.py @@ -27,8 +27,9 @@ class AddedClient(_AddedClientOperationsMixin): # pylint: disable=client-accept :param endpoint: Need to be set as '`http://localhost:3000 `_' in client. Required. :type endpoint: str - :keyword version: Need to be set as 'v1' or 'v2' in client. Known values are "v2". Default - value is "v2". Note that overriding this default value may result in unsupported behavior. + :keyword version: Need to be set as 'v1' or 'v2' in client. Known values are "v2" and None. + Default value is None. If not set, the operation's default API version will be used. Note that + overriding this default value may result in unsupported behavior. :paramtype version: str or ~generation.subdir2.models.Versions """ diff --git a/packages/typespec-python/tests/generated/azure/generation-subdir2/generation/subdir2/_generated/_configuration.py b/packages/typespec-python/tests/generated/azure/generation-subdir2/generation/subdir2/_generated/_configuration.py index 7af496fb4a..8217337ce4 100644 --- a/packages/typespec-python/tests/generated/azure/generation-subdir2/generation/subdir2/_generated/_configuration.py +++ b/packages/typespec-python/tests/generated/azure/generation-subdir2/generation/subdir2/_generated/_configuration.py @@ -22,8 +22,9 @@ class AddedClientConfiguration: # pylint: disable=too-many-instance-attributes :param endpoint: Need to be set as '`http://localhost:3000 `_' in client. Required. :type endpoint: str - :keyword version: Need to be set as 'v1' or 'v2' in client. Known values are "v2". Default - value is "v2". Note that overriding this default value may result in unsupported behavior. + :keyword version: Need to be set as 'v1' or 'v2' in client. Known values are "v2" and None. + Default value is None. If not set, the operation's default API version will be used. Note that + overriding this default value may result in unsupported behavior. :paramtype version: str or ~generation.subdir2.models.Versions """ diff --git a/packages/typespec-python/tests/generated/azure/generation-subdir2/generation/subdir2/_generated/aio/_client.py b/packages/typespec-python/tests/generated/azure/generation-subdir2/generation/subdir2/_generated/aio/_client.py index f9f080e829..051eb6a46c 100644 --- a/packages/typespec-python/tests/generated/azure/generation-subdir2/generation/subdir2/_generated/aio/_client.py +++ b/packages/typespec-python/tests/generated/azure/generation-subdir2/generation/subdir2/_generated/aio/_client.py @@ -27,8 +27,9 @@ class AddedClient(_AddedClientOperationsMixin): # pylint: disable=client-accept :param endpoint: Need to be set as '`http://localhost:3000 `_' in client. Required. :type endpoint: str - :keyword version: Need to be set as 'v1' or 'v2' in client. Known values are "v2". Default - value is "v2". Note that overriding this default value may result in unsupported behavior. + :keyword version: Need to be set as 'v1' or 'v2' in client. Known values are "v2" and None. + Default value is None. If not set, the operation's default API version will be used. Note that + overriding this default value may result in unsupported behavior. :paramtype version: str or ~generation.subdir2.models.Versions """ diff --git a/packages/typespec-python/tests/generated/azure/generation-subdir2/generation/subdir2/_generated/aio/_configuration.py b/packages/typespec-python/tests/generated/azure/generation-subdir2/generation/subdir2/_generated/aio/_configuration.py index aef9c9fbd8..7441536494 100644 --- a/packages/typespec-python/tests/generated/azure/generation-subdir2/generation/subdir2/_generated/aio/_configuration.py +++ b/packages/typespec-python/tests/generated/azure/generation-subdir2/generation/subdir2/_generated/aio/_configuration.py @@ -22,8 +22,9 @@ class AddedClientConfiguration: # pylint: disable=too-many-instance-attributes :param endpoint: Need to be set as '`http://localhost:3000 `_' in client. Required. :type endpoint: str - :keyword version: Need to be set as 'v1' or 'v2' in client. Known values are "v2". Default - value is "v2". Note that overriding this default value may result in unsupported behavior. + :keyword version: Need to be set as 'v1' or 'v2' in client. Known values are "v2" and None. + Default value is None. If not set, the operation's default API version will be used. Note that + overriding this default value may result in unsupported behavior. :paramtype version: str or ~generation.subdir2.models.Versions """ diff --git a/packages/typespec-python/tests/generated/azure/resiliency-srv-driven1/resiliency/srv/driven1/_client.py b/packages/typespec-python/tests/generated/azure/resiliency-srv-driven1/resiliency/srv/driven1/_client.py index 8f5c5ee377..10de6e65b1 100644 --- a/packages/typespec-python/tests/generated/azure/resiliency-srv-driven1/resiliency/srv/driven1/_client.py +++ b/packages/typespec-python/tests/generated/azure/resiliency-srv-driven1/resiliency/srv/driven1/_client.py @@ -31,8 +31,9 @@ class ResiliencyServiceDrivenClient(_ResiliencyServiceDrivenClientOperationsMixi version. 'v2' is for the deployment when the service had api-versions 'v1' and 'v2'. Required. :type service_deployment_version: str :keyword api_version: Pass in 'v1'. This represents the API version of the service. Will grow - up in the next deployment to be both 'v1' and 'v2'. Known values are "v1". Default value is - "v1". Note that overriding this default value may result in unsupported behavior. + up in the next deployment to be both 'v1' and 'v2'. Known values are "v1" and None. Default + value is None. If not set, the operation's default API version will be used. Note that + overriding this default value may result in unsupported behavior. :paramtype api_version: str """ diff --git a/packages/typespec-python/tests/generated/azure/resiliency-srv-driven1/resiliency/srv/driven1/_configuration.py b/packages/typespec-python/tests/generated/azure/resiliency-srv-driven1/resiliency/srv/driven1/_configuration.py index dfcddd8cd0..59010490fa 100644 --- a/packages/typespec-python/tests/generated/azure/resiliency-srv-driven1/resiliency/srv/driven1/_configuration.py +++ b/packages/typespec-python/tests/generated/azure/resiliency-srv-driven1/resiliency/srv/driven1/_configuration.py @@ -27,8 +27,9 @@ class ResiliencyServiceDrivenClientConfiguration: # pylint: disable=too-many-in version. 'v2' is for the deployment when the service had api-versions 'v1' and 'v2'. Required. :type service_deployment_version: str :keyword api_version: Pass in 'v1'. This represents the API version of the service. Will grow - up in the next deployment to be both 'v1' and 'v2'. Known values are "v1". Default value is - "v1". Note that overriding this default value may result in unsupported behavior. + up in the next deployment to be both 'v1' and 'v2'. Known values are "v1" and None. Default + value is None. If not set, the operation's default API version will be used. Note that + overriding this default value may result in unsupported behavior. :paramtype api_version: str """ diff --git a/packages/typespec-python/tests/generated/azure/resiliency-srv-driven1/resiliency/srv/driven1/aio/_client.py b/packages/typespec-python/tests/generated/azure/resiliency-srv-driven1/resiliency/srv/driven1/aio/_client.py index c36967c743..909f9e6e9c 100644 --- a/packages/typespec-python/tests/generated/azure/resiliency-srv-driven1/resiliency/srv/driven1/aio/_client.py +++ b/packages/typespec-python/tests/generated/azure/resiliency-srv-driven1/resiliency/srv/driven1/aio/_client.py @@ -31,8 +31,9 @@ class ResiliencyServiceDrivenClient(_ResiliencyServiceDrivenClientOperationsMixi version. 'v2' is for the deployment when the service had api-versions 'v1' and 'v2'. Required. :type service_deployment_version: str :keyword api_version: Pass in 'v1'. This represents the API version of the service. Will grow - up in the next deployment to be both 'v1' and 'v2'. Known values are "v1". Default value is - "v1". Note that overriding this default value may result in unsupported behavior. + up in the next deployment to be both 'v1' and 'v2'. Known values are "v1" and None. Default + value is None. If not set, the operation's default API version will be used. Note that + overriding this default value may result in unsupported behavior. :paramtype api_version: str """ diff --git a/packages/typespec-python/tests/generated/azure/resiliency-srv-driven1/resiliency/srv/driven1/aio/_configuration.py b/packages/typespec-python/tests/generated/azure/resiliency-srv-driven1/resiliency/srv/driven1/aio/_configuration.py index 3e3c64c0cd..1e69e045a8 100644 --- a/packages/typespec-python/tests/generated/azure/resiliency-srv-driven1/resiliency/srv/driven1/aio/_configuration.py +++ b/packages/typespec-python/tests/generated/azure/resiliency-srv-driven1/resiliency/srv/driven1/aio/_configuration.py @@ -27,8 +27,9 @@ class ResiliencyServiceDrivenClientConfiguration: # pylint: disable=too-many-in version. 'v2' is for the deployment when the service had api-versions 'v1' and 'v2'. Required. :type service_deployment_version: str :keyword api_version: Pass in 'v1'. This represents the API version of the service. Will grow - up in the next deployment to be both 'v1' and 'v2'. Known values are "v1". Default value is - "v1". Note that overriding this default value may result in unsupported behavior. + up in the next deployment to be both 'v1' and 'v2'. Known values are "v1" and None. Default + value is None. If not set, the operation's default API version will be used. Note that + overriding this default value may result in unsupported behavior. :paramtype api_version: str """ diff --git a/packages/typespec-python/tests/generated/azure/resiliency-srv-driven2/resiliency/srv/driven2/_client.py b/packages/typespec-python/tests/generated/azure/resiliency-srv-driven2/resiliency/srv/driven2/_client.py index d132cc5b8a..1e59d598ef 100644 --- a/packages/typespec-python/tests/generated/azure/resiliency-srv-driven2/resiliency/srv/driven2/_client.py +++ b/packages/typespec-python/tests/generated/azure/resiliency-srv-driven2/resiliency/srv/driven2/_client.py @@ -48,8 +48,9 @@ class ResiliencyServiceDrivenClient(_ResiliencyServiceDrivenClientOperationsMixi version. 'v2' is for the deployment when the service had api-versions 'v1' and 'v2'. Required. :type service_deployment_version: str :keyword api_version: Pass in either 'v1' or 'v2'. This represents the API version of a - service. Known values are "v2". Default value is "v2". Note that overriding this default value - may result in unsupported behavior. + service. Known values are "v2" and None. Default value is None. If not set, the operation's + default API version will be used. Note that overriding this default value may result in + unsupported behavior. :paramtype api_version: str """ diff --git a/packages/typespec-python/tests/generated/azure/resiliency-srv-driven2/resiliency/srv/driven2/_configuration.py b/packages/typespec-python/tests/generated/azure/resiliency-srv-driven2/resiliency/srv/driven2/_configuration.py index d6468e2f5d..a9d2e865f0 100644 --- a/packages/typespec-python/tests/generated/azure/resiliency-srv-driven2/resiliency/srv/driven2/_configuration.py +++ b/packages/typespec-python/tests/generated/azure/resiliency-srv-driven2/resiliency/srv/driven2/_configuration.py @@ -27,8 +27,9 @@ class ResiliencyServiceDrivenClientConfiguration: # pylint: disable=too-many-in version. 'v2' is for the deployment when the service had api-versions 'v1' and 'v2'. Required. :type service_deployment_version: str :keyword api_version: Pass in either 'v1' or 'v2'. This represents the API version of a - service. Known values are "v2". Default value is "v2". Note that overriding this default value - may result in unsupported behavior. + service. Known values are "v2" and None. Default value is None. If not set, the operation's + default API version will be used. Note that overriding this default value may result in + unsupported behavior. :paramtype api_version: str """ diff --git a/packages/typespec-python/tests/generated/azure/resiliency-srv-driven2/resiliency/srv/driven2/aio/_client.py b/packages/typespec-python/tests/generated/azure/resiliency-srv-driven2/resiliency/srv/driven2/aio/_client.py index 9ce9ca0c5d..57e53556b8 100644 --- a/packages/typespec-python/tests/generated/azure/resiliency-srv-driven2/resiliency/srv/driven2/aio/_client.py +++ b/packages/typespec-python/tests/generated/azure/resiliency-srv-driven2/resiliency/srv/driven2/aio/_client.py @@ -48,8 +48,9 @@ class ResiliencyServiceDrivenClient(_ResiliencyServiceDrivenClientOperationsMixi version. 'v2' is for the deployment when the service had api-versions 'v1' and 'v2'. Required. :type service_deployment_version: str :keyword api_version: Pass in either 'v1' or 'v2'. This represents the API version of a - service. Known values are "v2". Default value is "v2". Note that overriding this default value - may result in unsupported behavior. + service. Known values are "v2" and None. Default value is None. If not set, the operation's + default API version will be used. Note that overriding this default value may result in + unsupported behavior. :paramtype api_version: str """ diff --git a/packages/typespec-python/tests/generated/azure/resiliency-srv-driven2/resiliency/srv/driven2/aio/_configuration.py b/packages/typespec-python/tests/generated/azure/resiliency-srv-driven2/resiliency/srv/driven2/aio/_configuration.py index c274bf7613..d720b36fd2 100644 --- a/packages/typespec-python/tests/generated/azure/resiliency-srv-driven2/resiliency/srv/driven2/aio/_configuration.py +++ b/packages/typespec-python/tests/generated/azure/resiliency-srv-driven2/resiliency/srv/driven2/aio/_configuration.py @@ -27,8 +27,9 @@ class ResiliencyServiceDrivenClientConfiguration: # pylint: disable=too-many-in version. 'v2' is for the deployment when the service had api-versions 'v1' and 'v2'. Required. :type service_deployment_version: str :keyword api_version: Pass in either 'v1' or 'v2'. This represents the API version of a - service. Known values are "v2". Default value is "v2". Note that overriding this default value - may result in unsupported behavior. + service. Known values are "v2" and None. Default value is None. If not set, the operation's + default API version will be used. Note that overriding this default value may result in + unsupported behavior. :paramtype api_version: str """ diff --git a/packages/typespec-python/tests/generated/azure/server-path-multiple/server/path/multiple/_client.py b/packages/typespec-python/tests/generated/azure/server-path-multiple/server/path/multiple/_client.py index dcde1689d3..dcdf9d6037 100644 --- a/packages/typespec-python/tests/generated/azure/server-path-multiple/server/path/multiple/_client.py +++ b/packages/typespec-python/tests/generated/azure/server-path-multiple/server/path/multiple/_client.py @@ -25,8 +25,9 @@ class MultipleClient(_MultipleClientOperationsMixin): :param endpoint: Pass in `http://localhost:3000 `_ for endpoint. Required. :type endpoint: str - :keyword api_version: Pass in v1.0 for API version. Known values are "v1.0". Default value is - "v1.0". Note that overriding this default value may result in unsupported behavior. + :keyword api_version: Pass in v1.0 for API version. Known values are "v1.0" and None. Default + value is None. If not set, the operation's default API version will be used. Note that + overriding this default value may result in unsupported behavior. :paramtype api_version: str or ~server.path.multiple.models.Versions """ diff --git a/packages/typespec-python/tests/generated/azure/server-path-multiple/server/path/multiple/_configuration.py b/packages/typespec-python/tests/generated/azure/server-path-multiple/server/path/multiple/_configuration.py index 72f8d1e807..205aab0bdc 100644 --- a/packages/typespec-python/tests/generated/azure/server-path-multiple/server/path/multiple/_configuration.py +++ b/packages/typespec-python/tests/generated/azure/server-path-multiple/server/path/multiple/_configuration.py @@ -22,8 +22,9 @@ class MultipleClientConfiguration: # pylint: disable=too-many-instance-attribut :param endpoint: Pass in `http://localhost:3000 `_ for endpoint. Required. :type endpoint: str - :keyword api_version: Pass in v1.0 for API version. Known values are "v1.0". Default value is - "v1.0". Note that overriding this default value may result in unsupported behavior. + :keyword api_version: Pass in v1.0 for API version. Known values are "v1.0" and None. Default + value is None. If not set, the operation's default API version will be used. Note that + overriding this default value may result in unsupported behavior. :paramtype api_version: str or ~server.path.multiple.models.Versions """ diff --git a/packages/typespec-python/tests/generated/azure/server-path-multiple/server/path/multiple/aio/_client.py b/packages/typespec-python/tests/generated/azure/server-path-multiple/server/path/multiple/aio/_client.py index 8fdd8e366a..3fcd2b7d47 100644 --- a/packages/typespec-python/tests/generated/azure/server-path-multiple/server/path/multiple/aio/_client.py +++ b/packages/typespec-python/tests/generated/azure/server-path-multiple/server/path/multiple/aio/_client.py @@ -25,8 +25,9 @@ class MultipleClient(_MultipleClientOperationsMixin): :param endpoint: Pass in `http://localhost:3000 `_ for endpoint. Required. :type endpoint: str - :keyword api_version: Pass in v1.0 for API version. Known values are "v1.0". Default value is - "v1.0". Note that overriding this default value may result in unsupported behavior. + :keyword api_version: Pass in v1.0 for API version. Known values are "v1.0" and None. Default + value is None. If not set, the operation's default API version will be used. Note that + overriding this default value may result in unsupported behavior. :paramtype api_version: str or ~server.path.multiple.models.Versions """ diff --git a/packages/typespec-python/tests/generated/azure/server-path-multiple/server/path/multiple/aio/_configuration.py b/packages/typespec-python/tests/generated/azure/server-path-multiple/server/path/multiple/aio/_configuration.py index 956ff96347..b0971016d2 100644 --- a/packages/typespec-python/tests/generated/azure/server-path-multiple/server/path/multiple/aio/_configuration.py +++ b/packages/typespec-python/tests/generated/azure/server-path-multiple/server/path/multiple/aio/_configuration.py @@ -22,8 +22,9 @@ class MultipleClientConfiguration: # pylint: disable=too-many-instance-attribut :param endpoint: Pass in `http://localhost:3000 `_ for endpoint. Required. :type endpoint: str - :keyword api_version: Pass in v1.0 for API version. Known values are "v1.0". Default value is - "v1.0". Note that overriding this default value may result in unsupported behavior. + :keyword api_version: Pass in v1.0 for API version. Known values are "v1.0" and None. Default + value is None. If not set, the operation's default API version will be used. Note that + overriding this default value may result in unsupported behavior. :paramtype api_version: str or ~server.path.multiple.models.Versions """ diff --git a/packages/typespec-python/tests/generated/azure/server-versions-versioned/server/versions/versioned/_client.py b/packages/typespec-python/tests/generated/azure/server-versions-versioned/server/versions/versioned/_client.py index 6e13ef5fa7..fb2758217a 100644 --- a/packages/typespec-python/tests/generated/azure/server-versions-versioned/server/versions/versioned/_client.py +++ b/packages/typespec-python/tests/generated/azure/server-versions-versioned/server/versions/versioned/_client.py @@ -25,9 +25,9 @@ class VersionedClient(_VersionedClientOperationsMixin): :param endpoint: Need to be set as '`http://localhost:3000 `_' in client. Required. :type endpoint: str - :keyword api_version: Known values are "2022-12-01-preview". Default value is - "2022-12-01-preview". Note that overriding this default value may result in unsupported - behavior. + :keyword api_version: Known values are "2022-12-01-preview" and None. Default value is None. If + not set, the operation's default API version will be used. Note that overriding this default + value may result in unsupported behavior. :paramtype api_version: str """ diff --git a/packages/typespec-python/tests/generated/azure/server-versions-versioned/server/versions/versioned/_configuration.py b/packages/typespec-python/tests/generated/azure/server-versions-versioned/server/versions/versioned/_configuration.py index 045bfa353e..316975a7e2 100644 --- a/packages/typespec-python/tests/generated/azure/server-versions-versioned/server/versions/versioned/_configuration.py +++ b/packages/typespec-python/tests/generated/azure/server-versions-versioned/server/versions/versioned/_configuration.py @@ -22,9 +22,9 @@ class VersionedClientConfiguration: # pylint: disable=too-many-instance-attribu :param endpoint: Need to be set as '`http://localhost:3000 `_' in client. Required. :type endpoint: str - :keyword api_version: Known values are "2022-12-01-preview". Default value is - "2022-12-01-preview". Note that overriding this default value may result in unsupported - behavior. + :keyword api_version: Known values are "2022-12-01-preview" and None. Default value is None. If + not set, the operation's default API version will be used. Note that overriding this default + value may result in unsupported behavior. :paramtype api_version: str """ diff --git a/packages/typespec-python/tests/generated/azure/server-versions-versioned/server/versions/versioned/aio/_client.py b/packages/typespec-python/tests/generated/azure/server-versions-versioned/server/versions/versioned/aio/_client.py index c556a911b9..247aa9a0f4 100644 --- a/packages/typespec-python/tests/generated/azure/server-versions-versioned/server/versions/versioned/aio/_client.py +++ b/packages/typespec-python/tests/generated/azure/server-versions-versioned/server/versions/versioned/aio/_client.py @@ -25,9 +25,9 @@ class VersionedClient(_VersionedClientOperationsMixin): :param endpoint: Need to be set as '`http://localhost:3000 `_' in client. Required. :type endpoint: str - :keyword api_version: Known values are "2022-12-01-preview". Default value is - "2022-12-01-preview". Note that overriding this default value may result in unsupported - behavior. + :keyword api_version: Known values are "2022-12-01-preview" and None. Default value is None. If + not set, the operation's default API version will be used. Note that overriding this default + value may result in unsupported behavior. :paramtype api_version: str """ diff --git a/packages/typespec-python/tests/generated/azure/server-versions-versioned/server/versions/versioned/aio/_configuration.py b/packages/typespec-python/tests/generated/azure/server-versions-versioned/server/versions/versioned/aio/_configuration.py index 671f46633a..d310afa701 100644 --- a/packages/typespec-python/tests/generated/azure/server-versions-versioned/server/versions/versioned/aio/_configuration.py +++ b/packages/typespec-python/tests/generated/azure/server-versions-versioned/server/versions/versioned/aio/_configuration.py @@ -22,9 +22,9 @@ class VersionedClientConfiguration: # pylint: disable=too-many-instance-attribu :param endpoint: Need to be set as '`http://localhost:3000 `_' in client. Required. :type endpoint: str - :keyword api_version: Known values are "2022-12-01-preview". Default value is - "2022-12-01-preview". Note that overriding this default value may result in unsupported - behavior. + :keyword api_version: Known values are "2022-12-01-preview" and None. Default value is None. If + not set, the operation's default API version will be used. Note that overriding this default + value may result in unsupported behavior. :paramtype api_version: str """ diff --git a/packages/typespec-python/tests/generated/azure/versioning-added/versioning/added/_client.py b/packages/typespec-python/tests/generated/azure/versioning-added/versioning/added/_client.py index f74e1fa83f..f613be489e 100644 --- a/packages/typespec-python/tests/generated/azure/versioning-added/versioning/added/_client.py +++ b/packages/typespec-python/tests/generated/azure/versioning-added/versioning/added/_client.py @@ -27,8 +27,9 @@ class AddedClient(_AddedClientOperationsMixin): # pylint: disable=client-accept :param endpoint: Need to be set as '`http://localhost:3000 `_' in client. Required. :type endpoint: str - :keyword version: Need to be set as 'v1' or 'v2' in client. Known values are "v2". Default - value is "v2". Note that overriding this default value may result in unsupported behavior. + :keyword version: Need to be set as 'v1' or 'v2' in client. Known values are "v2" and None. + Default value is None. If not set, the operation's default API version will be used. Note that + overriding this default value may result in unsupported behavior. :paramtype version: str or ~versioning.added.models.Versions """ diff --git a/packages/typespec-python/tests/generated/azure/versioning-added/versioning/added/_configuration.py b/packages/typespec-python/tests/generated/azure/versioning-added/versioning/added/_configuration.py index 6011b4bdf1..65b6f24e96 100644 --- a/packages/typespec-python/tests/generated/azure/versioning-added/versioning/added/_configuration.py +++ b/packages/typespec-python/tests/generated/azure/versioning-added/versioning/added/_configuration.py @@ -22,8 +22,9 @@ class AddedClientConfiguration: # pylint: disable=too-many-instance-attributes :param endpoint: Need to be set as '`http://localhost:3000 `_' in client. Required. :type endpoint: str - :keyword version: Need to be set as 'v1' or 'v2' in client. Known values are "v2". Default - value is "v2". Note that overriding this default value may result in unsupported behavior. + :keyword version: Need to be set as 'v1' or 'v2' in client. Known values are "v2" and None. + Default value is None. If not set, the operation's default API version will be used. Note that + overriding this default value may result in unsupported behavior. :paramtype version: str or ~versioning.added.models.Versions """ diff --git a/packages/typespec-python/tests/generated/azure/versioning-added/versioning/added/aio/_client.py b/packages/typespec-python/tests/generated/azure/versioning-added/versioning/added/aio/_client.py index 4fb07328f3..3121d534a1 100644 --- a/packages/typespec-python/tests/generated/azure/versioning-added/versioning/added/aio/_client.py +++ b/packages/typespec-python/tests/generated/azure/versioning-added/versioning/added/aio/_client.py @@ -27,8 +27,9 @@ class AddedClient(_AddedClientOperationsMixin): # pylint: disable=client-accept :param endpoint: Need to be set as '`http://localhost:3000 `_' in client. Required. :type endpoint: str - :keyword version: Need to be set as 'v1' or 'v2' in client. Known values are "v2". Default - value is "v2". Note that overriding this default value may result in unsupported behavior. + :keyword version: Need to be set as 'v1' or 'v2' in client. Known values are "v2" and None. + Default value is None. If not set, the operation's default API version will be used. Note that + overriding this default value may result in unsupported behavior. :paramtype version: str or ~versioning.added.models.Versions """ diff --git a/packages/typespec-python/tests/generated/azure/versioning-added/versioning/added/aio/_configuration.py b/packages/typespec-python/tests/generated/azure/versioning-added/versioning/added/aio/_configuration.py index 1e40b2ca1a..8ebe10d1a7 100644 --- a/packages/typespec-python/tests/generated/azure/versioning-added/versioning/added/aio/_configuration.py +++ b/packages/typespec-python/tests/generated/azure/versioning-added/versioning/added/aio/_configuration.py @@ -22,8 +22,9 @@ class AddedClientConfiguration: # pylint: disable=too-many-instance-attributes :param endpoint: Need to be set as '`http://localhost:3000 `_' in client. Required. :type endpoint: str - :keyword version: Need to be set as 'v1' or 'v2' in client. Known values are "v2". Default - value is "v2". Note that overriding this default value may result in unsupported behavior. + :keyword version: Need to be set as 'v1' or 'v2' in client. Known values are "v2" and None. + Default value is None. If not set, the operation's default API version will be used. Note that + overriding this default value may result in unsupported behavior. :paramtype version: str or ~versioning.added.models.Versions """ diff --git a/packages/typespec-python/tests/generated/azure/versioning-madeoptional/versioning/madeoptional/_client.py b/packages/typespec-python/tests/generated/azure/versioning-madeoptional/versioning/madeoptional/_client.py index c2b6285fa5..6839ee13d8 100644 --- a/packages/typespec-python/tests/generated/azure/versioning-madeoptional/versioning/madeoptional/_client.py +++ b/packages/typespec-python/tests/generated/azure/versioning-madeoptional/versioning/madeoptional/_client.py @@ -25,8 +25,9 @@ class MadeOptionalClient(_MadeOptionalClientOperationsMixin): # pylint: disable :param endpoint: Need to be set as '`http://localhost:3000 `_' in client. Required. :type endpoint: str - :keyword version: Need to be set as 'v1' or 'v2' in client. Known values are "v2". Default - value is "v2". Note that overriding this default value may result in unsupported behavior. + :keyword version: Need to be set as 'v1' or 'v2' in client. Known values are "v2" and None. + Default value is None. If not set, the operation's default API version will be used. Note that + overriding this default value may result in unsupported behavior. :paramtype version: str or ~versioning.madeoptional.models.Versions """ diff --git a/packages/typespec-python/tests/generated/azure/versioning-madeoptional/versioning/madeoptional/_configuration.py b/packages/typespec-python/tests/generated/azure/versioning-madeoptional/versioning/madeoptional/_configuration.py index ca337b772a..285bb6644e 100644 --- a/packages/typespec-python/tests/generated/azure/versioning-madeoptional/versioning/madeoptional/_configuration.py +++ b/packages/typespec-python/tests/generated/azure/versioning-madeoptional/versioning/madeoptional/_configuration.py @@ -22,8 +22,9 @@ class MadeOptionalClientConfiguration: # pylint: disable=too-many-instance-attr :param endpoint: Need to be set as '`http://localhost:3000 `_' in client. Required. :type endpoint: str - :keyword version: Need to be set as 'v1' or 'v2' in client. Known values are "v2". Default - value is "v2". Note that overriding this default value may result in unsupported behavior. + :keyword version: Need to be set as 'v1' or 'v2' in client. Known values are "v2" and None. + Default value is None. If not set, the operation's default API version will be used. Note that + overriding this default value may result in unsupported behavior. :paramtype version: str or ~versioning.madeoptional.models.Versions """ diff --git a/packages/typespec-python/tests/generated/azure/versioning-madeoptional/versioning/madeoptional/aio/_client.py b/packages/typespec-python/tests/generated/azure/versioning-madeoptional/versioning/madeoptional/aio/_client.py index aa2253dd80..8650cf7ea0 100644 --- a/packages/typespec-python/tests/generated/azure/versioning-madeoptional/versioning/madeoptional/aio/_client.py +++ b/packages/typespec-python/tests/generated/azure/versioning-madeoptional/versioning/madeoptional/aio/_client.py @@ -25,8 +25,9 @@ class MadeOptionalClient(_MadeOptionalClientOperationsMixin): # pylint: disable :param endpoint: Need to be set as '`http://localhost:3000 `_' in client. Required. :type endpoint: str - :keyword version: Need to be set as 'v1' or 'v2' in client. Known values are "v2". Default - value is "v2". Note that overriding this default value may result in unsupported behavior. + :keyword version: Need to be set as 'v1' or 'v2' in client. Known values are "v2" and None. + Default value is None. If not set, the operation's default API version will be used. Note that + overriding this default value may result in unsupported behavior. :paramtype version: str or ~versioning.madeoptional.models.Versions """ diff --git a/packages/typespec-python/tests/generated/azure/versioning-madeoptional/versioning/madeoptional/aio/_configuration.py b/packages/typespec-python/tests/generated/azure/versioning-madeoptional/versioning/madeoptional/aio/_configuration.py index b1c2517052..f65abe6f5f 100644 --- a/packages/typespec-python/tests/generated/azure/versioning-madeoptional/versioning/madeoptional/aio/_configuration.py +++ b/packages/typespec-python/tests/generated/azure/versioning-madeoptional/versioning/madeoptional/aio/_configuration.py @@ -22,8 +22,9 @@ class MadeOptionalClientConfiguration: # pylint: disable=too-many-instance-attr :param endpoint: Need to be set as '`http://localhost:3000 `_' in client. Required. :type endpoint: str - :keyword version: Need to be set as 'v1' or 'v2' in client. Known values are "v2". Default - value is "v2". Note that overriding this default value may result in unsupported behavior. + :keyword version: Need to be set as 'v1' or 'v2' in client. Known values are "v2" and None. + Default value is None. If not set, the operation's default API version will be used. Note that + overriding this default value may result in unsupported behavior. :paramtype version: str or ~versioning.madeoptional.models.Versions """ diff --git a/packages/typespec-python/tests/generated/azure/versioning-removed/versioning/removed/_client.py b/packages/typespec-python/tests/generated/azure/versioning-removed/versioning/removed/_client.py index b1e9bd2d67..e7419674d8 100644 --- a/packages/typespec-python/tests/generated/azure/versioning-removed/versioning/removed/_client.py +++ b/packages/typespec-python/tests/generated/azure/versioning-removed/versioning/removed/_client.py @@ -25,9 +25,9 @@ class RemovedClient(_RemovedClientOperationsMixin): # pylint: disable=client-ac :param endpoint: Need to be set as '`http://localhost:3000 `_' in client. Required. :type endpoint: str - :keyword version: Need to be set as 'v1', 'v2preview' or 'v2' in client. Known values are "v2". - Default value is "v2". Note that overriding this default value may result in unsupported - behavior. + :keyword version: Need to be set as 'v1', 'v2preview' or 'v2' in client. Known values are "v2" + and None. Default value is None. If not set, the operation's default API version will be used. + Note that overriding this default value may result in unsupported behavior. :paramtype version: str or ~versioning.removed.models.Versions """ diff --git a/packages/typespec-python/tests/generated/azure/versioning-removed/versioning/removed/_configuration.py b/packages/typespec-python/tests/generated/azure/versioning-removed/versioning/removed/_configuration.py index e305018fc2..b47a554fa8 100644 --- a/packages/typespec-python/tests/generated/azure/versioning-removed/versioning/removed/_configuration.py +++ b/packages/typespec-python/tests/generated/azure/versioning-removed/versioning/removed/_configuration.py @@ -22,9 +22,9 @@ class RemovedClientConfiguration: # pylint: disable=too-many-instance-attribute :param endpoint: Need to be set as '`http://localhost:3000 `_' in client. Required. :type endpoint: str - :keyword version: Need to be set as 'v1', 'v2preview' or 'v2' in client. Known values are "v2". - Default value is "v2". Note that overriding this default value may result in unsupported - behavior. + :keyword version: Need to be set as 'v1', 'v2preview' or 'v2' in client. Known values are "v2" + and None. Default value is None. If not set, the operation's default API version will be used. + Note that overriding this default value may result in unsupported behavior. :paramtype version: str or ~versioning.removed.models.Versions """ diff --git a/packages/typespec-python/tests/generated/azure/versioning-removed/versioning/removed/aio/_client.py b/packages/typespec-python/tests/generated/azure/versioning-removed/versioning/removed/aio/_client.py index 5432e71976..fa156c6f3d 100644 --- a/packages/typespec-python/tests/generated/azure/versioning-removed/versioning/removed/aio/_client.py +++ b/packages/typespec-python/tests/generated/azure/versioning-removed/versioning/removed/aio/_client.py @@ -25,9 +25,9 @@ class RemovedClient(_RemovedClientOperationsMixin): # pylint: disable=client-ac :param endpoint: Need to be set as '`http://localhost:3000 `_' in client. Required. :type endpoint: str - :keyword version: Need to be set as 'v1', 'v2preview' or 'v2' in client. Known values are "v2". - Default value is "v2". Note that overriding this default value may result in unsupported - behavior. + :keyword version: Need to be set as 'v1', 'v2preview' or 'v2' in client. Known values are "v2" + and None. Default value is None. If not set, the operation's default API version will be used. + Note that overriding this default value may result in unsupported behavior. :paramtype version: str or ~versioning.removed.models.Versions """ diff --git a/packages/typespec-python/tests/generated/azure/versioning-removed/versioning/removed/aio/_configuration.py b/packages/typespec-python/tests/generated/azure/versioning-removed/versioning/removed/aio/_configuration.py index f30415760d..c8433ce2f2 100644 --- a/packages/typespec-python/tests/generated/azure/versioning-removed/versioning/removed/aio/_configuration.py +++ b/packages/typespec-python/tests/generated/azure/versioning-removed/versioning/removed/aio/_configuration.py @@ -22,9 +22,9 @@ class RemovedClientConfiguration: # pylint: disable=too-many-instance-attribute :param endpoint: Need to be set as '`http://localhost:3000 `_' in client. Required. :type endpoint: str - :keyword version: Need to be set as 'v1', 'v2preview' or 'v2' in client. Known values are "v2". - Default value is "v2". Note that overriding this default value may result in unsupported - behavior. + :keyword version: Need to be set as 'v1', 'v2preview' or 'v2' in client. Known values are "v2" + and None. Default value is None. If not set, the operation's default API version will be used. + Note that overriding this default value may result in unsupported behavior. :paramtype version: str or ~versioning.removed.models.Versions """ diff --git a/packages/typespec-python/tests/generated/azure/versioning-renamedfrom/versioning/renamedfrom/_client.py b/packages/typespec-python/tests/generated/azure/versioning-renamedfrom/versioning/renamedfrom/_client.py index a7fa5b0083..fbb7c1bcc3 100644 --- a/packages/typespec-python/tests/generated/azure/versioning-renamedfrom/versioning/renamedfrom/_client.py +++ b/packages/typespec-python/tests/generated/azure/versioning-renamedfrom/versioning/renamedfrom/_client.py @@ -27,8 +27,9 @@ class RenamedFromClient(_RenamedFromClientOperationsMixin): # pylint: disable=c :param endpoint: Need to be set as '`http://localhost:3000 `_' in client. Required. :type endpoint: str - :keyword version: Need to be set as 'v1' or 'v2' in client. Known values are "v2". Default - value is "v2". Note that overriding this default value may result in unsupported behavior. + :keyword version: Need to be set as 'v1' or 'v2' in client. Known values are "v2" and None. + Default value is None. If not set, the operation's default API version will be used. Note that + overriding this default value may result in unsupported behavior. :paramtype version: str or ~versioning.renamedfrom.models.Versions """ diff --git a/packages/typespec-python/tests/generated/azure/versioning-renamedfrom/versioning/renamedfrom/_configuration.py b/packages/typespec-python/tests/generated/azure/versioning-renamedfrom/versioning/renamedfrom/_configuration.py index 5b32ccf963..b99d1d3107 100644 --- a/packages/typespec-python/tests/generated/azure/versioning-renamedfrom/versioning/renamedfrom/_configuration.py +++ b/packages/typespec-python/tests/generated/azure/versioning-renamedfrom/versioning/renamedfrom/_configuration.py @@ -22,8 +22,9 @@ class RenamedFromClientConfiguration: # pylint: disable=too-many-instance-attri :param endpoint: Need to be set as '`http://localhost:3000 `_' in client. Required. :type endpoint: str - :keyword version: Need to be set as 'v1' or 'v2' in client. Known values are "v2". Default - value is "v2". Note that overriding this default value may result in unsupported behavior. + :keyword version: Need to be set as 'v1' or 'v2' in client. Known values are "v2" and None. + Default value is None. If not set, the operation's default API version will be used. Note that + overriding this default value may result in unsupported behavior. :paramtype version: str or ~versioning.renamedfrom.models.Versions """ diff --git a/packages/typespec-python/tests/generated/azure/versioning-renamedfrom/versioning/renamedfrom/aio/_client.py b/packages/typespec-python/tests/generated/azure/versioning-renamedfrom/versioning/renamedfrom/aio/_client.py index d842ea5cd5..205c94f231 100644 --- a/packages/typespec-python/tests/generated/azure/versioning-renamedfrom/versioning/renamedfrom/aio/_client.py +++ b/packages/typespec-python/tests/generated/azure/versioning-renamedfrom/versioning/renamedfrom/aio/_client.py @@ -27,8 +27,9 @@ class RenamedFromClient(_RenamedFromClientOperationsMixin): # pylint: disable=c :param endpoint: Need to be set as '`http://localhost:3000 `_' in client. Required. :type endpoint: str - :keyword version: Need to be set as 'v1' or 'v2' in client. Known values are "v2". Default - value is "v2". Note that overriding this default value may result in unsupported behavior. + :keyword version: Need to be set as 'v1' or 'v2' in client. Known values are "v2" and None. + Default value is None. If not set, the operation's default API version will be used. Note that + overriding this default value may result in unsupported behavior. :paramtype version: str or ~versioning.renamedfrom.models.Versions """ diff --git a/packages/typespec-python/tests/generated/azure/versioning-renamedfrom/versioning/renamedfrom/aio/_configuration.py b/packages/typespec-python/tests/generated/azure/versioning-renamedfrom/versioning/renamedfrom/aio/_configuration.py index 4eacdf735a..02252b48b1 100644 --- a/packages/typespec-python/tests/generated/azure/versioning-renamedfrom/versioning/renamedfrom/aio/_configuration.py +++ b/packages/typespec-python/tests/generated/azure/versioning-renamedfrom/versioning/renamedfrom/aio/_configuration.py @@ -22,8 +22,9 @@ class RenamedFromClientConfiguration: # pylint: disable=too-many-instance-attri :param endpoint: Need to be set as '`http://localhost:3000 `_' in client. Required. :type endpoint: str - :keyword version: Need to be set as 'v1' or 'v2' in client. Known values are "v2". Default - value is "v2". Note that overriding this default value may result in unsupported behavior. + :keyword version: Need to be set as 'v1' or 'v2' in client. Known values are "v2" and None. + Default value is None. If not set, the operation's default API version will be used. Note that + overriding this default value may result in unsupported behavior. :paramtype version: str or ~versioning.renamedfrom.models.Versions """ diff --git a/packages/typespec-python/tests/generated/azure/versioning-returntypechangedfrom/versioning/returntypechangedfrom/_client.py b/packages/typespec-python/tests/generated/azure/versioning-returntypechangedfrom/versioning/returntypechangedfrom/_client.py index 31b775b01c..137f4a598d 100644 --- a/packages/typespec-python/tests/generated/azure/versioning-returntypechangedfrom/versioning/returntypechangedfrom/_client.py +++ b/packages/typespec-python/tests/generated/azure/versioning-returntypechangedfrom/versioning/returntypechangedfrom/_client.py @@ -27,8 +27,9 @@ class ReturnTypeChangedFromClient( :param endpoint: Need to be set as '`http://localhost:3000 `_' in client. Required. :type endpoint: str - :keyword version: Need to be set as 'v1' or 'v2' in client. Known values are "v2". Default - value is "v2". Note that overriding this default value may result in unsupported behavior. + :keyword version: Need to be set as 'v1' or 'v2' in client. Known values are "v2" and None. + Default value is None. If not set, the operation's default API version will be used. Note that + overriding this default value may result in unsupported behavior. :paramtype version: str or ~versioning.returntypechangedfrom.models.Versions """ diff --git a/packages/typespec-python/tests/generated/azure/versioning-returntypechangedfrom/versioning/returntypechangedfrom/_configuration.py b/packages/typespec-python/tests/generated/azure/versioning-returntypechangedfrom/versioning/returntypechangedfrom/_configuration.py index a2000e5bc0..f68b68302e 100644 --- a/packages/typespec-python/tests/generated/azure/versioning-returntypechangedfrom/versioning/returntypechangedfrom/_configuration.py +++ b/packages/typespec-python/tests/generated/azure/versioning-returntypechangedfrom/versioning/returntypechangedfrom/_configuration.py @@ -22,8 +22,9 @@ class ReturnTypeChangedFromClientConfiguration: # pylint: disable=too-many-inst :param endpoint: Need to be set as '`http://localhost:3000 `_' in client. Required. :type endpoint: str - :keyword version: Need to be set as 'v1' or 'v2' in client. Known values are "v2". Default - value is "v2". Note that overriding this default value may result in unsupported behavior. + :keyword version: Need to be set as 'v1' or 'v2' in client. Known values are "v2" and None. + Default value is None. If not set, the operation's default API version will be used. Note that + overriding this default value may result in unsupported behavior. :paramtype version: str or ~versioning.returntypechangedfrom.models.Versions """ diff --git a/packages/typespec-python/tests/generated/azure/versioning-returntypechangedfrom/versioning/returntypechangedfrom/aio/_client.py b/packages/typespec-python/tests/generated/azure/versioning-returntypechangedfrom/versioning/returntypechangedfrom/aio/_client.py index 0796fe3621..94c0d1b6fd 100644 --- a/packages/typespec-python/tests/generated/azure/versioning-returntypechangedfrom/versioning/returntypechangedfrom/aio/_client.py +++ b/packages/typespec-python/tests/generated/azure/versioning-returntypechangedfrom/versioning/returntypechangedfrom/aio/_client.py @@ -27,8 +27,9 @@ class ReturnTypeChangedFromClient( :param endpoint: Need to be set as '`http://localhost:3000 `_' in client. Required. :type endpoint: str - :keyword version: Need to be set as 'v1' or 'v2' in client. Known values are "v2". Default - value is "v2". Note that overriding this default value may result in unsupported behavior. + :keyword version: Need to be set as 'v1' or 'v2' in client. Known values are "v2" and None. + Default value is None. If not set, the operation's default API version will be used. Note that + overriding this default value may result in unsupported behavior. :paramtype version: str or ~versioning.returntypechangedfrom.models.Versions """ diff --git a/packages/typespec-python/tests/generated/azure/versioning-returntypechangedfrom/versioning/returntypechangedfrom/aio/_configuration.py b/packages/typespec-python/tests/generated/azure/versioning-returntypechangedfrom/versioning/returntypechangedfrom/aio/_configuration.py index 0b151e6d61..572ccca1ea 100644 --- a/packages/typespec-python/tests/generated/azure/versioning-returntypechangedfrom/versioning/returntypechangedfrom/aio/_configuration.py +++ b/packages/typespec-python/tests/generated/azure/versioning-returntypechangedfrom/versioning/returntypechangedfrom/aio/_configuration.py @@ -22,8 +22,9 @@ class ReturnTypeChangedFromClientConfiguration: # pylint: disable=too-many-inst :param endpoint: Need to be set as '`http://localhost:3000 `_' in client. Required. :type endpoint: str - :keyword version: Need to be set as 'v1' or 'v2' in client. Known values are "v2". Default - value is "v2". Note that overriding this default value may result in unsupported behavior. + :keyword version: Need to be set as 'v1' or 'v2' in client. Known values are "v2" and None. + Default value is None. If not set, the operation's default API version will be used. Note that + overriding this default value may result in unsupported behavior. :paramtype version: str or ~versioning.returntypechangedfrom.models.Versions """ diff --git a/packages/typespec-python/tests/generated/azure/versioning-typechangedfrom/versioning/typechangedfrom/_client.py b/packages/typespec-python/tests/generated/azure/versioning-typechangedfrom/versioning/typechangedfrom/_client.py index e038a08859..8091f28a82 100644 --- a/packages/typespec-python/tests/generated/azure/versioning-typechangedfrom/versioning/typechangedfrom/_client.py +++ b/packages/typespec-python/tests/generated/azure/versioning-typechangedfrom/versioning/typechangedfrom/_client.py @@ -27,8 +27,9 @@ class TypeChangedFromClient( :param endpoint: Need to be set as '`http://localhost:3000 `_' in client. Required. :type endpoint: str - :keyword version: Need to be set as 'v1' or 'v2' in client. Known values are "v2". Default - value is "v2". Note that overriding this default value may result in unsupported behavior. + :keyword version: Need to be set as 'v1' or 'v2' in client. Known values are "v2" and None. + Default value is None. If not set, the operation's default API version will be used. Note that + overriding this default value may result in unsupported behavior. :paramtype version: str or ~versioning.typechangedfrom.models.Versions """ diff --git a/packages/typespec-python/tests/generated/azure/versioning-typechangedfrom/versioning/typechangedfrom/_configuration.py b/packages/typespec-python/tests/generated/azure/versioning-typechangedfrom/versioning/typechangedfrom/_configuration.py index 22600f1fc5..c8cdc9c823 100644 --- a/packages/typespec-python/tests/generated/azure/versioning-typechangedfrom/versioning/typechangedfrom/_configuration.py +++ b/packages/typespec-python/tests/generated/azure/versioning-typechangedfrom/versioning/typechangedfrom/_configuration.py @@ -22,8 +22,9 @@ class TypeChangedFromClientConfiguration: # pylint: disable=too-many-instance-a :param endpoint: Need to be set as '`http://localhost:3000 `_' in client. Required. :type endpoint: str - :keyword version: Need to be set as 'v1' or 'v2' in client. Known values are "v2". Default - value is "v2". Note that overriding this default value may result in unsupported behavior. + :keyword version: Need to be set as 'v1' or 'v2' in client. Known values are "v2" and None. + Default value is None. If not set, the operation's default API version will be used. Note that + overriding this default value may result in unsupported behavior. :paramtype version: str or ~versioning.typechangedfrom.models.Versions """ diff --git a/packages/typespec-python/tests/generated/azure/versioning-typechangedfrom/versioning/typechangedfrom/aio/_client.py b/packages/typespec-python/tests/generated/azure/versioning-typechangedfrom/versioning/typechangedfrom/aio/_client.py index da5763e044..38383e658e 100644 --- a/packages/typespec-python/tests/generated/azure/versioning-typechangedfrom/versioning/typechangedfrom/aio/_client.py +++ b/packages/typespec-python/tests/generated/azure/versioning-typechangedfrom/versioning/typechangedfrom/aio/_client.py @@ -27,8 +27,9 @@ class TypeChangedFromClient( :param endpoint: Need to be set as '`http://localhost:3000 `_' in client. Required. :type endpoint: str - :keyword version: Need to be set as 'v1' or 'v2' in client. Known values are "v2". Default - value is "v2". Note that overriding this default value may result in unsupported behavior. + :keyword version: Need to be set as 'v1' or 'v2' in client. Known values are "v2" and None. + Default value is None. If not set, the operation's default API version will be used. Note that + overriding this default value may result in unsupported behavior. :paramtype version: str or ~versioning.typechangedfrom.models.Versions """ diff --git a/packages/typespec-python/tests/generated/azure/versioning-typechangedfrom/versioning/typechangedfrom/aio/_configuration.py b/packages/typespec-python/tests/generated/azure/versioning-typechangedfrom/versioning/typechangedfrom/aio/_configuration.py index 608bd575e7..7658a2e5cd 100644 --- a/packages/typespec-python/tests/generated/azure/versioning-typechangedfrom/versioning/typechangedfrom/aio/_configuration.py +++ b/packages/typespec-python/tests/generated/azure/versioning-typechangedfrom/versioning/typechangedfrom/aio/_configuration.py @@ -22,8 +22,9 @@ class TypeChangedFromClientConfiguration: # pylint: disable=too-many-instance-a :param endpoint: Need to be set as '`http://localhost:3000 `_' in client. Required. :type endpoint: str - :keyword version: Need to be set as 'v1' or 'v2' in client. Known values are "v2". Default - value is "v2". Note that overriding this default value may result in unsupported behavior. + :keyword version: Need to be set as 'v1' or 'v2' in client. Known values are "v2" and None. + Default value is None. If not set, the operation's default API version will be used. Note that + overriding this default value may result in unsupported behavior. :paramtype version: str or ~versioning.typechangedfrom.models.Versions """ diff --git a/packages/typespec-python/tests/generated/unbranded/generation-subdir2/generation/subdir2/_generated/_client.py b/packages/typespec-python/tests/generated/unbranded/generation-subdir2/generation/subdir2/_generated/_client.py index a45eb1784d..280d95dd77 100644 --- a/packages/typespec-python/tests/generated/unbranded/generation-subdir2/generation/subdir2/_generated/_client.py +++ b/packages/typespec-python/tests/generated/unbranded/generation-subdir2/generation/subdir2/_generated/_client.py @@ -20,8 +20,9 @@ class AddedClient(_AddedClientOperationsMixin): # pylint: disable=client-accept :param endpoint: Need to be set as '`http://localhost:3000 `_' in client. Required. :type endpoint: str - :keyword version: Need to be set as 'v1' or 'v2' in client. Known values are "v2". Default - value is "v2". Note that overriding this default value may result in unsupported behavior. + :keyword version: Need to be set as 'v1' or 'v2' in client. Known values are "v2" and None. + Default value is None. If not set, the operation's default API version will be used. Note that + overriding this default value may result in unsupported behavior. :paramtype version: str or ~generation.subdir2.models.Versions """ diff --git a/packages/typespec-python/tests/generated/unbranded/generation-subdir2/generation/subdir2/_generated/_configuration.py b/packages/typespec-python/tests/generated/unbranded/generation-subdir2/generation/subdir2/_generated/_configuration.py index a90c48b5aa..ece2dfa538 100644 --- a/packages/typespec-python/tests/generated/unbranded/generation-subdir2/generation/subdir2/_generated/_configuration.py +++ b/packages/typespec-python/tests/generated/unbranded/generation-subdir2/generation/subdir2/_generated/_configuration.py @@ -16,8 +16,9 @@ class AddedClientConfiguration: :param endpoint: Need to be set as '`http://localhost:3000 `_' in client. Required. :type endpoint: str - :keyword version: Need to be set as 'v1' or 'v2' in client. Known values are "v2". Default - value is "v2". Note that overriding this default value may result in unsupported behavior. + :keyword version: Need to be set as 'v1' or 'v2' in client. Known values are "v2" and None. + Default value is None. If not set, the operation's default API version will be used. Note that + overriding this default value may result in unsupported behavior. :paramtype version: str or ~generation.subdir2.models.Versions """ diff --git a/packages/typespec-python/tests/generated/unbranded/generation-subdir2/generation/subdir2/_generated/aio/_client.py b/packages/typespec-python/tests/generated/unbranded/generation-subdir2/generation/subdir2/_generated/aio/_client.py index 74e39851ab..d4ddb5f9ad 100644 --- a/packages/typespec-python/tests/generated/unbranded/generation-subdir2/generation/subdir2/_generated/aio/_client.py +++ b/packages/typespec-python/tests/generated/unbranded/generation-subdir2/generation/subdir2/_generated/aio/_client.py @@ -20,8 +20,9 @@ class AddedClient(_AddedClientOperationsMixin): # pylint: disable=client-accept :param endpoint: Need to be set as '`http://localhost:3000 `_' in client. Required. :type endpoint: str - :keyword version: Need to be set as 'v1' or 'v2' in client. Known values are "v2". Default - value is "v2". Note that overriding this default value may result in unsupported behavior. + :keyword version: Need to be set as 'v1' or 'v2' in client. Known values are "v2" and None. + Default value is None. If not set, the operation's default API version will be used. Note that + overriding this default value may result in unsupported behavior. :paramtype version: str or ~generation.subdir2.models.Versions """ diff --git a/packages/typespec-python/tests/generated/unbranded/generation-subdir2/generation/subdir2/_generated/aio/_configuration.py b/packages/typespec-python/tests/generated/unbranded/generation-subdir2/generation/subdir2/_generated/aio/_configuration.py index 2eacd0487f..c8ac488471 100644 --- a/packages/typespec-python/tests/generated/unbranded/generation-subdir2/generation/subdir2/_generated/aio/_configuration.py +++ b/packages/typespec-python/tests/generated/unbranded/generation-subdir2/generation/subdir2/_generated/aio/_configuration.py @@ -16,8 +16,9 @@ class AddedClientConfiguration: :param endpoint: Need to be set as '`http://localhost:3000 `_' in client. Required. :type endpoint: str - :keyword version: Need to be set as 'v1' or 'v2' in client. Known values are "v2". Default - value is "v2". Note that overriding this default value may result in unsupported behavior. + :keyword version: Need to be set as 'v1' or 'v2' in client. Known values are "v2" and None. + Default value is None. If not set, the operation's default API version will be used. Note that + overriding this default value may result in unsupported behavior. :paramtype version: str or ~generation.subdir2.models.Versions """ diff --git a/packages/typespec-python/tests/generated/unbranded/server-path-multiple/server/path/multiple/_client.py b/packages/typespec-python/tests/generated/unbranded/server-path-multiple/server/path/multiple/_client.py index 48248c1e77..2691f62283 100644 --- a/packages/typespec-python/tests/generated/unbranded/server-path-multiple/server/path/multiple/_client.py +++ b/packages/typespec-python/tests/generated/unbranded/server-path-multiple/server/path/multiple/_client.py @@ -18,8 +18,9 @@ class MultipleClient(_MultipleClientOperationsMixin): :param endpoint: Pass in `http://localhost:3000 `_ for endpoint. Required. :type endpoint: str - :keyword api_version: Pass in v1.0 for API version. Known values are "v1.0". Default value is - "v1.0". Note that overriding this default value may result in unsupported behavior. + :keyword api_version: Pass in v1.0 for API version. Known values are "v1.0" and None. Default + value is None. If not set, the operation's default API version will be used. Note that + overriding this default value may result in unsupported behavior. :paramtype api_version: str or ~server.path.multiple.models.Versions """ diff --git a/packages/typespec-python/tests/generated/unbranded/server-path-multiple/server/path/multiple/_configuration.py b/packages/typespec-python/tests/generated/unbranded/server-path-multiple/server/path/multiple/_configuration.py index bc4e0bfee5..41ea4c4b04 100644 --- a/packages/typespec-python/tests/generated/unbranded/server-path-multiple/server/path/multiple/_configuration.py +++ b/packages/typespec-python/tests/generated/unbranded/server-path-multiple/server/path/multiple/_configuration.py @@ -16,8 +16,9 @@ class MultipleClientConfiguration: :param endpoint: Pass in `http://localhost:3000 `_ for endpoint. Required. :type endpoint: str - :keyword api_version: Pass in v1.0 for API version. Known values are "v1.0". Default value is - "v1.0". Note that overriding this default value may result in unsupported behavior. + :keyword api_version: Pass in v1.0 for API version. Known values are "v1.0" and None. Default + value is None. If not set, the operation's default API version will be used. Note that + overriding this default value may result in unsupported behavior. :paramtype api_version: str or ~server.path.multiple.models.Versions """ diff --git a/packages/typespec-python/tests/generated/unbranded/server-path-multiple/server/path/multiple/aio/_client.py b/packages/typespec-python/tests/generated/unbranded/server-path-multiple/server/path/multiple/aio/_client.py index 2cb25a946d..9d67004365 100644 --- a/packages/typespec-python/tests/generated/unbranded/server-path-multiple/server/path/multiple/aio/_client.py +++ b/packages/typespec-python/tests/generated/unbranded/server-path-multiple/server/path/multiple/aio/_client.py @@ -18,8 +18,9 @@ class MultipleClient(_MultipleClientOperationsMixin): :param endpoint: Pass in `http://localhost:3000 `_ for endpoint. Required. :type endpoint: str - :keyword api_version: Pass in v1.0 for API version. Known values are "v1.0". Default value is - "v1.0". Note that overriding this default value may result in unsupported behavior. + :keyword api_version: Pass in v1.0 for API version. Known values are "v1.0" and None. Default + value is None. If not set, the operation's default API version will be used. Note that + overriding this default value may result in unsupported behavior. :paramtype api_version: str or ~server.path.multiple.models.Versions """ diff --git a/packages/typespec-python/tests/generated/unbranded/server-path-multiple/server/path/multiple/aio/_configuration.py b/packages/typespec-python/tests/generated/unbranded/server-path-multiple/server/path/multiple/aio/_configuration.py index 3578924f0d..43f69b543c 100644 --- a/packages/typespec-python/tests/generated/unbranded/server-path-multiple/server/path/multiple/aio/_configuration.py +++ b/packages/typespec-python/tests/generated/unbranded/server-path-multiple/server/path/multiple/aio/_configuration.py @@ -16,8 +16,9 @@ class MultipleClientConfiguration: :param endpoint: Pass in `http://localhost:3000 `_ for endpoint. Required. :type endpoint: str - :keyword api_version: Pass in v1.0 for API version. Known values are "v1.0". Default value is - "v1.0". Note that overriding this default value may result in unsupported behavior. + :keyword api_version: Pass in v1.0 for API version. Known values are "v1.0" and None. Default + value is None. If not set, the operation's default API version will be used. Note that + overriding this default value may result in unsupported behavior. :paramtype api_version: str or ~server.path.multiple.models.Versions """ diff --git a/packages/typespec-python/tests/generated/unbranded/server-versions-versioned/server/versions/versioned/_client.py b/packages/typespec-python/tests/generated/unbranded/server-versions-versioned/server/versions/versioned/_client.py index 4cb201e2d3..a1c6b700de 100644 --- a/packages/typespec-python/tests/generated/unbranded/server-versions-versioned/server/versions/versioned/_client.py +++ b/packages/typespec-python/tests/generated/unbranded/server-versions-versioned/server/versions/versioned/_client.py @@ -18,9 +18,9 @@ class VersionedClient(_VersionedClientOperationsMixin): :param endpoint: Need to be set as '`http://localhost:3000 `_' in client. Required. :type endpoint: str - :keyword api_version: Known values are "2022-12-01-preview". Default value is - "2022-12-01-preview". Note that overriding this default value may result in unsupported - behavior. + :keyword api_version: Known values are "2022-12-01-preview" and None. Default value is None. If + not set, the operation's default API version will be used. Note that overriding this default + value may result in unsupported behavior. :paramtype api_version: str """ diff --git a/packages/typespec-python/tests/generated/unbranded/server-versions-versioned/server/versions/versioned/_configuration.py b/packages/typespec-python/tests/generated/unbranded/server-versions-versioned/server/versions/versioned/_configuration.py index 19f40952ba..a37c4114f9 100644 --- a/packages/typespec-python/tests/generated/unbranded/server-versions-versioned/server/versions/versioned/_configuration.py +++ b/packages/typespec-python/tests/generated/unbranded/server-versions-versioned/server/versions/versioned/_configuration.py @@ -16,9 +16,9 @@ class VersionedClientConfiguration: :param endpoint: Need to be set as '`http://localhost:3000 `_' in client. Required. :type endpoint: str - :keyword api_version: Known values are "2022-12-01-preview". Default value is - "2022-12-01-preview". Note that overriding this default value may result in unsupported - behavior. + :keyword api_version: Known values are "2022-12-01-preview" and None. Default value is None. If + not set, the operation's default API version will be used. Note that overriding this default + value may result in unsupported behavior. :paramtype api_version: str """ diff --git a/packages/typespec-python/tests/generated/unbranded/server-versions-versioned/server/versions/versioned/aio/_client.py b/packages/typespec-python/tests/generated/unbranded/server-versions-versioned/server/versions/versioned/aio/_client.py index 47a3423807..0fb9efb66b 100644 --- a/packages/typespec-python/tests/generated/unbranded/server-versions-versioned/server/versions/versioned/aio/_client.py +++ b/packages/typespec-python/tests/generated/unbranded/server-versions-versioned/server/versions/versioned/aio/_client.py @@ -18,9 +18,9 @@ class VersionedClient(_VersionedClientOperationsMixin): :param endpoint: Need to be set as '`http://localhost:3000 `_' in client. Required. :type endpoint: str - :keyword api_version: Known values are "2022-12-01-preview". Default value is - "2022-12-01-preview". Note that overriding this default value may result in unsupported - behavior. + :keyword api_version: Known values are "2022-12-01-preview" and None. Default value is None. If + not set, the operation's default API version will be used. Note that overriding this default + value may result in unsupported behavior. :paramtype api_version: str """ diff --git a/packages/typespec-python/tests/generated/unbranded/server-versions-versioned/server/versions/versioned/aio/_configuration.py b/packages/typespec-python/tests/generated/unbranded/server-versions-versioned/server/versions/versioned/aio/_configuration.py index 58ee426a18..fb66606aa9 100644 --- a/packages/typespec-python/tests/generated/unbranded/server-versions-versioned/server/versions/versioned/aio/_configuration.py +++ b/packages/typespec-python/tests/generated/unbranded/server-versions-versioned/server/versions/versioned/aio/_configuration.py @@ -16,9 +16,9 @@ class VersionedClientConfiguration: :param endpoint: Need to be set as '`http://localhost:3000 `_' in client. Required. :type endpoint: str - :keyword api_version: Known values are "2022-12-01-preview". Default value is - "2022-12-01-preview". Note that overriding this default value may result in unsupported - behavior. + :keyword api_version: Known values are "2022-12-01-preview" and None. Default value is None. If + not set, the operation's default API version will be used. Note that overriding this default + value may result in unsupported behavior. :paramtype api_version: str """ diff --git a/packages/typespec-python/tests/generated/unbranded/versioning-added/versioning/added/_client.py b/packages/typespec-python/tests/generated/unbranded/versioning-added/versioning/added/_client.py index 2d44ac10db..37acafcf3b 100644 --- a/packages/typespec-python/tests/generated/unbranded/versioning-added/versioning/added/_client.py +++ b/packages/typespec-python/tests/generated/unbranded/versioning-added/versioning/added/_client.py @@ -20,8 +20,9 @@ class AddedClient(_AddedClientOperationsMixin): # pylint: disable=client-accept :param endpoint: Need to be set as '`http://localhost:3000 `_' in client. Required. :type endpoint: str - :keyword version: Need to be set as 'v1' or 'v2' in client. Known values are "v2". Default - value is "v2". Note that overriding this default value may result in unsupported behavior. + :keyword version: Need to be set as 'v1' or 'v2' in client. Known values are "v2" and None. + Default value is None. If not set, the operation's default API version will be used. Note that + overriding this default value may result in unsupported behavior. :paramtype version: str or ~versioning.added.models.Versions """ diff --git a/packages/typespec-python/tests/generated/unbranded/versioning-added/versioning/added/_configuration.py b/packages/typespec-python/tests/generated/unbranded/versioning-added/versioning/added/_configuration.py index a5dc48156d..20f5f9982e 100644 --- a/packages/typespec-python/tests/generated/unbranded/versioning-added/versioning/added/_configuration.py +++ b/packages/typespec-python/tests/generated/unbranded/versioning-added/versioning/added/_configuration.py @@ -16,8 +16,9 @@ class AddedClientConfiguration: :param endpoint: Need to be set as '`http://localhost:3000 `_' in client. Required. :type endpoint: str - :keyword version: Need to be set as 'v1' or 'v2' in client. Known values are "v2". Default - value is "v2". Note that overriding this default value may result in unsupported behavior. + :keyword version: Need to be set as 'v1' or 'v2' in client. Known values are "v2" and None. + Default value is None. If not set, the operation's default API version will be used. Note that + overriding this default value may result in unsupported behavior. :paramtype version: str or ~versioning.added.models.Versions """ diff --git a/packages/typespec-python/tests/generated/unbranded/versioning-added/versioning/added/aio/_client.py b/packages/typespec-python/tests/generated/unbranded/versioning-added/versioning/added/aio/_client.py index bde120a6fa..8cd0849bcb 100644 --- a/packages/typespec-python/tests/generated/unbranded/versioning-added/versioning/added/aio/_client.py +++ b/packages/typespec-python/tests/generated/unbranded/versioning-added/versioning/added/aio/_client.py @@ -20,8 +20,9 @@ class AddedClient(_AddedClientOperationsMixin): # pylint: disable=client-accept :param endpoint: Need to be set as '`http://localhost:3000 `_' in client. Required. :type endpoint: str - :keyword version: Need to be set as 'v1' or 'v2' in client. Known values are "v2". Default - value is "v2". Note that overriding this default value may result in unsupported behavior. + :keyword version: Need to be set as 'v1' or 'v2' in client. Known values are "v2" and None. + Default value is None. If not set, the operation's default API version will be used. Note that + overriding this default value may result in unsupported behavior. :paramtype version: str or ~versioning.added.models.Versions """ diff --git a/packages/typespec-python/tests/generated/unbranded/versioning-added/versioning/added/aio/_configuration.py b/packages/typespec-python/tests/generated/unbranded/versioning-added/versioning/added/aio/_configuration.py index c9500b4a14..04bed28b8f 100644 --- a/packages/typespec-python/tests/generated/unbranded/versioning-added/versioning/added/aio/_configuration.py +++ b/packages/typespec-python/tests/generated/unbranded/versioning-added/versioning/added/aio/_configuration.py @@ -16,8 +16,9 @@ class AddedClientConfiguration: :param endpoint: Need to be set as '`http://localhost:3000 `_' in client. Required. :type endpoint: str - :keyword version: Need to be set as 'v1' or 'v2' in client. Known values are "v2". Default - value is "v2". Note that overriding this default value may result in unsupported behavior. + :keyword version: Need to be set as 'v1' or 'v2' in client. Known values are "v2" and None. + Default value is None. If not set, the operation's default API version will be used. Note that + overriding this default value may result in unsupported behavior. :paramtype version: str or ~versioning.added.models.Versions """ diff --git a/packages/typespec-python/tests/generated/unbranded/versioning-madeoptional/versioning/madeoptional/_client.py b/packages/typespec-python/tests/generated/unbranded/versioning-madeoptional/versioning/madeoptional/_client.py index 1518662c90..b462f38cff 100644 --- a/packages/typespec-python/tests/generated/unbranded/versioning-madeoptional/versioning/madeoptional/_client.py +++ b/packages/typespec-python/tests/generated/unbranded/versioning-madeoptional/versioning/madeoptional/_client.py @@ -18,8 +18,9 @@ class MadeOptionalClient(_MadeOptionalClientOperationsMixin): # pylint: disable :param endpoint: Need to be set as '`http://localhost:3000 `_' in client. Required. :type endpoint: str - :keyword version: Need to be set as 'v1' or 'v2' in client. Known values are "v2". Default - value is "v2". Note that overriding this default value may result in unsupported behavior. + :keyword version: Need to be set as 'v1' or 'v2' in client. Known values are "v2" and None. + Default value is None. If not set, the operation's default API version will be used. Note that + overriding this default value may result in unsupported behavior. :paramtype version: str or ~versioning.madeoptional.models.Versions """ diff --git a/packages/typespec-python/tests/generated/unbranded/versioning-madeoptional/versioning/madeoptional/_configuration.py b/packages/typespec-python/tests/generated/unbranded/versioning-madeoptional/versioning/madeoptional/_configuration.py index 198ee3fe95..4db5f663be 100644 --- a/packages/typespec-python/tests/generated/unbranded/versioning-madeoptional/versioning/madeoptional/_configuration.py +++ b/packages/typespec-python/tests/generated/unbranded/versioning-madeoptional/versioning/madeoptional/_configuration.py @@ -16,8 +16,9 @@ class MadeOptionalClientConfiguration: :param endpoint: Need to be set as '`http://localhost:3000 `_' in client. Required. :type endpoint: str - :keyword version: Need to be set as 'v1' or 'v2' in client. Known values are "v2". Default - value is "v2". Note that overriding this default value may result in unsupported behavior. + :keyword version: Need to be set as 'v1' or 'v2' in client. Known values are "v2" and None. + Default value is None. If not set, the operation's default API version will be used. Note that + overriding this default value may result in unsupported behavior. :paramtype version: str or ~versioning.madeoptional.models.Versions """ diff --git a/packages/typespec-python/tests/generated/unbranded/versioning-madeoptional/versioning/madeoptional/aio/_client.py b/packages/typespec-python/tests/generated/unbranded/versioning-madeoptional/versioning/madeoptional/aio/_client.py index 0ee2735c39..06badd8d45 100644 --- a/packages/typespec-python/tests/generated/unbranded/versioning-madeoptional/versioning/madeoptional/aio/_client.py +++ b/packages/typespec-python/tests/generated/unbranded/versioning-madeoptional/versioning/madeoptional/aio/_client.py @@ -18,8 +18,9 @@ class MadeOptionalClient(_MadeOptionalClientOperationsMixin): # pylint: disable :param endpoint: Need to be set as '`http://localhost:3000 `_' in client. Required. :type endpoint: str - :keyword version: Need to be set as 'v1' or 'v2' in client. Known values are "v2". Default - value is "v2". Note that overriding this default value may result in unsupported behavior. + :keyword version: Need to be set as 'v1' or 'v2' in client. Known values are "v2" and None. + Default value is None. If not set, the operation's default API version will be used. Note that + overriding this default value may result in unsupported behavior. :paramtype version: str or ~versioning.madeoptional.models.Versions """ diff --git a/packages/typespec-python/tests/generated/unbranded/versioning-madeoptional/versioning/madeoptional/aio/_configuration.py b/packages/typespec-python/tests/generated/unbranded/versioning-madeoptional/versioning/madeoptional/aio/_configuration.py index 24543e98dc..3baeea662a 100644 --- a/packages/typespec-python/tests/generated/unbranded/versioning-madeoptional/versioning/madeoptional/aio/_configuration.py +++ b/packages/typespec-python/tests/generated/unbranded/versioning-madeoptional/versioning/madeoptional/aio/_configuration.py @@ -16,8 +16,9 @@ class MadeOptionalClientConfiguration: :param endpoint: Need to be set as '`http://localhost:3000 `_' in client. Required. :type endpoint: str - :keyword version: Need to be set as 'v1' or 'v2' in client. Known values are "v2". Default - value is "v2". Note that overriding this default value may result in unsupported behavior. + :keyword version: Need to be set as 'v1' or 'v2' in client. Known values are "v2" and None. + Default value is None. If not set, the operation's default API version will be used. Note that + overriding this default value may result in unsupported behavior. :paramtype version: str or ~versioning.madeoptional.models.Versions """ diff --git a/packages/typespec-python/tests/generated/unbranded/versioning-removed/versioning/removed/_client.py b/packages/typespec-python/tests/generated/unbranded/versioning-removed/versioning/removed/_client.py index 348bd0fd29..f09f933a73 100644 --- a/packages/typespec-python/tests/generated/unbranded/versioning-removed/versioning/removed/_client.py +++ b/packages/typespec-python/tests/generated/unbranded/versioning-removed/versioning/removed/_client.py @@ -18,9 +18,9 @@ class RemovedClient(_RemovedClientOperationsMixin): # pylint: disable=client-ac :param endpoint: Need to be set as '`http://localhost:3000 `_' in client. Required. :type endpoint: str - :keyword version: Need to be set as 'v1', 'v2preview' or 'v2' in client. Known values are "v2". - Default value is "v2". Note that overriding this default value may result in unsupported - behavior. + :keyword version: Need to be set as 'v1', 'v2preview' or 'v2' in client. Known values are "v2" + and None. Default value is None. If not set, the operation's default API version will be used. + Note that overriding this default value may result in unsupported behavior. :paramtype version: str or ~versioning.removed.models.Versions """ diff --git a/packages/typespec-python/tests/generated/unbranded/versioning-removed/versioning/removed/_configuration.py b/packages/typespec-python/tests/generated/unbranded/versioning-removed/versioning/removed/_configuration.py index 6b0e10b9a2..cc7c837894 100644 --- a/packages/typespec-python/tests/generated/unbranded/versioning-removed/versioning/removed/_configuration.py +++ b/packages/typespec-python/tests/generated/unbranded/versioning-removed/versioning/removed/_configuration.py @@ -16,9 +16,9 @@ class RemovedClientConfiguration: :param endpoint: Need to be set as '`http://localhost:3000 `_' in client. Required. :type endpoint: str - :keyword version: Need to be set as 'v1', 'v2preview' or 'v2' in client. Known values are "v2". - Default value is "v2". Note that overriding this default value may result in unsupported - behavior. + :keyword version: Need to be set as 'v1', 'v2preview' or 'v2' in client. Known values are "v2" + and None. Default value is None. If not set, the operation's default API version will be used. + Note that overriding this default value may result in unsupported behavior. :paramtype version: str or ~versioning.removed.models.Versions """ diff --git a/packages/typespec-python/tests/generated/unbranded/versioning-removed/versioning/removed/aio/_client.py b/packages/typespec-python/tests/generated/unbranded/versioning-removed/versioning/removed/aio/_client.py index 3a027590ee..ce606c775c 100644 --- a/packages/typespec-python/tests/generated/unbranded/versioning-removed/versioning/removed/aio/_client.py +++ b/packages/typespec-python/tests/generated/unbranded/versioning-removed/versioning/removed/aio/_client.py @@ -18,9 +18,9 @@ class RemovedClient(_RemovedClientOperationsMixin): # pylint: disable=client-ac :param endpoint: Need to be set as '`http://localhost:3000 `_' in client. Required. :type endpoint: str - :keyword version: Need to be set as 'v1', 'v2preview' or 'v2' in client. Known values are "v2". - Default value is "v2". Note that overriding this default value may result in unsupported - behavior. + :keyword version: Need to be set as 'v1', 'v2preview' or 'v2' in client. Known values are "v2" + and None. Default value is None. If not set, the operation's default API version will be used. + Note that overriding this default value may result in unsupported behavior. :paramtype version: str or ~versioning.removed.models.Versions """ diff --git a/packages/typespec-python/tests/generated/unbranded/versioning-removed/versioning/removed/aio/_configuration.py b/packages/typespec-python/tests/generated/unbranded/versioning-removed/versioning/removed/aio/_configuration.py index 36619e45b0..9da0d45061 100644 --- a/packages/typespec-python/tests/generated/unbranded/versioning-removed/versioning/removed/aio/_configuration.py +++ b/packages/typespec-python/tests/generated/unbranded/versioning-removed/versioning/removed/aio/_configuration.py @@ -16,9 +16,9 @@ class RemovedClientConfiguration: :param endpoint: Need to be set as '`http://localhost:3000 `_' in client. Required. :type endpoint: str - :keyword version: Need to be set as 'v1', 'v2preview' or 'v2' in client. Known values are "v2". - Default value is "v2". Note that overriding this default value may result in unsupported - behavior. + :keyword version: Need to be set as 'v1', 'v2preview' or 'v2' in client. Known values are "v2" + and None. Default value is None. If not set, the operation's default API version will be used. + Note that overriding this default value may result in unsupported behavior. :paramtype version: str or ~versioning.removed.models.Versions """ diff --git a/packages/typespec-python/tests/generated/unbranded/versioning-renamedfrom/versioning/renamedfrom/_client.py b/packages/typespec-python/tests/generated/unbranded/versioning-renamedfrom/versioning/renamedfrom/_client.py index 666ef15f20..2fa7744c2e 100644 --- a/packages/typespec-python/tests/generated/unbranded/versioning-renamedfrom/versioning/renamedfrom/_client.py +++ b/packages/typespec-python/tests/generated/unbranded/versioning-renamedfrom/versioning/renamedfrom/_client.py @@ -20,8 +20,9 @@ class RenamedFromClient(_RenamedFromClientOperationsMixin): # pylint: disable=c :param endpoint: Need to be set as '`http://localhost:3000 `_' in client. Required. :type endpoint: str - :keyword version: Need to be set as 'v1' or 'v2' in client. Known values are "v2". Default - value is "v2". Note that overriding this default value may result in unsupported behavior. + :keyword version: Need to be set as 'v1' or 'v2' in client. Known values are "v2" and None. + Default value is None. If not set, the operation's default API version will be used. Note that + overriding this default value may result in unsupported behavior. :paramtype version: str or ~versioning.renamedfrom.models.Versions """ diff --git a/packages/typespec-python/tests/generated/unbranded/versioning-renamedfrom/versioning/renamedfrom/_configuration.py b/packages/typespec-python/tests/generated/unbranded/versioning-renamedfrom/versioning/renamedfrom/_configuration.py index 5efdccfc28..ae658fbb81 100644 --- a/packages/typespec-python/tests/generated/unbranded/versioning-renamedfrom/versioning/renamedfrom/_configuration.py +++ b/packages/typespec-python/tests/generated/unbranded/versioning-renamedfrom/versioning/renamedfrom/_configuration.py @@ -16,8 +16,9 @@ class RenamedFromClientConfiguration: :param endpoint: Need to be set as '`http://localhost:3000 `_' in client. Required. :type endpoint: str - :keyword version: Need to be set as 'v1' or 'v2' in client. Known values are "v2". Default - value is "v2". Note that overriding this default value may result in unsupported behavior. + :keyword version: Need to be set as 'v1' or 'v2' in client. Known values are "v2" and None. + Default value is None. If not set, the operation's default API version will be used. Note that + overriding this default value may result in unsupported behavior. :paramtype version: str or ~versioning.renamedfrom.models.Versions """ diff --git a/packages/typespec-python/tests/generated/unbranded/versioning-renamedfrom/versioning/renamedfrom/aio/_client.py b/packages/typespec-python/tests/generated/unbranded/versioning-renamedfrom/versioning/renamedfrom/aio/_client.py index e6c34b6d4b..0441277ba5 100644 --- a/packages/typespec-python/tests/generated/unbranded/versioning-renamedfrom/versioning/renamedfrom/aio/_client.py +++ b/packages/typespec-python/tests/generated/unbranded/versioning-renamedfrom/versioning/renamedfrom/aio/_client.py @@ -20,8 +20,9 @@ class RenamedFromClient(_RenamedFromClientOperationsMixin): # pylint: disable=c :param endpoint: Need to be set as '`http://localhost:3000 `_' in client. Required. :type endpoint: str - :keyword version: Need to be set as 'v1' or 'v2' in client. Known values are "v2". Default - value is "v2". Note that overriding this default value may result in unsupported behavior. + :keyword version: Need to be set as 'v1' or 'v2' in client. Known values are "v2" and None. + Default value is None. If not set, the operation's default API version will be used. Note that + overriding this default value may result in unsupported behavior. :paramtype version: str or ~versioning.renamedfrom.models.Versions """ diff --git a/packages/typespec-python/tests/generated/unbranded/versioning-renamedfrom/versioning/renamedfrom/aio/_configuration.py b/packages/typespec-python/tests/generated/unbranded/versioning-renamedfrom/versioning/renamedfrom/aio/_configuration.py index effe9182f6..20429d1770 100644 --- a/packages/typespec-python/tests/generated/unbranded/versioning-renamedfrom/versioning/renamedfrom/aio/_configuration.py +++ b/packages/typespec-python/tests/generated/unbranded/versioning-renamedfrom/versioning/renamedfrom/aio/_configuration.py @@ -16,8 +16,9 @@ class RenamedFromClientConfiguration: :param endpoint: Need to be set as '`http://localhost:3000 `_' in client. Required. :type endpoint: str - :keyword version: Need to be set as 'v1' or 'v2' in client. Known values are "v2". Default - value is "v2". Note that overriding this default value may result in unsupported behavior. + :keyword version: Need to be set as 'v1' or 'v2' in client. Known values are "v2" and None. + Default value is None. If not set, the operation's default API version will be used. Note that + overriding this default value may result in unsupported behavior. :paramtype version: str or ~versioning.renamedfrom.models.Versions """ diff --git a/packages/typespec-python/tests/generated/unbranded/versioning-returntypechangedfrom/versioning/returntypechangedfrom/_client.py b/packages/typespec-python/tests/generated/unbranded/versioning-returntypechangedfrom/versioning/returntypechangedfrom/_client.py index 77465bd14d..b891b5f779 100644 --- a/packages/typespec-python/tests/generated/unbranded/versioning-returntypechangedfrom/versioning/returntypechangedfrom/_client.py +++ b/packages/typespec-python/tests/generated/unbranded/versioning-returntypechangedfrom/versioning/returntypechangedfrom/_client.py @@ -20,8 +20,9 @@ class ReturnTypeChangedFromClient( :param endpoint: Need to be set as '`http://localhost:3000 `_' in client. Required. :type endpoint: str - :keyword version: Need to be set as 'v1' or 'v2' in client. Known values are "v2". Default - value is "v2". Note that overriding this default value may result in unsupported behavior. + :keyword version: Need to be set as 'v1' or 'v2' in client. Known values are "v2" and None. + Default value is None. If not set, the operation's default API version will be used. Note that + overriding this default value may result in unsupported behavior. :paramtype version: str or ~versioning.returntypechangedfrom.models.Versions """ diff --git a/packages/typespec-python/tests/generated/unbranded/versioning-returntypechangedfrom/versioning/returntypechangedfrom/_configuration.py b/packages/typespec-python/tests/generated/unbranded/versioning-returntypechangedfrom/versioning/returntypechangedfrom/_configuration.py index 860f082176..8c489dd254 100644 --- a/packages/typespec-python/tests/generated/unbranded/versioning-returntypechangedfrom/versioning/returntypechangedfrom/_configuration.py +++ b/packages/typespec-python/tests/generated/unbranded/versioning-returntypechangedfrom/versioning/returntypechangedfrom/_configuration.py @@ -16,8 +16,9 @@ class ReturnTypeChangedFromClientConfiguration: :param endpoint: Need to be set as '`http://localhost:3000 `_' in client. Required. :type endpoint: str - :keyword version: Need to be set as 'v1' or 'v2' in client. Known values are "v2". Default - value is "v2". Note that overriding this default value may result in unsupported behavior. + :keyword version: Need to be set as 'v1' or 'v2' in client. Known values are "v2" and None. + Default value is None. If not set, the operation's default API version will be used. Note that + overriding this default value may result in unsupported behavior. :paramtype version: str or ~versioning.returntypechangedfrom.models.Versions """ diff --git a/packages/typespec-python/tests/generated/unbranded/versioning-returntypechangedfrom/versioning/returntypechangedfrom/aio/_client.py b/packages/typespec-python/tests/generated/unbranded/versioning-returntypechangedfrom/versioning/returntypechangedfrom/aio/_client.py index 98b42c577f..7bb83ab5c9 100644 --- a/packages/typespec-python/tests/generated/unbranded/versioning-returntypechangedfrom/versioning/returntypechangedfrom/aio/_client.py +++ b/packages/typespec-python/tests/generated/unbranded/versioning-returntypechangedfrom/versioning/returntypechangedfrom/aio/_client.py @@ -20,8 +20,9 @@ class ReturnTypeChangedFromClient( :param endpoint: Need to be set as '`http://localhost:3000 `_' in client. Required. :type endpoint: str - :keyword version: Need to be set as 'v1' or 'v2' in client. Known values are "v2". Default - value is "v2". Note that overriding this default value may result in unsupported behavior. + :keyword version: Need to be set as 'v1' or 'v2' in client. Known values are "v2" and None. + Default value is None. If not set, the operation's default API version will be used. Note that + overriding this default value may result in unsupported behavior. :paramtype version: str or ~versioning.returntypechangedfrom.models.Versions """ diff --git a/packages/typespec-python/tests/generated/unbranded/versioning-returntypechangedfrom/versioning/returntypechangedfrom/aio/_configuration.py b/packages/typespec-python/tests/generated/unbranded/versioning-returntypechangedfrom/versioning/returntypechangedfrom/aio/_configuration.py index 6335ebced6..b34b36bcf3 100644 --- a/packages/typespec-python/tests/generated/unbranded/versioning-returntypechangedfrom/versioning/returntypechangedfrom/aio/_configuration.py +++ b/packages/typespec-python/tests/generated/unbranded/versioning-returntypechangedfrom/versioning/returntypechangedfrom/aio/_configuration.py @@ -16,8 +16,9 @@ class ReturnTypeChangedFromClientConfiguration: :param endpoint: Need to be set as '`http://localhost:3000 `_' in client. Required. :type endpoint: str - :keyword version: Need to be set as 'v1' or 'v2' in client. Known values are "v2". Default - value is "v2". Note that overriding this default value may result in unsupported behavior. + :keyword version: Need to be set as 'v1' or 'v2' in client. Known values are "v2" and None. + Default value is None. If not set, the operation's default API version will be used. Note that + overriding this default value may result in unsupported behavior. :paramtype version: str or ~versioning.returntypechangedfrom.models.Versions """ diff --git a/packages/typespec-python/tests/generated/unbranded/versioning-typechangedfrom/versioning/typechangedfrom/_client.py b/packages/typespec-python/tests/generated/unbranded/versioning-typechangedfrom/versioning/typechangedfrom/_client.py index c14fd4ab6a..29c9ba9d7e 100644 --- a/packages/typespec-python/tests/generated/unbranded/versioning-typechangedfrom/versioning/typechangedfrom/_client.py +++ b/packages/typespec-python/tests/generated/unbranded/versioning-typechangedfrom/versioning/typechangedfrom/_client.py @@ -20,8 +20,9 @@ class TypeChangedFromClient( :param endpoint: Need to be set as '`http://localhost:3000 `_' in client. Required. :type endpoint: str - :keyword version: Need to be set as 'v1' or 'v2' in client. Known values are "v2". Default - value is "v2". Note that overriding this default value may result in unsupported behavior. + :keyword version: Need to be set as 'v1' or 'v2' in client. Known values are "v2" and None. + Default value is None. If not set, the operation's default API version will be used. Note that + overriding this default value may result in unsupported behavior. :paramtype version: str or ~versioning.typechangedfrom.models.Versions """ diff --git a/packages/typespec-python/tests/generated/unbranded/versioning-typechangedfrom/versioning/typechangedfrom/_configuration.py b/packages/typespec-python/tests/generated/unbranded/versioning-typechangedfrom/versioning/typechangedfrom/_configuration.py index 5c9d5f3a82..608e7e8013 100644 --- a/packages/typespec-python/tests/generated/unbranded/versioning-typechangedfrom/versioning/typechangedfrom/_configuration.py +++ b/packages/typespec-python/tests/generated/unbranded/versioning-typechangedfrom/versioning/typechangedfrom/_configuration.py @@ -16,8 +16,9 @@ class TypeChangedFromClientConfiguration: :param endpoint: Need to be set as '`http://localhost:3000 `_' in client. Required. :type endpoint: str - :keyword version: Need to be set as 'v1' or 'v2' in client. Known values are "v2". Default - value is "v2". Note that overriding this default value may result in unsupported behavior. + :keyword version: Need to be set as 'v1' or 'v2' in client. Known values are "v2" and None. + Default value is None. If not set, the operation's default API version will be used. Note that + overriding this default value may result in unsupported behavior. :paramtype version: str or ~versioning.typechangedfrom.models.Versions """ diff --git a/packages/typespec-python/tests/generated/unbranded/versioning-typechangedfrom/versioning/typechangedfrom/aio/_client.py b/packages/typespec-python/tests/generated/unbranded/versioning-typechangedfrom/versioning/typechangedfrom/aio/_client.py index 532cc7bb8c..f812b0ef7b 100644 --- a/packages/typespec-python/tests/generated/unbranded/versioning-typechangedfrom/versioning/typechangedfrom/aio/_client.py +++ b/packages/typespec-python/tests/generated/unbranded/versioning-typechangedfrom/versioning/typechangedfrom/aio/_client.py @@ -20,8 +20,9 @@ class TypeChangedFromClient( :param endpoint: Need to be set as '`http://localhost:3000 `_' in client. Required. :type endpoint: str - :keyword version: Need to be set as 'v1' or 'v2' in client. Known values are "v2". Default - value is "v2". Note that overriding this default value may result in unsupported behavior. + :keyword version: Need to be set as 'v1' or 'v2' in client. Known values are "v2" and None. + Default value is None. If not set, the operation's default API version will be used. Note that + overriding this default value may result in unsupported behavior. :paramtype version: str or ~versioning.typechangedfrom.models.Versions """ diff --git a/packages/typespec-python/tests/generated/unbranded/versioning-typechangedfrom/versioning/typechangedfrom/aio/_configuration.py b/packages/typespec-python/tests/generated/unbranded/versioning-typechangedfrom/versioning/typechangedfrom/aio/_configuration.py index 6b20768754..26617774c3 100644 --- a/packages/typespec-python/tests/generated/unbranded/versioning-typechangedfrom/versioning/typechangedfrom/aio/_configuration.py +++ b/packages/typespec-python/tests/generated/unbranded/versioning-typechangedfrom/versioning/typechangedfrom/aio/_configuration.py @@ -16,8 +16,9 @@ class TypeChangedFromClientConfiguration: :param endpoint: Need to be set as '`http://localhost:3000 `_' in client. Required. :type endpoint: str - :keyword version: Need to be set as 'v1' or 'v2' in client. Known values are "v2". Default - value is "v2". Note that overriding this default value may result in unsupported behavior. + :keyword version: Need to be set as 'v1' or 'v2' in client. Known values are "v2" and None. + Default value is None. If not set, the operation's default API version will be used. Note that + overriding this default value may result in unsupported behavior. :paramtype version: str or ~versioning.typechangedfrom.models.Versions """ From b0a84ebeda2e96d16fe5aa2e0f27d673901b62b7 Mon Sep 17 00:00:00 2001 From: AutoPrFromHttpClientPython Date: Thu, 16 Apr 2026 04:00:14 +0000 Subject: [PATCH 6/6] Regenerate for autorest.python (2026-04-16 04:00:14) --- .../_auto_rest_azure_special_parameters_test_client.py | 5 +++-- .../AzureSpecials/azurespecialproperties/_configuration.py | 5 +++-- .../aio/_auto_rest_azure_special_parameters_test_client.py | 5 +++-- .../azurespecialproperties/aio/_configuration.py | 5 +++-- .../custompollerpager/_auto_rest_paging_test_service.py | 3 ++- .../CustomPollerPager/custompollerpager/_configuration.py | 3 ++- .../custompollerpager/aio/_auto_rest_paging_test_service.py | 3 ++- .../custompollerpager/aio/_configuration.py | 3 ++- .../azure/packagemode/batch/paging/_configuration.py | 3 ++- .../azure/packagemode/batch/paging/_paging_client.py | 3 ++- .../azure/packagemode/batch/paging/aio/_configuration.py | 3 ++- .../azure/packagemode/batch/paging/aio/_paging_client.py | 3 ++- .../Paging/paging/_auto_rest_paging_test_service.py | 3 ++- .../Expected/AcceptanceTests/Paging/paging/_configuration.py | 3 ++- .../Paging/paging/aio/_auto_rest_paging_test_service.py | 3 ++- .../AcceptanceTests/Paging/paging/aio/_configuration.py | 3 ++- .../StorageManagementClient/storage/_configuration.py | 5 +++-- .../storage/_storage_management_client.py | 5 +++-- .../StorageManagementClient/storage/aio/_configuration.py | 5 +++-- .../storage/aio/_storage_management_client.py | 5 +++-- .../subscriptionidapiversion/_configuration.py | 5 +++-- .../subscriptionidapiversion/_microsoft_azure_test_url.py | 5 +++-- .../subscriptionidapiversion/aio/_configuration.py | 5 +++-- .../aio/_microsoft_azure_test_url.py | 5 +++-- .../azurespecialpropertiesversiontolerant/_client.py | 5 +++-- .../azurespecialpropertiesversiontolerant/_configuration.py | 5 +++-- .../azurespecialpropertiesversiontolerant/aio/_client.py | 5 +++-- .../aio/_configuration.py | 5 +++-- .../custompollerpagerversiontolerant/_client.py | 3 ++- .../custompollerpagerversiontolerant/_configuration.py | 3 ++- .../custompollerpagerversiontolerant/aio/_client.py | 3 ++- .../custompollerpagerversiontolerant/aio/_configuration.py | 3 ++- .../lropagingversiontolerant/_client.py | 3 ++- .../lropagingversiontolerant/_configuration.py | 3 ++- .../lropagingversiontolerant/aio/_client.py | 3 ++- .../lropagingversiontolerant/aio/_configuration.py | 3 ++- .../PagingVersionTolerant/pagingversiontolerant/_client.py | 3 ++- .../pagingversiontolerant/_configuration.py | 3 ++- .../pagingversiontolerant/aio/_client.py | 3 ++- .../pagingversiontolerant/aio/_configuration.py | 3 ++- .../storageversiontolerant/_client.py | 5 +++-- .../storageversiontolerant/_configuration.py | 5 +++-- .../storageversiontolerant/aio/_client.py | 5 +++-- .../storageversiontolerant/aio/_configuration.py | 5 +++-- .../subscriptionidapiversionversiontolerant/_client.py | 5 +++-- .../_configuration.py | 5 +++-- .../subscriptionidapiversionversiontolerant/aio/_client.py | 5 +++-- .../aio/_configuration.py | 5 +++-- .../bodycomplex/_auto_rest_complex_test_service.py | 3 ++- .../BodyComplex/bodycomplex/_configuration.py | 3 ++- .../bodycomplex/aio/_auto_rest_complex_test_service.py | 3 ++- .../BodyComplex/bodycomplex/aio/_configuration.py | 3 ++- .../Validation/validation/_auto_rest_validation_test.py | 3 ++- .../AcceptanceTests/Validation/validation/_configuration.py | 3 ++- .../Validation/validation/aio/_auto_rest_validation_test.py | 3 ++- .../Validation/validation/aio/_configuration.py | 3 ++- .../bodycomplexversiontolerant/_client.py | 3 ++- .../bodycomplexversiontolerant/_configuration.py | 3 ++- .../bodycomplexversiontolerant/aio/_client.py | 3 ++- .../bodycomplexversiontolerant/aio/_configuration.py | 3 ++- .../validationversiontolerant/_client.py | 3 ++- .../validationversiontolerant/_configuration.py | 3 ++- .../validationversiontolerant/aio/_client.py | 3 ++- .../validationversiontolerant/aio/_configuration.py | 3 ++- 64 files changed, 152 insertions(+), 88 deletions(-) diff --git a/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/AzureSpecials/azurespecialproperties/_auto_rest_azure_special_parameters_test_client.py b/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/AzureSpecials/azurespecialproperties/_auto_rest_azure_special_parameters_test_client.py index 66a2fcf5af..4cb0ce5459 100644 --- a/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/AzureSpecials/azurespecialproperties/_auto_rest_azure_special_parameters_test_client.py +++ b/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/AzureSpecials/azurespecialproperties/_auto_rest_azure_special_parameters_test_client.py @@ -68,8 +68,9 @@ class AutoRestAzureSpecialParametersTestClient: # pylint: disable=too-many-inst :keyword cloud_setting: The cloud setting for which to get the ARM endpoint. Default value is None. :paramtype cloud_setting: ~azure.core.AzureClouds - :keyword api_version: Api Version. Default value is "2015-07-01-preview". Note that overriding - this default value may result in unsupported behavior. + :keyword api_version: Api Version. Known values are "2015-07-01-preview" and None. Default + value is None. If not set, the operation's default API version will be used. Note that + overriding this default value may result in unsupported behavior. :paramtype api_version: str """ diff --git a/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/AzureSpecials/azurespecialproperties/_configuration.py b/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/AzureSpecials/azurespecialproperties/_configuration.py index a1761360da..4f97fa8fc8 100644 --- a/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/AzureSpecials/azurespecialproperties/_configuration.py +++ b/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/AzureSpecials/azurespecialproperties/_configuration.py @@ -33,8 +33,9 @@ class AutoRestAzureSpecialParametersTestClientConfiguration: # pylint: disable= :param cloud_setting: The cloud setting for which to get the ARM endpoint. Default value is None. :type cloud_setting: ~azure.core.AzureClouds - :keyword api_version: Api Version. Default value is "2015-07-01-preview". Note that overriding - this default value may result in unsupported behavior. + :keyword api_version: Api Version. Known values are "2015-07-01-preview" and None. Default + value is None. If not set, the operation's default API version will be used. Note that + overriding this default value may result in unsupported behavior. :paramtype api_version: str """ diff --git a/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/AzureSpecials/azurespecialproperties/aio/_auto_rest_azure_special_parameters_test_client.py b/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/AzureSpecials/azurespecialproperties/aio/_auto_rest_azure_special_parameters_test_client.py index eaf20e116b..39aa96aed2 100644 --- a/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/AzureSpecials/azurespecialproperties/aio/_auto_rest_azure_special_parameters_test_client.py +++ b/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/AzureSpecials/azurespecialproperties/aio/_auto_rest_azure_special_parameters_test_client.py @@ -69,8 +69,9 @@ class AutoRestAzureSpecialParametersTestClient: # pylint: disable=too-many-inst :keyword cloud_setting: The cloud setting for which to get the ARM endpoint. Default value is None. :paramtype cloud_setting: ~azure.core.AzureClouds - :keyword api_version: Api Version. Default value is "2015-07-01-preview". Note that overriding - this default value may result in unsupported behavior. + :keyword api_version: Api Version. Known values are "2015-07-01-preview" and None. Default + value is None. If not set, the operation's default API version will be used. Note that + overriding this default value may result in unsupported behavior. :paramtype api_version: str """ diff --git a/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/AzureSpecials/azurespecialproperties/aio/_configuration.py b/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/AzureSpecials/azurespecialproperties/aio/_configuration.py index ce5f3c3685..e525d4ddb2 100644 --- a/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/AzureSpecials/azurespecialproperties/aio/_configuration.py +++ b/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/AzureSpecials/azurespecialproperties/aio/_configuration.py @@ -33,8 +33,9 @@ class AutoRestAzureSpecialParametersTestClientConfiguration: # pylint: disable= :param cloud_setting: The cloud setting for which to get the ARM endpoint. Default value is None. :type cloud_setting: ~azure.core.AzureClouds - :keyword api_version: Api Version. Default value is "2015-07-01-preview". Note that overriding - this default value may result in unsupported behavior. + :keyword api_version: Api Version. Known values are "2015-07-01-preview" and None. Default + value is None. If not set, the operation's default API version will be used. Note that + overriding this default value may result in unsupported behavior. :paramtype api_version: str """ diff --git a/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/CustomPollerPager/custompollerpager/_auto_rest_paging_test_service.py b/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/CustomPollerPager/custompollerpager/_auto_rest_paging_test_service.py index 8c1d0fb691..a8320725b0 100644 --- a/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/CustomPollerPager/custompollerpager/_auto_rest_paging_test_service.py +++ b/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/CustomPollerPager/custompollerpager/_auto_rest_paging_test_service.py @@ -39,7 +39,8 @@ class AutoRestPagingTestService: :keyword cloud_setting: The cloud setting for which to get the ARM endpoint. Default value is None. :paramtype cloud_setting: ~azure.core.AzureClouds - :keyword api_version: Api Version. Default value is "1.0.0". Note that overriding this default + :keyword api_version: Api Version. Known values are "1.0.0" and None. Default value is None. If + not set, the operation's default API version will be used. Note that overriding this default value may result in unsupported behavior. :paramtype api_version: str :keyword int polling_interval: Default waiting time between two polls for LRO operations if no diff --git a/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/CustomPollerPager/custompollerpager/_configuration.py b/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/CustomPollerPager/custompollerpager/_configuration.py index cc6dca82ec..3ed91a7a14 100644 --- a/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/CustomPollerPager/custompollerpager/_configuration.py +++ b/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/CustomPollerPager/custompollerpager/_configuration.py @@ -29,7 +29,8 @@ class AutoRestPagingTestServiceConfiguration: # pylint: disable=too-many-instan :param cloud_setting: The cloud setting for which to get the ARM endpoint. Default value is None. :type cloud_setting: ~azure.core.AzureClouds - :keyword api_version: Api Version. Default value is "1.0.0". Note that overriding this default + :keyword api_version: Api Version. Known values are "1.0.0" and None. Default value is None. If + not set, the operation's default API version will be used. Note that overriding this default value may result in unsupported behavior. :paramtype api_version: str """ diff --git a/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/CustomPollerPager/custompollerpager/aio/_auto_rest_paging_test_service.py b/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/CustomPollerPager/custompollerpager/aio/_auto_rest_paging_test_service.py index f2f080f541..533aec3b1c 100644 --- a/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/CustomPollerPager/custompollerpager/aio/_auto_rest_paging_test_service.py +++ b/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/CustomPollerPager/custompollerpager/aio/_auto_rest_paging_test_service.py @@ -39,7 +39,8 @@ class AutoRestPagingTestService: :keyword cloud_setting: The cloud setting for which to get the ARM endpoint. Default value is None. :paramtype cloud_setting: ~azure.core.AzureClouds - :keyword api_version: Api Version. Default value is "1.0.0". Note that overriding this default + :keyword api_version: Api Version. Known values are "1.0.0" and None. Default value is None. If + not set, the operation's default API version will be used. Note that overriding this default value may result in unsupported behavior. :paramtype api_version: str :keyword int polling_interval: Default waiting time between two polls for LRO operations if no diff --git a/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/CustomPollerPager/custompollerpager/aio/_configuration.py b/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/CustomPollerPager/custompollerpager/aio/_configuration.py index 02da144482..54c8ae2801 100644 --- a/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/CustomPollerPager/custompollerpager/aio/_configuration.py +++ b/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/CustomPollerPager/custompollerpager/aio/_configuration.py @@ -29,7 +29,8 @@ class AutoRestPagingTestServiceConfiguration: # pylint: disable=too-many-instan :param cloud_setting: The cloud setting for which to get the ARM endpoint. Default value is None. :type cloud_setting: ~azure.core.AzureClouds - :keyword api_version: Api Version. Default value is "1.0.0". Note that overriding this default + :keyword api_version: Api Version. Known values are "1.0.0" and None. Default value is None. If + not set, the operation's default API version will be used. Note that overriding this default value may result in unsupported behavior. :paramtype api_version: str """ diff --git a/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/PackageModeBatch/azure/packagemode/batch/paging/_configuration.py b/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/PackageModeBatch/azure/packagemode/batch/paging/_configuration.py index 8cdce7c64e..78a16be465 100644 --- a/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/PackageModeBatch/azure/packagemode/batch/paging/_configuration.py +++ b/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/PackageModeBatch/azure/packagemode/batch/paging/_configuration.py @@ -29,7 +29,8 @@ class PagingClientConfiguration: # pylint: disable=too-many-instance-attributes :param cloud_setting: The cloud setting for which to get the ARM endpoint. Default value is None. :type cloud_setting: ~azure.core.AzureClouds - :keyword api_version: Api Version. Default value is "1.0.0". Note that overriding this default + :keyword api_version: Api Version. Known values are "1.0.0" and None. Default value is None. If + not set, the operation's default API version will be used. Note that overriding this default value may result in unsupported behavior. :paramtype api_version: str """ diff --git a/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/PackageModeBatch/azure/packagemode/batch/paging/_paging_client.py b/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/PackageModeBatch/azure/packagemode/batch/paging/_paging_client.py index cd9ffc20c4..7cbd0d0d83 100644 --- a/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/PackageModeBatch/azure/packagemode/batch/paging/_paging_client.py +++ b/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/PackageModeBatch/azure/packagemode/batch/paging/_paging_client.py @@ -39,7 +39,8 @@ class PagingClient: :keyword cloud_setting: The cloud setting for which to get the ARM endpoint. Default value is None. :paramtype cloud_setting: ~azure.core.AzureClouds - :keyword api_version: Api Version. Default value is "1.0.0". Note that overriding this default + :keyword api_version: Api Version. Known values are "1.0.0" and None. Default value is None. If + not set, the operation's default API version will be used. Note that overriding this default value may result in unsupported behavior. :paramtype api_version: str :keyword int polling_interval: Default waiting time between two polls for LRO operations if no diff --git a/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/PackageModeBatch/azure/packagemode/batch/paging/aio/_configuration.py b/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/PackageModeBatch/azure/packagemode/batch/paging/aio/_configuration.py index 11621c87aa..e56cdf4d1a 100644 --- a/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/PackageModeBatch/azure/packagemode/batch/paging/aio/_configuration.py +++ b/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/PackageModeBatch/azure/packagemode/batch/paging/aio/_configuration.py @@ -29,7 +29,8 @@ class PagingClientConfiguration: # pylint: disable=too-many-instance-attributes :param cloud_setting: The cloud setting for which to get the ARM endpoint. Default value is None. :type cloud_setting: ~azure.core.AzureClouds - :keyword api_version: Api Version. Default value is "1.0.0". Note that overriding this default + :keyword api_version: Api Version. Known values are "1.0.0" and None. Default value is None. If + not set, the operation's default API version will be used. Note that overriding this default value may result in unsupported behavior. :paramtype api_version: str """ diff --git a/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/PackageModeBatch/azure/packagemode/batch/paging/aio/_paging_client.py b/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/PackageModeBatch/azure/packagemode/batch/paging/aio/_paging_client.py index a06c44003e..11e9065096 100644 --- a/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/PackageModeBatch/azure/packagemode/batch/paging/aio/_paging_client.py +++ b/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/PackageModeBatch/azure/packagemode/batch/paging/aio/_paging_client.py @@ -39,7 +39,8 @@ class PagingClient: :keyword cloud_setting: The cloud setting for which to get the ARM endpoint. Default value is None. :paramtype cloud_setting: ~azure.core.AzureClouds - :keyword api_version: Api Version. Default value is "1.0.0". Note that overriding this default + :keyword api_version: Api Version. Known values are "1.0.0" and None. Default value is None. If + not set, the operation's default API version will be used. Note that overriding this default value may result in unsupported behavior. :paramtype api_version: str :keyword int polling_interval: Default waiting time between two polls for LRO operations if no diff --git a/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/Paging/paging/_auto_rest_paging_test_service.py b/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/Paging/paging/_auto_rest_paging_test_service.py index 1e0ae3ec7b..6724d1dcea 100644 --- a/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/Paging/paging/_auto_rest_paging_test_service.py +++ b/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/Paging/paging/_auto_rest_paging_test_service.py @@ -27,7 +27,8 @@ class AutoRestPagingTestService: :vartype paging: paging.operations.PagingOperations :param base_url: Service URL. Default value is "http://localhost:3000". :type base_url: str - :keyword api_version: Api Version. Default value is "1.0.0". Note that overriding this default + :keyword api_version: Api Version. Known values are "1.0.0" and None. Default value is None. If + not set, the operation's default API version will be used. Note that overriding this default value may result in unsupported behavior. :paramtype api_version: str :keyword int polling_interval: Default waiting time between two polls for LRO operations if no diff --git a/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/Paging/paging/_configuration.py b/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/Paging/paging/_configuration.py index 2a82930bf2..f757db6b45 100644 --- a/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/Paging/paging/_configuration.py +++ b/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/Paging/paging/_configuration.py @@ -19,7 +19,8 @@ class AutoRestPagingTestServiceConfiguration: # pylint: disable=too-many-instan Note that all parameters used to create this instance are saved as instance attributes. - :keyword api_version: Api Version. Default value is "1.0.0". Note that overriding this default + :keyword api_version: Api Version. Known values are "1.0.0" and None. Default value is None. If + not set, the operation's default API version will be used. Note that overriding this default value may result in unsupported behavior. :paramtype api_version: str """ diff --git a/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/Paging/paging/aio/_auto_rest_paging_test_service.py b/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/Paging/paging/aio/_auto_rest_paging_test_service.py index 3f47c456bb..4edf158d90 100644 --- a/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/Paging/paging/aio/_auto_rest_paging_test_service.py +++ b/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/Paging/paging/aio/_auto_rest_paging_test_service.py @@ -27,7 +27,8 @@ class AutoRestPagingTestService: :vartype paging: paging.aio.operations.PagingOperations :param base_url: Service URL. Default value is "http://localhost:3000". :type base_url: str - :keyword api_version: Api Version. Default value is "1.0.0". Note that overriding this default + :keyword api_version: Api Version. Known values are "1.0.0" and None. Default value is None. If + not set, the operation's default API version will be used. Note that overriding this default value may result in unsupported behavior. :paramtype api_version: str :keyword int polling_interval: Default waiting time between two polls for LRO operations if no diff --git a/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/Paging/paging/aio/_configuration.py b/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/Paging/paging/aio/_configuration.py index 3b70fdd7d9..acfb1118ae 100644 --- a/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/Paging/paging/aio/_configuration.py +++ b/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/Paging/paging/aio/_configuration.py @@ -19,7 +19,8 @@ class AutoRestPagingTestServiceConfiguration: # pylint: disable=too-many-instan Note that all parameters used to create this instance are saved as instance attributes. - :keyword api_version: Api Version. Default value is "1.0.0". Note that overriding this default + :keyword api_version: Api Version. Known values are "1.0.0" and None. Default value is None. If + not set, the operation's default API version will be used. Note that overriding this default value may result in unsupported behavior. :paramtype api_version: str """ diff --git a/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/StorageManagementClient/storage/_configuration.py b/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/StorageManagementClient/storage/_configuration.py index 46ba93135a..9f14bda247 100644 --- a/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/StorageManagementClient/storage/_configuration.py +++ b/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/StorageManagementClient/storage/_configuration.py @@ -32,8 +32,9 @@ class StorageManagementClientConfiguration: # pylint: disable=too-many-instance :param cloud_setting: The cloud setting for which to get the ARM endpoint. Default value is None. :type cloud_setting: ~azure.core.AzureClouds - :keyword api_version: Api Version. Default value is "2015-05-01-preview". Note that overriding - this default value may result in unsupported behavior. + :keyword api_version: Api Version. Known values are "2015-05-01-preview" and None. Default + value is None. If not set, the operation's default API version will be used. Note that + overriding this default value may result in unsupported behavior. :paramtype api_version: str """ diff --git a/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/StorageManagementClient/storage/_storage_management_client.py b/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/StorageManagementClient/storage/_storage_management_client.py index bf87208ffa..0f15ee04a9 100644 --- a/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/StorageManagementClient/storage/_storage_management_client.py +++ b/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/StorageManagementClient/storage/_storage_management_client.py @@ -44,8 +44,9 @@ class StorageManagementClient: :keyword cloud_setting: The cloud setting for which to get the ARM endpoint. Default value is None. :paramtype cloud_setting: ~azure.core.AzureClouds - :keyword api_version: Api Version. Default value is "2015-05-01-preview". Note that overriding - this default value may result in unsupported behavior. + :keyword api_version: Api Version. Known values are "2015-05-01-preview" and None. Default + value is None. If not set, the operation's default API version will be used. Note that + overriding this default value may result in unsupported behavior. :paramtype api_version: str :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. diff --git a/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/StorageManagementClient/storage/aio/_configuration.py b/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/StorageManagementClient/storage/aio/_configuration.py index f75b7c08f6..a599a58b73 100644 --- a/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/StorageManagementClient/storage/aio/_configuration.py +++ b/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/StorageManagementClient/storage/aio/_configuration.py @@ -32,8 +32,9 @@ class StorageManagementClientConfiguration: # pylint: disable=too-many-instance :param cloud_setting: The cloud setting for which to get the ARM endpoint. Default value is None. :type cloud_setting: ~azure.core.AzureClouds - :keyword api_version: Api Version. Default value is "2015-05-01-preview". Note that overriding - this default value may result in unsupported behavior. + :keyword api_version: Api Version. Known values are "2015-05-01-preview" and None. Default + value is None. If not set, the operation's default API version will be used. Note that + overriding this default value may result in unsupported behavior. :paramtype api_version: str """ diff --git a/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/StorageManagementClient/storage/aio/_storage_management_client.py b/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/StorageManagementClient/storage/aio/_storage_management_client.py index 4d61da0999..894a8fcb1e 100644 --- a/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/StorageManagementClient/storage/aio/_storage_management_client.py +++ b/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/StorageManagementClient/storage/aio/_storage_management_client.py @@ -44,8 +44,9 @@ class StorageManagementClient: :keyword cloud_setting: The cloud setting for which to get the ARM endpoint. Default value is None. :paramtype cloud_setting: ~azure.core.AzureClouds - :keyword api_version: Api Version. Default value is "2015-05-01-preview". Note that overriding - this default value may result in unsupported behavior. + :keyword api_version: Api Version. Known values are "2015-05-01-preview" and None. Default + value is None. If not set, the operation's default API version will be used. Note that + overriding this default value may result in unsupported behavior. :paramtype api_version: str :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. diff --git a/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/SubscriptionIdApiVersion/subscriptionidapiversion/_configuration.py b/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/SubscriptionIdApiVersion/subscriptionidapiversion/_configuration.py index 89f496c149..4753fc7a83 100644 --- a/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/SubscriptionIdApiVersion/subscriptionidapiversion/_configuration.py +++ b/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/SubscriptionIdApiVersion/subscriptionidapiversion/_configuration.py @@ -31,8 +31,9 @@ class MicrosoftAzureTestUrlConfiguration: # pylint: disable=too-many-instance-a :param cloud_setting: The cloud setting for which to get the ARM endpoint. Default value is None. :type cloud_setting: ~azure.core.AzureClouds - :keyword api_version: Api Version. Default value is "2014-04-01-preview". Note that overriding - this default value may result in unsupported behavior. + :keyword api_version: Api Version. Known values are "2014-04-01-preview" and None. Default + value is None. If not set, the operation's default API version will be used. Note that + overriding this default value may result in unsupported behavior. :paramtype api_version: str """ diff --git a/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/SubscriptionIdApiVersion/subscriptionidapiversion/_microsoft_azure_test_url.py b/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/SubscriptionIdApiVersion/subscriptionidapiversion/_microsoft_azure_test_url.py index 6c368a24c0..fa61c14a66 100644 --- a/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/SubscriptionIdApiVersion/subscriptionidapiversion/_microsoft_azure_test_url.py +++ b/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/SubscriptionIdApiVersion/subscriptionidapiversion/_microsoft_azure_test_url.py @@ -41,8 +41,9 @@ class MicrosoftAzureTestUrl: :keyword cloud_setting: The cloud setting for which to get the ARM endpoint. Default value is None. :paramtype cloud_setting: ~azure.core.AzureClouds - :keyword api_version: Api Version. Default value is "2014-04-01-preview". Note that overriding - this default value may result in unsupported behavior. + :keyword api_version: Api Version. Known values are "2014-04-01-preview" and None. Default + value is None. If not set, the operation's default API version will be used. Note that + overriding this default value may result in unsupported behavior. :paramtype api_version: str """ diff --git a/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/SubscriptionIdApiVersion/subscriptionidapiversion/aio/_configuration.py b/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/SubscriptionIdApiVersion/subscriptionidapiversion/aio/_configuration.py index 89257c5a9a..6f69573e37 100644 --- a/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/SubscriptionIdApiVersion/subscriptionidapiversion/aio/_configuration.py +++ b/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/SubscriptionIdApiVersion/subscriptionidapiversion/aio/_configuration.py @@ -31,8 +31,9 @@ class MicrosoftAzureTestUrlConfiguration: # pylint: disable=too-many-instance-a :param cloud_setting: The cloud setting for which to get the ARM endpoint. Default value is None. :type cloud_setting: ~azure.core.AzureClouds - :keyword api_version: Api Version. Default value is "2014-04-01-preview". Note that overriding - this default value may result in unsupported behavior. + :keyword api_version: Api Version. Known values are "2014-04-01-preview" and None. Default + value is None. If not set, the operation's default API version will be used. Note that + overriding this default value may result in unsupported behavior. :paramtype api_version: str """ diff --git a/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/SubscriptionIdApiVersion/subscriptionidapiversion/aio/_microsoft_azure_test_url.py b/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/SubscriptionIdApiVersion/subscriptionidapiversion/aio/_microsoft_azure_test_url.py index 7fab7b5243..9f65cfce1a 100644 --- a/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/SubscriptionIdApiVersion/subscriptionidapiversion/aio/_microsoft_azure_test_url.py +++ b/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/SubscriptionIdApiVersion/subscriptionidapiversion/aio/_microsoft_azure_test_url.py @@ -41,8 +41,9 @@ class MicrosoftAzureTestUrl: :keyword cloud_setting: The cloud setting for which to get the ARM endpoint. Default value is None. :paramtype cloud_setting: ~azure.core.AzureClouds - :keyword api_version: Api Version. Default value is "2014-04-01-preview". Note that overriding - this default value may result in unsupported behavior. + :keyword api_version: Api Version. Known values are "2014-04-01-preview" and None. Default + value is None. If not set, the operation's default API version will be used. Note that + overriding this default value may result in unsupported behavior. :paramtype api_version: str """ diff --git a/packages/autorest.python/test/azure/version-tolerant/Expected/AcceptanceTests/AzureSpecialsVersionTolerant/azurespecialpropertiesversiontolerant/_client.py b/packages/autorest.python/test/azure/version-tolerant/Expected/AcceptanceTests/AzureSpecialsVersionTolerant/azurespecialpropertiesversiontolerant/_client.py index 4e7ee92c7d..09a5923e43 100644 --- a/packages/autorest.python/test/azure/version-tolerant/Expected/AcceptanceTests/AzureSpecialsVersionTolerant/azurespecialpropertiesversiontolerant/_client.py +++ b/packages/autorest.python/test/azure/version-tolerant/Expected/AcceptanceTests/AzureSpecialsVersionTolerant/azurespecialpropertiesversiontolerant/_client.py @@ -70,8 +70,9 @@ class AutoRestAzureSpecialParametersTestClient: # pylint: disable=too-many-inst :keyword cloud_setting: The cloud setting for which to get the ARM endpoint. Default value is None. :paramtype cloud_setting: ~azure.core.AzureClouds - :keyword api_version: Api Version. Default value is "2015-07-01-preview". Note that overriding - this default value may result in unsupported behavior. + :keyword api_version: Api Version. Known values are "2015-07-01-preview" and None. Default + value is None. If not set, the operation's default API version will be used. Note that + overriding this default value may result in unsupported behavior. :paramtype api_version: str """ diff --git a/packages/autorest.python/test/azure/version-tolerant/Expected/AcceptanceTests/AzureSpecialsVersionTolerant/azurespecialpropertiesversiontolerant/_configuration.py b/packages/autorest.python/test/azure/version-tolerant/Expected/AcceptanceTests/AzureSpecialsVersionTolerant/azurespecialpropertiesversiontolerant/_configuration.py index a1761360da..4f97fa8fc8 100644 --- a/packages/autorest.python/test/azure/version-tolerant/Expected/AcceptanceTests/AzureSpecialsVersionTolerant/azurespecialpropertiesversiontolerant/_configuration.py +++ b/packages/autorest.python/test/azure/version-tolerant/Expected/AcceptanceTests/AzureSpecialsVersionTolerant/azurespecialpropertiesversiontolerant/_configuration.py @@ -33,8 +33,9 @@ class AutoRestAzureSpecialParametersTestClientConfiguration: # pylint: disable= :param cloud_setting: The cloud setting for which to get the ARM endpoint. Default value is None. :type cloud_setting: ~azure.core.AzureClouds - :keyword api_version: Api Version. Default value is "2015-07-01-preview". Note that overriding - this default value may result in unsupported behavior. + :keyword api_version: Api Version. Known values are "2015-07-01-preview" and None. Default + value is None. If not set, the operation's default API version will be used. Note that + overriding this default value may result in unsupported behavior. :paramtype api_version: str """ diff --git a/packages/autorest.python/test/azure/version-tolerant/Expected/AcceptanceTests/AzureSpecialsVersionTolerant/azurespecialpropertiesversiontolerant/aio/_client.py b/packages/autorest.python/test/azure/version-tolerant/Expected/AcceptanceTests/AzureSpecialsVersionTolerant/azurespecialpropertiesversiontolerant/aio/_client.py index e5bfc8e192..3f6d99683a 100644 --- a/packages/autorest.python/test/azure/version-tolerant/Expected/AcceptanceTests/AzureSpecialsVersionTolerant/azurespecialpropertiesversiontolerant/aio/_client.py +++ b/packages/autorest.python/test/azure/version-tolerant/Expected/AcceptanceTests/AzureSpecialsVersionTolerant/azurespecialpropertiesversiontolerant/aio/_client.py @@ -70,8 +70,9 @@ class AutoRestAzureSpecialParametersTestClient: # pylint: disable=too-many-inst :keyword cloud_setting: The cloud setting for which to get the ARM endpoint. Default value is None. :paramtype cloud_setting: ~azure.core.AzureClouds - :keyword api_version: Api Version. Default value is "2015-07-01-preview". Note that overriding - this default value may result in unsupported behavior. + :keyword api_version: Api Version. Known values are "2015-07-01-preview" and None. Default + value is None. If not set, the operation's default API version will be used. Note that + overriding this default value may result in unsupported behavior. :paramtype api_version: str """ diff --git a/packages/autorest.python/test/azure/version-tolerant/Expected/AcceptanceTests/AzureSpecialsVersionTolerant/azurespecialpropertiesversiontolerant/aio/_configuration.py b/packages/autorest.python/test/azure/version-tolerant/Expected/AcceptanceTests/AzureSpecialsVersionTolerant/azurespecialpropertiesversiontolerant/aio/_configuration.py index ce5f3c3685..e525d4ddb2 100644 --- a/packages/autorest.python/test/azure/version-tolerant/Expected/AcceptanceTests/AzureSpecialsVersionTolerant/azurespecialpropertiesversiontolerant/aio/_configuration.py +++ b/packages/autorest.python/test/azure/version-tolerant/Expected/AcceptanceTests/AzureSpecialsVersionTolerant/azurespecialpropertiesversiontolerant/aio/_configuration.py @@ -33,8 +33,9 @@ class AutoRestAzureSpecialParametersTestClientConfiguration: # pylint: disable= :param cloud_setting: The cloud setting for which to get the ARM endpoint. Default value is None. :type cloud_setting: ~azure.core.AzureClouds - :keyword api_version: Api Version. Default value is "2015-07-01-preview". Note that overriding - this default value may result in unsupported behavior. + :keyword api_version: Api Version. Known values are "2015-07-01-preview" and None. Default + value is None. If not set, the operation's default API version will be used. Note that + overriding this default value may result in unsupported behavior. :paramtype api_version: str """ diff --git a/packages/autorest.python/test/azure/version-tolerant/Expected/AcceptanceTests/CustomPollerPagerVersionTolerant/custompollerpagerversiontolerant/_client.py b/packages/autorest.python/test/azure/version-tolerant/Expected/AcceptanceTests/CustomPollerPagerVersionTolerant/custompollerpagerversiontolerant/_client.py index 486e6914cc..6b8be1e976 100644 --- a/packages/autorest.python/test/azure/version-tolerant/Expected/AcceptanceTests/CustomPollerPagerVersionTolerant/custompollerpagerversiontolerant/_client.py +++ b/packages/autorest.python/test/azure/version-tolerant/Expected/AcceptanceTests/CustomPollerPagerVersionTolerant/custompollerpagerversiontolerant/_client.py @@ -38,7 +38,8 @@ class AutoRestPagingTestService: :keyword cloud_setting: The cloud setting for which to get the ARM endpoint. Default value is None. :paramtype cloud_setting: ~azure.core.AzureClouds - :keyword api_version: Api Version. Default value is "1.0.0". Note that overriding this default + :keyword api_version: Api Version. Known values are "1.0.0" and None. Default value is None. If + not set, the operation's default API version will be used. Note that overriding this default value may result in unsupported behavior. :paramtype api_version: str :keyword int polling_interval: Default waiting time between two polls for LRO operations if no diff --git a/packages/autorest.python/test/azure/version-tolerant/Expected/AcceptanceTests/CustomPollerPagerVersionTolerant/custompollerpagerversiontolerant/_configuration.py b/packages/autorest.python/test/azure/version-tolerant/Expected/AcceptanceTests/CustomPollerPagerVersionTolerant/custompollerpagerversiontolerant/_configuration.py index e1507c767d..103f5bc4aa 100644 --- a/packages/autorest.python/test/azure/version-tolerant/Expected/AcceptanceTests/CustomPollerPagerVersionTolerant/custompollerpagerversiontolerant/_configuration.py +++ b/packages/autorest.python/test/azure/version-tolerant/Expected/AcceptanceTests/CustomPollerPagerVersionTolerant/custompollerpagerversiontolerant/_configuration.py @@ -29,7 +29,8 @@ class AutoRestPagingTestServiceConfiguration: # pylint: disable=too-many-instan :param cloud_setting: The cloud setting for which to get the ARM endpoint. Default value is None. :type cloud_setting: ~azure.core.AzureClouds - :keyword api_version: Api Version. Default value is "1.0.0". Note that overriding this default + :keyword api_version: Api Version. Known values are "1.0.0" and None. Default value is None. If + not set, the operation's default API version will be used. Note that overriding this default value may result in unsupported behavior. :paramtype api_version: str """ diff --git a/packages/autorest.python/test/azure/version-tolerant/Expected/AcceptanceTests/CustomPollerPagerVersionTolerant/custompollerpagerversiontolerant/aio/_client.py b/packages/autorest.python/test/azure/version-tolerant/Expected/AcceptanceTests/CustomPollerPagerVersionTolerant/custompollerpagerversiontolerant/aio/_client.py index c87e33316b..d25bc0a9ca 100644 --- a/packages/autorest.python/test/azure/version-tolerant/Expected/AcceptanceTests/CustomPollerPagerVersionTolerant/custompollerpagerversiontolerant/aio/_client.py +++ b/packages/autorest.python/test/azure/version-tolerant/Expected/AcceptanceTests/CustomPollerPagerVersionTolerant/custompollerpagerversiontolerant/aio/_client.py @@ -38,7 +38,8 @@ class AutoRestPagingTestService: :keyword cloud_setting: The cloud setting for which to get the ARM endpoint. Default value is None. :paramtype cloud_setting: ~azure.core.AzureClouds - :keyword api_version: Api Version. Default value is "1.0.0". Note that overriding this default + :keyword api_version: Api Version. Known values are "1.0.0" and None. Default value is None. If + not set, the operation's default API version will be used. Note that overriding this default value may result in unsupported behavior. :paramtype api_version: str :keyword int polling_interval: Default waiting time between two polls for LRO operations if no diff --git a/packages/autorest.python/test/azure/version-tolerant/Expected/AcceptanceTests/CustomPollerPagerVersionTolerant/custompollerpagerversiontolerant/aio/_configuration.py b/packages/autorest.python/test/azure/version-tolerant/Expected/AcceptanceTests/CustomPollerPagerVersionTolerant/custompollerpagerversiontolerant/aio/_configuration.py index e327842232..4372bd791c 100644 --- a/packages/autorest.python/test/azure/version-tolerant/Expected/AcceptanceTests/CustomPollerPagerVersionTolerant/custompollerpagerversiontolerant/aio/_configuration.py +++ b/packages/autorest.python/test/azure/version-tolerant/Expected/AcceptanceTests/CustomPollerPagerVersionTolerant/custompollerpagerversiontolerant/aio/_configuration.py @@ -29,7 +29,8 @@ class AutoRestPagingTestServiceConfiguration: # pylint: disable=too-many-instan :param cloud_setting: The cloud setting for which to get the ARM endpoint. Default value is None. :type cloud_setting: ~azure.core.AzureClouds - :keyword api_version: Api Version. Default value is "1.0.0". Note that overriding this default + :keyword api_version: Api Version. Known values are "1.0.0" and None. Default value is None. If + not set, the operation's default API version will be used. Note that overriding this default value may result in unsupported behavior. :paramtype api_version: str """ diff --git a/packages/autorest.python/test/azure/version-tolerant/Expected/AcceptanceTests/LroPagingVersionTolerant/lropagingversiontolerant/_client.py b/packages/autorest.python/test/azure/version-tolerant/Expected/AcceptanceTests/LroPagingVersionTolerant/lropagingversiontolerant/_client.py index 6614ebf22b..ee1dc7ac19 100644 --- a/packages/autorest.python/test/azure/version-tolerant/Expected/AcceptanceTests/LroPagingVersionTolerant/lropagingversiontolerant/_client.py +++ b/packages/autorest.python/test/azure/version-tolerant/Expected/AcceptanceTests/LroPagingVersionTolerant/lropagingversiontolerant/_client.py @@ -28,7 +28,8 @@ class LroPagingClient: lropagingversiontolerant.operations.QuestionAnsweringProjectsOperations :keyword endpoint: Service URL. Default value is "http://localhost:3000". :paramtype endpoint: str - :keyword api_version: Api Version. Default value is "2021-10-01". Note that overriding this + :keyword api_version: Api Version. Known values are "2021-10-01" and None. Default value is + None. If not set, the operation's default API version will be used. Note that overriding this default value may result in unsupported behavior. :paramtype api_version: str :keyword int polling_interval: Default waiting time between two polls for LRO operations if no diff --git a/packages/autorest.python/test/azure/version-tolerant/Expected/AcceptanceTests/LroPagingVersionTolerant/lropagingversiontolerant/_configuration.py b/packages/autorest.python/test/azure/version-tolerant/Expected/AcceptanceTests/LroPagingVersionTolerant/lropagingversiontolerant/_configuration.py index 8c9e40b43d..5d8e30bde7 100644 --- a/packages/autorest.python/test/azure/version-tolerant/Expected/AcceptanceTests/LroPagingVersionTolerant/lropagingversiontolerant/_configuration.py +++ b/packages/autorest.python/test/azure/version-tolerant/Expected/AcceptanceTests/LroPagingVersionTolerant/lropagingversiontolerant/_configuration.py @@ -19,7 +19,8 @@ class LroPagingClientConfiguration: # pylint: disable=too-many-instance-attribu Note that all parameters used to create this instance are saved as instance attributes. - :keyword api_version: Api Version. Default value is "2021-10-01". Note that overriding this + :keyword api_version: Api Version. Known values are "2021-10-01" and None. Default value is + None. If not set, the operation's default API version will be used. Note that overriding this default value may result in unsupported behavior. :paramtype api_version: str """ diff --git a/packages/autorest.python/test/azure/version-tolerant/Expected/AcceptanceTests/LroPagingVersionTolerant/lropagingversiontolerant/aio/_client.py b/packages/autorest.python/test/azure/version-tolerant/Expected/AcceptanceTests/LroPagingVersionTolerant/lropagingversiontolerant/aio/_client.py index f67a7bde5c..804fb320e8 100644 --- a/packages/autorest.python/test/azure/version-tolerant/Expected/AcceptanceTests/LroPagingVersionTolerant/lropagingversiontolerant/aio/_client.py +++ b/packages/autorest.python/test/azure/version-tolerant/Expected/AcceptanceTests/LroPagingVersionTolerant/lropagingversiontolerant/aio/_client.py @@ -28,7 +28,8 @@ class LroPagingClient: lropagingversiontolerant.aio.operations.QuestionAnsweringProjectsOperations :keyword endpoint: Service URL. Default value is "http://localhost:3000". :paramtype endpoint: str - :keyword api_version: Api Version. Default value is "2021-10-01". Note that overriding this + :keyword api_version: Api Version. Known values are "2021-10-01" and None. Default value is + None. If not set, the operation's default API version will be used. Note that overriding this default value may result in unsupported behavior. :paramtype api_version: str :keyword int polling_interval: Default waiting time between two polls for LRO operations if no diff --git a/packages/autorest.python/test/azure/version-tolerant/Expected/AcceptanceTests/LroPagingVersionTolerant/lropagingversiontolerant/aio/_configuration.py b/packages/autorest.python/test/azure/version-tolerant/Expected/AcceptanceTests/LroPagingVersionTolerant/lropagingversiontolerant/aio/_configuration.py index a1c30c82c8..cda5294aee 100644 --- a/packages/autorest.python/test/azure/version-tolerant/Expected/AcceptanceTests/LroPagingVersionTolerant/lropagingversiontolerant/aio/_configuration.py +++ b/packages/autorest.python/test/azure/version-tolerant/Expected/AcceptanceTests/LroPagingVersionTolerant/lropagingversiontolerant/aio/_configuration.py @@ -19,7 +19,8 @@ class LroPagingClientConfiguration: # pylint: disable=too-many-instance-attribu Note that all parameters used to create this instance are saved as instance attributes. - :keyword api_version: Api Version. Default value is "2021-10-01". Note that overriding this + :keyword api_version: Api Version. Known values are "2021-10-01" and None. Default value is + None. If not set, the operation's default API version will be used. Note that overriding this default value may result in unsupported behavior. :paramtype api_version: str """ diff --git a/packages/autorest.python/test/azure/version-tolerant/Expected/AcceptanceTests/PagingVersionTolerant/pagingversiontolerant/_client.py b/packages/autorest.python/test/azure/version-tolerant/Expected/AcceptanceTests/PagingVersionTolerant/pagingversiontolerant/_client.py index 3c682244e3..d068b3540e 100644 --- a/packages/autorest.python/test/azure/version-tolerant/Expected/AcceptanceTests/PagingVersionTolerant/pagingversiontolerant/_client.py +++ b/packages/autorest.python/test/azure/version-tolerant/Expected/AcceptanceTests/PagingVersionTolerant/pagingversiontolerant/_client.py @@ -26,7 +26,8 @@ class AutoRestPagingTestService: :vartype paging: pagingversiontolerant.operations.PagingOperations :keyword endpoint: Service URL. Default value is "http://localhost:3000". :paramtype endpoint: str - :keyword api_version: Api Version. Default value is "1.0.0". Note that overriding this default + :keyword api_version: Api Version. Known values are "1.0.0" and None. Default value is None. If + not set, the operation's default API version will be used. Note that overriding this default value may result in unsupported behavior. :paramtype api_version: str :keyword int polling_interval: Default waiting time between two polls for LRO operations if no diff --git a/packages/autorest.python/test/azure/version-tolerant/Expected/AcceptanceTests/PagingVersionTolerant/pagingversiontolerant/_configuration.py b/packages/autorest.python/test/azure/version-tolerant/Expected/AcceptanceTests/PagingVersionTolerant/pagingversiontolerant/_configuration.py index 2a82930bf2..f757db6b45 100644 --- a/packages/autorest.python/test/azure/version-tolerant/Expected/AcceptanceTests/PagingVersionTolerant/pagingversiontolerant/_configuration.py +++ b/packages/autorest.python/test/azure/version-tolerant/Expected/AcceptanceTests/PagingVersionTolerant/pagingversiontolerant/_configuration.py @@ -19,7 +19,8 @@ class AutoRestPagingTestServiceConfiguration: # pylint: disable=too-many-instan Note that all parameters used to create this instance are saved as instance attributes. - :keyword api_version: Api Version. Default value is "1.0.0". Note that overriding this default + :keyword api_version: Api Version. Known values are "1.0.0" and None. Default value is None. If + not set, the operation's default API version will be used. Note that overriding this default value may result in unsupported behavior. :paramtype api_version: str """ diff --git a/packages/autorest.python/test/azure/version-tolerant/Expected/AcceptanceTests/PagingVersionTolerant/pagingversiontolerant/aio/_client.py b/packages/autorest.python/test/azure/version-tolerant/Expected/AcceptanceTests/PagingVersionTolerant/pagingversiontolerant/aio/_client.py index a485172c8d..b035fa1dc2 100644 --- a/packages/autorest.python/test/azure/version-tolerant/Expected/AcceptanceTests/PagingVersionTolerant/pagingversiontolerant/aio/_client.py +++ b/packages/autorest.python/test/azure/version-tolerant/Expected/AcceptanceTests/PagingVersionTolerant/pagingversiontolerant/aio/_client.py @@ -26,7 +26,8 @@ class AutoRestPagingTestService: :vartype paging: pagingversiontolerant.aio.operations.PagingOperations :keyword endpoint: Service URL. Default value is "http://localhost:3000". :paramtype endpoint: str - :keyword api_version: Api Version. Default value is "1.0.0". Note that overriding this default + :keyword api_version: Api Version. Known values are "1.0.0" and None. Default value is None. If + not set, the operation's default API version will be used. Note that overriding this default value may result in unsupported behavior. :paramtype api_version: str :keyword int polling_interval: Default waiting time between two polls for LRO operations if no diff --git a/packages/autorest.python/test/azure/version-tolerant/Expected/AcceptanceTests/PagingVersionTolerant/pagingversiontolerant/aio/_configuration.py b/packages/autorest.python/test/azure/version-tolerant/Expected/AcceptanceTests/PagingVersionTolerant/pagingversiontolerant/aio/_configuration.py index 3b70fdd7d9..acfb1118ae 100644 --- a/packages/autorest.python/test/azure/version-tolerant/Expected/AcceptanceTests/PagingVersionTolerant/pagingversiontolerant/aio/_configuration.py +++ b/packages/autorest.python/test/azure/version-tolerant/Expected/AcceptanceTests/PagingVersionTolerant/pagingversiontolerant/aio/_configuration.py @@ -19,7 +19,8 @@ class AutoRestPagingTestServiceConfiguration: # pylint: disable=too-many-instan Note that all parameters used to create this instance are saved as instance attributes. - :keyword api_version: Api Version. Default value is "1.0.0". Note that overriding this default + :keyword api_version: Api Version. Known values are "1.0.0" and None. Default value is None. If + not set, the operation's default API version will be used. Note that overriding this default value may result in unsupported behavior. :paramtype api_version: str """ diff --git a/packages/autorest.python/test/azure/version-tolerant/Expected/AcceptanceTests/StorageManagementClientVersionTolerant/storageversiontolerant/_client.py b/packages/autorest.python/test/azure/version-tolerant/Expected/AcceptanceTests/StorageManagementClientVersionTolerant/storageversiontolerant/_client.py index 6268fa5730..6aaf7d94b3 100644 --- a/packages/autorest.python/test/azure/version-tolerant/Expected/AcceptanceTests/StorageManagementClientVersionTolerant/storageversiontolerant/_client.py +++ b/packages/autorest.python/test/azure/version-tolerant/Expected/AcceptanceTests/StorageManagementClientVersionTolerant/storageversiontolerant/_client.py @@ -43,8 +43,9 @@ class StorageManagementClient: :keyword cloud_setting: The cloud setting for which to get the ARM endpoint. Default value is None. :paramtype cloud_setting: ~azure.core.AzureClouds - :keyword api_version: Api Version. Default value is "2015-05-01-preview". Note that overriding - this default value may result in unsupported behavior. + :keyword api_version: Api Version. Known values are "2015-05-01-preview" and None. Default + value is None. If not set, the operation's default API version will be used. Note that + overriding this default value may result in unsupported behavior. :paramtype api_version: str :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. diff --git a/packages/autorest.python/test/azure/version-tolerant/Expected/AcceptanceTests/StorageManagementClientVersionTolerant/storageversiontolerant/_configuration.py b/packages/autorest.python/test/azure/version-tolerant/Expected/AcceptanceTests/StorageManagementClientVersionTolerant/storageversiontolerant/_configuration.py index 46ba93135a..9f14bda247 100644 --- a/packages/autorest.python/test/azure/version-tolerant/Expected/AcceptanceTests/StorageManagementClientVersionTolerant/storageversiontolerant/_configuration.py +++ b/packages/autorest.python/test/azure/version-tolerant/Expected/AcceptanceTests/StorageManagementClientVersionTolerant/storageversiontolerant/_configuration.py @@ -32,8 +32,9 @@ class StorageManagementClientConfiguration: # pylint: disable=too-many-instance :param cloud_setting: The cloud setting for which to get the ARM endpoint. Default value is None. :type cloud_setting: ~azure.core.AzureClouds - :keyword api_version: Api Version. Default value is "2015-05-01-preview". Note that overriding - this default value may result in unsupported behavior. + :keyword api_version: Api Version. Known values are "2015-05-01-preview" and None. Default + value is None. If not set, the operation's default API version will be used. Note that + overriding this default value may result in unsupported behavior. :paramtype api_version: str """ diff --git a/packages/autorest.python/test/azure/version-tolerant/Expected/AcceptanceTests/StorageManagementClientVersionTolerant/storageversiontolerant/aio/_client.py b/packages/autorest.python/test/azure/version-tolerant/Expected/AcceptanceTests/StorageManagementClientVersionTolerant/storageversiontolerant/aio/_client.py index 588536bd51..efc2bd736f 100644 --- a/packages/autorest.python/test/azure/version-tolerant/Expected/AcceptanceTests/StorageManagementClientVersionTolerant/storageversiontolerant/aio/_client.py +++ b/packages/autorest.python/test/azure/version-tolerant/Expected/AcceptanceTests/StorageManagementClientVersionTolerant/storageversiontolerant/aio/_client.py @@ -43,8 +43,9 @@ class StorageManagementClient: :keyword cloud_setting: The cloud setting for which to get the ARM endpoint. Default value is None. :paramtype cloud_setting: ~azure.core.AzureClouds - :keyword api_version: Api Version. Default value is "2015-05-01-preview". Note that overriding - this default value may result in unsupported behavior. + :keyword api_version: Api Version. Known values are "2015-05-01-preview" and None. Default + value is None. If not set, the operation's default API version will be used. Note that + overriding this default value may result in unsupported behavior. :paramtype api_version: str :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. diff --git a/packages/autorest.python/test/azure/version-tolerant/Expected/AcceptanceTests/StorageManagementClientVersionTolerant/storageversiontolerant/aio/_configuration.py b/packages/autorest.python/test/azure/version-tolerant/Expected/AcceptanceTests/StorageManagementClientVersionTolerant/storageversiontolerant/aio/_configuration.py index f75b7c08f6..a599a58b73 100644 --- a/packages/autorest.python/test/azure/version-tolerant/Expected/AcceptanceTests/StorageManagementClientVersionTolerant/storageversiontolerant/aio/_configuration.py +++ b/packages/autorest.python/test/azure/version-tolerant/Expected/AcceptanceTests/StorageManagementClientVersionTolerant/storageversiontolerant/aio/_configuration.py @@ -32,8 +32,9 @@ class StorageManagementClientConfiguration: # pylint: disable=too-many-instance :param cloud_setting: The cloud setting for which to get the ARM endpoint. Default value is None. :type cloud_setting: ~azure.core.AzureClouds - :keyword api_version: Api Version. Default value is "2015-05-01-preview". Note that overriding - this default value may result in unsupported behavior. + :keyword api_version: Api Version. Known values are "2015-05-01-preview" and None. Default + value is None. If not set, the operation's default API version will be used. Note that + overriding this default value may result in unsupported behavior. :paramtype api_version: str """ diff --git a/packages/autorest.python/test/azure/version-tolerant/Expected/AcceptanceTests/SubscriptionIdApiVersionVersionTolerant/subscriptionidapiversionversiontolerant/_client.py b/packages/autorest.python/test/azure/version-tolerant/Expected/AcceptanceTests/SubscriptionIdApiVersionVersionTolerant/subscriptionidapiversionversiontolerant/_client.py index a4452a1d96..259c6d6bb9 100644 --- a/packages/autorest.python/test/azure/version-tolerant/Expected/AcceptanceTests/SubscriptionIdApiVersionVersionTolerant/subscriptionidapiversionversiontolerant/_client.py +++ b/packages/autorest.python/test/azure/version-tolerant/Expected/AcceptanceTests/SubscriptionIdApiVersionVersionTolerant/subscriptionidapiversionversiontolerant/_client.py @@ -40,8 +40,9 @@ class MicrosoftAzureTestUrl: :keyword cloud_setting: The cloud setting for which to get the ARM endpoint. Default value is None. :paramtype cloud_setting: ~azure.core.AzureClouds - :keyword api_version: Api Version. Default value is "2014-04-01-preview". Note that overriding - this default value may result in unsupported behavior. + :keyword api_version: Api Version. Known values are "2014-04-01-preview" and None. Default + value is None. If not set, the operation's default API version will be used. Note that + overriding this default value may result in unsupported behavior. :paramtype api_version: str """ diff --git a/packages/autorest.python/test/azure/version-tolerant/Expected/AcceptanceTests/SubscriptionIdApiVersionVersionTolerant/subscriptionidapiversionversiontolerant/_configuration.py b/packages/autorest.python/test/azure/version-tolerant/Expected/AcceptanceTests/SubscriptionIdApiVersionVersionTolerant/subscriptionidapiversionversiontolerant/_configuration.py index 89f496c149..4753fc7a83 100644 --- a/packages/autorest.python/test/azure/version-tolerant/Expected/AcceptanceTests/SubscriptionIdApiVersionVersionTolerant/subscriptionidapiversionversiontolerant/_configuration.py +++ b/packages/autorest.python/test/azure/version-tolerant/Expected/AcceptanceTests/SubscriptionIdApiVersionVersionTolerant/subscriptionidapiversionversiontolerant/_configuration.py @@ -31,8 +31,9 @@ class MicrosoftAzureTestUrlConfiguration: # pylint: disable=too-many-instance-a :param cloud_setting: The cloud setting for which to get the ARM endpoint. Default value is None. :type cloud_setting: ~azure.core.AzureClouds - :keyword api_version: Api Version. Default value is "2014-04-01-preview". Note that overriding - this default value may result in unsupported behavior. + :keyword api_version: Api Version. Known values are "2014-04-01-preview" and None. Default + value is None. If not set, the operation's default API version will be used. Note that + overriding this default value may result in unsupported behavior. :paramtype api_version: str """ diff --git a/packages/autorest.python/test/azure/version-tolerant/Expected/AcceptanceTests/SubscriptionIdApiVersionVersionTolerant/subscriptionidapiversionversiontolerant/aio/_client.py b/packages/autorest.python/test/azure/version-tolerant/Expected/AcceptanceTests/SubscriptionIdApiVersionVersionTolerant/subscriptionidapiversionversiontolerant/aio/_client.py index 80c92eb090..f730bb8bd9 100644 --- a/packages/autorest.python/test/azure/version-tolerant/Expected/AcceptanceTests/SubscriptionIdApiVersionVersionTolerant/subscriptionidapiversionversiontolerant/aio/_client.py +++ b/packages/autorest.python/test/azure/version-tolerant/Expected/AcceptanceTests/SubscriptionIdApiVersionVersionTolerant/subscriptionidapiversionversiontolerant/aio/_client.py @@ -40,8 +40,9 @@ class MicrosoftAzureTestUrl: :keyword cloud_setting: The cloud setting for which to get the ARM endpoint. Default value is None. :paramtype cloud_setting: ~azure.core.AzureClouds - :keyword api_version: Api Version. Default value is "2014-04-01-preview". Note that overriding - this default value may result in unsupported behavior. + :keyword api_version: Api Version. Known values are "2014-04-01-preview" and None. Default + value is None. If not set, the operation's default API version will be used. Note that + overriding this default value may result in unsupported behavior. :paramtype api_version: str """ diff --git a/packages/autorest.python/test/azure/version-tolerant/Expected/AcceptanceTests/SubscriptionIdApiVersionVersionTolerant/subscriptionidapiversionversiontolerant/aio/_configuration.py b/packages/autorest.python/test/azure/version-tolerant/Expected/AcceptanceTests/SubscriptionIdApiVersionVersionTolerant/subscriptionidapiversionversiontolerant/aio/_configuration.py index 89257c5a9a..6f69573e37 100644 --- a/packages/autorest.python/test/azure/version-tolerant/Expected/AcceptanceTests/SubscriptionIdApiVersionVersionTolerant/subscriptionidapiversionversiontolerant/aio/_configuration.py +++ b/packages/autorest.python/test/azure/version-tolerant/Expected/AcceptanceTests/SubscriptionIdApiVersionVersionTolerant/subscriptionidapiversionversiontolerant/aio/_configuration.py @@ -31,8 +31,9 @@ class MicrosoftAzureTestUrlConfiguration: # pylint: disable=too-many-instance-a :param cloud_setting: The cloud setting for which to get the ARM endpoint. Default value is None. :type cloud_setting: ~azure.core.AzureClouds - :keyword api_version: Api Version. Default value is "2014-04-01-preview". Note that overriding - this default value may result in unsupported behavior. + :keyword api_version: Api Version. Known values are "2014-04-01-preview" and None. Default + value is None. If not set, the operation's default API version will be used. Note that + overriding this default value may result in unsupported behavior. :paramtype api_version: str """ diff --git a/packages/autorest.python/test/vanilla/legacy/Expected/AcceptanceTests/BodyComplex/bodycomplex/_auto_rest_complex_test_service.py b/packages/autorest.python/test/vanilla/legacy/Expected/AcceptanceTests/BodyComplex/bodycomplex/_auto_rest_complex_test_service.py index 97dab0f9fd..cd701d8438 100644 --- a/packages/autorest.python/test/vanilla/legacy/Expected/AcceptanceTests/BodyComplex/bodycomplex/_auto_rest_complex_test_service.py +++ b/packages/autorest.python/test/vanilla/legacy/Expected/AcceptanceTests/BodyComplex/bodycomplex/_auto_rest_complex_test_service.py @@ -54,7 +54,8 @@ class AutoRestComplexTestService: # pylint: disable=too-many-instance-attribute :vartype flattencomplex: bodycomplex.operations.FlattencomplexOperations :param base_url: Service URL. Default value is "http://localhost:3000". :type base_url: str - :keyword api_version: Api Version. Default value is "2016-02-29". Note that overriding this + :keyword api_version: Api Version. Known values are "2016-02-29" and None. Default value is + None. If not set, the operation's default API version will be used. Note that overriding this default value may result in unsupported behavior. :paramtype api_version: str """ diff --git a/packages/autorest.python/test/vanilla/legacy/Expected/AcceptanceTests/BodyComplex/bodycomplex/_configuration.py b/packages/autorest.python/test/vanilla/legacy/Expected/AcceptanceTests/BodyComplex/bodycomplex/_configuration.py index 6f524f6076..6fa0162b61 100644 --- a/packages/autorest.python/test/vanilla/legacy/Expected/AcceptanceTests/BodyComplex/bodycomplex/_configuration.py +++ b/packages/autorest.python/test/vanilla/legacy/Expected/AcceptanceTests/BodyComplex/bodycomplex/_configuration.py @@ -19,7 +19,8 @@ class AutoRestComplexTestServiceConfiguration: # pylint: disable=too-many-insta Note that all parameters used to create this instance are saved as instance attributes. - :keyword api_version: Api Version. Default value is "2016-02-29". Note that overriding this + :keyword api_version: Api Version. Known values are "2016-02-29" and None. Default value is + None. If not set, the operation's default API version will be used. Note that overriding this default value may result in unsupported behavior. :paramtype api_version: str """ diff --git a/packages/autorest.python/test/vanilla/legacy/Expected/AcceptanceTests/BodyComplex/bodycomplex/aio/_auto_rest_complex_test_service.py b/packages/autorest.python/test/vanilla/legacy/Expected/AcceptanceTests/BodyComplex/bodycomplex/aio/_auto_rest_complex_test_service.py index ec9a5dab8a..a182911f9f 100644 --- a/packages/autorest.python/test/vanilla/legacy/Expected/AcceptanceTests/BodyComplex/bodycomplex/aio/_auto_rest_complex_test_service.py +++ b/packages/autorest.python/test/vanilla/legacy/Expected/AcceptanceTests/BodyComplex/bodycomplex/aio/_auto_rest_complex_test_service.py @@ -54,7 +54,8 @@ class AutoRestComplexTestService: # pylint: disable=too-many-instance-attribute :vartype flattencomplex: bodycomplex.aio.operations.FlattencomplexOperations :param base_url: Service URL. Default value is "http://localhost:3000". :type base_url: str - :keyword api_version: Api Version. Default value is "2016-02-29". Note that overriding this + :keyword api_version: Api Version. Known values are "2016-02-29" and None. Default value is + None. If not set, the operation's default API version will be used. Note that overriding this default value may result in unsupported behavior. :paramtype api_version: str """ diff --git a/packages/autorest.python/test/vanilla/legacy/Expected/AcceptanceTests/BodyComplex/bodycomplex/aio/_configuration.py b/packages/autorest.python/test/vanilla/legacy/Expected/AcceptanceTests/BodyComplex/bodycomplex/aio/_configuration.py index 8924f21ccd..7055f36f0b 100644 --- a/packages/autorest.python/test/vanilla/legacy/Expected/AcceptanceTests/BodyComplex/bodycomplex/aio/_configuration.py +++ b/packages/autorest.python/test/vanilla/legacy/Expected/AcceptanceTests/BodyComplex/bodycomplex/aio/_configuration.py @@ -19,7 +19,8 @@ class AutoRestComplexTestServiceConfiguration: # pylint: disable=too-many-insta Note that all parameters used to create this instance are saved as instance attributes. - :keyword api_version: Api Version. Default value is "2016-02-29". Note that overriding this + :keyword api_version: Api Version. Known values are "2016-02-29" and None. Default value is + None. If not set, the operation's default API version will be used. Note that overriding this default value may result in unsupported behavior. :paramtype api_version: str """ diff --git a/packages/autorest.python/test/vanilla/legacy/Expected/AcceptanceTests/Validation/validation/_auto_rest_validation_test.py b/packages/autorest.python/test/vanilla/legacy/Expected/AcceptanceTests/Validation/validation/_auto_rest_validation_test.py index c07bcf05f0..8cb1c66c49 100644 --- a/packages/autorest.python/test/vanilla/legacy/Expected/AcceptanceTests/Validation/validation/_auto_rest_validation_test.py +++ b/packages/autorest.python/test/vanilla/legacy/Expected/AcceptanceTests/Validation/validation/_auto_rest_validation_test.py @@ -28,7 +28,8 @@ class AutoRestValidationTest(_AutoRestValidationTestOperationsMixin): :type subscription_id: str :param base_url: Service URL. Default value is "http://localhost:3000". :type base_url: str - :keyword api_version: Api Version. Default value is "1.0.0". Note that overriding this default + :keyword api_version: Api Version. Known values are "1.0.0" and None. Default value is None. If + not set, the operation's default API version will be used. Note that overriding this default value may result in unsupported behavior. :paramtype api_version: str """ diff --git a/packages/autorest.python/test/vanilla/legacy/Expected/AcceptanceTests/Validation/validation/_configuration.py b/packages/autorest.python/test/vanilla/legacy/Expected/AcceptanceTests/Validation/validation/_configuration.py index 1add1aba06..cc7fe49f33 100644 --- a/packages/autorest.python/test/vanilla/legacy/Expected/AcceptanceTests/Validation/validation/_configuration.py +++ b/packages/autorest.python/test/vanilla/legacy/Expected/AcceptanceTests/Validation/validation/_configuration.py @@ -21,7 +21,8 @@ class AutoRestValidationTestConfiguration: # pylint: disable=too-many-instance- :param subscription_id: Subscription ID. Required. :type subscription_id: str - :keyword api_version: Api Version. Default value is "1.0.0". Note that overriding this default + :keyword api_version: Api Version. Known values are "1.0.0" and None. Default value is None. If + not set, the operation's default API version will be used. Note that overriding this default value may result in unsupported behavior. :paramtype api_version: str """ diff --git a/packages/autorest.python/test/vanilla/legacy/Expected/AcceptanceTests/Validation/validation/aio/_auto_rest_validation_test.py b/packages/autorest.python/test/vanilla/legacy/Expected/AcceptanceTests/Validation/validation/aio/_auto_rest_validation_test.py index ced893f7b6..8c7f2408a6 100644 --- a/packages/autorest.python/test/vanilla/legacy/Expected/AcceptanceTests/Validation/validation/aio/_auto_rest_validation_test.py +++ b/packages/autorest.python/test/vanilla/legacy/Expected/AcceptanceTests/Validation/validation/aio/_auto_rest_validation_test.py @@ -28,7 +28,8 @@ class AutoRestValidationTest(_AutoRestValidationTestOperationsMixin): :type subscription_id: str :param base_url: Service URL. Default value is "http://localhost:3000". :type base_url: str - :keyword api_version: Api Version. Default value is "1.0.0". Note that overriding this default + :keyword api_version: Api Version. Known values are "1.0.0" and None. Default value is None. If + not set, the operation's default API version will be used. Note that overriding this default value may result in unsupported behavior. :paramtype api_version: str """ diff --git a/packages/autorest.python/test/vanilla/legacy/Expected/AcceptanceTests/Validation/validation/aio/_configuration.py b/packages/autorest.python/test/vanilla/legacy/Expected/AcceptanceTests/Validation/validation/aio/_configuration.py index 6e21549ae9..025198ae37 100644 --- a/packages/autorest.python/test/vanilla/legacy/Expected/AcceptanceTests/Validation/validation/aio/_configuration.py +++ b/packages/autorest.python/test/vanilla/legacy/Expected/AcceptanceTests/Validation/validation/aio/_configuration.py @@ -21,7 +21,8 @@ class AutoRestValidationTestConfiguration: # pylint: disable=too-many-instance- :param subscription_id: Subscription ID. Required. :type subscription_id: str - :keyword api_version: Api Version. Default value is "1.0.0". Note that overriding this default + :keyword api_version: Api Version. Known values are "1.0.0" and None. Default value is None. If + not set, the operation's default API version will be used. Note that overriding this default value may result in unsupported behavior. :paramtype api_version: str """ diff --git a/packages/autorest.python/test/vanilla/version-tolerant/Expected/AcceptanceTests/BodyComplexVersionTolerant/bodycomplexversiontolerant/_client.py b/packages/autorest.python/test/vanilla/version-tolerant/Expected/AcceptanceTests/BodyComplexVersionTolerant/bodycomplexversiontolerant/_client.py index eb71839da9..b1567b9106 100644 --- a/packages/autorest.python/test/vanilla/version-tolerant/Expected/AcceptanceTests/BodyComplexVersionTolerant/bodycomplexversiontolerant/_client.py +++ b/packages/autorest.python/test/vanilla/version-tolerant/Expected/AcceptanceTests/BodyComplexVersionTolerant/bodycomplexversiontolerant/_client.py @@ -53,7 +53,8 @@ class AutoRestComplexTestService: # pylint: disable=too-many-instance-attribute :vartype flattencomplex: bodycomplexversiontolerant.operations.FlattencomplexOperations :keyword endpoint: Service URL. Default value is "http://localhost:3000". :paramtype endpoint: str - :keyword api_version: Api Version. Default value is "2016-02-29". Note that overriding this + :keyword api_version: Api Version. Known values are "2016-02-29" and None. Default value is + None. If not set, the operation's default API version will be used. Note that overriding this default value may result in unsupported behavior. :paramtype api_version: str """ diff --git a/packages/autorest.python/test/vanilla/version-tolerant/Expected/AcceptanceTests/BodyComplexVersionTolerant/bodycomplexversiontolerant/_configuration.py b/packages/autorest.python/test/vanilla/version-tolerant/Expected/AcceptanceTests/BodyComplexVersionTolerant/bodycomplexversiontolerant/_configuration.py index 6f524f6076..6fa0162b61 100644 --- a/packages/autorest.python/test/vanilla/version-tolerant/Expected/AcceptanceTests/BodyComplexVersionTolerant/bodycomplexversiontolerant/_configuration.py +++ b/packages/autorest.python/test/vanilla/version-tolerant/Expected/AcceptanceTests/BodyComplexVersionTolerant/bodycomplexversiontolerant/_configuration.py @@ -19,7 +19,8 @@ class AutoRestComplexTestServiceConfiguration: # pylint: disable=too-many-insta Note that all parameters used to create this instance are saved as instance attributes. - :keyword api_version: Api Version. Default value is "2016-02-29". Note that overriding this + :keyword api_version: Api Version. Known values are "2016-02-29" and None. Default value is + None. If not set, the operation's default API version will be used. Note that overriding this default value may result in unsupported behavior. :paramtype api_version: str """ diff --git a/packages/autorest.python/test/vanilla/version-tolerant/Expected/AcceptanceTests/BodyComplexVersionTolerant/bodycomplexversiontolerant/aio/_client.py b/packages/autorest.python/test/vanilla/version-tolerant/Expected/AcceptanceTests/BodyComplexVersionTolerant/bodycomplexversiontolerant/aio/_client.py index f78792e0ee..9667fcd4e5 100644 --- a/packages/autorest.python/test/vanilla/version-tolerant/Expected/AcceptanceTests/BodyComplexVersionTolerant/bodycomplexversiontolerant/aio/_client.py +++ b/packages/autorest.python/test/vanilla/version-tolerant/Expected/AcceptanceTests/BodyComplexVersionTolerant/bodycomplexversiontolerant/aio/_client.py @@ -53,7 +53,8 @@ class AutoRestComplexTestService: # pylint: disable=too-many-instance-attribute :vartype flattencomplex: bodycomplexversiontolerant.aio.operations.FlattencomplexOperations :keyword endpoint: Service URL. Default value is "http://localhost:3000". :paramtype endpoint: str - :keyword api_version: Api Version. Default value is "2016-02-29". Note that overriding this + :keyword api_version: Api Version. Known values are "2016-02-29" and None. Default value is + None. If not set, the operation's default API version will be used. Note that overriding this default value may result in unsupported behavior. :paramtype api_version: str """ diff --git a/packages/autorest.python/test/vanilla/version-tolerant/Expected/AcceptanceTests/BodyComplexVersionTolerant/bodycomplexversiontolerant/aio/_configuration.py b/packages/autorest.python/test/vanilla/version-tolerant/Expected/AcceptanceTests/BodyComplexVersionTolerant/bodycomplexversiontolerant/aio/_configuration.py index 8924f21ccd..7055f36f0b 100644 --- a/packages/autorest.python/test/vanilla/version-tolerant/Expected/AcceptanceTests/BodyComplexVersionTolerant/bodycomplexversiontolerant/aio/_configuration.py +++ b/packages/autorest.python/test/vanilla/version-tolerant/Expected/AcceptanceTests/BodyComplexVersionTolerant/bodycomplexversiontolerant/aio/_configuration.py @@ -19,7 +19,8 @@ class AutoRestComplexTestServiceConfiguration: # pylint: disable=too-many-insta Note that all parameters used to create this instance are saved as instance attributes. - :keyword api_version: Api Version. Default value is "2016-02-29". Note that overriding this + :keyword api_version: Api Version. Known values are "2016-02-29" and None. Default value is + None. If not set, the operation's default API version will be used. Note that overriding this default value may result in unsupported behavior. :paramtype api_version: str """ diff --git a/packages/autorest.python/test/vanilla/version-tolerant/Expected/AcceptanceTests/ValidationVersionTolerant/validationversiontolerant/_client.py b/packages/autorest.python/test/vanilla/version-tolerant/Expected/AcceptanceTests/ValidationVersionTolerant/validationversiontolerant/_client.py index 1f16ab1576..27f403bfc6 100644 --- a/packages/autorest.python/test/vanilla/version-tolerant/Expected/AcceptanceTests/ValidationVersionTolerant/validationversiontolerant/_client.py +++ b/packages/autorest.python/test/vanilla/version-tolerant/Expected/AcceptanceTests/ValidationVersionTolerant/validationversiontolerant/_client.py @@ -26,7 +26,8 @@ class AutoRestValidationTest(_AutoRestValidationTestOperationsMixin): :type subscription_id: str :keyword endpoint: Service URL. Default value is "http://localhost:3000". :paramtype endpoint: str - :keyword api_version: Api Version. Default value is "1.0.0". Note that overriding this default + :keyword api_version: Api Version. Known values are "1.0.0" and None. Default value is None. If + not set, the operation's default API version will be used. Note that overriding this default value may result in unsupported behavior. :paramtype api_version: str """ diff --git a/packages/autorest.python/test/vanilla/version-tolerant/Expected/AcceptanceTests/ValidationVersionTolerant/validationversiontolerant/_configuration.py b/packages/autorest.python/test/vanilla/version-tolerant/Expected/AcceptanceTests/ValidationVersionTolerant/validationversiontolerant/_configuration.py index 1add1aba06..cc7fe49f33 100644 --- a/packages/autorest.python/test/vanilla/version-tolerant/Expected/AcceptanceTests/ValidationVersionTolerant/validationversiontolerant/_configuration.py +++ b/packages/autorest.python/test/vanilla/version-tolerant/Expected/AcceptanceTests/ValidationVersionTolerant/validationversiontolerant/_configuration.py @@ -21,7 +21,8 @@ class AutoRestValidationTestConfiguration: # pylint: disable=too-many-instance- :param subscription_id: Subscription ID. Required. :type subscription_id: str - :keyword api_version: Api Version. Default value is "1.0.0". Note that overriding this default + :keyword api_version: Api Version. Known values are "1.0.0" and None. Default value is None. If + not set, the operation's default API version will be used. Note that overriding this default value may result in unsupported behavior. :paramtype api_version: str """ diff --git a/packages/autorest.python/test/vanilla/version-tolerant/Expected/AcceptanceTests/ValidationVersionTolerant/validationversiontolerant/aio/_client.py b/packages/autorest.python/test/vanilla/version-tolerant/Expected/AcceptanceTests/ValidationVersionTolerant/validationversiontolerant/aio/_client.py index 2e16a97e67..7e62e7e99d 100644 --- a/packages/autorest.python/test/vanilla/version-tolerant/Expected/AcceptanceTests/ValidationVersionTolerant/validationversiontolerant/aio/_client.py +++ b/packages/autorest.python/test/vanilla/version-tolerant/Expected/AcceptanceTests/ValidationVersionTolerant/validationversiontolerant/aio/_client.py @@ -26,7 +26,8 @@ class AutoRestValidationTest(_AutoRestValidationTestOperationsMixin): :type subscription_id: str :keyword endpoint: Service URL. Default value is "http://localhost:3000". :paramtype endpoint: str - :keyword api_version: Api Version. Default value is "1.0.0". Note that overriding this default + :keyword api_version: Api Version. Known values are "1.0.0" and None. Default value is None. If + not set, the operation's default API version will be used. Note that overriding this default value may result in unsupported behavior. :paramtype api_version: str """ diff --git a/packages/autorest.python/test/vanilla/version-tolerant/Expected/AcceptanceTests/ValidationVersionTolerant/validationversiontolerant/aio/_configuration.py b/packages/autorest.python/test/vanilla/version-tolerant/Expected/AcceptanceTests/ValidationVersionTolerant/validationversiontolerant/aio/_configuration.py index 6e21549ae9..025198ae37 100644 --- a/packages/autorest.python/test/vanilla/version-tolerant/Expected/AcceptanceTests/ValidationVersionTolerant/validationversiontolerant/aio/_configuration.py +++ b/packages/autorest.python/test/vanilla/version-tolerant/Expected/AcceptanceTests/ValidationVersionTolerant/validationversiontolerant/aio/_configuration.py @@ -21,7 +21,8 @@ class AutoRestValidationTestConfiguration: # pylint: disable=too-many-instance- :param subscription_id: Subscription ID. Required. :type subscription_id: str - :keyword api_version: Api Version. Default value is "1.0.0". Note that overriding this default + :keyword api_version: Api Version. Known values are "1.0.0" and None. Default value is None. If + not set, the operation's default API version will be used. Note that overriding this default value may result in unsupported behavior. :paramtype api_version: str """