Class ProjectsRequestBuilder
- Namespace
- Autodesk.ACC.AccountAdmin.Projects
- Assembly
- Autodesk.ACC.AccountAdmin.dll
Builds and executes requests for operations under \projects
public class ProjectsRequestBuilder : BaseRequestBuilder
- Inheritance
-
BaseRequestBuilderProjectsRequestBuilder
- Inherited Members
-
BaseRequestBuilder.PathParametersBaseRequestBuilder.RequestAdapterBaseRequestBuilder.UrlTemplate
Constructors
ProjectsRequestBuilder(Dictionary<string, object>, IRequestAdapter)
Instantiates a new ProjectsRequestBuilder and sets the default values.
public ProjectsRequestBuilder(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.
ProjectsRequestBuilder(string, IRequestAdapter)
Instantiates a new ProjectsRequestBuilder and sets the default values.
public ProjectsRequestBuilder(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.
Properties
this[Guid]
Gets an item from the Autodesk.ACC.AccountAdmin.projects.item collection
public WithProjectItemRequestBuilder this[Guid position] { get; }
Parameters
position
GuidThe project ID. This corresponds to project ID in the
Data Management API </en/docs/data/v2/>
_. To convert a project ID in the Data Management API into a project ID in the BIM 360 API you need to remove the "b." prefix. For example, a project ID of b.\a4be0c34a-4ab7 translates to a project ID of a4be0c34a-4ab7.
Property Value
this[string]
Gets an item from the Autodesk.ACC.AccountAdmin.projects.item collection
[Obsolete("This indexer is deprecated and will be removed in the next major version. Use the one with the typed parameter instead.")]
public WithProjectItemRequestBuilder this[string position] { get; }
Parameters
position
stringThe project ID. This corresponds to project ID in the
Data Management API </en/docs/data/v2/>
_. To convert a project ID in the Data Management API into a project ID in the BIM 360 API you need to remove the "b." prefix. For example, a project ID of b.\a4be0c34a-4ab7 translates to a project ID of a4be0c34a-4ab7.
Property Value
Methods
GetAsProjectsGetResponseAsync(Action<RequestConfiguration<ProjectsRequestBuilderGetQueryParameters>>?, CancellationToken)
Private Use - Returns a list of projects for a user. Can return up to 200 projects per request. Only projects that the user participates in will be returned. For Account Admins to see all projects in the account, please use GET /v1/accounts/:a_id/projects
public Task<ProjectsGetResponse?> GetAsProjectsGetResponseAsync(Action<RequestConfiguration<ProjectsRequestBuilder.ProjectsRequestBuilderGetQueryParameters>>? requestConfiguration = null, CancellationToken cancellationToken = default)
Parameters
requestConfiguration
Action<RequestConfiguration<ProjectsRequestBuilder.ProjectsRequestBuilderGetQueryParameters>>Configuration for the request such as headers, query parameters, and middleware options.
cancellationToken
CancellationTokenCancellation token to use when cancelling requests
Returns
Exceptions
- ValidationError
When receiving a 400 status code
- Error
When receiving a 401 status code
- Error
When receiving a 403 status code
- Error
When receiving a 404 status code
- Error
When receiving a 406 status code
- Error
When receiving a 410 status code
- Error
When receiving a 500 status code
- Error
When receiving a 503 status code
GetAsync(Action<RequestConfiguration<ProjectsRequestBuilderGetQueryParameters>>?, CancellationToken)
Private Use - Returns a list of projects for a user. Can return up to 200 projects per request. Only projects that the user participates in will be returned. For Account Admins to see all projects in the account, please use GET /v1/accounts/:a_id/projects
[Obsolete("This method is obsolete. Use GetAsProjectsGetResponseAsync instead.")]
public Task<ProjectsResponse?> GetAsync(Action<RequestConfiguration<ProjectsRequestBuilder.ProjectsRequestBuilderGetQueryParameters>>? requestConfiguration = null, CancellationToken cancellationToken = default)
Parameters
requestConfiguration
Action<RequestConfiguration<ProjectsRequestBuilder.ProjectsRequestBuilderGetQueryParameters>>Configuration for the request such as headers, query parameters, and middleware options.
cancellationToken
CancellationTokenCancellation token to use when cancelling requests
Returns
Exceptions
- ValidationError
When receiving a 400 status code
- Error
When receiving a 401 status code
- Error
When receiving a 403 status code
- Error
When receiving a 404 status code
- Error
When receiving a 406 status code
- Error
When receiving a 410 status code
- Error
When receiving a 500 status code
- Error
When receiving a 503 status code
ToGetRequestInformation(Action<RequestConfiguration<ProjectsRequestBuilderGetQueryParameters>>?)
Private Use - Returns a list of projects for a user. Can return up to 200 projects per request. Only projects that the user participates in will be returned. For Account Admins to see all projects in the account, please use GET /v1/accounts/:a_id/projects
public RequestInformation ToGetRequestInformation(Action<RequestConfiguration<ProjectsRequestBuilder.ProjectsRequestBuilderGetQueryParameters>>? requestConfiguration = null)
Parameters
requestConfiguration
Action<RequestConfiguration<ProjectsRequestBuilder.ProjectsRequestBuilderGetQueryParameters>>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 ProjectsRequestBuilder WithUrl(string rawUrl)
Parameters
rawUrl
stringThe raw URL to use for the request builder.