Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -52,23 +52,33 @@ using Microsoft.Chaos;

#suppress "@azure-tools/typespec-azure-core/no-legacy-usage" "property flatten for SDK backward compatibility"
#suppress "@azure-tools/typespec-azure-core/no-legacy-usage" "Back compatibility"
@@Azure.ClientGenerator.Core.Legacy.flattenProperty(Experiment.properties);
@@Azure.ClientGenerator.Core.Legacy.flattenProperty(Experiment.properties,
"!javascript"
);
#suppress "@azure-tools/typespec-azure-core/no-legacy-usage" "property flatten for SDK backward compatibility"
#suppress "@azure-tools/typespec-azure-core/no-legacy-usage" "Back compatibility"
@@Azure.ClientGenerator.Core.Legacy.flattenProperty(ExperimentExecution.properties
@@Azure.ClientGenerator.Core.Legacy.flattenProperty(ExperimentExecution.properties,
"!javascript"
);
#suppress "@azure-tools/typespec-azure-core/no-legacy-usage" "property flatten for SDK backward compatibility"
#suppress "@azure-tools/typespec-azure-core/no-legacy-usage" "Back compatibility"
@@Azure.ClientGenerator.Core.Legacy.flattenProperty(TargetType.properties);
@@Azure.ClientGenerator.Core.Legacy.flattenProperty(TargetType.properties,
"!javascript"
);
#suppress "@azure-tools/typespec-azure-core/no-legacy-usage" "property flatten for SDK backward compatibility"
#suppress "@azure-tools/typespec-azure-core/no-legacy-usage" "Back compatibility"
@@Azure.ClientGenerator.Core.Legacy.flattenProperty(Capability.properties);
@@Azure.ClientGenerator.Core.Legacy.flattenProperty(Capability.properties,
"!javascript"
);
#suppress "@azure-tools/typespec-azure-core/no-legacy-usage" "property flatten for SDK backward compatibility"
#suppress "@azure-tools/typespec-azure-core/no-legacy-usage" "Back compatibility"
@@Azure.ClientGenerator.Core.Legacy.flattenProperty(CapabilityType.properties);
@@Azure.ClientGenerator.Core.Legacy.flattenProperty(CapabilityType.properties,
"!javascript"
);
#suppress "@azure-tools/typespec-azure-core/no-legacy-usage" "property flatten for SDK backward compatibility"
#suppress "@azure-tools/typespec-azure-core/no-legacy-usage" "Back compatibility"
@@Azure.ClientGenerator.Core.Legacy.flattenProperty(ExperimentExecutionDetails.properties
@@Azure.ClientGenerator.Core.Legacy.flattenProperty(ExperimentExecutionDetails.properties,
"!javascript"
);

@@clientName(Microsoft.Chaos.Operations.list, "listAll", "javascript,python");
Original file line number Diff line number Diff line change
Expand Up @@ -5,19 +5,24 @@ using Microsoft.CodeSigning;

#suppress "@azure-tools/typespec-azure-core/no-legacy-usage" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details"
#suppress "@azure-tools/typespec-azure-core/no-legacy-usage" "Back compatibility"
@@Azure.ClientGenerator.Core.Legacy.flattenProperty(CertificateProfile.properties
@@Azure.ClientGenerator.Core.Legacy.flattenProperty(CertificateProfile.properties,
"!javascript"
);

#suppress "@azure-tools/typespec-azure-core/no-legacy-usage" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details"
#suppress "@azure-tools/typespec-azure-core/no-legacy-usage" "Back compatibility"
@@Azure.ClientGenerator.Core.Legacy.flattenProperty(CodeSigningAccount.properties
@@Azure.ClientGenerator.Core.Legacy.flattenProperty(CodeSigningAccount.properties,
"!javascript"
);

#suppress "@azure-tools/typespec-azure-core/no-legacy-usage" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details"
#suppress "@azure-tools/typespec-azure-core/no-legacy-usage" "Back compatibility"
@@Azure.ClientGenerator.Core.Legacy.flattenProperty(CodeSigningAccountPatch.properties
@@Azure.ClientGenerator.Core.Legacy.flattenProperty(CodeSigningAccountPatch.properties,
"!javascript"
);

#suppress "@azure-tools/typespec-azure-core/no-legacy-usage" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details"
#suppress "@azure-tools/typespec-azure-core/no-legacy-usage" "Back compatibility"
@@Azure.ClientGenerator.Core.Legacy.flattenProperty(Certificate.revocation);
@@Azure.ClientGenerator.Core.Legacy.flattenProperty(Certificate.revocation,
"!javascript"
);
12 changes: 8 additions & 4 deletions specification/dashboard/Dashboard.Management/back-compatible.tsp
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,14 @@ using Azure.Core;

#suppress "@azure-tools/typespec-azure-core/no-legacy-usage" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details"
#suppress "@azure-tools/typespec-azure-core/no-legacy-usage" "Back compatibility"
@@Azure.ClientGenerator.Core.Legacy.flattenProperty(PrivateEndpointConnection.properties
@@Azure.ClientGenerator.Core.Legacy.flattenProperty(PrivateEndpointConnection.properties,
"!javascript"
);

#suppress "@azure-tools/typespec-azure-core/no-legacy-usage" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details"
#suppress "@azure-tools/typespec-azure-core/no-legacy-usage" "Back compatibility"
@@Azure.ClientGenerator.Core.Legacy.flattenProperty(PrivateLinkResource.properties
@@Azure.ClientGenerator.Core.Legacy.flattenProperty(PrivateLinkResource.properties,
"!javascript"
);

@@clientName(ManagedPrivateEndpointModels.create::parameters.resource,
Expand All @@ -29,7 +31,8 @@ using Azure.Core;
);
#suppress "@azure-tools/typespec-azure-core/no-legacy-usage" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details"
#suppress "@azure-tools/typespec-azure-core/no-legacy-usage" "Back compatibility"
@@Azure.ClientGenerator.Core.Legacy.flattenProperty(ManagedPrivateEndpointModel.properties
@@Azure.ClientGenerator.Core.Legacy.flattenProperty(ManagedPrivateEndpointModel.properties,
"!javascript"
);

@@clientName(IntegrationFabrics.create::parameters.resource,
Expand All @@ -48,7 +51,8 @@ using Azure.Core;
@@clientName(PrivateEndpointConnections.approve::parameters.resource, "body");
#suppress "@azure-tools/typespec-azure-core/no-legacy-usage" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details"
#suppress "@azure-tools/typespec-azure-core/no-legacy-usage" "Back compatibility"
@@Azure.ClientGenerator.Core.Legacy.flattenProperty(ManagedDashboard.properties
@@Azure.ClientGenerator.Core.Legacy.flattenProperty(ManagedDashboard.properties,
"!javascript"
);
@@alternateType(ManagedPrivateEndpointModelProperties.privateLinkResourceId,
armResourceIdentifier
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ using Microsoft.HardwareSecurityModules;
#suppress "@azure-tools/typespec-azure-core/no-legacy-usage" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details"
#suppress "@azure-tools/typespec-azure-core/no-legacy-usage" "Back compatibility"
@@Azure.ClientGenerator.Core.Legacy.flattenProperty(BackupResult.properties,
"!python,!java,!csharp"
"!python,!java,!csharp,!javascript"
);
@@clientName(Error.innererror, "innerError");
@@clientName(CloudHsmClusters.createOrUpdate::parameters.resource, "body");
Expand All @@ -17,22 +17,22 @@ using Microsoft.HardwareSecurityModules;
#suppress "@azure-tools/typespec-azure-core/no-legacy-usage" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details"
#suppress "@azure-tools/typespec-azure-core/no-legacy-usage" "Back compatibility"
@@Azure.ClientGenerator.Core.Legacy.flattenProperty(CloudHsmCluster.properties,
"!python,!java,!csharp"
"!python,!java,!csharp,!javascript"
);
@@clientName(PrivateEndpointConnections.create::parameters.resource,
"properties"
);
#suppress "@azure-tools/typespec-azure-core/no-legacy-usage" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details"
#suppress "@azure-tools/typespec-azure-core/no-legacy-usage" "Back compatibility"
@@Azure.ClientGenerator.Core.Legacy.flattenProperty(PrivateEndpointConnection.properties,
"!python,!java,!csharp"
"!python,!java,!csharp,!javascript"
);
@@clientName(DedicatedHsms.createOrUpdate::parameters.resource, "parameters");
@@clientName(DedicatedHsms.update::parameters.properties, "parameters");
#suppress "@azure-tools/typespec-azure-core/no-legacy-usage" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details"
#suppress "@azure-tools/typespec-azure-core/no-legacy-usage" "Back compatibility"
@@Azure.ClientGenerator.Core.Legacy.flattenProperty(DedicatedHsm.properties,
"!python,!java,!csharp"
"!python,!java,!csharp,!javascript"
);
@@clientName(CloudHsmClusters.validateBackupProperties::parameters.body,
"backupRequestProperties",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,61 +5,61 @@ using Azure.ClientGenerator.Core.Legacy;
using Microsoft.NetApp;

#suppress "@azure-tools/typespec-azure-core/no-legacy-usage" "For backward compatibility"
@@flattenProperty(Operation.properties);
@@flattenProperty(Operation.properties, "!javascript");

#suppress "@azure-tools/typespec-azure-core/no-legacy-usage" "For backward compatibility"
@@flattenProperty(UsageResult.properties);
@@flattenProperty(UsageResult.properties, "!javascript");

#suppress "@azure-tools/typespec-azure-core/no-legacy-usage" "For backward compatibility"
@@flattenProperty(NetAppAccountPatch.properties);
@@flattenProperty(NetAppAccountPatch.properties, "!javascript");

#suppress "@azure-tools/typespec-azure-core/no-legacy-usage" "For backward compatibility"
@@flattenProperty(GetKeyVaultStatusResponse.properties);
@@flattenProperty(GetKeyVaultStatusResponse.properties, "!javascript");

#suppress "@azure-tools/typespec-azure-core/no-legacy-usage" "For backward compatibility"
@@flattenProperty(CapacityPoolPatch.properties);
@@flattenProperty(CapacityPoolPatch.properties, "!javascript");

@@clientName(ExportPolicyRule.kerberos5iReadOnly, "kerberos5IReadOnly");
@@clientName(ExportPolicyRule.kerberos5iReadWrite, "kerberos5IReadWrite");
@@clientName(ExportPolicyRule.kerberos5pReadOnly, "kerberos5PReadOnly");
@@clientName(ExportPolicyRule.kerberos5pReadWrite, "kerberos5PReadWrite");

#suppress "@azure-tools/typespec-azure-core/no-legacy-usage" "For backward compatibility"
@@flattenProperty(VolumePatch.properties);
@@flattenProperty(VolumePatch.properties, "!javascript");

#suppress "@azure-tools/typespec-azure-core/no-legacy-usage" "For backward compatibility"
@@flattenProperty(SnapshotPolicyPatch.properties);
@@flattenProperty(SnapshotPolicyPatch.properties, "!javascript");

#suppress "@azure-tools/typespec-azure-core/no-legacy-usage" "For backward compatibility"
@@flattenProperty(BackupPolicyPatch.properties);
@@flattenProperty(BackupPolicyPatch.properties, "!javascript");

#suppress "@azure-tools/typespec-azure-core/no-legacy-usage" "For backward compatibility"
@@flattenProperty(VolumeQuotaRulePatch.properties);
@@flattenProperty(VolumeQuotaRulePatch.properties, "!javascript");

#suppress "@azure-tools/typespec-azure-core/no-legacy-usage" "For backward compatibility"
@@flattenProperty(VolumeGroup.properties);
@@flattenProperty(VolumeGroup.properties, "!javascript");

#suppress "@azure-tools/typespec-azure-core/no-legacy-usage" "For backward compatibility"
@@flattenProperty(VolumeGroupVolumeProperties.properties);
@@flattenProperty(VolumeGroupVolumeProperties.properties, "!javascript");

#suppress "@azure-tools/typespec-azure-core/no-legacy-usage" "For backward compatibility"
@@flattenProperty(SubvolumePatchRequest.properties);
@@flattenProperty(SubvolumePatchRequest.properties, "!javascript");

#suppress "@azure-tools/typespec-azure-core/no-legacy-usage" "For backward compatibility"
@@flattenProperty(SubvolumeModel.properties);
@@flattenProperty(SubvolumeModel.properties, "!javascript");

#suppress "@azure-tools/typespec-azure-core/no-legacy-usage" "For backward compatibility"
@@flattenProperty(BackupPatch.properties);
@@flattenProperty(BackupPatch.properties, "!javascript");

@@clientLocation(SubscriptionQuotaItems.get, "NetAppResourceQuotaLimits");
@@clientLocation(SubscriptionQuotaItems.list, "NetAppResourceQuotaLimits");
#suppress "@azure-tools/typespec-azure-core/no-legacy-usage" "For backward compatibility"
@@flattenProperty(QuotaItem.properties);
@@flattenProperty(QuotaItem.properties, "!javascript");

@@clientLocation(RegionInfoResources.get, "NetAppResourceRegionInfos");
@@clientLocation(RegionInfoResources.list, "NetAppResourceRegionInfos");
#suppress "@azure-tools/typespec-azure-core/no-legacy-usage" "For backward compatibility"
@@flattenProperty(RegionInfoResource.properties);
@@flattenProperty(RegionInfoResource.properties, "!javascript");

@@clientLocation(NetAppAccounts.get, "Accounts");
@@clientLocation(NetAppAccounts.createOrUpdate, "Accounts");
Expand All @@ -76,7 +76,7 @@ using Microsoft.NetApp;
@@clientLocation(NetAppAccounts.listByNetAppAccount, VolumeGroups);
@@clientLocation(NetAppAccounts.migrateBackups, "BackupsUnderAccount");
#suppress "@azure-tools/typespec-azure-core/no-legacy-usage" "For backward compatibility"
@@flattenProperty(NetAppAccount.properties);
@@flattenProperty(NetAppAccount.properties, "!javascript");

@@clientLocation(CapacityPools.get, "Pools");
@@clientLocation(CapacityPools.createOrUpdate, "Pools");
Expand All @@ -86,39 +86,39 @@ using Microsoft.NetApp;
@@clientLocation(CapacityPools.delete, "Pools");
@@clientLocation(CapacityPools.list, "Pools");
#suppress "@azure-tools/typespec-azure-core/no-legacy-usage" "For backward compatibility"
@@flattenProperty(CapacityPool.properties);
@@flattenProperty(CapacityPool.properties, "!javascript");

@@clientName(Volumes.createOrUpdate::parameters.resource, "body");
@@clientName(Volumes.update::parameters.properties, "body");
@@clientLocation(Volumes.getLatestStatus, Backups);
@@clientLocation(Volumes.getVolumeLatestRestoreStatus, Backups);
@@clientLocation(Volumes.migrateBackups, "BackupsUnderVolume");
#suppress "@azure-tools/typespec-azure-core/no-legacy-usage" "For backward compatibility"
@@flattenProperty(Volume.properties);
@@flattenProperty(Volume.properties, "!javascript");

@@clientName(Snapshots.create::parameters.resource, "body");
@@clientName(Snapshots.update::parameters.properties, "body");
#suppress "@azure-tools/typespec-azure-core/no-legacy-usage" "For backward compatibility"
@@flattenProperty(Snapshot.properties);
@@flattenProperty(Snapshot.properties, "!javascript");

@@clientName(SnapshotPolicies.create::parameters.resource, "body");
@@clientName(SnapshotPolicies.update::parameters.properties, "body");
#suppress "@azure-tools/typespec-azure-core/no-legacy-usage" "For backward compatibility"
@@flattenProperty(SnapshotPolicy.properties);
@@flattenProperty(SnapshotPolicy.properties, "!javascript");

@@clientName(BackupPolicies.create::parameters.resource, "body");
@@clientName(BackupPolicies.update::parameters.properties, "body");
#suppress "@azure-tools/typespec-azure-core/no-legacy-usage" "For backward compatibility"
@@flattenProperty(BackupPolicy.properties);
@@flattenProperty(BackupPolicy.properties, "!javascript");

@@clientName(VolumeQuotaRules.create::parameters.resource, "body");
@@clientName(VolumeQuotaRules.update::parameters.properties, "body");
#suppress "@azure-tools/typespec-azure-core/no-legacy-usage" "For backward compatibility"
@@flattenProperty(VolumeQuotaRule.properties);
@@flattenProperty(VolumeQuotaRule.properties, "!javascript");

@@clientName(VolumeGroups.create::parameters.resource, "body");
#suppress "@azure-tools/typespec-azure-core/no-legacy-usage" "For backward compatibility"
@@flattenProperty(VolumeGroupDetails.properties);
@@flattenProperty(VolumeGroupDetails.properties, "!javascript");

@@clientLocation(SubvolumeInfos.get, "Subvolumes");
@@clientLocation(SubvolumeInfos.create, "Subvolumes");
Expand All @@ -129,25 +129,25 @@ using Microsoft.NetApp;
@@clientLocation(SubvolumeInfos.listByVolume, "Subvolumes");
@@clientLocation(SubvolumeInfos.getMetadata, "Subvolumes");
#suppress "@azure-tools/typespec-azure-core/no-legacy-usage" "For backward compatibility"
@@flattenProperty(SubvolumeInfo.properties);
@@flattenProperty(SubvolumeInfo.properties, "!javascript");

@@clientName(Backups.create::parameters.resource, "body");
@@clientName(Backups.update::parameters.properties, "body");
@@clientLocation(Backups.restoreFiles, "BackupsUnderBackupVault");
#suppress "@azure-tools/typespec-azure-core/no-legacy-usage" "For backward compatibility"
@@flattenProperty(Backup.properties);
@@flattenProperty(Backup.properties, "!javascript");

@@clientName(BackupVaults.createOrUpdate::parameters.resource, "body");
@@clientName(BackupVaults.update::parameters.properties, "body");
#suppress "@azure-tools/typespec-azure-core/no-legacy-usage" "For backward compatibility"
@@flattenProperty(BackupVault.properties);
@@flattenProperty(BackupVault.properties, "!javascript");

@@clientName(Buckets.createOrUpdate::parameters.resource, "body");
@@clientName(Buckets.update::parameters.properties, "body");
#suppress "@azure-tools/typespec-azure-core/no-legacy-usage" "For backward compatibility"
@@flattenProperty(Bucket.properties);
@@flattenProperty(Bucket.properties, "!javascript");
#suppress "@azure-tools/typespec-azure-core/no-legacy-usage" "For backward compatibility"
@@flattenProperty(BucketPatch.properties);
@@flattenProperty(BucketPatch.properties, "!javascript");

@@clientLocation(NetAppResourceOperationGroup.checkNameAvailability,
"NetAppResource"
Expand Down
Loading