Skip to content

Commit

Permalink
Fix doc.
Browse files Browse the repository at this point in the history
  • Loading branch information
tjprescott committed Mar 28, 2024
1 parent 3a01e4e commit c1fad5c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,7 @@ Long-running (LRO) delete operations should use the `ArmResourceDeleteWithoutOkA
```tsp
@armResourceOperations
interface Employees {
@armResourceDelete(Employee)
update is ArmCustomPatchAsync<Employee, EmployeeUpdate, LroHeaders = {}>;
delete is ArmResourceDeleteAsync<Employee>;
}
```

Expand All @@ -51,7 +50,6 @@ interface Employees {
```tsp
@armResourceOperations
interface Employees {
@armResourceDelete(Employee)
update is ArmCustomPatchAsync<Employee, EmployeeUpdate>;
delete is ArmResourceDeleteWithoutOkAsync<Employee>;
}
```
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,15 @@ title: lro-location-header
@azure-tools/typespec-azure-resource-manager/lro-location-header
```

## Asynchronous

Long-running (LRO) operations with 202 responses must have a "Location" response header.

#### ❌ Incorrect

```tsp
@armResourceOperations
interface Employees {
delete is ArmResourceDeleteAsync<Employee>;
@armResourceDelete(Employee)
update is ArmCustomPatchAsync<Employee, EmployeeProperties, LroHeaders = {}>;
}
```

Expand All @@ -24,6 +23,7 @@ interface Employees {
```tsp
@armResourceOperations
interface Employees {
delete is ArmResourceDeleteWithoutOkAsync<Employee>;
@armResourceDelete(Employee)
update is ArmCustomPatchAsync<Employee, EmployeeProperties>;
}
```

0 comments on commit c1fad5c

Please sign in to comment.