Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
31 commits
Select commit Hold shift + click to select a range
f5b7a42
migrate once
haolingdong-msft Sep 3, 2025
5219e4b
Fix error type for operations interface
haolingdong-msft Sep 4, 2025
f6a842d
add readonly visibility for paging model value
haolingdong-msft Sep 4, 2025
ef1abc5
fix x-ms-secret
haolingdong-msft Sep 5, 2025
bc155ac
update swagger
haolingdong-msft Sep 5, 2025
7bf5909
update swagger
haolingdong-msft Sep 9, 2025
85cfcc9
Update cspell.yaml
welovej Sep 9, 2025
bc24f7b
Revert "Update cspell.yaml"
welovej Sep 9, 2025
1bf7baa
update
welovej Sep 9, 2025
68bb7b3
update
welovej Sep 10, 2025
727de32
update
welovej Sep 10, 2025
9b5585e
Delete databoxedge.json
welovej Sep 10, 2025
8ddfbeb
Update readme.md
welovej Sep 10, 2025
4d62eb3
prettier
welovej Sep 10, 2025
62e1c4e
Create client.tsp
welovej Sep 10, 2025
282165f
Update client.tsp
welovej Sep 10, 2025
6f01a04
Merge branch 'main' into tsp-conversion-databoxedge
mcgallan Oct 17, 2025
e533657
update no properties resource model and summary
mcgallan Oct 17, 2025
108513e
update tspconfig
mcgallan Oct 20, 2025
42cffef
Add Java SDK breaking change mitigations for TypeSpec migration
weidongxu-microsoft Oct 21, 2025
78fd8f8
resolve js breaking
v-jiaodi Oct 21, 2025
2937bf1
mitigate reorder breakings (#38379)
ChenxiJiang333 Oct 23, 2025
27dd7b3
Update client.tsp
weidongxu-microsoft Oct 23, 2025
bcd453b
resolve the conflicts from the folder migration.
zedy-wj Oct 31, 2025
96a2a3d
Merge branch 'main' into tsp-conversion-databoxedge
mcgallan Nov 6, 2025
da78334
add config (#38636)
jliusan Nov 7, 2025
d90b6fa
Add 'go' support to DataBoxEdge client overrides
tadelesh Nov 7, 2025
b306ba1
format
mcgallan Nov 10, 2025
71b50fc
Merge branch 'main' into tsp-conversion-databoxedge
pshao25 Nov 10, 2025
dc0f9ea
update
mcgallan Nov 10, 2025
d582a04
Merge branch 'tsp-conversion-databoxedge' of https://github.com/Azure…
mcgallan Nov 10, 2025
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
Prev Previous commit
Next Next commit
update no properties resource model and summary
  • Loading branch information
mcgallan committed Oct 17, 2025
commit e533657d4bea98ee3f733e6e8354c7fa89d3a605
10 changes: 3 additions & 7 deletions specification/databoxedge/DataBoxEdge.Management/Addon.tsp
Original file line number Diff line number Diff line change
Expand Up @@ -18,19 +18,14 @@ namespace Microsoft.DataBoxEdge;
*/
@discriminator("kind")
@parentResource(Role)
model Addon is Azure.ResourceManager.ProxyResource<{}> {
model Addon
is Azure.ResourceManager.Legacy.DiscriminatedProxyResource<AddonType> {
...ResourceNameParameter<
Resource = Addon,
KeyName = "addonName",
SegmentName = "addons",
NamePattern = ""
>;

/**
* Addon type.
*/
#suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-invalid-envelope-property" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details"
kind: AddonType;
}

@armResourceOperations
Expand Down Expand Up @@ -106,3 +101,4 @@ interface AddonsOps

@@doc(Addon.name, "The addon name.");
@@doc(Addons.createOrUpdate::parameters.resource, "The addon properties.");
@@doc(Addon.kind, "Addon type.");
1 change: 1 addition & 0 deletions specification/databoxedge/DataBoxEdge.Management/Alert.tsp
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ interface Alerts {
/**
* Gets an alert by name.
*/
@summary("Gets an alert by name.")
get is ArmResourceRead<Alert, Error = CloudError>;

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,14 @@ interface Containers {
/**
* Gets a container by name.
*/
@summary("Gets a container by name.")
get is ArmResourceRead<Container, Error = CloudError>;

/**
* Creates a new container or updates an existing container on the device.
*/
#suppress "@azure-tools/typespec-azure-resource-manager/arm-put-operation-response-codes" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details"
@summary("Creates a new container or updates an existing container on the device.")
createOrUpdate is ArmResourceCreateOrReplaceAsync<
Container,
Response = ArmResourceUpdatedResponse<Container> | ArmAcceptedLroResponse<LroHeaders = ArmLroLocationHeader<FinalResult = Container> &
Expand All @@ -51,6 +53,7 @@ interface Containers {
/**
* Lists all the containers of a storage Account in a Data Box Edge/Data Box Gateway device.
*/
@summary("Lists all the containers of a storage Account in a Data Box Edge/Data Box Gateway device.")
listByStorageAccount is ArmResourceListByParent<
Container,
Response = ArmResponse<ContainerList>,
Expand All @@ -60,6 +63,7 @@ interface Containers {
/**
* Refreshes the container metadata with the data from the cloud.
*/
@summary("Refreshes the container metadata with the data from the cloud.")
refresh is ArmResourceActionAsync<
Container,
void,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,7 @@ interface DataBoxEdgeDevices {
/**
* Downloads the updates on a Data Box Edge/Data Box Gateway device.
*/
@summary("Downloads the updates on a Data Box Edge/Data Box Gateway device.")
downloadUpdates is ArmResourceActionAsync<
DataBoxEdgeDevice,
void,
Expand Down Expand Up @@ -152,6 +153,7 @@ interface DataBoxEdgeDevices {
/**
* Installs the updates on the Data Box Edge/Data Box Gateway device.
*/
@summary("Installs the updates on the Data Box Edge/Data Box Gateway device.")
installUpdates is ArmResourceActionAsync<
DataBoxEdgeDevice,
void,
Expand Down Expand Up @@ -245,6 +247,7 @@ interface DataBoxEdgeDevices {
/**
* Triggers support package on the device
*/
@summary("Triggers support package on the device")
triggerSupportPackage is ArmResourceActionAsync<
DataBoxEdgeDevice,
TriggerSupportPackageRequest,
Expand Down
2 changes: 2 additions & 0 deletions specification/databoxedge/DataBoxEdge.Management/Job.tsp
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ interface Jobs {
/**
* Gets the details of a specified job on a Data Box Edge/Data Box Gateway device.
*/
@summary("Gets the details of a specified job on a Data Box Edge/Data Box Gateway device.")
get is JobOps.Read<Job, OverrideErrorType = CloudError>;
}
alias OperationsStatusOps = Azure.ResourceManager.Legacy.LegacyOperations<
Expand Down Expand Up @@ -117,6 +118,7 @@ interface OperationsStatus {
/**
* Gets the details of a specified job on a Data Box Edge/Data Box Gateway device.
*/
@summary("Gets the details of a specified job on a Data Box Edge/Data Box Gateway device.")
get is OperationsStatusOps.Read<Job, OverrideErrorType = CloudError>;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ interface MonitoringMetricConfigurations {
* Gets a metric configuration of a role.
*/
@action("monitoringConfig/default")
@summary("Gets a metric configuration of a role.")
get is MonitoringMetricConfigurationsNonListOps.Read<
MonitoringMetricConfiguration,
OverrideErrorType = CloudError
Expand All @@ -45,6 +46,7 @@ interface MonitoringMetricConfigurations {
*/
#suppress "@azure-tools/typespec-azure-resource-manager/arm-put-operation-response-codes" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details"
@action("monitoringConfig/default")
@summary("Creates a new metric configuration or updates an existing one for a role.")
createOrUpdate is MonitoringMetricConfigurationsNonListOps.CreateOrUpdateAsync<
MonitoringMetricConfiguration,
Response = ArmResourceUpdatedResponse<MonitoringMetricConfiguration> | ArmAcceptedLroResponse<LroHeaders = ArmLroLocationHeader<FinalResult = MonitoringMetricConfiguration> &
Expand All @@ -57,6 +59,7 @@ interface MonitoringMetricConfigurations {
*/
#suppress "@azure-tools/typespec-azure-resource-manager/arm-delete-operation-response-codes" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details"
@action("monitoringConfig/default")
@summary("deletes a new metric configuration for a role.")
delete is MonitoringMetricConfigurationsNonListOps.DeleteWithoutOkAsync<
MonitoringMetricConfiguration,
Response = ArmDeletedResponse | ArmDeleteAcceptedLroResponse | ArmDeletedNoContentResponse,
Expand All @@ -66,6 +69,7 @@ interface MonitoringMetricConfigurations {
/**
* Lists metric configurations in a role.
*/
@summary("Lists metric configurations in a role.")
list is MonitoringMetricConfigurationsListOps.List<
MonitoringMetricConfiguration,
Response = ArmResponse<MonitoringMetricConfigurationList>,
Expand Down
5 changes: 5 additions & 0 deletions specification/databoxedge/DataBoxEdge.Management/Order.tsp
Original file line number Diff line number Diff line change
Expand Up @@ -37,12 +37,14 @@ interface Orders {
/**
* Gets a specific order by name.
*/
@summary("Gets a specific order by name.")
get is ArmResourceRead<Order, Error = CloudError>;

/**
* Creates or updates an order.
*/
#suppress "@azure-tools/typespec-azure-resource-manager/arm-put-operation-response-codes" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details"
@summary("Creates or updates an order.")
createOrUpdate is ArmResourceCreateOrReplaceAsync<
Order,
Response = ArmResourceUpdatedResponse<Order> | ArmAcceptedLroResponse<LroHeaders = ArmLroLocationHeader<FinalResult = Order> &
Expand All @@ -54,6 +56,7 @@ interface Orders {
* Deletes the order related to the device.
*/
#suppress "@azure-tools/typespec-azure-resource-manager/arm-delete-operation-response-codes" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details"
@summary("Deletes the order related to the device.")
delete is ArmResourceDeleteWithoutOkAsync<
Order,
Response = ArmDeletedResponse | ArmDeleteAcceptedLroResponse | ArmDeletedNoContentResponse,
Expand All @@ -63,6 +66,7 @@ interface Orders {
/**
* Lists all the orders related to a Data Box Edge/Data Box Gateway device.
*/
@summary("Lists all the orders related to a Data Box Edge/Data Box Gateway device.")
listByDataBoxEdgeDevice is ArmResourceListByParent<
Order,
Response = ArmResponse<OrderList>,
Expand All @@ -73,6 +77,7 @@ interface Orders {
* Gets the DCAccess Code
*/
#suppress "@azure-tools/typespec-azure-core/casing-style" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details"
@summary("Gets the DCAccess Code")
listDCAccessCode is ArmResourceActionSync<
Order,
void,
Expand Down
10 changes: 3 additions & 7 deletions specification/databoxedge/DataBoxEdge.Management/Role.tsp
Original file line number Diff line number Diff line change
Expand Up @@ -17,19 +17,14 @@ namespace Microsoft.DataBoxEdge;
*/
@discriminator("kind")
@parentResource(DataBoxEdgeDevice)
model Role is Azure.ResourceManager.ProxyResource<{}> {
model Role
is Azure.ResourceManager.Legacy.DiscriminatedProxyResource<RoleTypes> {
...ResourceNameParameter<
Resource = Role,
KeyName = "name",
SegmentName = "roles",
NamePattern = ""
>;

/**
* Role type.
*/
#suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-invalid-envelope-property" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details"
kind: RoleTypes;
}

@armResourceOperations
Expand Down Expand Up @@ -72,3 +67,4 @@ interface Roles {

@@doc(Role.name, "The role name.");
@@doc(Roles.createOrUpdate::parameters.resource, "The role properties.");
@@doc(Role.kind, "Role type.");
4 changes: 4 additions & 0 deletions specification/databoxedge/DataBoxEdge.Management/Share.tsp
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,14 @@ interface Shares {
/**
* Gets a share by name.
*/
@summary("Gets a share by name.")
get is ArmResourceRead<Share, Error = CloudError>;

/**
* Creates a new share or updates an existing share on the device.
*/
#suppress "@azure-tools/typespec-azure-resource-manager/arm-put-operation-response-codes" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details"
@summary("Creates a new share or updates an existing share on the device.")
createOrUpdate is ArmResourceCreateOrReplaceAsync<
Share,
Response = ArmResourceUpdatedResponse<Share> | ArmAcceptedLroResponse<LroHeaders = ArmLroLocationHeader<FinalResult = Share> &
Expand All @@ -55,6 +57,7 @@ interface Shares {
/**
* Lists all the shares in a Data Box Edge/Data Box Gateway device.
*/
@summary("Lists all the shares in a Data Box Edge/Data Box Gateway device.")
listByDataBoxEdgeDevice is ArmResourceListByParent<
Share,
Response = ArmResponse<ShareList>,
Expand All @@ -64,6 +67,7 @@ interface Shares {
/**
* Refreshes the share metadata with the data from the cloud.
*/
@summary("Refreshes the share metadata with the data from the cloud.")
refresh is ArmResourceActionAsync<
Share,
void,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,14 @@ interface StorageAccounts {
/**
* Gets a StorageAccount by name.
*/
@summary("Gets a StorageAccount by name.")
get is ArmResourceRead<StorageAccount, Error = CloudError>;

/**
* Creates a new StorageAccount or updates an existing StorageAccount on the device.
*/
#suppress "@azure-tools/typespec-azure-resource-manager/arm-put-operation-response-codes" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details"
@summary("Creates a new StorageAccount or updates an existing StorageAccount on the device.")
createOrUpdate is ArmResourceCreateOrReplaceAsync<
StorageAccount,
Response = ArmResourceUpdatedResponse<StorageAccount> | ArmAcceptedLroResponse<LroHeaders = ArmLroLocationHeader<FinalResult = StorageAccount> &
Expand All @@ -51,6 +53,7 @@ interface StorageAccounts {
/**
* Lists all the StorageAccounts in a Data Box Edge/Data Box Gateway device.
*/
@summary("Lists all the StorageAccounts in a Data Box Edge/Data Box Gateway device.")
listByDataBoxEdgeDevice is ArmResourceListByParent<
StorageAccount,
Response = ArmResponse<StorageAccountList>,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ interface StorageAccountCredentials {
/**
* Gets all the storage account credentials in a Data Box Edge/Data Box Gateway device.
*/
@summary("Gets all the storage account credentials in a Data Box Edge/Data Box Gateway device.")
listByDataBoxEdgeDevice is ArmResourceListByParent<
StorageAccountCredential,
Response = ArmResponse<StorageAccountCredentialList>,
Expand Down
10 changes: 3 additions & 7 deletions specification/databoxedge/DataBoxEdge.Management/Trigger.tsp
Original file line number Diff line number Diff line change
Expand Up @@ -17,19 +17,14 @@ namespace Microsoft.DataBoxEdge;
*/
@discriminator("kind")
@parentResource(DataBoxEdgeDevice)
model Trigger is Azure.ResourceManager.ProxyResource<{}> {
model Trigger
is Azure.ResourceManager.Legacy.DiscriminatedProxyResource<TriggerEventType> {
...ResourceNameParameter<
Resource = Trigger,
KeyName = "name",
SegmentName = "triggers",
NamePattern = ""
>;

/**
* Trigger Kind.
*/
#suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-invalid-envelope-property" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details"
kind: TriggerEventType;
}

@armResourceOperations
Expand Down Expand Up @@ -79,3 +74,4 @@ interface Triggers {

@@doc(Trigger.name, "The trigger name.");
@@doc(Triggers.createOrUpdate::parameters.resource, "The trigger.");
@@doc(Trigger.kind, "Trigger Kind.");
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ interface UpdateSummaries {
/**
* Gets information about the availability of updates based on the last scan of the device. It also gets information about any ongoing download or install jobs on the device.
*/
@summary("Gets information about the availability of updates based on the last scan of the device. It also gets information about any ongoing download or install jobs on the device.")
getUpdateSummary is ArmResourceRead<UpdateSummary, Error = CloudError>;
}

Expand Down
Loading
Loading