Class IssueTypesRequestBuilder
Builds and executes requests for operations under \projects{projectId}\issue-types
public class IssueTypesRequestBuilder : BaseRequestBuilder
- Inheritance
-
BaseRequestBuilderIssueTypesRequestBuilder
- Inherited Members
-
BaseRequestBuilder.PathParametersBaseRequestBuilder.RequestAdapterBaseRequestBuilder.UrlTemplate
Constructors
IssueTypesRequestBuilder(Dictionary<string, object>, IRequestAdapter)
Instantiates a new IssueTypesRequestBuilder and sets the default values.
public IssueTypesRequestBuilder(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.
IssueTypesRequestBuilder(string, IRequestAdapter)
Instantiates a new IssueTypesRequestBuilder and sets the default values.
public IssueTypesRequestBuilder(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
GetAsIssueTypesGetResponseAsync(Action<RequestConfiguration<IssueTypesRequestBuilderGetQueryParameters>>?, CancellationToken)
Retrieves a project's categories and types. Note the following differences in terminology between the product and the API:.. list-table:: Terminology :widths: 15 15 :header-rows: 1 * - Product Name - API Name * - Category - Type * - Type - SubtypeNote that by default this endpoint does not return types (subtypes). To return types (subtypes), you need to add the include=subtypes
query string parameter.Note that this endpoint does not return deleted items.This operation is available to everyone... include:: ../../../../_snippets/not-backward-compatible.rst
public Task<IssueTypesGetResponse?> GetAsIssueTypesGetResponseAsync(Action<RequestConfiguration<IssueTypesRequestBuilder.IssueTypesRequestBuilderGetQueryParameters>>? requestConfiguration = null, CancellationToken cancellationToken = default)
Parameters
requestConfiguration
Action<RequestConfiguration<IssueTypesRequestBuilder.IssueTypesRequestBuilderGetQueryParameters>>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<IssueTypesRequestBuilderGetQueryParameters>>?, CancellationToken)
Retrieves a project's categories and types. Note the following differences in terminology between the product and the API:.. list-table:: Terminology :widths: 15 15 :header-rows: 1 * - Product Name - API Name * - Category - Type * - Type - SubtypeNote that by default this endpoint does not return types (subtypes). To return types (subtypes), you need to add the include=subtypes
query string parameter.Note that this endpoint does not return deleted items.This operation is available to everyone... include:: ../../../../_snippets/not-backward-compatible.rst
[Obsolete("This method is obsolete. Use GetAsIssueTypesGetResponseAsync instead.")]
public Task<IssueTypesResponse?> GetAsync(Action<RequestConfiguration<IssueTypesRequestBuilder.IssueTypesRequestBuilderGetQueryParameters>>? requestConfiguration = null, CancellationToken cancellationToken = default)
Parameters
requestConfiguration
Action<RequestConfiguration<IssueTypesRequestBuilder.IssueTypesRequestBuilderGetQueryParameters>>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<IssueTypesRequestBuilderGetQueryParameters>>?)
Retrieves a project's categories and types. Note the following differences in terminology between the product and the API:.. list-table:: Terminology :widths: 15 15 :header-rows: 1 * - Product Name - API Name * - Category - Type * - Type - SubtypeNote that by default this endpoint does not return types (subtypes). To return types (subtypes), you need to add the include=subtypes
query string parameter.Note that this endpoint does not return deleted items.This operation is available to everyone... include:: ../../../../_snippets/not-backward-compatible.rst
public RequestInformation ToGetRequestInformation(Action<RequestConfiguration<IssueTypesRequestBuilder.IssueTypesRequestBuilderGetQueryParameters>>? requestConfiguration = null)
Parameters
requestConfiguration
Action<RequestConfiguration<IssueTypesRequestBuilder.IssueTypesRequestBuilderGetQueryParameters>>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 IssueTypesRequestBuilder WithUrl(string rawUrl)
Parameters
rawUrl
stringThe raw URL to use for the request builder.