Skip to content

[DAS 336] - Update Acc Admin models and endpoints #166

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: development
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
40 changes: 20 additions & 20 deletions Directory.Packages.props
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
<Project>
<PropertyGroup>
<ManagePackageVersionsCentrally>true</ManagePackageVersionsCentrally>
</PropertyGroup>
<ItemGroup>
<PackageVersion Include="Autodesk.Forge.Core" Version="4.1.1" />
<PackageVersion Include="Autodesk.SDKManager" Version="1.1.2" />
<PackageVersion Include="Autodesk.ModelDerivative" Version="2.1.0"/>
<PackageVersion Include="Autodesk.Webhooks" Version="3.1.0"/>
<PackageVersion Include="Autodesk.DataManagement" Version="2.0.2"/>
<PackageVersion Include="Autodesk.Oss" Version="2.1.1"/>
<PackageVersion Include="Autodesk.Authentication" Version="2.0.0"/>
<PackageVersion Include="Autodesk.Construction.Issues" Version="2.1.2"/>
<PackageVersion Include="Autodesk.Construction.AccountAdmin" Version="2.2.0"/>
<PackageVersion Include="coverlet.collector" Version="6.0.2" />
<PackageVersion Include="DotNetEnv" Version="3.1.1" />
<PackageVersion Include="Microsoft.NET.Test.Sdk" Version="17.12.0" />
<PackageVersion Include="MSTest.TestAdapter" Version="3.6.4" />
<PackageVersion Include="MSTest.TestFramework" Version="3.6.4" />
</ItemGroup>
</Project>
<PropertyGroup>
<ManagePackageVersionsCentrally>true</ManagePackageVersionsCentrally>
</PropertyGroup>
<ItemGroup>
<PackageVersion Include="Autodesk.Forge.Core" Version="4.1.1" />
<PackageVersion Include="Autodesk.SDKManager" Version="1.1.2" />
<PackageVersion Include="Autodesk.ModelDerivative" Version="2.1.0" />
<PackageVersion Include="Autodesk.Webhooks" Version="3.1.0" />
<PackageVersion Include="Autodesk.DataManagement" Version="2.0.2" />
<PackageVersion Include="Autodesk.Oss" Version="2.1.1" />
<PackageVersion Include="Autodesk.Authentication" Version="2.0.0" />
<PackageVersion Include="Autodesk.Construction.Issues" Version="2.1.2" />
<PackageVersion Include="Autodesk.Construction.AccountAdmin" Version="2.2.1" />
<PackageVersion Include="coverlet.collector" Version="6.0.2" />
<PackageVersion Include="DotNetEnv" Version="3.1.1" />
<PackageVersion Include="Microsoft.NET.Test.Sdk" Version="17.12.0" />
<PackageVersion Include="MSTest.TestAdapter" Version="3.6.4" />
<PackageVersion Include="MSTest.TestFramework" Version="3.6.4" />
</ItemGroup>
</Project>
14 changes: 7 additions & 7 deletions construction/accountadmin/source/Http/AccountUsersApi.gen.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
* APS SDK
*
* The Forge Platform contains an expanding collection of web service components that can be used with Autodesk cloud-based products or your own technologies. Take advantage of Autodesk’s expertise in design and engineering.
* The Autodesk Platform Services (formerly Forge Platform) contain an expanding collection of web service components that can be used with Autodesk cloud-based products or your own technologies. Take advantage of Autodesk’s expertise in design and engineering.
*
* Construction.Account.Admin
*
Expand Down Expand Up @@ -121,9 +121,9 @@ public interface IAccountUsersApi
/// <param name="userPayload">
/// (optional)
/// </param>
/// <returns>Task of ApiResponse&lt;UserImportResponse&gt;</returns>
/// <returns>Task of ApiResponse&lt;UserImport&gt;</returns>

