Table of Contents

Class HubsRequestBuilder

Namespace
Autodesk.DataManagement.Project.V1.Hubs
Assembly
Autodesk.DataManagement.dll

Builds and executes requests for operations under \project\v1\hubs

public class HubsRequestBuilder : BaseRequestBuilder
Inheritance
BaseRequestBuilder
HubsRequestBuilder
Inherited Members
BaseRequestBuilder.PathParameters
BaseRequestBuilder.RequestAdapter
BaseRequestBuilder.UrlTemplate

Constructors

HubsRequestBuilder(Dictionary<string, object>, IRequestAdapter)

Instantiates a new HubsRequestBuilder and sets the default values.

public HubsRequestBuilder(Dictionary<string, object> pathParameters, IRequestAdapter requestAdapter)

Parameters

pathParameters Dictionary<string, object>

Path parameters for the request

requestAdapter IRequestAdapter

The request adapter to use to execute the requests.

HubsRequestBuilder(string, IRequestAdapter)

Instantiates a new HubsRequestBuilder and sets the default values.

public HubsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter)

Parameters

rawUrl string

The raw URL to use for the request builder.

requestAdapter IRequestAdapter

The request adapter to use to execute the requests.

Properties

this[string]

Gets an item from the Autodesk.DataManagement.project.v1.hubs.item collection

public WithHub_ItemRequestBuilder this[string position] { get; }

Parameters

position string

The unique identifier of a hub.

Property Value

WithHub_ItemRequestBuilder

A WithHub_ItemRequestBuilder

Methods

GetAsync(Action<RequestConfiguration<HubsRequestBuilderGetQueryParameters>>?, CancellationToken)

Returns a collection of accessible hubs for this member.Hubs represent BIM 360 Team hubs, Fusion Team hubs (formerly known as A360 Team hubs), A360 Personal hubs, or BIM 360 Docs accounts. Team hubs include BIM 360 Team hubs and Fusion Team hubs (formerly known as A360 Team hubs). Personal hubs include A360 Personal hubs. Only active hubs are listed.Note that for BIM 360 Docs, a hub ID corresponds to an account ID in the BIM 360 API. To convert an account ID into a hub ID you need to add a "b." prefix. For example, an account ID of c8b0c73d-3ae9 translates to a hub ID of b.c8b0c73d-3ae9.New! Autodesk Construction Cloud platform (ACC). Note that this endpoint is compatible with ACC projects. For more information about the Autodesk Construction Cloud APIs, see the Autodesk Construction Cloud documentation.

public Task<Hubs?> GetAsync(Action<RequestConfiguration<HubsRequestBuilder.HubsRequestBuilderGetQueryParameters>>? requestConfiguration = null, CancellationToken cancellationToken = default)

Parameters

requestConfiguration Action<RequestConfiguration<HubsRequestBuilder.HubsRequestBuilderGetQueryParameters>>

Configuration for the request such as headers, query parameters, and middleware options.

cancellationToken CancellationToken

Cancellation token to use when cancelling requests

Returns

Task<Hubs>

A Hubs

Exceptions

Hubs401Error

When receiving a 401 status code

Hubs403Error

When receiving a 403 status code

ToGetRequestInformation(Action<RequestConfiguration<HubsRequestBuilderGetQueryParameters>>?)

Returns a collection of accessible hubs for this member.Hubs represent BIM 360 Team hubs, Fusion Team hubs (formerly known as A360 Team hubs), A360 Personal hubs, or BIM 360 Docs accounts. Team hubs include BIM 360 Team hubs and Fusion Team hubs (formerly known as A360 Team hubs). Personal hubs include A360 Personal hubs. Only active hubs are listed.Note that for BIM 360 Docs, a hub ID corresponds to an account ID in the BIM 360 API. To convert an account ID into a hub ID you need to add a "b." prefix. For example, an account ID of c8b0c73d-3ae9 translates to a hub ID of b.c8b0c73d-3ae9.New! Autodesk Construction Cloud platform (ACC). Note that this endpoint is compatible with ACC projects. For more information about the Autodesk Construction Cloud APIs, see the Autodesk Construction Cloud documentation.

public RequestInformation ToGetRequestInformation(Action<RequestConfiguration<HubsRequestBuilder.HubsRequestBuilderGetQueryParameters>>? requestConfiguration = null)

Parameters

requestConfiguration Action<RequestConfiguration<HubsRequestBuilder.HubsRequestBuilderGetQueryParameters>>

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 HubsRequestBuilder WithUrl(string rawUrl)

Parameters

rawUrl string

The raw URL to use for the request builder.

Returns

HubsRequestBuilder

A HubsRequestBuilder