Class IssueRootCauseCategoriesRequestBuilder
Builds and executes requests for operations under \projects{projectId}\issue-root-cause-categories
public class IssueRootCauseCategoriesRequestBuilder : BaseRequestBuilder
- Inheritance
-
BaseRequestBuilderIssueRootCauseCategoriesRequestBuilder
- Inherited Members
-
BaseRequestBuilder.PathParametersBaseRequestBuilder.RequestAdapterBaseRequestBuilder.UrlTemplate
Constructors
IssueRootCauseCategoriesRequestBuilder(Dictionary<string, object>, IRequestAdapter)
Instantiates a new IssueRootCauseCategoriesRequestBuilder and sets the default values.
public IssueRootCauseCategoriesRequestBuilder(Dictionary<string, object> pathParameters, IRequestAdapter requestAdapter)
Parameters
pathParameters
Dictionary<string, object>Path parameters for the request
requestAdapter
IRequestAdapterThe request adapter to use to execute the requests.
IssueRootCauseCategoriesRequestBuilder(string, IRequestAdapter)
Instantiates a new IssueRootCauseCategoriesRequestBuilder and sets the default values.
public IssueRootCauseCategoriesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter)
Parameters
rawUrl
stringThe raw URL to use for the request builder.
requestAdapter
IRequestAdapterThe request adapter to use to execute the requests.
Methods
GetAsIssueRootCauseCategoriesGetResponseAsync(Action<RequestConfiguration<IssueRootCauseCategoriesRequestBuilderGetQueryParameters>>?, CancellationToken)
Retrieves a list of supported root cause categories and root causes that you can allocate to an issue. For example, communication and coordination.Note that by default, this endpoint only returns root cause categories. To include root causes you need to to add the include
query string parameter (include=rootcasues
)... include:: ../../../../_snippets/not-backward-compatible.rst
public Task<IssueRootCauseCategoriesGetResponse?> GetAsIssueRootCauseCategoriesGetResponseAsync(Action<RequestConfiguration<IssueRootCauseCategoriesRequestBuilder.IssueRootCauseCategoriesRequestBuilderGetQueryParameters>>? requestConfiguration = null, CancellationToken cancellationToken = default)
Parameters
requestConfiguration
Action<RequestConfiguration<IssueRootCauseCategoriesRequestBuilder.IssueRootCauseCategoriesRequestBuilderGetQueryParameters>>Configuration for the request such as headers, query parameters, and middleware options.
cancellationToken
CancellationTokenCancellation token to use when cancelling requests
Returns
Exceptions
- ErrorResponseDefinition
When receiving a 400 status code
- ErrorResponseDefinition
When receiving a 404 status code
- ErrorResponseDefinition
When receiving a 500 status code
GetAsync(Action<RequestConfiguration<IssueRootCauseCategoriesRequestBuilderGetQueryParameters>>?, CancellationToken)
Retrieves a list of supported root cause categories and root causes that you can allocate to an issue. For example, communication and coordination.Note that by default, this endpoint only returns root cause categories. To include root causes you need to to add the include
query string parameter (include=rootcasues
)... include:: ../../../../_snippets/not-backward-compatible.rst
[Obsolete("This method is obsolete. Use GetAsIssueRootCauseCategoriesGetResponseAsync instead.")]
public Task<IssueRootCauseCategoriesResponse?> GetAsync(Action<RequestConfiguration<IssueRootCauseCategoriesRequestBuilder.IssueRootCauseCategoriesRequestBuilderGetQueryParameters>>? requestConfiguration = null, CancellationToken cancellationToken = default)
Parameters
requestConfiguration
Action<RequestConfiguration<IssueRootCauseCategoriesRequestBuilder.IssueRootCauseCategoriesRequestBuilderGetQueryParameters>>Configuration for the request such as headers, query parameters, and middleware options.
cancellationToken
CancellationTokenCancellation token to use when cancelling requests
Returns
Exceptions
- ErrorResponseDefinition
When receiving a 400 status code
- ErrorResponseDefinition
When receiving a 404 status code
- ErrorResponseDefinition
When receiving a 500 status code
ToGetRequestInformation(Action<RequestConfiguration<IssueRootCauseCategoriesRequestBuilderGetQueryParameters>>?)
Retrieves a list of supported root cause categories and root causes that you can allocate to an issue. For example, communication and coordination.Note that by default, this endpoint only returns root cause categories. To include root causes you need to to add the include
query string parameter (include=rootcasues
)... include:: ../../../../_snippets/not-backward-compatible.rst
public RequestInformation ToGetRequestInformation(Action<RequestConfiguration<IssueRootCauseCategoriesRequestBuilder.IssueRootCauseCategoriesRequestBuilderGetQueryParameters>>? requestConfiguration = null)
Parameters
requestConfiguration
Action<RequestConfiguration<IssueRootCauseCategoriesRequestBuilder.IssueRootCauseCategoriesRequestBuilderGetQueryParameters>>Configuration for the request such as headers, query parameters, and middleware options.
Returns
- RequestInformation
A Microsoft.Kiota.Abstractions.RequestInformation
WithUrl(string)
Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored.
public IssueRootCauseCategoriesRequestBuilder WithUrl(string rawUrl)
Parameters
rawUrl
stringThe raw URL to use for the request builder.