System.Threading.Tasks.Task<ApiResponse<UserImportResponse>> ImportUsersAsync (string accountId, Region? region= null, List<UserPayload> userPayload= default(List<UserPayload>), string accessToken = null, bool throwOnError = true);
System.Threading.Tasks.Task<ApiResponse<UserImport>> ImportUsersAsync (string accountId, Region? region= null, List<UserPayload> userPayload= default(List<UserPayload>), string accessToken = null, bool throwOnError = true);
/// <summary>
/// Update User
/// </summary>
Expand Down Expand Up @@ -588,9 +588,9 @@ public async System.Threading.Tasks.Task<ApiResponse<User>> GetUserAsync (string
/// <param name="userPayload">
/// (optional)
/// </param>
/// <returns>Task of ApiResponse&lt;UserImportResponse&gt;></returns>
/// <returns>Task of ApiResponse&lt;UserImport&gt;></returns>

public async System.Threading.Tasks.Task<ApiResponse<UserImportResponse>> ImportUsersAsync (string accountId,Region? region= null,List<UserPayload> userPayload= default(List<UserPayload>), string accessToken = null, bool throwOnError = true)
public async System.Threading.Tasks.Task<ApiResponse<UserImport>> ImportUsersAsync (string accountId,Region? region= null,List<UserPayload> userPayload= default(List<UserPayload>), string accessToken = null, bool throwOnError = true)
{
logger.LogInformation("Entered into ImportUsersAsync ");
using (var request = new HttpRequestMessage())
Expand Down Expand Up @@ -662,10 +662,10 @@ public async System.Threading.Tasks.Task<ApiResponse<User>> GetUserAsync (string
else if (!response.IsSuccessStatusCode)
{
logger.LogError($"response unsuccess with status code: {response.StatusCode}");
return new ApiResponse<UserImportResponse>(response, default(UserImportResponse));
return new ApiResponse<UserImport>(response, default(UserImport));
}
logger.LogInformation($"Exited from ImportUsersAsync with response statusCode: {response.StatusCode}");
return new ApiResponse<UserImportResponse>(response, await LocalMarshalling.DeserializeAsync<UserImportResponse>(response.Content));
return new ApiResponse<UserImport>(response, await LocalMarshalling.DeserializeAsync<UserImport>(response.Content));

} // using
}
Expand Down
32 changes: 16 additions & 16 deletions construction/accountadmin/source/Http/BusinessUnitsApi.gen.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
* APS SDK
*
* The Forge Platform contains an expanding collection of web service components that can be used with Autodesk cloud-based products or your own technologies. Take advantage of Autodesk’s expertise in design and engineering.
* The Autodesk Platform Services (formerly Forge Platform) contain an expanding collection of web service components that can be used with Autodesk cloud-based products or your own technologies. Take advantage of Autodesk’s expertise in design and engineering.
*
* Construction.Account.Admin
*
Expand Down Expand Up @@ -52,12 +52,12 @@ public interface IBusinessUnitsApi
/// <param name="region">
///The geographic area where the data is stored. Acceptable values: US, EMEA, AUS. By default, it is set to US. (optional)
/// </param>
/// <param name="businessUnitsRequestPyload">
/// <param name="businessUnitsPayload">
/// (optional)
/// </param>
/// <returns>Task of ApiResponse&lt;BusinessUnitsResponse&gt;</returns>
/// <returns>Task of ApiResponse&lt;BusinessUnits&gt;</returns>

System.Threading.Tasks.Task<ApiResponse<BusinessUnitsResponse>> CreateBusinessUnitsAsync (string accountId, Region? region= null, BusinessUnitsRequestPyload businessUnitsRequestPyload= default(BusinessUnitsRequestPyload), string accessToken = null, bool throwOnError = true);
System.Threading.Tasks.Task<ApiResponse<BusinessUnits>> CreateBusinessUnitsAsync (string accountId, Region? region= null, BusinessUnitsPayload businessUnitsPayload= default(BusinessUnitsPayload), string accessToken = null, bool throwOnError = true);
/// <summary>
/// Get Business Units
/// </summary>
Expand All @@ -71,9 +71,9 @@ public interface IBusinessUnitsApi
/// <param name="region">
///The geographic area where the data is stored. Acceptable values: US, EMEA, AUS. By default, it is set to US. (optional)
/// </param>
/// <returns>Task of ApiResponse&lt;BusinessUnitsResponse&gt;</returns>
/// <returns>Task of ApiResponse&lt;BusinessUnits&gt;</returns>

System.Threading.Tasks.Task<ApiResponse<BusinessUnitsResponse>> GetBusinessUnitsAsync (string accountId, Region? region= null, string accessToken = null, bool throwOnError = true);
System.Threading.Tasks.Task<ApiResponse<BusinessUnits>> GetBusinessUnitsAsync (string accountId, Region? region= null, string accessToken = null, bool throwOnError = true);
}

