Skip to content
Merged
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 @@ -27,15 +27,15 @@ model Application
/**
* The ETag of the resource, used for concurrency statements.
*/
#suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-invalid-envelope-property" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details"
#suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-invalid-envelope-property" "Legacy design"
@visibility(Lifecycle.Read)
etag?: string;

/**
* The tags of the resource.
*/
#suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-invalid-envelope-property" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details"
#suppress "@azure-tools/typespec-azure-resource-manager/arm-no-record" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details"
#suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-invalid-envelope-property" "Legacy design"
#suppress "@azure-tools/typespec-azure-resource-manager/arm-no-record" "legacy design"
tags?: Record<string>;
}

Expand All @@ -50,7 +50,7 @@ interface Applications {
/**
* Adds an application to the specified Batch account.
*/
#suppress "@azure-tools/typespec-azure-resource-manager/arm-put-operation-response-codes" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details"
#suppress "@azure-tools/typespec-azure-resource-manager/arm-put-operation-response-codes" "Legacy behavior"
create is Azure.ResourceManager.Legacy.CreateOrReplaceSync<
Application,
Response = ArmResourceUpdatedResponse<Application>,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,15 +27,15 @@ model ApplicationPackage
/**
* The ETag of the resource, used for concurrency statements.
*/
#suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-invalid-envelope-property" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details"
#suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-invalid-envelope-property" "Legacy design"
@visibility(Lifecycle.Read)
etag?: string;

/**
* The tags of the resource.
*/
#suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-invalid-envelope-property" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details"
#suppress "@azure-tools/typespec-azure-resource-manager/arm-no-record" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details"
#suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-invalid-envelope-property" "Legacy design"
#suppress "@azure-tools/typespec-azure-resource-manager/arm-no-record" "legacy design"
tags?: Record<string>;
}

