diff --git a/.fern/metadata.json b/.fern/metadata.json
index 52fb566..7ce833a 100644
--- a/.fern/metadata.json
+++ b/.fern/metadata.json
@@ -3,10 +3,14 @@
"generatorName": "fernapi/fern-csharp-sdk",
"generatorVersion": "2.80.0",
"generatorConfig": {
- "namespace": "CloudpdfApi",
- "package-id": "CloudpdfApi"
+ "namespace": "CloudPDF",
+ "package-id": "CloudPDF",
+ "client-class-name": "CloudPDFClient",
+ "environment-class-name": "CloudPDFEnvironment",
+ "base-exception-class-name": "CloudPDFException",
+ "base-api-exception-class-name": "CloudPDFApiException"
},
- "originGitCommit": "232d5e0240d5673a73c9ea7c7ae9e7b937fdd5b3",
+ "originGitCommit": "a0adb9e77ef16feaef2358d71b247b4f5a98fd23",
"originGitCommitIsDirty": false,
"invokedBy": "ci",
"requestedVersion": "3.0.0-next.1",
diff --git a/.github/workflows/sdk-ci.yml b/.github/workflows/sdk-ci.yml
index 69eb9d8..c484c61 100644
--- a/.github/workflows/sdk-ci.yml
+++ b/.github/workflows/sdk-ci.yml
@@ -17,4 +17,5 @@ jobs:
- uses: actions/setup-dotnet@v4
with:
dotnet-version: '9.0.x'
- - run: dotnet build src/CloudpdfApi/CloudpdfApi.csproj -c Release -f net8.0
+ - run: dotnet build src/CloudPDF/CloudPDF.csproj -c Release -f net8.0
+ - run: dotnet pack src/CloudPDF/CloudPDF.csproj -c Release -o /tmp/cloudpdf-nuget
diff --git a/.github/workflows/sdk-release.yml b/.github/workflows/sdk-release.yml
new file mode 100644
index 0000000..02911a5
--- /dev/null
+++ b/.github/workflows/sdk-release.yml
@@ -0,0 +1,143 @@
+name: SDK Release
+
+on:
+ push:
+ branches: [main]
+ paths-ignore:
+ - '.github/**'
+ workflow_dispatch:
+
+permissions:
+ contents: read
+
+concurrency:
+ group: sdk-release
+ cancel-in-progress: false
+
+jobs:
+ release:
+ name: Publish CloudPDF
+ if: github.event_name == 'workflow_dispatch' || vars.SDK_AUTO_PUBLISH_ENABLED == 'true'
+ runs-on: ubuntu-latest
+ environment: release
+ permissions:
+ contents: write
+ id-token: write
+ steps:
+ - uses: actions/checkout@v4
+ with:
+ fetch-depth: 0
+
+ - uses: actions/setup-dotnet@v4
+ with:
+ dotnet-version: '9.0.x'
+
+ - uses: actions/setup-python@v5
+ with:
+ python-version: '3.12'
+
+ - name: Verify generated release version
+ id: version
+ run: |
+ python - <<'PY'
+ import json
+ import os
+ import xml.etree.ElementTree as ET
+
+ project = ET.parse('src/CloudPDF/CloudPDF.csproj').getroot()
+ package_id = project.findtext('./PropertyGroup/PackageId')
+ version = project.findtext('./PropertyGroup/Version')
+ with open('cloudpdf-generation.json', encoding='utf-8') as file:
+ generation = json.load(file)
+ if generation['language'] != 'csharp':
+ raise RuntimeError('generation language is not csharp')
+ if package_id != 'CloudPDF':
+ raise RuntimeError(f'unexpected NuGet package {package_id}')
+ if version != generation['sdkVersion']:
+ raise RuntimeError(f'package version {version} does not match generated version {generation["sdkVersion"]}')
+ prerelease = '-' in generation['canonicalVersion']
+ with open(os.environ['GITHUB_OUTPUT'], 'a', encoding='utf-8') as output:
+ output.write(f'version={version}\n')
+ output.write(f'tag=v{version}\n')
+ output.write(f'prerelease={str(prerelease).lower()}\n')
+ PY
+
+ - name: Pack NuGet package
+ run: dotnet pack src/CloudPDF/CloudPDF.csproj -c Release -o dist
+
+ - name: Protect immutable release tag
+ id: release-tag
+ env:
+ RELEASE_TAG: ${{ steps.version.outputs.tag }}
+ run: |
+ git fetch --force --tags origin
+ if git rev-parse --quiet --verify "refs/tags/$RELEASE_TAG" >/dev/null; then
+ tagged_commit="$(git rev-list -n 1 "$RELEASE_TAG")"
+ if [ "$tagged_commit" != "$GITHUB_SHA" ]; then
+ if git diff --quiet "$RELEASE_TAG" "$GITHUB_SHA" -- . ':(exclude).github/**'; then
+ echo "::notice::Reusing $RELEASE_TAG after a workflow-only change."
+ else
+ echo "::error::Release tag $RELEASE_TAG already points to different package source at $tagged_commit; bump the SDK version."
+ exit 1
+ fi
+ fi
+ echo "existed=true" >> "$GITHUB_OUTPUT"
+ else
+ git config user.name cloudpdf-sdk-bot
+ git config user.email hello@cloudpdf.com
+ git tag -a "$RELEASE_TAG" -m "CloudPDF .NET SDK $RELEASE_TAG"
+ git push origin "refs/tags/$RELEASE_TAG"
+ echo "existed=false" >> "$GITHUB_OUTPUT"
+ fi
+
+ - name: Check NuGet publication state
+ id: registry
+ env:
+ VERSION: ${{ steps.version.outputs.version }}
+ TAG_EXISTED: ${{ steps.release-tag.outputs.existed }}
+ run: |
+ normalized_version="$(printf '%s' "$VERSION" | tr '[:upper:]' '[:lower:]')"
+ package_url="https://api.nuget.org/v3-flatcontainer/cloudpdf/$normalized_version/cloudpdf.$normalized_version.nupkg"
+ http_status="$(curl --silent --show-error --output /dev/null --write-out '%{http_code}' "$package_url")"
+ case "$http_status" in
+ 200)
+ if [ "$TAG_EXISTED" != 'true' ]; then
+ echo "::error::CloudPDF $VERSION already exists on NuGet but its release tag did not exist."
+ exit 1
+ fi
+ echo "publish=false" >> "$GITHUB_OUTPUT"
+ ;;
+ 404)
+ echo "publish=true" >> "$GITHUB_OUTPUT"
+ ;;
+ *)
+ echo "::error::NuGet returned HTTP $http_status while checking CloudPDF $VERSION."
+ exit 1
+ ;;
+ esac
+
+ - name: Exchange GitHub identity for a NuGet API key
+ if: steps.registry.outputs.publish == 'true'
+ id: nuget-login
+ uses: NuGet/login@v1
+ with:
+ user: ${{ vars.NUGET_USER }}
+
+ - name: Publish to NuGet
+ if: steps.registry.outputs.publish == 'true'
+ env:
+ NUGET_API_KEY: ${{ steps.nuget-login.outputs.NUGET_API_KEY }}
+ run: dotnet nuget push "dist/CloudPDF.${{ steps.version.outputs.version }}.nupkg" --api-key "$NUGET_API_KEY" --source https://api.nuget.org/v3/index.json
+
+ - name: Create GitHub release
+ env:
+ GH_TOKEN: ${{ github.token }}
+ RELEASE_TAG: ${{ steps.version.outputs.tag }}
+ PRERELEASE: ${{ steps.version.outputs.prerelease }}
+ run: |
+ if gh release view "$RELEASE_TAG" >/dev/null 2>&1; then
+ exit 0
+ fi
+ args=(--verify-tag --generate-notes --title "CloudPDF .NET SDK $RELEASE_TAG")
+ if [ "$PRERELEASE" = 'true' ]; then args+=(--prerelease); fi
+ gh release create "$RELEASE_TAG" "${args[@]}"
diff --git a/CloudPDF.slnx b/CloudPDF.slnx
new file mode 100644
index 0000000..dbbf6d9
--- /dev/null
+++ b/CloudPDF.slnx
@@ -0,0 +1,4 @@
+
+
+
+
diff --git a/CloudpdfApi.slnx b/CloudpdfApi.slnx
deleted file mode 100644
index f4e92f4..0000000
--- a/CloudpdfApi.slnx
+++ /dev/null
@@ -1,4 +0,0 @@
-
-
-
-
diff --git a/README.md b/README.md
index 2d62be8..4d2e6bf 100644
--- a/README.md
+++ b/README.md
@@ -1,9 +1,9 @@
-# Cloudpdf C# Library
+# CloudPDF .NET SDK
[](https://buildwithfern.com?utm_source=github&utm_medium=github&utm_campaign=readme&utm_source=Cloudpdf%2FC%23)
-[](https://nuget.org/packages/CloudpdfApi)
+[](https://nuget.org/packages/CloudPDF)
-The Cloudpdf C# library provides convenient access to the Cloudpdf APIs from C#.
+The official .NET SDK for the CloudPDF API.
## Table of Contents
@@ -29,7 +29,7 @@ This SDK requires:
## Installation
```sh
-dotnet add package CloudpdfApi
+dotnet add package CloudPDF
```
## Reference
@@ -41,9 +41,9 @@ A full reference for this library is available [here](./reference.md).
Instantiate and use the client with the following:
```csharp
-using CloudpdfApi;
+using CloudPDF;
-var client = new CloudpdfApiClient("TOKEN");
+var client = new CloudPDFClient("TOKEN");
await client.Tenants.CreateAsync(new TenantsCreateRequest { Id = "id" });
```
@@ -53,11 +53,11 @@ When the API returns a non-success status code (4xx or 5xx response), a subclass
will be thrown.
```csharp
-using CloudpdfApi;
+using CloudPDF;
try {
var response = await client.Tenants.CreateAsync(...);
-} catch (CloudpdfApiApiException e) {
+} catch (CloudPDFApiException e) {
System.Console.WriteLine(e.Body);
System.Console.WriteLine(e.StatusCode);
@@ -125,7 +125,7 @@ var response = await client.Tenants.CreateAsync(
Access raw HTTP response data (status code, headers, URL) alongside parsed response data using the `.WithRawResponse()` method.
```csharp
-using CloudpdfApi;
+using CloudPDF;
// Access raw response data (status code, headers, etc.) alongside the parsed response
var result = await client.Tenants.CreateAsync(...).WithRawResponse();
@@ -205,7 +205,7 @@ var response = await client.Tenants.CreateAsync(
This SDK uses forward-compatible enums that can handle unknown values gracefully.
```csharp
-using CloudpdfApi;
+using CloudPDF;
// Using a built-in value
var listDocumentsRequestState = ListDocumentsRequestState.Pending;
diff --git a/cloudpdf-generation.json b/cloudpdf-generation.json
index 5622d11..1ffcb51 100644
--- a/cloudpdf-generation.json
+++ b/cloudpdf-generation.json
@@ -6,7 +6,7 @@
"repository": "embedpdf/embed-pdf-viewer",
"openapi": "cloudpdf/contract/openapi.json",
"openapiSha256": "6858ce7912e9063d8fb171ade95fc473db01c5971a3af241a612dda79cc05100",
- "gitCommit": "232d5e0240d5673a73c9ea7c7ae9e7b937fdd5b3",
+ "gitCommit": "a0adb9e77ef16feaef2358d71b247b4f5a98fd23",
"gitCommitIsDirty": false
},
"fern": {
diff --git a/reference.md b/reference.md
index 40d7a68..dc59e86 100644
--- a/reference.md
+++ b/reference.md
@@ -1,6 +1,6 @@
# Reference
## Deployment
-client.Deployment.LicenseStatusAsync() -> WithRawResponseTask<DeploymentLicenseStatusResponse>
+client.Deployment.LicenseStatusAsync() -> WithRawResponseTask<DeploymentLicenseStatusResponse>
-
@@ -26,7 +26,7 @@ await client.Deployment.LicenseStatusAsync();
## Doc
-client.Doc.HeadAsync(HeadDocRequest { ... }) -> WithRawResponseTask<DocHead200Response>
+client.Doc.HeadAsync(HeadDocRequest { ... }) -> WithRawResponseTask<DocHead200Response>
-
@@ -66,7 +66,7 @@ await client.Doc.HeadAsync(new HeadDocRequest { DocId = "docId" });
-client.Doc.DownloadAsync(DownloadDocRequest { ... }) -> WithRawResponseTask<Stream>
+client.Doc.DownloadAsync(DownloadDocRequest { ... }) -> WithRawResponseTask<Stream>
-
@@ -106,7 +106,7 @@ await client.Doc.DownloadAsync(new DownloadDocRequest { DocId = "docId", LayerNa
-client.Doc.ManifestAsync(ManifestDocRequest { ... }) -> WithRawResponseTask<DocManifest200Response>
+client.Doc.ManifestAsync(ManifestDocRequest { ... }) -> WithRawResponseTask<DocManifest200Response>
-
@@ -146,7 +146,7 @@ await client.Doc.ManifestAsync(new ManifestDocRequest { DocId = "docId", LayerNa
-client.Doc.RenderAsync(RenderDocRequest { ... }) -> WithRawResponseTask<Stream>
+client.Doc.RenderAsync(RenderDocRequest { ... }) -> WithRawResponseTask<Stream>
-
@@ -207,7 +207,7 @@ await client.Doc.RenderAsync(
-client.Doc.TextAsync(TextDocRequest { ... }) -> WithRawResponseTask<DocText200Response>
+client.Doc.TextAsync(TextDocRequest { ... }) -> WithRawResponseTask<DocText200Response>
-
@@ -255,7 +255,7 @@ await client.Doc.TextAsync(
## Tenants
-client.Tenants.ListAsync(ListTenantsRequest { ... }) -> WithRawResponseTask<TenantsList200Response>
+client.Tenants.ListAsync(ListTenantsRequest { ... }) -> WithRawResponseTask<TenantsList200Response>
-
@@ -295,7 +295,7 @@ await client.Tenants.ListAsync(new ListTenantsRequest());
-client.Tenants.CreateAsync(TenantsCreateRequest { ... }) -> WithRawResponseTask<TenantsCreate200Response>
+client.Tenants.CreateAsync(TenantsCreateRequest { ... }) -> WithRawResponseTask<TenantsCreate200Response>
-
@@ -335,7 +335,7 @@ await client.Tenants.CreateAsync(new TenantsCreateRequest { Id = "id" });
-client.Tenants.GetAsync(GetTenantsRequest { ... }) -> WithRawResponseTask<TenantsGet200Response>
+client.Tenants.GetAsync(GetTenantsRequest { ... }) -> WithRawResponseTask<TenantsGet200Response>
-
@@ -375,7 +375,7 @@ await client.Tenants.GetAsync(new GetTenantsRequest { TenantId = "tenantId" });
-client.Tenants.DeleteAsync(DeleteTenantsRequest { ... }) -> WithRawResponseTask
+client.Tenants.DeleteAsync(DeleteTenantsRequest { ... }) -> WithRawResponseTask
-
@@ -430,7 +430,7 @@ await client.Tenants.DeleteAsync(new DeleteTenantsRequest { TenantId = "tenantId
## Documents
-client.Documents.ListAsync(ListDocumentsRequest { ... }) -> WithRawResponseTask<DocumentsList200Response>
+client.Documents.ListAsync(ListDocumentsRequest { ... }) -> WithRawResponseTask<DocumentsList200Response>
-
@@ -470,7 +470,7 @@ await client.Documents.ListAsync(new ListDocumentsRequest { TenantId = "tenantId
-client.Documents.GetAsync(GetDocumentsRequest { ... }) -> WithRawResponseTask<DocumentsGet200Response>
+client.Documents.GetAsync(GetDocumentsRequest { ... }) -> WithRawResponseTask<DocumentsGet200Response>
-
@@ -510,7 +510,7 @@ await client.Documents.GetAsync(new GetDocumentsRequest { TenantId = "tenantId",
-client.Documents.DeleteAsync(DeleteDocumentsRequest { ... }) -> WithRawResponseTask
+client.Documents.DeleteAsync(DeleteDocumentsRequest { ... }) -> WithRawResponseTask
-
@@ -550,7 +550,7 @@ await client.Documents.DeleteAsync(new DeleteDocumentsRequest { TenantId = "tena
-client.Documents.CommitAsync(DocumentsCommitRequest { ... }) -> WithRawResponseTask<DocumentsCommit200Response>
+client.Documents.CommitAsync(DocumentsCommitRequest { ... }) -> WithRawResponseTask<DocumentsCommit200Response>
-
@@ -597,7 +597,7 @@ await client.Documents.CommitAsync(
-client.Documents.DownloadAsync(DownloadDocumentsRequest { ... }) -> WithRawResponseTask<Stream>
+client.Documents.DownloadAsync(DownloadDocumentsRequest { ... }) -> WithRawResponseTask<Stream>
-
@@ -639,7 +639,7 @@ await client.Documents.DownloadAsync(
-client.Documents.ThumbnailAsync(ThumbnailDocumentsRequest { ... }) -> WithRawResponseTask<Stream>
+client.Documents.ThumbnailAsync(ThumbnailDocumentsRequest { ... }) -> WithRawResponseTask<Stream>
-
@@ -681,7 +681,7 @@ await client.Documents.ThumbnailAsync(
-client.Documents.InitAsync(DocumentsInitRequest { ... }) -> WithRawResponseTask<DocumentsInit200Response>
+client.Documents.InitAsync(DocumentsInitRequest { ... }) -> WithRawResponseTask<DocumentsInit200Response>
-
@@ -729,7 +729,7 @@ await client.Documents.InitAsync(
## Tokens
-client.Tokens.IssueAsync(IssueTokensRequest { ... }) -> WithRawResponseTask<TokensIssue200Response>
+client.Tokens.IssueAsync(IssueTokensRequest { ... }) -> WithRawResponseTask<TokensIssue200Response>
-
@@ -799,7 +799,7 @@ await client.Tokens.IssueAsync(
-client.Tokens.RevokeAsync(TokensRevokeRequest { ... }) -> WithRawResponseTask
+client.Tokens.RevokeAsync(TokensRevokeRequest { ... }) -> WithRawResponseTask
-
@@ -854,7 +854,7 @@ await client.Tokens.RevokeAsync(new TokensRevokeRequest { TenantId = "tenantId",
## Doc Annotations
-client.Doc.Annotations.ListAsync(ListAnnotationsRequest { ... }) -> WithRawResponseTask<DocAnnotationsList200Response>
+client.Doc.Annotations.ListAsync(ListAnnotationsRequest { ... }) -> WithRawResponseTask<DocAnnotationsList200Response>
-
@@ -901,7 +901,7 @@ await client.Doc.Annotations.ListAsync(
-client.Doc.Annotations.CreateAsync(CreateAnnotationsRequest { ... }) -> WithRawResponseTask<DocAnnotationsCreate200Response>
+client.Doc.Annotations.CreateAsync(CreateAnnotationsRequest { ... }) -> WithRawResponseTask<DocAnnotationsCreate200Response>
-
@@ -963,7 +963,7 @@ await client.Doc.Annotations.CreateAsync(
-client.Doc.Annotations.DeleteAsync(DeleteAnnotationsRequest { ... }) -> WithRawResponseTask<DocAnnotationsDelete200Response>
+client.Doc.Annotations.DeleteAsync(DeleteAnnotationsRequest { ... }) -> WithRawResponseTask<DocAnnotationsDelete200Response>
-
@@ -1011,7 +1011,7 @@ await client.Doc.Annotations.DeleteAsync(
-client.Doc.Annotations.UpdateAsync(UpdateAnnotationsRequest { ... }) -> WithRawResponseTask<DocAnnotationsUpdate200Response>
+client.Doc.Annotations.UpdateAsync(UpdateAnnotationsRequest { ... }) -> WithRawResponseTask<DocAnnotationsUpdate200Response>
-
@@ -1061,7 +1061,7 @@ await client.Doc.Annotations.UpdateAsync(
## Doc Forms
-client.Doc.Forms.GetAsync(GetFormsRequest { ... }) -> WithRawResponseTask<DocFormsGet200Response>
+client.Doc.Forms.GetAsync(GetFormsRequest { ... }) -> WithRawResponseTask<DocFormsGet200Response>
-
@@ -1101,7 +1101,7 @@ await client.Doc.Forms.GetAsync(new GetFormsRequest { DocId = "docId", LayerName
-client.Doc.Forms.ExportDataAsync(ExportDataFormsRequest { ... }) -> WithRawResponseTask<Stream>
+client.Doc.Forms.ExportDataAsync(ExportDataFormsRequest { ... }) -> WithRawResponseTask<Stream>
-
@@ -1143,7 +1143,7 @@ await client.Doc.Forms.ExportDataAsync(
-client.Doc.Forms.ImportDataAsync(ImportDataFormsRequest { ... }) -> WithRawResponseTask<DocFormsImportData200Response>
+client.Doc.Forms.ImportDataAsync(ImportDataFormsRequest { ... }) -> WithRawResponseTask<DocFormsImportData200Response>
-
@@ -1190,7 +1190,7 @@ await client.Doc.Forms.ImportDataAsync(
-client.Doc.Forms.ResetAsync(ResetFormsRequest { ... }) -> WithRawResponseTask<DocFormsReset200Response>
+client.Doc.Forms.ResetAsync(ResetFormsRequest { ... }) -> WithRawResponseTask<DocFormsReset200Response>
-
@@ -1237,7 +1237,7 @@ await client.Doc.Forms.ResetAsync(
-client.Doc.Forms.SetValueAsync(SetValueFormsRequest { ... }) -> WithRawResponseTask<DocFormsSetValue200Response>
+client.Doc.Forms.SetValueAsync(SetValueFormsRequest { ... }) -> WithRawResponseTask<DocFormsSetValue200Response>
-
@@ -1286,7 +1286,7 @@ await client.Doc.Forms.SetValueAsync(
## Doc Metadata
-client.Doc.Metadata.GetAsync(GetMetadataRequest { ... }) -> WithRawResponseTask<DocMetadataGet200Response>
+client.Doc.Metadata.GetAsync(GetMetadataRequest { ... }) -> WithRawResponseTask<DocMetadataGet200Response>
-
@@ -1329,7 +1329,7 @@ await client.Doc.Metadata.GetAsync(
## Doc Pages
-client.Doc.Pages.DeleteAsync(DeletePagesRequest { ... }) -> WithRawResponseTask<DocPagesDelete200Response>
+client.Doc.Pages.DeleteAsync(DeletePagesRequest { ... }) -> WithRawResponseTask<DocPagesDelete200Response>
-
@@ -1376,7 +1376,7 @@ await client.Doc.Pages.DeleteAsync(
-client.Doc.Pages.FlattenAsync(FlattenPagesRequest { ... }) -> WithRawResponseTask<DocPagesFlatten200Response>
+client.Doc.Pages.FlattenAsync(FlattenPagesRequest { ... }) -> WithRawResponseTask<DocPagesFlatten200Response>
-
@@ -1423,7 +1423,7 @@ await client.Doc.Pages.FlattenAsync(
-client.Doc.Pages.MoveAsync(MovePagesRequest { ... }) -> WithRawResponseTask<DocPagesMove200Response>
+client.Doc.Pages.MoveAsync(MovePagesRequest { ... }) -> WithRawResponseTask<DocPagesMove200Response>
-
@@ -1470,7 +1470,7 @@ await client.Doc.Pages.MoveAsync(
-client.Doc.Pages.RotateAsync(RotatePagesRequest { ... }) -> WithRawResponseTask<DocPagesRotate200Response>
+client.Doc.Pages.RotateAsync(RotatePagesRequest { ... }) -> WithRawResponseTask<DocPagesRotate200Response>
-
@@ -1518,7 +1518,7 @@ await client.Doc.Pages.RotateAsync(
## Doc Redactions
-client.Doc.Redactions.ApplyAsync(ApplyRedactionsRequest { ... }) -> WithRawResponseTask<DocRedactionsApply200Response>
+client.Doc.Redactions.ApplyAsync(ApplyRedactionsRequest { ... }) -> WithRawResponseTask<DocRedactionsApply200Response>
-
diff --git a/src/CloudpdfApi.Test/CloudpdfApi.Test.Custom.props b/src/CloudPDF.Test/CloudPDF.Test.Custom.props
similarity index 100%
rename from src/CloudpdfApi.Test/CloudpdfApi.Test.Custom.props
rename to src/CloudPDF.Test/CloudPDF.Test.Custom.props
diff --git a/src/CloudpdfApi.Test/CloudpdfApi.Test.csproj b/src/CloudPDF.Test/CloudPDF.Test.csproj
similarity index 88%
rename from src/CloudpdfApi.Test/CloudpdfApi.Test.csproj
rename to src/CloudPDF.Test/CloudPDF.Test.csproj
index 7800918..47ce025 100644
--- a/src/CloudpdfApi.Test/CloudpdfApi.Test.csproj
+++ b/src/CloudPDF.Test/CloudPDF.Test.csproj
@@ -29,11 +29,8 @@
-
+
-
+
diff --git a/src/CloudpdfApi.Test/Core/HeadersBuilderTests.cs b/src/CloudPDF.Test/Core/HeadersBuilderTests.cs
similarity index 99%
rename from src/CloudpdfApi.Test/Core/HeadersBuilderTests.cs
rename to src/CloudPDF.Test/Core/HeadersBuilderTests.cs
index 7c271e9..af28c22 100644
--- a/src/CloudpdfApi.Test/Core/HeadersBuilderTests.cs
+++ b/src/CloudPDF.Test/Core/HeadersBuilderTests.cs
@@ -1,7 +1,7 @@
-using CloudpdfApi.Core;
+using CloudPDF.Core;
using NUnit.Framework;
-namespace CloudpdfApi.Test.Core;
+namespace CloudPDF.Test.Core;
[TestFixture]
public class HeadersBuilderTests
diff --git a/src/CloudpdfApi.Test/Core/Json/AdditionalPropertiesTests.cs b/src/CloudPDF.Test/Core/Json/AdditionalPropertiesTests.cs
similarity index 99%
rename from src/CloudpdfApi.Test/Core/Json/AdditionalPropertiesTests.cs
rename to src/CloudPDF.Test/Core/Json/AdditionalPropertiesTests.cs
index 44b1c5a..d392b44 100644
--- a/src/CloudpdfApi.Test/Core/Json/AdditionalPropertiesTests.cs
+++ b/src/CloudPDF.Test/Core/Json/AdditionalPropertiesTests.cs
@@ -1,9 +1,9 @@
-using CloudpdfApi.Core;
+using CloudPDF.Core;
using global::System.Text.Json;
using global::System.Text.Json.Serialization;
using NUnit.Framework;
-namespace CloudpdfApi.Test.Core.Json;
+namespace CloudPDF.Test.Core.Json;
[TestFixture]
public class AdditionalPropertiesTests
diff --git a/src/CloudpdfApi.Test/Core/Json/DateOnlyJsonTests.cs b/src/CloudPDF.Test/Core/Json/DateOnlyJsonTests.cs
similarity index 98%
rename from src/CloudpdfApi.Test/Core/Json/DateOnlyJsonTests.cs
rename to src/CloudPDF.Test/Core/Json/DateOnlyJsonTests.cs
index 03f1cfb..cd79929 100644
--- a/src/CloudpdfApi.Test/Core/Json/DateOnlyJsonTests.cs
+++ b/src/CloudPDF.Test/Core/Json/DateOnlyJsonTests.cs
@@ -1,7 +1,7 @@
-using CloudpdfApi.Core;
+using CloudPDF.Core;
using NUnit.Framework;
-namespace CloudpdfApi.Test.Core.Json;
+namespace CloudPDF.Test.Core.Json;
[TestFixture]
public class DateOnlyJsonTests
diff --git a/src/CloudpdfApi.Test/Core/Json/DateTimeJsonTests.cs b/src/CloudPDF.Test/Core/Json/DateTimeJsonTests.cs
similarity index 98%
rename from src/CloudpdfApi.Test/Core/Json/DateTimeJsonTests.cs
rename to src/CloudPDF.Test/Core/Json/DateTimeJsonTests.cs
index 0252242..6f65268 100644
--- a/src/CloudpdfApi.Test/Core/Json/DateTimeJsonTests.cs
+++ b/src/CloudPDF.Test/Core/Json/DateTimeJsonTests.cs
@@ -1,7 +1,7 @@
-using CloudpdfApi.Core;
+using CloudPDF.Core;
using NUnit.Framework;
-namespace CloudpdfApi.Test.Core.Json;
+namespace CloudPDF.Test.Core.Json;
[TestFixture]
public class DateTimeJsonTests
diff --git a/src/CloudpdfApi.Test/Core/Json/JsonAccessAttributeTests.cs b/src/CloudPDF.Test/Core/Json/JsonAccessAttributeTests.cs
similarity index 98%
rename from src/CloudpdfApi.Test/Core/Json/JsonAccessAttributeTests.cs
rename to src/CloudPDF.Test/Core/Json/JsonAccessAttributeTests.cs
index 28a9ee8..10c8f64 100644
--- a/src/CloudpdfApi.Test/Core/Json/JsonAccessAttributeTests.cs
+++ b/src/CloudPDF.Test/Core/Json/JsonAccessAttributeTests.cs
@@ -1,8 +1,8 @@
-using CloudpdfApi.Core;
+using CloudPDF.Core;
using global::System.Text.Json.Serialization;
using NUnit.Framework;
-namespace CloudpdfApi.Test.Core.Json;
+namespace CloudPDF.Test.Core.Json;
[TestFixture]
public class JsonAccessAttributeTests
diff --git a/src/CloudpdfApi.Test/Core/QueryStringBuilderTests.cs b/src/CloudPDF.Test/Core/QueryStringBuilderTests.cs
similarity index 99%
rename from src/CloudpdfApi.Test/Core/QueryStringBuilderTests.cs
rename to src/CloudPDF.Test/Core/QueryStringBuilderTests.cs
index a1e25bc..dec86e5 100644
--- a/src/CloudpdfApi.Test/Core/QueryStringBuilderTests.cs
+++ b/src/CloudPDF.Test/Core/QueryStringBuilderTests.cs
@@ -1,7 +1,7 @@
-using CloudpdfApi.Core;
+using CloudPDF.Core;
using NUnit.Framework;
-namespace CloudpdfApi.Test.Core;
+namespace CloudPDF.Test.Core;
[TestFixture]
public class QueryStringBuilderTests
diff --git a/src/CloudpdfApi.Test/Core/QueryStringConverterTests.cs b/src/CloudPDF.Test/Core/QueryStringConverterTests.cs
similarity index 98%
rename from src/CloudpdfApi.Test/Core/QueryStringConverterTests.cs
rename to src/CloudPDF.Test/Core/QueryStringConverterTests.cs
index a42c8ef..1138064 100644
--- a/src/CloudpdfApi.Test/Core/QueryStringConverterTests.cs
+++ b/src/CloudPDF.Test/Core/QueryStringConverterTests.cs
@@ -1,7 +1,7 @@
-using CloudpdfApi.Core;
+using CloudPDF.Core;
using NUnit.Framework;
-namespace CloudpdfApi.Test.Core;
+namespace CloudPDF.Test.Core;
[TestFixture]
public class QueryStringConverterTests
diff --git a/src/CloudpdfApi.Test/Core/RawClientTests/GzipResponseTests.cs b/src/CloudPDF.Test/Core/RawClientTests/GzipResponseTests.cs
similarity index 94%
rename from src/CloudpdfApi.Test/Core/RawClientTests/GzipResponseTests.cs
rename to src/CloudPDF.Test/Core/RawClientTests/GzipResponseTests.cs
index 829c89d..77b25ea 100644
--- a/src/CloudpdfApi.Test/Core/RawClientTests/GzipResponseTests.cs
+++ b/src/CloudPDF.Test/Core/RawClientTests/GzipResponseTests.cs
@@ -1,4 +1,4 @@
-using CloudpdfApi.Core;
+using CloudPDF.Core;
using global::System.IO.Compression;
using global::System.Net.Http;
using global::System.Text;
@@ -8,7 +8,7 @@
using WireMockRequest = WireMock.RequestBuilders.Request;
using WireMockResponse = WireMock.ResponseBuilders.Response;
-namespace CloudpdfApi.Test.Core.RawClientTests;
+namespace CloudPDF.Test.Core.RawClientTests;
[TestFixture]
[Parallelizable(ParallelScope.Self)]
@@ -46,7 +46,7 @@ public async SystemTask SendRequestAsync_ShouldDecompressGzipResponse()
.WithBody(Compress(body))
);
- var request = new CloudpdfApi.Core.EmptyRequest
+ var request = new CloudPDF.Core.EmptyRequest
{
BaseUrl = _baseUrl,
Method = HttpMethod.Get,
@@ -70,7 +70,7 @@ public async SystemTask SendRequestAsync_ShouldReturnUncompressedResponseUnchang
.Given(WireMockRequest.Create().WithPath("/plain").UsingGet())
.RespondWith(WireMockResponse.Create().WithStatusCode(200).WithBody(body));
- var request = new CloudpdfApi.Core.EmptyRequest
+ var request = new CloudPDF.Core.EmptyRequest
{
BaseUrl = _baseUrl,
Method = HttpMethod.Get,
diff --git a/src/CloudpdfApi.Test/Core/RawClientTests/MultipartFormTests.cs b/src/CloudPDF.Test/Core/RawClientTests/MultipartFormTests.cs
similarity index 99%
rename from src/CloudpdfApi.Test/Core/RawClientTests/MultipartFormTests.cs
rename to src/CloudPDF.Test/Core/RawClientTests/MultipartFormTests.cs
index 88a06f0..b320ea5 100644
--- a/src/CloudpdfApi.Test/Core/RawClientTests/MultipartFormTests.cs
+++ b/src/CloudPDF.Test/Core/RawClientTests/MultipartFormTests.cs
@@ -1,11 +1,11 @@
-using CloudpdfApi.Core;
+using CloudPDF.Core;
using global::System.Net.Http;
using global::System.Text;
using global::System.Text.Json.Serialization;
using NUnit.Framework;
using SystemTask = global::System.Threading.Tasks.Task;
-namespace CloudpdfApi.Test.Core.RawClientTests;
+namespace CloudPDF.Test.Core.RawClientTests;
[TestFixture]
[Parallelizable(ParallelScope.Self)]
@@ -1056,9 +1056,9 @@ private static string GetBoundary(MultipartFormDataContent content)
?? throw new global::System.Exception("Boundary not found");
}
- private static CloudpdfApi.Core.MultipartFormRequest CreateMultipartFormRequest()
+ private static CloudPDF.Core.MultipartFormRequest CreateMultipartFormRequest()
{
- return new CloudpdfApi.Core.MultipartFormRequest
+ return new CloudPDF.Core.MultipartFormRequest
{
BaseUrl = "https://localhost",
Method = HttpMethod.Post,
diff --git a/src/CloudpdfApi.Test/Core/RawClientTests/QueryParameterTests.cs b/src/CloudPDF.Test/Core/RawClientTests/QueryParameterTests.cs
similarity index 97%
rename from src/CloudpdfApi.Test/Core/RawClientTests/QueryParameterTests.cs
rename to src/CloudPDF.Test/Core/RawClientTests/QueryParameterTests.cs
index 6b060e0..fdcad56 100644
--- a/src/CloudpdfApi.Test/Core/RawClientTests/QueryParameterTests.cs
+++ b/src/CloudPDF.Test/Core/RawClientTests/QueryParameterTests.cs
@@ -1,7 +1,7 @@
-using CloudpdfApi.Core;
+using CloudPDF.Core;
using NUnit.Framework;
-namespace CloudpdfApi.Test.Core.RawClientTests;
+namespace CloudPDF.Test.Core.RawClientTests;
[TestFixture]
[Parallelizable(ParallelScope.Self)]
diff --git a/src/CloudpdfApi.Test/Core/RawClientTests/RetriesTests.cs b/src/CloudPDF.Test/Core/RawClientTests/RetriesTests.cs
similarity index 96%
rename from src/CloudpdfApi.Test/Core/RawClientTests/RetriesTests.cs
rename to src/CloudPDF.Test/Core/RawClientTests/RetriesTests.cs
index a860a02..9b0df33 100644
--- a/src/CloudpdfApi.Test/Core/RawClientTests/RetriesTests.cs
+++ b/src/CloudPDF.Test/Core/RawClientTests/RetriesTests.cs
@@ -1,4 +1,4 @@
-using CloudpdfApi.Core;
+using CloudPDF.Core;
using global::System.Net.Http;
using global::System.Text.Json;
using NUnit.Framework;
@@ -7,7 +7,7 @@
using WireMockRequest = WireMock.RequestBuilders.Request;
using WireMockResponse = WireMock.ResponseBuilders.Response;
-namespace CloudpdfApi.Test.Core.RawClientTests;
+namespace CloudPDF.Test.Core.RawClientTests;
[TestFixture]
[Parallelizable(ParallelScope.Self)]
@@ -59,7 +59,7 @@ public async SystemTask SendRequestAsync_ShouldRetry_OnRetryableStatusCodes(int
.WhenStateIs("Success")
.RespondWith(WireMockResponse.Create().WithStatusCode(200).WithBody("Success"));
- var request = new CloudpdfApi.Core.EmptyRequest
+ var request = new CloudPDF.Core.EmptyRequest
{
BaseUrl = _baseUrl,
Method = HttpMethod.Get,
@@ -89,7 +89,7 @@ public async SystemTask SendRequestAsync_ShouldRetry_OnNonRetryableStatusCodes(i
.WillSetStateTo("Server Error")
.RespondWith(WireMockResponse.Create().WithStatusCode(statusCode).WithBody("Failure"));
- var request = new CloudpdfApi.Core.JsonRequest
+ var request = new CloudPDF.Core.JsonRequest
{
BaseUrl = _baseUrl,
Method = HttpMethod.Get,
@@ -118,7 +118,7 @@ public async SystemTask SendRequestAsync_ShouldNotRetry_WithStreamRequest()
.WillSetStateTo("Server Error")
.RespondWith(WireMockResponse.Create().WithStatusCode(429).WithBody("Failure"));
- var request = new CloudpdfApi.Core.StreamRequest
+ var request = new CloudPDF.Core.StreamRequest
{
BaseUrl = _baseUrl,
Method = HttpMethod.Post,
@@ -146,7 +146,7 @@ public async SystemTask SendRequestAsync_ShouldNotRetry_WithMultiPartFormRequest
.WillSetStateTo("Server Error")
.RespondWith(WireMockResponse.Create().WithStatusCode(429).WithBody("Failure"));
- var request = new CloudpdfApi.Core.MultipartFormRequest
+ var request = new CloudPDF.Core.MultipartFormRequest
{
BaseUrl = _baseUrl,
Method = HttpMethod.Post,
@@ -187,7 +187,7 @@ public async SystemTask SendRequestAsync_ShouldRetry_WithMultiPartFormRequest_Wi
.WhenStateIs("Success")
.RespondWith(WireMockResponse.Create().WithStatusCode(200).WithBody("Success"));
- var request = new CloudpdfApi.Core.MultipartFormRequest
+ var request = new CloudPDF.Core.MultipartFormRequest
{
BaseUrl = _baseUrl,
Method = HttpMethod.Post,
@@ -223,7 +223,7 @@ public async SystemTask SendRequestAsync_ShouldRespectRetryAfterHeader_WithSecon
.WhenStateIs("Success")
.RespondWith(WireMockResponse.Create().WithStatusCode(200).WithBody("Success"));
- var request = new CloudpdfApi.Core.EmptyRequest
+ var request = new CloudPDF.Core.EmptyRequest
{
BaseUrl = _baseUrl,
Method = HttpMethod.Get,
@@ -262,7 +262,7 @@ public async SystemTask SendRequestAsync_ShouldRespectRetryAfterHeader_WithHttpD
.WhenStateIs("Success")
.RespondWith(WireMockResponse.Create().WithStatusCode(200).WithBody("Success"));
- var request = new CloudpdfApi.Core.EmptyRequest
+ var request = new CloudPDF.Core.EmptyRequest
{
BaseUrl = _baseUrl,
Method = HttpMethod.Get,
@@ -301,7 +301,7 @@ public async SystemTask SendRequestAsync_ShouldRespectXRateLimitResetHeader()
.WhenStateIs("Success")
.RespondWith(WireMockResponse.Create().WithStatusCode(200).WithBody("Success"));
- var request = new CloudpdfApi.Core.EmptyRequest
+ var request = new CloudPDF.Core.EmptyRequest
{
BaseUrl = _baseUrl,
Method = HttpMethod.Get,
@@ -334,7 +334,7 @@ public async SystemTask SendRequestAsync_ShouldPreserveJsonBody_OnRetry()
.WhenStateIs("Success")
.RespondWith(WireMockResponse.Create().WithStatusCode(200).WithBody("Success"));
- var request = new CloudpdfApi.Core.JsonRequest
+ var request = new CloudPDF.Core.JsonRequest
{
BaseUrl = _baseUrl,
Method = HttpMethod.Post,
@@ -373,7 +373,7 @@ public async SystemTask SendRequestAsync_ShouldPreserveMultipartBody_OnRetry()
.WhenStateIs("Success")
.RespondWith(WireMockResponse.Create().WithStatusCode(200).WithBody("Success"));
- var request = new CloudpdfApi.Core.MultipartFormRequest
+ var request = new CloudPDF.Core.MultipartFormRequest
{
BaseUrl = _baseUrl,
Method = HttpMethod.Post,
@@ -424,7 +424,7 @@ public async SystemTask SendRequestAsync_ShouldRetry_WhenHandlerDisposesRequestC
BaseRetryDelay = 0,
};
- var request = new CloudpdfApi.Core.JsonRequest
+ var request = new CloudPDF.Core.JsonRequest
{
BaseUrl = _baseUrl,
Method = HttpMethod.Post,
@@ -487,7 +487,7 @@ public async SystemTask SendRequestAsync_ShouldRetry_WhenHandlerDisposesRequestC
BaseRetryDelay = 0,
};
- var request = new CloudpdfApi.Core.JsonRequest
+ var request = new CloudPDF.Core.JsonRequest
{
BaseUrl = _baseUrl,
Method = HttpMethod.Post,
diff --git a/src/CloudpdfApi.Test/Core/WithRawResponseTests.cs b/src/CloudPDF.Test/Core/WithRawResponseTests.cs
similarity index 99%
rename from src/CloudpdfApi.Test/Core/WithRawResponseTests.cs
rename to src/CloudPDF.Test/Core/WithRawResponseTests.cs
index 3ea8b70..95c8868 100644
--- a/src/CloudpdfApi.Test/Core/WithRawResponseTests.cs
+++ b/src/CloudPDF.Test/Core/WithRawResponseTests.cs
@@ -1,10 +1,10 @@
-using CloudpdfApi;
-using CloudpdfApi.Core;
+using CloudPDF;
+using CloudPDF.Core;
using global::System.Net;
using global::System.Net.Http.Headers;
using NUnit.Framework;
-namespace CloudpdfApi.Test.Core;
+namespace CloudPDF.Test.Core;
[TestFixture]
public class WithRawResponseTests
diff --git a/src/CloudpdfApi.Test/TestClient.cs b/src/CloudPDF.Test/TestClient.cs
similarity index 69%
rename from src/CloudpdfApi.Test/TestClient.cs
rename to src/CloudPDF.Test/TestClient.cs
index 5f228a2..58cad2d 100644
--- a/src/CloudpdfApi.Test/TestClient.cs
+++ b/src/CloudPDF.Test/TestClient.cs
@@ -1,6 +1,6 @@
using NUnit.Framework;
-namespace CloudpdfApi.Test;
+namespace CloudPDF.Test;
[TestFixture]
public class TestClient;
diff --git a/src/CloudpdfApi.Test/Unit/MockServer/BaseMockServerTest.cs b/src/CloudPDF.Test/Unit/MockServer/BaseMockServerTest.cs
similarity index 82%
rename from src/CloudpdfApi.Test/Unit/MockServer/BaseMockServerTest.cs
rename to src/CloudPDF.Test/Unit/MockServer/BaseMockServerTest.cs
index 9e4e1bb..b9f17d0 100644
--- a/src/CloudpdfApi.Test/Unit/MockServer/BaseMockServerTest.cs
+++ b/src/CloudPDF.Test/Unit/MockServer/BaseMockServerTest.cs
@@ -1,16 +1,16 @@
-using CloudpdfApi;
+using CloudPDF;
using NUnit.Framework;
using WireMock.Logging;
using WireMock.Server;
using WireMock.Settings;
-namespace CloudpdfApi.Test.Unit.MockServer;
+namespace CloudPDF.Test.Unit.MockServer;
public class BaseMockServerTest
{
protected WireMockServer Server { get; set; } = null!;
- protected CloudpdfApiClient Client { get; set; } = null!;
+ protected CloudPDFClient Client { get; set; } = null!;
protected RequestOptions RequestOptions { get; set; } = new();
@@ -23,7 +23,7 @@ public void GlobalSetup()
);
// Initialize the Client
- Client = new CloudpdfApiClient(
+ Client = new CloudPDFClient(
"TOKEN",
clientOptions: new ClientOptions { BaseUrl = Server.Urls[0], MaxRetries = 0 }
);
diff --git a/src/CloudpdfApi.Test/Unit/MockServer/Deployment/LicenseStatusTest.cs b/src/CloudPDF.Test/Unit/MockServer/Deployment/LicenseStatusTest.cs
similarity index 94%
rename from src/CloudpdfApi.Test/Unit/MockServer/Deployment/LicenseStatusTest.cs
rename to src/CloudPDF.Test/Unit/MockServer/Deployment/LicenseStatusTest.cs
index c16f6d6..b105f07 100644
--- a/src/CloudpdfApi.Test/Unit/MockServer/Deployment/LicenseStatusTest.cs
+++ b/src/CloudPDF.Test/Unit/MockServer/Deployment/LicenseStatusTest.cs
@@ -1,8 +1,8 @@
-using CloudpdfApi.Test.Unit.MockServer;
-using CloudpdfApi.Test.Utils;
+using CloudPDF.Test.Unit.MockServer;
+using CloudPDF.Test.Utils;
using NUnit.Framework;
-namespace CloudpdfApi.Test.Unit.MockServer.Deployment;
+namespace CloudPDF.Test.Unit.MockServer.Deployment;
[TestFixture]
[Parallelizable(ParallelScope.Self)]
diff --git a/src/CloudpdfApi.Test/Unit/MockServer/Doc/Annotations/CreateTest.cs b/src/CloudPDF.Test/Unit/MockServer/Doc/Annotations/CreateTest.cs
similarity index 97%
rename from src/CloudpdfApi.Test/Unit/MockServer/Doc/Annotations/CreateTest.cs
rename to src/CloudPDF.Test/Unit/MockServer/Doc/Annotations/CreateTest.cs
index abebdbb..8ce03c3 100644
--- a/src/CloudpdfApi.Test/Unit/MockServer/Doc/Annotations/CreateTest.cs
+++ b/src/CloudPDF.Test/Unit/MockServer/Doc/Annotations/CreateTest.cs
@@ -1,9 +1,9 @@
-using CloudpdfApi.Doc;
-using CloudpdfApi.Test.Unit.MockServer;
-using CloudpdfApi.Test.Utils;
+using CloudPDF.Doc;
+using CloudPDF.Test.Unit.MockServer;
+using CloudPDF.Test.Utils;
using NUnit.Framework;
-namespace CloudpdfApi.Test.Unit.MockServer.Doc.Annotations;
+namespace CloudPDF.Test.Unit.MockServer.Doc.Annotations;
[TestFixture]
[Parallelizable(ParallelScope.Self)]
diff --git a/src/CloudpdfApi.Test/Unit/MockServer/Doc/Annotations/DeleteTest.cs b/src/CloudPDF.Test/Unit/MockServer/Doc/Annotations/DeleteTest.cs
similarity index 96%
rename from src/CloudpdfApi.Test/Unit/MockServer/Doc/Annotations/DeleteTest.cs
rename to src/CloudPDF.Test/Unit/MockServer/Doc/Annotations/DeleteTest.cs
index 3a5e2de..4f06266 100644
--- a/src/CloudpdfApi.Test/Unit/MockServer/Doc/Annotations/DeleteTest.cs
+++ b/src/CloudPDF.Test/Unit/MockServer/Doc/Annotations/DeleteTest.cs
@@ -1,9 +1,9 @@
-using CloudpdfApi.Doc;
-using CloudpdfApi.Test.Unit.MockServer;
-using CloudpdfApi.Test.Utils;
+using CloudPDF.Doc;
+using CloudPDF.Test.Unit.MockServer;
+using CloudPDF.Test.Utils;
using NUnit.Framework;
-namespace CloudpdfApi.Test.Unit.MockServer.Doc.Annotations;
+namespace CloudPDF.Test.Unit.MockServer.Doc.Annotations;
[TestFixture]
[Parallelizable(ParallelScope.Self)]
diff --git a/src/CloudpdfApi.Test/Unit/MockServer/Doc/Annotations/ListTest.cs b/src/CloudPDF.Test/Unit/MockServer/Doc/Annotations/ListTest.cs
similarity index 99%
rename from src/CloudpdfApi.Test/Unit/MockServer/Doc/Annotations/ListTest.cs
rename to src/CloudPDF.Test/Unit/MockServer/Doc/Annotations/ListTest.cs
index 4260f54..38e9869 100644
--- a/src/CloudpdfApi.Test/Unit/MockServer/Doc/Annotations/ListTest.cs
+++ b/src/CloudPDF.Test/Unit/MockServer/Doc/Annotations/ListTest.cs
@@ -1,9 +1,9 @@
-using CloudpdfApi.Doc;
-using CloudpdfApi.Test.Unit.MockServer;
-using CloudpdfApi.Test.Utils;
+using CloudPDF.Doc;
+using CloudPDF.Test.Unit.MockServer;
+using CloudPDF.Test.Utils;
using NUnit.Framework;
-namespace CloudpdfApi.Test.Unit.MockServer.Doc.Annotations;
+namespace CloudPDF.Test.Unit.MockServer.Doc.Annotations;
[TestFixture]
[Parallelizable(ParallelScope.Self)]
diff --git a/src/CloudpdfApi.Test/Unit/MockServer/Doc/Annotations/UpdateTest.cs b/src/CloudPDF.Test/Unit/MockServer/Doc/Annotations/UpdateTest.cs
similarity index 97%
rename from src/CloudpdfApi.Test/Unit/MockServer/Doc/Annotations/UpdateTest.cs
rename to src/CloudPDF.Test/Unit/MockServer/Doc/Annotations/UpdateTest.cs
index 564deaa..dd26790 100644
--- a/src/CloudpdfApi.Test/Unit/MockServer/Doc/Annotations/UpdateTest.cs
+++ b/src/CloudPDF.Test/Unit/MockServer/Doc/Annotations/UpdateTest.cs
@@ -1,9 +1,9 @@
-using CloudpdfApi.Doc;
-using CloudpdfApi.Test.Unit.MockServer;
-using CloudpdfApi.Test.Utils;
+using CloudPDF.Doc;
+using CloudPDF.Test.Unit.MockServer;
+using CloudPDF.Test.Utils;
using NUnit.Framework;
-namespace CloudpdfApi.Test.Unit.MockServer.Doc.Annotations;
+namespace CloudPDF.Test.Unit.MockServer.Doc.Annotations;
[TestFixture]
[Parallelizable(ParallelScope.Self)]
diff --git a/src/CloudpdfApi.Test/Unit/MockServer/Doc/Forms/GetTest.cs b/src/CloudPDF.Test/Unit/MockServer/Doc/Forms/GetTest.cs
similarity index 98%
rename from src/CloudpdfApi.Test/Unit/MockServer/Doc/Forms/GetTest.cs
rename to src/CloudPDF.Test/Unit/MockServer/Doc/Forms/GetTest.cs
index 597682c..2c448e4 100644
--- a/src/CloudpdfApi.Test/Unit/MockServer/Doc/Forms/GetTest.cs
+++ b/src/CloudPDF.Test/Unit/MockServer/Doc/Forms/GetTest.cs
@@ -1,9 +1,9 @@
-using CloudpdfApi.Doc;
-using CloudpdfApi.Test.Unit.MockServer;
-using CloudpdfApi.Test.Utils;
+using CloudPDF.Doc;
+using CloudPDF.Test.Unit.MockServer;
+using CloudPDF.Test.Utils;
using NUnit.Framework;
-namespace CloudpdfApi.Test.Unit.MockServer.Doc.Forms;
+namespace CloudPDF.Test.Unit.MockServer.Doc.Forms;
[TestFixture]
[Parallelizable(ParallelScope.Self)]
diff --git a/src/CloudpdfApi.Test/Unit/MockServer/Doc/Forms/ImportDataTest.cs b/src/CloudPDF.Test/Unit/MockServer/Doc/Forms/ImportDataTest.cs
similarity index 97%
rename from src/CloudpdfApi.Test/Unit/MockServer/Doc/Forms/ImportDataTest.cs
rename to src/CloudPDF.Test/Unit/MockServer/Doc/Forms/ImportDataTest.cs
index c50dd52..2e09eb8 100644
--- a/src/CloudpdfApi.Test/Unit/MockServer/Doc/Forms/ImportDataTest.cs
+++ b/src/CloudPDF.Test/Unit/MockServer/Doc/Forms/ImportDataTest.cs
@@ -1,9 +1,9 @@
-using CloudpdfApi.Doc;
-using CloudpdfApi.Test.Unit.MockServer;
-using CloudpdfApi.Test.Utils;
+using CloudPDF.Doc;
+using CloudPDF.Test.Unit.MockServer;
+using CloudPDF.Test.Utils;
using NUnit.Framework;
-namespace CloudpdfApi.Test.Unit.MockServer.Doc.Forms;
+namespace CloudPDF.Test.Unit.MockServer.Doc.Forms;
[TestFixture]
[Parallelizable(ParallelScope.Self)]
diff --git a/src/CloudpdfApi.Test/Unit/MockServer/Doc/Forms/ResetTest.cs b/src/CloudPDF.Test/Unit/MockServer/Doc/Forms/ResetTest.cs
similarity index 96%
rename from src/CloudpdfApi.Test/Unit/MockServer/Doc/Forms/ResetTest.cs
rename to src/CloudPDF.Test/Unit/MockServer/Doc/Forms/ResetTest.cs
index bf69527..109b6d3 100644
--- a/src/CloudpdfApi.Test/Unit/MockServer/Doc/Forms/ResetTest.cs
+++ b/src/CloudPDF.Test/Unit/MockServer/Doc/Forms/ResetTest.cs
@@ -1,9 +1,9 @@
-using CloudpdfApi.Doc;
-using CloudpdfApi.Test.Unit.MockServer;
-using CloudpdfApi.Test.Utils;
+using CloudPDF.Doc;
+using CloudPDF.Test.Unit.MockServer;
+using CloudPDF.Test.Utils;
using NUnit.Framework;
-namespace CloudpdfApi.Test.Unit.MockServer.Doc.Forms;
+namespace CloudPDF.Test.Unit.MockServer.Doc.Forms;
[TestFixture]
[Parallelizable(ParallelScope.Self)]
diff --git a/src/CloudpdfApi.Test/Unit/MockServer/Doc/Forms/SetValueTest.cs b/src/CloudPDF.Test/Unit/MockServer/Doc/Forms/SetValueTest.cs
similarity index 97%
rename from src/CloudpdfApi.Test/Unit/MockServer/Doc/Forms/SetValueTest.cs
rename to src/CloudPDF.Test/Unit/MockServer/Doc/Forms/SetValueTest.cs
index c61313c..87537c4 100644
--- a/src/CloudpdfApi.Test/Unit/MockServer/Doc/Forms/SetValueTest.cs
+++ b/src/CloudPDF.Test/Unit/MockServer/Doc/Forms/SetValueTest.cs
@@ -1,9 +1,9 @@
-using CloudpdfApi.Doc;
-using CloudpdfApi.Test.Unit.MockServer;
-using CloudpdfApi.Test.Utils;
+using CloudPDF.Doc;
+using CloudPDF.Test.Unit.MockServer;
+using CloudPDF.Test.Utils;
using NUnit.Framework;
-namespace CloudpdfApi.Test.Unit.MockServer.Doc.Forms;
+namespace CloudPDF.Test.Unit.MockServer.Doc.Forms;
[TestFixture]
[Parallelizable(ParallelScope.Self)]
diff --git a/src/CloudpdfApi.Test/Unit/MockServer/Doc/HeadTest.cs b/src/CloudPDF.Test/Unit/MockServer/Doc/HeadTest.cs
similarity index 95%
rename from src/CloudpdfApi.Test/Unit/MockServer/Doc/HeadTest.cs
rename to src/CloudPDF.Test/Unit/MockServer/Doc/HeadTest.cs
index 90f7f5c..39f1a84 100644
--- a/src/CloudpdfApi.Test/Unit/MockServer/Doc/HeadTest.cs
+++ b/src/CloudPDF.Test/Unit/MockServer/Doc/HeadTest.cs
@@ -1,9 +1,9 @@
-using CloudpdfApi;
-using CloudpdfApi.Test.Unit.MockServer;
-using CloudpdfApi.Test.Utils;
+using CloudPDF;
+using CloudPDF.Test.Unit.MockServer;
+using CloudPDF.Test.Utils;
using NUnit.Framework;
-namespace CloudpdfApi.Test.Unit.MockServer.Doc;
+namespace CloudPDF.Test.Unit.MockServer.Doc;
[TestFixture]
[Parallelizable(ParallelScope.Self)]
diff --git a/src/CloudpdfApi.Test/Unit/MockServer/Doc/ManifestTest.cs b/src/CloudPDF.Test/Unit/MockServer/Doc/ManifestTest.cs
similarity index 97%
rename from src/CloudpdfApi.Test/Unit/MockServer/Doc/ManifestTest.cs
rename to src/CloudPDF.Test/Unit/MockServer/Doc/ManifestTest.cs
index 5884908..8ce89ec 100644
--- a/src/CloudpdfApi.Test/Unit/MockServer/Doc/ManifestTest.cs
+++ b/src/CloudPDF.Test/Unit/MockServer/Doc/ManifestTest.cs
@@ -1,9 +1,9 @@
-using CloudpdfApi;
-using CloudpdfApi.Test.Unit.MockServer;
-using CloudpdfApi.Test.Utils;
+using CloudPDF;
+using CloudPDF.Test.Unit.MockServer;
+using CloudPDF.Test.Utils;
using NUnit.Framework;
-namespace CloudpdfApi.Test.Unit.MockServer.Doc;
+namespace CloudPDF.Test.Unit.MockServer.Doc;
[TestFixture]
[Parallelizable(ParallelScope.Self)]
diff --git a/src/CloudpdfApi.Test/Unit/MockServer/Doc/Metadata/GetTest.cs b/src/CloudPDF.Test/Unit/MockServer/Doc/Metadata/GetTest.cs
similarity index 94%
rename from src/CloudpdfApi.Test/Unit/MockServer/Doc/Metadata/GetTest.cs
rename to src/CloudPDF.Test/Unit/MockServer/Doc/Metadata/GetTest.cs
index 9835553..151612e 100644
--- a/src/CloudpdfApi.Test/Unit/MockServer/Doc/Metadata/GetTest.cs
+++ b/src/CloudPDF.Test/Unit/MockServer/Doc/Metadata/GetTest.cs
@@ -1,9 +1,9 @@
-using CloudpdfApi.Doc;
-using CloudpdfApi.Test.Unit.MockServer;
-using CloudpdfApi.Test.Utils;
+using CloudPDF.Doc;
+using CloudPDF.Test.Unit.MockServer;
+using CloudPDF.Test.Utils;
using NUnit.Framework;
-namespace CloudpdfApi.Test.Unit.MockServer.Doc.Metadata;
+namespace CloudPDF.Test.Unit.MockServer.Doc.Metadata;
[TestFixture]
[Parallelizable(ParallelScope.Self)]
diff --git a/src/CloudpdfApi.Test/Unit/MockServer/Doc/Pages/DeleteTest.cs b/src/CloudPDF.Test/Unit/MockServer/Doc/Pages/DeleteTest.cs
similarity index 97%
rename from src/CloudpdfApi.Test/Unit/MockServer/Doc/Pages/DeleteTest.cs
rename to src/CloudPDF.Test/Unit/MockServer/Doc/Pages/DeleteTest.cs
index e4a6c56..31eba2c 100644
--- a/src/CloudpdfApi.Test/Unit/MockServer/Doc/Pages/DeleteTest.cs
+++ b/src/CloudPDF.Test/Unit/MockServer/Doc/Pages/DeleteTest.cs
@@ -1,9 +1,9 @@
-using CloudpdfApi.Doc;
-using CloudpdfApi.Test.Unit.MockServer;
-using CloudpdfApi.Test.Utils;
+using CloudPDF.Doc;
+using CloudPDF.Test.Unit.MockServer;
+using CloudPDF.Test.Utils;
using NUnit.Framework;
-namespace CloudpdfApi.Test.Unit.MockServer.Doc.Pages;
+namespace CloudPDF.Test.Unit.MockServer.Doc.Pages;
[TestFixture]
[Parallelizable(ParallelScope.Self)]
diff --git a/src/CloudpdfApi.Test/Unit/MockServer/Doc/Pages/FlattenTest.cs b/src/CloudPDF.Test/Unit/MockServer/Doc/Pages/FlattenTest.cs
similarity index 97%
rename from src/CloudpdfApi.Test/Unit/MockServer/Doc/Pages/FlattenTest.cs
rename to src/CloudPDF.Test/Unit/MockServer/Doc/Pages/FlattenTest.cs
index 73ecb23..7974c61 100644
--- a/src/CloudpdfApi.Test/Unit/MockServer/Doc/Pages/FlattenTest.cs
+++ b/src/CloudPDF.Test/Unit/MockServer/Doc/Pages/FlattenTest.cs
@@ -1,9 +1,9 @@
-using CloudpdfApi.Doc;
-using CloudpdfApi.Test.Unit.MockServer;
-using CloudpdfApi.Test.Utils;
+using CloudPDF.Doc;
+using CloudPDF.Test.Unit.MockServer;
+using CloudPDF.Test.Utils;
using NUnit.Framework;
-namespace CloudpdfApi.Test.Unit.MockServer.Doc.Pages;
+namespace CloudPDF.Test.Unit.MockServer.Doc.Pages;
[TestFixture]
[Parallelizable(ParallelScope.Self)]
diff --git a/src/CloudpdfApi.Test/Unit/MockServer/Doc/Pages/MoveTest.cs b/src/CloudPDF.Test/Unit/MockServer/Doc/Pages/MoveTest.cs
similarity index 97%
rename from src/CloudpdfApi.Test/Unit/MockServer/Doc/Pages/MoveTest.cs
rename to src/CloudPDF.Test/Unit/MockServer/Doc/Pages/MoveTest.cs
index ffeb7ce..d174507 100644
--- a/src/CloudpdfApi.Test/Unit/MockServer/Doc/Pages/MoveTest.cs
+++ b/src/CloudPDF.Test/Unit/MockServer/Doc/Pages/MoveTest.cs
@@ -1,9 +1,9 @@
-using CloudpdfApi.Doc;
-using CloudpdfApi.Test.Unit.MockServer;
-using CloudpdfApi.Test.Utils;
+using CloudPDF.Doc;
+using CloudPDF.Test.Unit.MockServer;
+using CloudPDF.Test.Utils;
using NUnit.Framework;
-namespace CloudpdfApi.Test.Unit.MockServer.Doc.Pages;
+namespace CloudPDF.Test.Unit.MockServer.Doc.Pages;
[TestFixture]
[Parallelizable(ParallelScope.Self)]
diff --git a/src/CloudpdfApi.Test/Unit/MockServer/Doc/Pages/RotateTest.cs b/src/CloudPDF.Test/Unit/MockServer/Doc/Pages/RotateTest.cs
similarity index 97%
rename from src/CloudpdfApi.Test/Unit/MockServer/Doc/Pages/RotateTest.cs
rename to src/CloudPDF.Test/Unit/MockServer/Doc/Pages/RotateTest.cs
index 046dd86..4fcb9ea 100644
--- a/src/CloudpdfApi.Test/Unit/MockServer/Doc/Pages/RotateTest.cs
+++ b/src/CloudPDF.Test/Unit/MockServer/Doc/Pages/RotateTest.cs
@@ -1,9 +1,9 @@
-using CloudpdfApi.Doc;
-using CloudpdfApi.Test.Unit.MockServer;
-using CloudpdfApi.Test.Utils;
+using CloudPDF.Doc;
+using CloudPDF.Test.Unit.MockServer;
+using CloudPDF.Test.Utils;
using NUnit.Framework;
-namespace CloudpdfApi.Test.Unit.MockServer.Doc.Pages;
+namespace CloudPDF.Test.Unit.MockServer.Doc.Pages;
[TestFixture]
[Parallelizable(ParallelScope.Self)]
diff --git a/src/CloudpdfApi.Test/Unit/MockServer/Doc/Redactions/ApplyTest.cs b/src/CloudPDF.Test/Unit/MockServer/Doc/Redactions/ApplyTest.cs
similarity index 97%
rename from src/CloudpdfApi.Test/Unit/MockServer/Doc/Redactions/ApplyTest.cs
rename to src/CloudPDF.Test/Unit/MockServer/Doc/Redactions/ApplyTest.cs
index 177113f..1d2d435 100644
--- a/src/CloudpdfApi.Test/Unit/MockServer/Doc/Redactions/ApplyTest.cs
+++ b/src/CloudPDF.Test/Unit/MockServer/Doc/Redactions/ApplyTest.cs
@@ -1,9 +1,9 @@
-using CloudpdfApi.Doc;
-using CloudpdfApi.Test.Unit.MockServer;
-using CloudpdfApi.Test.Utils;
+using CloudPDF.Doc;
+using CloudPDF.Test.Unit.MockServer;
+using CloudPDF.Test.Utils;
using NUnit.Framework;
-namespace CloudpdfApi.Test.Unit.MockServer.Doc.Redactions;
+namespace CloudPDF.Test.Unit.MockServer.Doc.Redactions;
[TestFixture]
[Parallelizable(ParallelScope.Self)]
diff --git a/src/CloudpdfApi.Test/Unit/MockServer/Doc/TextTest.cs b/src/CloudPDF.Test/Unit/MockServer/Doc/TextTest.cs
similarity index 93%
rename from src/CloudpdfApi.Test/Unit/MockServer/Doc/TextTest.cs
rename to src/CloudPDF.Test/Unit/MockServer/Doc/TextTest.cs
index 984f5c9..4cddae8 100644
--- a/src/CloudpdfApi.Test/Unit/MockServer/Doc/TextTest.cs
+++ b/src/CloudPDF.Test/Unit/MockServer/Doc/TextTest.cs
@@ -1,9 +1,9 @@
-using CloudpdfApi;
-using CloudpdfApi.Test.Unit.MockServer;
-using CloudpdfApi.Test.Utils;
+using CloudPDF;
+using CloudPDF.Test.Unit.MockServer;
+using CloudPDF.Test.Utils;
using NUnit.Framework;
-namespace CloudpdfApi.Test.Unit.MockServer.Doc;
+namespace CloudPDF.Test.Unit.MockServer.Doc;
[TestFixture]
[Parallelizable(ParallelScope.Self)]
diff --git a/src/CloudpdfApi.Test/Unit/MockServer/Documents/CommitTest.cs b/src/CloudPDF.Test/Unit/MockServer/Documents/CommitTest.cs
similarity index 96%
rename from src/CloudpdfApi.Test/Unit/MockServer/Documents/CommitTest.cs
rename to src/CloudPDF.Test/Unit/MockServer/Documents/CommitTest.cs
index bfacdc3..bfbf0b7 100644
--- a/src/CloudpdfApi.Test/Unit/MockServer/Documents/CommitTest.cs
+++ b/src/CloudPDF.Test/Unit/MockServer/Documents/CommitTest.cs
@@ -1,9 +1,9 @@
-using CloudpdfApi;
-using CloudpdfApi.Test.Unit.MockServer;
-using CloudpdfApi.Test.Utils;
+using CloudPDF;
+using CloudPDF.Test.Unit.MockServer;
+using CloudPDF.Test.Utils;
using NUnit.Framework;
-namespace CloudpdfApi.Test.Unit.MockServer.Documents;
+namespace CloudPDF.Test.Unit.MockServer.Documents;
[TestFixture]
[Parallelizable(ParallelScope.Self)]
diff --git a/src/CloudpdfApi.Test/Unit/MockServer/Documents/DeleteTest.cs b/src/CloudPDF.Test/Unit/MockServer/Documents/DeleteTest.cs
similarity index 92%
rename from src/CloudpdfApi.Test/Unit/MockServer/Documents/DeleteTest.cs
rename to src/CloudPDF.Test/Unit/MockServer/Documents/DeleteTest.cs
index f2711b7..75d1f64 100644
--- a/src/CloudpdfApi.Test/Unit/MockServer/Documents/DeleteTest.cs
+++ b/src/CloudPDF.Test/Unit/MockServer/Documents/DeleteTest.cs
@@ -1,8 +1,8 @@
-using CloudpdfApi;
-using CloudpdfApi.Test.Unit.MockServer;
+using CloudPDF;
+using CloudPDF.Test.Unit.MockServer;
using NUnit.Framework;
-namespace CloudpdfApi.Test.Unit.MockServer.Documents;
+namespace CloudPDF.Test.Unit.MockServer.Documents;
[TestFixture]
[Parallelizable(ParallelScope.Self)]
diff --git a/src/CloudpdfApi.Test/Unit/MockServer/Documents/GetTest.cs b/src/CloudPDF.Test/Unit/MockServer/Documents/GetTest.cs
similarity index 95%
rename from src/CloudpdfApi.Test/Unit/MockServer/Documents/GetTest.cs
rename to src/CloudPDF.Test/Unit/MockServer/Documents/GetTest.cs
index 73950a3..5d9015e 100644
--- a/src/CloudpdfApi.Test/Unit/MockServer/Documents/GetTest.cs
+++ b/src/CloudPDF.Test/Unit/MockServer/Documents/GetTest.cs
@@ -1,9 +1,9 @@
-using CloudpdfApi;
-using CloudpdfApi.Test.Unit.MockServer;
-using CloudpdfApi.Test.Utils;
+using CloudPDF;
+using CloudPDF.Test.Unit.MockServer;
+using CloudPDF.Test.Utils;
using NUnit.Framework;
-namespace CloudpdfApi.Test.Unit.MockServer.Documents;
+namespace CloudPDF.Test.Unit.MockServer.Documents;
[TestFixture]
[Parallelizable(ParallelScope.Self)]
diff --git a/src/CloudpdfApi.Test/Unit/MockServer/Documents/InitTest.cs b/src/CloudPDF.Test/Unit/MockServer/Documents/InitTest.cs
similarity index 97%
rename from src/CloudpdfApi.Test/Unit/MockServer/Documents/InitTest.cs
rename to src/CloudPDF.Test/Unit/MockServer/Documents/InitTest.cs
index 09da333..cf1b8b4 100644
--- a/src/CloudpdfApi.Test/Unit/MockServer/Documents/InitTest.cs
+++ b/src/CloudPDF.Test/Unit/MockServer/Documents/InitTest.cs
@@ -1,9 +1,9 @@
-using CloudpdfApi;
-using CloudpdfApi.Test.Unit.MockServer;
-using CloudpdfApi.Test.Utils;
+using CloudPDF;
+using CloudPDF.Test.Unit.MockServer;
+using CloudPDF.Test.Utils;
using NUnit.Framework;
-namespace CloudpdfApi.Test.Unit.MockServer.Documents;
+namespace CloudPDF.Test.Unit.MockServer.Documents;
[TestFixture]
[Parallelizable(ParallelScope.Self)]
diff --git a/src/CloudpdfApi.Test/Unit/MockServer/Documents/ListTest.cs b/src/CloudPDF.Test/Unit/MockServer/Documents/ListTest.cs
similarity index 96%
rename from src/CloudpdfApi.Test/Unit/MockServer/Documents/ListTest.cs
rename to src/CloudPDF.Test/Unit/MockServer/Documents/ListTest.cs
index 3915c8a..841d2bd 100644
--- a/src/CloudpdfApi.Test/Unit/MockServer/Documents/ListTest.cs
+++ b/src/CloudPDF.Test/Unit/MockServer/Documents/ListTest.cs
@@ -1,9 +1,9 @@
-using CloudpdfApi;
-using CloudpdfApi.Test.Unit.MockServer;
-using CloudpdfApi.Test.Utils;
+using CloudPDF;
+using CloudPDF.Test.Unit.MockServer;
+using CloudPDF.Test.Utils;
using NUnit.Framework;
-namespace CloudpdfApi.Test.Unit.MockServer.Documents;
+namespace CloudPDF.Test.Unit.MockServer.Documents;
[TestFixture]
[Parallelizable(ParallelScope.Self)]
diff --git a/src/CloudpdfApi.Test/Unit/MockServer/Tenants/CreateTest.cs b/src/CloudPDF.Test/Unit/MockServer/Tenants/CreateTest.cs
similarity index 94%
rename from src/CloudpdfApi.Test/Unit/MockServer/Tenants/CreateTest.cs
rename to src/CloudPDF.Test/Unit/MockServer/Tenants/CreateTest.cs
index 60cedf6..ef2fc05 100644
--- a/src/CloudpdfApi.Test/Unit/MockServer/Tenants/CreateTest.cs
+++ b/src/CloudPDF.Test/Unit/MockServer/Tenants/CreateTest.cs
@@ -1,9 +1,9 @@
-using CloudpdfApi;
-using CloudpdfApi.Test.Unit.MockServer;
-using CloudpdfApi.Test.Utils;
+using CloudPDF;
+using CloudPDF.Test.Unit.MockServer;
+using CloudPDF.Test.Utils;
using NUnit.Framework;
-namespace CloudpdfApi.Test.Unit.MockServer.Tenants;
+namespace CloudPDF.Test.Unit.MockServer.Tenants;
[TestFixture]
[Parallelizable(ParallelScope.Self)]
diff --git a/src/CloudpdfApi.Test/Unit/MockServer/Tenants/DeleteTest.cs b/src/CloudPDF.Test/Unit/MockServer/Tenants/DeleteTest.cs
similarity index 91%
rename from src/CloudpdfApi.Test/Unit/MockServer/Tenants/DeleteTest.cs
rename to src/CloudPDF.Test/Unit/MockServer/Tenants/DeleteTest.cs
index 0102745..15f1291 100644
--- a/src/CloudpdfApi.Test/Unit/MockServer/Tenants/DeleteTest.cs
+++ b/src/CloudPDF.Test/Unit/MockServer/Tenants/DeleteTest.cs
@@ -1,8 +1,8 @@
-using CloudpdfApi;
-using CloudpdfApi.Test.Unit.MockServer;
+using CloudPDF;
+using CloudPDF.Test.Unit.MockServer;
using NUnit.Framework;
-namespace CloudpdfApi.Test.Unit.MockServer.Tenants;
+namespace CloudPDF.Test.Unit.MockServer.Tenants;
[TestFixture]
[Parallelizable(ParallelScope.Self)]
diff --git a/src/CloudpdfApi.Test/Unit/MockServer/Tenants/GetTest.cs b/src/CloudPDF.Test/Unit/MockServer/Tenants/GetTest.cs
similarity index 93%
rename from src/CloudpdfApi.Test/Unit/MockServer/Tenants/GetTest.cs
rename to src/CloudPDF.Test/Unit/MockServer/Tenants/GetTest.cs
index 0f4bb26..10d43bc 100644
--- a/src/CloudpdfApi.Test/Unit/MockServer/Tenants/GetTest.cs
+++ b/src/CloudPDF.Test/Unit/MockServer/Tenants/GetTest.cs
@@ -1,9 +1,9 @@
-using CloudpdfApi;
-using CloudpdfApi.Test.Unit.MockServer;
-using CloudpdfApi.Test.Utils;
+using CloudPDF;
+using CloudPDF.Test.Unit.MockServer;
+using CloudPDF.Test.Utils;
using NUnit.Framework;
-namespace CloudpdfApi.Test.Unit.MockServer.Tenants;
+namespace CloudPDF.Test.Unit.MockServer.Tenants;
[TestFixture]
[Parallelizable(ParallelScope.Self)]
diff --git a/src/CloudpdfApi.Test/Unit/MockServer/Tenants/ListTest.cs b/src/CloudPDF.Test/Unit/MockServer/Tenants/ListTest.cs
similarity index 93%
rename from src/CloudpdfApi.Test/Unit/MockServer/Tenants/ListTest.cs
rename to src/CloudPDF.Test/Unit/MockServer/Tenants/ListTest.cs
index de872cb..d535e7d 100644
--- a/src/CloudpdfApi.Test/Unit/MockServer/Tenants/ListTest.cs
+++ b/src/CloudPDF.Test/Unit/MockServer/Tenants/ListTest.cs
@@ -1,9 +1,9 @@
-using CloudpdfApi;
-using CloudpdfApi.Test.Unit.MockServer;
-using CloudpdfApi.Test.Utils;
+using CloudPDF;
+using CloudPDF.Test.Unit.MockServer;
+using CloudPDF.Test.Utils;
using NUnit.Framework;
-namespace CloudpdfApi.Test.Unit.MockServer.Tenants;
+namespace CloudPDF.Test.Unit.MockServer.Tenants;
[TestFixture]
[Parallelizable(ParallelScope.Self)]
diff --git a/src/CloudpdfApi.Test/Unit/MockServer/Tokens/IssueTest.cs b/src/CloudPDF.Test/Unit/MockServer/Tokens/IssueTest.cs
similarity index 96%
rename from src/CloudpdfApi.Test/Unit/MockServer/Tokens/IssueTest.cs
rename to src/CloudPDF.Test/Unit/MockServer/Tokens/IssueTest.cs
index cda2165..447119d 100644
--- a/src/CloudpdfApi.Test/Unit/MockServer/Tokens/IssueTest.cs
+++ b/src/CloudPDF.Test/Unit/MockServer/Tokens/IssueTest.cs
@@ -1,9 +1,9 @@
-using CloudpdfApi;
-using CloudpdfApi.Test.Unit.MockServer;
-using CloudpdfApi.Test.Utils;
+using CloudPDF;
+using CloudPDF.Test.Unit.MockServer;
+using CloudPDF.Test.Utils;
using NUnit.Framework;
-namespace CloudpdfApi.Test.Unit.MockServer.Tokens;
+namespace CloudPDF.Test.Unit.MockServer.Tokens;
[TestFixture]
[Parallelizable(ParallelScope.Self)]
diff --git a/src/CloudpdfApi.Test/Unit/MockServer/Tokens/RevokeTest.cs b/src/CloudPDF.Test/Unit/MockServer/Tokens/RevokeTest.cs
similarity index 94%
rename from src/CloudpdfApi.Test/Unit/MockServer/Tokens/RevokeTest.cs
rename to src/CloudPDF.Test/Unit/MockServer/Tokens/RevokeTest.cs
index ec94595..8865891 100644
--- a/src/CloudpdfApi.Test/Unit/MockServer/Tokens/RevokeTest.cs
+++ b/src/CloudPDF.Test/Unit/MockServer/Tokens/RevokeTest.cs
@@ -1,8 +1,8 @@
-using CloudpdfApi;
-using CloudpdfApi.Test.Unit.MockServer;
+using CloudPDF;
+using CloudPDF.Test.Unit.MockServer;
using NUnit.Framework;
-namespace CloudpdfApi.Test.Unit.MockServer.Tokens;
+namespace CloudPDF.Test.Unit.MockServer.Tokens;
[TestFixture]
[Parallelizable(ParallelScope.Self)]
diff --git a/src/CloudpdfApi.Test/Utils/AdditionalPropertiesComparer.cs b/src/CloudPDF.Test/Utils/AdditionalPropertiesComparer.cs
similarity index 99%
rename from src/CloudpdfApi.Test/Utils/AdditionalPropertiesComparer.cs
rename to src/CloudPDF.Test/Utils/AdditionalPropertiesComparer.cs
index 583be80..9767d2d 100644
--- a/src/CloudpdfApi.Test/Utils/AdditionalPropertiesComparer.cs
+++ b/src/CloudPDF.Test/Utils/AdditionalPropertiesComparer.cs
@@ -1,5 +1,5 @@
-using CloudpdfApi;
-using CloudpdfApi.Core;
+using CloudPDF;
+using CloudPDF.Core;
using global::System.Text.Json;
using NUnit.Framework.Constraints;
diff --git a/src/CloudpdfApi.Test/Utils/JsonAssert.cs b/src/CloudPDF.Test/Utils/JsonAssert.cs
similarity index 95%
rename from src/CloudpdfApi.Test/Utils/JsonAssert.cs
rename to src/CloudPDF.Test/Utils/JsonAssert.cs
index 5e6e422..2e93812 100644
--- a/src/CloudpdfApi.Test/Utils/JsonAssert.cs
+++ b/src/CloudPDF.Test/Utils/JsonAssert.cs
@@ -1,8 +1,8 @@
-using CloudpdfApi.Core;
+using CloudPDF.Core;
using global::System.Text.Json;
using NUnit.Framework;
-namespace CloudpdfApi.Test.Utils;
+namespace CloudPDF.Test.Utils;
internal static class JsonAssert
{
diff --git a/src/CloudpdfApi.Test/Utils/JsonElementComparer.cs b/src/CloudPDF.Test/Utils/JsonElementComparer.cs
similarity index 100%
rename from src/CloudpdfApi.Test/Utils/JsonElementComparer.cs
rename to src/CloudPDF.Test/Utils/JsonElementComparer.cs
diff --git a/src/CloudpdfApi.Test/Utils/NUnitExtensions.cs b/src/CloudPDF.Test/Utils/NUnitExtensions.cs
similarity index 100%
rename from src/CloudpdfApi.Test/Utils/NUnitExtensions.cs
rename to src/CloudPDF.Test/Utils/NUnitExtensions.cs
diff --git a/src/CloudpdfApi.Test/Utils/OneOfComparer.cs b/src/CloudPDF.Test/Utils/OneOfComparer.cs
similarity index 99%
rename from src/CloudpdfApi.Test/Utils/OneOfComparer.cs
rename to src/CloudPDF.Test/Utils/OneOfComparer.cs
index 82b036b..ce63ab5 100644
--- a/src/CloudpdfApi.Test/Utils/OneOfComparer.cs
+++ b/src/CloudPDF.Test/Utils/OneOfComparer.cs
@@ -1,4 +1,4 @@
-using CloudpdfApi.Core;
+using CloudPDF.Core;
using NUnit.Framework.Constraints;
using OneOf;
diff --git a/src/CloudpdfApi.Test/Utils/OptionalComparer.cs b/src/CloudPDF.Test/Utils/OptionalComparer.cs
similarity index 99%
rename from src/CloudpdfApi.Test/Utils/OptionalComparer.cs
rename to src/CloudPDF.Test/Utils/OptionalComparer.cs
index 826674c..05a8a38 100644
--- a/src/CloudpdfApi.Test/Utils/OptionalComparer.cs
+++ b/src/CloudPDF.Test/Utils/OptionalComparer.cs
@@ -1,4 +1,4 @@
-using CloudpdfApi.Core;
+using CloudPDF.Core;
using NUnit.Framework.Constraints;
using OneOf;
diff --git a/src/CloudpdfApi.Test/Utils/ReadOnlyMemoryComparer.cs b/src/CloudPDF.Test/Utils/ReadOnlyMemoryComparer.cs
similarity index 100%
rename from src/CloudpdfApi.Test/Utils/ReadOnlyMemoryComparer.cs
rename to src/CloudPDF.Test/Utils/ReadOnlyMemoryComparer.cs
diff --git a/src/CloudpdfApi/CloudpdfApi.Custom.props b/src/CloudPDF/CloudPDF.Custom.props
similarity index 100%
rename from src/CloudpdfApi/CloudpdfApi.Custom.props
rename to src/CloudPDF/CloudPDF.Custom.props
diff --git a/src/CloudpdfApi/CloudpdfApi.csproj b/src/CloudPDF/CloudPDF.csproj
similarity index 83%
rename from src/CloudpdfApi/CloudpdfApi.csproj
rename to src/CloudPDF/CloudPDF.csproj
index b1976b7..164f423 100644
--- a/src/CloudpdfApi/CloudpdfApi.csproj
+++ b/src/CloudPDF/CloudPDF.csproj
@@ -1,6 +1,12 @@
- CloudpdfApi
+ CloudPDF
+ CloudPDF
+ The official .NET SDK for the CloudPDF API.
+ https://www.cloudpdf.com
+ https://github.com/embedpdf/cloudpdf-sdk-dotnet
+ git
+ cloudpdf;pdf;api;sdk
net462;net8.0;net9.0;netstandard2.0
enable
12
@@ -58,9 +64,9 @@
- <_Parameter1>CloudpdfApi.Test
+ <_Parameter1>CloudPDF.Test
-
+
diff --git a/src/CloudpdfApi/CloudpdfApiClient.cs b/src/CloudPDF/CloudPDFClient.cs
similarity index 84%
rename from src/CloudpdfApi/CloudpdfApiClient.cs
rename to src/CloudPDF/CloudPDFClient.cs
index 30ec400..6923c4b 100644
--- a/src/CloudpdfApi/CloudpdfApiClient.cs
+++ b/src/CloudPDF/CloudPDFClient.cs
@@ -1,19 +1,19 @@
-using CloudpdfApi.Core;
+using CloudPDF.Core;
-namespace CloudpdfApi;
+namespace CloudPDF;
-public partial class CloudpdfApiClient : ICloudpdfApiClient
+public partial class CloudPDFClient : ICloudPDFClient
{
private readonly RawClient _client;
- public CloudpdfApiClient(string? token = null, ClientOptions? clientOptions = null)
+ public CloudPDFClient(string? token = null, ClientOptions? clientOptions = null)
{
clientOptions ??= new ClientOptions();
var platformHeaders = new Headers(
new Dictionary()
{
{ "X-Fern-Language", "C#" },
- { "X-Fern-SDK-Name", "CloudpdfApi" },
+ { "X-Fern-SDK-Name", "CloudPDF" },
{ "X-Fern-SDK-Version", Version.Current },
}
);
diff --git a/src/CloudpdfApi/Core/ApiResponse.cs b/src/CloudPDF/Core/ApiResponse.cs
similarity index 90%
rename from src/CloudpdfApi/Core/ApiResponse.cs
rename to src/CloudPDF/Core/ApiResponse.cs
index 2b418ec..2148f7b 100644
--- a/src/CloudpdfApi/Core/ApiResponse.cs
+++ b/src/CloudPDF/Core/ApiResponse.cs
@@ -1,6 +1,6 @@
using global::System.Net.Http;
-namespace CloudpdfApi.Core;
+namespace CloudPDF.Core;
///
/// The response object returned from the API.
diff --git a/src/CloudpdfApi/Core/BaseRequest.cs b/src/CloudPDF/Core/BaseRequest.cs
similarity index 98%
rename from src/CloudpdfApi/Core/BaseRequest.cs
rename to src/CloudPDF/Core/BaseRequest.cs
index 97f0099..b27b584 100644
--- a/src/CloudpdfApi/Core/BaseRequest.cs
+++ b/src/CloudPDF/Core/BaseRequest.cs
@@ -2,7 +2,7 @@
using global::System.Net.Http.Headers;
using global::System.Text;
-namespace CloudpdfApi.Core;
+namespace CloudPDF.Core;
internal abstract record BaseRequest
{
diff --git a/src/CloudpdfApi/Core/CollectionItemSerializer.cs b/src/CloudPDF/Core/CollectionItemSerializer.cs
similarity index 99%
rename from src/CloudpdfApi/Core/CollectionItemSerializer.cs
rename to src/CloudPDF/Core/CollectionItemSerializer.cs
index 7f454d1..e5c0426 100644
--- a/src/CloudpdfApi/Core/CollectionItemSerializer.cs
+++ b/src/CloudPDF/Core/CollectionItemSerializer.cs
@@ -1,7 +1,7 @@
using global::System.Text.Json;
using global::System.Text.Json.Serialization;
-namespace CloudpdfApi.Core;
+namespace CloudPDF.Core;
///
/// Json collection converter.
diff --git a/src/CloudpdfApi/Core/Constants.cs b/src/CloudPDF/Core/Constants.cs
similarity index 85%
rename from src/CloudpdfApi/Core/Constants.cs
rename to src/CloudPDF/Core/Constants.cs
index 4da63bf..b63cf24 100644
--- a/src/CloudpdfApi/Core/Constants.cs
+++ b/src/CloudPDF/Core/Constants.cs
@@ -1,4 +1,4 @@
-namespace CloudpdfApi.Core;
+namespace CloudPDF.Core;
internal static class Constants
{
diff --git a/src/CloudpdfApi/Core/DateOnlyConverter.cs b/src/CloudPDF/Core/DateOnlyConverter.cs
similarity index 99%
rename from src/CloudpdfApi/Core/DateOnlyConverter.cs
rename to src/CloudPDF/Core/DateOnlyConverter.cs
index bb1be34..6497af1 100644
--- a/src/CloudpdfApi/Core/DateOnlyConverter.cs
+++ b/src/CloudPDF/Core/DateOnlyConverter.cs
@@ -15,7 +15,7 @@
// ReSharper disable SuggestVarOrType_SimpleTypes
// ReSharper disable SuggestVarOrType_BuiltInTypes
-namespace CloudpdfApi.Core
+namespace CloudPDF.Core
{
///
/// Custom converter for handling the data type with the System.Text.Json library.
diff --git a/src/CloudpdfApi/Core/DateTimeSerializer.cs b/src/CloudPDF/Core/DateTimeSerializer.cs
similarity index 97%
rename from src/CloudpdfApi/Core/DateTimeSerializer.cs
rename to src/CloudPDF/Core/DateTimeSerializer.cs
index 884caa6..1b79666 100644
--- a/src/CloudpdfApi/Core/DateTimeSerializer.cs
+++ b/src/CloudPDF/Core/DateTimeSerializer.cs
@@ -2,7 +2,7 @@
using global::System.Text.Json;
using global::System.Text.Json.Serialization;
-namespace CloudpdfApi.Core;
+namespace CloudPDF.Core;
internal class DateTimeSerializer : JsonConverter
{
diff --git a/src/CloudpdfApi/Core/DefaultHttpClientFactory.cs b/src/CloudPDF/Core/DefaultHttpClientFactory.cs
similarity index 96%
rename from src/CloudpdfApi/Core/DefaultHttpClientFactory.cs
rename to src/CloudPDF/Core/DefaultHttpClientFactory.cs
index de7c998..8e2f979 100644
--- a/src/CloudpdfApi/Core/DefaultHttpClientFactory.cs
+++ b/src/CloudPDF/Core/DefaultHttpClientFactory.cs
@@ -1,7 +1,7 @@
using global::System.Net;
using global::System.Net.Http;
-namespace CloudpdfApi.Core;
+namespace CloudPDF.Core;
///
/// Creates the default used by the SDK, with automatic
diff --git a/src/CloudpdfApi/Core/EmptyRequest.cs b/src/CloudPDF/Core/EmptyRequest.cs
similarity index 88%
rename from src/CloudpdfApi/Core/EmptyRequest.cs
rename to src/CloudPDF/Core/EmptyRequest.cs
index 560e3e8..a637b02 100644
--- a/src/CloudpdfApi/Core/EmptyRequest.cs
+++ b/src/CloudPDF/Core/EmptyRequest.cs
@@ -1,6 +1,6 @@
using global::System.Net.Http;
-namespace CloudpdfApi.Core;
+namespace CloudPDF.Core;
///
/// The request object to send without a request body.
diff --git a/src/CloudpdfApi/Core/EncodingCache.cs b/src/CloudPDF/Core/EncodingCache.cs
similarity index 88%
rename from src/CloudpdfApi/Core/EncodingCache.cs
rename to src/CloudPDF/Core/EncodingCache.cs
index 5994888..7f9cb18 100644
--- a/src/CloudpdfApi/Core/EncodingCache.cs
+++ b/src/CloudPDF/Core/EncodingCache.cs
@@ -1,6 +1,6 @@
using global::System.Text;
-namespace CloudpdfApi.Core;
+namespace CloudPDF.Core;
internal static class EncodingCache
{
diff --git a/src/CloudpdfApi/Core/Extensions.cs b/src/CloudPDF/Core/Extensions.cs
similarity index 98%
rename from src/CloudpdfApi/Core/Extensions.cs
rename to src/CloudPDF/Core/Extensions.cs
index 03fd574..249db06 100644
--- a/src/CloudpdfApi/Core/Extensions.cs
+++ b/src/CloudPDF/Core/Extensions.cs
@@ -1,7 +1,7 @@
using global::System.Diagnostics.CodeAnalysis;
using global::System.Runtime.Serialization;
-namespace CloudpdfApi.Core;
+namespace CloudPDF.Core;
internal static class Extensions
{
diff --git a/src/CloudpdfApi/Core/FormUrlEncoder.cs b/src/CloudPDF/Core/FormUrlEncoder.cs
similarity index 98%
rename from src/CloudpdfApi/Core/FormUrlEncoder.cs
rename to src/CloudPDF/Core/FormUrlEncoder.cs
index 063d33b..8ccebf5 100644
--- a/src/CloudpdfApi/Core/FormUrlEncoder.cs
+++ b/src/CloudPDF/Core/FormUrlEncoder.cs
@@ -1,6 +1,6 @@
using global::System.Net.Http;
-namespace CloudpdfApi.Core;
+namespace CloudPDF.Core;
///
/// Encodes an object into a form URL-encoded content.
diff --git a/src/CloudpdfApi/Core/HeaderValue.cs b/src/CloudPDF/Core/HeaderValue.cs
similarity index 98%
rename from src/CloudpdfApi/Core/HeaderValue.cs
rename to src/CloudPDF/Core/HeaderValue.cs
index c5e1891..0e59eb2 100644
--- a/src/CloudpdfApi/Core/HeaderValue.cs
+++ b/src/CloudPDF/Core/HeaderValue.cs
@@ -1,4 +1,4 @@
-namespace CloudpdfApi.Core;
+namespace CloudPDF.Core;
internal sealed class HeaderValue
{
diff --git a/src/CloudpdfApi/Core/Headers.cs b/src/CloudPDF/Core/Headers.cs
similarity index 96%
rename from src/CloudpdfApi/Core/Headers.cs
rename to src/CloudPDF/Core/Headers.cs
index edeb1da..2b4cc4f 100644
--- a/src/CloudpdfApi/Core/Headers.cs
+++ b/src/CloudPDF/Core/Headers.cs
@@ -1,4 +1,4 @@
-namespace CloudpdfApi.Core;
+namespace CloudPDF.Core;
///
/// Represents the headers sent with the request.
diff --git a/src/CloudpdfApi/Core/HeadersBuilder.cs b/src/CloudPDF/Core/HeadersBuilder.cs
similarity index 99%
rename from src/CloudpdfApi/Core/HeadersBuilder.cs
rename to src/CloudPDF/Core/HeadersBuilder.cs
index c81cc9f..32ae75e 100644
--- a/src/CloudpdfApi/Core/HeadersBuilder.cs
+++ b/src/CloudPDF/Core/HeadersBuilder.cs
@@ -1,4 +1,4 @@
-namespace CloudpdfApi.Core;
+namespace CloudPDF.Core;
///
/// Fluent builder for constructing HTTP headers with support for merging from multiple sources.
diff --git a/src/CloudpdfApi/Core/HttpContentExtensions.cs b/src/CloudPDF/Core/HttpContentExtensions.cs
similarity index 95%
rename from src/CloudpdfApi/Core/HttpContentExtensions.cs
rename to src/CloudPDF/Core/HttpContentExtensions.cs
index 284438b..aeb82ae 100644
--- a/src/CloudpdfApi/Core/HttpContentExtensions.cs
+++ b/src/CloudPDF/Core/HttpContentExtensions.cs
@@ -1,5 +1,5 @@
#if !NET5_0_OR_GREATER
-namespace CloudpdfApi.Core;
+namespace CloudPDF.Core;
///
/// Polyfill extension providing a ReadAsStringAsync(CancellationToken) overload
diff --git a/src/CloudpdfApi/Core/HttpMethodExtensions.cs b/src/CloudPDF/Core/HttpMethodExtensions.cs
similarity index 83%
rename from src/CloudpdfApi/Core/HttpMethodExtensions.cs
rename to src/CloudPDF/Core/HttpMethodExtensions.cs
index 9a3370c..c97c83f 100644
--- a/src/CloudpdfApi/Core/HttpMethodExtensions.cs
+++ b/src/CloudPDF/Core/HttpMethodExtensions.cs
@@ -1,6 +1,6 @@
using global::System.Net.Http;
-namespace CloudpdfApi.Core;
+namespace CloudPDF.Core;
internal static class HttpMethodExtensions
{
diff --git a/src/CloudpdfApi/Core/IIsRetryableContent.cs b/src/CloudPDF/Core/IIsRetryableContent.cs
similarity index 73%
rename from src/CloudpdfApi/Core/IIsRetryableContent.cs
rename to src/CloudPDF/Core/IIsRetryableContent.cs
index fecbcef..69b58a3 100644
--- a/src/CloudpdfApi/Core/IIsRetryableContent.cs
+++ b/src/CloudPDF/Core/IIsRetryableContent.cs
@@ -1,4 +1,4 @@
-namespace CloudpdfApi.Core;
+namespace CloudPDF.Core;
public interface IIsRetryableContent
{
diff --git a/src/CloudpdfApi/Core/IRequestOptions.cs b/src/CloudPDF/Core/IRequestOptions.cs
similarity index 98%
rename from src/CloudpdfApi/Core/IRequestOptions.cs
rename to src/CloudPDF/Core/IRequestOptions.cs
index d5f25ca..c0d6030 100644
--- a/src/CloudpdfApi/Core/IRequestOptions.cs
+++ b/src/CloudPDF/Core/IRequestOptions.cs
@@ -1,4 +1,4 @@
-namespace CloudpdfApi.Core;
+namespace CloudPDF.Core;
internal interface IRequestOptions
{
diff --git a/src/CloudpdfApi/Core/JsonAccessAttribute.cs b/src/CloudPDF/Core/JsonAccessAttribute.cs
similarity index 92%
rename from src/CloudpdfApi/Core/JsonAccessAttribute.cs
rename to src/CloudPDF/Core/JsonAccessAttribute.cs
index 5426f62..adf7db4 100644
--- a/src/CloudpdfApi/Core/JsonAccessAttribute.cs
+++ b/src/CloudPDF/Core/JsonAccessAttribute.cs
@@ -1,4 +1,4 @@
-namespace CloudpdfApi.Core;
+namespace CloudPDF.Core;
[global::System.AttributeUsage(
global::System.AttributeTargets.Property | global::System.AttributeTargets.Field
diff --git a/src/CloudpdfApi/Core/JsonConfiguration.cs b/src/CloudPDF/Core/JsonConfiguration.cs
similarity index 99%
rename from src/CloudpdfApi/Core/JsonConfiguration.cs
rename to src/CloudPDF/Core/JsonConfiguration.cs
index 0c3054d..c8fe75e 100644
--- a/src/CloudpdfApi/Core/JsonConfiguration.cs
+++ b/src/CloudPDF/Core/JsonConfiguration.cs
@@ -5,7 +5,7 @@
using global::System.Text.Json.Serialization;
using global::System.Text.Json.Serialization.Metadata;
-namespace CloudpdfApi.Core;
+namespace CloudPDF.Core;
internal static partial class JsonOptions
{
diff --git a/src/CloudpdfApi/Core/JsonRequest.cs b/src/CloudPDF/Core/JsonRequest.cs
similarity index 97%
rename from src/CloudpdfApi/Core/JsonRequest.cs
rename to src/CloudPDF/Core/JsonRequest.cs
index 855bc54..374d5e7 100644
--- a/src/CloudpdfApi/Core/JsonRequest.cs
+++ b/src/CloudPDF/Core/JsonRequest.cs
@@ -1,6 +1,6 @@
using global::System.Net.Http;
-namespace CloudpdfApi.Core;
+namespace CloudPDF.Core;
///
/// The request object to be sent for JSON APIs.
diff --git a/src/CloudpdfApi/Core/MultipartFormRequest.cs b/src/CloudPDF/Core/MultipartFormRequest.cs
similarity index 99%
rename from src/CloudpdfApi/Core/MultipartFormRequest.cs
rename to src/CloudPDF/Core/MultipartFormRequest.cs
index eb455c6..fc1a1fe 100644
--- a/src/CloudpdfApi/Core/MultipartFormRequest.cs
+++ b/src/CloudPDF/Core/MultipartFormRequest.cs
@@ -1,7 +1,7 @@
using global::System.Net.Http;
using global::System.Net.Http.Headers;
-namespace CloudpdfApi.Core;
+namespace CloudPDF.Core;
///
/// The request object to be sent for multipart form data.
diff --git a/src/CloudpdfApi/Core/NullableAttribute.cs b/src/CloudPDF/Core/NullableAttribute.cs
similarity index 96%
rename from src/CloudpdfApi/Core/NullableAttribute.cs
rename to src/CloudPDF/Core/NullableAttribute.cs
index b0c0e80..dbc03ca 100644
--- a/src/CloudpdfApi/Core/NullableAttribute.cs
+++ b/src/CloudPDF/Core/NullableAttribute.cs
@@ -1,4 +1,4 @@
-namespace CloudpdfApi.Core;
+namespace CloudPDF.Core;
///
/// Marks a property as nullable in the OpenAPI specification.
diff --git a/src/CloudpdfApi/Core/OneOfSerializer.cs b/src/CloudPDF/Core/OneOfSerializer.cs
similarity index 99%
rename from src/CloudpdfApi/Core/OneOfSerializer.cs
rename to src/CloudPDF/Core/OneOfSerializer.cs
index 0bfd11a..6743dfc 100644
--- a/src/CloudpdfApi/Core/OneOfSerializer.cs
+++ b/src/CloudPDF/Core/OneOfSerializer.cs
@@ -3,7 +3,7 @@
using global::System.Text.Json.Serialization;
using OneOf;
-namespace CloudpdfApi.Core;
+namespace CloudPDF.Core;
internal class OneOfSerializer : JsonConverter
{
diff --git a/src/CloudpdfApi/Core/Optional.cs b/src/CloudPDF/Core/Optional.cs
similarity index 99%
rename from src/CloudpdfApi/Core/Optional.cs
rename to src/CloudPDF/Core/Optional.cs
index e11c21a..f544b29 100644
--- a/src/CloudpdfApi/Core/Optional.cs
+++ b/src/CloudPDF/Core/Optional.cs
@@ -1,7 +1,7 @@
using global::System.Text.Json;
using global::System.Text.Json.Serialization;
-namespace CloudpdfApi.Core;
+namespace CloudPDF.Core;
///
/// Non-generic interface for Optional types to enable reflection-free checks.
diff --git a/src/CloudpdfApi/Core/OptionalAttribute.cs b/src/CloudPDF/Core/OptionalAttribute.cs
similarity index 96%
rename from src/CloudpdfApi/Core/OptionalAttribute.cs
rename to src/CloudPDF/Core/OptionalAttribute.cs
index 6fccb6d..2779073 100644
--- a/src/CloudpdfApi/Core/OptionalAttribute.cs
+++ b/src/CloudPDF/Core/OptionalAttribute.cs
@@ -1,4 +1,4 @@
-namespace CloudpdfApi.Core;
+namespace CloudPDF.Core;
///
/// Marks a property as optional in the OpenAPI specification.
diff --git a/src/CloudpdfApi/Core/Public/AdditionalProperties.cs b/src/CloudPDF/Core/Public/AdditionalProperties.cs
similarity index 99%
rename from src/CloudpdfApi/Core/Public/AdditionalProperties.cs
rename to src/CloudPDF/Core/Public/AdditionalProperties.cs
index c376306..3749bd0 100644
--- a/src/CloudpdfApi/Core/Public/AdditionalProperties.cs
+++ b/src/CloudPDF/Core/Public/AdditionalProperties.cs
@@ -1,10 +1,10 @@
-using CloudpdfApi.Core;
+using CloudPDF.Core;
using global::System.Collections;
using global::System.Collections.ObjectModel;
using global::System.Text.Json;
using global::System.Text.Json.Nodes;
-namespace CloudpdfApi;
+namespace CloudPDF;
public record ReadOnlyAdditionalProperties : ReadOnlyAdditionalProperties
{
diff --git a/src/CloudpdfApi/Core/Public/ClientOptions.cs b/src/CloudPDF/Core/Public/ClientOptions.cs
similarity index 97%
rename from src/CloudpdfApi/Core/Public/ClientOptions.cs
rename to src/CloudPDF/Core/Public/ClientOptions.cs
index b6a25ad..77f891f 100644
--- a/src/CloudpdfApi/Core/Public/ClientOptions.cs
+++ b/src/CloudPDF/Core/Public/ClientOptions.cs
@@ -1,6 +1,6 @@
-using CloudpdfApi.Core;
+using CloudPDF.Core;
-namespace CloudpdfApi;
+namespace CloudPDF;
[Serializable]
public partial class ClientOptions
diff --git a/src/CloudpdfApi/Core/Public/CloudpdfApiApiException.cs b/src/CloudPDF/Core/Public/CloudPDFApiException.cs
similarity index 73%
rename from src/CloudpdfApi/Core/Public/CloudpdfApiApiException.cs
rename to src/CloudPDF/Core/Public/CloudPDFApiException.cs
index 7bc46d4..2f30c4f 100644
--- a/src/CloudpdfApi/Core/Public/CloudpdfApiApiException.cs
+++ b/src/CloudPDF/Core/Public/CloudPDFApiException.cs
@@ -1,15 +1,15 @@
-namespace CloudpdfApi;
+namespace CloudPDF;
///
/// This exception type will be thrown for any non-2XX API responses.
///
-public class CloudpdfApiApiException(
+public class CloudPDFApiException(
string message,
int statusCode,
object body,
Exception? innerException = null,
- CloudpdfApi.RawResponse? rawResponse = null
-) : CloudpdfApiException(message, innerException)
+ CloudPDF.RawResponse? rawResponse = null
+) : CloudPDFException(message, innerException)
{
///
/// The error code of the response that triggered the exception.
@@ -24,5 +24,5 @@ public class CloudpdfApiApiException(
///
/// The raw HTTP response (status code, URL, headers) that triggered the exception, if available.
///
- public CloudpdfApi.RawResponse? RawResponse => rawResponse;
+ public CloudPDF.RawResponse? RawResponse => rawResponse;
}
diff --git a/src/CloudpdfApi/Core/Public/CloudpdfApiException.cs b/src/CloudPDF/Core/Public/CloudPDFException.cs
similarity index 55%
rename from src/CloudpdfApi/Core/Public/CloudpdfApiException.cs
rename to src/CloudPDF/Core/Public/CloudPDFException.cs
index eedb3c0..d4b7f72 100644
--- a/src/CloudpdfApi/Core/Public/CloudpdfApiException.cs
+++ b/src/CloudPDF/Core/Public/CloudPDFException.cs
@@ -1,7 +1,7 @@
-namespace CloudpdfApi;
+namespace CloudPDF;
///
/// Base exception class for all exceptions thrown by the SDK.
///
-public class CloudpdfApiException(string message, Exception? innerException = null)
+public class CloudPDFException(string message, Exception? innerException = null)
: Exception(message, innerException);
diff --git a/src/CloudpdfApi/Core/Public/FileParameter.cs b/src/CloudPDF/Core/Public/FileParameter.cs
similarity index 98%
rename from src/CloudpdfApi/Core/Public/FileParameter.cs
rename to src/CloudPDF/Core/Public/FileParameter.cs
index d228362..403aecf 100644
--- a/src/CloudpdfApi/Core/Public/FileParameter.cs
+++ b/src/CloudPDF/Core/Public/FileParameter.cs
@@ -1,4 +1,4 @@
-namespace CloudpdfApi;
+namespace CloudPDF;
///
/// File parameter for uploading files.
diff --git a/src/CloudpdfApi/Core/Public/RawResponse.cs b/src/CloudPDF/Core/Public/RawResponse.cs
similarity index 96%
rename from src/CloudpdfApi/Core/Public/RawResponse.cs
rename to src/CloudPDF/Core/Public/RawResponse.cs
index 4266038..ab33d65 100644
--- a/src/CloudpdfApi/Core/Public/RawResponse.cs
+++ b/src/CloudPDF/Core/Public/RawResponse.cs
@@ -1,6 +1,6 @@
using global::System.Net;
-namespace CloudpdfApi;
+namespace CloudPDF;
///
/// Contains HTTP response metadata including status code, URL, and headers.
diff --git a/src/CloudpdfApi/Core/Public/RequestOptions.cs b/src/CloudPDF/Core/Public/RequestOptions.cs
similarity index 97%
rename from src/CloudpdfApi/Core/Public/RequestOptions.cs
rename to src/CloudPDF/Core/Public/RequestOptions.cs
index 485194e..adf391b 100644
--- a/src/CloudpdfApi/Core/Public/RequestOptions.cs
+++ b/src/CloudPDF/Core/Public/RequestOptions.cs
@@ -1,6 +1,6 @@
-using CloudpdfApi.Core;
+using CloudPDF.Core;
-namespace CloudpdfApi;
+namespace CloudPDF;
[Serializable]
public partial class RequestOptions : IRequestOptions
diff --git a/src/CloudpdfApi/Core/Public/Version.cs b/src/CloudPDF/Core/Public/Version.cs
similarity index 80%
rename from src/CloudpdfApi/Core/Public/Version.cs
rename to src/CloudPDF/Core/Public/Version.cs
index 863a86c..feb7888 100644
--- a/src/CloudpdfApi/Core/Public/Version.cs
+++ b/src/CloudPDF/Core/Public/Version.cs
@@ -1,4 +1,4 @@
-namespace CloudpdfApi;
+namespace CloudPDF;
[Serializable]
internal class Version
diff --git a/src/CloudpdfApi/Core/Public/WithRawResponse.cs b/src/CloudPDF/Core/Public/WithRawResponse.cs
similarity index 95%
rename from src/CloudpdfApi/Core/Public/WithRawResponse.cs
rename to src/CloudPDF/Core/Public/WithRawResponse.cs
index 54194de..b947213 100644
--- a/src/CloudpdfApi/Core/Public/WithRawResponse.cs
+++ b/src/CloudPDF/Core/Public/WithRawResponse.cs
@@ -1,4 +1,4 @@
-namespace CloudpdfApi;
+namespace CloudPDF;
///
/// Wraps a parsed response value with its raw HTTP response metadata.
diff --git a/src/CloudpdfApi/Core/Public/WithRawResponseStream.cs b/src/CloudPDF/Core/Public/WithRawResponseStream.cs
similarity index 99%
rename from src/CloudpdfApi/Core/Public/WithRawResponseStream.cs
rename to src/CloudPDF/Core/Public/WithRawResponseStream.cs
index d4139ce..5393964 100644
--- a/src/CloudpdfApi/Core/Public/WithRawResponseStream.cs
+++ b/src/CloudPDF/Core/Public/WithRawResponseStream.cs
@@ -3,7 +3,7 @@
using global::System.Threading;
using global::System.Threading.Tasks;
-namespace CloudpdfApi;
+namespace CloudPDF;
///
/// A streaming wrapper that provides dual-mode access to a streaming endpoint:
diff --git a/src/CloudpdfApi/Core/Public/WithRawResponseTask.cs b/src/CloudPDF/Core/Public/WithRawResponseTask.cs
similarity index 99%
rename from src/CloudpdfApi/Core/Public/WithRawResponseTask.cs
rename to src/CloudPDF/Core/Public/WithRawResponseTask.cs
index ea30a9a..73e7a63 100644
--- a/src/CloudpdfApi/Core/Public/WithRawResponseTask.cs
+++ b/src/CloudPDF/Core/Public/WithRawResponseTask.cs
@@ -1,6 +1,6 @@
using global::System.Runtime.CompilerServices;
-namespace CloudpdfApi;
+namespace CloudPDF;
///
/// A task-like type that wraps Task<WithRawResponse<T>> and provides dual-mode awaiting:
diff --git a/src/CloudpdfApi/Core/QueryStringBuilder.cs b/src/CloudPDF/Core/QueryStringBuilder.cs
similarity index 99%
rename from src/CloudpdfApi/Core/QueryStringBuilder.cs
rename to src/CloudPDF/Core/QueryStringBuilder.cs
index 8a26a0e..a42ea2d 100644
--- a/src/CloudpdfApi/Core/QueryStringBuilder.cs
+++ b/src/CloudPDF/Core/QueryStringBuilder.cs
@@ -4,7 +4,7 @@
using global::System.Text;
#endif
-namespace CloudpdfApi.Core;
+namespace CloudPDF.Core;
///
/// High-performance query string builder with RFC 3986 compliant percent-encoding.
diff --git a/src/CloudpdfApi/Core/QueryStringConverter.cs b/src/CloudPDF/Core/QueryStringConverter.cs
similarity index 99%
rename from src/CloudpdfApi/Core/QueryStringConverter.cs
rename to src/CloudPDF/Core/QueryStringConverter.cs
index fc61e4d..37c1219 100644
--- a/src/CloudpdfApi/Core/QueryStringConverter.cs
+++ b/src/CloudPDF/Core/QueryStringConverter.cs
@@ -1,6 +1,6 @@
using global::System.Text.Json;
-namespace CloudpdfApi.Core;
+namespace CloudPDF.Core;
///
/// Converts an object into a query string collection.
diff --git a/src/CloudpdfApi/Core/RawClient.cs b/src/CloudPDF/Core/RawClient.cs
similarity index 96%
rename from src/CloudpdfApi/Core/RawClient.cs
rename to src/CloudPDF/Core/RawClient.cs
index c810b57..1ef5aab 100644
--- a/src/CloudpdfApi/Core/RawClient.cs
+++ b/src/CloudPDF/Core/RawClient.cs
@@ -3,7 +3,7 @@
using global::System.Text;
using SystemTask = global::System.Threading.Tasks.Task;
-namespace CloudpdfApi.Core;
+namespace CloudPDF.Core;
///
/// Utility class for making raw HTTP requests to the API.
@@ -25,8 +25,8 @@ internal partial class RawClient(ClientOptions clientOptions)
///
internal readonly ClientOptions Options = clientOptions;
- internal async global::System.Threading.Tasks.Task SendRequestAsync(
- global::CloudpdfApi.Core.BaseRequest request,
+ internal async global::System.Threading.Tasks.Task SendRequestAsync(
+ global::CloudPDF.Core.BaseRequest request,
CancellationToken cancellationToken = default
)
{
@@ -41,7 +41,7 @@ internal partial class RawClient(ClientOptions clientOptions)
.ConfigureAwait(false);
}
- internal async global::System.Threading.Tasks.Task SendRequestAsync(
+ internal async global::System.Threading.Tasks.Task SendRequestAsync(
HttpRequestMessage request,
IRequestOptions? options,
CancellationToken cancellationToken = default
@@ -134,7 +134,7 @@ await request
/// Sends the request with retries, unless the request content is not retryable,
/// such as stream requests and multipart form data with stream content.
///
- private async global::System.Threading.Tasks.Task SendWithRetriesAsync(
+ private async global::System.Threading.Tasks.Task SendWithRetriesAsync(
HttpRequestMessage request,
IRequestOptions? options,
CancellationToken cancellationToken
@@ -149,7 +149,7 @@ CancellationToken cancellationToken
var response = await httpClient
.SendAsync(request, HttpCompletionOption.ResponseHeadersRead, cancellationToken)
.ConfigureAwait(false);
- return new global::CloudpdfApi.Core.ApiResponse
+ return new global::CloudPDF.Core.ApiResponse
{
StatusCode = (int)response.StatusCode,
Raw = response,
@@ -183,7 +183,7 @@ CancellationToken cancellationToken
}
}
- return new global::CloudpdfApi.Core.ApiResponse
+ return new global::CloudPDF.Core.ApiResponse
{
StatusCode = (int)retryResponse!.StatusCode,
Raw = retryResponse,
@@ -283,7 +283,7 @@ private static bool IsRetryableContent(HttpRequestMessage request)
}
internal async global::System.Threading.Tasks.Task CreateHttpRequestAsync(
- global::CloudpdfApi.Core.BaseRequest request
+ global::CloudPDF.Core.BaseRequest request
)
{
var url = BuildUrl(request);
@@ -294,7 +294,7 @@ private static bool IsRetryableContent(HttpRequestMessage request)
return httpRequest;
}
- private string BuildUrl(global::CloudpdfApi.Core.BaseRequest request)
+ private string BuildUrl(global::CloudPDF.Core.BaseRequest request)
{
var baseUrl = request.Options?.BaseUrl ?? request.BaseUrl ?? Options.BaseUrl;
diff --git a/src/CloudpdfApi/Core/RawResponse.cs b/src/CloudPDF/Core/RawResponse.cs
similarity index 95%
rename from src/CloudpdfApi/Core/RawResponse.cs
rename to src/CloudPDF/Core/RawResponse.cs
index 7818c9d..e44dfc4 100644
--- a/src/CloudpdfApi/Core/RawResponse.cs
+++ b/src/CloudPDF/Core/RawResponse.cs
@@ -1,6 +1,6 @@
using global::System.Net;
-namespace CloudpdfApi.Core;
+namespace CloudPDF.Core;
///
/// Contains HTTP response metadata including status code, URL, and headers.
diff --git a/src/CloudpdfApi/Core/ResponseHeaders.cs b/src/CloudPDF/Core/ResponseHeaders.cs
similarity index 99%
rename from src/CloudpdfApi/Core/ResponseHeaders.cs
rename to src/CloudPDF/Core/ResponseHeaders.cs
index 4d09b3b..8b48d21 100644
--- a/src/CloudpdfApi/Core/ResponseHeaders.cs
+++ b/src/CloudPDF/Core/ResponseHeaders.cs
@@ -1,7 +1,7 @@
using global::System.Collections;
using global::System.Net.Http.Headers;
-namespace CloudpdfApi.Core;
+namespace CloudPDF.Core;
///
/// Represents HTTP response headers with case-insensitive lookup.
diff --git a/src/CloudpdfApi/Core/StreamRequest.cs b/src/CloudPDF/Core/StreamRequest.cs
similarity index 95%
rename from src/CloudpdfApi/Core/StreamRequest.cs
rename to src/CloudPDF/Core/StreamRequest.cs
index 92cbc25..4c7f453 100644
--- a/src/CloudpdfApi/Core/StreamRequest.cs
+++ b/src/CloudPDF/Core/StreamRequest.cs
@@ -1,7 +1,7 @@
using global::System.Net.Http;
using global::System.Net.Http.Headers;
-namespace CloudpdfApi.Core;
+namespace CloudPDF.Core;
///
/// The request object to be sent for streaming uploads.
diff --git a/src/CloudpdfApi/Core/StringEnum.cs b/src/CloudPDF/Core/StringEnum.cs
similarity index 75%
rename from src/CloudpdfApi/Core/StringEnum.cs
rename to src/CloudPDF/Core/StringEnum.cs
index 39653bb..ba3b793 100644
--- a/src/CloudpdfApi/Core/StringEnum.cs
+++ b/src/CloudPDF/Core/StringEnum.cs
@@ -1,4 +1,4 @@
-namespace CloudpdfApi.Core;
+namespace CloudPDF.Core;
public interface IStringEnum : IEquatable
{
diff --git a/src/CloudpdfApi/Core/StringEnumExtensions.cs b/src/CloudPDF/Core/StringEnumExtensions.cs
similarity index 82%
rename from src/CloudpdfApi/Core/StringEnumExtensions.cs
rename to src/CloudPDF/Core/StringEnumExtensions.cs
index ab5125c..f4762bc 100644
--- a/src/CloudpdfApi/Core/StringEnumExtensions.cs
+++ b/src/CloudPDF/Core/StringEnumExtensions.cs
@@ -1,4 +1,4 @@
-namespace CloudpdfApi.Core;
+namespace CloudPDF.Core;
internal static class StringEnumExtensions
{
diff --git a/src/CloudpdfApi/Core/ValueConvert.cs b/src/CloudPDF/Core/ValueConvert.cs
similarity index 99%
rename from src/CloudpdfApi/Core/ValueConvert.cs
rename to src/CloudPDF/Core/ValueConvert.cs
index 6dbe53e..6c9e1f6 100644
--- a/src/CloudpdfApi/Core/ValueConvert.cs
+++ b/src/CloudPDF/Core/ValueConvert.cs
@@ -1,6 +1,6 @@
using global::System.Globalization;
-namespace CloudpdfApi.Core;
+namespace CloudPDF.Core;
///
/// Convert values to string for path and query parameters.
diff --git a/src/CloudpdfApi/Deployment/DeploymentClient.cs b/src/CloudPDF/Deployment/DeploymentClient.cs
similarity index 87%
rename from src/CloudpdfApi/Deployment/DeploymentClient.cs
rename to src/CloudPDF/Deployment/DeploymentClient.cs
index 1580049..78d5e02 100644
--- a/src/CloudpdfApi/Deployment/DeploymentClient.cs
+++ b/src/CloudPDF/Deployment/DeploymentClient.cs
@@ -1,7 +1,7 @@
-using CloudpdfApi.Core;
+using CloudPDF.Core;
using global::System.Text.Json;
-namespace CloudpdfApi;
+namespace CloudPDF;
public partial class DeploymentClient : IDeploymentClient
{
@@ -17,10 +17,10 @@ private async Task> LicenseStat
CancellationToken cancellationToken = default
)
{
- var _queryString = new CloudpdfApi.Core.QueryStringBuilder.Builder(capacity: 0)
+ var _queryString = new CloudPDF.Core.QueryStringBuilder.Builder(capacity: 0)
.MergeAdditional(options?.AdditionalQueryParameters)
.Build();
- var _headers = await new CloudpdfApi.Core.HeadersBuilder.Builder()
+ var _headers = await new CloudPDF.Core.HeadersBuilder.Builder()
.Add(_client.Options.Headers)
.Add(_client.Options.AdditionalHeaders)
.Add(options?.AdditionalHeaders)
@@ -52,7 +52,7 @@ private async Task> LicenseStat
return new WithRawResponse()
{
Data = responseData,
- RawResponse = new CloudpdfApi.RawResponse()
+ RawResponse = new CloudPDF.RawResponse()
{
StatusCode = response.Raw.StatusCode,
Url = response.Raw.RequestMessage?.RequestUri ?? new Uri("about:blank"),
@@ -62,12 +62,12 @@ private async Task> LicenseStat
}
catch (JsonException e)
{
- throw new CloudpdfApiApiException(
+ throw new CloudPDFApiException(
"Failed to deserialize response",
response.StatusCode,
responseBody,
e,
- rawResponse: new CloudpdfApi.RawResponse()
+ rawResponse: new CloudPDF.RawResponse()
{
StatusCode = response.Raw.StatusCode,
Url = response.Raw.RequestMessage?.RequestUri ?? new Uri("about:blank"),
@@ -80,11 +80,11 @@ private async Task> LicenseStat
var responseBody = await response
.Raw.Content.ReadAsStringAsync(cancellationToken)
.ConfigureAwait(false);
- throw new CloudpdfApiApiException(
+ throw new CloudPDFApiException(
$"Error with status code {response.StatusCode}",
response.StatusCode,
responseBody,
- rawResponse: new CloudpdfApi.RawResponse()
+ rawResponse: new CloudPDF.RawResponse()
{
StatusCode = response.Raw.StatusCode,
Url = response.Raw.RequestMessage?.RequestUri ?? new Uri("about:blank"),
diff --git a/src/CloudpdfApi/Deployment/IDeploymentClient.cs b/src/CloudPDF/Deployment/IDeploymentClient.cs
similarity index 90%
rename from src/CloudpdfApi/Deployment/IDeploymentClient.cs
rename to src/CloudPDF/Deployment/IDeploymentClient.cs
index 2e9aa39..0ce2ea1 100644
--- a/src/CloudpdfApi/Deployment/IDeploymentClient.cs
+++ b/src/CloudPDF/Deployment/IDeploymentClient.cs
@@ -1,4 +1,4 @@
-namespace CloudpdfApi;
+namespace CloudPDF;
public partial interface IDeploymentClient
{
diff --git a/src/CloudpdfApi/Doc/Annotations/AnnotationsClient.cs b/src/CloudPDF/Doc/Annotations/AnnotationsClient.cs
similarity index 90%
rename from src/CloudpdfApi/Doc/Annotations/AnnotationsClient.cs
rename to src/CloudPDF/Doc/Annotations/AnnotationsClient.cs
index e2de006..de69964 100644
--- a/src/CloudpdfApi/Doc/Annotations/AnnotationsClient.cs
+++ b/src/CloudPDF/Doc/Annotations/AnnotationsClient.cs
@@ -1,8 +1,8 @@
-using CloudpdfApi;
-using CloudpdfApi.Core;
+using CloudPDF;
+using CloudPDF.Core;
using global::System.Text.Json;
-namespace CloudpdfApi.Doc;
+namespace CloudPDF.Doc;
public partial class AnnotationsClient : IAnnotationsClient
{
@@ -19,10 +19,10 @@ private async Task> ListAsyncCore
CancellationToken cancellationToken = default
)
{
- var _queryString = new CloudpdfApi.Core.QueryStringBuilder.Builder(capacity: 0)
+ var _queryString = new CloudPDF.Core.QueryStringBuilder.Builder(capacity: 0)
.MergeAdditional(options?.AdditionalQueryParameters)
.Build();
- var _headers = await new CloudpdfApi.Core.HeadersBuilder.Builder()
+ var _headers = await new CloudPDF.Core.HeadersBuilder.Builder()
.Add("X-Document-Password", request.DocumentPassword)
.Add(_client.Options.Headers)
.Add(_client.Options.AdditionalHeaders)
@@ -60,7 +60,7 @@ private async Task> ListAsyncCore
return new WithRawResponse()
{
Data = responseData,
- RawResponse = new CloudpdfApi.RawResponse()
+ RawResponse = new CloudPDF.RawResponse()
{
StatusCode = response.Raw.StatusCode,
Url = response.Raw.RequestMessage?.RequestUri ?? new Uri("about:blank"),
@@ -70,12 +70,12 @@ private async Task> ListAsyncCore
}
catch (JsonException e)
{
- throw new CloudpdfApiApiException(
+ throw new CloudPDFApiException(
"Failed to deserialize response",
response.StatusCode,
responseBody,
e,
- rawResponse: new CloudpdfApi.RawResponse()
+ rawResponse: new CloudPDF.RawResponse()
{
StatusCode = response.Raw.StatusCode,
Url = response.Raw.RequestMessage?.RequestUri ?? new Uri("about:blank"),
@@ -95,7 +95,7 @@ private async Task> ListAsyncCore
case 404:
throw new NotFoundError(
JsonUtils.Deserialize