/// <summary>
Expand Down Expand Up @@ -167,12 +167,12 @@ private void SetHeader(string baseName, object value, HttpRequestMessage req)
/// <param name="region">
///The geographic area where the data is stored. Acceptable values: US, EMEA, AUS. By default, it is set to US. (optional)
/// </param>
/// <param name="businessUnitsRequestPyload">
/// <param name="businessUnitsPayload">
/// (optional)
/// </param>
/// <returns>Task of ApiResponse&lt;BusinessUnitsResponse&gt;></returns>
/// <returns>Task of ApiResponse&lt;BusinessUnits&gt;></returns>

public async System.Threading.Tasks.Task<ApiResponse<BusinessUnitsResponse>> CreateBusinessUnitsAsync (string accountId,Region? region= null,BusinessUnitsRequestPyload businessUnitsRequestPyload= default(BusinessUnitsRequestPyload), string accessToken = null, bool throwOnError = true)
public async System.Threading.Tasks.Task<ApiResponse<BusinessUnits>> CreateBusinessUnitsAsync (string accountId,Region? region= null,BusinessUnitsPayload businessUnitsPayload= default(BusinessUnitsPayload), string accessToken = null, bool throwOnError = true)
{
logger.LogInformation("Entered into CreateBusinessUnitsAsync ");
using (var request = new HttpRequestMessage())
Expand All @@ -193,7 +193,7 @@ private void SetHeader(string baseName, object value, HttpRequestMessage req)
request.Headers.TryAddWithoutValidation("Authorization", $"Bearer {accessToken}");
}

request.Content = Marshalling.Serialize(businessUnitsRequestPyload); // http body (model) parameter
request.Content = Marshalling.Serialize(businessUnitsPayload); // http body (model) parameter


SetHeader("Region", region, request);
Expand Down Expand Up @@ -244,10 +244,10 @@ private void SetHeader(string baseName, object value, HttpRequestMessage req)
else if (!response.IsSuccessStatusCode)
{
logger.LogError($"response unsuccess with status code: {response.StatusCode}");
return new ApiResponse<BusinessUnitsResponse>(response, default(BusinessUnitsResponse));
return new ApiResponse<BusinessUnits>(response, default(BusinessUnits));
}
logger.LogInformation($"Exited from CreateBusinessUnitsAsync with response statusCode: {response.StatusCode}");
return new ApiResponse<BusinessUnitsResponse>(response, await LocalMarshalling.DeserializeAsync<BusinessUnitsResponse>(response.Content));
return new ApiResponse<BusinessUnits>(response, await LocalMarshalling.DeserializeAsync<BusinessUnits>(response.Content));

} // using
}
Expand All @@ -264,9 +264,9 @@ private void SetHeader(string baseName, object value, HttpRequestMessage req)
/// <param name="region">
///The geographic area where the data is stored. Acceptable values: US, EMEA, AUS. By default, it is set to US. (optional)
/// </param>
/// <returns>Task of ApiResponse&lt;BusinessUnitsResponse&gt;></returns>
/// <returns>Task of ApiResponse&lt;BusinessUnits&gt;></returns>

public async System.Threading.Tasks.Task<ApiResponse<BusinessUnitsResponse>> GetBusinessUnitsAsync (string accountId,Region? region= null, string accessToken = null, bool throwOnError = true)
public async System.Threading.Tasks.Task<ApiResponse<BusinessUnits>> GetBusinessUnitsAsync (string accountId,Region? region= null, string accessToken = null, bool throwOnError = true)
{
logger.LogInformation("Entered into GetBusinessUnitsAsync ");
using (var request = new HttpRequestMessage())
Expand Down Expand Up @@ -337,10 +337,10 @@ public async System.Threading.Tasks.Task<ApiResponse<BusinessUnitsResponse>> Get
else if (!response.IsSuccessStatusCode)
{
logger.LogError($"response unsuccess with status code: {response.StatusCode}");
return new ApiResponse<BusinessUnitsResponse>(response, default(BusinessUnitsResponse));
return new ApiResponse<BusinessUnits>(response, default(BusinessUnits));
}
logger.LogInformation($"Exited from GetBusinessUnitsAsync with response statusCode: {response.StatusCode}");
return new ApiResponse<BusinessUnitsResponse>(response, await LocalMarshalling.DeserializeAsync<BusinessUnitsResponse>(response.Content));
return new ApiResponse<BusinessUnits>(response, await LocalMarshalling.DeserializeAsync<BusinessUnits>(response.Content));

} // using
}
Expand Down
Loading