Expand All @@ -50,7 +50,7 @@ interface ApplicationPackages {
/**
* Creates an application package record. The record contains a storageUrl where the package should be uploaded to. Once it is uploaded the `ApplicationPackage` needs to be activated using `ApplicationPackageActive` before it can be used. If the auto storage account was configured to use storage keys, the URL returned will contain a SAS.
*/
#suppress "@azure-tools/typespec-azure-resource-manager/arm-put-operation-response-codes" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details"
#suppress "@azure-tools/typespec-azure-resource-manager/arm-put-operation-response-codes" "Legacy behavior"
create is Azure.ResourceManager.Legacy.CreateOrReplaceSync<
ApplicationPackage,
Response = ArmResourceUpdatedResponse<ApplicationPackage>,
Expand Down Expand Up @@ -102,7 +102,7 @@ interface ApplicationPackages {
@@doc(ApplicationPackages.activate::parameters.body,
"The parameters for the request."
);
#suppress "@azure-tools/typespec-azure-core/no-openapi" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details"
#suppress "@azure-tools/typespec-azure-core/no-openapi" "Legacy design that typespec didn't have a direct translation for"
@@extension(Applications.create::parameters.resource, "required", false);
#suppress "@azure-tools/typespec-azure-core/no-openapi" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details"
#suppress "@azure-tools/typespec-azure-core/no-openapi" "Legacy design that typespec didn't have a direct translation for"
@@extension(ApplicationPackages.create::parameters.resource, "required", false);
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ model BatchAccount
/**
* The identity of the Batch account.
*/
#suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-invalid-envelope-property" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details"
#suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-invalid-envelope-property" "Legacy design"
identity?: BatchAccountIdentity;
}

Expand All @@ -40,7 +40,7 @@ interface BatchAccounts {
/**
* Creates a new Batch account with the specified parameters. Existing accounts cannot be updated with this API and should instead be updated with the Update Batch Account API.
*/
#suppress "@azure-tools/typespec-azure-resource-manager/arm-put-operation-response-codes" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details"
#suppress "@azure-tools/typespec-azure-resource-manager/arm-put-operation-response-codes" "Legacy behavior"
create is Legacy.CreateOrReplaceAsync<
BatchAccount,
Request = BatchAccountCreateParameters,
Expand All @@ -62,7 +62,7 @@ interface BatchAccounts {
/**
* Deletes the specified Batch account.
*/
#suppress "@azure-tools/typespec-azure-resource-manager/arm-delete-operation-response-codes" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details"
#suppress "@azure-tools/typespec-azure-resource-manager/arm-delete-operation-response-codes" "Legacy design"
delete is ArmResourceDeleteWithoutOkAsync<
BatchAccount,
Response = ArmDeletedResponse | ArmDeleteAcceptedLroResponse | ArmDeletedNoContentResponse,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ using TypeSpec.Rest;
using Azure.ResourceManager;
using TypeSpec.Http;
using TypeSpec.OpenAPI;
using Versioning;

namespace Microsoft.Batch;
/**
Expand All @@ -27,15 +28,15 @@ model Certificate
/**
* The ETag of the resource, used for concurrency statements.
*/
#suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-invalid-envelope-property" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details"
#suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-invalid-envelope-property" "Legacy design"
@visibility(Lifecycle.Read)
etag?: string;

/**
* The tags of the resource.
*/
#suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-invalid-envelope-property" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details"
#suppress "@azure-tools/typespec-azure-resource-manager/arm-no-record" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details"
#suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-invalid-envelope-property" "Legacy design"
#suppress "@azure-tools/typespec-azure-resource-manager/arm-no-record" "legacy design"
tags?: Record<string>;
}

Expand All @@ -45,7 +46,8 @@ interface Certificates {
/**
* Warning: This operation is deprecated and will be removed after February, 2024. Please use the [Azure KeyVault Extension](https://learn.microsoft.com/azure/batch/batch-certificate-migration-guide) instead.
*/
#deprecated "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details"
#deprecated "Removal of feature"
@removed(Versions.v2025_06_01)
get is ArmResourceRead<
Certificate,
Response = ArmResponse<Certificate> & {
Expand All @@ -61,23 +63,24 @@ interface Certificates {
/**
* Warning: This operation is deprecated and will be removed after February, 2024. Please use the [Azure KeyVault Extension](https://learn.microsoft.com/azure/batch/batch-certificate-migration-guide) instead.
*/
#suppress "@azure-tools/typespec-azure-resource-manager/arm-put-operation-response-codes" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details"
#deprecated "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details"
#suppress "@azure-tools/typespec-azure-resource-manager/arm-put-operation-response-codes" "Legacy behavior"
#deprecated "Removal of feature"
@removed(Versions.v2025_06_01)
create is Azure.ResourceManager.Legacy.CreateOrReplaceAsync<
Certificate,
Request = CertificateCreateOrUpdateParameters,
Parameters = {
/**
* The entity state (ETag) version of the certificate to update. A value of "*" can be used to apply the operation only if the certificate already exists. If omitted, this operation will always be applied.
*/
#suppress "@azure-tools/typespec-azure-core/casing-style" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details"
#suppress "@azure-tools/typespec-azure-core/casing-style" "Legacy casing"
@header("If-Match")
`If-Match`?: string;

/**
* Set to '*' to allow a new certificate to be created, but to prevent updating an existing certificate. Other values will be ignored.
*/
#suppress "@azure-tools/typespec-azure-core/casing-style" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details"
#suppress "@azure-tools/typespec-azure-core/casing-style" "Legacy casing"
@header("If-None-Match")
`If-None-Match`?: string;
},
Expand All @@ -94,7 +97,8 @@ interface Certificates {
/**
* Warning: This operation is deprecated and will be removed after February, 2024. Please use the [Azure KeyVault Extension](https://learn.microsoft.com/azure/batch/batch-certificate-migration-guide) instead.
*/
#deprecated "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details"
#deprecated "Removal of feature"
@removed(Versions.v2025_06_01)
@patch(#{ implicitOptionality: false })
update is ArmCustomPatchSync<
Certificate,
Expand All @@ -103,7 +107,7 @@ interface Certificates {
/**
* The entity state (ETag) version of the certificate to update. This value can be omitted or set to "*" to apply the operation unconditionally.
*/
#suppress "@azure-tools/typespec-azure-core/casing-style" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details"
#suppress "@azure-tools/typespec-azure-core/casing-style" "Legacy casing"
@header("If-Match")
`If-Match`?: string;
},
Expand All @@ -120,8 +124,9 @@ interface Certificates {
/**
* Warning: This operation is deprecated and will be removed after February, 2024. Please use the [Azure KeyVault Extension](https://learn.microsoft.com/azure/batch/batch-certificate-migration-guide) instead.
*/
#suppress "@azure-tools/typespec-azure-resource-manager/arm-delete-operation-response-codes" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details"
#deprecated "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details"
#suppress "@azure-tools/typespec-azure-resource-manager/arm-delete-operation-response-codes" "Legacy design"
#deprecated "Removal of feature"
@removed(Versions.v2025_06_01)
delete is ArmResourceDeleteWithoutOkAsync<
Certificate,
Response = ArmDeletedResponse | ArmDeleteAcceptedLroResponse | ArmDeletedNoContentResponse,
Expand All @@ -131,7 +136,8 @@ interface Certificates {
/**
* Warning: This operation is deprecated and will be removed after February, 2024. Please use the [Azure KeyVault Extension](https://learn.microsoft.com/azure/batch/batch-certificate-migration-guide) instead.
*/
#deprecated "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details"
#deprecated "Removal of feature"
@removed(Versions.v2025_06_01)
listByBatchAccount is ArmResourceListByParent<
Certificate,
Parameters = {
Expand Down Expand Up @@ -162,7 +168,8 @@ interface Certificates {
*
* Warning: This operation is deprecated and will be removed after February, 2024. Please use the [Azure KeyVault Extension](https://learn.microsoft.com/azure/batch/batch-certificate-migration-guide) instead.
*/
#deprecated "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details"
#deprecated "Removal of feature"
@removed(Versions.v2025_06_01)
@action("cancelDelete")
cancelDeletion is ArmResourceActionSync<
Certificate,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,15 +27,15 @@ model DetectorResponse
/**
* The ETag of the resource, used for concurrency statements.
*/
#suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-invalid-envelope-property" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details"
#suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-invalid-envelope-property" "Legacy design"
@visibility(Lifecycle.Read)
etag?: string;

/**
* The tags of the resource.
*/
#suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-invalid-envelope-property" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details"
#suppress "@azure-tools/typespec-azure-resource-manager/arm-no-record" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details"
#suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-invalid-envelope-property" "Legacy design"
#suppress "@azure-tools/typespec-azure-resource-manager/arm-no-record" "legacy design"
tags?: Record<string>;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,21 +26,21 @@ model Pool is Azure.ResourceManager.ProxyResource<PoolProperties> {
/**
* The type of identity used for the Batch Pool.
*/
#suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-invalid-envelope-property" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details"
#suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-invalid-envelope-property" "Legacy design"
identity?: BatchPoolIdentity;

/**
* The ETag of the resource, used for concurrency statements.
*/
#suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-invalid-envelope-property" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details"
#suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-invalid-envelope-property" "Legacy design"
@visibility(Lifecycle.Read)
etag?: string;

/**
* The tags of the resource.
*/
#suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-invalid-envelope-property" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details"
#suppress "@azure-tools/typespec-azure-resource-manager/arm-no-record" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details"
#suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-invalid-envelope-property" "Legacy design"
#suppress "@azure-tools/typespec-azure-resource-manager/arm-no-record" "legacy design"
tags?: Record<string>;
}

Expand All @@ -65,21 +65,21 @@ interface Pools {
/**
* Creates a new pool inside the specified account.
*/
#suppress "@azure-tools/typespec-azure-resource-manager/arm-put-operation-response-codes" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details"
#suppress "@azure-tools/typespec-azure-resource-manager/arm-put-operation-response-codes" "Legacy behavior"
create is ArmResourceCreateOrReplaceSync<
Pool,
Parameters = {
/**
* The entity state (ETag) version of the pool to update. A value of "*" can be used to apply the operation only if the pool already exists. If omitted, this operation will always be applied.
*/
#suppress "@azure-tools/typespec-azure-core/casing-style" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details"
#suppress "@azure-tools/typespec-azure-core/casing-style" "Legacy casing"
@header("If-Match")
`If-Match`?: string;

/**
* Set to '*' to allow a new pool to be created, but to prevent updating an existing pool. Other values will be ignored.
*/
#suppress "@azure-tools/typespec-azure-core/casing-style" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details"
#suppress "@azure-tools/typespec-azure-core/casing-style" "Legacy casing"
@header("If-None-Match")
`If-None-Match`?: string;
},
Expand All @@ -104,7 +104,7 @@ interface Pools {
/**
* The entity state (ETag) version of the pool to update. This value can be omitted or set to "*" to apply the operation unconditionally.
*/
#suppress "@azure-tools/typespec-azure-core/casing-style" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details"
#suppress "@azure-tools/typespec-azure-core/casing-style" "Legacy casing"
@header("If-Match")
`If-Match`?: string;
},
Expand All @@ -121,7 +121,7 @@ interface Pools {
/**
* Deletes the specified pool.
*/
#suppress "@azure-tools/typespec-azure-resource-manager/arm-delete-operation-response-codes" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details"
#suppress "@azure-tools/typespec-azure-resource-manager/arm-delete-operation-response-codes" "Legacy design"
delete is ArmResourceDeleteWithoutOkAsync<
Pool,
Response = ArmDeletedResponse | ArmDeleteAcceptedLroResponse | ArmDeletedNoContentResponse,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,15 +27,15 @@ model PrivateEndpointConnection
/**
* The ETag of the resource, used for concurrency statements.
*/
#suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-invalid-envelope-property" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details"
#suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-invalid-envelope-property" "Legacy design"
@visibility(Lifecycle.Read)
etag?: string;

/**
* The tags of the resource.
*/
#suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-invalid-envelope-property" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details"
#suppress "@azure-tools/typespec-azure-resource-manager/arm-no-record" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details"
#suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-invalid-envelope-property" "Legacy design"
#suppress "@azure-tools/typespec-azure-resource-manager/arm-no-record" "legacy design"
tags?: Record<string>;
}

Expand All @@ -61,7 +61,7 @@ interface PrivateEndpointConnections {
/**
* The state (ETag) version of the private endpoint connection to update. This value can be omitted or set to "*" to apply the operation unconditionally.
*/
#suppress "@azure-tools/typespec-azure-core/casing-style" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details"
#suppress "@azure-tools/typespec-azure-core/casing-style" "Legacy casing"
@header("If-Match")
`If-Match`?: string;
},
Expand All @@ -71,7 +71,7 @@ interface PrivateEndpointConnections {
/**
* Deletes the specified private endpoint connection.
*/
#suppress "@azure-tools/typespec-azure-resource-manager/lro-location-header" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details"
#suppress "@azure-tools/typespec-azure-resource-manager/lro-location-header" "Legacy design"
@Azure.Core.useFinalStateVia("azure-async-operation")
delete is ArmResourceDeleteWithoutOkAsync<
PrivateEndpointConnection,
Expand Down
Loading
Loading