microsoftgraph / microsoftgraph/msgraph-beta-sdk-dotnet
Security.AttackSimulation.Simulations.PostAsync has wrong return type, should return AttackSimulationOperation not Simulation
Nobody has claimed this yet.
- Dominant language
- C#
- Stars
- 112
- Forks
- 37
- Avg merge
- 14h 57m
- Merged PRs (30d)
- 3
Description
Describe the bug
When performing Security.AttackSimulation.Simulations.PostAsync(), the return type is stated to be Simulation, this is wrong.
When you perform a post operation against https://graph.microsoft.com/beta/security/attackSimulation/simulations, the Location header returned is a reference to an attackSimulationOperation object:
Expected behavior
Security.AttackSimulation.Simulations.PostAsync() should return attackSimulationOperation
How to reproduce
Any call to Security.AttackSimulation.Simulations.PostAsync(). It will work, but you can't then track the creation in order to get the simulation id.
SDK Version
No response
Latest version known to work for scenario above?
No response
Known Workarounds
No response
Debug output
Click to expand log
```</details>
### Configuration
_No response_
### Other information
_No response_
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start at Security.AttackSimulation.Simulations.PostAsync() and inspect its declared return type and the response represented by the Location header. Confirm that the operation can be followed to obtain the simulation id, then verify the generated SDK behavior for this POST request.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- csharp
- Domain
- api
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Clearly specified
- Newbie friendliness
- 45/100