diff --git a/.github/workflows/AutoChangeLog.yml b/.github/workflows/AutoChangeLog.yml index 26ab1d1..35b91fe 100644 --- a/.github/workflows/AutoChangeLog.yml +++ b/.github/workflows/AutoChangeLog.yml @@ -2,7 +2,7 @@ name: Auto Update Changelog on: push: branches: - - 'development' + - 'main' paths-ignore: - 'CHANGELOG.md' jobs: diff --git a/README.md b/README.md index 9d86066..4f6be91 100644 --- a/README.md +++ b/README.md @@ -21,10 +21,14 @@ The Developer Portal has everything APS: ## Nuget Packages -- [Data Management]() -- [OSS]() -- [Model Derivative]() -- [Webhooks]() +- [Authentication](https://www.nuget.org/packages/Autodesk.Authentication) +- [Construction Account Admin](https://www.nuget.org/packages/Autodesk.Construction.AccountAdmin/1.0.0-beta1) +- [Construction Issues](https://www.nuget.org/packages/Autodesk.Construction.Issues) +- [Data Management](https://www.nuget.org/packages/Autodesk.DataManagement) +- [Model Derivative](https://www.nuget.org/packages/Autodesk.ModelDerivative) +- [OSS](https://www.nuget.org/packages/Autodesk.Oss) +- [SDK Manager](https://www.nuget.org/packages/Autodesk.SDKManager) +- [Webhooks](https://www.nuget.org/packages/Autodesk.Webhooks) #### Looking for Design Automation v3? diff --git a/authentication/source/Autodesk.Authentication.csproj b/authentication/source/Autodesk.Authentication.csproj index 684ba94..219cfe7 100644 --- a/authentication/source/Autodesk.Authentication.csproj +++ b/authentication/source/Autodesk.Authentication.csproj @@ -3,13 +3,14 @@ netstandard2.0 true + true Autodesk Platform Services SDK Team Client SDK for Authentication API Autodesk Inc. Autodesk.Authentication - 1.0.0 + 2.0.0-beta LICENSE.txt - README.md + README.md https://github.com/autodesk-platform-services/aps-sdk-net.git diff --git a/authentication/source/Http/TokenApi.gen.cs b/authentication/source/Http/TokenApi.gen.cs index a4339b4..84bb667 100644 --- a/authentication/source/Http/TokenApi.gen.cs +++ b/authentication/source/Http/TokenApi.gen.cs @@ -126,7 +126,7 @@ public interface ITokenApi /// /// Thrown when fails to make API call /// - ///Must be `Bearer ` where `` is the Base64 encoding of the concatenated string `:`.' + ///Must be `Bearer <BASE64_ENCODED_STRING>` where `<BASE64_ENCODED_STRING>` is the Base64 encoding of the concatenated string `<CLIENT_ID>:<CLIENT_SECRET>`.' /// ///**Note** This header is required only for Traditional Web Apps and Server-to-Server Apps. It is not required for Desktop, Mobile, and Single-Page Apps. (optional) /// @@ -190,7 +190,7 @@ public interface ITokenApi /// /// Thrown when fails to make API call /// - ///Must be `Bearer ` where `` is the Base64 encoding of the concatenated string `:`.' + ///Must be `Bearer <BASE64_ENCODED_STRING>` where `<BASE64_ENCODED_STRING>` is the Base64 encoding of the concatenated string `<CLIENT_ID>:<CLIENT_SECRET>`.' /// ///**Note** This header is required only for Traditional Web Apps and Server-to-Server Apps. It is not required for Desktop, Mobile, and Single-Page Apps. (optional) /// @@ -238,7 +238,7 @@ public interface ITokenApi /// /// /// - ///Must be `Bearer ` where `` is the Base64 encoding of the concatenated string `:`.' + ///Must be `Bearer <BASE64_ENCODED_STRING>` where `<BASE64_ENCODED_STRING>` is the Base64 encoding of the concatenated string `<CLIENT_ID>:<CLIENT_SECRET>`.' /// ///**Note** This header is required only for Traditional Web Apps and Server-to-Server Apps. It is not required for Desktop, Mobile, and Single-Page Apps. (optional) /// @@ -383,7 +383,7 @@ private void SetHeader(string baseName, object value, HttpRequestMessage req) /// ///The string can only contain alphanumeric characters, commas, periods, underscores, and hyphens. (optional) /// - /// + /// ///A URL-encoded space-delimited list of requested scopes. See the [Developer's Guide documentation on scopes](/en/docs/oauth/v2/developers_guide/scopes/) for a list of valid values you can provide. /// ///The string you specify for this parameter must not exceed 2000 characters and it cannot contain more than 50 scopes. (optional) @@ -463,7 +463,7 @@ private void SetHeader(string baseName, object value, HttpRequestMessage req) /// /// Thrown when fails to make API call /// - ///Must be `Bearer ` where `` is the Base64 encoding of the concatenated string `:`.' + ///Must be `Bearer <BASE64_ENCODED_STRING>` where `<BASE64_ENCODED_STRING>` is the Base64 encoding of the concatenated string `<CLIENT_ID>:<CLIENT_SECRET>`.' /// ///**Note** This header is required only for Traditional Web Apps and Server-to-Server Apps. It is not required for Desktop, Mobile, and Single-Page Apps. (optional) /// @@ -674,7 +674,7 @@ public async System.Threading.Tasks.Task> GetOidcSpecAsync /// /// Thrown when fails to make API call /// - ///Must be `Bearer ` where `` is the Base64 encoding of the concatenated string `:`.' + ///Must be `Bearer <BASE64_ENCODED_STRING>` where `<BASE64_ENCODED_STRING>` is the Base64 encoding of the concatenated string `<CLIENT_ID>:<CLIENT_SECRET>`.' /// ///**Note** This header is required only for Traditional Web Apps and Server-to-Server Apps. It is not required for Desktop, Mobile, and Single-Page Apps. (optional) /// @@ -798,7 +798,7 @@ public async System.Threading.Tasks.Task> GetOidcSpecAsync /// /// /// - ///Must be `Bearer ` where `` is the Base64 encoding of the concatenated string `:`.' + ///Must be `Bearer <BASE64_ENCODED_STRING>` where `<BASE64_ENCODED_STRING>` is the Base64 encoding of the concatenated string `<CLIENT_ID>:<CLIENT_SECRET>`.' /// ///**Note** This header is required only for Traditional Web Apps and Server-to-Server Apps. It is not required for Desktop, Mobile, and Single-Page Apps. (optional) /// diff --git a/authentication/source/Http/UsersApi.gen.cs b/authentication/source/Http/UsersApi.gen.cs index 042f5d0..3e88b56 100644 --- a/authentication/source/Http/UsersApi.gen.cs +++ b/authentication/source/Http/UsersApi.gen.cs @@ -59,7 +59,9 @@ public partial class UsersApi : IUsersApi { ILogger logger; - // Manually added because UsersApi has a different base address. + /// + /// Manually added because UsersApi has a different base address. + /// public Uri BaseAddress { get; set; } /// diff --git a/authentication/source/Model/ThreeLeggedToken.gen.cs b/authentication/source/Model/ThreeLeggedToken.gen.cs index 9a35cc6..b3cb736 100644 --- a/authentication/source/Model/ThreeLeggedToken.gen.cs +++ b/authentication/source/Model/ThreeLeggedToken.gen.cs @@ -78,7 +78,7 @@ public int? ExpiresIn /// /// Time the access token will expire at, in Unix seconds. - ////// + /// /// ///Time the access token will expire at, in Unix seconds. /// diff --git a/authentication/source/custom-code/AuthenticationClient.cs b/authentication/source/custom-code/AuthenticationClient.cs index 795363e..d708628 100644 --- a/authentication/source/custom-code/AuthenticationClient.cs +++ b/authentication/source/custom-code/AuthenticationClient.cs @@ -203,7 +203,7 @@ public async System.Threading.Tasks.Task GetTwoLeggedTokenAsync( ///The Client secret of the calling application, as registered with APS. ///**Note** The clientSecret is required only for Traditional Web Apps and Server-to-Server Apps. It is not required for Desktop, Mobile, and Single-Page Apps. (optional) /// - /// + /// ///The refresh token used to acquire a new access token and a refresh token. /// /// diff --git a/authentication/test/TestAuthentication.cs b/authentication/test/TestAuthentication.cs index c28d0ed..ac4f9c1 100644 --- a/authentication/test/TestAuthentication.cs +++ b/authentication/test/TestAuthentication.cs @@ -60,7 +60,7 @@ public async Task Test3LeggedTokenAsync() [TestMethod] public async Task TestRefreshTokenAsync() { - RefreshToken newToken = await _authClient.GetRefreshTokenAsync(client_id, client_secret, "refreshToken"); + ThreeLeggedToken newToken = await _authClient.RefreshTokenAsync(client_id, client_secret, "refreshToken"); Assert.IsNotNull(newToken.AccessToken); } diff --git a/construction/accountadmin/Autodesk.Construction.AccountAdmin.csproj b/construction/accountadmin/Autodesk.Construction.AccountAdmin.csproj index c30135d..f3db3f9 100644 --- a/construction/accountadmin/Autodesk.Construction.AccountAdmin.csproj +++ b/construction/accountadmin/Autodesk.Construction.AccountAdmin.csproj @@ -4,16 +4,14 @@ netstandard2.0 true true - - Autodesk - Autodesk SDK - Client sdk for Construction Account Admin API + Autodesk Platform Services SDK Team + Client SDK for Construction Account Admin API Autodesk Inc. Autodesk.Construction.AccountAdmin - 1.0.0 - Autodesk SDK team - Autodesk SDK team - Autodesk + 1.0.0-beta1 + LICENSE.txt + README.md + https://github.com/autodesk-platform-services/aps-sdk-net.git @@ -24,6 +22,8 @@ + + diff --git a/construction/issues/source/Autodesk.Construction.Issues.csproj b/construction/issues/source/Autodesk.Construction.Issues.csproj index 6a1e994..9f4a3fb 100644 --- a/construction/issues/source/Autodesk.Construction.Issues.csproj +++ b/construction/issues/source/Autodesk.Construction.Issues.csproj @@ -3,11 +3,12 @@ netstandard2.0 true + true Autodesk Platform Services SDK Team Client SDK for Construction Issues API Autodesk Inc. Autodesk.Construction.Issues - 1.0.0-beta1 + 1.1.0 LICENSE.txt README.md https://github.com/autodesk-platform-services/aps-sdk-net.git @@ -21,8 +22,8 @@ - - + + diff --git a/datamanagement/source/Autodesk.DataManagement.csproj b/datamanagement/source/Autodesk.DataManagement.csproj index 2812b91..d73bb51 100644 --- a/datamanagement/source/Autodesk.DataManagement.csproj +++ b/datamanagement/source/Autodesk.DataManagement.csproj @@ -3,6 +3,7 @@ netstandard2.0 true + true Autodesk Platform Services SDK Team Client SDK for DataManagement API Autodesk Inc. diff --git a/modelderivative/source/Autodesk.ModelDerivative.csproj b/modelderivative/source/Autodesk.ModelDerivative.csproj index cc19473..31d700a 100644 --- a/modelderivative/source/Autodesk.ModelDerivative.csproj +++ b/modelderivative/source/Autodesk.ModelDerivative.csproj @@ -3,11 +3,12 @@ netstandard2.0 true + true Autodesk Platform Services SDK Team Client SDK for Model Derivative API Autodesk Inc. Autodesk.ModelDerivative - 1.0.0 + 2.0.0-beta LICENSE.txt README.md https://github.com/autodesk-platform-services/aps-sdk-net.git diff --git a/oss/source/Autodesk.Oss.csproj b/oss/source/Autodesk.Oss.csproj index 250f278..eee1ef8 100644 --- a/oss/source/Autodesk.Oss.csproj +++ b/oss/source/Autodesk.Oss.csproj @@ -3,11 +3,12 @@ netstandard2.0 true + true Autodesk Platform Services SDK Team Client SDK for Data Management OSS API Autodesk Inc. Autodesk.Oss - 1.0.0 + 1.1.0 LICENSE.txt README.md https://github.com/autodesk-platform-services/aps-sdk-net.git diff --git a/oss/source/custom-code/OssClient.cs b/oss/source/custom-code/OssClient.cs index cbe1e82..ebfc42b 100644 --- a/oss/source/custom-code/OssClient.cs +++ b/oss/source/custom-code/OssClient.cs @@ -21,6 +21,7 @@ public class OssClient public OssClient(SDKManager.SDKManager sdkManager) { this.bucketsApi = new BucketsApi(sdkManager); + this.objectsApi = new ObjectsApi(sdkManager); this.oSSFileTransfer = new OSSFileTransfer(new FileTransferConfigurations(3), null); } @@ -65,14 +66,10 @@ public async System.Threading.Tasks.Task Upload(string bucketKey, public async System.Threading.Tasks.Task Upload(string bucketKey, string objectKey, string sourceToUpload, string accessToken, CancellationToken cancellationToken, string projectScope = "", string requestIdPrefix = "", IProgress progress = null) { - using (FileStream SourceStream = File.Open(sourceToUpload, FileMode.Open)) - { - var result = new byte[SourceStream.Length]; - await SourceStream.ReadAsync(result, 0, (int)SourceStream.Length); - var response = await this.oSSFileTransfer.Upload(bucketKey, objectKey, new MemoryStream(result), accessToken, cancellationToken, projectScope, requestIdPrefix, progress); + FileStream fileStream = File.OpenRead(sourceToUpload); + var response = await this.oSSFileTransfer.Upload(bucketKey, objectKey, fileStream, accessToken, cancellationToken, projectScope, requestIdPrefix, progress); var apiResponse = new ApiResponse(response, await LocalMarshalling.DeserializeAsync(response.Content)); - return apiResponse.Content; - } + return apiResponse.Content; } /// @@ -126,7 +123,7 @@ public async System.Threading.Tasks.Task Download(string bucketKey, string objec /// /// Task of <BatchcompleteuploadResponse> - public async System.Threading.Tasks.Task BatchCompleteUploadAsync(string accessToken, string bucketKey, BatchcompleteuploadObject requests = default(BatchcompleteuploadObject), bool throwOnError = true) + public async System.Threading.Tasks.Task BatchCompleteUploadAsync(string accessToken, string bucketKey, BatchcompleteuploadObject requests, bool throwOnError = true) { var response = await this.objectsApi.BatchCompleteUploadAsync(bucketKey, requests, accessToken, throwOnError); return response.Content; @@ -286,7 +283,7 @@ public async System.Threading.Tasks.Task Download(string bucketKey, string objec ///**Note:** Do not use this operation to create buckets for BIM360 Document Management. Use [POST projects/{project_id}/storage](/en/docs/data/v2/reference/http/projects-project_id-storage-POST>) instead. For details, see [Upload Files to BIM 360 Document Management](/en/docs/bim360/v1/tutorials/document-management/upload-document). /// /// Thrown when fails to make API call - /// + /// /// /// /// @@ -298,9 +295,9 @@ public async System.Threading.Tasks.Task Download(string bucketKey, string objec /// /// Task of <Bucket> - public async System.Threading.Tasks.Task CreateBucketAsync(string accessToken, Region xAdsRegion, CreateBucketsPayload policyKey, bool throwOnError = true) + public async System.Threading.Tasks.Task CreateBucketAsync(string accessToken, Region xAdsRegion, CreateBucketsPayload bucketsPayload, bool throwOnError = true) { - var response = await this.bucketsApi.CreateBucketAsync(policyKey, xAdsRegion, accessToken, throwOnError); + var response = await this.bucketsApi.CreateBucketAsync(bucketsPayload, xAdsRegion, accessToken, throwOnError); return response.Content; } /// diff --git a/webhooks/source/Autodesk.Webhooks.csproj b/webhooks/source/Autodesk.Webhooks.csproj index 714285c..c11fa03 100644 --- a/webhooks/source/Autodesk.Webhooks.csproj +++ b/webhooks/source/Autodesk.Webhooks.csproj @@ -3,11 +3,12 @@ netstandard2.0 true + true Autodesk Platform Services SDK Team Client SDK for WebHooks API Autodesk Inc. Autodesk.Webhooks - 1.0.0 + 2.0.0-beta LICENSE.txt README.md https://github.com/autodesk-platform-services/aps-sdk-net.git