From f3efbf1f3dc70247546823e15c0f0ae302c88934 Mon Sep 17 00:00:00 2001 From: Joel Hendrix Date: Fri, 14 Jun 2024 12:08:33 -0700 Subject: [PATCH] Update to the latest TCGC and tsp dependencies (#1385) * Update to the latest TCGC and tsp dependencies This includes a breaking change in TCGC how nullable types are represented. A new kind 'nullable' was introduced that wraps the underlying type to describe if the type is nullable. Added this kind to the applicable switch statements, unwrapping as required. Update emitter version for pending release. * update autorest.gotest baseline files in response to 971296885143b12375772775892436668137e142 --- common/config/rush/pnpm-lock.yaml | 285 +++++++++++------- .../armagrifood/__debug/go-tester-pre.yaml | 4 +- .../armagrifood/__debug/go-tester.yaml | 4 +- .../armagrifood/__debug/test-modeler-pre.yaml | 4 +- .../armagrifood/__debug/test-modeler.yaml | 4 +- .../armappplatform/__debug/go-tester-pre.yaml | 50 +-- .../armappplatform/__debug/go-tester.yaml | 50 +-- .../__debug/test-modeler-pre.yaml | 50 +-- .../armappplatform/__debug/test-modeler.yaml | 50 +-- .../armcompute/__debug/go-tester-pre.yaml | 236 +++++++-------- .../compute/armcompute/__debug/go-tester.yaml | 236 +++++++-------- .../armcompute/__debug/test-modeler-pre.yaml | 236 +++++++-------- .../armcompute/__debug/test-modeler.yaml | 236 +++++++-------- .../__debug/go-tester-pre.yaml | 52 ++-- .../__debug/go-tester.yaml | 52 ++-- .../__debug/test-modeler-pre.yaml | 52 ++-- .../__debug/test-modeler.yaml | 52 ++-- .../armsignalr/__debug/go-tester-pre.yaml | 16 +- .../signalr/armsignalr/__debug/go-tester.yaml | 16 +- .../armsignalr/__debug/test-modeler-pre.yaml | 16 +- .../armsignalr/__debug/test-modeler.yaml | 16 +- packages/typespec-go/package.json | 20 +- packages/typespec-go/src/tcgcadapter/types.ts | 24 +- .../test/armapicenter/fake/zz_date_type.go | 54 ---- .../armapicenter/zz_apidefinitions_client.go | 2 +- .../test/armapicenter/zz_apis_client.go | 2 +- .../armapicenter/zz_apiversions_client.go | 2 +- .../test/armapicenter/zz_client_factory.go | 2 +- .../test/armapicenter/zz_constants.go | 4 +- .../test/armapicenter/zz_date_type.go | 54 ---- .../armapicenter/zz_deletedservices_client.go | 2 +- .../armapicenter/zz_deployments_client.go | 2 +- .../armapicenter/zz_environments_client.go | 2 +- .../armapicenter/zz_metadataschemas_client.go | 2 +- .../test/armapicenter/zz_models.go | 29 +- .../test/armapicenter/zz_models_serde.go | 66 +--- .../test/armapicenter/zz_operations_client.go | 2 +- .../test/armapicenter/zz_responses.go | 2 +- .../test/armapicenter/zz_services_client.go | 2 +- .../test/armapicenter/zz_workspaces_client.go | 2 +- .../test/armcodesigning/fake/zz_date_type.go | 54 ---- .../test/armcodesigning/zz_accounts_client.go | 2 +- .../zz_certificateprofiles_client.go | 2 +- .../test/armcodesigning/zz_client_factory.go | 2 +- .../test/armcodesigning/zz_date_type.go | 54 ---- .../test/armcodesigning/zz_models.go | 8 +- .../test/armcodesigning/zz_models_serde.go | 28 +- .../armcodesigning/zz_operations_client.go | 2 +- .../test/armcodesigning/zz_responses.go | 2 +- .../fake/zz_date_type.go | 54 ---- .../fake/zz_time_rfc3339.go | 109 +++++++ .../zz_client_factory.go | 2 +- .../zz_communitytrainings_client.go | 2 +- .../armcommunitymanagement/zz_constants.go | 3 +- .../armcommunitymanagement/zz_date_type.go | 54 ---- .../test/armcommunitymanagement/zz_models.go | 12 +- .../armcommunitymanagement/zz_models_serde.go | 28 +- .../zz_operations_client.go | 2 +- .../armcommunitymanagement/zz_responses.go | 2 +- .../armcommunitymanagement/zz_time_rfc3339.go | 109 +++++++ .../armdatabasewatcher/fake/zz_date_type.go | 54 ---- .../fake/zz_time_rfc3339.go | 109 +++++++ .../armdatabasewatcher/zz_client_factory.go | 2 +- .../test/armdatabasewatcher/zz_constants.go | 8 +- .../test/armdatabasewatcher/zz_date_type.go | 54 ---- .../test/armdatabasewatcher/zz_models.go | 31 +- .../armdatabasewatcher/zz_models_serde.go | 66 +--- .../zz_operations_client.go | 2 +- .../test/armdatabasewatcher/zz_responses.go | 2 +- .../zz_sharedprivatelinkresources_client.go | 2 +- .../armdatabasewatcher/zz_targets_client.go | 2 +- .../armdatabasewatcher/zz_time_rfc3339.go | 109 +++++++ .../armdatabasewatcher/zz_watchers_client.go | 2 +- .../fake/zz_date_type.go | 54 ---- .../fake/zz_time_rfc3339.go | 109 +++++++ .../zz_client_factory.go | 2 +- .../armdevopsinfrastructure/zz_constants.go | 4 +- .../armdevopsinfrastructure/zz_date_type.go | 54 ---- .../zz_imageversions_client.go | 2 +- .../test/armdevopsinfrastructure/zz_models.go | 49 ++- .../zz_models_serde.go | 108 +++---- .../zz_operations_client.go | 2 +- .../zz_pools_client.go | 2 +- .../zz_resourcedetails_client.go | 2 +- .../armdevopsinfrastructure/zz_responses.go | 2 +- .../armdevopsinfrastructure/zz_sku_client.go | 2 +- .../zz_subscriptionusages_client.go | 2 +- .../zz_time_rfc3339.go | 109 +++++++ .../armlargeinstance/fake/zz_date_type.go | 54 ---- .../zz_azurelargeinstances_client.go | 2 +- .../zz_azurelargestorageinstances_client.go | 2 +- .../armlargeinstance/zz_client_factory.go | 2 +- .../test/armlargeinstance/zz_date_type.go | 54 ---- .../test/armlargeinstance/zz_models.go | 30 +- .../test/armlargeinstance/zz_models_serde.go | 70 ++--- .../armlargeinstance/zz_operations_client.go | 2 +- .../test/armlargeinstance/zz_responses.go | 2 +- .../armloadtestservice/fake/zz_date_type.go | 54 ---- .../fake/zz_time_rfc3339.go | 109 +++++++ .../armloadtestservice/zz_client_factory.go | 2 +- .../test/armloadtestservice/zz_constants.go | 4 +- .../test/armloadtestservice/zz_date_type.go | 54 ---- .../armloadtestservice/zz_loadtests_client.go | 2 +- .../test/armloadtestservice/zz_models.go | 43 ++- .../armloadtestservice/zz_models_serde.go | 90 ++---- .../zz_operations_client.go | 2 +- .../armloadtestservice/zz_quotas_client.go | 8 +- .../test/armloadtestservice/zz_responses.go | 2 +- .../armloadtestservice/zz_time_rfc3339.go | 109 +++++++ .../accessgroup/zz_models.go | 2 +- .../inheritance/singlediscgroup/zz_models.go | 2 +- 111 files changed, 2094 insertions(+), 2076 deletions(-) delete mode 100644 packages/typespec-go/test/armapicenter/fake/zz_date_type.go delete mode 100644 packages/typespec-go/test/armapicenter/zz_date_type.go delete mode 100644 packages/typespec-go/test/armcodesigning/fake/zz_date_type.go delete mode 100644 packages/typespec-go/test/armcodesigning/zz_date_type.go delete mode 100644 packages/typespec-go/test/armcommunitymanagement/fake/zz_date_type.go create mode 100644 packages/typespec-go/test/armcommunitymanagement/fake/zz_time_rfc3339.go delete mode 100644 packages/typespec-go/test/armcommunitymanagement/zz_date_type.go create mode 100644 packages/typespec-go/test/armcommunitymanagement/zz_time_rfc3339.go delete mode 100644 packages/typespec-go/test/armdatabasewatcher/fake/zz_date_type.go create mode 100644 packages/typespec-go/test/armdatabasewatcher/fake/zz_time_rfc3339.go delete mode 100644 packages/typespec-go/test/armdatabasewatcher/zz_date_type.go create mode 100644 packages/typespec-go/test/armdatabasewatcher/zz_time_rfc3339.go delete mode 100644 packages/typespec-go/test/armdevopsinfrastructure/fake/zz_date_type.go create mode 100644 packages/typespec-go/test/armdevopsinfrastructure/fake/zz_time_rfc3339.go delete mode 100644 packages/typespec-go/test/armdevopsinfrastructure/zz_date_type.go create mode 100644 packages/typespec-go/test/armdevopsinfrastructure/zz_time_rfc3339.go delete mode 100644 packages/typespec-go/test/armlargeinstance/fake/zz_date_type.go delete mode 100644 packages/typespec-go/test/armlargeinstance/zz_date_type.go delete mode 100644 packages/typespec-go/test/armloadtestservice/fake/zz_date_type.go create mode 100644 packages/typespec-go/test/armloadtestservice/fake/zz_time_rfc3339.go delete mode 100644 packages/typespec-go/test/armloadtestservice/zz_date_type.go create mode 100644 packages/typespec-go/test/armloadtestservice/zz_time_rfc3339.go diff --git a/common/config/rush/pnpm-lock.yaml b/common/config/rush/pnpm-lock.yaml index bff88a135..69815e061 100644 --- a/common/config/rush/pnpm-lock.yaml +++ b/common/config/rush/pnpm-lock.yaml @@ -203,23 +203,23 @@ importers: specifier: ~3.1.0 version: 3.1.263 '@azure-tools/typespec-azure-core': - specifier: '>=0.42.0 <1.0.0' - version: 0.42.0(@typespec/compiler@0.56.0)(@typespec/http@0.56.0)(@typespec/rest@0.56.0) + specifier: '>=0.43.0 <1.0.0' + version: 0.43.0(@typespec/compiler@0.57.0)(@typespec/http@0.57.0)(@typespec/rest@0.57.0) '@azure-tools/typespec-client-generator-core': - specifier: 0.42.3 - version: 0.42.3(@azure-tools/typespec-azure-core@0.42.0)(@typespec/compiler@0.56.0)(@typespec/http@0.56.0)(@typespec/rest@0.56.0)(@typespec/versioning@0.56.0) + specifier: 0.43.0 + version: 0.43.0(@azure-tools/typespec-azure-core@0.43.0)(@typespec/compiler@0.57.0)(@typespec/http@0.57.0)(@typespec/rest@0.57.0)(@typespec/versioning@0.57.0) '@typespec/compiler': - specifier: 0.56.0 - version: 0.56.0 + specifier: 0.57.0 + version: 0.57.0 '@typespec/http': - specifier: 0.56.0 - version: 0.56.0(@typespec/compiler@0.56.0) + specifier: 0.57.0 + version: 0.57.0(@typespec/compiler@0.57.0) '@typespec/rest': - specifier: 0.56.0 - version: 0.56.0(@typespec/compiler@0.56.0)(@typespec/http@0.56.0) + specifier: 0.57.0 + version: 0.57.0(@typespec/compiler@0.57.0)(@typespec/http@0.57.0) '@typespec/versioning': - specifier: 0.56.0 - version: 0.56.0(@typespec/compiler@0.56.0) + specifier: 0.57.0 + version: 0.57.0(@typespec/compiler@0.57.0) js-yaml: specifier: ~4.1.0 version: 4.1.0 @@ -229,19 +229,19 @@ importers: devDependencies: '@azure-tools/cadl-ranch': specifier: ~0.12.7 - version: 0.12.7(@typespec/versioning@0.56.0) + version: 0.12.7(@typespec/versioning@0.57.0) '@azure-tools/cadl-ranch-expect': specifier: ~0.13.3 - version: 0.13.3(@typespec/compiler@0.56.0)(@typespec/http@0.56.0)(@typespec/rest@0.56.0)(@typespec/versioning@0.56.0) + version: 0.13.3(@typespec/compiler@0.57.0)(@typespec/http@0.57.0)(@typespec/rest@0.57.0)(@typespec/versioning@0.57.0) '@azure-tools/cadl-ranch-specs': specifier: 0.33.4 - version: 0.33.4(@azure-tools/cadl-ranch-expect@0.13.3)(@azure-tools/typespec-azure-core@0.42.0)(@typespec/compiler@0.56.0)(@typespec/http@0.56.0)(@typespec/rest@0.56.0)(@typespec/versioning@0.56.0) + version: 0.33.4(@azure-tools/cadl-ranch-expect@0.13.3)(@azure-tools/typespec-azure-core@0.43.0)(@typespec/compiler@0.57.0)(@typespec/http@0.57.0)(@typespec/rest@0.57.0)(@typespec/versioning@0.57.0) '@azure-tools/typespec-autorest': - specifier: 0.40.0 - version: 0.40.0(@azure-tools/typespec-azure-core@0.42.0)(@azure-tools/typespec-client-generator-core@0.42.3)(@typespec/compiler@0.56.0)(@typespec/http@0.56.0)(@typespec/openapi@0.54.0)(@typespec/rest@0.56.0)(@typespec/versioning@0.56.0) + specifier: 0.43.0 + version: 0.43.0(@azure-tools/typespec-azure-core@0.43.0)(@azure-tools/typespec-azure-resource-manager@0.43.0)(@azure-tools/typespec-client-generator-core@0.43.0)(@typespec/compiler@0.57.0)(@typespec/http@0.57.0)(@typespec/openapi@0.57.0)(@typespec/rest@0.57.0)(@typespec/versioning@0.57.0) '@azure-tools/typespec-azure-resource-manager': - specifier: 0.42.0 - version: 0.42.0(@azure-tools/typespec-autorest@0.40.0)(@azure-tools/typespec-azure-core@0.42.0)(@typespec/compiler@0.56.0)(@typespec/http@0.56.0)(@typespec/openapi@0.54.0)(@typespec/rest@0.56.0)(@typespec/versioning@0.56.0) + specifier: 0.43.0 + version: 0.43.0(@azure-tools/typespec-azure-core@0.43.0)(@typespec/compiler@0.57.0)(@typespec/http@0.57.0)(@typespec/openapi@0.57.0)(@typespec/rest@0.57.0)(@typespec/versioning@0.57.0) '@types/jest': specifier: ~26.0.24 version: 26.0.24 @@ -258,8 +258,8 @@ importers: specifier: ~4.1.1 version: 4.1.1(eslint@6.6.0)(typescript@5.1.6) '@typespec/openapi': - specifier: ~0.54.0 - version: 0.54.0(@typespec/compiler@0.56.0)(@typespec/http@0.56.0) + specifier: ~0.57.0 + version: 0.57.0(@typespec/compiler@0.57.0)(@typespec/http@0.57.0) eslint: specifier: ~6.6.0 version: 6.6.0 @@ -404,7 +404,7 @@ packages: - supports-color dev: true - /@azure-tools/cadl-ranch-expect@0.13.3(@typespec/compiler@0.55.0)(@typespec/http@0.55.0)(@typespec/rest@0.55.0)(@typespec/versioning@0.56.0): + /@azure-tools/cadl-ranch-expect@0.13.3(@typespec/compiler@0.55.0)(@typespec/http@0.55.0)(@typespec/rest@0.55.0)(@typespec/versioning@0.57.0): resolution: {integrity: sha512-CkLsiRci29AvU08vJXLx8O4t2p+60cH7OhLD11IBvfx4czwsShI5AKswvm0ESanuwpquCF3RATu+UTqVM+pYTA==} engines: {node: '>=16.0.0'} peerDependencies: @@ -416,10 +416,10 @@ packages: '@typespec/compiler': 0.55.0 '@typespec/http': 0.55.0(@typespec/compiler@0.55.0) '@typespec/rest': 0.55.0(@typespec/compiler@0.55.0)(@typespec/http@0.55.0) - '@typespec/versioning': 0.56.0(@typespec/compiler@0.56.0) + '@typespec/versioning': 0.57.0(@typespec/compiler@0.57.0) dev: true - /@azure-tools/cadl-ranch-expect@0.13.3(@typespec/compiler@0.56.0)(@typespec/http@0.56.0)(@typespec/rest@0.56.0)(@typespec/versioning@0.56.0): + /@azure-tools/cadl-ranch-expect@0.13.3(@typespec/compiler@0.57.0)(@typespec/http@0.57.0)(@typespec/rest@0.57.0)(@typespec/versioning@0.57.0): resolution: {integrity: sha512-CkLsiRci29AvU08vJXLx8O4t2p+60cH7OhLD11IBvfx4czwsShI5AKswvm0ESanuwpquCF3RATu+UTqVM+pYTA==} engines: {node: '>=16.0.0'} peerDependencies: @@ -428,13 +428,13 @@ packages: '@typespec/rest': ~0.55.0 '@typespec/versioning': ~0.55.0 dependencies: - '@typespec/compiler': 0.56.0 - '@typespec/http': 0.56.0(@typespec/compiler@0.56.0) - '@typespec/rest': 0.56.0(@typespec/compiler@0.56.0)(@typespec/http@0.56.0) - '@typespec/versioning': 0.56.0(@typespec/compiler@0.56.0) + '@typespec/compiler': 0.57.0 + '@typespec/http': 0.57.0(@typespec/compiler@0.57.0) + '@typespec/rest': 0.57.0(@typespec/compiler@0.57.0)(@typespec/http@0.57.0) + '@typespec/versioning': 0.57.0(@typespec/compiler@0.57.0) dev: true - /@azure-tools/cadl-ranch-expect@0.13.4(@typespec/compiler@0.56.0)(@typespec/http@0.56.0)(@typespec/rest@0.56.0)(@typespec/versioning@0.56.0): + /@azure-tools/cadl-ranch-expect@0.13.4(@typespec/compiler@0.56.0)(@typespec/http@0.56.0)(@typespec/rest@0.56.0)(@typespec/versioning@0.57.0): resolution: {integrity: sha512-2j9Mxr8tz7zF8j8L/R/KEPhES/cJDt21wUTkQv0TKwZ4Kz5HGHBCsvnOnoBs72H7Q8DHpqOIhNDak40BHCrEGA==} engines: {node: '>=16.0.0'} peerDependencies: @@ -446,10 +446,10 @@ packages: '@typespec/compiler': 0.56.0 '@typespec/http': 0.56.0(@typespec/compiler@0.56.0) '@typespec/rest': 0.56.0(@typespec/compiler@0.56.0)(@typespec/http@0.56.0) - '@typespec/versioning': 0.56.0(@typespec/compiler@0.56.0) + '@typespec/versioning': 0.57.0(@typespec/compiler@0.57.0) dev: true - /@azure-tools/cadl-ranch-specs@0.33.4(@azure-tools/cadl-ranch-expect@0.13.3)(@azure-tools/typespec-azure-core@0.42.0)(@typespec/compiler@0.56.0)(@typespec/http@0.56.0)(@typespec/rest@0.56.0)(@typespec/versioning@0.56.0): + /@azure-tools/cadl-ranch-specs@0.33.4(@azure-tools/cadl-ranch-expect@0.13.3)(@azure-tools/typespec-azure-core@0.43.0)(@typespec/compiler@0.57.0)(@typespec/http@0.57.0)(@typespec/rest@0.57.0)(@typespec/versioning@0.57.0): resolution: {integrity: sha512-xTTyZIWT8bjXNoFr1M5CA6L7yo3mLBMzSDYPepCCWk3Wx8P2bl0NkK9YS4udfTA9TKlUJPSW23DvHcQfJ2rurQ==} engines: {node: '>=16.0.0'} peerDependencies: @@ -460,28 +460,28 @@ packages: '@typespec/rest': ~0.56.0 '@typespec/versioning': ~0.56.0 dependencies: - '@azure-tools/cadl-ranch': 0.12.8(@typespec/versioning@0.56.0) + '@azure-tools/cadl-ranch': 0.12.8(@typespec/versioning@0.57.0) '@azure-tools/cadl-ranch-api': 0.4.3 - '@azure-tools/cadl-ranch-expect': 0.13.3(@typespec/compiler@0.56.0)(@typespec/http@0.56.0)(@typespec/rest@0.56.0)(@typespec/versioning@0.56.0) - '@azure-tools/typespec-azure-core': 0.42.0(@typespec/compiler@0.56.0)(@typespec/http@0.56.0)(@typespec/rest@0.56.0) - '@typespec/compiler': 0.56.0 - '@typespec/http': 0.56.0(@typespec/compiler@0.56.0) - '@typespec/rest': 0.56.0(@typespec/compiler@0.56.0)(@typespec/http@0.56.0) - '@typespec/versioning': 0.56.0(@typespec/compiler@0.56.0) + '@azure-tools/cadl-ranch-expect': 0.13.3(@typespec/compiler@0.57.0)(@typespec/http@0.57.0)(@typespec/rest@0.57.0)(@typespec/versioning@0.57.0) + '@azure-tools/typespec-azure-core': 0.43.0(@typespec/compiler@0.57.0)(@typespec/http@0.57.0)(@typespec/rest@0.57.0) + '@typespec/compiler': 0.57.0 + '@typespec/http': 0.57.0(@typespec/compiler@0.57.0) + '@typespec/rest': 0.57.0(@typespec/compiler@0.57.0)(@typespec/http@0.57.0) + '@typespec/versioning': 0.57.0(@typespec/compiler@0.57.0) transitivePeerDependencies: - '@types/express' - encoding - supports-color dev: true - /@azure-tools/cadl-ranch@0.12.7(@typespec/versioning@0.56.0): + /@azure-tools/cadl-ranch@0.12.7(@typespec/versioning@0.57.0): resolution: {integrity: sha512-lhJP81l7i+ScW14TYJ7P4qerkYsGGXFpAsxXUUk7hhu5vQL6TuMj/dyVXFU5nE3h2TAW+SOM+Lk6awRLxY5s+A==} engines: {node: '>=16.0.0'} hasBin: true dependencies: '@azure-tools/cadl-ranch-api': 0.4.3 '@azure-tools/cadl-ranch-coverage-sdk': 0.8.2 - '@azure-tools/cadl-ranch-expect': 0.13.3(@typespec/compiler@0.55.0)(@typespec/http@0.55.0)(@typespec/rest@0.55.0)(@typespec/versioning@0.56.0) + '@azure-tools/cadl-ranch-expect': 0.13.3(@typespec/compiler@0.55.0)(@typespec/http@0.55.0)(@typespec/rest@0.55.0)(@typespec/versioning@0.57.0) '@azure/identity': 3.4.2 '@types/js-yaml': 4.0.9 '@typespec/compiler': 0.55.0 @@ -510,14 +510,14 @@ packages: - supports-color dev: true - /@azure-tools/cadl-ranch@0.12.8(@typespec/versioning@0.56.0): + /@azure-tools/cadl-ranch@0.12.8(@typespec/versioning@0.57.0): resolution: {integrity: sha512-dkVz6YxwFBgwmWtYqpzY1cuncuuHcvQbd8gHx1j9tvl8VjEjd5gVTAEFkp9ZuOM8P9L/VP5x4q14RlRMOMitHQ==} engines: {node: '>=16.0.0'} hasBin: true dependencies: '@azure-tools/cadl-ranch-api': 0.4.3 '@azure-tools/cadl-ranch-coverage-sdk': 0.8.2 - '@azure-tools/cadl-ranch-expect': 0.13.4(@typespec/compiler@0.56.0)(@typespec/http@0.56.0)(@typespec/rest@0.56.0)(@typespec/versioning@0.56.0) + '@azure-tools/cadl-ranch-expect': 0.13.4(@typespec/compiler@0.56.0)(@typespec/http@0.56.0)(@typespec/rest@0.56.0)(@typespec/versioning@0.57.0) '@azure/identity': 3.4.2 '@types/js-yaml': 4.0.9 '@typespec/compiler': 0.56.0 @@ -580,77 +580,77 @@ packages: engines: {node: '>=10.12.0'} dev: false - /@azure-tools/typespec-autorest@0.40.0(@azure-tools/typespec-azure-core@0.42.0)(@azure-tools/typespec-client-generator-core@0.42.3)(@typespec/compiler@0.56.0)(@typespec/http@0.56.0)(@typespec/openapi@0.54.0)(@typespec/rest@0.56.0)(@typespec/versioning@0.56.0): - resolution: {integrity: sha512-aMgJk0pudvg11zs/2dlUWPEsdK920NvTqGkbYhy+4UeJ1hEzMM3btOyujE/irhDlcZeEgDlaXQc+xiK/Vik71A==} + /@azure-tools/typespec-autorest@0.43.0(@azure-tools/typespec-azure-core@0.43.0)(@azure-tools/typespec-azure-resource-manager@0.43.0)(@azure-tools/typespec-client-generator-core@0.43.0)(@typespec/compiler@0.57.0)(@typespec/http@0.57.0)(@typespec/openapi@0.57.0)(@typespec/rest@0.57.0)(@typespec/versioning@0.57.0): + resolution: {integrity: sha512-tZ9uXXOdxu2y01W9n3mzXf+IEY2MQkP/JaQaKlcOx2+dbklHNQWSDU0Vm6Gmm6l//XiF9QiI8653BiuO97czyw==} engines: {node: '>=18.0.0'} peerDependencies: - '@azure-tools/typespec-azure-core': ~0.40.0 - '@azure-tools/typespec-client-generator-core': ~0.40.0 - '@typespec/compiler': ~0.54.0 - '@typespec/http': ~0.54.0 - '@typespec/openapi': ~0.54.0 - '@typespec/rest': ~0.54.0 - '@typespec/versioning': ~0.54.0 - dependencies: - '@azure-tools/typespec-azure-core': 0.42.0(@typespec/compiler@0.56.0)(@typespec/http@0.56.0)(@typespec/rest@0.56.0) - '@azure-tools/typespec-client-generator-core': 0.42.3(@azure-tools/typespec-azure-core@0.42.0)(@typespec/compiler@0.56.0)(@typespec/http@0.56.0)(@typespec/rest@0.56.0)(@typespec/versioning@0.56.0) - '@typespec/compiler': 0.56.0 - '@typespec/http': 0.56.0(@typespec/compiler@0.56.0) - '@typespec/openapi': 0.54.0(@typespec/compiler@0.56.0)(@typespec/http@0.56.0) - '@typespec/rest': 0.56.0(@typespec/compiler@0.56.0)(@typespec/http@0.56.0) - '@typespec/versioning': 0.56.0(@typespec/compiler@0.56.0) - dev: true - - /@azure-tools/typespec-azure-core@0.42.0(@typespec/compiler@0.56.0)(@typespec/http@0.56.0)(@typespec/rest@0.56.0): - resolution: {integrity: sha512-8C96RkgSWtgqsaHRMWCd2iDltFJZTGmFQiTZazZj/uRy0Wn1ikjSriSN8t1puL5SiUPd0BVJP/YXiwAfjfZYDA==} + '@azure-tools/typespec-azure-core': ~0.43.0 + '@azure-tools/typespec-azure-resource-manager': ~0.43.0 + '@azure-tools/typespec-client-generator-core': ~0.43.0 + '@typespec/compiler': ~0.57.0 + '@typespec/http': ~0.57.0 + '@typespec/openapi': ~0.57.0 + '@typespec/rest': ~0.57.0 + '@typespec/versioning': ~0.57.0 + dependencies: + '@azure-tools/typespec-azure-core': 0.43.0(@typespec/compiler@0.57.0)(@typespec/http@0.57.0)(@typespec/rest@0.57.0) + '@azure-tools/typespec-azure-resource-manager': 0.43.0(@azure-tools/typespec-azure-core@0.43.0)(@typespec/compiler@0.57.0)(@typespec/http@0.57.0)(@typespec/openapi@0.57.0)(@typespec/rest@0.57.0)(@typespec/versioning@0.57.0) + '@azure-tools/typespec-client-generator-core': 0.43.0(@azure-tools/typespec-azure-core@0.43.0)(@typespec/compiler@0.57.0)(@typespec/http@0.57.0)(@typespec/rest@0.57.0)(@typespec/versioning@0.57.0) + '@typespec/compiler': 0.57.0 + '@typespec/http': 0.57.0(@typespec/compiler@0.57.0) + '@typespec/openapi': 0.57.0(@typespec/compiler@0.57.0)(@typespec/http@0.57.0) + '@typespec/rest': 0.57.0(@typespec/compiler@0.57.0)(@typespec/http@0.57.0) + '@typespec/versioning': 0.57.0(@typespec/compiler@0.57.0) + dev: true + + /@azure-tools/typespec-azure-core@0.43.0(@typespec/compiler@0.57.0)(@typespec/http@0.57.0)(@typespec/rest@0.57.0): + resolution: {integrity: sha512-B1r0i3segJ7RuNXxcAMBy8H2t+jTkaf74dkyUWD0HIFPkhETN0uR59nuor+s+LoLU8yI4JypOFSNZt6e1rod8w==} engines: {node: '>=18.0.0'} peerDependencies: - '@typespec/compiler': ~0.56.0 - '@typespec/http': ~0.56.0 - '@typespec/rest': ~0.56.0 + '@typespec/compiler': ~0.57.0 + '@typespec/http': ~0.57.0 + '@typespec/rest': ~0.57.0 dependencies: - '@typespec/compiler': 0.56.0 - '@typespec/http': 0.56.0(@typespec/compiler@0.56.0) - '@typespec/rest': 0.56.0(@typespec/compiler@0.56.0)(@typespec/http@0.56.0) + '@typespec/compiler': 0.57.0 + '@typespec/http': 0.57.0(@typespec/compiler@0.57.0) + '@typespec/rest': 0.57.0(@typespec/compiler@0.57.0)(@typespec/http@0.57.0) - /@azure-tools/typespec-azure-resource-manager@0.42.0(@azure-tools/typespec-autorest@0.40.0)(@azure-tools/typespec-azure-core@0.42.0)(@typespec/compiler@0.56.0)(@typespec/http@0.56.0)(@typespec/openapi@0.54.0)(@typespec/rest@0.56.0)(@typespec/versioning@0.56.0): - resolution: {integrity: sha512-RCqcrhE1yniAih5vDFOC5K4MpDr9XmG8qBB39G49/KyEKnWOQ3Nwvt/6fXaU42D9X2L6kfEAIz/AdiSJ/H5O6w==} + /@azure-tools/typespec-azure-resource-manager@0.43.0(@azure-tools/typespec-azure-core@0.43.0)(@typespec/compiler@0.57.0)(@typespec/http@0.57.0)(@typespec/openapi@0.57.0)(@typespec/rest@0.57.0)(@typespec/versioning@0.57.0): + resolution: {integrity: sha512-0GQL+/o1u+PAB63FpYz3sy3ZgZvCtk5T4sDAnICnV23v2YWIONDMUfxxd0x40xJbY6PkcwwHDpBLNMqajf2H6A==} engines: {node: '>=18.0.0'} peerDependencies: - '@azure-tools/typespec-autorest': ~0.42.0 - '@azure-tools/typespec-azure-core': ~0.42.0 - '@typespec/compiler': ~0.56.0 - '@typespec/http': ~0.56.0 - '@typespec/openapi': ~0.56.0 - '@typespec/rest': ~0.56.0 - '@typespec/versioning': ~0.56.0 - dependencies: - '@azure-tools/typespec-autorest': 0.40.0(@azure-tools/typespec-azure-core@0.42.0)(@azure-tools/typespec-client-generator-core@0.42.3)(@typespec/compiler@0.56.0)(@typespec/http@0.56.0)(@typespec/openapi@0.54.0)(@typespec/rest@0.56.0)(@typespec/versioning@0.56.0) - '@azure-tools/typespec-azure-core': 0.42.0(@typespec/compiler@0.56.0)(@typespec/http@0.56.0)(@typespec/rest@0.56.0) - '@typespec/compiler': 0.56.0 - '@typespec/http': 0.56.0(@typespec/compiler@0.56.0) - '@typespec/openapi': 0.54.0(@typespec/compiler@0.56.0)(@typespec/http@0.56.0) - '@typespec/rest': 0.56.0(@typespec/compiler@0.56.0)(@typespec/http@0.56.0) - '@typespec/versioning': 0.56.0(@typespec/compiler@0.56.0) + '@azure-tools/typespec-azure-core': ~0.43.0 + '@typespec/compiler': ~0.57.0 + '@typespec/http': ~0.57.0 + '@typespec/openapi': ~0.57.0 + '@typespec/rest': ~0.57.0 + '@typespec/versioning': ~0.57.0 + dependencies: + '@azure-tools/typespec-azure-core': 0.43.0(@typespec/compiler@0.57.0)(@typespec/http@0.57.0)(@typespec/rest@0.57.0) + '@typespec/compiler': 0.57.0 + '@typespec/http': 0.57.0(@typespec/compiler@0.57.0) + '@typespec/openapi': 0.57.0(@typespec/compiler@0.57.0)(@typespec/http@0.57.0) + '@typespec/rest': 0.57.0(@typespec/compiler@0.57.0)(@typespec/http@0.57.0) + '@typespec/versioning': 0.57.0(@typespec/compiler@0.57.0) change-case: 5.4.4 pluralize: 8.0.0 dev: true - /@azure-tools/typespec-client-generator-core@0.42.3(@azure-tools/typespec-azure-core@0.42.0)(@typespec/compiler@0.56.0)(@typespec/http@0.56.0)(@typespec/rest@0.56.0)(@typespec/versioning@0.56.0): - resolution: {integrity: sha512-ZDVVIY1uJ8EaI4QhCdQmTdKVACm4xYn/I7ySpwv4oxk9X8kZFhxx+PKNHAlx34mhOf4oF0PW3wCN5DMeU6asYg==} + /@azure-tools/typespec-client-generator-core@0.43.0(@azure-tools/typespec-azure-core@0.43.0)(@typespec/compiler@0.57.0)(@typespec/http@0.57.0)(@typespec/rest@0.57.0)(@typespec/versioning@0.57.0): + resolution: {integrity: sha512-rssB/zsg89wstzJC1MWzbd8oPpqbgoftkp9G/NP3BoMb/gCP5uRLggwlSUAgnoU2Lt0jBUKcMlqEiVLTAkY9LA==} engines: {node: '>=18.0.0'} peerDependencies: - '@azure-tools/typespec-azure-core': ~0.42.0 - '@typespec/compiler': ~0.56.0 - '@typespec/http': ~0.56.0 - '@typespec/rest': ~0.56.0 - '@typespec/versioning': ~0.56.0 - dependencies: - '@azure-tools/typespec-azure-core': 0.42.0(@typespec/compiler@0.56.0)(@typespec/http@0.56.0)(@typespec/rest@0.56.0) - '@typespec/compiler': 0.56.0 - '@typespec/http': 0.56.0(@typespec/compiler@0.56.0) - '@typespec/rest': 0.56.0(@typespec/compiler@0.56.0)(@typespec/http@0.56.0) - '@typespec/versioning': 0.56.0(@typespec/compiler@0.56.0) + '@azure-tools/typespec-azure-core': ~0.43.0 + '@typespec/compiler': ~0.57.0 + '@typespec/http': ~0.57.0 + '@typespec/rest': ~0.57.0 + '@typespec/versioning': ~0.57.0 + dependencies: + '@azure-tools/typespec-azure-core': 0.43.0(@typespec/compiler@0.57.0)(@typespec/http@0.57.0)(@typespec/rest@0.57.0) + '@typespec/compiler': 0.57.0 + '@typespec/http': 0.57.0(@typespec/compiler@0.57.0) + '@typespec/rest': 0.57.0(@typespec/compiler@0.57.0)(@typespec/http@0.57.0) + '@typespec/versioning': 0.57.0(@typespec/compiler@0.57.0) change-case: 5.4.4 pluralize: 8.0.0 @@ -985,7 +985,7 @@ packages: engines: {node: '>=6.9.0'} dependencies: '@babel/highlight': 7.24.2 - picocolors: 1.0.0 + picocolors: 1.0.1 /@babel/compat-data@7.24.1: resolution: {integrity: sha512-Pc65opHDliVpRHuKfzI+gSA4zcgr65O4cl64fFJIWEEh8JoHIHh0Oez1Eo8Arz8zq/JhgKodQaxEwUPRtZylVA==} @@ -1114,7 +1114,7 @@ packages: '@babel/helper-validator-identifier': 7.22.20 chalk: 2.4.2 js-tokens: 4.0.0 - picocolors: 1.0.0 + picocolors: 1.0.1 /@babel/parser@7.24.1: resolution: {integrity: sha512-Zo9c7N3xdOIQrNip7Lc9wvRPzlRtovHVE4lkz8WEDr7uYh/GMQhSiIgFxGIArRHYdJE5kxtZjAf8rT0xhdLCzg==} @@ -2050,6 +2050,26 @@ packages: vscode-languageserver-textdocument: 1.0.11 yaml: 2.4.1 yargs: 17.7.2 + dev: true + + /@typespec/compiler@0.57.0: + resolution: {integrity: sha512-Z5L7J90Ol21IbzU+rBD2wzKy2vJ2Yg2FIzi+yB5rtb7/c4oBea/CgEByMVHBtT7uw45ZXJpHOiepuGSPVXw2EA==} + engines: {node: '>=18.0.0'} + hasBin: true + dependencies: + '@babel/code-frame': 7.24.2 + ajv: 8.13.0 + change-case: 5.4.4 + globby: 14.0.1 + mustache: 4.2.0 + picocolors: 1.0.1 + prettier: 3.2.5 + prompts: 2.4.2 + semver: 7.6.2 + vscode-languageserver: 9.0.1 + vscode-languageserver-textdocument: 1.0.11 + yaml: 2.4.5 + yargs: 17.7.2 /@typespec/http@0.55.0(@typespec/compiler@0.55.0): resolution: {integrity: sha512-r30RWzMTJgbyRpdtZxezlvXI/nkAvgilX1OM+s3A039lGLA+JRukgvKIZ3LaNr3lNXHiqeWQDrIZNhqBnpW1zw==} @@ -2067,16 +2087,25 @@ packages: '@typespec/compiler': ~0.56.0 dependencies: '@typespec/compiler': 0.56.0 + dev: true - /@typespec/openapi@0.54.0(@typespec/compiler@0.56.0)(@typespec/http@0.56.0): - resolution: {integrity: sha512-QJkwq3whcqKb29ScMD5IQzqvDmPQyLAubRl82Zj6kVMCqabRwegOX9aN+K0083nci65zt9rflZbv9bKY5GRy/A==} + /@typespec/http@0.57.0(@typespec/compiler@0.57.0): + resolution: {integrity: sha512-k3bWOTPNqlRB3/TmrXVBtObmxj2J20l2FnhGXvs+tjdtbXLxCQWmvQz6xlne9nkLAtWVB/pQRUn+oMJfhWta3w==} engines: {node: '>=18.0.0'} peerDependencies: - '@typespec/compiler': ~0.54.0 - '@typespec/http': ~0.54.0 + '@typespec/compiler': ~0.57.0 dependencies: - '@typespec/compiler': 0.56.0 - '@typespec/http': 0.56.0(@typespec/compiler@0.56.0) + '@typespec/compiler': 0.57.0 + + /@typespec/openapi@0.57.0(@typespec/compiler@0.57.0)(@typespec/http@0.57.0): + resolution: {integrity: sha512-35wK/BqjOXSlhWuGMwoYN3FSgIYFOKtw8ot4ErcgmxAGuKaS2GkUhZvtQJXUn2ByU0Fl4jqslPmTz8SEcz7rbw==} + engines: {node: '>=18.0.0'} + peerDependencies: + '@typespec/compiler': ~0.57.0 + '@typespec/http': ~0.57.0 + dependencies: + '@typespec/compiler': 0.57.0 + '@typespec/http': 0.57.0(@typespec/compiler@0.57.0) dev: true /@typespec/rest@0.55.0(@typespec/compiler@0.55.0)(@typespec/http@0.55.0): @@ -2099,14 +2128,25 @@ packages: dependencies: '@typespec/compiler': 0.56.0 '@typespec/http': 0.56.0(@typespec/compiler@0.56.0) + dev: true - /@typespec/versioning@0.56.0(@typespec/compiler@0.56.0): - resolution: {integrity: sha512-j7IN9XFyGn3LH6IOJkinEvk9sDncsxiWPULOAe0VQ+D/dtCfLawDMUALnvklMDRKeD1OOUPSCjjUAp9OB0f7YA==} + /@typespec/rest@0.57.0(@typespec/compiler@0.57.0)(@typespec/http@0.57.0): + resolution: {integrity: sha512-mZj76Kf+cmH38pYA6LT8Zz7QjuR3fdQo5bc8pXhKMwLq9vRqNLz6Z9InbOeo8zY+xP0GfUwEU9kXczmCc8gyRA==} engines: {node: '>=18.0.0'} peerDependencies: - '@typespec/compiler': ~0.56.0 + '@typespec/compiler': ~0.57.0 + '@typespec/http': ~0.57.0 dependencies: - '@typespec/compiler': 0.56.0 + '@typespec/compiler': 0.57.0 + '@typespec/http': 0.57.0(@typespec/compiler@0.57.0) + + /@typespec/versioning@0.57.0(@typespec/compiler@0.57.0): + resolution: {integrity: sha512-kk6zCNSwcqqYB9isNNagTy+Zv6wEIRA4NkcZ/X1riTj2zhJwKsIFNXQWm1yxpZn+BY4+1QtuaQHuBLo8HbgR/w==} + engines: {node: '>=18.0.0'} + peerDependencies: + '@typespec/compiler': ~0.57.0 + dependencies: + '@typespec/compiler': 0.57.0 /a-sync-waterfall@1.0.1: resolution: {integrity: sha512-RYTOHHdWipFUliRFMCS4X2Yn2X8M87V/OpSqWzKKOGhzqyUxzyVmhHDH9sAvG+ZuQf/TAOFsLCpMw09I1ufUnA==} @@ -2262,6 +2302,15 @@ packages: json-schema-traverse: 1.0.0 require-from-string: 2.0.2 uri-js: 4.4.1 + dev: true + + /ajv@8.13.0: + resolution: {integrity: sha512-PRA911Blj99jR5RMeTunVbNXMF6Lp4vZXnk5GQjcnUWUTsrXtekg/pnmFFI2u/I36Y/2bITGS30GZCXei6uNkA==} + dependencies: + fast-deep-equal: 3.1.3 + json-schema-traverse: 1.0.0 + require-from-string: 2.0.2 + uri-js: 4.4.1 /amdefine@1.0.1: resolution: {integrity: sha512-S2Hw0TtNkMJhIabBwIojKL9YHO5T0n5eNqWJ7Lrlel/zDbftQpxpapi8tZs3X1HWa+u+QeydGmzzNU0m09+Rcg==} @@ -6938,6 +6987,9 @@ packages: /picocolors@1.0.0: resolution: {integrity: sha512-1fygroTLlHu66zi26VoTDv8yRgm0Fccecssto+MhsZ0D/DGW2sm8E8AjW7NU5VVTRt5GxbeZ5qBuJr+HyLYkjQ==} + /picocolors@1.0.1: + resolution: {integrity: sha512-anP1Z8qwhkbmu7MFP5iTt+wQKXgwzf7zTyGlcdzabySa9vd0Xt392U0rVmz9poOaBj0uHJKyyo9/upk0HrEQew==} + /picomatch@2.3.1: resolution: {integrity: sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==} engines: {node: '>=8.6'} @@ -7532,6 +7584,11 @@ packages: dependencies: lru-cache: 6.0.0 + /semver@7.6.2: + resolution: {integrity: sha512-FNAIBWCx9qcRhoHcgcJ0gvU7SN1lYU2ZXuSfl04bSC5OpvDHFyJCjdNHomPXxjQlCBU67YW64PzY7/VIEH7F2w==} + engines: {node: '>=10'} + hasBin: true + /send@0.18.0: resolution: {integrity: sha512-qqWzuOjSFOuqPjFe4NOsMLafToQQwBSOEpS+FwEt3A2V3vKubTquT3vmLTQpFgMXp8AlFWFuP1qKaJZOtPpVXg==} engines: {node: '>= 0.8.0'} @@ -8728,6 +8785,12 @@ packages: resolution: {integrity: sha512-pIXzoImaqmfOrL7teGUBt/T7ZDnyeGBWyXQBvOVhLkWLN37GXv8NMLK406UY6dS51JfcQHsmcW5cJ441bHg6Lg==} engines: {node: '>= 14'} hasBin: true + dev: true + + /yaml@2.4.5: + resolution: {integrity: sha512-aBx2bnqDzVOyNKfsysjA2ms5ZlnjSAW2eG3/L5G/CSujfjLJTJsEw1bGw8kCf04KodQWk1pxlGnZ56CRxiawmg==} + engines: {node: '>= 14'} + hasBin: true /yargs-parser@15.0.3: resolution: {integrity: sha512-/MVEVjTXy/cGAjdtQf8dW3V9b97bPN7rNn8ETj6BmAQL7ibC7O1Q9SPJbGjgh3SlwoBNXMzj/ZGIj8mBgl12YA==} diff --git a/packages/autorest.gotest/test/integrationtest/output/agrifood/armagrifood/__debug/go-tester-pre.yaml b/packages/autorest.gotest/test/integrationtest/output/agrifood/armagrifood/__debug/go-tester-pre.yaml index 22f35979b..7e1819ab2 100644 --- a/packages/autorest.gotest/test/integrationtest/output/agrifood/armagrifood/__debug/go-tester-pre.yaml +++ b/packages/autorest.gotest/test/integrationtest/output/agrifood/armagrifood/__debug/go-tester-pre.yaml @@ -6093,7 +6093,7 @@ operationGroups: language: default: &ref_217 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_223 @@ -8085,7 +8085,7 @@ operationGroups: language: default: &ref_298 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_302 diff --git a/packages/autorest.gotest/test/integrationtest/output/agrifood/armagrifood/__debug/go-tester.yaml b/packages/autorest.gotest/test/integrationtest/output/agrifood/armagrifood/__debug/go-tester.yaml index 57d46499b..c6c7a4576 100644 --- a/packages/autorest.gotest/test/integrationtest/output/agrifood/armagrifood/__debug/go-tester.yaml +++ b/packages/autorest.gotest/test/integrationtest/output/agrifood/armagrifood/__debug/go-tester.yaml @@ -6093,7 +6093,7 @@ operationGroups: language: default: &ref_217 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_223 @@ -8085,7 +8085,7 @@ operationGroups: language: default: &ref_298 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_302 diff --git a/packages/autorest.gotest/test/integrationtest/output/agrifood/armagrifood/__debug/test-modeler-pre.yaml b/packages/autorest.gotest/test/integrationtest/output/agrifood/armagrifood/__debug/test-modeler-pre.yaml index 069f52bda..28cfd0e19 100644 --- a/packages/autorest.gotest/test/integrationtest/output/agrifood/armagrifood/__debug/test-modeler-pre.yaml +++ b/packages/autorest.gotest/test/integrationtest/output/agrifood/armagrifood/__debug/test-modeler-pre.yaml @@ -6080,7 +6080,7 @@ operationGroups: language: default: &ref_217 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_223 @@ -8060,7 +8060,7 @@ operationGroups: language: default: &ref_298 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_302 diff --git a/packages/autorest.gotest/test/integrationtest/output/agrifood/armagrifood/__debug/test-modeler.yaml b/packages/autorest.gotest/test/integrationtest/output/agrifood/armagrifood/__debug/test-modeler.yaml index c34d324f0..c40a3c387 100644 --- a/packages/autorest.gotest/test/integrationtest/output/agrifood/armagrifood/__debug/test-modeler.yaml +++ b/packages/autorest.gotest/test/integrationtest/output/agrifood/armagrifood/__debug/test-modeler.yaml @@ -6093,7 +6093,7 @@ operationGroups: language: default: &ref_217 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_223 @@ -8085,7 +8085,7 @@ operationGroups: language: default: &ref_298 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_302 diff --git a/packages/autorest.gotest/test/integrationtest/output/appplatform/armappplatform/__debug/go-tester-pre.yaml b/packages/autorest.gotest/test/integrationtest/output/appplatform/armappplatform/__debug/go-tester-pre.yaml index 465bff794..da95b9022 100644 --- a/packages/autorest.gotest/test/integrationtest/output/appplatform/armappplatform/__debug/go-tester-pre.yaml +++ b/packages/autorest.gotest/test/integrationtest/output/appplatform/armappplatform/__debug/go-tester-pre.yaml @@ -7869,7 +7869,7 @@ operationGroups: language: default: &ref_294 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_299 @@ -8388,7 +8388,7 @@ operationGroups: language: default: &ref_307 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_310 @@ -8582,7 +8582,7 @@ operationGroups: language: default: &ref_316 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_321 @@ -10386,7 +10386,7 @@ operationGroups: language: default: &ref_388 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_393 @@ -10654,7 +10654,7 @@ operationGroups: language: default: &ref_401 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_406 @@ -10927,7 +10927,7 @@ operationGroups: language: default: &ref_414 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_420 @@ -11377,7 +11377,7 @@ operationGroups: language: default: &ref_435 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_440 @@ -11640,7 +11640,7 @@ operationGroups: language: default: &ref_448 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_453 @@ -12173,7 +12173,7 @@ operationGroups: language: default: &ref_471 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_477 @@ -12530,7 +12530,7 @@ operationGroups: language: default: &ref_485 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_489 @@ -12752,7 +12752,7 @@ operationGroups: language: default: &ref_495 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_501 @@ -13952,7 +13952,7 @@ operationGroups: language: default: &ref_547 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_554 @@ -14301,7 +14301,7 @@ operationGroups: language: default: &ref_562 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_567 @@ -14541,7 +14541,7 @@ operationGroups: language: default: &ref_573 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_580 @@ -15285,7 +15285,7 @@ operationGroups: language: default: &ref_605 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_611 @@ -15614,7 +15614,7 @@ operationGroups: language: default: &ref_619 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_623 @@ -16284,7 +16284,7 @@ operationGroups: language: default: &ref_646 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_653 @@ -16600,7 +16600,7 @@ operationGroups: language: default: &ref_661 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_666 @@ -16840,7 +16840,7 @@ operationGroups: language: default: &ref_672 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_679 @@ -17599,7 +17599,7 @@ operationGroups: language: default: &ref_705 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_712 @@ -17996,7 +17996,7 @@ operationGroups: language: default: &ref_720 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_725 @@ -18236,7 +18236,7 @@ operationGroups: language: default: &ref_731 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_738 @@ -19062,7 +19062,7 @@ operationGroups: language: default: &ref_768 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_773 @@ -19292,7 +19292,7 @@ operationGroups: language: default: &ref_779 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_784 @@ -19522,7 +19522,7 @@ operationGroups: language: default: &ref_790 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_795 diff --git a/packages/autorest.gotest/test/integrationtest/output/appplatform/armappplatform/__debug/go-tester.yaml b/packages/autorest.gotest/test/integrationtest/output/appplatform/armappplatform/__debug/go-tester.yaml index f31cdb548..fbadf849e 100644 --- a/packages/autorest.gotest/test/integrationtest/output/appplatform/armappplatform/__debug/go-tester.yaml +++ b/packages/autorest.gotest/test/integrationtest/output/appplatform/armappplatform/__debug/go-tester.yaml @@ -7869,7 +7869,7 @@ operationGroups: language: default: &ref_294 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_299 @@ -8388,7 +8388,7 @@ operationGroups: language: default: &ref_307 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_310 @@ -8582,7 +8582,7 @@ operationGroups: language: default: &ref_316 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_321 @@ -10386,7 +10386,7 @@ operationGroups: language: default: &ref_388 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_393 @@ -10654,7 +10654,7 @@ operationGroups: language: default: &ref_401 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_406 @@ -10927,7 +10927,7 @@ operationGroups: language: default: &ref_414 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_420 @@ -11377,7 +11377,7 @@ operationGroups: language: default: &ref_435 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_440 @@ -11640,7 +11640,7 @@ operationGroups: language: default: &ref_448 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_453 @@ -12173,7 +12173,7 @@ operationGroups: language: default: &ref_471 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_477 @@ -12530,7 +12530,7 @@ operationGroups: language: default: &ref_485 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_489 @@ -12752,7 +12752,7 @@ operationGroups: language: default: &ref_495 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_501 @@ -13952,7 +13952,7 @@ operationGroups: language: default: &ref_547 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_554 @@ -14301,7 +14301,7 @@ operationGroups: language: default: &ref_562 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_567 @@ -14541,7 +14541,7 @@ operationGroups: language: default: &ref_573 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_580 @@ -15285,7 +15285,7 @@ operationGroups: language: default: &ref_605 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_611 @@ -15614,7 +15614,7 @@ operationGroups: language: default: &ref_619 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_623 @@ -16284,7 +16284,7 @@ operationGroups: language: default: &ref_646 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_653 @@ -16600,7 +16600,7 @@ operationGroups: language: default: &ref_661 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_666 @@ -16840,7 +16840,7 @@ operationGroups: language: default: &ref_672 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_679 @@ -17599,7 +17599,7 @@ operationGroups: language: default: &ref_705 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_712 @@ -17996,7 +17996,7 @@ operationGroups: language: default: &ref_720 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_725 @@ -18236,7 +18236,7 @@ operationGroups: language: default: &ref_731 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_738 @@ -19062,7 +19062,7 @@ operationGroups: language: default: &ref_768 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_773 @@ -19292,7 +19292,7 @@ operationGroups: language: default: &ref_779 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_784 @@ -19522,7 +19522,7 @@ operationGroups: language: default: &ref_790 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_795 diff --git a/packages/autorest.gotest/test/integrationtest/output/appplatform/armappplatform/__debug/test-modeler-pre.yaml b/packages/autorest.gotest/test/integrationtest/output/appplatform/armappplatform/__debug/test-modeler-pre.yaml index 1ba4f0ccd..0548e37d7 100644 --- a/packages/autorest.gotest/test/integrationtest/output/appplatform/armappplatform/__debug/test-modeler-pre.yaml +++ b/packages/autorest.gotest/test/integrationtest/output/appplatform/armappplatform/__debug/test-modeler-pre.yaml @@ -7866,7 +7866,7 @@ operationGroups: language: default: &ref_294 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_299 @@ -8384,7 +8384,7 @@ operationGroups: language: default: &ref_307 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_310 @@ -8577,7 +8577,7 @@ operationGroups: language: default: &ref_316 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_321 @@ -10371,7 +10371,7 @@ operationGroups: language: default: &ref_388 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_393 @@ -10638,7 +10638,7 @@ operationGroups: language: default: &ref_401 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_406 @@ -10910,7 +10910,7 @@ operationGroups: language: default: &ref_414 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_420 @@ -11357,7 +11357,7 @@ operationGroups: language: default: &ref_435 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_440 @@ -11619,7 +11619,7 @@ operationGroups: language: default: &ref_448 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_453 @@ -12149,7 +12149,7 @@ operationGroups: language: default: &ref_471 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_477 @@ -12505,7 +12505,7 @@ operationGroups: language: default: &ref_485 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_489 @@ -12726,7 +12726,7 @@ operationGroups: language: default: &ref_495 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_501 @@ -13920,7 +13920,7 @@ operationGroups: language: default: &ref_547 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_554 @@ -14268,7 +14268,7 @@ operationGroups: language: default: &ref_562 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_567 @@ -14507,7 +14507,7 @@ operationGroups: language: default: &ref_573 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_580 @@ -15247,7 +15247,7 @@ operationGroups: language: default: &ref_605 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_611 @@ -15575,7 +15575,7 @@ operationGroups: language: default: &ref_619 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_623 @@ -16241,7 +16241,7 @@ operationGroups: language: default: &ref_646 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_653 @@ -16556,7 +16556,7 @@ operationGroups: language: default: &ref_661 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_666 @@ -16795,7 +16795,7 @@ operationGroups: language: default: &ref_672 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_679 @@ -17550,7 +17550,7 @@ operationGroups: language: default: &ref_705 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_712 @@ -17946,7 +17946,7 @@ operationGroups: language: default: &ref_720 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_725 @@ -18185,7 +18185,7 @@ operationGroups: language: default: &ref_731 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_738 @@ -19008,7 +19008,7 @@ operationGroups: language: default: &ref_768 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_773 @@ -19237,7 +19237,7 @@ operationGroups: language: default: &ref_779 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_784 @@ -19466,7 +19466,7 @@ operationGroups: language: default: &ref_790 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_795 diff --git a/packages/autorest.gotest/test/integrationtest/output/appplatform/armappplatform/__debug/test-modeler.yaml b/packages/autorest.gotest/test/integrationtest/output/appplatform/armappplatform/__debug/test-modeler.yaml index c3d7a36cb..e8be1d0d0 100644 --- a/packages/autorest.gotest/test/integrationtest/output/appplatform/armappplatform/__debug/test-modeler.yaml +++ b/packages/autorest.gotest/test/integrationtest/output/appplatform/armappplatform/__debug/test-modeler.yaml @@ -7869,7 +7869,7 @@ operationGroups: language: default: &ref_294 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_299 @@ -8388,7 +8388,7 @@ operationGroups: language: default: &ref_307 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_310 @@ -8582,7 +8582,7 @@ operationGroups: language: default: &ref_316 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_321 @@ -10386,7 +10386,7 @@ operationGroups: language: default: &ref_388 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_393 @@ -10654,7 +10654,7 @@ operationGroups: language: default: &ref_401 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_406 @@ -10927,7 +10927,7 @@ operationGroups: language: default: &ref_414 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_420 @@ -11377,7 +11377,7 @@ operationGroups: language: default: &ref_435 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_440 @@ -11640,7 +11640,7 @@ operationGroups: language: default: &ref_448 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_453 @@ -12173,7 +12173,7 @@ operationGroups: language: default: &ref_471 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_477 @@ -12530,7 +12530,7 @@ operationGroups: language: default: &ref_485 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_489 @@ -12752,7 +12752,7 @@ operationGroups: language: default: &ref_495 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_501 @@ -13952,7 +13952,7 @@ operationGroups: language: default: &ref_547 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_554 @@ -14301,7 +14301,7 @@ operationGroups: language: default: &ref_562 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_567 @@ -14541,7 +14541,7 @@ operationGroups: language: default: &ref_573 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_580 @@ -15285,7 +15285,7 @@ operationGroups: language: default: &ref_605 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_611 @@ -15614,7 +15614,7 @@ operationGroups: language: default: &ref_619 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_623 @@ -16284,7 +16284,7 @@ operationGroups: language: default: &ref_646 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_653 @@ -16600,7 +16600,7 @@ operationGroups: language: default: &ref_661 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_666 @@ -16840,7 +16840,7 @@ operationGroups: language: default: &ref_672 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_679 @@ -17599,7 +17599,7 @@ operationGroups: language: default: &ref_705 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_712 @@ -17996,7 +17996,7 @@ operationGroups: language: default: &ref_720 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_725 @@ -18236,7 +18236,7 @@ operationGroups: language: default: &ref_731 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_738 @@ -19062,7 +19062,7 @@ operationGroups: language: default: &ref_768 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_773 @@ -19292,7 +19292,7 @@ operationGroups: language: default: &ref_779 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_784 @@ -19522,7 +19522,7 @@ operationGroups: language: default: &ref_790 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_795 diff --git a/packages/autorest.gotest/test/integrationtest/output/compute/armcompute/__debug/go-tester-pre.yaml b/packages/autorest.gotest/test/integrationtest/output/compute/armcompute/__debug/go-tester-pre.yaml index c9ca14b77..91b1f7e27 100644 --- a/packages/autorest.gotest/test/integrationtest/output/compute/armcompute/__debug/go-tester-pre.yaml +++ b/packages/autorest.gotest/test/integrationtest/output/compute/armcompute/__debug/go-tester-pre.yaml @@ -46905,7 +46905,7 @@ operationGroups: language: default: &ref_1483 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_1489 @@ -47189,7 +47189,7 @@ operationGroups: language: default: &ref_1497 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_1503 @@ -47413,7 +47413,7 @@ operationGroups: language: default: &ref_1511 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_1515 @@ -49833,7 +49833,7 @@ operationGroups: language: default: &ref_1620 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_1626 @@ -50072,7 +50072,7 @@ operationGroups: language: default: &ref_1634 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_1640 @@ -50296,7 +50296,7 @@ operationGroups: language: default: &ref_1648 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_1652 @@ -53346,7 +53346,7 @@ operationGroups: language: default: &ref_1795 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_1801 @@ -53567,7 +53567,7 @@ operationGroups: language: default: &ref_1809 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_1814 @@ -57611,7 +57611,7 @@ operationGroups: language: default: &ref_1822 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_1827 @@ -58012,7 +58012,7 @@ operationGroups: language: default: &ref_1836 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: *ref_1835 @@ -58834,7 +58834,7 @@ operationGroups: language: default: &ref_1862 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_1865 @@ -58994,7 +58994,7 @@ operationGroups: language: default: &ref_1871 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_1874 @@ -59798,7 +59798,7 @@ operationGroups: language: default: &ref_1906 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: *ref_1905 @@ -59972,7 +59972,7 @@ operationGroups: language: default: &ref_1916 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_1919 @@ -60177,7 +60177,7 @@ operationGroups: language: default: &ref_1925 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_1928 @@ -60337,7 +60337,7 @@ operationGroups: language: default: &ref_1934 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_1937 @@ -60497,7 +60497,7 @@ operationGroups: language: default: &ref_1943 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_1946 @@ -60658,7 +60658,7 @@ operationGroups: language: default: &ref_1953 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_1950 @@ -61072,7 +61072,7 @@ operationGroups: language: default: &ref_1973 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_1976 @@ -61371,7 +61371,7 @@ operationGroups: language: default: &ref_1987 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_1991 @@ -61628,7 +61628,7 @@ operationGroups: language: default: &ref_1999 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_2006 @@ -61911,7 +61911,7 @@ operationGroups: language: default: &ref_2014 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_2022 @@ -62459,7 +62459,7 @@ operationGroups: language: default: &ref_2037 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_2042 @@ -66654,7 +66654,7 @@ operationGroups: language: default: &ref_2050 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_2055 @@ -66866,7 +66866,7 @@ operationGroups: language: default: &ref_2063 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: *ref_2062 @@ -67376,7 +67376,7 @@ operationGroups: language: default: &ref_2085 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_2082 @@ -67569,7 +67569,7 @@ operationGroups: language: default: &ref_2095 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: *ref_2094 @@ -68573,7 +68573,7 @@ operationGroups: language: default: &ref_2144 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: *ref_2142 @@ -68758,7 +68758,7 @@ operationGroups: language: default: &ref_2157 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_2154 @@ -68944,7 +68944,7 @@ operationGroups: language: default: &ref_2168 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_2165 @@ -69130,7 +69130,7 @@ operationGroups: language: default: &ref_2179 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_2176 @@ -69316,7 +69316,7 @@ operationGroups: language: default: &ref_2190 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_2187 @@ -69506,7 +69506,7 @@ operationGroups: language: default: &ref_2200 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_2205 @@ -69690,7 +69690,7 @@ operationGroups: language: default: &ref_2212 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_2209 @@ -69878,7 +69878,7 @@ operationGroups: language: default: &ref_2223 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_2220 @@ -70391,7 +70391,7 @@ operationGroups: language: default: &ref_2250 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_2256 @@ -70759,7 +70759,7 @@ operationGroups: language: default: &ref_2268 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_2273 @@ -71529,7 +71529,7 @@ operationGroups: language: default: &ref_2281 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_2286 @@ -71827,7 +71827,7 @@ operationGroups: language: default: &ref_2294 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_2297 @@ -73047,7 +73047,7 @@ operationGroups: language: default: &ref_2342 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_2345 @@ -73971,7 +73971,7 @@ operationGroups: language: default: &ref_2373 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_2379 @@ -74275,7 +74275,7 @@ operationGroups: language: default: &ref_2387 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_2391 @@ -74769,7 +74769,7 @@ operationGroups: language: default: &ref_2405 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_2411 @@ -75008,7 +75008,7 @@ operationGroups: language: default: &ref_2419 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_2425 @@ -75247,7 +75247,7 @@ operationGroups: language: default: &ref_2433 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_2437 @@ -75799,7 +75799,7 @@ operationGroups: language: default: &ref_2461 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_2464 @@ -75959,7 +75959,7 @@ operationGroups: language: default: &ref_2470 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_2473 @@ -76122,7 +76122,7 @@ operationGroups: language: default: &ref_2479 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_2482 @@ -76505,7 +76505,7 @@ operationGroups: language: default: &ref_2495 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_2502 @@ -76849,7 +76849,7 @@ operationGroups: language: default: &ref_2510 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_2517 @@ -77139,7 +77139,7 @@ operationGroups: language: default: &ref_2525 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_2530 @@ -77896,7 +77896,7 @@ operationGroups: language: default: &ref_2559 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_2556 @@ -78099,7 +78099,7 @@ operationGroups: language: default: &ref_2570 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_2574 @@ -78276,7 +78276,7 @@ operationGroups: language: default: &ref_2580 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_2584 @@ -78455,7 +78455,7 @@ operationGroups: language: default: &ref_2590 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_2596 @@ -78699,7 +78699,7 @@ operationGroups: language: default: &ref_2604 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: *ref_2603 @@ -79666,7 +79666,7 @@ operationGroups: language: default: &ref_2645 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: *ref_2644 @@ -79858,7 +79858,7 @@ operationGroups: language: default: &ref_2656 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_2660 @@ -80035,7 +80035,7 @@ operationGroups: language: default: &ref_2666 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_2670 @@ -80212,7 +80212,7 @@ operationGroups: language: default: &ref_2676 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_2680 @@ -80622,7 +80622,7 @@ operationGroups: language: default: &ref_2696 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_2700 @@ -80956,7 +80956,7 @@ operationGroups: language: default: &ref_2712 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_2719 @@ -81207,7 +81207,7 @@ operationGroups: language: default: &ref_2727 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_2732 @@ -81430,7 +81430,7 @@ operationGroups: language: default: &ref_2740 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_2744 @@ -82110,7 +82110,7 @@ operationGroups: language: default: &ref_2768 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_2775 @@ -82437,7 +82437,7 @@ operationGroups: language: default: &ref_2783 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_2790 @@ -82717,7 +82717,7 @@ operationGroups: language: default: &ref_2798 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_2803 @@ -83469,7 +83469,7 @@ operationGroups: language: default: &ref_2831 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_2839 @@ -83808,7 +83808,7 @@ operationGroups: language: default: &ref_2847 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_2855 @@ -84106,7 +84106,7 @@ operationGroups: language: default: &ref_2863 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_2869 @@ -85240,7 +85240,7 @@ operationGroups: language: default: &ref_2910 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_2915 @@ -85949,7 +85949,7 @@ operationGroups: language: default: &ref_2923 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_2929 @@ -86610,7 +86610,7 @@ operationGroups: language: default: &ref_2944 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_2947 @@ -87233,7 +87233,7 @@ operationGroups: language: default: &ref_2965 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_2972 @@ -87455,7 +87455,7 @@ operationGroups: language: default: &ref_2980 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_2983 @@ -87636,7 +87636,7 @@ operationGroups: language: default: &ref_2989 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_2994 @@ -87960,7 +87960,7 @@ operationGroups: language: default: &ref_3002 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_3008 @@ -88395,7 +88395,7 @@ operationGroups: language: default: &ref_3023 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_3026 @@ -88961,7 +88961,7 @@ operationGroups: language: default: &ref_3044 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_3049 @@ -89183,7 +89183,7 @@ operationGroups: language: default: &ref_3057 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_3060 @@ -89366,7 +89366,7 @@ operationGroups: language: default: &ref_3066 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_3071 @@ -89692,7 +89692,7 @@ operationGroups: language: default: &ref_3079 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_3085 @@ -90288,7 +90288,7 @@ operationGroups: language: default: &ref_3100 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_3103 @@ -91140,7 +91140,7 @@ operationGroups: language: default: &ref_3129 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_3134 @@ -91408,7 +91408,7 @@ operationGroups: language: default: &ref_3142 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_3148 @@ -91918,7 +91918,7 @@ operationGroups: language: default: &ref_3163 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_3166 @@ -92750,7 +92750,7 @@ operationGroups: language: default: &ref_3192 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_3198 @@ -93273,7 +93273,7 @@ operationGroups: language: default: &ref_3214 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_3218 @@ -94199,7 +94199,7 @@ operationGroups: language: default: &ref_3251 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_3256 @@ -94540,7 +94540,7 @@ operationGroups: language: default: &ref_3264 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_3269 @@ -95024,7 +95024,7 @@ operationGroups: language: default: &ref_3287 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_3290 @@ -95635,7 +95635,7 @@ operationGroups: language: default: &ref_3308 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_3314 @@ -95965,7 +95965,7 @@ operationGroups: language: default: &ref_3322 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_3328 @@ -96457,7 +96457,7 @@ operationGroups: language: default: &ref_3344 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_3348 @@ -96939,7 +96939,7 @@ operationGroups: language: default: &ref_3362 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_3369 @@ -98209,7 +98209,7 @@ operationGroups: language: default: &ref_3377 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_3384 @@ -98998,7 +98998,7 @@ operationGroups: language: default: &ref_3404 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_3409 @@ -99504,7 +99504,7 @@ operationGroups: language: default: &ref_3424 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_3430 @@ -99831,7 +99831,7 @@ operationGroups: language: default: &ref_3438 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_3444 @@ -100317,7 +100317,7 @@ operationGroups: language: default: &ref_3460 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_3464 @@ -100796,7 +100796,7 @@ operationGroups: language: default: &ref_3478 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_3485 @@ -101187,7 +101187,7 @@ operationGroups: language: default: &ref_3493 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_3500 @@ -101801,7 +101801,7 @@ operationGroups: language: default: &ref_3519 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_3524 @@ -102278,7 +102278,7 @@ operationGroups: language: default: &ref_3539 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_3545 @@ -103978,7 +103978,7 @@ operationGroups: language: default: &ref_3608 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_3612 @@ -104926,7 +104926,7 @@ operationGroups: language: default: &ref_3646 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_3650 @@ -105150,7 +105150,7 @@ operationGroups: language: default: &ref_3656 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_3660 @@ -105374,7 +105374,7 @@ operationGroups: language: default: &ref_3666 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_3670 @@ -106248,7 +106248,7 @@ operationGroups: language: default: &ref_3702 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_3707 @@ -106911,7 +106911,7 @@ operationGroups: language: default: &ref_3715 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_3721 @@ -107183,7 +107183,7 @@ operationGroups: language: default: &ref_3729 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_3732 @@ -108283,7 +108283,7 @@ operationGroups: language: default: &ref_3765 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_3768 @@ -108489,7 +108489,7 @@ operationGroups: language: default: &ref_3774 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_3777 @@ -108695,7 +108695,7 @@ operationGroups: language: default: &ref_3785 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_3782 @@ -108929,7 +108929,7 @@ operationGroups: language: default: &ref_3796 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_3793 @@ -109163,7 +109163,7 @@ operationGroups: language: default: &ref_3807 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_3804 @@ -109401,7 +109401,7 @@ operationGroups: language: default: &ref_3818 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_3815 @@ -109667,7 +109667,7 @@ operationGroups: language: default: &ref_3828 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_3834 diff --git a/packages/autorest.gotest/test/integrationtest/output/compute/armcompute/__debug/go-tester.yaml b/packages/autorest.gotest/test/integrationtest/output/compute/armcompute/__debug/go-tester.yaml index a51647cb4..17db58de6 100644 --- a/packages/autorest.gotest/test/integrationtest/output/compute/armcompute/__debug/go-tester.yaml +++ b/packages/autorest.gotest/test/integrationtest/output/compute/armcompute/__debug/go-tester.yaml @@ -46905,7 +46905,7 @@ operationGroups: language: default: &ref_1483 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_1489 @@ -47189,7 +47189,7 @@ operationGroups: language: default: &ref_1497 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_1503 @@ -47413,7 +47413,7 @@ operationGroups: language: default: &ref_1511 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_1515 @@ -49833,7 +49833,7 @@ operationGroups: language: default: &ref_1620 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_1626 @@ -50072,7 +50072,7 @@ operationGroups: language: default: &ref_1634 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_1640 @@ -50296,7 +50296,7 @@ operationGroups: language: default: &ref_1648 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_1652 @@ -53346,7 +53346,7 @@ operationGroups: language: default: &ref_1795 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_1801 @@ -53567,7 +53567,7 @@ operationGroups: language: default: &ref_1809 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_1814 @@ -57611,7 +57611,7 @@ operationGroups: language: default: &ref_1822 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_1827 @@ -58012,7 +58012,7 @@ operationGroups: language: default: &ref_1836 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: *ref_1835 @@ -58834,7 +58834,7 @@ operationGroups: language: default: &ref_1862 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_1865 @@ -58994,7 +58994,7 @@ operationGroups: language: default: &ref_1871 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_1874 @@ -59798,7 +59798,7 @@ operationGroups: language: default: &ref_1906 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: *ref_1905 @@ -59972,7 +59972,7 @@ operationGroups: language: default: &ref_1916 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_1919 @@ -60177,7 +60177,7 @@ operationGroups: language: default: &ref_1925 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_1928 @@ -60337,7 +60337,7 @@ operationGroups: language: default: &ref_1934 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_1937 @@ -60497,7 +60497,7 @@ operationGroups: language: default: &ref_1943 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_1946 @@ -60658,7 +60658,7 @@ operationGroups: language: default: &ref_1953 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_1950 @@ -61072,7 +61072,7 @@ operationGroups: language: default: &ref_1973 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_1976 @@ -61371,7 +61371,7 @@ operationGroups: language: default: &ref_1987 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_1991 @@ -61628,7 +61628,7 @@ operationGroups: language: default: &ref_1999 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_2006 @@ -61911,7 +61911,7 @@ operationGroups: language: default: &ref_2014 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_2022 @@ -62459,7 +62459,7 @@ operationGroups: language: default: &ref_2037 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_2042 @@ -66654,7 +66654,7 @@ operationGroups: language: default: &ref_2050 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_2055 @@ -66866,7 +66866,7 @@ operationGroups: language: default: &ref_2063 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: *ref_2062 @@ -67376,7 +67376,7 @@ operationGroups: language: default: &ref_2085 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_2082 @@ -67569,7 +67569,7 @@ operationGroups: language: default: &ref_2095 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: *ref_2094 @@ -68573,7 +68573,7 @@ operationGroups: language: default: &ref_2144 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: *ref_2142 @@ -68758,7 +68758,7 @@ operationGroups: language: default: &ref_2157 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_2154 @@ -68944,7 +68944,7 @@ operationGroups: language: default: &ref_2168 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_2165 @@ -69130,7 +69130,7 @@ operationGroups: language: default: &ref_2179 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_2176 @@ -69316,7 +69316,7 @@ operationGroups: language: default: &ref_2190 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_2187 @@ -69506,7 +69506,7 @@ operationGroups: language: default: &ref_2200 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_2205 @@ -69690,7 +69690,7 @@ operationGroups: language: default: &ref_2212 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_2209 @@ -69878,7 +69878,7 @@ operationGroups: language: default: &ref_2223 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_2220 @@ -70391,7 +70391,7 @@ operationGroups: language: default: &ref_2250 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_2256 @@ -70759,7 +70759,7 @@ operationGroups: language: default: &ref_2268 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_2273 @@ -71529,7 +71529,7 @@ operationGroups: language: default: &ref_2281 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_2286 @@ -71827,7 +71827,7 @@ operationGroups: language: default: &ref_2294 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_2297 @@ -73047,7 +73047,7 @@ operationGroups: language: default: &ref_2342 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_2345 @@ -73971,7 +73971,7 @@ operationGroups: language: default: &ref_2373 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_2379 @@ -74275,7 +74275,7 @@ operationGroups: language: default: &ref_2387 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_2391 @@ -74769,7 +74769,7 @@ operationGroups: language: default: &ref_2405 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_2411 @@ -75008,7 +75008,7 @@ operationGroups: language: default: &ref_2419 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_2425 @@ -75247,7 +75247,7 @@ operationGroups: language: default: &ref_2433 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_2437 @@ -75799,7 +75799,7 @@ operationGroups: language: default: &ref_2461 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_2464 @@ -75959,7 +75959,7 @@ operationGroups: language: default: &ref_2470 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_2473 @@ -76122,7 +76122,7 @@ operationGroups: language: default: &ref_2479 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_2482 @@ -76505,7 +76505,7 @@ operationGroups: language: default: &ref_2495 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_2502 @@ -76849,7 +76849,7 @@ operationGroups: language: default: &ref_2510 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_2517 @@ -77139,7 +77139,7 @@ operationGroups: language: default: &ref_2525 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_2530 @@ -77896,7 +77896,7 @@ operationGroups: language: default: &ref_2559 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_2556 @@ -78099,7 +78099,7 @@ operationGroups: language: default: &ref_2570 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_2574 @@ -78276,7 +78276,7 @@ operationGroups: language: default: &ref_2580 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_2584 @@ -78455,7 +78455,7 @@ operationGroups: language: default: &ref_2590 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_2596 @@ -78699,7 +78699,7 @@ operationGroups: language: default: &ref_2604 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: *ref_2603 @@ -79666,7 +79666,7 @@ operationGroups: language: default: &ref_2645 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: *ref_2644 @@ -79858,7 +79858,7 @@ operationGroups: language: default: &ref_2656 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_2660 @@ -80035,7 +80035,7 @@ operationGroups: language: default: &ref_2666 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_2670 @@ -80212,7 +80212,7 @@ operationGroups: language: default: &ref_2676 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_2680 @@ -80622,7 +80622,7 @@ operationGroups: language: default: &ref_2696 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_2700 @@ -80956,7 +80956,7 @@ operationGroups: language: default: &ref_2712 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_2719 @@ -81207,7 +81207,7 @@ operationGroups: language: default: &ref_2727 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_2732 @@ -81430,7 +81430,7 @@ operationGroups: language: default: &ref_2740 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_2744 @@ -82110,7 +82110,7 @@ operationGroups: language: default: &ref_2768 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_2775 @@ -82437,7 +82437,7 @@ operationGroups: language: default: &ref_2783 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_2790 @@ -82717,7 +82717,7 @@ operationGroups: language: default: &ref_2798 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_2803 @@ -83469,7 +83469,7 @@ operationGroups: language: default: &ref_2831 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_2839 @@ -83808,7 +83808,7 @@ operationGroups: language: default: &ref_2847 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_2855 @@ -84106,7 +84106,7 @@ operationGroups: language: default: &ref_2863 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_2869 @@ -85240,7 +85240,7 @@ operationGroups: language: default: &ref_2910 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_2915 @@ -85949,7 +85949,7 @@ operationGroups: language: default: &ref_2923 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_2929 @@ -86610,7 +86610,7 @@ operationGroups: language: default: &ref_2944 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_2947 @@ -87233,7 +87233,7 @@ operationGroups: language: default: &ref_2965 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_2972 @@ -87455,7 +87455,7 @@ operationGroups: language: default: &ref_2980 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_2983 @@ -87636,7 +87636,7 @@ operationGroups: language: default: &ref_2989 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_2994 @@ -87960,7 +87960,7 @@ operationGroups: language: default: &ref_3002 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_3008 @@ -88395,7 +88395,7 @@ operationGroups: language: default: &ref_3023 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_3026 @@ -88961,7 +88961,7 @@ operationGroups: language: default: &ref_3044 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_3049 @@ -89183,7 +89183,7 @@ operationGroups: language: default: &ref_3057 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_3060 @@ -89366,7 +89366,7 @@ operationGroups: language: default: &ref_3066 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_3071 @@ -89692,7 +89692,7 @@ operationGroups: language: default: &ref_3079 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_3085 @@ -90288,7 +90288,7 @@ operationGroups: language: default: &ref_3100 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_3103 @@ -91140,7 +91140,7 @@ operationGroups: language: default: &ref_3129 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_3134 @@ -91408,7 +91408,7 @@ operationGroups: language: default: &ref_3142 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_3148 @@ -91918,7 +91918,7 @@ operationGroups: language: default: &ref_3163 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_3166 @@ -92750,7 +92750,7 @@ operationGroups: language: default: &ref_3192 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_3198 @@ -93273,7 +93273,7 @@ operationGroups: language: default: &ref_3214 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_3218 @@ -94199,7 +94199,7 @@ operationGroups: language: default: &ref_3251 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_3256 @@ -94540,7 +94540,7 @@ operationGroups: language: default: &ref_3264 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_3269 @@ -95024,7 +95024,7 @@ operationGroups: language: default: &ref_3287 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_3290 @@ -95635,7 +95635,7 @@ operationGroups: language: default: &ref_3308 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_3314 @@ -95965,7 +95965,7 @@ operationGroups: language: default: &ref_3322 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_3328 @@ -96457,7 +96457,7 @@ operationGroups: language: default: &ref_3344 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_3348 @@ -96939,7 +96939,7 @@ operationGroups: language: default: &ref_3362 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_3369 @@ -98209,7 +98209,7 @@ operationGroups: language: default: &ref_3377 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_3384 @@ -98998,7 +98998,7 @@ operationGroups: language: default: &ref_3404 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_3409 @@ -99504,7 +99504,7 @@ operationGroups: language: default: &ref_3424 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_3430 @@ -99831,7 +99831,7 @@ operationGroups: language: default: &ref_3438 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_3444 @@ -100317,7 +100317,7 @@ operationGroups: language: default: &ref_3460 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_3464 @@ -100796,7 +100796,7 @@ operationGroups: language: default: &ref_3478 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_3485 @@ -101187,7 +101187,7 @@ operationGroups: language: default: &ref_3493 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_3500 @@ -101801,7 +101801,7 @@ operationGroups: language: default: &ref_3519 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_3524 @@ -102278,7 +102278,7 @@ operationGroups: language: default: &ref_3539 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_3545 @@ -103978,7 +103978,7 @@ operationGroups: language: default: &ref_3608 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_3612 @@ -104926,7 +104926,7 @@ operationGroups: language: default: &ref_3646 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_3650 @@ -105150,7 +105150,7 @@ operationGroups: language: default: &ref_3656 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_3660 @@ -105374,7 +105374,7 @@ operationGroups: language: default: &ref_3666 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_3670 @@ -106248,7 +106248,7 @@ operationGroups: language: default: &ref_3702 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_3707 @@ -106911,7 +106911,7 @@ operationGroups: language: default: &ref_3715 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_3721 @@ -107183,7 +107183,7 @@ operationGroups: language: default: &ref_3729 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_3732 @@ -108283,7 +108283,7 @@ operationGroups: language: default: &ref_3765 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_3768 @@ -108489,7 +108489,7 @@ operationGroups: language: default: &ref_3774 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_3777 @@ -108695,7 +108695,7 @@ operationGroups: language: default: &ref_3785 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_3782 @@ -108929,7 +108929,7 @@ operationGroups: language: default: &ref_3796 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_3793 @@ -109163,7 +109163,7 @@ operationGroups: language: default: &ref_3807 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_3804 @@ -109401,7 +109401,7 @@ operationGroups: language: default: &ref_3818 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_3815 @@ -109667,7 +109667,7 @@ operationGroups: language: default: &ref_3828 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_3834 diff --git a/packages/autorest.gotest/test/integrationtest/output/compute/armcompute/__debug/test-modeler-pre.yaml b/packages/autorest.gotest/test/integrationtest/output/compute/armcompute/__debug/test-modeler-pre.yaml index f16e713ea..2102ef32f 100644 --- a/packages/autorest.gotest/test/integrationtest/output/compute/armcompute/__debug/test-modeler-pre.yaml +++ b/packages/autorest.gotest/test/integrationtest/output/compute/armcompute/__debug/test-modeler-pre.yaml @@ -46868,7 +46868,7 @@ operationGroups: language: default: &ref_1483 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_1489 @@ -47151,7 +47151,7 @@ operationGroups: language: default: &ref_1497 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_1503 @@ -47374,7 +47374,7 @@ operationGroups: language: default: &ref_1511 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_1515 @@ -49774,7 +49774,7 @@ operationGroups: language: default: &ref_1620 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_1626 @@ -50012,7 +50012,7 @@ operationGroups: language: default: &ref_1634 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_1640 @@ -50235,7 +50235,7 @@ operationGroups: language: default: &ref_1648 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_1652 @@ -53265,7 +53265,7 @@ operationGroups: language: default: &ref_1795 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_1801 @@ -53484,7 +53484,7 @@ operationGroups: language: default: &ref_1809 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_1814 @@ -57526,7 +57526,7 @@ operationGroups: language: default: &ref_1822 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_1827 @@ -57926,7 +57926,7 @@ operationGroups: language: default: &ref_1836 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: *ref_1835 @@ -58742,7 +58742,7 @@ operationGroups: language: default: &ref_1862 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_1865 @@ -58901,7 +58901,7 @@ operationGroups: language: default: &ref_1871 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_1874 @@ -59698,7 +59698,7 @@ operationGroups: language: default: &ref_1906 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: *ref_1905 @@ -59870,7 +59870,7 @@ operationGroups: language: default: &ref_1916 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_1919 @@ -60074,7 +60074,7 @@ operationGroups: language: default: &ref_1925 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_1928 @@ -60233,7 +60233,7 @@ operationGroups: language: default: &ref_1934 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_1937 @@ -60392,7 +60392,7 @@ operationGroups: language: default: &ref_1943 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_1946 @@ -60551,7 +60551,7 @@ operationGroups: language: default: &ref_1953 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_1950 @@ -60962,7 +60962,7 @@ operationGroups: language: default: &ref_1973 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_1976 @@ -61257,7 +61257,7 @@ operationGroups: language: default: &ref_1987 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_1991 @@ -61512,7 +61512,7 @@ operationGroups: language: default: &ref_1999 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_2006 @@ -61793,7 +61793,7 @@ operationGroups: language: default: &ref_2014 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_2022 @@ -62336,7 +62336,7 @@ operationGroups: language: default: &ref_2037 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_2042 @@ -66530,7 +66530,7 @@ operationGroups: language: default: &ref_2050 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_2055 @@ -66741,7 +66741,7 @@ operationGroups: language: default: &ref_2063 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: *ref_2062 @@ -67247,7 +67247,7 @@ operationGroups: language: default: &ref_2085 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_2082 @@ -67439,7 +67439,7 @@ operationGroups: language: default: &ref_2095 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: *ref_2094 @@ -68437,7 +68437,7 @@ operationGroups: language: default: &ref_2144 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: *ref_2142 @@ -68621,7 +68621,7 @@ operationGroups: language: default: &ref_2157 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_2154 @@ -68806,7 +68806,7 @@ operationGroups: language: default: &ref_2168 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_2165 @@ -68991,7 +68991,7 @@ operationGroups: language: default: &ref_2179 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_2176 @@ -69176,7 +69176,7 @@ operationGroups: language: default: &ref_2190 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_2187 @@ -69365,7 +69365,7 @@ operationGroups: language: default: &ref_2200 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_2205 @@ -69548,7 +69548,7 @@ operationGroups: language: default: &ref_2212 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_2209 @@ -69735,7 +69735,7 @@ operationGroups: language: default: &ref_2223 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_2220 @@ -70245,7 +70245,7 @@ operationGroups: language: default: &ref_2250 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_2256 @@ -70608,7 +70608,7 @@ operationGroups: language: default: &ref_2268 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_2273 @@ -71376,7 +71376,7 @@ operationGroups: language: default: &ref_2281 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_2286 @@ -71673,7 +71673,7 @@ operationGroups: language: default: &ref_2294 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_2297 @@ -72882,7 +72882,7 @@ operationGroups: language: default: &ref_2342 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_2345 @@ -73797,7 +73797,7 @@ operationGroups: language: default: &ref_2373 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_2379 @@ -74100,7 +74100,7 @@ operationGroups: language: default: &ref_2387 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_2391 @@ -74590,7 +74590,7 @@ operationGroups: language: default: &ref_2405 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_2411 @@ -74828,7 +74828,7 @@ operationGroups: language: default: &ref_2419 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_2425 @@ -75066,7 +75066,7 @@ operationGroups: language: default: &ref_2433 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_2437 @@ -75614,7 +75614,7 @@ operationGroups: language: default: &ref_2461 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_2464 @@ -75773,7 +75773,7 @@ operationGroups: language: default: &ref_2470 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_2473 @@ -75934,7 +75934,7 @@ operationGroups: language: default: &ref_2479 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_2482 @@ -76313,7 +76313,7 @@ operationGroups: language: default: &ref_2495 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_2502 @@ -76655,7 +76655,7 @@ operationGroups: language: default: &ref_2510 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_2517 @@ -76943,7 +76943,7 @@ operationGroups: language: default: &ref_2525 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_2530 @@ -77694,7 +77694,7 @@ operationGroups: language: default: &ref_2559 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_2556 @@ -77896,7 +77896,7 @@ operationGroups: language: default: &ref_2570 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_2574 @@ -78072,7 +78072,7 @@ operationGroups: language: default: &ref_2580 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_2584 @@ -78250,7 +78250,7 @@ operationGroups: language: default: &ref_2590 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_2596 @@ -78493,7 +78493,7 @@ operationGroups: language: default: &ref_2604 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: *ref_2603 @@ -79453,7 +79453,7 @@ operationGroups: language: default: &ref_2645 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: *ref_2644 @@ -79644,7 +79644,7 @@ operationGroups: language: default: &ref_2656 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_2660 @@ -79820,7 +79820,7 @@ operationGroups: language: default: &ref_2666 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_2670 @@ -79996,7 +79996,7 @@ operationGroups: language: default: &ref_2676 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_2680 @@ -80403,7 +80403,7 @@ operationGroups: language: default: &ref_2696 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_2700 @@ -80733,7 +80733,7 @@ operationGroups: language: default: &ref_2712 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_2719 @@ -80981,7 +80981,7 @@ operationGroups: language: default: &ref_2727 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_2732 @@ -81202,7 +81202,7 @@ operationGroups: language: default: &ref_2740 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_2744 @@ -81875,7 +81875,7 @@ operationGroups: language: default: &ref_2768 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_2775 @@ -82200,7 +82200,7 @@ operationGroups: language: default: &ref_2783 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_2790 @@ -82478,7 +82478,7 @@ operationGroups: language: default: &ref_2798 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_2803 @@ -83223,7 +83223,7 @@ operationGroups: language: default: &ref_2831 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_2839 @@ -83560,7 +83560,7 @@ operationGroups: language: default: &ref_2847 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_2855 @@ -83856,7 +83856,7 @@ operationGroups: language: default: &ref_2863 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_2869 @@ -84980,7 +84980,7 @@ operationGroups: language: default: &ref_2910 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_2915 @@ -85687,7 +85687,7 @@ operationGroups: language: default: &ref_2923 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_2929 @@ -86345,7 +86345,7 @@ operationGroups: language: default: &ref_2944 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_2947 @@ -86963,7 +86963,7 @@ operationGroups: language: default: &ref_2965 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_2972 @@ -87184,7 +87184,7 @@ operationGroups: language: default: &ref_2980 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_2983 @@ -87362,7 +87362,7 @@ operationGroups: language: default: &ref_2989 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_2994 @@ -87685,7 +87685,7 @@ operationGroups: language: default: &ref_3002 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_3008 @@ -88117,7 +88117,7 @@ operationGroups: language: default: &ref_3023 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_3026 @@ -88678,7 +88678,7 @@ operationGroups: language: default: &ref_3044 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_3049 @@ -88899,7 +88899,7 @@ operationGroups: language: default: &ref_3057 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_3060 @@ -89079,7 +89079,7 @@ operationGroups: language: default: &ref_3066 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_3071 @@ -89403,7 +89403,7 @@ operationGroups: language: default: &ref_3079 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_3085 @@ -89995,7 +89995,7 @@ operationGroups: language: default: &ref_3100 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_3103 @@ -90838,7 +90838,7 @@ operationGroups: language: default: &ref_3129 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_3134 @@ -91104,7 +91104,7 @@ operationGroups: language: default: &ref_3142 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_3148 @@ -91610,7 +91610,7 @@ operationGroups: language: default: &ref_3163 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_3166 @@ -92434,7 +92434,7 @@ operationGroups: language: default: &ref_3192 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_3198 @@ -92953,7 +92953,7 @@ operationGroups: language: default: &ref_3214 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_3218 @@ -93869,7 +93869,7 @@ operationGroups: language: default: &ref_3251 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_3256 @@ -94208,7 +94208,7 @@ operationGroups: language: default: &ref_3264 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_3269 @@ -94688,7 +94688,7 @@ operationGroups: language: default: &ref_3287 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_3290 @@ -95292,7 +95292,7 @@ operationGroups: language: default: &ref_3308 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_3314 @@ -95620,7 +95620,7 @@ operationGroups: language: default: &ref_3322 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_3328 @@ -96108,7 +96108,7 @@ operationGroups: language: default: &ref_3344 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_3348 @@ -96585,7 +96585,7 @@ operationGroups: language: default: &ref_3362 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_3369 @@ -97853,7 +97853,7 @@ operationGroups: language: default: &ref_3377 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_3384 @@ -98638,7 +98638,7 @@ operationGroups: language: default: &ref_3404 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_3409 @@ -99139,7 +99139,7 @@ operationGroups: language: default: &ref_3424 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_3430 @@ -99464,7 +99464,7 @@ operationGroups: language: default: &ref_3438 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_3444 @@ -99946,7 +99946,7 @@ operationGroups: language: default: &ref_3460 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_3464 @@ -100420,7 +100420,7 @@ operationGroups: language: default: &ref_3478 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_3485 @@ -100809,7 +100809,7 @@ operationGroups: language: default: &ref_3493 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_3500 @@ -101419,7 +101419,7 @@ operationGroups: language: default: &ref_3519 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_3524 @@ -101891,7 +101891,7 @@ operationGroups: language: default: &ref_3539 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_3545 @@ -103573,7 +103573,7 @@ operationGroups: language: default: &ref_3608 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_3612 @@ -104513,7 +104513,7 @@ operationGroups: language: default: &ref_3646 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_3650 @@ -104735,7 +104735,7 @@ operationGroups: language: default: &ref_3656 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_3660 @@ -104957,7 +104957,7 @@ operationGroups: language: default: &ref_3666 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_3670 @@ -105822,7 +105822,7 @@ operationGroups: language: default: &ref_3702 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_3707 @@ -106483,7 +106483,7 @@ operationGroups: language: default: &ref_3715 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_3721 @@ -106753,7 +106753,7 @@ operationGroups: language: default: &ref_3729 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_3732 @@ -107843,7 +107843,7 @@ operationGroups: language: default: &ref_3765 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_3768 @@ -108047,7 +108047,7 @@ operationGroups: language: default: &ref_3774 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_3777 @@ -108251,7 +108251,7 @@ operationGroups: language: default: &ref_3785 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_3782 @@ -108483,7 +108483,7 @@ operationGroups: language: default: &ref_3796 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_3793 @@ -108715,7 +108715,7 @@ operationGroups: language: default: &ref_3807 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_3804 @@ -108951,7 +108951,7 @@ operationGroups: language: default: &ref_3818 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_3815 @@ -109214,7 +109214,7 @@ operationGroups: language: default: &ref_3828 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_3834 diff --git a/packages/autorest.gotest/test/integrationtest/output/compute/armcompute/__debug/test-modeler.yaml b/packages/autorest.gotest/test/integrationtest/output/compute/armcompute/__debug/test-modeler.yaml index ddd88e4b5..abe9b92be 100644 --- a/packages/autorest.gotest/test/integrationtest/output/compute/armcompute/__debug/test-modeler.yaml +++ b/packages/autorest.gotest/test/integrationtest/output/compute/armcompute/__debug/test-modeler.yaml @@ -46905,7 +46905,7 @@ operationGroups: language: default: &ref_1483 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_1489 @@ -47189,7 +47189,7 @@ operationGroups: language: default: &ref_1497 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_1503 @@ -47413,7 +47413,7 @@ operationGroups: language: default: &ref_1511 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_1515 @@ -49833,7 +49833,7 @@ operationGroups: language: default: &ref_1620 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_1626 @@ -50072,7 +50072,7 @@ operationGroups: language: default: &ref_1634 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_1640 @@ -50296,7 +50296,7 @@ operationGroups: language: default: &ref_1648 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_1652 @@ -53346,7 +53346,7 @@ operationGroups: language: default: &ref_1795 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_1801 @@ -53567,7 +53567,7 @@ operationGroups: language: default: &ref_1809 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_1814 @@ -57611,7 +57611,7 @@ operationGroups: language: default: &ref_1822 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_1827 @@ -58012,7 +58012,7 @@ operationGroups: language: default: &ref_1836 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: *ref_1835 @@ -58834,7 +58834,7 @@ operationGroups: language: default: &ref_1862 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_1865 @@ -58994,7 +58994,7 @@ operationGroups: language: default: &ref_1871 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_1874 @@ -59798,7 +59798,7 @@ operationGroups: language: default: &ref_1906 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: *ref_1905 @@ -59972,7 +59972,7 @@ operationGroups: language: default: &ref_1916 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_1919 @@ -60177,7 +60177,7 @@ operationGroups: language: default: &ref_1925 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_1928 @@ -60337,7 +60337,7 @@ operationGroups: language: default: &ref_1934 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_1937 @@ -60497,7 +60497,7 @@ operationGroups: language: default: &ref_1943 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_1946 @@ -60658,7 +60658,7 @@ operationGroups: language: default: &ref_1953 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_1950 @@ -61072,7 +61072,7 @@ operationGroups: language: default: &ref_1973 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_1976 @@ -61371,7 +61371,7 @@ operationGroups: language: default: &ref_1987 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_1991 @@ -61628,7 +61628,7 @@ operationGroups: language: default: &ref_1999 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_2006 @@ -61911,7 +61911,7 @@ operationGroups: language: default: &ref_2014 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_2022 @@ -62459,7 +62459,7 @@ operationGroups: language: default: &ref_2037 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_2042 @@ -66654,7 +66654,7 @@ operationGroups: language: default: &ref_2050 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_2055 @@ -66866,7 +66866,7 @@ operationGroups: language: default: &ref_2063 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: *ref_2062 @@ -67376,7 +67376,7 @@ operationGroups: language: default: &ref_2085 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_2082 @@ -67569,7 +67569,7 @@ operationGroups: language: default: &ref_2095 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: *ref_2094 @@ -68573,7 +68573,7 @@ operationGroups: language: default: &ref_2144 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: *ref_2142 @@ -68758,7 +68758,7 @@ operationGroups: language: default: &ref_2157 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_2154 @@ -68944,7 +68944,7 @@ operationGroups: language: default: &ref_2168 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_2165 @@ -69130,7 +69130,7 @@ operationGroups: language: default: &ref_2179 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_2176 @@ -69316,7 +69316,7 @@ operationGroups: language: default: &ref_2190 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_2187 @@ -69506,7 +69506,7 @@ operationGroups: language: default: &ref_2200 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_2205 @@ -69690,7 +69690,7 @@ operationGroups: language: default: &ref_2212 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_2209 @@ -69878,7 +69878,7 @@ operationGroups: language: default: &ref_2223 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_2220 @@ -70391,7 +70391,7 @@ operationGroups: language: default: &ref_2250 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_2256 @@ -70759,7 +70759,7 @@ operationGroups: language: default: &ref_2268 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_2273 @@ -71529,7 +71529,7 @@ operationGroups: language: default: &ref_2281 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_2286 @@ -71827,7 +71827,7 @@ operationGroups: language: default: &ref_2294 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_2297 @@ -73047,7 +73047,7 @@ operationGroups: language: default: &ref_2342 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_2345 @@ -73971,7 +73971,7 @@ operationGroups: language: default: &ref_2373 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_2379 @@ -74275,7 +74275,7 @@ operationGroups: language: default: &ref_2387 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_2391 @@ -74769,7 +74769,7 @@ operationGroups: language: default: &ref_2405 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_2411 @@ -75008,7 +75008,7 @@ operationGroups: language: default: &ref_2419 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_2425 @@ -75247,7 +75247,7 @@ operationGroups: language: default: &ref_2433 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_2437 @@ -75799,7 +75799,7 @@ operationGroups: language: default: &ref_2461 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_2464 @@ -75959,7 +75959,7 @@ operationGroups: language: default: &ref_2470 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_2473 @@ -76122,7 +76122,7 @@ operationGroups: language: default: &ref_2479 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_2482 @@ -76505,7 +76505,7 @@ operationGroups: language: default: &ref_2495 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_2502 @@ -76849,7 +76849,7 @@ operationGroups: language: default: &ref_2510 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_2517 @@ -77139,7 +77139,7 @@ operationGroups: language: default: &ref_2525 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_2530 @@ -77896,7 +77896,7 @@ operationGroups: language: default: &ref_2559 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_2556 @@ -78099,7 +78099,7 @@ operationGroups: language: default: &ref_2570 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_2574 @@ -78276,7 +78276,7 @@ operationGroups: language: default: &ref_2580 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_2584 @@ -78455,7 +78455,7 @@ operationGroups: language: default: &ref_2590 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_2596 @@ -78699,7 +78699,7 @@ operationGroups: language: default: &ref_2604 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: *ref_2603 @@ -79666,7 +79666,7 @@ operationGroups: language: default: &ref_2645 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: *ref_2644 @@ -79858,7 +79858,7 @@ operationGroups: language: default: &ref_2656 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_2660 @@ -80035,7 +80035,7 @@ operationGroups: language: default: &ref_2666 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_2670 @@ -80212,7 +80212,7 @@ operationGroups: language: default: &ref_2676 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_2680 @@ -80622,7 +80622,7 @@ operationGroups: language: default: &ref_2696 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_2700 @@ -80956,7 +80956,7 @@ operationGroups: language: default: &ref_2712 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_2719 @@ -81207,7 +81207,7 @@ operationGroups: language: default: &ref_2727 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_2732 @@ -81430,7 +81430,7 @@ operationGroups: language: default: &ref_2740 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_2744 @@ -82110,7 +82110,7 @@ operationGroups: language: default: &ref_2768 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_2775 @@ -82437,7 +82437,7 @@ operationGroups: language: default: &ref_2783 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_2790 @@ -82717,7 +82717,7 @@ operationGroups: language: default: &ref_2798 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_2803 @@ -83469,7 +83469,7 @@ operationGroups: language: default: &ref_2831 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_2839 @@ -83808,7 +83808,7 @@ operationGroups: language: default: &ref_2847 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_2855 @@ -84106,7 +84106,7 @@ operationGroups: language: default: &ref_2863 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_2869 @@ -85240,7 +85240,7 @@ operationGroups: language: default: &ref_2910 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_2915 @@ -85949,7 +85949,7 @@ operationGroups: language: default: &ref_2923 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_2929 @@ -86610,7 +86610,7 @@ operationGroups: language: default: &ref_2944 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_2947 @@ -87233,7 +87233,7 @@ operationGroups: language: default: &ref_2965 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_2972 @@ -87455,7 +87455,7 @@ operationGroups: language: default: &ref_2980 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_2983 @@ -87636,7 +87636,7 @@ operationGroups: language: default: &ref_2989 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_2994 @@ -87960,7 +87960,7 @@ operationGroups: language: default: &ref_3002 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_3008 @@ -88395,7 +88395,7 @@ operationGroups: language: default: &ref_3023 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_3026 @@ -88961,7 +88961,7 @@ operationGroups: language: default: &ref_3044 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_3049 @@ -89183,7 +89183,7 @@ operationGroups: language: default: &ref_3057 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_3060 @@ -89366,7 +89366,7 @@ operationGroups: language: default: &ref_3066 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_3071 @@ -89692,7 +89692,7 @@ operationGroups: language: default: &ref_3079 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_3085 @@ -90288,7 +90288,7 @@ operationGroups: language: default: &ref_3100 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_3103 @@ -91140,7 +91140,7 @@ operationGroups: language: default: &ref_3129 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_3134 @@ -91408,7 +91408,7 @@ operationGroups: language: default: &ref_3142 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_3148 @@ -91918,7 +91918,7 @@ operationGroups: language: default: &ref_3163 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_3166 @@ -92750,7 +92750,7 @@ operationGroups: language: default: &ref_3192 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_3198 @@ -93273,7 +93273,7 @@ operationGroups: language: default: &ref_3214 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_3218 @@ -94199,7 +94199,7 @@ operationGroups: language: default: &ref_3251 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_3256 @@ -94540,7 +94540,7 @@ operationGroups: language: default: &ref_3264 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_3269 @@ -95024,7 +95024,7 @@ operationGroups: language: default: &ref_3287 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_3290 @@ -95635,7 +95635,7 @@ operationGroups: language: default: &ref_3308 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_3314 @@ -95965,7 +95965,7 @@ operationGroups: language: default: &ref_3322 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_3328 @@ -96457,7 +96457,7 @@ operationGroups: language: default: &ref_3344 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_3348 @@ -96939,7 +96939,7 @@ operationGroups: language: default: &ref_3362 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_3369 @@ -98209,7 +98209,7 @@ operationGroups: language: default: &ref_3377 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_3384 @@ -98998,7 +98998,7 @@ operationGroups: language: default: &ref_3404 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_3409 @@ -99504,7 +99504,7 @@ operationGroups: language: default: &ref_3424 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_3430 @@ -99831,7 +99831,7 @@ operationGroups: language: default: &ref_3438 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_3444 @@ -100317,7 +100317,7 @@ operationGroups: language: default: &ref_3460 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_3464 @@ -100796,7 +100796,7 @@ operationGroups: language: default: &ref_3478 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_3485 @@ -101187,7 +101187,7 @@ operationGroups: language: default: &ref_3493 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_3500 @@ -101801,7 +101801,7 @@ operationGroups: language: default: &ref_3519 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_3524 @@ -102278,7 +102278,7 @@ operationGroups: language: default: &ref_3539 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_3545 @@ -103978,7 +103978,7 @@ operationGroups: language: default: &ref_3608 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_3612 @@ -104926,7 +104926,7 @@ operationGroups: language: default: &ref_3646 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_3650 @@ -105150,7 +105150,7 @@ operationGroups: language: default: &ref_3656 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_3660 @@ -105374,7 +105374,7 @@ operationGroups: language: default: &ref_3666 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_3670 @@ -106248,7 +106248,7 @@ operationGroups: language: default: &ref_3702 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_3707 @@ -106911,7 +106911,7 @@ operationGroups: language: default: &ref_3715 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_3721 @@ -107183,7 +107183,7 @@ operationGroups: language: default: &ref_3729 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_3732 @@ -108283,7 +108283,7 @@ operationGroups: language: default: &ref_3765 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_3768 @@ -108489,7 +108489,7 @@ operationGroups: language: default: &ref_3774 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_3777 @@ -108695,7 +108695,7 @@ operationGroups: language: default: &ref_3785 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_3782 @@ -108929,7 +108929,7 @@ operationGroups: language: default: &ref_3796 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_3793 @@ -109163,7 +109163,7 @@ operationGroups: language: default: &ref_3807 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_3804 @@ -109401,7 +109401,7 @@ operationGroups: language: default: &ref_3818 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_3815 @@ -109667,7 +109667,7 @@ operationGroups: language: default: &ref_3828 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_3834 diff --git a/packages/autorest.gotest/test/integrationtest/output/machinelearningservices/armmachinelearningservices/__debug/go-tester-pre.yaml b/packages/autorest.gotest/test/integrationtest/output/machinelearningservices/armmachinelearningservices/__debug/go-tester-pre.yaml index 04d1e0a0e..7c7a95eb8 100644 --- a/packages/autorest.gotest/test/integrationtest/output/machinelearningservices/armmachinelearningservices/__debug/go-tester-pre.yaml +++ b/packages/autorest.gotest/test/integrationtest/output/machinelearningservices/armmachinelearningservices/__debug/go-tester-pre.yaml @@ -39049,7 +39049,7 @@ operationGroups: language: default: &ref_1304 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_1309 @@ -39347,7 +39347,7 @@ operationGroups: language: default: &ref_1317 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_1320 @@ -39549,7 +39549,7 @@ operationGroups: language: default: &ref_1326 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_1332 @@ -40008,7 +40008,7 @@ operationGroups: language: default: &ref_1351 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_1348 @@ -40476,7 +40476,7 @@ operationGroups: language: default: &ref_1373 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_1376 @@ -41034,7 +41034,7 @@ operationGroups: language: default: &ref_1397 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_1400 @@ -43941,7 +43941,7 @@ operationGroups: language: default: &ref_1481 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_1487 @@ -44592,7 +44592,7 @@ operationGroups: language: default: &ref_1495 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_1502 @@ -44862,7 +44862,7 @@ operationGroups: language: default: &ref_1511 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_1518 @@ -45528,7 +45528,7 @@ operationGroups: language: default: &ref_1544 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_1548 @@ -45724,7 +45724,7 @@ operationGroups: language: default: &ref_1554 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_1558 @@ -45920,7 +45920,7 @@ operationGroups: language: default: &ref_1564 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_1568 @@ -48300,7 +48300,7 @@ operationGroups: language: default: &ref_1660 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_1666 @@ -48781,7 +48781,7 @@ operationGroups: language: default: &ref_1681 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_1690 @@ -49115,7 +49115,7 @@ operationGroups: language: default: &ref_1698 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_1706 @@ -50031,7 +50031,7 @@ operationGroups: language: default: &ref_1735 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_1742 @@ -50569,7 +50569,7 @@ operationGroups: language: default: &ref_1757 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_1767 @@ -50961,7 +50961,7 @@ operationGroups: language: default: &ref_1775 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_1784 @@ -61519,7 +61519,7 @@ operationGroups: language: default: &ref_2168 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_2174 @@ -65836,7 +65836,7 @@ operationGroups: language: default: &ref_2304 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_2310 @@ -66319,7 +66319,7 @@ operationGroups: language: default: &ref_2324 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_2333 @@ -66654,7 +66654,7 @@ operationGroups: language: default: &ref_2341 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_2349 @@ -67226,7 +67226,7 @@ operationGroups: language: default: &ref_2366 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_2374 @@ -68037,7 +68037,7 @@ operationGroups: language: default: &ref_2403 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_2410 @@ -68656,7 +68656,7 @@ operationGroups: language: default: &ref_2425 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_2435 @@ -69125,7 +69125,7 @@ operationGroups: language: default: &ref_2443 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_2452 diff --git a/packages/autorest.gotest/test/integrationtest/output/machinelearningservices/armmachinelearningservices/__debug/go-tester.yaml b/packages/autorest.gotest/test/integrationtest/output/machinelearningservices/armmachinelearningservices/__debug/go-tester.yaml index c45e43b5f..82345eda9 100644 --- a/packages/autorest.gotest/test/integrationtest/output/machinelearningservices/armmachinelearningservices/__debug/go-tester.yaml +++ b/packages/autorest.gotest/test/integrationtest/output/machinelearningservices/armmachinelearningservices/__debug/go-tester.yaml @@ -39049,7 +39049,7 @@ operationGroups: language: default: &ref_1304 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_1309 @@ -39347,7 +39347,7 @@ operationGroups: language: default: &ref_1317 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_1320 @@ -39549,7 +39549,7 @@ operationGroups: language: default: &ref_1326 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_1332 @@ -40008,7 +40008,7 @@ operationGroups: language: default: &ref_1351 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_1348 @@ -40476,7 +40476,7 @@ operationGroups: language: default: &ref_1373 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_1376 @@ -41034,7 +41034,7 @@ operationGroups: language: default: &ref_1397 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_1400 @@ -43941,7 +43941,7 @@ operationGroups: language: default: &ref_1481 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_1487 @@ -44592,7 +44592,7 @@ operationGroups: language: default: &ref_1495 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_1502 @@ -44862,7 +44862,7 @@ operationGroups: language: default: &ref_1511 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_1518 @@ -45528,7 +45528,7 @@ operationGroups: language: default: &ref_1544 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_1548 @@ -45724,7 +45724,7 @@ operationGroups: language: default: &ref_1554 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_1558 @@ -45920,7 +45920,7 @@ operationGroups: language: default: &ref_1564 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_1568 @@ -48300,7 +48300,7 @@ operationGroups: language: default: &ref_1660 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_1666 @@ -48781,7 +48781,7 @@ operationGroups: language: default: &ref_1681 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_1690 @@ -49115,7 +49115,7 @@ operationGroups: language: default: &ref_1698 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_1706 @@ -50031,7 +50031,7 @@ operationGroups: language: default: &ref_1735 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_1742 @@ -50569,7 +50569,7 @@ operationGroups: language: default: &ref_1757 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_1767 @@ -50961,7 +50961,7 @@ operationGroups: language: default: &ref_1775 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_1784 @@ -61519,7 +61519,7 @@ operationGroups: language: default: &ref_2168 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_2174 @@ -65836,7 +65836,7 @@ operationGroups: language: default: &ref_2304 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_2310 @@ -66319,7 +66319,7 @@ operationGroups: language: default: &ref_2324 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_2333 @@ -66654,7 +66654,7 @@ operationGroups: language: default: &ref_2341 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_2349 @@ -67226,7 +67226,7 @@ operationGroups: language: default: &ref_2366 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_2374 @@ -68037,7 +68037,7 @@ operationGroups: language: default: &ref_2403 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_2410 @@ -68656,7 +68656,7 @@ operationGroups: language: default: &ref_2425 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_2435 @@ -69125,7 +69125,7 @@ operationGroups: language: default: &ref_2443 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_2452 diff --git a/packages/autorest.gotest/test/integrationtest/output/machinelearningservices/armmachinelearningservices/__debug/test-modeler-pre.yaml b/packages/autorest.gotest/test/integrationtest/output/machinelearningservices/armmachinelearningservices/__debug/test-modeler-pre.yaml index 425430a95..9161681f8 100644 --- a/packages/autorest.gotest/test/integrationtest/output/machinelearningservices/armmachinelearningservices/__debug/test-modeler-pre.yaml +++ b/packages/autorest.gotest/test/integrationtest/output/machinelearningservices/armmachinelearningservices/__debug/test-modeler-pre.yaml @@ -39044,7 +39044,7 @@ operationGroups: language: default: &ref_1304 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_1309 @@ -39341,7 +39341,7 @@ operationGroups: language: default: &ref_1317 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_1320 @@ -39542,7 +39542,7 @@ operationGroups: language: default: &ref_1326 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_1332 @@ -39999,7 +39999,7 @@ operationGroups: language: default: &ref_1351 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_1348 @@ -40465,7 +40465,7 @@ operationGroups: language: default: &ref_1373 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_1376 @@ -41020,7 +41020,7 @@ operationGroups: language: default: &ref_1397 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_1400 @@ -43913,7 +43913,7 @@ operationGroups: language: default: &ref_1481 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_1487 @@ -44563,7 +44563,7 @@ operationGroups: language: default: &ref_1495 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_1502 @@ -44832,7 +44832,7 @@ operationGroups: language: default: &ref_1511 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_1518 @@ -45495,7 +45495,7 @@ operationGroups: language: default: &ref_1544 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_1548 @@ -45690,7 +45690,7 @@ operationGroups: language: default: &ref_1554 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_1558 @@ -45885,7 +45885,7 @@ operationGroups: language: default: &ref_1564 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_1568 @@ -48250,7 +48250,7 @@ operationGroups: language: default: &ref_1660 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_1666 @@ -48729,7 +48729,7 @@ operationGroups: language: default: &ref_1681 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_1690 @@ -49062,7 +49062,7 @@ operationGroups: language: default: &ref_1698 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_1706 @@ -49974,7 +49974,7 @@ operationGroups: language: default: &ref_1735 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_1742 @@ -50510,7 +50510,7 @@ operationGroups: language: default: &ref_1757 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_1767 @@ -50901,7 +50901,7 @@ operationGroups: language: default: &ref_1775 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_1784 @@ -61410,7 +61410,7 @@ operationGroups: language: default: &ref_2168 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_2174 @@ -65711,7 +65711,7 @@ operationGroups: language: default: &ref_2304 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_2310 @@ -66192,7 +66192,7 @@ operationGroups: language: default: &ref_2324 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_2333 @@ -66526,7 +66526,7 @@ operationGroups: language: default: &ref_2341 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_2349 @@ -67096,7 +67096,7 @@ operationGroups: language: default: &ref_2366 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_2374 @@ -67903,7 +67903,7 @@ operationGroups: language: default: &ref_2403 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_2410 @@ -68520,7 +68520,7 @@ operationGroups: language: default: &ref_2425 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_2435 @@ -68988,7 +68988,7 @@ operationGroups: language: default: &ref_2443 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_2452 diff --git a/packages/autorest.gotest/test/integrationtest/output/machinelearningservices/armmachinelearningservices/__debug/test-modeler.yaml b/packages/autorest.gotest/test/integrationtest/output/machinelearningservices/armmachinelearningservices/__debug/test-modeler.yaml index 65a1b02fc..126550449 100644 --- a/packages/autorest.gotest/test/integrationtest/output/machinelearningservices/armmachinelearningservices/__debug/test-modeler.yaml +++ b/packages/autorest.gotest/test/integrationtest/output/machinelearningservices/armmachinelearningservices/__debug/test-modeler.yaml @@ -39049,7 +39049,7 @@ operationGroups: language: default: &ref_1304 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_1309 @@ -39347,7 +39347,7 @@ operationGroups: language: default: &ref_1317 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_1320 @@ -39549,7 +39549,7 @@ operationGroups: language: default: &ref_1326 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_1332 @@ -40008,7 +40008,7 @@ operationGroups: language: default: &ref_1351 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_1348 @@ -40476,7 +40476,7 @@ operationGroups: language: default: &ref_1373 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_1376 @@ -41034,7 +41034,7 @@ operationGroups: language: default: &ref_1397 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_1400 @@ -43941,7 +43941,7 @@ operationGroups: language: default: &ref_1481 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_1487 @@ -44592,7 +44592,7 @@ operationGroups: language: default: &ref_1495 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_1502 @@ -44862,7 +44862,7 @@ operationGroups: language: default: &ref_1511 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_1518 @@ -45528,7 +45528,7 @@ operationGroups: language: default: &ref_1544 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_1548 @@ -45724,7 +45724,7 @@ operationGroups: language: default: &ref_1554 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_1558 @@ -45920,7 +45920,7 @@ operationGroups: language: default: &ref_1564 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_1568 @@ -48300,7 +48300,7 @@ operationGroups: language: default: &ref_1660 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_1666 @@ -48781,7 +48781,7 @@ operationGroups: language: default: &ref_1681 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_1690 @@ -49115,7 +49115,7 @@ operationGroups: language: default: &ref_1698 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_1706 @@ -50031,7 +50031,7 @@ operationGroups: language: default: &ref_1735 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_1742 @@ -50569,7 +50569,7 @@ operationGroups: language: default: &ref_1757 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_1767 @@ -50961,7 +50961,7 @@ operationGroups: language: default: &ref_1775 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_1784 @@ -61519,7 +61519,7 @@ operationGroups: language: default: &ref_2168 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_2174 @@ -65836,7 +65836,7 @@ operationGroups: language: default: &ref_2304 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_2310 @@ -66319,7 +66319,7 @@ operationGroups: language: default: &ref_2324 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_2333 @@ -66654,7 +66654,7 @@ operationGroups: language: default: &ref_2341 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_2349 @@ -67226,7 +67226,7 @@ operationGroups: language: default: &ref_2366 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_2374 @@ -68037,7 +68037,7 @@ operationGroups: language: default: &ref_2403 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_2410 @@ -68656,7 +68656,7 @@ operationGroups: language: default: &ref_2425 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_2435 @@ -69125,7 +69125,7 @@ operationGroups: language: default: &ref_2443 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_2452 diff --git a/packages/autorest.gotest/test/integrationtest/output/signalr/armsignalr/__debug/go-tester-pre.yaml b/packages/autorest.gotest/test/integrationtest/output/signalr/armsignalr/__debug/go-tester-pre.yaml index 819fbedd9..48e1c2cc4 100644 --- a/packages/autorest.gotest/test/integrationtest/output/signalr/armsignalr/__debug/go-tester-pre.yaml +++ b/packages/autorest.gotest/test/integrationtest/output/signalr/armsignalr/__debug/go-tester-pre.yaml @@ -6123,7 +6123,7 @@ operationGroups: language: default: &ref_216 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_221 @@ -6596,7 +6596,7 @@ operationGroups: language: default: &ref_229 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_232 @@ -6801,7 +6801,7 @@ operationGroups: language: default: &ref_238 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_243 @@ -7346,7 +7346,7 @@ operationGroups: language: default: &ref_259 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_265 @@ -7572,7 +7572,7 @@ operationGroups: language: default: &ref_273 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_276 @@ -8644,7 +8644,7 @@ operationGroups: language: default: &ref_315 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_319 @@ -9487,7 +9487,7 @@ operationGroups: language: default: &ref_349 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_355 @@ -9767,7 +9767,7 @@ operationGroups: language: default: &ref_363 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_367 diff --git a/packages/autorest.gotest/test/integrationtest/output/signalr/armsignalr/__debug/go-tester.yaml b/packages/autorest.gotest/test/integrationtest/output/signalr/armsignalr/__debug/go-tester.yaml index 721333545..05e484883 100644 --- a/packages/autorest.gotest/test/integrationtest/output/signalr/armsignalr/__debug/go-tester.yaml +++ b/packages/autorest.gotest/test/integrationtest/output/signalr/armsignalr/__debug/go-tester.yaml @@ -6123,7 +6123,7 @@ operationGroups: language: default: &ref_216 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_221 @@ -6596,7 +6596,7 @@ operationGroups: language: default: &ref_229 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_232 @@ -6801,7 +6801,7 @@ operationGroups: language: default: &ref_238 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_243 @@ -7346,7 +7346,7 @@ operationGroups: language: default: &ref_259 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_265 @@ -7572,7 +7572,7 @@ operationGroups: language: default: &ref_273 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_276 @@ -8644,7 +8644,7 @@ operationGroups: language: default: &ref_315 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_319 @@ -9487,7 +9487,7 @@ operationGroups: language: default: &ref_349 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_355 @@ -9767,7 +9767,7 @@ operationGroups: language: default: &ref_363 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_367 diff --git a/packages/autorest.gotest/test/integrationtest/output/signalr/armsignalr/__debug/test-modeler-pre.yaml b/packages/autorest.gotest/test/integrationtest/output/signalr/armsignalr/__debug/test-modeler-pre.yaml index a71f3545d..01367b1a5 100644 --- a/packages/autorest.gotest/test/integrationtest/output/signalr/armsignalr/__debug/test-modeler-pre.yaml +++ b/packages/autorest.gotest/test/integrationtest/output/signalr/armsignalr/__debug/test-modeler-pre.yaml @@ -6115,7 +6115,7 @@ operationGroups: language: default: &ref_216 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_221 @@ -6587,7 +6587,7 @@ operationGroups: language: default: &ref_229 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_232 @@ -6791,7 +6791,7 @@ operationGroups: language: default: &ref_238 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_243 @@ -7334,7 +7334,7 @@ operationGroups: language: default: &ref_259 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_265 @@ -7559,7 +7559,7 @@ operationGroups: language: default: &ref_273 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_276 @@ -8624,7 +8624,7 @@ operationGroups: language: default: &ref_315 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_319 @@ -9461,7 +9461,7 @@ operationGroups: language: default: &ref_349 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_355 @@ -9740,7 +9740,7 @@ operationGroups: language: default: &ref_363 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_367 diff --git a/packages/autorest.gotest/test/integrationtest/output/signalr/armsignalr/__debug/test-modeler.yaml b/packages/autorest.gotest/test/integrationtest/output/signalr/armsignalr/__debug/test-modeler.yaml index c5703e314..5c5e0b0e5 100644 --- a/packages/autorest.gotest/test/integrationtest/output/signalr/armsignalr/__debug/test-modeler.yaml +++ b/packages/autorest.gotest/test/integrationtest/output/signalr/armsignalr/__debug/test-modeler.yaml @@ -6123,7 +6123,7 @@ operationGroups: language: default: &ref_216 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_221 @@ -6596,7 +6596,7 @@ operationGroups: language: default: &ref_229 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_232 @@ -6801,7 +6801,7 @@ operationGroups: language: default: &ref_238 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_243 @@ -7346,7 +7346,7 @@ operationGroups: language: default: &ref_259 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_265 @@ -7572,7 +7572,7 @@ operationGroups: language: default: &ref_273 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_276 @@ -8644,7 +8644,7 @@ operationGroups: language: default: &ref_315 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_319 @@ -9487,7 +9487,7 @@ operationGroups: language: default: &ref_349 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_355 @@ -9767,7 +9767,7 @@ operationGroups: language: default: &ref_363 name: ResumeToken - description: Resumes the LRO from the provided token. + description: '' byValue: true isResumeToken: true paramGroup: &ref_367 diff --git a/packages/typespec-go/package.json b/packages/typespec-go/package.json index 8645b7ad3..9c978fb89 100644 --- a/packages/typespec-go/package.json +++ b/packages/typespec-go/package.json @@ -1,6 +1,6 @@ { "name": "@azure-tools/typespec-go", - "version": "0.1.0-dev.5", + "version": "0.1.0-dev.6", "description": "TypeSpec emitter for Go SDKs", "type": "module", "main": "dist/typespec-go/src/index.js", @@ -49,13 +49,13 @@ "@azure-tools/cadl-ranch": "~0.12.7", "@azure-tools/cadl-ranch-expect": "~0.13.3", "@azure-tools/cadl-ranch-specs": "0.33.4", - "@azure-tools/typespec-autorest": "0.40.0", - "@azure-tools/typespec-azure-resource-manager": "0.42.0", + "@azure-tools/typespec-autorest": "0.43.0", + "@azure-tools/typespec-azure-resource-manager": "0.43.0", "@types/js-yaml": "~4.0.6", "@types/node": "^18.16.3", "@typescript-eslint/eslint-plugin": "~4.1.1", "@typescript-eslint/parser": "~4.1.1", - "@typespec/openapi": "~0.54.0", + "@typespec/openapi": "~0.57.0", "@types/jest": "~26.0.24", "eslint": "~6.6.0", "jest": "~27.0.6", @@ -65,12 +65,12 @@ "dependencies": { "@azure-tools/codegen": "~2.9.2", "@azure-tools/linq": "~3.1.0", - "@azure-tools/typespec-azure-core": ">=0.42.0 <1.0.0", - "@azure-tools/typespec-client-generator-core": "0.42.3", - "@typespec/compiler": "0.56.0", - "@typespec/http": "0.56.0", - "@typespec/rest": "0.56.0", - "@typespec/versioning": "0.56.0", + "@azure-tools/typespec-azure-core": ">=0.43.0 <1.0.0", + "@azure-tools/typespec-client-generator-core": "0.43.0", + "@typespec/compiler": "0.57.0", + "@typespec/http": "0.57.0", + "@typespec/rest": "0.57.0", + "@typespec/versioning": "0.57.0", "js-yaml": "~4.1.0", "source-map-support": "0.5.21" } diff --git a/packages/typespec-go/src/tcgcadapter/types.ts b/packages/typespec-go/src/tcgcadapter/types.ts index 9a003061c..2bea4ad41 100644 --- a/packages/typespec-go/src/tcgcadapter/types.ts +++ b/packages/typespec-go/src/tcgcadapter/types.ts @@ -171,14 +171,21 @@ export class typeAdapter { case 'uuid': return this.getBuiltInType(type); case 'array': { + let elementType = type.valueType; + let nullable = false; + if (elementType.kind === 'nullable') { + // unwrap the nullable type + elementType = elementType.type; + nullable = true; + } // prefer elementTypeByValue. if false, then if the array elements have been explicitly marked as nullable then prefer that, else fall back to our usual algorithm - const myElementTypeByValue = elementTypeByValue ? true : type.valueType.nullable ? false : this.codeModel.options.sliceElementsByval || isTypePassedByValue(type.valueType); - const keyName = recursiveKeyName(`array-${myElementTypeByValue}`, type.valueType, substituteDiscriminator); + const myElementTypeByValue = elementTypeByValue ? true : nullable ? false : this.codeModel.options.sliceElementsByval || isTypePassedByValue(elementType); + const keyName = recursiveKeyName(`array-${myElementTypeByValue}`, elementType, substituteDiscriminator); let arrayType = this.types.get(keyName); if (arrayType) { return arrayType; } - arrayType = new go.SliceType(this.getPossibleType(type.valueType, elementTypeByValue, substituteDiscriminator), myElementTypeByValue); + arrayType = new go.SliceType(this.getPossibleType(elementType, elementTypeByValue, substituteDiscriminator), myElementTypeByValue); this.types.set(keyName, arrayType); return arrayType; } @@ -230,6 +237,8 @@ export class typeAdapter { return this.getInterfaceType(type); } return this.getModel(type); + case 'nullable': + return this.getPossibleType(type.type, elementTypeByValue, substituteDiscriminator); default: throw new Error(`unhandled property kind ${type.kind}`); } @@ -764,6 +773,8 @@ export class typeAdapter { } } break; + case 'nullable': + return recursiveAddReferencedType(type.type); } }; @@ -844,6 +855,8 @@ export class typeAdapter { } } break; + case 'nullable': + return recursiveAddReferencedBaseModel(type.type); } }; @@ -942,6 +955,8 @@ function recursiveKeyName(root: string, obj: tcgc.SdkType, substituteDiscriminat return `${root}-${naming.createPolymorphicInterfaceName(obj.name)}`; } return `${root}-${obj.name}`; + case 'nullable': + return recursiveKeyName(root, obj.type, substituteDiscriminator); case 'plainTime': if (obj.encode !== 'rfc3339') { throw new Error(`unsupported time encoding ${obj.encode}`); @@ -953,6 +968,9 @@ function recursiveKeyName(root: string, obj: tcgc.SdkType, substituteDiscriminat } export function isTypePassedByValue(type: tcgc.SdkType): boolean { + if (type.kind === 'nullable') { + type = type.type; + } return type.kind === 'any' || type.kind === 'array' || type.kind === 'bytes' || type.kind === 'dict' || (type.kind === 'model' && !!type.discriminatedSubtypes); diff --git a/packages/typespec-go/test/armapicenter/fake/zz_date_type.go b/packages/typespec-go/test/armapicenter/fake/zz_date_type.go deleted file mode 100644 index 1364caea1..000000000 --- a/packages/typespec-go/test/armapicenter/fake/zz_date_type.go +++ /dev/null @@ -1,54 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) Go Code Generator. DO NOT EDIT. - -package fake - -import ( - "encoding/json" - "fmt" - "github.com/Azure/azure-sdk-for-go/sdk/azcore" - "reflect" - "time" -) - -const ( - fullDateJSON = `"2006-01-02"` - jsonFormat = `"%04d-%02d-%02d"` -) - -type dateType time.Time - -func (t dateType) MarshalJSON() ([]byte, error) { - return []byte(fmt.Sprintf(jsonFormat, time.Time(t).Year(), time.Time(t).Month(), time.Time(t).Day())), nil -} - -func (d *dateType) UnmarshalJSON(data []byte) (err error) { - t, err := time.Parse(fullDateJSON, string(data)) - *d = (dateType)(t) - return err -} - -func populateDateType(m map[string]any, k string, t *time.Time) { - if t == nil { - return - } else if azcore.IsNullValue(t) { - m[k] = nil - return - } else if reflect.ValueOf(t).IsNil() { - return - } - m[k] = (*dateType)(t) -} - -func unpopulateDateType(data json.RawMessage, fn string, t **time.Time) error { - if data == nil || string(data) == "null" { - return nil - } - var aux dateType - if err := json.Unmarshal(data, &aux); err != nil { - return fmt.Errorf("struct field %s: %v", fn, err) - } - *t = (*time.Time)(&aux) - return nil -} diff --git a/packages/typespec-go/test/armapicenter/zz_apidefinitions_client.go b/packages/typespec-go/test/armapicenter/zz_apidefinitions_client.go index ec6610922..edb7aed47 100644 --- a/packages/typespec-go/test/armapicenter/zz_apidefinitions_client.go +++ b/packages/typespec-go/test/armapicenter/zz_apidefinitions_client.go @@ -24,7 +24,7 @@ type APIDefinitionsClient struct { } // NewAPIDefinitionsClient creates a new instance of APIDefinitionsClient with the specified values. -// - subscriptionID - The ID of the target subscription. +// - subscriptionID - The ID of the target subscription. The value must be an UUID. // - credential - used to authorize requests. Usually a credential from azidentity. // - options - pass nil to accept the default values. func NewAPIDefinitionsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*APIDefinitionsClient, error) { diff --git a/packages/typespec-go/test/armapicenter/zz_apis_client.go b/packages/typespec-go/test/armapicenter/zz_apis_client.go index aae07d42e..948c4e841 100644 --- a/packages/typespec-go/test/armapicenter/zz_apis_client.go +++ b/packages/typespec-go/test/armapicenter/zz_apis_client.go @@ -24,7 +24,7 @@ type ApisClient struct { } // NewApisClient creates a new instance of ApisClient with the specified values. -// - subscriptionID - The ID of the target subscription. +// - subscriptionID - The ID of the target subscription. The value must be an UUID. // - credential - used to authorize requests. Usually a credential from azidentity. // - options - pass nil to accept the default values. func NewApisClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*ApisClient, error) { diff --git a/packages/typespec-go/test/armapicenter/zz_apiversions_client.go b/packages/typespec-go/test/armapicenter/zz_apiversions_client.go index b65f1d478..2925b7ffd 100644 --- a/packages/typespec-go/test/armapicenter/zz_apiversions_client.go +++ b/packages/typespec-go/test/armapicenter/zz_apiversions_client.go @@ -24,7 +24,7 @@ type APIVersionsClient struct { } // NewAPIVersionsClient creates a new instance of APIVersionsClient with the specified values. -// - subscriptionID - The ID of the target subscription. +// - subscriptionID - The ID of the target subscription. The value must be an UUID. // - credential - used to authorize requests. Usually a credential from azidentity. // - options - pass nil to accept the default values. func NewAPIVersionsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*APIVersionsClient, error) { diff --git a/packages/typespec-go/test/armapicenter/zz_client_factory.go b/packages/typespec-go/test/armapicenter/zz_client_factory.go index 9e8369efa..5f12aa878 100644 --- a/packages/typespec-go/test/armapicenter/zz_client_factory.go +++ b/packages/typespec-go/test/armapicenter/zz_client_factory.go @@ -18,7 +18,7 @@ type ClientFactory struct { // NewClientFactory creates a new instance of ClientFactory with the specified values. // The parameter values will be propagated to any client created from this factory. -// - subscriptionID - The ID of the target subscription. +// - subscriptionID - The ID of the target subscription. The value must be an UUID. // - credential - used to authorize requests. Usually a credential from azidentity. // - options - pass nil to accept the default values. func NewClientFactory(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*ClientFactory, error) { diff --git a/packages/typespec-go/test/armapicenter/zz_constants.go b/packages/typespec-go/test/armapicenter/zz_constants.go index a0bbb22d6..d8979cd5e 100644 --- a/packages/typespec-go/test/armapicenter/zz_constants.go +++ b/packages/typespec-go/test/armapicenter/zz_constants.go @@ -223,14 +223,14 @@ func PossibleLifecycleStageValues() []LifecycleStage { } } -// ManagedServiceIdentityType - The kind of managed identity assigned to this resource. +// ManagedServiceIdentityType - Type of managed service identity (where both SystemAssigned and UserAssigned types are allowed). type ManagedServiceIdentityType string const ( // ManagedServiceIdentityTypeNone - No managed identity. ManagedServiceIdentityTypeNone ManagedServiceIdentityType = "None" // ManagedServiceIdentityTypeSystemAndUserAssigned - System and user assigned managed identity. - ManagedServiceIdentityTypeSystemAndUserAssigned ManagedServiceIdentityType = "SystemAssigned, UserAssigned" + ManagedServiceIdentityTypeSystemAndUserAssigned ManagedServiceIdentityType = "SystemAssigned,UserAssigned" // ManagedServiceIdentityTypeSystemAssigned - System assigned managed identity. ManagedServiceIdentityTypeSystemAssigned ManagedServiceIdentityType = "SystemAssigned" // ManagedServiceIdentityTypeUserAssigned - User assigned managed identity. diff --git a/packages/typespec-go/test/armapicenter/zz_date_type.go b/packages/typespec-go/test/armapicenter/zz_date_type.go deleted file mode 100644 index 3e7d9a11e..000000000 --- a/packages/typespec-go/test/armapicenter/zz_date_type.go +++ /dev/null @@ -1,54 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) Go Code Generator. DO NOT EDIT. - -package armapicenter - -import ( - "encoding/json" - "fmt" - "github.com/Azure/azure-sdk-for-go/sdk/azcore" - "reflect" - "time" -) - -const ( - fullDateJSON = `"2006-01-02"` - jsonFormat = `"%04d-%02d-%02d"` -) - -type dateType time.Time - -func (t dateType) MarshalJSON() ([]byte, error) { - return []byte(fmt.Sprintf(jsonFormat, time.Time(t).Year(), time.Time(t).Month(), time.Time(t).Day())), nil -} - -func (d *dateType) UnmarshalJSON(data []byte) (err error) { - t, err := time.Parse(fullDateJSON, string(data)) - *d = (dateType)(t) - return err -} - -func populateDateType(m map[string]any, k string, t *time.Time) { - if t == nil { - return - } else if azcore.IsNullValue(t) { - m[k] = nil - return - } else if reflect.ValueOf(t).IsNil() { - return - } - m[k] = (*dateType)(t) -} - -func unpopulateDateType(data json.RawMessage, fn string, t **time.Time) error { - if data == nil || string(data) == "null" { - return nil - } - var aux dateType - if err := json.Unmarshal(data, &aux); err != nil { - return fmt.Errorf("struct field %s: %v", fn, err) - } - *t = (*time.Time)(&aux) - return nil -} diff --git a/packages/typespec-go/test/armapicenter/zz_deletedservices_client.go b/packages/typespec-go/test/armapicenter/zz_deletedservices_client.go index fe47b51e6..7f1adebae 100644 --- a/packages/typespec-go/test/armapicenter/zz_deletedservices_client.go +++ b/packages/typespec-go/test/armapicenter/zz_deletedservices_client.go @@ -24,7 +24,7 @@ type DeletedServicesClient struct { } // NewDeletedServicesClient creates a new instance of DeletedServicesClient with the specified values. -// - subscriptionID - The ID of the target subscription. +// - subscriptionID - The ID of the target subscription. The value must be an UUID. // - credential - used to authorize requests. Usually a credential from azidentity. // - options - pass nil to accept the default values. func NewDeletedServicesClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*DeletedServicesClient, error) { diff --git a/packages/typespec-go/test/armapicenter/zz_deployments_client.go b/packages/typespec-go/test/armapicenter/zz_deployments_client.go index 5eb394345..561eabd2f 100644 --- a/packages/typespec-go/test/armapicenter/zz_deployments_client.go +++ b/packages/typespec-go/test/armapicenter/zz_deployments_client.go @@ -24,7 +24,7 @@ type DeploymentsClient struct { } // NewDeploymentsClient creates a new instance of DeploymentsClient with the specified values. -// - subscriptionID - The ID of the target subscription. +// - subscriptionID - The ID of the target subscription. The value must be an UUID. // - credential - used to authorize requests. Usually a credential from azidentity. // - options - pass nil to accept the default values. func NewDeploymentsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*DeploymentsClient, error) { diff --git a/packages/typespec-go/test/armapicenter/zz_environments_client.go b/packages/typespec-go/test/armapicenter/zz_environments_client.go index a20275f45..2227b43be 100644 --- a/packages/typespec-go/test/armapicenter/zz_environments_client.go +++ b/packages/typespec-go/test/armapicenter/zz_environments_client.go @@ -24,7 +24,7 @@ type EnvironmentsClient struct { } // NewEnvironmentsClient creates a new instance of EnvironmentsClient with the specified values. -// - subscriptionID - The ID of the target subscription. +// - subscriptionID - The ID of the target subscription. The value must be an UUID. // - credential - used to authorize requests. Usually a credential from azidentity. // - options - pass nil to accept the default values. func NewEnvironmentsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*EnvironmentsClient, error) { diff --git a/packages/typespec-go/test/armapicenter/zz_metadataschemas_client.go b/packages/typespec-go/test/armapicenter/zz_metadataschemas_client.go index b2df67e40..c65914533 100644 --- a/packages/typespec-go/test/armapicenter/zz_metadataschemas_client.go +++ b/packages/typespec-go/test/armapicenter/zz_metadataschemas_client.go @@ -24,7 +24,7 @@ type MetadataSchemasClient struct { } // NewMetadataSchemasClient creates a new instance of MetadataSchemasClient with the specified values. -// - subscriptionID - The ID of the target subscription. +// - subscriptionID - The ID of the target subscription. The value must be an UUID. // - credential - used to authorize requests. Usually a credential from azidentity. // - options - pass nil to accept the default values. func NewMetadataSchemasClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*MetadataSchemasClient, error) { diff --git a/packages/typespec-go/test/armapicenter/zz_models.go b/packages/typespec-go/test/armapicenter/zz_models.go index 5eb724f63..e2ea0afb8 100644 --- a/packages/typespec-go/test/armapicenter/zz_models.go +++ b/packages/typespec-go/test/armapicenter/zz_models.go @@ -378,19 +378,19 @@ type License struct { URL *string } -// ManagedServiceIdentity - The properties of the managed service identities assigned to this resource. +// ManagedServiceIdentity - Managed service identity (system assigned and/or user assigned identities) type ManagedServiceIdentity struct { // REQUIRED; The type of managed identity assigned to this resource. Type *ManagedServiceIdentityType - // The active directory identifier of this principal. + // The service principal ID of the system assigned identity. This property will only be provided for a system assigned identity. PrincipalID *string - // The Active Directory tenant id of the principal. + // The tenant ID of the system assigned identity. This property will only be provided for a system assigned identity. TenantID *string // The identities assigned to this resource by the user. - UserAssignedIdentities *UserAssignedIdentities + UserAssignedIdentities map[string]*UserAssignedIdentity } // MetadataAssignment - Assignment metadata @@ -502,9 +502,9 @@ type OperationDisplay struct { Resource *string } -// PagedOperation - A list of REST API operations supported by an Azure Resource Provider. It contains an URL link to get -// the next set of results. -type PagedOperation struct { +// OperationListResult - A list of REST API operations supported by an Azure Resource Provider. It contains an URL link to +// get the next set of results. +type OperationListResult struct { // REQUIRED; The Operation items on this page Value []*Operation @@ -575,7 +575,7 @@ type ServiceUpdateProperties struct { // SystemData - Metadata pertaining to creation and last modification of the resource. type SystemData struct { - // The type of identity that created the resource. + // The timestamp of resource creation (UTC). CreatedAt *time.Time // The identity that created the resource. @@ -600,19 +600,12 @@ type TermsOfService struct { URL *string } -// UserAssignedIdentities - The set of user assigned identities associated with the resource. The userAssignedIdentities dictionary -// keys will be ARM resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}. -// The dictionary values can be empty objects ({}) in requests.", -type UserAssignedIdentities struct { - AdditionalProperties map[string]*UserAssignedIdentity -} - -// UserAssignedIdentity - A managed identity assigned by the user. +// UserAssignedIdentity - User assigned identity properties type UserAssignedIdentity struct { - // The active directory client identifier for this principal. + // The client ID of the assigned identity. ClientID *string - // The active directory identifier for this principal. + // The principal ID of the assigned identity. PrincipalID *string } diff --git a/packages/typespec-go/test/armapicenter/zz_models_serde.go b/packages/typespec-go/test/armapicenter/zz_models_serde.go index 36013bbb5..e874ea818 100644 --- a/packages/typespec-go/test/armapicenter/zz_models_serde.go +++ b/packages/typespec-go/test/armapicenter/zz_models_serde.go @@ -1354,32 +1354,32 @@ func (o *OperationDisplay) UnmarshalJSON(data []byte) error { return nil } -// MarshalJSON implements the json.Marshaller interface for type PagedOperation. -func (p PagedOperation) MarshalJSON() ([]byte, error) { +// MarshalJSON implements the json.Marshaller interface for type OperationListResult. +func (o OperationListResult) MarshalJSON() ([]byte, error) { objectMap := make(map[string]any) - populate(objectMap, "nextLink", p.NextLink) - populate(objectMap, "value", p.Value) + populate(objectMap, "nextLink", o.NextLink) + populate(objectMap, "value", o.Value) return json.Marshal(objectMap) } -// UnmarshalJSON implements the json.Unmarshaller interface for type PagedOperation. -func (p *PagedOperation) UnmarshalJSON(data []byte) error { +// UnmarshalJSON implements the json.Unmarshaller interface for type OperationListResult. +func (o *OperationListResult) UnmarshalJSON(data []byte) error { var rawMsg map[string]json.RawMessage if err := json.Unmarshal(data, &rawMsg); err != nil { - return fmt.Errorf("unmarshalling type %T: %v", p, err) + return fmt.Errorf("unmarshalling type %T: %v", o, err) } for key, val := range rawMsg { var err error switch key { case "nextLink": - err = unpopulate(val, "NextLink", &p.NextLink) + err = unpopulate(val, "NextLink", &o.NextLink) delete(rawMsg, key) case "value": - err = unpopulate(val, "Value", &p.Value) + err = unpopulate(val, "Value", &o.Value) delete(rawMsg, key) } if err != nil { - return fmt.Errorf("unmarshalling type %T: %v", p, err) + return fmt.Errorf("unmarshalling type %T: %v", o, err) } } return nil @@ -1567,10 +1567,10 @@ func (s *ServiceUpdateProperties) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type SystemData. func (s SystemData) MarshalJSON() ([]byte, error) { objectMap := make(map[string]any) - populateDateType(objectMap, "createdAt", s.CreatedAt) + populateDateTimeRFC3339(objectMap, "createdAt", s.CreatedAt) populate(objectMap, "createdBy", s.CreatedBy) populate(objectMap, "createdByType", s.CreatedByType) - populateDateType(objectMap, "lastModifiedAt", s.LastModifiedAt) + populateDateTimeRFC3339(objectMap, "lastModifiedAt", s.LastModifiedAt) populate(objectMap, "lastModifiedBy", s.LastModifiedBy) populate(objectMap, "lastModifiedByType", s.LastModifiedByType) return json.Marshal(objectMap) @@ -1586,7 +1586,7 @@ func (s *SystemData) UnmarshalJSON(data []byte) error { var err error switch key { case "createdAt": - err = unpopulateDateType(val, "CreatedAt", &s.CreatedAt) + err = unpopulateDateTimeRFC3339(val, "CreatedAt", &s.CreatedAt) delete(rawMsg, key) case "createdBy": err = unpopulate(val, "CreatedBy", &s.CreatedBy) @@ -1595,7 +1595,7 @@ func (s *SystemData) UnmarshalJSON(data []byte) error { err = unpopulate(val, "CreatedByType", &s.CreatedByType) delete(rawMsg, key) case "lastModifiedAt": - err = unpopulateDateType(val, "LastModifiedAt", &s.LastModifiedAt) + err = unpopulateDateTimeRFC3339(val, "LastModifiedAt", &s.LastModifiedAt) delete(rawMsg, key) case "lastModifiedBy": err = unpopulate(val, "LastModifiedBy", &s.LastModifiedBy) @@ -1638,44 +1638,6 @@ func (t *TermsOfService) UnmarshalJSON(data []byte) error { return nil } -// MarshalJSON implements the json.Marshaller interface for type UserAssignedIdentities. -func (u UserAssignedIdentities) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]any) - if u.AdditionalProperties != nil { - for key, val := range u.AdditionalProperties { - objectMap[key] = val - } - } - return json.Marshal(objectMap) -} - -// UnmarshalJSON implements the json.Unmarshaller interface for type UserAssignedIdentities. -func (u *UserAssignedIdentities) UnmarshalJSON(data []byte) error { - var rawMsg map[string]json.RawMessage - if err := json.Unmarshal(data, &rawMsg); err != nil { - return fmt.Errorf("unmarshalling type %T: %v", u, err) - } - for key, val := range rawMsg { - var err error - switch key { - default: - if u.AdditionalProperties == nil { - u.AdditionalProperties = map[string]*UserAssignedIdentity{} - } - if val != nil { - var aux UserAssignedIdentity - err = json.Unmarshal(val, &aux) - u.AdditionalProperties[key] = &aux - } - delete(rawMsg, key) - } - if err != nil { - return fmt.Errorf("unmarshalling type %T: %v", u, err) - } - } - return nil -} - // MarshalJSON implements the json.Marshaller interface for type UserAssignedIdentity. func (u UserAssignedIdentity) MarshalJSON() ([]byte, error) { objectMap := make(map[string]any) diff --git a/packages/typespec-go/test/armapicenter/zz_operations_client.go b/packages/typespec-go/test/armapicenter/zz_operations_client.go index 32c3ca71f..ef3760940 100644 --- a/packages/typespec-go/test/armapicenter/zz_operations_client.go +++ b/packages/typespec-go/test/armapicenter/zz_operations_client.go @@ -77,7 +77,7 @@ func (client *OperationsClient) listCreateRequest(ctx context.Context, _ *Operat // listHandleResponse handles the List response. func (client *OperationsClient) listHandleResponse(resp *http.Response) (OperationsClientListResponse, error) { result := OperationsClientListResponse{} - if err := runtime.UnmarshalAsJSON(resp, &result.PagedOperation); err != nil { + if err := runtime.UnmarshalAsJSON(resp, &result.OperationListResult); err != nil { return OperationsClientListResponse{}, err } return result, nil diff --git a/packages/typespec-go/test/armapicenter/zz_responses.go b/packages/typespec-go/test/armapicenter/zz_responses.go index 8d59e3774..69b2c2ed2 100644 --- a/packages/typespec-go/test/armapicenter/zz_responses.go +++ b/packages/typespec-go/test/armapicenter/zz_responses.go @@ -255,7 +255,7 @@ type MetadataSchemasClientListResponse struct { // OperationsClientListResponse contains the response from method OperationsClient.NewListPager. type OperationsClientListResponse struct { // A list of REST API operations supported by an Azure Resource Provider. It contains an URL link to get the next set of results. - PagedOperation + OperationListResult } // ServicesClientCreateOrUpdateResponse contains the response from method ServicesClient.CreateOrUpdate. diff --git a/packages/typespec-go/test/armapicenter/zz_services_client.go b/packages/typespec-go/test/armapicenter/zz_services_client.go index 103df7d72..9108cc635 100644 --- a/packages/typespec-go/test/armapicenter/zz_services_client.go +++ b/packages/typespec-go/test/armapicenter/zz_services_client.go @@ -24,7 +24,7 @@ type ServicesClient struct { } // NewServicesClient creates a new instance of ServicesClient with the specified values. -// - subscriptionID - The ID of the target subscription. +// - subscriptionID - The ID of the target subscription. The value must be an UUID. // - credential - used to authorize requests. Usually a credential from azidentity. // - options - pass nil to accept the default values. func NewServicesClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*ServicesClient, error) { diff --git a/packages/typespec-go/test/armapicenter/zz_workspaces_client.go b/packages/typespec-go/test/armapicenter/zz_workspaces_client.go index 7b0322efc..f9c8e3d95 100644 --- a/packages/typespec-go/test/armapicenter/zz_workspaces_client.go +++ b/packages/typespec-go/test/armapicenter/zz_workspaces_client.go @@ -24,7 +24,7 @@ type WorkspacesClient struct { } // NewWorkspacesClient creates a new instance of WorkspacesClient with the specified values. -// - subscriptionID - The ID of the target subscription. +// - subscriptionID - The ID of the target subscription. The value must be an UUID. // - credential - used to authorize requests. Usually a credential from azidentity. // - options - pass nil to accept the default values. func NewWorkspacesClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*WorkspacesClient, error) { diff --git a/packages/typespec-go/test/armcodesigning/fake/zz_date_type.go b/packages/typespec-go/test/armcodesigning/fake/zz_date_type.go deleted file mode 100644 index 1364caea1..000000000 --- a/packages/typespec-go/test/armcodesigning/fake/zz_date_type.go +++ /dev/null @@ -1,54 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) Go Code Generator. DO NOT EDIT. - -package fake - -import ( - "encoding/json" - "fmt" - "github.com/Azure/azure-sdk-for-go/sdk/azcore" - "reflect" - "time" -) - -const ( - fullDateJSON = `"2006-01-02"` - jsonFormat = `"%04d-%02d-%02d"` -) - -type dateType time.Time - -func (t dateType) MarshalJSON() ([]byte, error) { - return []byte(fmt.Sprintf(jsonFormat, time.Time(t).Year(), time.Time(t).Month(), time.Time(t).Day())), nil -} - -func (d *dateType) UnmarshalJSON(data []byte) (err error) { - t, err := time.Parse(fullDateJSON, string(data)) - *d = (dateType)(t) - return err -} - -func populateDateType(m map[string]any, k string, t *time.Time) { - if t == nil { - return - } else if azcore.IsNullValue(t) { - m[k] = nil - return - } else if reflect.ValueOf(t).IsNil() { - return - } - m[k] = (*dateType)(t) -} - -func unpopulateDateType(data json.RawMessage, fn string, t **time.Time) error { - if data == nil || string(data) == "null" { - return nil - } - var aux dateType - if err := json.Unmarshal(data, &aux); err != nil { - return fmt.Errorf("struct field %s: %v", fn, err) - } - *t = (*time.Time)(&aux) - return nil -} diff --git a/packages/typespec-go/test/armcodesigning/zz_accounts_client.go b/packages/typespec-go/test/armcodesigning/zz_accounts_client.go index 0e2dd4c48..2a280deb1 100644 --- a/packages/typespec-go/test/armcodesigning/zz_accounts_client.go +++ b/packages/typespec-go/test/armcodesigning/zz_accounts_client.go @@ -24,7 +24,7 @@ type AccountsClient struct { } // NewAccountsClient creates a new instance of AccountsClient with the specified values. -// - subscriptionID - The ID of the target subscription. +// - subscriptionID - The ID of the target subscription. The value must be an UUID. // - credential - used to authorize requests. Usually a credential from azidentity. // - options - pass nil to accept the default values. func NewAccountsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*AccountsClient, error) { diff --git a/packages/typespec-go/test/armcodesigning/zz_certificateprofiles_client.go b/packages/typespec-go/test/armcodesigning/zz_certificateprofiles_client.go index 66cec94ac..d8eb16ebb 100644 --- a/packages/typespec-go/test/armcodesigning/zz_certificateprofiles_client.go +++ b/packages/typespec-go/test/armcodesigning/zz_certificateprofiles_client.go @@ -24,7 +24,7 @@ type CertificateProfilesClient struct { } // NewCertificateProfilesClient creates a new instance of CertificateProfilesClient with the specified values. -// - subscriptionID - The ID of the target subscription. +// - subscriptionID - The ID of the target subscription. The value must be an UUID. // - credential - used to authorize requests. Usually a credential from azidentity. // - options - pass nil to accept the default values. func NewCertificateProfilesClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*CertificateProfilesClient, error) { diff --git a/packages/typespec-go/test/armcodesigning/zz_client_factory.go b/packages/typespec-go/test/armcodesigning/zz_client_factory.go index 401f1e5c2..c1562cd16 100644 --- a/packages/typespec-go/test/armcodesigning/zz_client_factory.go +++ b/packages/typespec-go/test/armcodesigning/zz_client_factory.go @@ -18,7 +18,7 @@ type ClientFactory struct { // NewClientFactory creates a new instance of ClientFactory with the specified values. // The parameter values will be propagated to any client created from this factory. -// - subscriptionID - The ID of the target subscription. +// - subscriptionID - The ID of the target subscription. The value must be an UUID. // - credential - used to authorize requests. Usually a credential from azidentity. // - options - pass nil to accept the default values. func NewClientFactory(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*ClientFactory, error) { diff --git a/packages/typespec-go/test/armcodesigning/zz_date_type.go b/packages/typespec-go/test/armcodesigning/zz_date_type.go deleted file mode 100644 index afdf6f454..000000000 --- a/packages/typespec-go/test/armcodesigning/zz_date_type.go +++ /dev/null @@ -1,54 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) Go Code Generator. DO NOT EDIT. - -package armcodesigning - -import ( - "encoding/json" - "fmt" - "github.com/Azure/azure-sdk-for-go/sdk/azcore" - "reflect" - "time" -) - -const ( - fullDateJSON = `"2006-01-02"` - jsonFormat = `"%04d-%02d-%02d"` -) - -type dateType time.Time - -func (t dateType) MarshalJSON() ([]byte, error) { - return []byte(fmt.Sprintf(jsonFormat, time.Time(t).Year(), time.Time(t).Month(), time.Time(t).Day())), nil -} - -func (d *dateType) UnmarshalJSON(data []byte) (err error) { - t, err := time.Parse(fullDateJSON, string(data)) - *d = (dateType)(t) - return err -} - -func populateDateType(m map[string]any, k string, t *time.Time) { - if t == nil { - return - } else if azcore.IsNullValue(t) { - m[k] = nil - return - } else if reflect.ValueOf(t).IsNil() { - return - } - m[k] = (*dateType)(t) -} - -func unpopulateDateType(data json.RawMessage, fn string, t **time.Time) error { - if data == nil || string(data) == "null" { - return nil - } - var aux dateType - if err := json.Unmarshal(data, &aux); err != nil { - return fmt.Errorf("struct field %s: %v", fn, err) - } - *t = (*time.Time)(&aux) - return nil -} diff --git a/packages/typespec-go/test/armcodesigning/zz_models.go b/packages/typespec-go/test/armcodesigning/zz_models.go index d6610bb42..88123cb56 100644 --- a/packages/typespec-go/test/armcodesigning/zz_models.go +++ b/packages/typespec-go/test/armcodesigning/zz_models.go @@ -240,9 +240,9 @@ type OperationDisplay struct { Resource *string } -// PagedOperation - A list of REST API operations supported by an Azure Resource Provider. It contains an URL link to get -// the next set of results. -type PagedOperation struct { +// OperationListResult - A list of REST API operations supported by an Azure Resource Provider. It contains an URL link to +// get the next set of results. +type OperationListResult struct { // REQUIRED; The Operation items on this page Value []*Operation @@ -291,7 +291,7 @@ type RevokeCertificate struct { // SystemData - Metadata pertaining to creation and last modification of the resource. type SystemData struct { - // The type of identity that created the resource. + // The timestamp of resource creation (UTC). CreatedAt *time.Time // The identity that created the resource. diff --git a/packages/typespec-go/test/armcodesigning/zz_models_serde.go b/packages/typespec-go/test/armcodesigning/zz_models_serde.go index fb4e45f72..e1721e7f6 100644 --- a/packages/typespec-go/test/armcodesigning/zz_models_serde.go +++ b/packages/typespec-go/test/armcodesigning/zz_models_serde.go @@ -581,32 +581,32 @@ func (o *OperationDisplay) UnmarshalJSON(data []byte) error { return nil } -// MarshalJSON implements the json.Marshaller interface for type PagedOperation. -func (p PagedOperation) MarshalJSON() ([]byte, error) { +// MarshalJSON implements the json.Marshaller interface for type OperationListResult. +func (o OperationListResult) MarshalJSON() ([]byte, error) { objectMap := make(map[string]any) - populate(objectMap, "nextLink", p.NextLink) - populate(objectMap, "value", p.Value) + populate(objectMap, "nextLink", o.NextLink) + populate(objectMap, "value", o.Value) return json.Marshal(objectMap) } -// UnmarshalJSON implements the json.Unmarshaller interface for type PagedOperation. -func (p *PagedOperation) UnmarshalJSON(data []byte) error { +// UnmarshalJSON implements the json.Unmarshaller interface for type OperationListResult. +func (o *OperationListResult) UnmarshalJSON(data []byte) error { var rawMsg map[string]json.RawMessage if err := json.Unmarshal(data, &rawMsg); err != nil { - return fmt.Errorf("unmarshalling type %T: %v", p, err) + return fmt.Errorf("unmarshalling type %T: %v", o, err) } for key, val := range rawMsg { var err error switch key { case "nextLink": - err = unpopulate(val, "NextLink", &p.NextLink) + err = unpopulate(val, "NextLink", &o.NextLink) delete(rawMsg, key) case "value": - err = unpopulate(val, "Value", &p.Value) + err = unpopulate(val, "Value", &o.Value) delete(rawMsg, key) } if err != nil { - return fmt.Errorf("unmarshalling type %T: %v", p, err) + return fmt.Errorf("unmarshalling type %T: %v", o, err) } } return nil @@ -705,10 +705,10 @@ func (r *RevokeCertificate) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type SystemData. func (s SystemData) MarshalJSON() ([]byte, error) { objectMap := make(map[string]any) - populateDateType(objectMap, "createdAt", s.CreatedAt) + populateDateTimeRFC3339(objectMap, "createdAt", s.CreatedAt) populate(objectMap, "createdBy", s.CreatedBy) populate(objectMap, "createdByType", s.CreatedByType) - populateDateType(objectMap, "lastModifiedAt", s.LastModifiedAt) + populateDateTimeRFC3339(objectMap, "lastModifiedAt", s.LastModifiedAt) populate(objectMap, "lastModifiedBy", s.LastModifiedBy) populate(objectMap, "lastModifiedByType", s.LastModifiedByType) return json.Marshal(objectMap) @@ -724,7 +724,7 @@ func (s *SystemData) UnmarshalJSON(data []byte) error { var err error switch key { case "createdAt": - err = unpopulateDateType(val, "CreatedAt", &s.CreatedAt) + err = unpopulateDateTimeRFC3339(val, "CreatedAt", &s.CreatedAt) delete(rawMsg, key) case "createdBy": err = unpopulate(val, "CreatedBy", &s.CreatedBy) @@ -733,7 +733,7 @@ func (s *SystemData) UnmarshalJSON(data []byte) error { err = unpopulate(val, "CreatedByType", &s.CreatedByType) delete(rawMsg, key) case "lastModifiedAt": - err = unpopulateDateType(val, "LastModifiedAt", &s.LastModifiedAt) + err = unpopulateDateTimeRFC3339(val, "LastModifiedAt", &s.LastModifiedAt) delete(rawMsg, key) case "lastModifiedBy": err = unpopulate(val, "LastModifiedBy", &s.LastModifiedBy) diff --git a/packages/typespec-go/test/armcodesigning/zz_operations_client.go b/packages/typespec-go/test/armcodesigning/zz_operations_client.go index 16703ef62..5ff3f74d5 100644 --- a/packages/typespec-go/test/armcodesigning/zz_operations_client.go +++ b/packages/typespec-go/test/armcodesigning/zz_operations_client.go @@ -77,7 +77,7 @@ func (client *OperationsClient) listCreateRequest(ctx context.Context, _ *Operat // listHandleResponse handles the List response. func (client *OperationsClient) listHandleResponse(resp *http.Response) (OperationsClientListResponse, error) { result := OperationsClientListResponse{} - if err := runtime.UnmarshalAsJSON(resp, &result.PagedOperation); err != nil { + if err := runtime.UnmarshalAsJSON(resp, &result.OperationListResult); err != nil { return OperationsClientListResponse{}, err } return result, nil diff --git a/packages/typespec-go/test/armcodesigning/zz_responses.go b/packages/typespec-go/test/armcodesigning/zz_responses.go index c57de40e5..f6f798f0a 100644 --- a/packages/typespec-go/test/armcodesigning/zz_responses.go +++ b/packages/typespec-go/test/armcodesigning/zz_responses.go @@ -76,5 +76,5 @@ type CertificateProfilesClientRevokeCertificateResponse struct { // OperationsClientListResponse contains the response from method OperationsClient.NewListPager. type OperationsClientListResponse struct { // A list of REST API operations supported by an Azure Resource Provider. It contains an URL link to get the next set of results. - PagedOperation + OperationListResult } diff --git a/packages/typespec-go/test/armcommunitymanagement/fake/zz_date_type.go b/packages/typespec-go/test/armcommunitymanagement/fake/zz_date_type.go deleted file mode 100644 index 1364caea1..000000000 --- a/packages/typespec-go/test/armcommunitymanagement/fake/zz_date_type.go +++ /dev/null @@ -1,54 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) Go Code Generator. DO NOT EDIT. - -package fake - -import ( - "encoding/json" - "fmt" - "github.com/Azure/azure-sdk-for-go/sdk/azcore" - "reflect" - "time" -) - -const ( - fullDateJSON = `"2006-01-02"` - jsonFormat = `"%04d-%02d-%02d"` -) - -type dateType time.Time - -func (t dateType) MarshalJSON() ([]byte, error) { - return []byte(fmt.Sprintf(jsonFormat, time.Time(t).Year(), time.Time(t).Month(), time.Time(t).Day())), nil -} - -func (d *dateType) UnmarshalJSON(data []byte) (err error) { - t, err := time.Parse(fullDateJSON, string(data)) - *d = (dateType)(t) - return err -} - -func populateDateType(m map[string]any, k string, t *time.Time) { - if t == nil { - return - } else if azcore.IsNullValue(t) { - m[k] = nil - return - } else if reflect.ValueOf(t).IsNil() { - return - } - m[k] = (*dateType)(t) -} - -func unpopulateDateType(data json.RawMessage, fn string, t **time.Time) error { - if data == nil || string(data) == "null" { - return nil - } - var aux dateType - if err := json.Unmarshal(data, &aux); err != nil { - return fmt.Errorf("struct field %s: %v", fn, err) - } - *t = (*time.Time)(&aux) - return nil -} diff --git a/packages/typespec-go/test/armcommunitymanagement/fake/zz_time_rfc3339.go b/packages/typespec-go/test/armcommunitymanagement/fake/zz_time_rfc3339.go new file mode 100644 index 000000000..87ee11e83 --- /dev/null +++ b/packages/typespec-go/test/armcommunitymanagement/fake/zz_time_rfc3339.go @@ -0,0 +1,109 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) Go Code Generator. DO NOT EDIT. + +package fake + +import ( + "encoding/json" + "fmt" + "github.com/Azure/azure-sdk-for-go/sdk/azcore" + "reflect" + "regexp" + "strings" + "time" +) + +// Azure reports time in UTC but it doesn't include the 'Z' time zone suffix in some cases. +var tzOffsetRegex = regexp.MustCompile(`(?:Z|z|\+|-)(?:\d+:\d+)*"*$`) + +const ( + utcDateTime = "2006-01-02T15:04:05.999999999" + utcDateTimeJSON = `"` + utcDateTime + `"` + utcDateTimeNoT = "2006-01-02 15:04:05.999999999" + utcDateTimeJSONNoT = `"` + utcDateTimeNoT + `"` + dateTimeNoT = `2006-01-02 15:04:05.999999999Z07:00` + dateTimeJSON = `"` + time.RFC3339Nano + `"` + dateTimeJSONNoT = `"` + dateTimeNoT + `"` +) + +type dateTimeRFC3339 time.Time + +func (t dateTimeRFC3339) MarshalJSON() ([]byte, error) { + tt := time.Time(t) + return tt.MarshalJSON() +} + +func (t dateTimeRFC3339) MarshalText() ([]byte, error) { + tt := time.Time(t) + return tt.MarshalText() +} + +func (t *dateTimeRFC3339) UnmarshalJSON(data []byte) error { + tzOffset := tzOffsetRegex.Match(data) + hasT := strings.Contains(string(data), "T") || strings.Contains(string(data), "t") + var layout string + if tzOffset && hasT { + layout = dateTimeJSON + } else if tzOffset { + layout = dateTimeJSONNoT + } else if hasT { + layout = utcDateTimeJSON + } else { + layout = utcDateTimeJSONNoT + } + return t.Parse(layout, string(data)) +} + +func (t *dateTimeRFC3339) UnmarshalText(data []byte) error { + if len(data) == 0 { + return nil + } + tzOffset := tzOffsetRegex.Match(data) + hasT := strings.Contains(string(data), "T") || strings.Contains(string(data), "t") + var layout string + if tzOffset && hasT { + layout = time.RFC3339Nano + } else if tzOffset { + layout = dateTimeNoT + } else if hasT { + layout = utcDateTime + } else { + layout = utcDateTimeNoT + } + return t.Parse(layout, string(data)) +} + +func (t *dateTimeRFC3339) Parse(layout, value string) error { + p, err := time.Parse(layout, strings.ToUpper(value)) + *t = dateTimeRFC3339(p) + return err +} + +func (t dateTimeRFC3339) String() string { + return time.Time(t).Format(time.RFC3339Nano) +} + +func populateDateTimeRFC3339(m map[string]any, k string, t *time.Time) { + if t == nil { + return + } else if azcore.IsNullValue(t) { + m[k] = nil + return + } else if reflect.ValueOf(t).IsNil() { + return + } + m[k] = (*dateTimeRFC3339)(t) +} + +func unpopulateDateTimeRFC3339(data json.RawMessage, fn string, t **time.Time) error { + if data == nil || string(data) == "null" { + return nil + } + var aux dateTimeRFC3339 + if err := json.Unmarshal(data, &aux); err != nil { + return fmt.Errorf("struct field %s: %v", fn, err) + } + *t = (*time.Time)(&aux) + return nil +} diff --git a/packages/typespec-go/test/armcommunitymanagement/zz_client_factory.go b/packages/typespec-go/test/armcommunitymanagement/zz_client_factory.go index 3be2eae31..d1c96181b 100644 --- a/packages/typespec-go/test/armcommunitymanagement/zz_client_factory.go +++ b/packages/typespec-go/test/armcommunitymanagement/zz_client_factory.go @@ -18,7 +18,7 @@ type ClientFactory struct { // NewClientFactory creates a new instance of ClientFactory with the specified values. // The parameter values will be propagated to any client created from this factory. -// - subscriptionID - The ID of the target subscription. +// - subscriptionID - The ID of the target subscription. The value must be an UUID. // - credential - used to authorize requests. Usually a credential from azidentity. // - options - pass nil to accept the default values. func NewClientFactory(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*ClientFactory, error) { diff --git a/packages/typespec-go/test/armcommunitymanagement/zz_communitytrainings_client.go b/packages/typespec-go/test/armcommunitymanagement/zz_communitytrainings_client.go index 1c495c9d7..67874912e 100644 --- a/packages/typespec-go/test/armcommunitymanagement/zz_communitytrainings_client.go +++ b/packages/typespec-go/test/armcommunitymanagement/zz_communitytrainings_client.go @@ -24,7 +24,7 @@ type CommunityTrainingsClient struct { } // NewCommunityTrainingsClient creates a new instance of CommunityTrainingsClient with the specified values. -// - subscriptionID - The ID of the target subscription. +// - subscriptionID - The ID of the target subscription. The value must be an UUID. // - credential - used to authorize requests. Usually a credential from azidentity. // - options - pass nil to accept the default values. func NewCommunityTrainingsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*CommunityTrainingsClient, error) { diff --git a/packages/typespec-go/test/armcommunitymanagement/zz_constants.go b/packages/typespec-go/test/armcommunitymanagement/zz_constants.go index 80d009ee5..842eceb6f 100644 --- a/packages/typespec-go/test/armcommunitymanagement/zz_constants.go +++ b/packages/typespec-go/test/armcommunitymanagement/zz_constants.go @@ -103,7 +103,8 @@ func PossibleProvisioningStateValues() []ProvisioningState { } } -// SKUTier - Available service tiers for the SKU. +// SKUTier - This field is required to be implemented by the Resource Provider if the service has more than one tier, but +// is not required on a PUT. type SKUTier string const ( diff --git a/packages/typespec-go/test/armcommunitymanagement/zz_date_type.go b/packages/typespec-go/test/armcommunitymanagement/zz_date_type.go deleted file mode 100644 index dee03c02c..000000000 --- a/packages/typespec-go/test/armcommunitymanagement/zz_date_type.go +++ /dev/null @@ -1,54 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) Go Code Generator. DO NOT EDIT. - -package armcommunitymanagement - -import ( - "encoding/json" - "fmt" - "github.com/Azure/azure-sdk-for-go/sdk/azcore" - "reflect" - "time" -) - -const ( - fullDateJSON = `"2006-01-02"` - jsonFormat = `"%04d-%02d-%02d"` -) - -type dateType time.Time - -func (t dateType) MarshalJSON() ([]byte, error) { - return []byte(fmt.Sprintf(jsonFormat, time.Time(t).Year(), time.Time(t).Month(), time.Time(t).Day())), nil -} - -func (d *dateType) UnmarshalJSON(data []byte) (err error) { - t, err := time.Parse(fullDateJSON, string(data)) - *d = (dateType)(t) - return err -} - -func populateDateType(m map[string]any, k string, t *time.Time) { - if t == nil { - return - } else if azcore.IsNullValue(t) { - m[k] = nil - return - } else if reflect.ValueOf(t).IsNil() { - return - } - m[k] = (*dateType)(t) -} - -func unpopulateDateType(data json.RawMessage, fn string, t **time.Time) error { - if data == nil || string(data) == "null" { - return nil - } - var aux dateType - if err := json.Unmarshal(data, &aux); err != nil { - return fmt.Errorf("struct field %s: %v", fn, err) - } - *t = (*time.Time)(&aux) - return nil -} diff --git a/packages/typespec-go/test/armcommunitymanagement/zz_models.go b/packages/typespec-go/test/armcommunitymanagement/zz_models.go index 40af17fcc..a95665d60 100644 --- a/packages/typespec-go/test/armcommunitymanagement/zz_models.go +++ b/packages/typespec-go/test/armcommunitymanagement/zz_models.go @@ -154,9 +154,9 @@ type OperationDisplay struct { Resource *string } -// PagedOperation - A list of REST API operations supported by an Azure Resource Provider. It contains an URL link to get -// the next set of results. -type PagedOperation struct { +// OperationListResult - A list of REST API operations supported by an Azure Resource Provider. It contains an URL link to +// get the next set of results. +type OperationListResult struct { // REQUIRED; The Operation items on this page Value []*Operation @@ -164,9 +164,9 @@ type PagedOperation struct { NextLink *string } -// SKU - The SKU (Stock Keeping Unit) assigned to this resource. +// SKU - The resource model definition representing SKU type SKU struct { - // REQUIRED; The name of the SKU, usually a combination of letters and numbers, for example, 'P3' + // REQUIRED; The name of the SKU. Ex - P3. It is typically a letter+number code Name *string // If the SKU supports scale out/in then the capacity integer should be included. If scale out/in is not possible for the @@ -186,7 +186,7 @@ type SKU struct { // SystemData - Metadata pertaining to creation and last modification of the resource. type SystemData struct { - // The type of identity that created the resource. + // The timestamp of resource creation (UTC). CreatedAt *time.Time // The identity that created the resource. diff --git a/packages/typespec-go/test/armcommunitymanagement/zz_models_serde.go b/packages/typespec-go/test/armcommunitymanagement/zz_models_serde.go index 6f3116b3b..e2d5d4cc2 100644 --- a/packages/typespec-go/test/armcommunitymanagement/zz_models_serde.go +++ b/packages/typespec-go/test/armcommunitymanagement/zz_models_serde.go @@ -355,32 +355,32 @@ func (o *OperationDisplay) UnmarshalJSON(data []byte) error { return nil } -// MarshalJSON implements the json.Marshaller interface for type PagedOperation. -func (p PagedOperation) MarshalJSON() ([]byte, error) { +// MarshalJSON implements the json.Marshaller interface for type OperationListResult. +func (o OperationListResult) MarshalJSON() ([]byte, error) { objectMap := make(map[string]any) - populate(objectMap, "nextLink", p.NextLink) - populate(objectMap, "value", p.Value) + populate(objectMap, "nextLink", o.NextLink) + populate(objectMap, "value", o.Value) return json.Marshal(objectMap) } -// UnmarshalJSON implements the json.Unmarshaller interface for type PagedOperation. -func (p *PagedOperation) UnmarshalJSON(data []byte) error { +// UnmarshalJSON implements the json.Unmarshaller interface for type OperationListResult. +func (o *OperationListResult) UnmarshalJSON(data []byte) error { var rawMsg map[string]json.RawMessage if err := json.Unmarshal(data, &rawMsg); err != nil { - return fmt.Errorf("unmarshalling type %T: %v", p, err) + return fmt.Errorf("unmarshalling type %T: %v", o, err) } for key, val := range rawMsg { var err error switch key { case "nextLink": - err = unpopulate(val, "NextLink", &p.NextLink) + err = unpopulate(val, "NextLink", &o.NextLink) delete(rawMsg, key) case "value": - err = unpopulate(val, "Value", &p.Value) + err = unpopulate(val, "Value", &o.Value) delete(rawMsg, key) } if err != nil { - return fmt.Errorf("unmarshalling type %T: %v", p, err) + return fmt.Errorf("unmarshalling type %T: %v", o, err) } } return nil @@ -432,10 +432,10 @@ func (s *SKU) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type SystemData. func (s SystemData) MarshalJSON() ([]byte, error) { objectMap := make(map[string]any) - populateDateType(objectMap, "createdAt", s.CreatedAt) + populateDateTimeRFC3339(objectMap, "createdAt", s.CreatedAt) populate(objectMap, "createdBy", s.CreatedBy) populate(objectMap, "createdByType", s.CreatedByType) - populateDateType(objectMap, "lastModifiedAt", s.LastModifiedAt) + populateDateTimeRFC3339(objectMap, "lastModifiedAt", s.LastModifiedAt) populate(objectMap, "lastModifiedBy", s.LastModifiedBy) populate(objectMap, "lastModifiedByType", s.LastModifiedByType) return json.Marshal(objectMap) @@ -451,7 +451,7 @@ func (s *SystemData) UnmarshalJSON(data []byte) error { var err error switch key { case "createdAt": - err = unpopulateDateType(val, "CreatedAt", &s.CreatedAt) + err = unpopulateDateTimeRFC3339(val, "CreatedAt", &s.CreatedAt) delete(rawMsg, key) case "createdBy": err = unpopulate(val, "CreatedBy", &s.CreatedBy) @@ -460,7 +460,7 @@ func (s *SystemData) UnmarshalJSON(data []byte) error { err = unpopulate(val, "CreatedByType", &s.CreatedByType) delete(rawMsg, key) case "lastModifiedAt": - err = unpopulateDateType(val, "LastModifiedAt", &s.LastModifiedAt) + err = unpopulateDateTimeRFC3339(val, "LastModifiedAt", &s.LastModifiedAt) delete(rawMsg, key) case "lastModifiedBy": err = unpopulate(val, "LastModifiedBy", &s.LastModifiedBy) diff --git a/packages/typespec-go/test/armcommunitymanagement/zz_operations_client.go b/packages/typespec-go/test/armcommunitymanagement/zz_operations_client.go index b8db7e908..a47810d92 100644 --- a/packages/typespec-go/test/armcommunitymanagement/zz_operations_client.go +++ b/packages/typespec-go/test/armcommunitymanagement/zz_operations_client.go @@ -77,7 +77,7 @@ func (client *OperationsClient) listCreateRequest(ctx context.Context, _ *Operat // listHandleResponse handles the List response. func (client *OperationsClient) listHandleResponse(resp *http.Response) (OperationsClientListResponse, error) { result := OperationsClientListResponse{} - if err := runtime.UnmarshalAsJSON(resp, &result.PagedOperation); err != nil { + if err := runtime.UnmarshalAsJSON(resp, &result.OperationListResult); err != nil { return OperationsClientListResponse{}, err } return result, nil diff --git a/packages/typespec-go/test/armcommunitymanagement/zz_responses.go b/packages/typespec-go/test/armcommunitymanagement/zz_responses.go index 34f64ffd8..7e5d9ea0e 100644 --- a/packages/typespec-go/test/armcommunitymanagement/zz_responses.go +++ b/packages/typespec-go/test/armcommunitymanagement/zz_responses.go @@ -42,5 +42,5 @@ type CommunityTrainingsClientUpdateResponse struct { // OperationsClientListResponse contains the response from method OperationsClient.NewListPager. type OperationsClientListResponse struct { // A list of REST API operations supported by an Azure Resource Provider. It contains an URL link to get the next set of results. - PagedOperation + OperationListResult } diff --git a/packages/typespec-go/test/armcommunitymanagement/zz_time_rfc3339.go b/packages/typespec-go/test/armcommunitymanagement/zz_time_rfc3339.go new file mode 100644 index 000000000..7accb7f8d --- /dev/null +++ b/packages/typespec-go/test/armcommunitymanagement/zz_time_rfc3339.go @@ -0,0 +1,109 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) Go Code Generator. DO NOT EDIT. + +package armcommunitymanagement + +import ( + "encoding/json" + "fmt" + "github.com/Azure/azure-sdk-for-go/sdk/azcore" + "reflect" + "regexp" + "strings" + "time" +) + +// Azure reports time in UTC but it doesn't include the 'Z' time zone suffix in some cases. +var tzOffsetRegex = regexp.MustCompile(`(?:Z|z|\+|-)(?:\d+:\d+)*"*$`) + +const ( + utcDateTime = "2006-01-02T15:04:05.999999999" + utcDateTimeJSON = `"` + utcDateTime + `"` + utcDateTimeNoT = "2006-01-02 15:04:05.999999999" + utcDateTimeJSONNoT = `"` + utcDateTimeNoT + `"` + dateTimeNoT = `2006-01-02 15:04:05.999999999Z07:00` + dateTimeJSON = `"` + time.RFC3339Nano + `"` + dateTimeJSONNoT = `"` + dateTimeNoT + `"` +) + +type dateTimeRFC3339 time.Time + +func (t dateTimeRFC3339) MarshalJSON() ([]byte, error) { + tt := time.Time(t) + return tt.MarshalJSON() +} + +func (t dateTimeRFC3339) MarshalText() ([]byte, error) { + tt := time.Time(t) + return tt.MarshalText() +} + +func (t *dateTimeRFC3339) UnmarshalJSON(data []byte) error { + tzOffset := tzOffsetRegex.Match(data) + hasT := strings.Contains(string(data), "T") || strings.Contains(string(data), "t") + var layout string + if tzOffset && hasT { + layout = dateTimeJSON + } else if tzOffset { + layout = dateTimeJSONNoT + } else if hasT { + layout = utcDateTimeJSON + } else { + layout = utcDateTimeJSONNoT + } + return t.Parse(layout, string(data)) +} + +func (t *dateTimeRFC3339) UnmarshalText(data []byte) error { + if len(data) == 0 { + return nil + } + tzOffset := tzOffsetRegex.Match(data) + hasT := strings.Contains(string(data), "T") || strings.Contains(string(data), "t") + var layout string + if tzOffset && hasT { + layout = time.RFC3339Nano + } else if tzOffset { + layout = dateTimeNoT + } else if hasT { + layout = utcDateTime + } else { + layout = utcDateTimeNoT + } + return t.Parse(layout, string(data)) +} + +func (t *dateTimeRFC3339) Parse(layout, value string) error { + p, err := time.Parse(layout, strings.ToUpper(value)) + *t = dateTimeRFC3339(p) + return err +} + +func (t dateTimeRFC3339) String() string { + return time.Time(t).Format(time.RFC3339Nano) +} + +func populateDateTimeRFC3339(m map[string]any, k string, t *time.Time) { + if t == nil { + return + } else if azcore.IsNullValue(t) { + m[k] = nil + return + } else if reflect.ValueOf(t).IsNil() { + return + } + m[k] = (*dateTimeRFC3339)(t) +} + +func unpopulateDateTimeRFC3339(data json.RawMessage, fn string, t **time.Time) error { + if data == nil || string(data) == "null" { + return nil + } + var aux dateTimeRFC3339 + if err := json.Unmarshal(data, &aux); err != nil { + return fmt.Errorf("struct field %s: %v", fn, err) + } + *t = (*time.Time)(&aux) + return nil +} diff --git a/packages/typespec-go/test/armdatabasewatcher/fake/zz_date_type.go b/packages/typespec-go/test/armdatabasewatcher/fake/zz_date_type.go deleted file mode 100644 index 1364caea1..000000000 --- a/packages/typespec-go/test/armdatabasewatcher/fake/zz_date_type.go +++ /dev/null @@ -1,54 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) Go Code Generator. DO NOT EDIT. - -package fake - -import ( - "encoding/json" - "fmt" - "github.com/Azure/azure-sdk-for-go/sdk/azcore" - "reflect" - "time" -) - -const ( - fullDateJSON = `"2006-01-02"` - jsonFormat = `"%04d-%02d-%02d"` -) - -type dateType time.Time - -func (t dateType) MarshalJSON() ([]byte, error) { - return []byte(fmt.Sprintf(jsonFormat, time.Time(t).Year(), time.Time(t).Month(), time.Time(t).Day())), nil -} - -func (d *dateType) UnmarshalJSON(data []byte) (err error) { - t, err := time.Parse(fullDateJSON, string(data)) - *d = (dateType)(t) - return err -} - -func populateDateType(m map[string]any, k string, t *time.Time) { - if t == nil { - return - } else if azcore.IsNullValue(t) { - m[k] = nil - return - } else if reflect.ValueOf(t).IsNil() { - return - } - m[k] = (*dateType)(t) -} - -func unpopulateDateType(data json.RawMessage, fn string, t **time.Time) error { - if data == nil || string(data) == "null" { - return nil - } - var aux dateType - if err := json.Unmarshal(data, &aux); err != nil { - return fmt.Errorf("struct field %s: %v", fn, err) - } - *t = (*time.Time)(&aux) - return nil -} diff --git a/packages/typespec-go/test/armdatabasewatcher/fake/zz_time_rfc3339.go b/packages/typespec-go/test/armdatabasewatcher/fake/zz_time_rfc3339.go new file mode 100644 index 000000000..87ee11e83 --- /dev/null +++ b/packages/typespec-go/test/armdatabasewatcher/fake/zz_time_rfc3339.go @@ -0,0 +1,109 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) Go Code Generator. DO NOT EDIT. + +package fake + +import ( + "encoding/json" + "fmt" + "github.com/Azure/azure-sdk-for-go/sdk/azcore" + "reflect" + "regexp" + "strings" + "time" +) + +// Azure reports time in UTC but it doesn't include the 'Z' time zone suffix in some cases. +var tzOffsetRegex = regexp.MustCompile(`(?:Z|z|\+|-)(?:\d+:\d+)*"*$`) + +const ( + utcDateTime = "2006-01-02T15:04:05.999999999" + utcDateTimeJSON = `"` + utcDateTime + `"` + utcDateTimeNoT = "2006-01-02 15:04:05.999999999" + utcDateTimeJSONNoT = `"` + utcDateTimeNoT + `"` + dateTimeNoT = `2006-01-02 15:04:05.999999999Z07:00` + dateTimeJSON = `"` + time.RFC3339Nano + `"` + dateTimeJSONNoT = `"` + dateTimeNoT + `"` +) + +type dateTimeRFC3339 time.Time + +func (t dateTimeRFC3339) MarshalJSON() ([]byte, error) { + tt := time.Time(t) + return tt.MarshalJSON() +} + +func (t dateTimeRFC3339) MarshalText() ([]byte, error) { + tt := time.Time(t) + return tt.MarshalText() +} + +func (t *dateTimeRFC3339) UnmarshalJSON(data []byte) error { + tzOffset := tzOffsetRegex.Match(data) + hasT := strings.Contains(string(data), "T") || strings.Contains(string(data), "t") + var layout string + if tzOffset && hasT { + layout = dateTimeJSON + } else if tzOffset { + layout = dateTimeJSONNoT + } else if hasT { + layout = utcDateTimeJSON + } else { + layout = utcDateTimeJSONNoT + } + return t.Parse(layout, string(data)) +} + +func (t *dateTimeRFC3339) UnmarshalText(data []byte) error { + if len(data) == 0 { + return nil + } + tzOffset := tzOffsetRegex.Match(data) + hasT := strings.Contains(string(data), "T") || strings.Contains(string(data), "t") + var layout string + if tzOffset && hasT { + layout = time.RFC3339Nano + } else if tzOffset { + layout = dateTimeNoT + } else if hasT { + layout = utcDateTime + } else { + layout = utcDateTimeNoT + } + return t.Parse(layout, string(data)) +} + +func (t *dateTimeRFC3339) Parse(layout, value string) error { + p, err := time.Parse(layout, strings.ToUpper(value)) + *t = dateTimeRFC3339(p) + return err +} + +func (t dateTimeRFC3339) String() string { + return time.Time(t).Format(time.RFC3339Nano) +} + +func populateDateTimeRFC3339(m map[string]any, k string, t *time.Time) { + if t == nil { + return + } else if azcore.IsNullValue(t) { + m[k] = nil + return + } else if reflect.ValueOf(t).IsNil() { + return + } + m[k] = (*dateTimeRFC3339)(t) +} + +func unpopulateDateTimeRFC3339(data json.RawMessage, fn string, t **time.Time) error { + if data == nil || string(data) == "null" { + return nil + } + var aux dateTimeRFC3339 + if err := json.Unmarshal(data, &aux); err != nil { + return fmt.Errorf("struct field %s: %v", fn, err) + } + *t = (*time.Time)(&aux) + return nil +} diff --git a/packages/typespec-go/test/armdatabasewatcher/zz_client_factory.go b/packages/typespec-go/test/armdatabasewatcher/zz_client_factory.go index 21f960572..e2502462e 100644 --- a/packages/typespec-go/test/armdatabasewatcher/zz_client_factory.go +++ b/packages/typespec-go/test/armdatabasewatcher/zz_client_factory.go @@ -18,7 +18,7 @@ type ClientFactory struct { // NewClientFactory creates a new instance of ClientFactory with the specified values. // The parameter values will be propagated to any client created from this factory. -// - subscriptionID - The ID of the target subscription. +// - subscriptionID - The ID of the target subscription. The value must be an UUID. // - credential - used to authorize requests. Usually a credential from azidentity. // - options - pass nil to accept the default values. func NewClientFactory(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*ClientFactory, error) { diff --git a/packages/typespec-go/test/armdatabasewatcher/zz_constants.go b/packages/typespec-go/test/armdatabasewatcher/zz_constants.go index a4983fd90..b35ed55e2 100644 --- a/packages/typespec-go/test/armdatabasewatcher/zz_constants.go +++ b/packages/typespec-go/test/armdatabasewatcher/zz_constants.go @@ -90,14 +90,14 @@ func PossibleKustoOfferingTypeValues() []KustoOfferingType { } } -// ManagedServiceIdentityType - The kind of managed identity assigned to this resource. +// ManagedServiceIdentityType - Type of managed service identity (where both SystemAssigned and UserAssigned types are allowed). type ManagedServiceIdentityType string const ( // ManagedServiceIdentityTypeNone - No managed identity. ManagedServiceIdentityTypeNone ManagedServiceIdentityType = "None" - // ManagedServiceIdentityTypeSystemAndUserAssigned - System and user assigned managed identity. - ManagedServiceIdentityTypeSystemAndUserAssigned ManagedServiceIdentityType = "SystemAssigned, UserAssigned" + // ManagedServiceIdentityTypeSystemAndUserAssignedV3 - System and user assigned managed identity. + ManagedServiceIdentityTypeSystemAndUserAssignedV3 ManagedServiceIdentityType = "SystemAssigned,UserAssigned" // ManagedServiceIdentityTypeSystemAssigned - System assigned managed identity. ManagedServiceIdentityTypeSystemAssigned ManagedServiceIdentityType = "SystemAssigned" // ManagedServiceIdentityTypeUserAssigned - User assigned managed identity. @@ -108,7 +108,7 @@ const ( func PossibleManagedServiceIdentityTypeValues() []ManagedServiceIdentityType { return []ManagedServiceIdentityType{ ManagedServiceIdentityTypeNone, - ManagedServiceIdentityTypeSystemAndUserAssigned, + ManagedServiceIdentityTypeSystemAndUserAssignedV3, ManagedServiceIdentityTypeSystemAssigned, ManagedServiceIdentityTypeUserAssigned, } diff --git a/packages/typespec-go/test/armdatabasewatcher/zz_date_type.go b/packages/typespec-go/test/armdatabasewatcher/zz_date_type.go deleted file mode 100644 index 735cc65dd..000000000 --- a/packages/typespec-go/test/armdatabasewatcher/zz_date_type.go +++ /dev/null @@ -1,54 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) Go Code Generator. DO NOT EDIT. - -package armdatabasewatcher - -import ( - "encoding/json" - "fmt" - "github.com/Azure/azure-sdk-for-go/sdk/azcore" - "reflect" - "time" -) - -const ( - fullDateJSON = `"2006-01-02"` - jsonFormat = `"%04d-%02d-%02d"` -) - -type dateType time.Time - -func (t dateType) MarshalJSON() ([]byte, error) { - return []byte(fmt.Sprintf(jsonFormat, time.Time(t).Year(), time.Time(t).Month(), time.Time(t).Day())), nil -} - -func (d *dateType) UnmarshalJSON(data []byte) (err error) { - t, err := time.Parse(fullDateJSON, string(data)) - *d = (dateType)(t) - return err -} - -func populateDateType(m map[string]any, k string, t *time.Time) { - if t == nil { - return - } else if azcore.IsNullValue(t) { - m[k] = nil - return - } else if reflect.ValueOf(t).IsNil() { - return - } - m[k] = (*dateType)(t) -} - -func unpopulateDateType(data json.RawMessage, fn string, t **time.Time) error { - if data == nil || string(data) == "null" { - return nil - } - var aux dateType - if err := json.Unmarshal(data, &aux); err != nil { - return fmt.Errorf("struct field %s: %v", fn, err) - } - *t = (*time.Time)(&aux) - return nil -} diff --git a/packages/typespec-go/test/armdatabasewatcher/zz_models.go b/packages/typespec-go/test/armdatabasewatcher/zz_models.go index 4623274d7..bb14570f6 100644 --- a/packages/typespec-go/test/armdatabasewatcher/zz_models.go +++ b/packages/typespec-go/test/armdatabasewatcher/zz_models.go @@ -66,19 +66,19 @@ type ErrorResponse struct { Error *ErrorDetail } -// ManagedServiceIdentity - The properties of the managed service identities assigned to this resource. +// ManagedServiceIdentity - Managed service identity (system assigned and/or user assigned identities) type ManagedServiceIdentity struct { // REQUIRED; The type of managed identity assigned to this resource. Type *ManagedServiceIdentityType - // The active directory identifier of this principal. + // The service principal ID of the system assigned identity. This property will only be provided for a system assigned identity. PrincipalID *string - // The Active Directory tenant id of the principal. + // The tenant ID of the system assigned identity. This property will only be provided for a system assigned identity. TenantID *string // The identities assigned to this resource by the user. - UserAssignedIdentities *UserAssignedIdentities + UserAssignedIdentities map[string]*UserAssignedIdentity } // Operation - Details of a REST API operation, returned from the Resource Provider Operations API @@ -118,9 +118,9 @@ type OperationDisplay struct { Resource *string } -// PagedOperation - A list of REST API operations supported by an Azure Resource Provider. It contains an URL link to get -// the next set of results. -type PagedOperation struct { +// OperationListResult - A list of REST API operations supported by an Azure Resource Provider. It contains an URL link to +// get the next set of results. +type OperationListResult struct { // REQUIRED; The Operation items on this page Value []*Operation @@ -336,7 +336,7 @@ type SharedPrivateLinkResourceProperties struct { // SystemData - Metadata pertaining to creation and last modification of the resource. type SystemData struct { - // The type of identity that created the resource. + // The timestamp of resource creation (UTC). CreatedAt *time.Time // The identity that created the resource. @@ -391,7 +391,7 @@ type TargetProperties struct { // REQUIRED; The type of authentication to use when connecting to a target. TargetAuthenticationType *TargetAuthenticationType - // REQUIRED + // REQUIRED; Discriminator property for TargetProperties. TargetType *string // The provisioning state of the resource. @@ -404,19 +404,12 @@ type TargetProperties struct { // GetTargetProperties implements the TargetPropertiesClassification interface for type TargetProperties. func (t *TargetProperties) GetTargetProperties() *TargetProperties { return t } -// UserAssignedIdentities - The set of user assigned identities associated with the resource. The userAssignedIdentities dictionary -// keys will be ARM resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}. -// The dictionary values can be empty objects ({}) in requests.", -type UserAssignedIdentities struct { - AdditionalProperties map[string]*UserAssignedIdentity -} - -// UserAssignedIdentity - A managed identity assigned by the user. +// UserAssignedIdentity - User assigned identity properties type UserAssignedIdentity struct { - // The active directory client identifier for this principal. + // The client ID of the assigned identity. ClientID *string - // The active directory identifier for this principal. + // The principal ID of the assigned identity. PrincipalID *string } diff --git a/packages/typespec-go/test/armdatabasewatcher/zz_models_serde.go b/packages/typespec-go/test/armdatabasewatcher/zz_models_serde.go index c10486ce5..6735044aa 100644 --- a/packages/typespec-go/test/armdatabasewatcher/zz_models_serde.go +++ b/packages/typespec-go/test/armdatabasewatcher/zz_models_serde.go @@ -284,32 +284,32 @@ func (o *OperationDisplay) UnmarshalJSON(data []byte) error { return nil } -// MarshalJSON implements the json.Marshaller interface for type PagedOperation. -func (p PagedOperation) MarshalJSON() ([]byte, error) { +// MarshalJSON implements the json.Marshaller interface for type OperationListResult. +func (o OperationListResult) MarshalJSON() ([]byte, error) { objectMap := make(map[string]any) - populate(objectMap, "nextLink", p.NextLink) - populate(objectMap, "value", p.Value) + populate(objectMap, "nextLink", o.NextLink) + populate(objectMap, "value", o.Value) return json.Marshal(objectMap) } -// UnmarshalJSON implements the json.Unmarshaller interface for type PagedOperation. -func (p *PagedOperation) UnmarshalJSON(data []byte) error { +// UnmarshalJSON implements the json.Unmarshaller interface for type OperationListResult. +func (o *OperationListResult) UnmarshalJSON(data []byte) error { var rawMsg map[string]json.RawMessage if err := json.Unmarshal(data, &rawMsg); err != nil { - return fmt.Errorf("unmarshalling type %T: %v", p, err) + return fmt.Errorf("unmarshalling type %T: %v", o, err) } for key, val := range rawMsg { var err error switch key { case "nextLink": - err = unpopulate(val, "NextLink", &p.NextLink) + err = unpopulate(val, "NextLink", &o.NextLink) delete(rawMsg, key) case "value": - err = unpopulate(val, "Value", &p.Value) + err = unpopulate(val, "Value", &o.Value) delete(rawMsg, key) } if err != nil { - return fmt.Errorf("unmarshalling type %T: %v", p, err) + return fmt.Errorf("unmarshalling type %T: %v", o, err) } } return nil @@ -655,10 +655,10 @@ func (s *SharedPrivateLinkResourceProperties) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type SystemData. func (s SystemData) MarshalJSON() ([]byte, error) { objectMap := make(map[string]any) - populateDateType(objectMap, "createdAt", s.CreatedAt) + populateDateTimeRFC3339(objectMap, "createdAt", s.CreatedAt) populate(objectMap, "createdBy", s.CreatedBy) populate(objectMap, "createdByType", s.CreatedByType) - populateDateType(objectMap, "lastModifiedAt", s.LastModifiedAt) + populateDateTimeRFC3339(objectMap, "lastModifiedAt", s.LastModifiedAt) populate(objectMap, "lastModifiedBy", s.LastModifiedBy) populate(objectMap, "lastModifiedByType", s.LastModifiedByType) return json.Marshal(objectMap) @@ -674,7 +674,7 @@ func (s *SystemData) UnmarshalJSON(data []byte) error { var err error switch key { case "createdAt": - err = unpopulateDateType(val, "CreatedAt", &s.CreatedAt) + err = unpopulateDateTimeRFC3339(val, "CreatedAt", &s.CreatedAt) delete(rawMsg, key) case "createdBy": err = unpopulate(val, "CreatedBy", &s.CreatedBy) @@ -683,7 +683,7 @@ func (s *SystemData) UnmarshalJSON(data []byte) error { err = unpopulate(val, "CreatedByType", &s.CreatedByType) delete(rawMsg, key) case "lastModifiedAt": - err = unpopulateDateType(val, "LastModifiedAt", &s.LastModifiedAt) + err = unpopulateDateTimeRFC3339(val, "LastModifiedAt", &s.LastModifiedAt) delete(rawMsg, key) case "lastModifiedBy": err = unpopulate(val, "LastModifiedBy", &s.LastModifiedBy) @@ -816,44 +816,6 @@ func (t *TargetProperties) UnmarshalJSON(data []byte) error { return nil } -// MarshalJSON implements the json.Marshaller interface for type UserAssignedIdentities. -func (u UserAssignedIdentities) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]any) - if u.AdditionalProperties != nil { - for key, val := range u.AdditionalProperties { - objectMap[key] = val - } - } - return json.Marshal(objectMap) -} - -// UnmarshalJSON implements the json.Unmarshaller interface for type UserAssignedIdentities. -func (u *UserAssignedIdentities) UnmarshalJSON(data []byte) error { - var rawMsg map[string]json.RawMessage - if err := json.Unmarshal(data, &rawMsg); err != nil { - return fmt.Errorf("unmarshalling type %T: %v", u, err) - } - for key, val := range rawMsg { - var err error - switch key { - default: - if u.AdditionalProperties == nil { - u.AdditionalProperties = map[string]*UserAssignedIdentity{} - } - if val != nil { - var aux UserAssignedIdentity - err = json.Unmarshal(val, &aux) - u.AdditionalProperties[key] = &aux - } - delete(rawMsg, key) - } - if err != nil { - return fmt.Errorf("unmarshalling type %T: %v", u, err) - } - } - return nil -} - // MarshalJSON implements the json.Marshaller interface for type UserAssignedIdentity. func (u UserAssignedIdentity) MarshalJSON() ([]byte, error) { objectMap := make(map[string]any) diff --git a/packages/typespec-go/test/armdatabasewatcher/zz_operations_client.go b/packages/typespec-go/test/armdatabasewatcher/zz_operations_client.go index 0a3eba78b..6f2941ad4 100644 --- a/packages/typespec-go/test/armdatabasewatcher/zz_operations_client.go +++ b/packages/typespec-go/test/armdatabasewatcher/zz_operations_client.go @@ -77,7 +77,7 @@ func (client *OperationsClient) listCreateRequest(ctx context.Context, _ *Operat // listHandleResponse handles the List response. func (client *OperationsClient) listHandleResponse(resp *http.Response) (OperationsClientListResponse, error) { result := OperationsClientListResponse{} - if err := runtime.UnmarshalAsJSON(resp, &result.PagedOperation); err != nil { + if err := runtime.UnmarshalAsJSON(resp, &result.OperationListResult); err != nil { return OperationsClientListResponse{}, err } return result, nil diff --git a/packages/typespec-go/test/armdatabasewatcher/zz_responses.go b/packages/typespec-go/test/armdatabasewatcher/zz_responses.go index ff1006809..216005b75 100644 --- a/packages/typespec-go/test/armdatabasewatcher/zz_responses.go +++ b/packages/typespec-go/test/armdatabasewatcher/zz_responses.go @@ -7,7 +7,7 @@ package armdatabasewatcher // OperationsClientListResponse contains the response from method OperationsClient.NewListPager. type OperationsClientListResponse struct { // A list of REST API operations supported by an Azure Resource Provider. It contains an URL link to get the next set of results. - PagedOperation + OperationListResult } // SharedPrivateLinkResourcesClientCreateResponse contains the response from method SharedPrivateLinkResourcesClient.BeginCreate. diff --git a/packages/typespec-go/test/armdatabasewatcher/zz_sharedprivatelinkresources_client.go b/packages/typespec-go/test/armdatabasewatcher/zz_sharedprivatelinkresources_client.go index fe69bf697..42fa0abbb 100644 --- a/packages/typespec-go/test/armdatabasewatcher/zz_sharedprivatelinkresources_client.go +++ b/packages/typespec-go/test/armdatabasewatcher/zz_sharedprivatelinkresources_client.go @@ -24,7 +24,7 @@ type SharedPrivateLinkResourcesClient struct { } // NewSharedPrivateLinkResourcesClient creates a new instance of SharedPrivateLinkResourcesClient with the specified values. -// - subscriptionID - The ID of the target subscription. +// - subscriptionID - The ID of the target subscription. The value must be an UUID. // - credential - used to authorize requests. Usually a credential from azidentity. // - options - pass nil to accept the default values. func NewSharedPrivateLinkResourcesClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*SharedPrivateLinkResourcesClient, error) { diff --git a/packages/typespec-go/test/armdatabasewatcher/zz_targets_client.go b/packages/typespec-go/test/armdatabasewatcher/zz_targets_client.go index 4dd6144d0..e02573d9b 100644 --- a/packages/typespec-go/test/armdatabasewatcher/zz_targets_client.go +++ b/packages/typespec-go/test/armdatabasewatcher/zz_targets_client.go @@ -24,7 +24,7 @@ type TargetsClient struct { } // NewTargetsClient creates a new instance of TargetsClient with the specified values. -// - subscriptionID - The ID of the target subscription. +// - subscriptionID - The ID of the target subscription. The value must be an UUID. // - credential - used to authorize requests. Usually a credential from azidentity. // - options - pass nil to accept the default values. func NewTargetsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*TargetsClient, error) { diff --git a/packages/typespec-go/test/armdatabasewatcher/zz_time_rfc3339.go b/packages/typespec-go/test/armdatabasewatcher/zz_time_rfc3339.go new file mode 100644 index 000000000..5f90c03ee --- /dev/null +++ b/packages/typespec-go/test/armdatabasewatcher/zz_time_rfc3339.go @@ -0,0 +1,109 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) Go Code Generator. DO NOT EDIT. + +package armdatabasewatcher + +import ( + "encoding/json" + "fmt" + "github.com/Azure/azure-sdk-for-go/sdk/azcore" + "reflect" + "regexp" + "strings" + "time" +) + +// Azure reports time in UTC but it doesn't include the 'Z' time zone suffix in some cases. +var tzOffsetRegex = regexp.MustCompile(`(?:Z|z|\+|-)(?:\d+:\d+)*"*$`) + +const ( + utcDateTime = "2006-01-02T15:04:05.999999999" + utcDateTimeJSON = `"` + utcDateTime + `"` + utcDateTimeNoT = "2006-01-02 15:04:05.999999999" + utcDateTimeJSONNoT = `"` + utcDateTimeNoT + `"` + dateTimeNoT = `2006-01-02 15:04:05.999999999Z07:00` + dateTimeJSON = `"` + time.RFC3339Nano + `"` + dateTimeJSONNoT = `"` + dateTimeNoT + `"` +) + +type dateTimeRFC3339 time.Time + +func (t dateTimeRFC3339) MarshalJSON() ([]byte, error) { + tt := time.Time(t) + return tt.MarshalJSON() +} + +func (t dateTimeRFC3339) MarshalText() ([]byte, error) { + tt := time.Time(t) + return tt.MarshalText() +} + +func (t *dateTimeRFC3339) UnmarshalJSON(data []byte) error { + tzOffset := tzOffsetRegex.Match(data) + hasT := strings.Contains(string(data), "T") || strings.Contains(string(data), "t") + var layout string + if tzOffset && hasT { + layout = dateTimeJSON + } else if tzOffset { + layout = dateTimeJSONNoT + } else if hasT { + layout = utcDateTimeJSON + } else { + layout = utcDateTimeJSONNoT + } + return t.Parse(layout, string(data)) +} + +func (t *dateTimeRFC3339) UnmarshalText(data []byte) error { + if len(data) == 0 { + return nil + } + tzOffset := tzOffsetRegex.Match(data) + hasT := strings.Contains(string(data), "T") || strings.Contains(string(data), "t") + var layout string + if tzOffset && hasT { + layout = time.RFC3339Nano + } else if tzOffset { + layout = dateTimeNoT + } else if hasT { + layout = utcDateTime + } else { + layout = utcDateTimeNoT + } + return t.Parse(layout, string(data)) +} + +func (t *dateTimeRFC3339) Parse(layout, value string) error { + p, err := time.Parse(layout, strings.ToUpper(value)) + *t = dateTimeRFC3339(p) + return err +} + +func (t dateTimeRFC3339) String() string { + return time.Time(t).Format(time.RFC3339Nano) +} + +func populateDateTimeRFC3339(m map[string]any, k string, t *time.Time) { + if t == nil { + return + } else if azcore.IsNullValue(t) { + m[k] = nil + return + } else if reflect.ValueOf(t).IsNil() { + return + } + m[k] = (*dateTimeRFC3339)(t) +} + +func unpopulateDateTimeRFC3339(data json.RawMessage, fn string, t **time.Time) error { + if data == nil || string(data) == "null" { + return nil + } + var aux dateTimeRFC3339 + if err := json.Unmarshal(data, &aux); err != nil { + return fmt.Errorf("struct field %s: %v", fn, err) + } + *t = (*time.Time)(&aux) + return nil +} diff --git a/packages/typespec-go/test/armdatabasewatcher/zz_watchers_client.go b/packages/typespec-go/test/armdatabasewatcher/zz_watchers_client.go index c77d1969d..f15f94bf0 100644 --- a/packages/typespec-go/test/armdatabasewatcher/zz_watchers_client.go +++ b/packages/typespec-go/test/armdatabasewatcher/zz_watchers_client.go @@ -24,7 +24,7 @@ type WatchersClient struct { } // NewWatchersClient creates a new instance of WatchersClient with the specified values. -// - subscriptionID - The ID of the target subscription. +// - subscriptionID - The ID of the target subscription. The value must be an UUID. // - credential - used to authorize requests. Usually a credential from azidentity. // - options - pass nil to accept the default values. func NewWatchersClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*WatchersClient, error) { diff --git a/packages/typespec-go/test/armdevopsinfrastructure/fake/zz_date_type.go b/packages/typespec-go/test/armdevopsinfrastructure/fake/zz_date_type.go deleted file mode 100644 index 1364caea1..000000000 --- a/packages/typespec-go/test/armdevopsinfrastructure/fake/zz_date_type.go +++ /dev/null @@ -1,54 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) Go Code Generator. DO NOT EDIT. - -package fake - -import ( - "encoding/json" - "fmt" - "github.com/Azure/azure-sdk-for-go/sdk/azcore" - "reflect" - "time" -) - -const ( - fullDateJSON = `"2006-01-02"` - jsonFormat = `"%04d-%02d-%02d"` -) - -type dateType time.Time - -func (t dateType) MarshalJSON() ([]byte, error) { - return []byte(fmt.Sprintf(jsonFormat, time.Time(t).Year(), time.Time(t).Month(), time.Time(t).Day())), nil -} - -func (d *dateType) UnmarshalJSON(data []byte) (err error) { - t, err := time.Parse(fullDateJSON, string(data)) - *d = (dateType)(t) - return err -} - -func populateDateType(m map[string]any, k string, t *time.Time) { - if t == nil { - return - } else if azcore.IsNullValue(t) { - m[k] = nil - return - } else if reflect.ValueOf(t).IsNil() { - return - } - m[k] = (*dateType)(t) -} - -func unpopulateDateType(data json.RawMessage, fn string, t **time.Time) error { - if data == nil || string(data) == "null" { - return nil - } - var aux dateType - if err := json.Unmarshal(data, &aux); err != nil { - return fmt.Errorf("struct field %s: %v", fn, err) - } - *t = (*time.Time)(&aux) - return nil -} diff --git a/packages/typespec-go/test/armdevopsinfrastructure/fake/zz_time_rfc3339.go b/packages/typespec-go/test/armdevopsinfrastructure/fake/zz_time_rfc3339.go new file mode 100644 index 000000000..87ee11e83 --- /dev/null +++ b/packages/typespec-go/test/armdevopsinfrastructure/fake/zz_time_rfc3339.go @@ -0,0 +1,109 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) Go Code Generator. DO NOT EDIT. + +package fake + +import ( + "encoding/json" + "fmt" + "github.com/Azure/azure-sdk-for-go/sdk/azcore" + "reflect" + "regexp" + "strings" + "time" +) + +// Azure reports time in UTC but it doesn't include the 'Z' time zone suffix in some cases. +var tzOffsetRegex = regexp.MustCompile(`(?:Z|z|\+|-)(?:\d+:\d+)*"*$`) + +const ( + utcDateTime = "2006-01-02T15:04:05.999999999" + utcDateTimeJSON = `"` + utcDateTime + `"` + utcDateTimeNoT = "2006-01-02 15:04:05.999999999" + utcDateTimeJSONNoT = `"` + utcDateTimeNoT + `"` + dateTimeNoT = `2006-01-02 15:04:05.999999999Z07:00` + dateTimeJSON = `"` + time.RFC3339Nano + `"` + dateTimeJSONNoT = `"` + dateTimeNoT + `"` +) + +type dateTimeRFC3339 time.Time + +func (t dateTimeRFC3339) MarshalJSON() ([]byte, error) { + tt := time.Time(t) + return tt.MarshalJSON() +} + +func (t dateTimeRFC3339) MarshalText() ([]byte, error) { + tt := time.Time(t) + return tt.MarshalText() +} + +func (t *dateTimeRFC3339) UnmarshalJSON(data []byte) error { + tzOffset := tzOffsetRegex.Match(data) + hasT := strings.Contains(string(data), "T") || strings.Contains(string(data), "t") + var layout string + if tzOffset && hasT { + layout = dateTimeJSON + } else if tzOffset { + layout = dateTimeJSONNoT + } else if hasT { + layout = utcDateTimeJSON + } else { + layout = utcDateTimeJSONNoT + } + return t.Parse(layout, string(data)) +} + +func (t *dateTimeRFC3339) UnmarshalText(data []byte) error { + if len(data) == 0 { + return nil + } + tzOffset := tzOffsetRegex.Match(data) + hasT := strings.Contains(string(data), "T") || strings.Contains(string(data), "t") + var layout string + if tzOffset && hasT { + layout = time.RFC3339Nano + } else if tzOffset { + layout = dateTimeNoT + } else if hasT { + layout = utcDateTime + } else { + layout = utcDateTimeNoT + } + return t.Parse(layout, string(data)) +} + +func (t *dateTimeRFC3339) Parse(layout, value string) error { + p, err := time.Parse(layout, strings.ToUpper(value)) + *t = dateTimeRFC3339(p) + return err +} + +func (t dateTimeRFC3339) String() string { + return time.Time(t).Format(time.RFC3339Nano) +} + +func populateDateTimeRFC3339(m map[string]any, k string, t *time.Time) { + if t == nil { + return + } else if azcore.IsNullValue(t) { + m[k] = nil + return + } else if reflect.ValueOf(t).IsNil() { + return + } + m[k] = (*dateTimeRFC3339)(t) +} + +func unpopulateDateTimeRFC3339(data json.RawMessage, fn string, t **time.Time) error { + if data == nil || string(data) == "null" { + return nil + } + var aux dateTimeRFC3339 + if err := json.Unmarshal(data, &aux); err != nil { + return fmt.Errorf("struct field %s: %v", fn, err) + } + *t = (*time.Time)(&aux) + return nil +} diff --git a/packages/typespec-go/test/armdevopsinfrastructure/zz_client_factory.go b/packages/typespec-go/test/armdevopsinfrastructure/zz_client_factory.go index 098c8c5bc..1f7ea53e0 100644 --- a/packages/typespec-go/test/armdevopsinfrastructure/zz_client_factory.go +++ b/packages/typespec-go/test/armdevopsinfrastructure/zz_client_factory.go @@ -18,7 +18,7 @@ type ClientFactory struct { // NewClientFactory creates a new instance of ClientFactory with the specified values. // The parameter values will be propagated to any client created from this factory. -// - subscriptionID - The ID of the target subscription. +// - subscriptionID - The ID of the target subscription. The value must be an UUID. // - credential - used to authorize requests. Usually a credential from azidentity. // - options - pass nil to accept the default values. func NewClientFactory(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*ClientFactory, error) { diff --git a/packages/typespec-go/test/armdevopsinfrastructure/zz_constants.go b/packages/typespec-go/test/armdevopsinfrastructure/zz_constants.go index e59717b82..ca5fd89b5 100644 --- a/packages/typespec-go/test/armdevopsinfrastructure/zz_constants.go +++ b/packages/typespec-go/test/armdevopsinfrastructure/zz_constants.go @@ -108,14 +108,14 @@ func PossibleLogonTypeValues() []LogonType { } } -// ManagedServiceIdentityType - The kind of managed identity assigned to this resource. +// ManagedServiceIdentityType - Type of managed service identity (where both SystemAssigned and UserAssigned types are allowed). type ManagedServiceIdentityType string const ( // ManagedServiceIdentityTypeNone - No managed identity. ManagedServiceIdentityTypeNone ManagedServiceIdentityType = "None" // ManagedServiceIdentityTypeSystemAndUserAssigned - System and user assigned managed identity. - ManagedServiceIdentityTypeSystemAndUserAssigned ManagedServiceIdentityType = "SystemAssigned, UserAssigned" + ManagedServiceIdentityTypeSystemAndUserAssigned ManagedServiceIdentityType = "SystemAssigned,UserAssigned" // ManagedServiceIdentityTypeSystemAssigned - System assigned managed identity. ManagedServiceIdentityTypeSystemAssigned ManagedServiceIdentityType = "SystemAssigned" // ManagedServiceIdentityTypeUserAssigned - User assigned managed identity. diff --git a/packages/typespec-go/test/armdevopsinfrastructure/zz_date_type.go b/packages/typespec-go/test/armdevopsinfrastructure/zz_date_type.go deleted file mode 100644 index 3cacc9b8c..000000000 --- a/packages/typespec-go/test/armdevopsinfrastructure/zz_date_type.go +++ /dev/null @@ -1,54 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) Go Code Generator. DO NOT EDIT. - -package armdevopsinfrastructure - -import ( - "encoding/json" - "fmt" - "github.com/Azure/azure-sdk-for-go/sdk/azcore" - "reflect" - "time" -) - -const ( - fullDateJSON = `"2006-01-02"` - jsonFormat = `"%04d-%02d-%02d"` -) - -type dateType time.Time - -func (t dateType) MarshalJSON() ([]byte, error) { - return []byte(fmt.Sprintf(jsonFormat, time.Time(t).Year(), time.Time(t).Month(), time.Time(t).Day())), nil -} - -func (d *dateType) UnmarshalJSON(data []byte) (err error) { - t, err := time.Parse(fullDateJSON, string(data)) - *d = (dateType)(t) - return err -} - -func populateDateType(m map[string]any, k string, t *time.Time) { - if t == nil { - return - } else if azcore.IsNullValue(t) { - m[k] = nil - return - } else if reflect.ValueOf(t).IsNil() { - return - } - m[k] = (*dateType)(t) -} - -func unpopulateDateType(data json.RawMessage, fn string, t **time.Time) error { - if data == nil || string(data) == "null" { - return nil - } - var aux dateType - if err := json.Unmarshal(data, &aux); err != nil { - return fmt.Errorf("struct field %s: %v", fn, err) - } - *t = (*time.Time)(&aux) - return nil -} diff --git a/packages/typespec-go/test/armdevopsinfrastructure/zz_imageversions_client.go b/packages/typespec-go/test/armdevopsinfrastructure/zz_imageversions_client.go index 1cca736a7..f131782fe 100644 --- a/packages/typespec-go/test/armdevopsinfrastructure/zz_imageversions_client.go +++ b/packages/typespec-go/test/armdevopsinfrastructure/zz_imageversions_client.go @@ -24,7 +24,7 @@ type ImageVersionsClient struct { } // NewImageVersionsClient creates a new instance of ImageVersionsClient with the specified values. -// - subscriptionID - The ID of the target subscription. +// - subscriptionID - The ID of the target subscription. The value must be an UUID. // - credential - used to authorize requests. Usually a credential from azidentity. // - options - pass nil to accept the default values. func NewImageVersionsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*ImageVersionsClient, error) { diff --git a/packages/typespec-go/test/armdevopsinfrastructure/zz_models.go b/packages/typespec-go/test/armdevopsinfrastructure/zz_models.go index 75e10150f..6bfc05331 100644 --- a/packages/typespec-go/test/armdevopsinfrastructure/zz_models.go +++ b/packages/typespec-go/test/armdevopsinfrastructure/zz_models.go @@ -8,7 +8,7 @@ import "time" // AgentProfile - The agent profile of the machines in the pool. type AgentProfile struct { - // REQUIRED + // REQUIRED; Discriminator property for AgentProfile. Kind *string // Defines pool buffer/stand-by agents. @@ -94,7 +94,7 @@ type DevOpsAzureSKU struct { // FabricProfile - Defines the type of fabric the agent will run on. type FabricProfile struct { - // REQUIRED + // REQUIRED; Discriminator property for FabricProfile. Kind *string } @@ -160,19 +160,19 @@ type ImageVersionProperties struct { Version *string } -// ManagedServiceIdentity - The properties of the managed service identities assigned to this resource. +// ManagedServiceIdentity - Managed service identity (system assigned and/or user assigned identities) type ManagedServiceIdentity struct { // REQUIRED; The type of managed identity assigned to this resource. Type *ManagedServiceIdentityType - // The active directory identifier of this principal. + // The service principal ID of the system assigned identity. This property will only be provided for a system assigned identity. PrincipalID *string - // The Active Directory tenant id of the principal. + // The tenant ID of the system assigned identity. This property will only be provided for a system assigned identity. TenantID *string // The identities assigned to this resource by the user. - UserAssignedIdentities *UserAssignedIdentities + UserAssignedIdentities map[string]*UserAssignedIdentity } // ManualResourcePredictionsProfile - Customer provides the stand-by agent scheme. @@ -232,6 +232,16 @@ type OperationDisplay struct { Resource *string } +// OperationListResult - A list of REST API operations supported by an Azure Resource Provider. It contains an URL link to +// get the next set of results. +type OperationListResult struct { + // REQUIRED; The Operation items on this page + Value []*Operation + + // The link to the next page of items + NextLink *string +} + // Organization - Defines an Azure DevOps organization. type Organization struct { // REQUIRED; The Azure DevOps organization URL in which the pool should be created. @@ -246,7 +256,7 @@ type Organization struct { // OrganizationProfile - Defines the organization in which the pool will be used. type OrganizationProfile struct { - // REQUIRED + // REQUIRED; Discriminator property for OrganizationProfile. Kind *string } @@ -262,16 +272,6 @@ type OsProfile struct { SecretsManagementSettings *SecretsManagementSettings } -// PagedOperation - A list of REST API operations supported by an Azure Resource Provider. It contains an URL link to get -// the next set of results. -type PagedOperation struct { - // REQUIRED; The Operation items on this page - Value []*Operation - - // The link to the next page of items - NextLink *string -} - // Pool - Concrete tracked resource types can be created by aliasing this type using a specific property type. type Pool struct { // REQUIRED; The geo-location where the resource lives @@ -663,7 +663,7 @@ type StorageProfile struct { // SystemData - Metadata pertaining to creation and last modification of the resource. type SystemData struct { - // The type of identity that created the resource. + // The timestamp of resource creation (UTC). CreatedAt *time.Time // The identity that created the resource. @@ -682,19 +682,12 @@ type SystemData struct { LastModifiedByType *CreatedByType } -// UserAssignedIdentities - The set of user assigned identities associated with the resource. The userAssignedIdentities dictionary -// keys will be ARM resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}. -// The dictionary values can be empty objects ({}) in requests.", -type UserAssignedIdentities struct { - AdditionalProperties map[string]*UserAssignedIdentity -} - -// UserAssignedIdentity - A managed identity assigned by the user. +// UserAssignedIdentity - User assigned identity properties type UserAssignedIdentity struct { - // The active directory client identifier for this principal. + // The client ID of the assigned identity. ClientID *string - // The active directory identifier for this principal. + // The principal ID of the assigned identity. PrincipalID *string } diff --git a/packages/typespec-go/test/armdevopsinfrastructure/zz_models_serde.go b/packages/typespec-go/test/armdevopsinfrastructure/zz_models_serde.go index 73c4bf673..3e5f4dea3 100644 --- a/packages/typespec-go/test/armdevopsinfrastructure/zz_models_serde.go +++ b/packages/typespec-go/test/armdevopsinfrastructure/zz_models_serde.go @@ -578,6 +578,37 @@ func (o *OperationDisplay) UnmarshalJSON(data []byte) error { return nil } +// MarshalJSON implements the json.Marshaller interface for type OperationListResult. +func (o OperationListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "nextLink", o.NextLink) + populate(objectMap, "value", o.Value) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type OperationListResult. +func (o *OperationListResult) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return fmt.Errorf("unmarshalling type %T: %v", o, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "nextLink": + err = unpopulate(val, "NextLink", &o.NextLink) + delete(rawMsg, key) + case "value": + err = unpopulate(val, "Value", &o.Value) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", o, err) + } + } + return nil +} + // MarshalJSON implements the json.Marshaller interface for type Organization. func (o Organization) MarshalJSON() ([]byte, error) { objectMap := make(map[string]any) @@ -671,37 +702,6 @@ func (o *OsProfile) UnmarshalJSON(data []byte) error { return nil } -// MarshalJSON implements the json.Marshaller interface for type PagedOperation. -func (p PagedOperation) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]any) - populate(objectMap, "nextLink", p.NextLink) - populate(objectMap, "value", p.Value) - return json.Marshal(objectMap) -} - -// UnmarshalJSON implements the json.Unmarshaller interface for type PagedOperation. -func (p *PagedOperation) UnmarshalJSON(data []byte) error { - var rawMsg map[string]json.RawMessage - if err := json.Unmarshal(data, &rawMsg); err != nil { - return fmt.Errorf("unmarshalling type %T: %v", p, err) - } - for key, val := range rawMsg { - var err error - switch key { - case "nextLink": - err = unpopulate(val, "NextLink", &p.NextLink) - delete(rawMsg, key) - case "value": - err = unpopulate(val, "Value", &p.Value) - delete(rawMsg, key) - } - if err != nil { - return fmt.Errorf("unmarshalling type %T: %v", p, err) - } - } - return nil -} - // MarshalJSON implements the json.Marshaller interface for type Pool. func (p Pool) MarshalJSON() ([]byte, error) { objectMap := make(map[string]any) @@ -1679,10 +1679,10 @@ func (s *StorageProfile) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type SystemData. func (s SystemData) MarshalJSON() ([]byte, error) { objectMap := make(map[string]any) - populateDateType(objectMap, "createdAt", s.CreatedAt) + populateDateTimeRFC3339(objectMap, "createdAt", s.CreatedAt) populate(objectMap, "createdBy", s.CreatedBy) populate(objectMap, "createdByType", s.CreatedByType) - populateDateType(objectMap, "lastModifiedAt", s.LastModifiedAt) + populateDateTimeRFC3339(objectMap, "lastModifiedAt", s.LastModifiedAt) populate(objectMap, "lastModifiedBy", s.LastModifiedBy) populate(objectMap, "lastModifiedByType", s.LastModifiedByType) return json.Marshal(objectMap) @@ -1698,7 +1698,7 @@ func (s *SystemData) UnmarshalJSON(data []byte) error { var err error switch key { case "createdAt": - err = unpopulateDateType(val, "CreatedAt", &s.CreatedAt) + err = unpopulateDateTimeRFC3339(val, "CreatedAt", &s.CreatedAt) delete(rawMsg, key) case "createdBy": err = unpopulate(val, "CreatedBy", &s.CreatedBy) @@ -1707,7 +1707,7 @@ func (s *SystemData) UnmarshalJSON(data []byte) error { err = unpopulate(val, "CreatedByType", &s.CreatedByType) delete(rawMsg, key) case "lastModifiedAt": - err = unpopulateDateType(val, "LastModifiedAt", &s.LastModifiedAt) + err = unpopulateDateTimeRFC3339(val, "LastModifiedAt", &s.LastModifiedAt) delete(rawMsg, key) case "lastModifiedBy": err = unpopulate(val, "LastModifiedBy", &s.LastModifiedBy) @@ -1723,44 +1723,6 @@ func (s *SystemData) UnmarshalJSON(data []byte) error { return nil } -// MarshalJSON implements the json.Marshaller interface for type UserAssignedIdentities. -func (u UserAssignedIdentities) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]any) - if u.AdditionalProperties != nil { - for key, val := range u.AdditionalProperties { - objectMap[key] = val - } - } - return json.Marshal(objectMap) -} - -// UnmarshalJSON implements the json.Unmarshaller interface for type UserAssignedIdentities. -func (u *UserAssignedIdentities) UnmarshalJSON(data []byte) error { - var rawMsg map[string]json.RawMessage - if err := json.Unmarshal(data, &rawMsg); err != nil { - return fmt.Errorf("unmarshalling type %T: %v", u, err) - } - for key, val := range rawMsg { - var err error - switch key { - default: - if u.AdditionalProperties == nil { - u.AdditionalProperties = map[string]*UserAssignedIdentity{} - } - if val != nil { - var aux UserAssignedIdentity - err = json.Unmarshal(val, &aux) - u.AdditionalProperties[key] = &aux - } - delete(rawMsg, key) - } - if err != nil { - return fmt.Errorf("unmarshalling type %T: %v", u, err) - } - } - return nil -} - // MarshalJSON implements the json.Marshaller interface for type UserAssignedIdentity. func (u UserAssignedIdentity) MarshalJSON() ([]byte, error) { objectMap := make(map[string]any) diff --git a/packages/typespec-go/test/armdevopsinfrastructure/zz_operations_client.go b/packages/typespec-go/test/armdevopsinfrastructure/zz_operations_client.go index 0791ed36c..f37d3beed 100644 --- a/packages/typespec-go/test/armdevopsinfrastructure/zz_operations_client.go +++ b/packages/typespec-go/test/armdevopsinfrastructure/zz_operations_client.go @@ -77,7 +77,7 @@ func (client *OperationsClient) listCreateRequest(ctx context.Context, _ *Operat // listHandleResponse handles the List response. func (client *OperationsClient) listHandleResponse(resp *http.Response) (OperationsClientListResponse, error) { result := OperationsClientListResponse{} - if err := runtime.UnmarshalAsJSON(resp, &result.PagedOperation); err != nil { + if err := runtime.UnmarshalAsJSON(resp, &result.OperationListResult); err != nil { return OperationsClientListResponse{}, err } return result, nil diff --git a/packages/typespec-go/test/armdevopsinfrastructure/zz_pools_client.go b/packages/typespec-go/test/armdevopsinfrastructure/zz_pools_client.go index 82431224f..f7855db68 100644 --- a/packages/typespec-go/test/armdevopsinfrastructure/zz_pools_client.go +++ b/packages/typespec-go/test/armdevopsinfrastructure/zz_pools_client.go @@ -24,7 +24,7 @@ type PoolsClient struct { } // NewPoolsClient creates a new instance of PoolsClient with the specified values. -// - subscriptionID - The ID of the target subscription. +// - subscriptionID - The ID of the target subscription. The value must be an UUID. // - credential - used to authorize requests. Usually a credential from azidentity. // - options - pass nil to accept the default values. func NewPoolsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*PoolsClient, error) { diff --git a/packages/typespec-go/test/armdevopsinfrastructure/zz_resourcedetails_client.go b/packages/typespec-go/test/armdevopsinfrastructure/zz_resourcedetails_client.go index 06d146d4c..fa014a5b2 100644 --- a/packages/typespec-go/test/armdevopsinfrastructure/zz_resourcedetails_client.go +++ b/packages/typespec-go/test/armdevopsinfrastructure/zz_resourcedetails_client.go @@ -24,7 +24,7 @@ type ResourceDetailsClient struct { } // NewResourceDetailsClient creates a new instance of ResourceDetailsClient with the specified values. -// - subscriptionID - The ID of the target subscription. +// - subscriptionID - The ID of the target subscription. The value must be an UUID. // - credential - used to authorize requests. Usually a credential from azidentity. // - options - pass nil to accept the default values. func NewResourceDetailsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*ResourceDetailsClient, error) { diff --git a/packages/typespec-go/test/armdevopsinfrastructure/zz_responses.go b/packages/typespec-go/test/armdevopsinfrastructure/zz_responses.go index a8a13b862..a61e1c97c 100644 --- a/packages/typespec-go/test/armdevopsinfrastructure/zz_responses.go +++ b/packages/typespec-go/test/armdevopsinfrastructure/zz_responses.go @@ -13,7 +13,7 @@ type ImageVersionsClientListByImageResponse struct { // OperationsClientListResponse contains the response from method OperationsClient.NewListPager. type OperationsClientListResponse struct { // A list of REST API operations supported by an Azure Resource Provider. It contains an URL link to get the next set of results. - PagedOperation + OperationListResult } // PoolsClientCreateOrUpdateResponse contains the response from method PoolsClient.BeginCreateOrUpdate. diff --git a/packages/typespec-go/test/armdevopsinfrastructure/zz_sku_client.go b/packages/typespec-go/test/armdevopsinfrastructure/zz_sku_client.go index f287c43f7..c176f8826 100644 --- a/packages/typespec-go/test/armdevopsinfrastructure/zz_sku_client.go +++ b/packages/typespec-go/test/armdevopsinfrastructure/zz_sku_client.go @@ -24,7 +24,7 @@ type SKUClient struct { } // NewSKUClient creates a new instance of SKUClient with the specified values. -// - subscriptionID - The ID of the target subscription. +// - subscriptionID - The ID of the target subscription. The value must be an UUID. // - credential - used to authorize requests. Usually a credential from azidentity. // - options - pass nil to accept the default values. func NewSKUClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*SKUClient, error) { diff --git a/packages/typespec-go/test/armdevopsinfrastructure/zz_subscriptionusages_client.go b/packages/typespec-go/test/armdevopsinfrastructure/zz_subscriptionusages_client.go index 1c98849b8..8b42d3aee 100644 --- a/packages/typespec-go/test/armdevopsinfrastructure/zz_subscriptionusages_client.go +++ b/packages/typespec-go/test/armdevopsinfrastructure/zz_subscriptionusages_client.go @@ -24,7 +24,7 @@ type SubscriptionUsagesClient struct { } // NewSubscriptionUsagesClient creates a new instance of SubscriptionUsagesClient with the specified values. -// - subscriptionID - The ID of the target subscription. +// - subscriptionID - The ID of the target subscription. The value must be an UUID. // - credential - used to authorize requests. Usually a credential from azidentity. // - options - pass nil to accept the default values. func NewSubscriptionUsagesClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*SubscriptionUsagesClient, error) { diff --git a/packages/typespec-go/test/armdevopsinfrastructure/zz_time_rfc3339.go b/packages/typespec-go/test/armdevopsinfrastructure/zz_time_rfc3339.go new file mode 100644 index 000000000..eb4674ef8 --- /dev/null +++ b/packages/typespec-go/test/armdevopsinfrastructure/zz_time_rfc3339.go @@ -0,0 +1,109 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) Go Code Generator. DO NOT EDIT. + +package armdevopsinfrastructure + +import ( + "encoding/json" + "fmt" + "github.com/Azure/azure-sdk-for-go/sdk/azcore" + "reflect" + "regexp" + "strings" + "time" +) + +// Azure reports time in UTC but it doesn't include the 'Z' time zone suffix in some cases. +var tzOffsetRegex = regexp.MustCompile(`(?:Z|z|\+|-)(?:\d+:\d+)*"*$`) + +const ( + utcDateTime = "2006-01-02T15:04:05.999999999" + utcDateTimeJSON = `"` + utcDateTime + `"` + utcDateTimeNoT = "2006-01-02 15:04:05.999999999" + utcDateTimeJSONNoT = `"` + utcDateTimeNoT + `"` + dateTimeNoT = `2006-01-02 15:04:05.999999999Z07:00` + dateTimeJSON = `"` + time.RFC3339Nano + `"` + dateTimeJSONNoT = `"` + dateTimeNoT + `"` +) + +type dateTimeRFC3339 time.Time + +func (t dateTimeRFC3339) MarshalJSON() ([]byte, error) { + tt := time.Time(t) + return tt.MarshalJSON() +} + +func (t dateTimeRFC3339) MarshalText() ([]byte, error) { + tt := time.Time(t) + return tt.MarshalText() +} + +func (t *dateTimeRFC3339) UnmarshalJSON(data []byte) error { + tzOffset := tzOffsetRegex.Match(data) + hasT := strings.Contains(string(data), "T") || strings.Contains(string(data), "t") + var layout string + if tzOffset && hasT { + layout = dateTimeJSON + } else if tzOffset { + layout = dateTimeJSONNoT + } else if hasT { + layout = utcDateTimeJSON + } else { + layout = utcDateTimeJSONNoT + } + return t.Parse(layout, string(data)) +} + +func (t *dateTimeRFC3339) UnmarshalText(data []byte) error { + if len(data) == 0 { + return nil + } + tzOffset := tzOffsetRegex.Match(data) + hasT := strings.Contains(string(data), "T") || strings.Contains(string(data), "t") + var layout string + if tzOffset && hasT { + layout = time.RFC3339Nano + } else if tzOffset { + layout = dateTimeNoT + } else if hasT { + layout = utcDateTime + } else { + layout = utcDateTimeNoT + } + return t.Parse(layout, string(data)) +} + +func (t *dateTimeRFC3339) Parse(layout, value string) error { + p, err := time.Parse(layout, strings.ToUpper(value)) + *t = dateTimeRFC3339(p) + return err +} + +func (t dateTimeRFC3339) String() string { + return time.Time(t).Format(time.RFC3339Nano) +} + +func populateDateTimeRFC3339(m map[string]any, k string, t *time.Time) { + if t == nil { + return + } else if azcore.IsNullValue(t) { + m[k] = nil + return + } else if reflect.ValueOf(t).IsNil() { + return + } + m[k] = (*dateTimeRFC3339)(t) +} + +func unpopulateDateTimeRFC3339(data json.RawMessage, fn string, t **time.Time) error { + if data == nil || string(data) == "null" { + return nil + } + var aux dateTimeRFC3339 + if err := json.Unmarshal(data, &aux); err != nil { + return fmt.Errorf("struct field %s: %v", fn, err) + } + *t = (*time.Time)(&aux) + return nil +} diff --git a/packages/typespec-go/test/armlargeinstance/fake/zz_date_type.go b/packages/typespec-go/test/armlargeinstance/fake/zz_date_type.go deleted file mode 100644 index 1364caea1..000000000 --- a/packages/typespec-go/test/armlargeinstance/fake/zz_date_type.go +++ /dev/null @@ -1,54 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) Go Code Generator. DO NOT EDIT. - -package fake - -import ( - "encoding/json" - "fmt" - "github.com/Azure/azure-sdk-for-go/sdk/azcore" - "reflect" - "time" -) - -const ( - fullDateJSON = `"2006-01-02"` - jsonFormat = `"%04d-%02d-%02d"` -) - -type dateType time.Time - -func (t dateType) MarshalJSON() ([]byte, error) { - return []byte(fmt.Sprintf(jsonFormat, time.Time(t).Year(), time.Time(t).Month(), time.Time(t).Day())), nil -} - -func (d *dateType) UnmarshalJSON(data []byte) (err error) { - t, err := time.Parse(fullDateJSON, string(data)) - *d = (dateType)(t) - return err -} - -func populateDateType(m map[string]any, k string, t *time.Time) { - if t == nil { - return - } else if azcore.IsNullValue(t) { - m[k] = nil - return - } else if reflect.ValueOf(t).IsNil() { - return - } - m[k] = (*dateType)(t) -} - -func unpopulateDateType(data json.RawMessage, fn string, t **time.Time) error { - if data == nil || string(data) == "null" { - return nil - } - var aux dateType - if err := json.Unmarshal(data, &aux); err != nil { - return fmt.Errorf("struct field %s: %v", fn, err) - } - *t = (*time.Time)(&aux) - return nil -} diff --git a/packages/typespec-go/test/armlargeinstance/zz_azurelargeinstances_client.go b/packages/typespec-go/test/armlargeinstance/zz_azurelargeinstances_client.go index 4baf391a7..978aaa33d 100644 --- a/packages/typespec-go/test/armlargeinstance/zz_azurelargeinstances_client.go +++ b/packages/typespec-go/test/armlargeinstance/zz_azurelargeinstances_client.go @@ -24,7 +24,7 @@ type AzureLargeInstancesClient struct { } // NewAzureLargeInstancesClient creates a new instance of AzureLargeInstancesClient with the specified values. -// - subscriptionID - The ID of the target subscription. +// - subscriptionID - The ID of the target subscription. The value must be an UUID. // - credential - used to authorize requests. Usually a credential from azidentity. // - options - pass nil to accept the default values. func NewAzureLargeInstancesClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*AzureLargeInstancesClient, error) { diff --git a/packages/typespec-go/test/armlargeinstance/zz_azurelargestorageinstances_client.go b/packages/typespec-go/test/armlargeinstance/zz_azurelargestorageinstances_client.go index 08460509f..f5727a013 100644 --- a/packages/typespec-go/test/armlargeinstance/zz_azurelargestorageinstances_client.go +++ b/packages/typespec-go/test/armlargeinstance/zz_azurelargestorageinstances_client.go @@ -24,7 +24,7 @@ type AzureLargeStorageInstancesClient struct { } // NewAzureLargeStorageInstancesClient creates a new instance of AzureLargeStorageInstancesClient with the specified values. -// - subscriptionID - The ID of the target subscription. +// - subscriptionID - The ID of the target subscription. The value must be an UUID. // - credential - used to authorize requests. Usually a credential from azidentity. // - options - pass nil to accept the default values. func NewAzureLargeStorageInstancesClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*AzureLargeStorageInstancesClient, error) { diff --git a/packages/typespec-go/test/armlargeinstance/zz_client_factory.go b/packages/typespec-go/test/armlargeinstance/zz_client_factory.go index 0bee83ee0..216337f70 100644 --- a/packages/typespec-go/test/armlargeinstance/zz_client_factory.go +++ b/packages/typespec-go/test/armlargeinstance/zz_client_factory.go @@ -18,7 +18,7 @@ type ClientFactory struct { // NewClientFactory creates a new instance of ClientFactory with the specified values. // The parameter values will be propagated to any client created from this factory. -// - subscriptionID - The ID of the target subscription. +// - subscriptionID - The ID of the target subscription. The value must be an UUID. // - credential - used to authorize requests. Usually a credential from azidentity. // - options - pass nil to accept the default values. func NewClientFactory(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*ClientFactory, error) { diff --git a/packages/typespec-go/test/armlargeinstance/zz_date_type.go b/packages/typespec-go/test/armlargeinstance/zz_date_type.go deleted file mode 100644 index a116ffb19..000000000 --- a/packages/typespec-go/test/armlargeinstance/zz_date_type.go +++ /dev/null @@ -1,54 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) Go Code Generator. DO NOT EDIT. - -package armlargeinstance - -import ( - "encoding/json" - "fmt" - "github.com/Azure/azure-sdk-for-go/sdk/azcore" - "reflect" - "time" -) - -const ( - fullDateJSON = `"2006-01-02"` - jsonFormat = `"%04d-%02d-%02d"` -) - -type dateType time.Time - -func (t dateType) MarshalJSON() ([]byte, error) { - return []byte(fmt.Sprintf(jsonFormat, time.Time(t).Year(), time.Time(t).Month(), time.Time(t).Day())), nil -} - -func (d *dateType) UnmarshalJSON(data []byte) (err error) { - t, err := time.Parse(fullDateJSON, string(data)) - *d = (dateType)(t) - return err -} - -func populateDateType(m map[string]any, k string, t *time.Time) { - if t == nil { - return - } else if azcore.IsNullValue(t) { - m[k] = nil - return - } else if reflect.ValueOf(t).IsNil() { - return - } - m[k] = (*dateType)(t) -} - -func unpopulateDateType(data json.RawMessage, fn string, t **time.Time) error { - if data == nil || string(data) == "null" { - return nil - } - var aux dateType - if err := json.Unmarshal(data, &aux); err != nil { - return fmt.Errorf("struct field %s: %v", fn, err) - } - *t = (*time.Time)(&aux) - return nil -} diff --git a/packages/typespec-go/test/armlargeinstance/zz_models.go b/packages/typespec-go/test/armlargeinstance/zz_models.go index f902cf904..cee9ded80 100644 --- a/packages/typespec-go/test/armlargeinstance/zz_models.go +++ b/packages/typespec-go/test/armlargeinstance/zz_models.go @@ -201,11 +201,18 @@ type OperationDisplay struct { Resource *string } +// OperationListResult - A list of REST API operations supported by an Azure Resource Provider. It contains an URL link to +// get the next set of results. +type OperationListResult struct { + // REQUIRED; The Operation items on this page + Value []*Operation + + // The link to the next page of items + NextLink *string +} + // OperationStatusResult - The current status of an async operation. type OperationStatusResult struct { - // REQUIRED; The operations list. - Operations []*OperationStatusResult - // REQUIRED; Operation status. Status *string @@ -221,8 +228,11 @@ type OperationStatusResult struct { // Name of the async operation. Name *string + // The operations list. + Operations []*OperationStatusResult + // Percent of the operation that is complete. - PercentComplete *int32 + PercentComplete *float64 // The start time of the operation. StartTime *time.Time @@ -243,16 +253,6 @@ type OsProfile struct { Version *string } -// PagedOperation - A list of REST API operations supported by an Azure Resource Provider. It contains an URL link to get -// the next set of results. -type PagedOperation struct { - // REQUIRED; The Operation items on this page - Value []*Operation - - // The link to the next page of items - NextLink *string -} - // Properties - Describes the properties of an Azure Large Instance. type Properties struct { // Specifies the Azure Large Instance unique ID. @@ -332,7 +332,7 @@ type StorageProperties struct { // SystemData - Metadata pertaining to creation and last modification of the resource. type SystemData struct { - // The type of identity that created the resource. + // The timestamp of resource creation (UTC). CreatedAt *time.Time // The identity that created the resource. diff --git a/packages/typespec-go/test/armlargeinstance/zz_models_serde.go b/packages/typespec-go/test/armlargeinstance/zz_models_serde.go index 6e48ea809..33139f9d5 100644 --- a/packages/typespec-go/test/armlargeinstance/zz_models_serde.go +++ b/packages/typespec-go/test/armlargeinstance/zz_models_serde.go @@ -540,6 +540,37 @@ func (o *OperationDisplay) UnmarshalJSON(data []byte) error { return nil } +// MarshalJSON implements the json.Marshaller interface for type OperationListResult. +func (o OperationListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "nextLink", o.NextLink) + populate(objectMap, "value", o.Value) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type OperationListResult. +func (o *OperationListResult) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return fmt.Errorf("unmarshalling type %T: %v", o, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "nextLink": + err = unpopulate(val, "NextLink", &o.NextLink) + delete(rawMsg, key) + case "value": + err = unpopulate(val, "Value", &o.Value) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", o, err) + } + } + return nil +} + // MarshalJSON implements the json.Marshaller interface for type OperationStatusResult. func (o OperationStatusResult) MarshalJSON() ([]byte, error) { objectMap := make(map[string]any) @@ -634,37 +665,6 @@ func (o *OsProfile) UnmarshalJSON(data []byte) error { return nil } -// MarshalJSON implements the json.Marshaller interface for type PagedOperation. -func (p PagedOperation) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]any) - populate(objectMap, "nextLink", p.NextLink) - populate(objectMap, "value", p.Value) - return json.Marshal(objectMap) -} - -// UnmarshalJSON implements the json.Unmarshaller interface for type PagedOperation. -func (p *PagedOperation) UnmarshalJSON(data []byte) error { - var rawMsg map[string]json.RawMessage - if err := json.Unmarshal(data, &rawMsg); err != nil { - return fmt.Errorf("unmarshalling type %T: %v", p, err) - } - for key, val := range rawMsg { - var err error - switch key { - case "nextLink": - err = unpopulate(val, "NextLink", &p.NextLink) - delete(rawMsg, key) - case "value": - err = unpopulate(val, "Value", &p.Value) - delete(rawMsg, key) - } - if err != nil { - return fmt.Errorf("unmarshalling type %T: %v", p, err) - } - } - return nil -} - // MarshalJSON implements the json.Marshaller interface for type Properties. func (p Properties) MarshalJSON() ([]byte, error) { objectMap := make(map[string]any) @@ -844,10 +844,10 @@ func (s *StorageProperties) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type SystemData. func (s SystemData) MarshalJSON() ([]byte, error) { objectMap := make(map[string]any) - populateDateType(objectMap, "createdAt", s.CreatedAt) + populateDateTimeRFC3339(objectMap, "createdAt", s.CreatedAt) populate(objectMap, "createdBy", s.CreatedBy) populate(objectMap, "createdByType", s.CreatedByType) - populateDateType(objectMap, "lastModifiedAt", s.LastModifiedAt) + populateDateTimeRFC3339(objectMap, "lastModifiedAt", s.LastModifiedAt) populate(objectMap, "lastModifiedBy", s.LastModifiedBy) populate(objectMap, "lastModifiedByType", s.LastModifiedByType) return json.Marshal(objectMap) @@ -863,7 +863,7 @@ func (s *SystemData) UnmarshalJSON(data []byte) error { var err error switch key { case "createdAt": - err = unpopulateDateType(val, "CreatedAt", &s.CreatedAt) + err = unpopulateDateTimeRFC3339(val, "CreatedAt", &s.CreatedAt) delete(rawMsg, key) case "createdBy": err = unpopulate(val, "CreatedBy", &s.CreatedBy) @@ -872,7 +872,7 @@ func (s *SystemData) UnmarshalJSON(data []byte) error { err = unpopulate(val, "CreatedByType", &s.CreatedByType) delete(rawMsg, key) case "lastModifiedAt": - err = unpopulateDateType(val, "LastModifiedAt", &s.LastModifiedAt) + err = unpopulateDateTimeRFC3339(val, "LastModifiedAt", &s.LastModifiedAt) delete(rawMsg, key) case "lastModifiedBy": err = unpopulate(val, "LastModifiedBy", &s.LastModifiedBy) diff --git a/packages/typespec-go/test/armlargeinstance/zz_operations_client.go b/packages/typespec-go/test/armlargeinstance/zz_operations_client.go index ccaff97b0..07563bad5 100644 --- a/packages/typespec-go/test/armlargeinstance/zz_operations_client.go +++ b/packages/typespec-go/test/armlargeinstance/zz_operations_client.go @@ -77,7 +77,7 @@ func (client *OperationsClient) listCreateRequest(ctx context.Context, _ *Operat // listHandleResponse handles the List response. func (client *OperationsClient) listHandleResponse(resp *http.Response) (OperationsClientListResponse, error) { result := OperationsClientListResponse{} - if err := runtime.UnmarshalAsJSON(resp, &result.PagedOperation); err != nil { + if err := runtime.UnmarshalAsJSON(resp, &result.OperationListResult); err != nil { return OperationsClientListResponse{}, err } return result, nil diff --git a/packages/typespec-go/test/armlargeinstance/zz_responses.go b/packages/typespec-go/test/armlargeinstance/zz_responses.go index 2398b7272..8bf4b110e 100644 --- a/packages/typespec-go/test/armlargeinstance/zz_responses.go +++ b/packages/typespec-go/test/armlargeinstance/zz_responses.go @@ -76,5 +76,5 @@ type AzureLargeStorageInstancesClientUpdateResponse struct { // OperationsClientListResponse contains the response from method OperationsClient.NewListPager. type OperationsClientListResponse struct { // A list of REST API operations supported by an Azure Resource Provider. It contains an URL link to get the next set of results. - PagedOperation + OperationListResult } diff --git a/packages/typespec-go/test/armloadtestservice/fake/zz_date_type.go b/packages/typespec-go/test/armloadtestservice/fake/zz_date_type.go deleted file mode 100644 index 1364caea1..000000000 --- a/packages/typespec-go/test/armloadtestservice/fake/zz_date_type.go +++ /dev/null @@ -1,54 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) Go Code Generator. DO NOT EDIT. - -package fake - -import ( - "encoding/json" - "fmt" - "github.com/Azure/azure-sdk-for-go/sdk/azcore" - "reflect" - "time" -) - -const ( - fullDateJSON = `"2006-01-02"` - jsonFormat = `"%04d-%02d-%02d"` -) - -type dateType time.Time - -func (t dateType) MarshalJSON() ([]byte, error) { - return []byte(fmt.Sprintf(jsonFormat, time.Time(t).Year(), time.Time(t).Month(), time.Time(t).Day())), nil -} - -func (d *dateType) UnmarshalJSON(data []byte) (err error) { - t, err := time.Parse(fullDateJSON, string(data)) - *d = (dateType)(t) - return err -} - -func populateDateType(m map[string]any, k string, t *time.Time) { - if t == nil { - return - } else if azcore.IsNullValue(t) { - m[k] = nil - return - } else if reflect.ValueOf(t).IsNil() { - return - } - m[k] = (*dateType)(t) -} - -func unpopulateDateType(data json.RawMessage, fn string, t **time.Time) error { - if data == nil || string(data) == "null" { - return nil - } - var aux dateType - if err := json.Unmarshal(data, &aux); err != nil { - return fmt.Errorf("struct field %s: %v", fn, err) - } - *t = (*time.Time)(&aux) - return nil -} diff --git a/packages/typespec-go/test/armloadtestservice/fake/zz_time_rfc3339.go b/packages/typespec-go/test/armloadtestservice/fake/zz_time_rfc3339.go new file mode 100644 index 000000000..87ee11e83 --- /dev/null +++ b/packages/typespec-go/test/armloadtestservice/fake/zz_time_rfc3339.go @@ -0,0 +1,109 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) Go Code Generator. DO NOT EDIT. + +package fake + +import ( + "encoding/json" + "fmt" + "github.com/Azure/azure-sdk-for-go/sdk/azcore" + "reflect" + "regexp" + "strings" + "time" +) + +// Azure reports time in UTC but it doesn't include the 'Z' time zone suffix in some cases. +var tzOffsetRegex = regexp.MustCompile(`(?:Z|z|\+|-)(?:\d+:\d+)*"*$`) + +const ( + utcDateTime = "2006-01-02T15:04:05.999999999" + utcDateTimeJSON = `"` + utcDateTime + `"` + utcDateTimeNoT = "2006-01-02 15:04:05.999999999" + utcDateTimeJSONNoT = `"` + utcDateTimeNoT + `"` + dateTimeNoT = `2006-01-02 15:04:05.999999999Z07:00` + dateTimeJSON = `"` + time.RFC3339Nano + `"` + dateTimeJSONNoT = `"` + dateTimeNoT + `"` +) + +type dateTimeRFC3339 time.Time + +func (t dateTimeRFC3339) MarshalJSON() ([]byte, error) { + tt := time.Time(t) + return tt.MarshalJSON() +} + +func (t dateTimeRFC3339) MarshalText() ([]byte, error) { + tt := time.Time(t) + return tt.MarshalText() +} + +func (t *dateTimeRFC3339) UnmarshalJSON(data []byte) error { + tzOffset := tzOffsetRegex.Match(data) + hasT := strings.Contains(string(data), "T") || strings.Contains(string(data), "t") + var layout string + if tzOffset && hasT { + layout = dateTimeJSON + } else if tzOffset { + layout = dateTimeJSONNoT + } else if hasT { + layout = utcDateTimeJSON + } else { + layout = utcDateTimeJSONNoT + } + return t.Parse(layout, string(data)) +} + +func (t *dateTimeRFC3339) UnmarshalText(data []byte) error { + if len(data) == 0 { + return nil + } + tzOffset := tzOffsetRegex.Match(data) + hasT := strings.Contains(string(data), "T") || strings.Contains(string(data), "t") + var layout string + if tzOffset && hasT { + layout = time.RFC3339Nano + } else if tzOffset { + layout = dateTimeNoT + } else if hasT { + layout = utcDateTime + } else { + layout = utcDateTimeNoT + } + return t.Parse(layout, string(data)) +} + +func (t *dateTimeRFC3339) Parse(layout, value string) error { + p, err := time.Parse(layout, strings.ToUpper(value)) + *t = dateTimeRFC3339(p) + return err +} + +func (t dateTimeRFC3339) String() string { + return time.Time(t).Format(time.RFC3339Nano) +} + +func populateDateTimeRFC3339(m map[string]any, k string, t *time.Time) { + if t == nil { + return + } else if azcore.IsNullValue(t) { + m[k] = nil + return + } else if reflect.ValueOf(t).IsNil() { + return + } + m[k] = (*dateTimeRFC3339)(t) +} + +func unpopulateDateTimeRFC3339(data json.RawMessage, fn string, t **time.Time) error { + if data == nil || string(data) == "null" { + return nil + } + var aux dateTimeRFC3339 + if err := json.Unmarshal(data, &aux); err != nil { + return fmt.Errorf("struct field %s: %v", fn, err) + } + *t = (*time.Time)(&aux) + return nil +} diff --git a/packages/typespec-go/test/armloadtestservice/zz_client_factory.go b/packages/typespec-go/test/armloadtestservice/zz_client_factory.go index 4a291958b..62f68761c 100644 --- a/packages/typespec-go/test/armloadtestservice/zz_client_factory.go +++ b/packages/typespec-go/test/armloadtestservice/zz_client_factory.go @@ -18,7 +18,7 @@ type ClientFactory struct { // NewClientFactory creates a new instance of ClientFactory with the specified values. // The parameter values will be propagated to any client created from this factory. -// - subscriptionID - The ID of the target subscription. +// - subscriptionID - The ID of the target subscription. The value must be an UUID. // - credential - used to authorize requests. Usually a credential from azidentity. // - options - pass nil to accept the default values. func NewClientFactory(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*ClientFactory, error) { diff --git a/packages/typespec-go/test/armloadtestservice/zz_constants.go b/packages/typespec-go/test/armloadtestservice/zz_constants.go index 2dbd7727c..b468c6314 100644 --- a/packages/typespec-go/test/armloadtestservice/zz_constants.go +++ b/packages/typespec-go/test/armloadtestservice/zz_constants.go @@ -48,14 +48,14 @@ func PossibleCreatedByTypeValues() []CreatedByType { } } -// ManagedServiceIdentityType - The kind of managed identity assigned to this resource. +// ManagedServiceIdentityType - Type of managed service identity (where both SystemAssigned and UserAssigned types are allowed). type ManagedServiceIdentityType string const ( // ManagedServiceIdentityTypeNone - No managed identity. ManagedServiceIdentityTypeNone ManagedServiceIdentityType = "None" // ManagedServiceIdentityTypeSystemAndUserAssigned - System and user assigned managed identity. - ManagedServiceIdentityTypeSystemAndUserAssigned ManagedServiceIdentityType = "SystemAssigned, UserAssigned" + ManagedServiceIdentityTypeSystemAndUserAssigned ManagedServiceIdentityType = "SystemAssigned,UserAssigned" // ManagedServiceIdentityTypeSystemAssigned - System assigned managed identity. ManagedServiceIdentityTypeSystemAssigned ManagedServiceIdentityType = "SystemAssigned" // ManagedServiceIdentityTypeUserAssigned - User assigned managed identity. diff --git a/packages/typespec-go/test/armloadtestservice/zz_date_type.go b/packages/typespec-go/test/armloadtestservice/zz_date_type.go deleted file mode 100644 index e3be82c1e..000000000 --- a/packages/typespec-go/test/armloadtestservice/zz_date_type.go +++ /dev/null @@ -1,54 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) Go Code Generator. DO NOT EDIT. - -package armloadtestservice - -import ( - "encoding/json" - "fmt" - "github.com/Azure/azure-sdk-for-go/sdk/azcore" - "reflect" - "time" -) - -const ( - fullDateJSON = `"2006-01-02"` - jsonFormat = `"%04d-%02d-%02d"` -) - -type dateType time.Time - -func (t dateType) MarshalJSON() ([]byte, error) { - return []byte(fmt.Sprintf(jsonFormat, time.Time(t).Year(), time.Time(t).Month(), time.Time(t).Day())), nil -} - -func (d *dateType) UnmarshalJSON(data []byte) (err error) { - t, err := time.Parse(fullDateJSON, string(data)) - *d = (dateType)(t) - return err -} - -func populateDateType(m map[string]any, k string, t *time.Time) { - if t == nil { - return - } else if azcore.IsNullValue(t) { - m[k] = nil - return - } else if reflect.ValueOf(t).IsNil() { - return - } - m[k] = (*dateType)(t) -} - -func unpopulateDateType(data json.RawMessage, fn string, t **time.Time) error { - if data == nil || string(data) == "null" { - return nil - } - var aux dateType - if err := json.Unmarshal(data, &aux); err != nil { - return fmt.Errorf("struct field %s: %v", fn, err) - } - *t = (*time.Time)(&aux) - return nil -} diff --git a/packages/typespec-go/test/armloadtestservice/zz_loadtests_client.go b/packages/typespec-go/test/armloadtestservice/zz_loadtests_client.go index a42d0f3e2..bd16bdb06 100644 --- a/packages/typespec-go/test/armloadtestservice/zz_loadtests_client.go +++ b/packages/typespec-go/test/armloadtestservice/zz_loadtests_client.go @@ -24,7 +24,7 @@ type LoadTestsClient struct { } // NewLoadTestsClient creates a new instance of LoadTestsClient with the specified values. -// - subscriptionID - The ID of the target subscription. +// - subscriptionID - The ID of the target subscription. The value must be an UUID. // - credential - used to authorize requests. Usually a credential from azidentity. // - options - pass nil to accept the default values. func NewLoadTestsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*LoadTestsClient, error) { diff --git a/packages/typespec-go/test/armloadtestservice/zz_models.go b/packages/typespec-go/test/armloadtestservice/zz_models.go index b33379eb7..4b66d54f0 100644 --- a/packages/typespec-go/test/armloadtestservice/zz_models.go +++ b/packages/typespec-go/test/armloadtestservice/zz_models.go @@ -142,19 +142,19 @@ type LoadTestResourceUpdateProperties struct { Encryption *EncryptionProperties } -// ManagedServiceIdentity - The properties of the managed service identities assigned to this resource. +// ManagedServiceIdentity - Managed service identity (system assigned and/or user assigned identities) type ManagedServiceIdentity struct { // REQUIRED; The type of managed identity assigned to this resource. Type *ManagedServiceIdentityType - // The active directory identifier of this principal. + // The service principal ID of the system assigned identity. This property will only be provided for a system assigned identity. PrincipalID *string - // The Active Directory tenant id of the principal. + // The tenant ID of the system assigned identity. This property will only be provided for a system assigned identity. TenantID *string // The identities assigned to this resource by the user. - UserAssignedIdentities *UserAssignedIdentities + UserAssignedIdentities map[string]*UserAssignedIdentity } // Operation - Details of a REST API operation, returned from the Resource Provider Operations API @@ -194,6 +194,16 @@ type OperationDisplay struct { Resource *string } +// OperationListResult - A list of REST API operations supported by an Azure Resource Provider. It contains an URL link to +// get the next set of results. +type OperationListResult struct { + // REQUIRED; The Operation items on this page + Value []*Operation + + // The link to the next page of items + NextLink *string +} + // OutboundEnvironmentEndpoint - A collection of related endpoints from the same service for which the Batch service requires // outbound access. type OutboundEnvironmentEndpoint struct { @@ -204,16 +214,6 @@ type OutboundEnvironmentEndpoint struct { Endpoints []*EndpointDependency } -// PagedOperation - A list of REST API operations supported by an Azure Resource Provider. It contains an URL link to get -// the next set of results. -type PagedOperation struct { - // REQUIRED; The Operation items on this page - Value []*Operation - - // The link to the next page of items - NextLink *string -} - // PagedOutboundEnvironmentEndpoint - Values returned by the List operation. type PagedOutboundEnvironmentEndpoint struct { // REQUIRED; The OutboundEnvironmentEndpoint items on this page @@ -294,7 +294,7 @@ type QuotaResourceProperties struct { // SystemData - Metadata pertaining to creation and last modification of the resource. type SystemData struct { - // The type of identity that created the resource. + // The timestamp of resource creation (UTC). CreatedAt *time.Time // The identity that created the resource. @@ -313,18 +313,11 @@ type SystemData struct { LastModifiedByType *CreatedByType } -// UserAssignedIdentities - The set of user assigned identities associated with the resource. The userAssignedIdentities dictionary -// keys will be ARM resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}. -// The dictionary values can be empty objects ({}) in requests.", -type UserAssignedIdentities struct { - AdditionalProperties map[string]*UserAssignedIdentity -} - -// UserAssignedIdentity - A managed identity assigned by the user. +// UserAssignedIdentity - User assigned identity properties type UserAssignedIdentity struct { - // The active directory client identifier for this principal. + // The client ID of the assigned identity. ClientID *string - // The active directory identifier for this principal. + // The principal ID of the assigned identity. PrincipalID *string } diff --git a/packages/typespec-go/test/armloadtestservice/zz_models_serde.go b/packages/typespec-go/test/armloadtestservice/zz_models_serde.go index 3ea993295..f20983d58 100644 --- a/packages/typespec-go/test/armloadtestservice/zz_models_serde.go +++ b/packages/typespec-go/test/armloadtestservice/zz_models_serde.go @@ -521,16 +521,16 @@ func (o *OperationDisplay) UnmarshalJSON(data []byte) error { return nil } -// MarshalJSON implements the json.Marshaller interface for type OutboundEnvironmentEndpoint. -func (o OutboundEnvironmentEndpoint) MarshalJSON() ([]byte, error) { +// MarshalJSON implements the json.Marshaller interface for type OperationListResult. +func (o OperationListResult) MarshalJSON() ([]byte, error) { objectMap := make(map[string]any) - populate(objectMap, "category", o.Category) - populate(objectMap, "endpoints", o.Endpoints) + populate(objectMap, "nextLink", o.NextLink) + populate(objectMap, "value", o.Value) return json.Marshal(objectMap) } -// UnmarshalJSON implements the json.Unmarshaller interface for type OutboundEnvironmentEndpoint. -func (o *OutboundEnvironmentEndpoint) UnmarshalJSON(data []byte) error { +// UnmarshalJSON implements the json.Unmarshaller interface for type OperationListResult. +func (o *OperationListResult) UnmarshalJSON(data []byte) error { var rawMsg map[string]json.RawMessage if err := json.Unmarshal(data, &rawMsg); err != nil { return fmt.Errorf("unmarshalling type %T: %v", o, err) @@ -538,11 +538,11 @@ func (o *OutboundEnvironmentEndpoint) UnmarshalJSON(data []byte) error { for key, val := range rawMsg { var err error switch key { - case "category": - err = unpopulate(val, "Category", &o.Category) + case "nextLink": + err = unpopulate(val, "NextLink", &o.NextLink) delete(rawMsg, key) - case "endpoints": - err = unpopulate(val, "Endpoints", &o.Endpoints) + case "value": + err = unpopulate(val, "Value", &o.Value) delete(rawMsg, key) } if err != nil { @@ -552,32 +552,32 @@ func (o *OutboundEnvironmentEndpoint) UnmarshalJSON(data []byte) error { return nil } -// MarshalJSON implements the json.Marshaller interface for type PagedOperation. -func (p PagedOperation) MarshalJSON() ([]byte, error) { +// MarshalJSON implements the json.Marshaller interface for type OutboundEnvironmentEndpoint. +func (o OutboundEnvironmentEndpoint) MarshalJSON() ([]byte, error) { objectMap := make(map[string]any) - populate(objectMap, "nextLink", p.NextLink) - populate(objectMap, "value", p.Value) + populate(objectMap, "category", o.Category) + populate(objectMap, "endpoints", o.Endpoints) return json.Marshal(objectMap) } -// UnmarshalJSON implements the json.Unmarshaller interface for type PagedOperation. -func (p *PagedOperation) UnmarshalJSON(data []byte) error { +// UnmarshalJSON implements the json.Unmarshaller interface for type OutboundEnvironmentEndpoint. +func (o *OutboundEnvironmentEndpoint) UnmarshalJSON(data []byte) error { var rawMsg map[string]json.RawMessage if err := json.Unmarshal(data, &rawMsg); err != nil { - return fmt.Errorf("unmarshalling type %T: %v", p, err) + return fmt.Errorf("unmarshalling type %T: %v", o, err) } for key, val := range rawMsg { var err error switch key { - case "nextLink": - err = unpopulate(val, "NextLink", &p.NextLink) + case "category": + err = unpopulate(val, "Category", &o.Category) delete(rawMsg, key) - case "value": - err = unpopulate(val, "Value", &p.Value) + case "endpoints": + err = unpopulate(val, "Endpoints", &o.Endpoints) delete(rawMsg, key) } if err != nil { - return fmt.Errorf("unmarshalling type %T: %v", p, err) + return fmt.Errorf("unmarshalling type %T: %v", o, err) } } return nil @@ -823,10 +823,10 @@ func (q *QuotaResourceProperties) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type SystemData. func (s SystemData) MarshalJSON() ([]byte, error) { objectMap := make(map[string]any) - populateDateType(objectMap, "createdAt", s.CreatedAt) + populateDateTimeRFC3339(objectMap, "createdAt", s.CreatedAt) populate(objectMap, "createdBy", s.CreatedBy) populate(objectMap, "createdByType", s.CreatedByType) - populateDateType(objectMap, "lastModifiedAt", s.LastModifiedAt) + populateDateTimeRFC3339(objectMap, "lastModifiedAt", s.LastModifiedAt) populate(objectMap, "lastModifiedBy", s.LastModifiedBy) populate(objectMap, "lastModifiedByType", s.LastModifiedByType) return json.Marshal(objectMap) @@ -842,7 +842,7 @@ func (s *SystemData) UnmarshalJSON(data []byte) error { var err error switch key { case "createdAt": - err = unpopulateDateType(val, "CreatedAt", &s.CreatedAt) + err = unpopulateDateTimeRFC3339(val, "CreatedAt", &s.CreatedAt) delete(rawMsg, key) case "createdBy": err = unpopulate(val, "CreatedBy", &s.CreatedBy) @@ -851,7 +851,7 @@ func (s *SystemData) UnmarshalJSON(data []byte) error { err = unpopulate(val, "CreatedByType", &s.CreatedByType) delete(rawMsg, key) case "lastModifiedAt": - err = unpopulateDateType(val, "LastModifiedAt", &s.LastModifiedAt) + err = unpopulateDateTimeRFC3339(val, "LastModifiedAt", &s.LastModifiedAt) delete(rawMsg, key) case "lastModifiedBy": err = unpopulate(val, "LastModifiedBy", &s.LastModifiedBy) @@ -867,44 +867,6 @@ func (s *SystemData) UnmarshalJSON(data []byte) error { return nil } -// MarshalJSON implements the json.Marshaller interface for type UserAssignedIdentities. -func (u UserAssignedIdentities) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]any) - if u.AdditionalProperties != nil { - for key, val := range u.AdditionalProperties { - objectMap[key] = val - } - } - return json.Marshal(objectMap) -} - -// UnmarshalJSON implements the json.Unmarshaller interface for type UserAssignedIdentities. -func (u *UserAssignedIdentities) UnmarshalJSON(data []byte) error { - var rawMsg map[string]json.RawMessage - if err := json.Unmarshal(data, &rawMsg); err != nil { - return fmt.Errorf("unmarshalling type %T: %v", u, err) - } - for key, val := range rawMsg { - var err error - switch key { - default: - if u.AdditionalProperties == nil { - u.AdditionalProperties = map[string]*UserAssignedIdentity{} - } - if val != nil { - var aux UserAssignedIdentity - err = json.Unmarshal(val, &aux) - u.AdditionalProperties[key] = &aux - } - delete(rawMsg, key) - } - if err != nil { - return fmt.Errorf("unmarshalling type %T: %v", u, err) - } - } - return nil -} - // MarshalJSON implements the json.Marshaller interface for type UserAssignedIdentity. func (u UserAssignedIdentity) MarshalJSON() ([]byte, error) { objectMap := make(map[string]any) diff --git a/packages/typespec-go/test/armloadtestservice/zz_operations_client.go b/packages/typespec-go/test/armloadtestservice/zz_operations_client.go index 24b04a64c..9441dca4f 100644 --- a/packages/typespec-go/test/armloadtestservice/zz_operations_client.go +++ b/packages/typespec-go/test/armloadtestservice/zz_operations_client.go @@ -77,7 +77,7 @@ func (client *OperationsClient) listCreateRequest(ctx context.Context, _ *Operat // listHandleResponse handles the List response. func (client *OperationsClient) listHandleResponse(resp *http.Response) (OperationsClientListResponse, error) { result := OperationsClientListResponse{} - if err := runtime.UnmarshalAsJSON(resp, &result.PagedOperation); err != nil { + if err := runtime.UnmarshalAsJSON(resp, &result.OperationListResult); err != nil { return OperationsClientListResponse{}, err } return result, nil diff --git a/packages/typespec-go/test/armloadtestservice/zz_quotas_client.go b/packages/typespec-go/test/armloadtestservice/zz_quotas_client.go index 86dadc078..f2f44e5bf 100644 --- a/packages/typespec-go/test/armloadtestservice/zz_quotas_client.go +++ b/packages/typespec-go/test/armloadtestservice/zz_quotas_client.go @@ -24,7 +24,7 @@ type QuotasClient struct { } // NewQuotasClient creates a new instance of QuotasClient with the specified values. -// - subscriptionID - The ID of the target subscription. +// - subscriptionID - The ID of the target subscription. The value must be an UUID. // - credential - used to authorize requests. Usually a credential from azidentity. // - options - pass nil to accept the default values. func NewQuotasClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*QuotasClient, error) { @@ -43,7 +43,7 @@ func NewQuotasClient(subscriptionID string, credential azcore.TokenCredential, o // If the operation fails it returns an *azcore.ResponseError type. // // Generated from API version 2022-12-01 -// - location - The location name. +// - location - The name of the Azure region. // - quotaBucketName - The quota name. // - body - The content of the action request // - options - QuotasClientCheckAvailabilityOptions contains the optional parameters for the QuotasClient.CheckAvailability @@ -113,7 +113,7 @@ func (client *QuotasClient) checkAvailabilityHandleResponse(resp *http.Response) // If the operation fails it returns an *azcore.ResponseError type. // // Generated from API version 2022-12-01 -// - location - The location name. +// - location - The name of the Azure region. // - quotaBucketName - The quota name. // - options - QuotasClientGetOptions contains the optional parameters for the QuotasClient.Get method. func (client *QuotasClient) Get(ctx context.Context, location string, quotaBucketName string, options *QuotasClientGetOptions) (QuotasClientGetResponse, error) { @@ -176,7 +176,7 @@ func (client *QuotasClient) getHandleResponse(resp *http.Response) (QuotasClient // NewListPager - List quotas for a given subscription Id. // // Generated from API version 2022-12-01 -// - location - The location name. +// - location - The name of the Azure region. // - options - QuotasClientListOptions contains the optional parameters for the QuotasClient.NewListPager method. func (client *QuotasClient) NewListPager(location string, options *QuotasClientListOptions) *runtime.Pager[QuotasClientListResponse] { return runtime.NewPager(runtime.PagingHandler[QuotasClientListResponse]{ diff --git a/packages/typespec-go/test/armloadtestservice/zz_responses.go b/packages/typespec-go/test/armloadtestservice/zz_responses.go index 3ff038a44..26619285f 100644 --- a/packages/typespec-go/test/armloadtestservice/zz_responses.go +++ b/packages/typespec-go/test/armloadtestservice/zz_responses.go @@ -47,7 +47,7 @@ type LoadTestsClientUpdateResponse struct { // OperationsClientListResponse contains the response from method OperationsClient.NewListPager. type OperationsClientListResponse struct { // A list of REST API operations supported by an Azure Resource Provider. It contains an URL link to get the next set of results. - PagedOperation + OperationListResult } // QuotasClientCheckAvailabilityResponse contains the response from method QuotasClient.CheckAvailability. diff --git a/packages/typespec-go/test/armloadtestservice/zz_time_rfc3339.go b/packages/typespec-go/test/armloadtestservice/zz_time_rfc3339.go new file mode 100644 index 000000000..20f8fcf80 --- /dev/null +++ b/packages/typespec-go/test/armloadtestservice/zz_time_rfc3339.go @@ -0,0 +1,109 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) Go Code Generator. DO NOT EDIT. + +package armloadtestservice + +import ( + "encoding/json" + "fmt" + "github.com/Azure/azure-sdk-for-go/sdk/azcore" + "reflect" + "regexp" + "strings" + "time" +) + +// Azure reports time in UTC but it doesn't include the 'Z' time zone suffix in some cases. +var tzOffsetRegex = regexp.MustCompile(`(?:Z|z|\+|-)(?:\d+:\d+)*"*$`) + +const ( + utcDateTime = "2006-01-02T15:04:05.999999999" + utcDateTimeJSON = `"` + utcDateTime + `"` + utcDateTimeNoT = "2006-01-02 15:04:05.999999999" + utcDateTimeJSONNoT = `"` + utcDateTimeNoT + `"` + dateTimeNoT = `2006-01-02 15:04:05.999999999Z07:00` + dateTimeJSON = `"` + time.RFC3339Nano + `"` + dateTimeJSONNoT = `"` + dateTimeNoT + `"` +) + +type dateTimeRFC3339 time.Time + +func (t dateTimeRFC3339) MarshalJSON() ([]byte, error) { + tt := time.Time(t) + return tt.MarshalJSON() +} + +func (t dateTimeRFC3339) MarshalText() ([]byte, error) { + tt := time.Time(t) + return tt.MarshalText() +} + +func (t *dateTimeRFC3339) UnmarshalJSON(data []byte) error { + tzOffset := tzOffsetRegex.Match(data) + hasT := strings.Contains(string(data), "T") || strings.Contains(string(data), "t") + var layout string + if tzOffset && hasT { + layout = dateTimeJSON + } else if tzOffset { + layout = dateTimeJSONNoT + } else if hasT { + layout = utcDateTimeJSON + } else { + layout = utcDateTimeJSONNoT + } + return t.Parse(layout, string(data)) +} + +func (t *dateTimeRFC3339) UnmarshalText(data []byte) error { + if len(data) == 0 { + return nil + } + tzOffset := tzOffsetRegex.Match(data) + hasT := strings.Contains(string(data), "T") || strings.Contains(string(data), "t") + var layout string + if tzOffset && hasT { + layout = time.RFC3339Nano + } else if tzOffset { + layout = dateTimeNoT + } else if hasT { + layout = utcDateTime + } else { + layout = utcDateTimeNoT + } + return t.Parse(layout, string(data)) +} + +func (t *dateTimeRFC3339) Parse(layout, value string) error { + p, err := time.Parse(layout, strings.ToUpper(value)) + *t = dateTimeRFC3339(p) + return err +} + +func (t dateTimeRFC3339) String() string { + return time.Time(t).Format(time.RFC3339Nano) +} + +func populateDateTimeRFC3339(m map[string]any, k string, t *time.Time) { + if t == nil { + return + } else if azcore.IsNullValue(t) { + m[k] = nil + return + } else if reflect.ValueOf(t).IsNil() { + return + } + m[k] = (*dateTimeRFC3339)(t) +} + +func unpopulateDateTimeRFC3339(data json.RawMessage, fn string, t **time.Time) error { + if data == nil || string(data) == "null" { + return nil + } + var aux dateTimeRFC3339 + if err := json.Unmarshal(data, &aux); err != nil { + return fmt.Errorf("struct field %s: %v", fn, err) + } + *t = (*time.Time)(&aux) + return nil +} diff --git a/packages/typespec-go/test/cadlranch/azure/client-generator-core/accessgroup/zz_models.go b/packages/typespec-go/test/cadlranch/azure/client-generator-core/accessgroup/zz_models.go index 6a17d58d7..69bac53d6 100644 --- a/packages/typespec-go/test/cadlranch/azure/client-generator-core/accessgroup/zz_models.go +++ b/packages/typespec-go/test/cadlranch/azure/client-generator-core/accessgroup/zz_models.go @@ -30,7 +30,7 @@ type SharedModel struct { // abstractModel - Used in internal operations, should be generated but not exported. type abstractModel struct { - // REQUIRED + // REQUIRED; Discriminator property for AbstractModel. Kind *string // REQUIRED diff --git a/packages/typespec-go/test/cadlranch/type/model/inheritance/singlediscgroup/zz_models.go b/packages/typespec-go/test/cadlranch/type/model/inheritance/singlediscgroup/zz_models.go index 36d81abeb..68d61bd12 100644 --- a/packages/typespec-go/test/cadlranch/type/model/inheritance/singlediscgroup/zz_models.go +++ b/packages/typespec-go/test/cadlranch/type/model/inheritance/singlediscgroup/zz_models.go @@ -18,7 +18,7 @@ func (b *Bird) GetBird() *Bird { return b } // Dinosaur - Define a base class in the legacy way. Discriminator property is not explicitly defined in the model. type Dinosaur struct { - // REQUIRED + // REQUIRED; Discriminator property for Dinosaur. Kind *string // REQUIRED