diff --git a/CLAUDE.md b/CLAUDE.md
new file mode 100644
index 0000000000..f046683d69
--- /dev/null
+++ b/CLAUDE.md
@@ -0,0 +1,13 @@
+This is a customized fork of the mitmproxy project, maintained by a company named browserup. The mitmproxy
+is used to man-in-the-middle connections to provide debugging info, allow for security research
+and other uses.
+
+Browserup uses the mitmproxy to capture traffic from within containers that are run during a load test.
+This captured traffic, through mitmproxy addons, is used to build a HAR (HTTP Archive) file. The HAR
+file is made available via an API. The API is also used to control the proxy, and to add custom metrics
+to a har at runtime, as well as adding verifications for HAR content. Clients for
+this API are generated in multiple languages via the open api specification. The clients live in /clients
+which should be ignored, as they are generated files.
+
+Browserup extends mitmproxy's mitmdump executable with addons
+The most important code for browserup live in mitmproxy/addons/browserup
diff --git a/browserup-proxy.schema.json b/browserup-proxy.schema.json
index 7e54d02df7..2a73b8df5d 100644
--- a/browserup-proxy.schema.json
+++ b/browserup-proxy.schema.json
@@ -337,30 +337,30 @@
}
}
},
- "/har/counters": {
+ "/har/metrics": {
"post": {
- "description": "Add Custom Counter to the captured traffic har",
- "operationId": "addCounter",
+ "description": "Add Custom Metric to the captured traffic har",
+ "operationId": "addMetric",
"tags": [
"BrowserUpProxy"
],
"requestBody": {
- "description": "Receives a new counter to add. The counter is stored, under the hood, in an array in the har under the _counters key",
+ "description": "Receives a new metric to add. The metric is stored, under the hood, in an array in the har under the _metrics key",
"required": true,
"content": {
"application/json": {
"schema": {
- "$ref": "#/components/schemas/Counter"
+ "$ref": "#/components/schemas/Metric"
}
}
}
},
"responses": {
"204": {
- "description": "The counter was added."
+ "description": "The metric was added."
},
"422": {
- "description": "The counter was invalid."
+ "description": "The metric was invalid."
}
}
}
@@ -594,17 +594,17 @@
}
}
},
- "Counter": {
+ "Metric": {
"type": "object",
"properties": {
"name": {
"type": "string",
- "description": "Name of Custom Counter to add to the page under _counters"
+ "description": "Name of Custom Metric to add to the page under _metrics"
},
"value": {
"type": "number",
"format": "double",
- "description": "Value for the counter"
+ "description": "Value for the metric"
}
}
},
@@ -634,6 +634,77 @@
}
}
},
+ "WebSocketMessage": {
+ "type": "object",
+ "required": [
+ "type",
+ "opcode",
+ "data",
+ "time"
+ ],
+ "properties": {
+ "type": {
+ "type": "string"
+ },
+ "opcode": {
+ "type": "number"
+ },
+ "data": {
+ "type": "string"
+ },
+ "time": {
+ "type": "number"
+ }
+ }
+ },
+ "Header": {
+ "type": "object",
+ "required": [
+ "name",
+ "value"
+ ],
+ "properties": {
+ "name": {
+ "type": "string"
+ },
+ "value": {
+ "type": "string"
+ },
+ "comment": {
+ "type": "string"
+ }
+ }
+ },
+ "Action": {
+ "type": "object",
+ "properties": {
+ "name": {
+ "type": "string"
+ },
+ "id": {
+ "type": "string"
+ },
+ "className": {
+ "type": "string"
+ },
+ "tagName": {
+ "type": "string"
+ },
+ "xpath": {
+ "type": "string"
+ },
+ "dataAttributes": {
+ "type": "string"
+ },
+ "formName": {
+ "type": "string"
+ },
+ "content": {
+ "type": "string"
+ }
+ },
+ "additionalProperties": false
+ },
"PageTimings": {
"type": "object",
"required": [
@@ -714,28 +785,6 @@
}
}
},
- "CustomHarData": {
- "type": "object",
- "minProperties": 1
- },
- "Header": {
- "type": "object",
- "required": [
- "name",
- "value"
- ],
- "properties": {
- "name": {
- "type": "string"
- },
- "value": {
- "type": "string"
- },
- "comment": {
- "type": "string"
- }
- }
- },
"Har": {
"type": "object",
"required": [
@@ -814,59 +863,6 @@
}
}
},
- "WebSocketMessage": {
- "type": "object",
- "required": [
- "type",
- "opcode",
- "data",
- "time"
- ],
- "properties": {
- "type": {
- "type": "string"
- },
- "opcode": {
- "type": "number"
- },
- "data": {
- "type": "string"
- },
- "time": {
- "type": "number"
- }
- }
- },
- "Action": {
- "type": "object",
- "properties": {
- "name": {
- "type": "string"
- },
- "id": {
- "type": "string"
- },
- "className": {
- "type": "string"
- },
- "tagName": {
- "type": "string"
- },
- "xpath": {
- "type": "string"
- },
- "dataAttributes": {
- "type": "string"
- },
- "formName": {
- "type": "string"
- },
- "content": {
- "type": "string"
- }
- },
- "additionalProperties": false
- },
"HarEntry": {
"type": "object",
"required": [
@@ -1326,6 +1322,10 @@
}
}
},
+ "CustomHarData": {
+ "type": "object",
+ "minProperties": 1
+ },
"Page": {
"type": "object",
"required": [
@@ -1353,10 +1353,10 @@
},
"default": []
},
- "_counters": {
+ "_metrics": {
"type": "array",
"items": {
- "$ref": "#/components/schemas/Counter"
+ "$ref": "#/components/schemas/Metric"
},
"default": []
},
diff --git a/clients/csharp/.openapi-generator/FILES b/clients/csharp/.openapi-generator/FILES
index 20617a95f8..1b241c1408 100644
--- a/clients/csharp/.openapi-generator/FILES
+++ b/clients/csharp/.openapi-generator/FILES
@@ -1,16 +1,16 @@
.gitignore
-BrowserUp.Mitmproxy.Client.sln
+.openapi-generator-ignore
+BrowserUpMitmProxyClient.sln
README.md
-api/openapi.yaml
appveyor.yml
docs/Action.md
docs/BrowserUpProxyApi.md
-docs/Counter.md
docs/Error.md
docs/Har.md
docs/HarEntry.md
docs/HarEntryCache.md
docs/HarEntryCacheBeforeRequest.md
+docs/HarEntryCacheBeforeRequestOneOf.md
docs/HarEntryRequest.md
docs/HarEntryRequestCookiesInner.md
docs/HarEntryRequestPostData.md
@@ -24,6 +24,8 @@ docs/HarLogCreator.md
docs/Header.md
docs/LargestContentfulPaint.md
docs/MatchCriteria.md
+docs/MatchCriteriaRequestHeader.md
+docs/Metric.md
docs/NameValuePair.md
docs/Page.md
docs/PageTiming.md
@@ -31,49 +33,80 @@ docs/PageTimings.md
docs/VerifyResult.md
docs/WebSocketMessage.md
git_push.sh
-src/BrowserUp.Mitmproxy.Client.Test/BrowserUp.Mitmproxy.Client.Test.csproj
-src/BrowserUp.Mitmproxy.Client/Api/BrowserUpProxyApi.cs
-src/BrowserUp.Mitmproxy.Client/BrowserUp.Mitmproxy.Client.csproj
-src/BrowserUp.Mitmproxy.Client/Client/ApiClient.cs
-src/BrowserUp.Mitmproxy.Client/Client/ApiException.cs
-src/BrowserUp.Mitmproxy.Client/Client/ApiResponse.cs
-src/BrowserUp.Mitmproxy.Client/Client/ClientUtils.cs
-src/BrowserUp.Mitmproxy.Client/Client/Configuration.cs
-src/BrowserUp.Mitmproxy.Client/Client/ExceptionFactory.cs
-src/BrowserUp.Mitmproxy.Client/Client/GlobalConfiguration.cs
-src/BrowserUp.Mitmproxy.Client/Client/HttpMethod.cs
-src/BrowserUp.Mitmproxy.Client/Client/IApiAccessor.cs
-src/BrowserUp.Mitmproxy.Client/Client/IAsynchronousClient.cs
-src/BrowserUp.Mitmproxy.Client/Client/IReadableConfiguration.cs
-src/BrowserUp.Mitmproxy.Client/Client/ISynchronousClient.cs
-src/BrowserUp.Mitmproxy.Client/Client/Multimap.cs
-src/BrowserUp.Mitmproxy.Client/Client/OpenAPIDateConverter.cs
-src/BrowserUp.Mitmproxy.Client/Client/RequestOptions.cs
-src/BrowserUp.Mitmproxy.Client/Client/RetryConfiguration.cs
-src/BrowserUp.Mitmproxy.Client/Model/AbstractOpenAPISchema.cs
-src/BrowserUp.Mitmproxy.Client/Model/Action.cs
-src/BrowserUp.Mitmproxy.Client/Model/Counter.cs
-src/BrowserUp.Mitmproxy.Client/Model/Error.cs
-src/BrowserUp.Mitmproxy.Client/Model/Har.cs
-src/BrowserUp.Mitmproxy.Client/Model/HarEntry.cs
-src/BrowserUp.Mitmproxy.Client/Model/HarEntryCache.cs
-src/BrowserUp.Mitmproxy.Client/Model/HarEntryCacheBeforeRequest.cs
-src/BrowserUp.Mitmproxy.Client/Model/HarEntryRequest.cs
-src/BrowserUp.Mitmproxy.Client/Model/HarEntryRequestCookiesInner.cs
-src/BrowserUp.Mitmproxy.Client/Model/HarEntryRequestPostData.cs
-src/BrowserUp.Mitmproxy.Client/Model/HarEntryRequestPostDataParamsInner.cs
-src/BrowserUp.Mitmproxy.Client/Model/HarEntryRequestQueryStringInner.cs
-src/BrowserUp.Mitmproxy.Client/Model/HarEntryResponse.cs
-src/BrowserUp.Mitmproxy.Client/Model/HarEntryResponseContent.cs
-src/BrowserUp.Mitmproxy.Client/Model/HarEntryTimings.cs
-src/BrowserUp.Mitmproxy.Client/Model/HarLog.cs
-src/BrowserUp.Mitmproxy.Client/Model/HarLogCreator.cs
-src/BrowserUp.Mitmproxy.Client/Model/Header.cs
-src/BrowserUp.Mitmproxy.Client/Model/LargestContentfulPaint.cs
-src/BrowserUp.Mitmproxy.Client/Model/MatchCriteria.cs
-src/BrowserUp.Mitmproxy.Client/Model/NameValuePair.cs
-src/BrowserUp.Mitmproxy.Client/Model/Page.cs
-src/BrowserUp.Mitmproxy.Client/Model/PageTiming.cs
-src/BrowserUp.Mitmproxy.Client/Model/PageTimings.cs
-src/BrowserUp.Mitmproxy.Client/Model/VerifyResult.cs
-src/BrowserUp.Mitmproxy.Client/Model/WebSocketMessage.cs
+src/BrowserUpMitmProxyClient.Test/Api/BrowserUpProxyApiTests.cs
+src/BrowserUpMitmProxyClient.Test/BrowserUpMitmProxyClient.Test.csproj
+src/BrowserUpMitmProxyClient.Test/Model/ActionTests.cs
+src/BrowserUpMitmProxyClient.Test/Model/ErrorTests.cs
+src/BrowserUpMitmProxyClient.Test/Model/HarEntryCacheBeforeRequestOneOfTests.cs
+src/BrowserUpMitmProxyClient.Test/Model/HarEntryCacheBeforeRequestTests.cs
+src/BrowserUpMitmProxyClient.Test/Model/HarEntryCacheTests.cs
+src/BrowserUpMitmProxyClient.Test/Model/HarEntryRequestCookiesInnerTests.cs
+src/BrowserUpMitmProxyClient.Test/Model/HarEntryRequestPostDataParamsInnerTests.cs
+src/BrowserUpMitmProxyClient.Test/Model/HarEntryRequestPostDataTests.cs
+src/BrowserUpMitmProxyClient.Test/Model/HarEntryRequestQueryStringInnerTests.cs
+src/BrowserUpMitmProxyClient.Test/Model/HarEntryRequestTests.cs
+src/BrowserUpMitmProxyClient.Test/Model/HarEntryResponseContentTests.cs
+src/BrowserUpMitmProxyClient.Test/Model/HarEntryResponseTests.cs
+src/BrowserUpMitmProxyClient.Test/Model/HarEntryTests.cs
+src/BrowserUpMitmProxyClient.Test/Model/HarEntryTimingsTests.cs
+src/BrowserUpMitmProxyClient.Test/Model/HarLogCreatorTests.cs
+src/BrowserUpMitmProxyClient.Test/Model/HarLogTests.cs
+src/BrowserUpMitmProxyClient.Test/Model/HarTests.cs
+src/BrowserUpMitmProxyClient.Test/Model/HeaderTests.cs
+src/BrowserUpMitmProxyClient.Test/Model/LargestContentfulPaintTests.cs
+src/BrowserUpMitmProxyClient.Test/Model/MatchCriteriaRequestHeaderTests.cs
+src/BrowserUpMitmProxyClient.Test/Model/MatchCriteriaTests.cs
+src/BrowserUpMitmProxyClient.Test/Model/MetricTests.cs
+src/BrowserUpMitmProxyClient.Test/Model/NameValuePairTests.cs
+src/BrowserUpMitmProxyClient.Test/Model/PageTests.cs
+src/BrowserUpMitmProxyClient.Test/Model/PageTimingTests.cs
+src/BrowserUpMitmProxyClient.Test/Model/PageTimingsTests.cs
+src/BrowserUpMitmProxyClient.Test/Model/VerifyResultTests.cs
+src/BrowserUpMitmProxyClient.Test/Model/WebSocketMessageTests.cs
+src/BrowserUpMitmProxyClient/Api/BrowserUpProxyApi.cs
+src/BrowserUpMitmProxyClient/BrowserUpMitmProxyClient.csproj
+src/BrowserUpMitmProxyClient/Client/ApiClient.cs
+src/BrowserUpMitmProxyClient/Client/ApiException.cs
+src/BrowserUpMitmProxyClient/Client/ApiResponse.cs
+src/BrowserUpMitmProxyClient/Client/ClientUtils.cs
+src/BrowserUpMitmProxyClient/Client/Configuration.cs
+src/BrowserUpMitmProxyClient/Client/ExceptionFactory.cs
+src/BrowserUpMitmProxyClient/Client/GlobalConfiguration.cs
+src/BrowserUpMitmProxyClient/Client/HttpMethod.cs
+src/BrowserUpMitmProxyClient/Client/IApiAccessor.cs
+src/BrowserUpMitmProxyClient/Client/IAsynchronousClient.cs
+src/BrowserUpMitmProxyClient/Client/IReadableConfiguration.cs
+src/BrowserUpMitmProxyClient/Client/ISynchronousClient.cs
+src/BrowserUpMitmProxyClient/Client/Multimap.cs
+src/BrowserUpMitmProxyClient/Client/OpenAPIDateConverter.cs
+src/BrowserUpMitmProxyClient/Client/RequestOptions.cs
+src/BrowserUpMitmProxyClient/Client/RetryConfiguration.cs
+src/BrowserUpMitmProxyClient/Model/AbstractOpenAPISchema.cs
+src/BrowserUpMitmProxyClient/Model/Action.cs
+src/BrowserUpMitmProxyClient/Model/Error.cs
+src/BrowserUpMitmProxyClient/Model/Har.cs
+src/BrowserUpMitmProxyClient/Model/HarEntry.cs
+src/BrowserUpMitmProxyClient/Model/HarEntryCache.cs
+src/BrowserUpMitmProxyClient/Model/HarEntryCacheBeforeRequest.cs
+src/BrowserUpMitmProxyClient/Model/HarEntryCacheBeforeRequestOneOf.cs
+src/BrowserUpMitmProxyClient/Model/HarEntryRequest.cs
+src/BrowserUpMitmProxyClient/Model/HarEntryRequestCookiesInner.cs
+src/BrowserUpMitmProxyClient/Model/HarEntryRequestPostData.cs
+src/BrowserUpMitmProxyClient/Model/HarEntryRequestPostDataParamsInner.cs
+src/BrowserUpMitmProxyClient/Model/HarEntryRequestQueryStringInner.cs
+src/BrowserUpMitmProxyClient/Model/HarEntryResponse.cs
+src/BrowserUpMitmProxyClient/Model/HarEntryResponseContent.cs
+src/BrowserUpMitmProxyClient/Model/HarEntryTimings.cs
+src/BrowserUpMitmProxyClient/Model/HarLog.cs
+src/BrowserUpMitmProxyClient/Model/HarLogCreator.cs
+src/BrowserUpMitmProxyClient/Model/Header.cs
+src/BrowserUpMitmProxyClient/Model/LargestContentfulPaint.cs
+src/BrowserUpMitmProxyClient/Model/MatchCriteria.cs
+src/BrowserUpMitmProxyClient/Model/MatchCriteriaRequestHeader.cs
+src/BrowserUpMitmProxyClient/Model/Metric.cs
+src/BrowserUpMitmProxyClient/Model/NameValuePair.cs
+src/BrowserUpMitmProxyClient/Model/Page.cs
+src/BrowserUpMitmProxyClient/Model/PageTiming.cs
+src/BrowserUpMitmProxyClient/Model/PageTimings.cs
+src/BrowserUpMitmProxyClient/Model/VerifyResult.cs
+src/BrowserUpMitmProxyClient/Model/WebSocketMessage.cs
diff --git a/clients/csharp/.openapi-generator/VERSION b/clients/csharp/.openapi-generator/VERSION
index 4122521804..c0be8a7992 100644
--- a/clients/csharp/.openapi-generator/VERSION
+++ b/clients/csharp/.openapi-generator/VERSION
@@ -1 +1 @@
-7.0.0
\ No newline at end of file
+6.4.0
\ No newline at end of file
diff --git a/clients/csharp/BrowserUp.Mitmproxy.Client.sln b/clients/csharp/BrowserUpMitmProxyClient.sln
similarity index 58%
rename from clients/csharp/BrowserUp.Mitmproxy.Client.sln
rename to clients/csharp/BrowserUpMitmProxyClient.sln
index 4b3a230e70..a3e7e37975 100644
--- a/clients/csharp/BrowserUp.Mitmproxy.Client.sln
+++ b/clients/csharp/BrowserUpMitmProxyClient.sln
@@ -2,9 +2,9 @@ Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 2012
VisualStudioVersion = 12.0.0.0
MinimumVisualStudioVersion = 10.0.0.1
-Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "BrowserUp.Mitmproxy.Client", "src\BrowserUp.Mitmproxy.Client\BrowserUp.Mitmproxy.Client.csproj", "{D80564AC-BD94-42DC-AF3F-33CCE2228473}"
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "BrowserUpMitmProxyClient", "src\BrowserUpMitmProxyClient\BrowserUpMitmProxyClient.csproj", "{979682E2-30D9-4EB9-A593-E1494EA7C849}"
EndProject
-Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "BrowserUp.Mitmproxy.Client.Test", "src\BrowserUp.Mitmproxy.Client.Test\BrowserUp.Mitmproxy.Client.Test.csproj", "{19F1DEBC-DE5E-4517-8062-F000CD499087}"
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "BrowserUpMitmProxyClient.Test", "src\BrowserUpMitmProxyClient.Test\BrowserUpMitmProxyClient.Test.csproj", "{19F1DEBC-DE5E-4517-8062-F000CD499087}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
@@ -12,10 +12,10 @@ Global
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
- {D80564AC-BD94-42DC-AF3F-33CCE2228473}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
- {D80564AC-BD94-42DC-AF3F-33CCE2228473}.Debug|Any CPU.Build.0 = Debug|Any CPU
- {D80564AC-BD94-42DC-AF3F-33CCE2228473}.Release|Any CPU.ActiveCfg = Release|Any CPU
- {D80564AC-BD94-42DC-AF3F-33CCE2228473}.Release|Any CPU.Build.0 = Release|Any CPU
+ {979682E2-30D9-4EB9-A593-E1494EA7C849}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {979682E2-30D9-4EB9-A593-E1494EA7C849}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {979682E2-30D9-4EB9-A593-E1494EA7C849}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {979682E2-30D9-4EB9-A593-E1494EA7C849}.Release|Any CPU.Build.0 = Release|Any CPU
{19F1DEBC-DE5E-4517-8062-F000CD499087}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{19F1DEBC-DE5E-4517-8062-F000CD499087}.Debug|Any CPU.Build.0 = Debug|Any CPU
{19F1DEBC-DE5E-4517-8062-F000CD499087}.Release|Any CPU.ActiveCfg = Release|Any CPU
diff --git a/clients/csharp/README.md b/clients/csharp/README.md
index d3bd861dbe..ec1a1b7c1d 100644
--- a/clients/csharp/README.md
+++ b/clients/csharp/README.md
@@ -1,4 +1,4 @@
-# BrowserUp.Mitmproxy.Client - the C# library for the BrowserUp MitmProxy
+# BrowserUpMitmProxyClient - the C# library for the BrowserUp MitmProxy
___
This is the REST API for controlling the BrowserUp MitmProxy.
@@ -9,14 +9,14 @@ ___
This C# SDK is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
-- API version: 1.0.0
+- API version: 1.24
- SDK version: 1.0.0
-- Build package: org.openapitools.codegen.languages.CSharpClientCodegen
+- Build package: org.openapitools.codegen.languages.CSharpNetCoreClientCodegen
-
+
## Frameworks supported
-
+
## Dependencies
- [RestSharp](https://www.nuget.org/packages/RestSharp) - 106.13.0 or later
@@ -35,7 +35,7 @@ Install-Package System.ComponentModel.Annotations
NOTE: RestSharp versions greater than 105.1.0 have a bug which causes file uploads to fail. See [RestSharp#742](https://github.com/restsharp/RestSharp/issues/742).
NOTE: RestSharp for .Net Core creates a new socket for each api call, which can lead to a socket exhaustion problem. See [RestSharp#1406](https://github.com/restsharp/RestSharp/issues/1406).
-
+
## Installation
Run the following command to generate the DLL
- [Mac/Linux] `/bin/sh build.sh`
@@ -43,11 +43,11 @@ Run the following command to generate the DLL
Then include the DLL (under the `bin` folder) in the C# project, and use the namespaces:
```csharp
-using BrowserUp.Mitmproxy.Client.Api;
-using BrowserUp.Mitmproxy.Client.Client;
-using BrowserUp.Mitmproxy.Client.Model;
+using BrowserUpMitmProxyClient.Api;
+using BrowserUpMitmProxyClient.Client;
+using BrowserUpMitmProxyClient.Model;
```
-
+
## Packaging
A `.nuspec` is included with the project. You can follow the Nuget quickstart to [create](https://docs.microsoft.com/en-us/nuget/quickstart/create-and-publish-a-package#create-the-package) and [publish](https://docs.microsoft.com/en-us/nuget/quickstart/create-and-publish-a-package#publish-the-package) packages.
@@ -55,12 +55,12 @@ A `.nuspec` is included with the project. You can follow the Nuget quickstart to
This `.nuspec` uses placeholders from the `.csproj`, so build the `.csproj` directly:
```
-nuget pack -Build -OutputDirectory out BrowserUp.Mitmproxy.Client.csproj
+nuget pack -Build -OutputDirectory out BrowserUpMitmProxyClient.csproj
```
Then, publish to a [local feed](https://docs.microsoft.com/en-us/nuget/hosting-packages/local-feeds) or [other host](https://docs.microsoft.com/en-us/nuget/hosting-packages/overview) and consume the new package via Nuget as usual.
-
+
## Usage
To use the API client with a HTTP proxy, setup a `System.Net.WebProxy`
@@ -71,15 +71,15 @@ webProxy.Credentials = System.Net.CredentialCache.DefaultCredentials;
c.Proxy = webProxy;
```
-
+
## Getting Started
```csharp
using System.Collections.Generic;
using System.Diagnostics;
-using BrowserUp.Mitmproxy.Client.Api;
-using BrowserUp.Mitmproxy.Client.Client;
-using BrowserUp.Mitmproxy.Client.Model;
+using BrowserUpMitmProxyClient.Api;
+using BrowserUpMitmProxyClient.Client;
+using BrowserUpMitmProxyClient.Model;
namespace Example
{
@@ -91,15 +91,15 @@ namespace Example
Configuration config = new Configuration();
config.BasePath = "http://localhost:48088";
var apiInstance = new BrowserUpProxyApi(config);
- var counter = new Counter(); // Counter | Receives a new counter to add. The counter is stored, under the hood, in an array in the har under the _counters key
+ var error = new Error(); // Error | Receives an error to track. Internally, the error is stored in an array in the har under the _errors key
try
{
- apiInstance.AddCounter(counter);
+ apiInstance.AddError(error);
}
catch (ApiException e)
{
- Debug.Print("Exception when calling BrowserUpProxyApi.AddCounter: " + e.Message );
+ Debug.Print("Exception when calling BrowserUpProxyApi.AddError: " + e.Message );
Debug.Print("Status Code: "+ e.ErrorCode);
Debug.Print(e.StackTrace);
}
@@ -109,15 +109,15 @@ namespace Example
}
```
-
+
## Documentation for API Endpoints
All URIs are relative to *http://localhost:48088*
Class | Method | HTTP request | Description
------------ | ------------- | ------------- | -------------
-*BrowserUpProxyApi* | [**AddCounter**](docs/BrowserUpProxyApi.md#addcounter) | **POST** /har/counters |
*BrowserUpProxyApi* | [**AddError**](docs/BrowserUpProxyApi.md#adderror) | **POST** /har/errors |
+*BrowserUpProxyApi* | [**AddMetric**](docs/BrowserUpProxyApi.md#addmetric) | **POST** /har/metrics |
*BrowserUpProxyApi* | [**GetHarLog**](docs/BrowserUpProxyApi.md#getharlog) | **GET** /har |
*BrowserUpProxyApi* | [**Healthcheck**](docs/BrowserUpProxyApi.md#healthcheck) | **GET** /healthcheck |
*BrowserUpProxyApi* | [**NewPage**](docs/BrowserUpProxyApi.md#newpage) | **POST** /har/page |
@@ -128,16 +128,16 @@ Class | Method | HTTP request | Description
*BrowserUpProxyApi* | [**VerifySize**](docs/BrowserUpProxyApi.md#verifysize) | **POST** /verify/size/{size}/{name} |
-
+
## Documentation for Models
- [Model.Action](docs/Action.md)
- - [Model.Counter](docs/Counter.md)
- [Model.Error](docs/Error.md)
- [Model.Har](docs/Har.md)
- [Model.HarEntry](docs/HarEntry.md)
- [Model.HarEntryCache](docs/HarEntryCache.md)
- [Model.HarEntryCacheBeforeRequest](docs/HarEntryCacheBeforeRequest.md)
+ - [Model.HarEntryCacheBeforeRequestOneOf](docs/HarEntryCacheBeforeRequestOneOf.md)
- [Model.HarEntryRequest](docs/HarEntryRequest.md)
- [Model.HarEntryRequestCookiesInner](docs/HarEntryRequestCookiesInner.md)
- [Model.HarEntryRequestPostData](docs/HarEntryRequestPostData.md)
@@ -151,6 +151,8 @@ Class | Method | HTTP request | Description
- [Model.Header](docs/Header.md)
- [Model.LargestContentfulPaint](docs/LargestContentfulPaint.md)
- [Model.MatchCriteria](docs/MatchCriteria.md)
+ - [Model.MatchCriteriaRequestHeader](docs/MatchCriteriaRequestHeader.md)
+ - [Model.Metric](docs/Metric.md)
- [Model.NameValuePair](docs/NameValuePair.md)
- [Model.Page](docs/Page.md)
- [Model.PageTiming](docs/PageTiming.md)
@@ -159,8 +161,7 @@ Class | Method | HTTP request | Description
- [Model.WebSocketMessage](docs/WebSocketMessage.md)
-
+
## Documentation for Authorization
-Endpoints do not require authorization.
-
+All endpoints do not require authorization.
diff --git a/clients/csharp/api/openapi.yaml b/clients/csharp/api/openapi.yaml
deleted file mode 100644
index d282ddf81e..0000000000
--- a/clients/csharp/api/openapi.yaml
+++ /dev/null
@@ -1,2098 +0,0 @@
-openapi: 3.0.3
-info:
- description: |
- ___
- This is the REST API for controlling the BrowserUp MitmProxy.
- The BrowserUp MitmProxy is a swiss army knife for automated testing that
- captures HTTP traffic in HAR files. It is also useful for Selenium/Cypress tests.
- ___
- title: BrowserUp MitmProxy
- version: 1.0.0
- x-logo:
- url: logo.png
-servers:
-- description: The development API server
- url: "http://localhost:{port}/"
- variables:
- port:
- default: "48088"
- enum:
- - "48088"
-tags:
-- description: BrowserUp MitmProxy REST API
- name: The BrowserUp MitmProxy API
-paths:
- /har:
- get:
- description: Get the current HAR.
- operationId: getHarLog
- responses:
- "200":
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/Har'
- description: The current Har file.
- tags:
- - BrowserUpProxy
- put:
- description: Starts a fresh HAR capture session.
- operationId: resetHarLog
- responses:
- "200":
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/Har'
- description: The current Har file.
- tags:
- - BrowserUpProxy
- /har/page:
- post:
- description: Starts a fresh HAR Page (Step) in the current active HAR to group
- requests.
- operationId: newPage
- parameters:
- - description: The unique title for this har page/step.
- explode: false
- in: path
- name: title
- required: true
- schema:
- pattern: "/[a-zA-Z-_]{4,25}/"
- type: string
- style: simple
- responses:
- "200":
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/Har'
- description: The current Har file.
- tags:
- - BrowserUpProxy
- /verify/present/{name}:
- post:
- description: Verify at least one matching item is present in the captured traffic
- operationId: verifyPresent
- parameters:
- - description: The unique name for this verification operation
- explode: false
- in: path
- name: name
- required: true
- schema:
- pattern: "/[a-zA-Z-_]{4,25}/"
- type: string
- style: simple
- requestBody:
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/MatchCriteria'
- description: Match criteria to select requests - response pairs for size tests
- required: true
- responses:
- "200":
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/VerifyResult'
- description: The traffic conformed to the time criteria.
- "422":
- description: The MatchCriteria are invalid.
- tags:
- - BrowserUpProxy
- /verify/not_present/{name}:
- post:
- description: Verify no matching items are present in the captured traffic
- operationId: verifyNotPresent
- parameters:
- - description: The unique name for this verification operation
- explode: false
- in: path
- name: name
- required: true
- schema:
- pattern: "/[a-zA-Z-_]{4,25}/"
- type: string
- style: simple
- requestBody:
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/MatchCriteria'
- description: Match criteria to select requests - response pairs for size tests
- required: true
- responses:
- "200":
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/VerifyResult'
- description: The traffic had no matching items
- "422":
- description: The MatchCriteria are invalid.
- tags:
- - BrowserUpProxy
- /verify/size/{size}/{name}:
- post:
- description: Verify matching items in the captured traffic meet the size criteria
- operationId: verifySize
- parameters:
- - description: "The size used for comparison, in kilobytes"
- explode: false
- in: path
- name: size
- required: true
- schema:
- minimum: 0
- type: integer
- style: simple
- - description: The unique name for this verification operation
- explode: false
- in: path
- name: name
- required: true
- schema:
- pattern: "/[a-zA-Z-_]{4,25}/"
- type: string
- style: simple
- requestBody:
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/MatchCriteria'
- description: Match criteria to select requests - response pairs for size tests
- required: true
- responses:
- "200":
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/VerifyResult'
- description: The traffic conformed to the size criteria.
- "422":
- description: The MatchCriteria are invalid.
- tags:
- - BrowserUpProxy
- /verify/sla/{time}/{name}:
- post:
- description: Verify each traffic item matching the criteria meets is below SLA
- time
- operationId: verifySLA
- parameters:
- - description: The time used for comparison
- explode: false
- in: path
- name: time
- required: true
- schema:
- minimum: 0
- type: integer
- style: simple
- - description: The unique name for this verification operation
- explode: false
- in: path
- name: name
- required: true
- schema:
- pattern: "/[a-zA-Z-_]{4,25}/"
- type: string
- style: simple
- requestBody:
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/MatchCriteria'
- description: Match criteria to select requests - response pairs for size tests
- required: true
- responses:
- "200":
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/VerifyResult'
- description: The traffic conformed to the time criteria.
- "422":
- description: The MatchCriteria are invalid.
- tags:
- - BrowserUpProxy
- /har/errors:
- post:
- description: Add Custom Error to the captured traffic har
- operationId: addError
- requestBody:
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/Error'
- description: "Receives an error to track. Internally, the error is stored\
- \ in an array in the har under the _errors key"
- required: true
- responses:
- "204":
- description: The Error was added.
- "422":
- description: The Error was invalid.
- tags:
- - BrowserUpProxy
- /har/counters:
- post:
- description: Add Custom Counter to the captured traffic har
- operationId: addCounter
- requestBody:
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/Counter'
- description: "Receives a new counter to add. The counter is stored, under\
- \ the hood, in an array in the har under the _counters key"
- required: true
- responses:
- "204":
- description: The counter was added.
- "422":
- description: The counter was invalid.
- tags:
- - BrowserUpProxy
- /healthcheck:
- get:
- description: Get the healthcheck
- operationId: healthcheck
- responses:
- "200":
- description: OK means all is well.
- tags:
- - BrowserUpProxy
-components:
- schemas:
- PageTiming:
- properties:
- onContentLoad:
- description: onContentLoad per the browser
- type: number
- onLoad:
- description: onLoad per the browser
- type: number
- _firstInputDelay:
- description: firstInputDelay from the browser
- type: number
- _firstPaint:
- description: firstPaint from the browser
- type: number
- _cumulativeLayoutShift:
- description: cumulativeLayoutShift metric from the browser
- type: number
- _largestContentfulPaint:
- description: largestContentfulPaint from the browser
- type: number
- _domInteractive:
- description: domInteractive from the browser
- type: number
- _firstContentfulPaint:
- description: firstContentfulPaint from the browser
- type: number
- _dns:
- description: dns lookup time from the browser
- type: number
- _ssl:
- description: Ssl connect time from the browser
- type: number
- _timeToFirstByte:
- description: Time to first byte of the page's first request per the browser
- type: number
- _href:
- description: "Top level href, including hashtag, etc per the browser"
- type: string
- type: object
- NameValuePair:
- properties:
- name:
- description: Name to match
- type: string
- value:
- description: Value to match
- type: string
- type: object
- MatchCriteria:
- description: |-
- A set of criteria for filtering HTTP Requests and Responses.
- Criteria are AND based, and use python regular expressions for string comparison
- example:
- request_cookie: ""
- response_cookie: ""
- json_path: json_path
- error_if_no_traffic: true
- url: url
- content: content
- response_header: ""
- content_type: content_type
- request_header: ""
- json_schema: json_schema
- json_valid: true
- page: page
- websocket_message: websocket_message
- status: status
- properties:
- url:
- description: Request URL regexp to match
- externalDocs:
- description: Python Regex
- url: https://docs.python.org/3/howto/regex.html
- type: string
- page:
- description: current|all
- externalDocs:
- description: Python Regex
- url: https://docs.python.org/3/howto/regex.html
- type: string
- status:
- description: HTTP Status code to match.
- externalDocs:
- description: Python Regex
- url: https://docs.python.org/3/howto/regex.html
- type: string
- content:
- description: Body content regexp content to match
- externalDocs:
- description: Python Regex
- url: https://docs.python.org/3/howto/regex.html
- type: string
- content_type:
- description: Content type
- externalDocs:
- description: Python Regex
- url: https://docs.python.org/3/howto/regex.html
- type: string
- websocket_message:
- description: Websocket message text to match
- externalDocs:
- description: Python Regex
- url: https://docs.python.org/3/howto/regex.html
- type: string
- request_header:
- allOf:
- - $ref: '#/components/schemas/NameValuePair'
- externalDocs:
- description: Python Regex
- url: https://docs.python.org/3/howto/regex.html
- request_cookie:
- allOf:
- - $ref: '#/components/schemas/NameValuePair'
- externalDocs:
- description: Python Regex
- url: https://docs.python.org/3/howto/regex.html
- response_header:
- allOf:
- - $ref: '#/components/schemas/NameValuePair'
- externalDocs:
- description: Python Regex
- url: https://docs.python.org/3/howto/regex.html
- response_cookie:
- allOf:
- - $ref: '#/components/schemas/NameValuePair'
- externalDocs:
- description: Python Regex
- url: https://docs.python.org/3/howto/regex.html
- json_valid:
- description: Is valid JSON
- type: boolean
- json_path:
- description: Has JSON path
- type: string
- json_schema:
- description: Validates against passed JSON schema
- type: string
- error_if_no_traffic:
- default: true
- description: "If the proxy has NO traffic at all, return error"
- type: boolean
- type: object
- VerifyResult:
- example:
- result: true
- name: name
- type: type
- properties:
- result:
- description: Result True / False
- type: boolean
- name:
- description: Name
- type: string
- type:
- description: Type
- type: string
- type: object
- Error:
- example:
- name: name
- details: details
- properties:
- name:
- description: Name of the Error to add. Stored in har under _errors
- type: string
- details:
- description: Short details of the error
- type: string
- type: object
- Counter:
- example:
- name: name
- value: 0.8008281904610115
- properties:
- name:
- description: Name of Custom Counter to add to the page under _counters
- type: string
- value:
- description: Value for the counter
- format: double
- type: number
- type: object
- LargestContentfulPaint:
- additionalProperties: true
- example:
- size: 0
- domPath: domPath
- startTime: 0
- tag: tag
- properties:
- startTime:
- default: -1
- format: int64
- minimum: -1
- type: integer
- size:
- default: -1
- format: int64
- minimum: -1
- type: integer
- domPath:
- default: ""
- type: string
- tag:
- default: ""
- type: string
- type: object
- WebSocketMessage:
- example:
- data: data
- time: 7.058770351582356
- type: type
- opcode: 0.8851374739011653
- properties:
- type:
- type: string
- opcode:
- type: number
- data:
- type: string
- time:
- type: number
- required:
- - data
- - opcode
- - time
- - type
- type: object
- Header:
- example:
- name: name
- comment: comment
- value: value
- properties:
- name:
- type: string
- value:
- type: string
- comment:
- type: string
- required:
- - name
- - value
- type: object
- Action:
- additionalProperties: false
- properties:
- name:
- type: string
- id:
- type: string
- className:
- type: string
- tagName:
- type: string
- xpath:
- type: string
- dataAttributes:
- type: string
- formName:
- type: string
- content:
- type: string
- type: object
- PageTimings:
- additionalProperties: true
- example:
- _href: _href
- _ssl: 0
- _firstPaint: 0
- _cumulativeLayoutShift: -0.29385987
- _dns: 0
- _largestContentfulPaint:
- size: 0
- domPath: domPath
- startTime: 0
- tag: tag
- _firstInputDelay: -0.5854392
- _domInteractive: 0
- _timeToFirstByte: 0
- _firstContentfulPaint: 0
- onContentLoad: 0
- onLoad: 0
- comment: comment
- properties:
- onContentLoad:
- default: -1
- format: int64
- minimum: -1
- type: integer
- onLoad:
- default: -1
- format: int64
- minimum: -1
- type: integer
- _href:
- default: ""
- type: string
- _dns:
- default: -1
- format: int64
- minimum: -1
- type: integer
- _ssl:
- default: -1
- format: int64
- minimum: -1
- type: integer
- _timeToFirstByte:
- default: -1
- format: int64
- minimum: -1
- type: integer
- _cumulativeLayoutShift:
- default: -1
- format: float
- minimum: -1
- type: number
- _largestContentfulPaint:
- $ref: '#/components/schemas/LargestContentfulPaint'
- _firstPaint:
- default: -1
- format: int64
- minimum: -1
- type: integer
- _firstInputDelay:
- default: -1
- format: float
- minimum: -1
- type: number
- _domInteractive:
- default: -1
- format: int64
- minimum: -1
- type: integer
- _firstContentfulPaint:
- default: -1
- format: int64
- minimum: -1
- type: integer
- comment:
- type: string
- required:
- - onContentLoad
- - onLoad
- type: object
- Har:
- additionalProperties: true
- example:
- log:
- creator:
- name: name
- comment: comment
- version: version
- entries:
- - startedDateTime: 2000-01-23T04:56:07.000+00:00
- request:
- headers:
- - name: name
- comment: comment
- value: value
- - name: name
- comment: comment
- value: value
- httpVersion: httpVersion
- method: method
- headersSize: 1
- bodySize: 6
- comment: comment
- queryString:
- - name: name
- comment: comment
- value: value
- - name: name
- comment: comment
- value: value
- postData:
- mimeType: mimeType
- text: text
- params:
- - fileName: fileName
- name: name
- comment: comment
- value: value
- contentType: contentType
- - fileName: fileName
- name: name
- comment: comment
- value: value
- contentType: contentType
- url: https://openapi-generator.tech
- cookies:
- - path: path
- expires: expires
- domain: domain
- name: name
- comment: comment
- httpOnly: true
- secure: true
- value: value
- - path: path
- expires: expires
- domain: domain
- name: name
- comment: comment
- httpOnly: true
- secure: true
- value: value
- cache:
- afterRequest:
- expires: expires
- hitCount: 2
- lastAccess: lastAccess
- eTag: eTag
- comment: comment
- comment: comment
- beforeRequest:
- expires: expires
- hitCount: 2
- lastAccess: lastAccess
- eTag: eTag
- comment: comment
- _webSocketMessages:
- - data: data
- time: 7.058770351582356
- type: type
- opcode: 0.8851374739011653
- - data: data
- time: 7.058770351582356
- type: type
- opcode: 0.8851374739011653
- response:
- headers:
- - name: name
- comment: comment
- value: value
- - name: name
- comment: comment
- value: value
- httpVersion: httpVersion
- redirectURL: redirectURL
- statusText: statusText
- headersSize: 6
- bodySize: 1
- comment: comment
- cookies:
- - path: path
- expires: expires
- domain: domain
- name: name
- comment: comment
- httpOnly: true
- secure: true
- value: value
- - path: path
- expires: expires
- domain: domain
- name: name
- comment: comment
- httpOnly: true
- secure: true
- value: value
- content:
- _videoBufferedPercent: 0
- _videoDroppedFrames: 0
- mimeType: mimeType
- encoding: encoding
- _videoDecodedByteCount: 0
- _videoTotalFrames: 0
- size: 1
- _videoStallCount: 0
- _videoErrorCount: 0
- comment: comment
- text: text
- _videoAudioBytesDecoded: 0
- compression: 4
- _videoWaitingCount: 0
- status: 7
- serverIPAddress: serverIPAddress
- timings:
- receive: 0
- wait: 0
- blocked: 0
- dns: 0
- comment: comment
- send: 0
- ssl: 0
- connect: 0
- connection: connection
- comment: comment
- time: 0
- pageref: pageref
- - startedDateTime: 2000-01-23T04:56:07.000+00:00
- request:
- headers:
- - name: name
- comment: comment
- value: value
- - name: name
- comment: comment
- value: value
- httpVersion: httpVersion
- method: method
- headersSize: 1
- bodySize: 6
- comment: comment
- queryString:
- - name: name
- comment: comment
- value: value
- - name: name
- comment: comment
- value: value
- postData:
- mimeType: mimeType
- text: text
- params:
- - fileName: fileName
- name: name
- comment: comment
- value: value
- contentType: contentType
- - fileName: fileName
- name: name
- comment: comment
- value: value
- contentType: contentType
- url: https://openapi-generator.tech
- cookies:
- - path: path
- expires: expires
- domain: domain
- name: name
- comment: comment
- httpOnly: true
- secure: true
- value: value
- - path: path
- expires: expires
- domain: domain
- name: name
- comment: comment
- httpOnly: true
- secure: true
- value: value
- cache:
- afterRequest:
- expires: expires
- hitCount: 2
- lastAccess: lastAccess
- eTag: eTag
- comment: comment
- comment: comment
- beforeRequest:
- expires: expires
- hitCount: 2
- lastAccess: lastAccess
- eTag: eTag
- comment: comment
- _webSocketMessages:
- - data: data
- time: 7.058770351582356
- type: type
- opcode: 0.8851374739011653
- - data: data
- time: 7.058770351582356
- type: type
- opcode: 0.8851374739011653
- response:
- headers:
- - name: name
- comment: comment
- value: value
- - name: name
- comment: comment
- value: value
- httpVersion: httpVersion
- redirectURL: redirectURL
- statusText: statusText
- headersSize: 6
- bodySize: 1
- comment: comment
- cookies:
- - path: path
- expires: expires
- domain: domain
- name: name
- comment: comment
- httpOnly: true
- secure: true
- value: value
- - path: path
- expires: expires
- domain: domain
- name: name
- comment: comment
- httpOnly: true
- secure: true
- value: value
- content:
- _videoBufferedPercent: 0
- _videoDroppedFrames: 0
- mimeType: mimeType
- encoding: encoding
- _videoDecodedByteCount: 0
- _videoTotalFrames: 0
- size: 1
- _videoStallCount: 0
- _videoErrorCount: 0
- comment: comment
- text: text
- _videoAudioBytesDecoded: 0
- compression: 4
- _videoWaitingCount: 0
- status: 7
- serverIPAddress: serverIPAddress
- timings:
- receive: 0
- wait: 0
- blocked: 0
- dns: 0
- comment: comment
- send: 0
- ssl: 0
- connect: 0
- connection: connection
- comment: comment
- time: 0
- pageref: pageref
- pages:
- - startedDateTime: 2000-01-23T04:56:07.000+00:00
- pageTimings:
- _href: _href
- _ssl: 0
- _firstPaint: 0
- _cumulativeLayoutShift: -0.29385987
- _dns: 0
- _largestContentfulPaint:
- size: 0
- domPath: domPath
- startTime: 0
- tag: tag
- _firstInputDelay: -0.5854392
- _domInteractive: 0
- _timeToFirstByte: 0
- _firstContentfulPaint: 0
- onContentLoad: 0
- onLoad: 0
- comment: comment
- comment: comment
- id: id
- _verifications:
- - result: true
- name: name
- type: type
- - result: true
- name: name
- type: type
- title: title
- _counters:
- - name: name
- value: 0.8008281904610115
- - name: name
- value: 0.8008281904610115
- _errors:
- - name: name
- details: details
- - name: name
- details: details
- - startedDateTime: 2000-01-23T04:56:07.000+00:00
- pageTimings:
- _href: _href
- _ssl: 0
- _firstPaint: 0
- _cumulativeLayoutShift: -0.29385987
- _dns: 0
- _largestContentfulPaint:
- size: 0
- domPath: domPath
- startTime: 0
- tag: tag
- _firstInputDelay: -0.5854392
- _domInteractive: 0
- _timeToFirstByte: 0
- _firstContentfulPaint: 0
- onContentLoad: 0
- onLoad: 0
- comment: comment
- comment: comment
- id: id
- _verifications:
- - result: true
- name: name
- type: type
- - result: true
- name: name
- type: type
- title: title
- _counters:
- - name: name
- value: 0.8008281904610115
- - name: name
- value: 0.8008281904610115
- _errors:
- - name: name
- details: details
- - name: name
- details: details
- browser:
- name: name
- comment: comment
- version: version
- comment: comment
- version: version
- properties:
- log:
- $ref: '#/components/schemas/Har_log'
- required:
- - log
- type: object
- HarEntry:
- example:
- startedDateTime: 2000-01-23T04:56:07.000+00:00
- request:
- headers:
- - name: name
- comment: comment
- value: value
- - name: name
- comment: comment
- value: value
- httpVersion: httpVersion
- method: method
- headersSize: 1
- bodySize: 6
- comment: comment
- queryString:
- - name: name
- comment: comment
- value: value
- - name: name
- comment: comment
- value: value
- postData:
- mimeType: mimeType
- text: text
- params:
- - fileName: fileName
- name: name
- comment: comment
- value: value
- contentType: contentType
- - fileName: fileName
- name: name
- comment: comment
- value: value
- contentType: contentType
- url: https://openapi-generator.tech
- cookies:
- - path: path
- expires: expires
- domain: domain
- name: name
- comment: comment
- httpOnly: true
- secure: true
- value: value
- - path: path
- expires: expires
- domain: domain
- name: name
- comment: comment
- httpOnly: true
- secure: true
- value: value
- cache:
- afterRequest:
- expires: expires
- hitCount: 2
- lastAccess: lastAccess
- eTag: eTag
- comment: comment
- comment: comment
- beforeRequest:
- expires: expires
- hitCount: 2
- lastAccess: lastAccess
- eTag: eTag
- comment: comment
- _webSocketMessages:
- - data: data
- time: 7.058770351582356
- type: type
- opcode: 0.8851374739011653
- - data: data
- time: 7.058770351582356
- type: type
- opcode: 0.8851374739011653
- response:
- headers:
- - name: name
- comment: comment
- value: value
- - name: name
- comment: comment
- value: value
- httpVersion: httpVersion
- redirectURL: redirectURL
- statusText: statusText
- headersSize: 6
- bodySize: 1
- comment: comment
- cookies:
- - path: path
- expires: expires
- domain: domain
- name: name
- comment: comment
- httpOnly: true
- secure: true
- value: value
- - path: path
- expires: expires
- domain: domain
- name: name
- comment: comment
- httpOnly: true
- secure: true
- value: value
- content:
- _videoBufferedPercent: 0
- _videoDroppedFrames: 0
- mimeType: mimeType
- encoding: encoding
- _videoDecodedByteCount: 0
- _videoTotalFrames: 0
- size: 1
- _videoStallCount: 0
- _videoErrorCount: 0
- comment: comment
- text: text
- _videoAudioBytesDecoded: 0
- compression: 4
- _videoWaitingCount: 0
- status: 7
- serverIPAddress: serverIPAddress
- timings:
- receive: 0
- wait: 0
- blocked: 0
- dns: 0
- comment: comment
- send: 0
- ssl: 0
- connect: 0
- connection: connection
- comment: comment
- time: 0
- pageref: pageref
- properties:
- pageref:
- type: string
- startedDateTime:
- format: date-time
- type: string
- time:
- format: int64
- minimum: 0
- type: integer
- request:
- $ref: '#/components/schemas/HarEntry_request'
- response:
- $ref: '#/components/schemas/HarEntry_response'
- cache:
- $ref: '#/components/schemas/HarEntry_cache'
- timings:
- $ref: '#/components/schemas/HarEntry_timings'
- serverIPAddress:
- type: string
- _webSocketMessages:
- items:
- $ref: '#/components/schemas/WebSocketMessage'
- type: array
- connection:
- type: string
- comment:
- type: string
- required:
- - cache
- - request
- - response
- - startedDateTime
- - time
- - timings
- type: object
- CustomHarData:
- minProperties: 1
- type: object
- Page:
- additionalProperties: true
- example:
- startedDateTime: 2000-01-23T04:56:07.000+00:00
- pageTimings:
- _href: _href
- _ssl: 0
- _firstPaint: 0
- _cumulativeLayoutShift: -0.29385987
- _dns: 0
- _largestContentfulPaint:
- size: 0
- domPath: domPath
- startTime: 0
- tag: tag
- _firstInputDelay: -0.5854392
- _domInteractive: 0
- _timeToFirstByte: 0
- _firstContentfulPaint: 0
- onContentLoad: 0
- onLoad: 0
- comment: comment
- comment: comment
- id: id
- _verifications:
- - result: true
- name: name
- type: type
- - result: true
- name: name
- type: type
- title: title
- _counters:
- - name: name
- value: 0.8008281904610115
- - name: name
- value: 0.8008281904610115
- _errors:
- - name: name
- details: details
- - name: name
- details: details
- properties:
- startedDateTime:
- format: date-time
- type: string
- id:
- type: string
- title:
- type: string
- _verifications:
- default: []
- items:
- $ref: '#/components/schemas/VerifyResult'
- type: array
- _counters:
- default: []
- items:
- $ref: '#/components/schemas/Counter'
- type: array
- _errors:
- default: []
- items:
- $ref: '#/components/schemas/Error'
- type: array
- pageTimings:
- $ref: '#/components/schemas/PageTimings'
- comment:
- type: string
- required:
- - id
- - pageTimings
- - startedDateTime
- - title
- type: object
- Har_log_creator:
- example:
- name: name
- comment: comment
- version: version
- properties:
- name:
- type: string
- version:
- type: string
- comment:
- type: string
- required:
- - name
- - version
- type: object
- Har_log:
- example:
- creator:
- name: name
- comment: comment
- version: version
- entries:
- - startedDateTime: 2000-01-23T04:56:07.000+00:00
- request:
- headers:
- - name: name
- comment: comment
- value: value
- - name: name
- comment: comment
- value: value
- httpVersion: httpVersion
- method: method
- headersSize: 1
- bodySize: 6
- comment: comment
- queryString:
- - name: name
- comment: comment
- value: value
- - name: name
- comment: comment
- value: value
- postData:
- mimeType: mimeType
- text: text
- params:
- - fileName: fileName
- name: name
- comment: comment
- value: value
- contentType: contentType
- - fileName: fileName
- name: name
- comment: comment
- value: value
- contentType: contentType
- url: https://openapi-generator.tech
- cookies:
- - path: path
- expires: expires
- domain: domain
- name: name
- comment: comment
- httpOnly: true
- secure: true
- value: value
- - path: path
- expires: expires
- domain: domain
- name: name
- comment: comment
- httpOnly: true
- secure: true
- value: value
- cache:
- afterRequest:
- expires: expires
- hitCount: 2
- lastAccess: lastAccess
- eTag: eTag
- comment: comment
- comment: comment
- beforeRequest:
- expires: expires
- hitCount: 2
- lastAccess: lastAccess
- eTag: eTag
- comment: comment
- _webSocketMessages:
- - data: data
- time: 7.058770351582356
- type: type
- opcode: 0.8851374739011653
- - data: data
- time: 7.058770351582356
- type: type
- opcode: 0.8851374739011653
- response:
- headers:
- - name: name
- comment: comment
- value: value
- - name: name
- comment: comment
- value: value
- httpVersion: httpVersion
- redirectURL: redirectURL
- statusText: statusText
- headersSize: 6
- bodySize: 1
- comment: comment
- cookies:
- - path: path
- expires: expires
- domain: domain
- name: name
- comment: comment
- httpOnly: true
- secure: true
- value: value
- - path: path
- expires: expires
- domain: domain
- name: name
- comment: comment
- httpOnly: true
- secure: true
- value: value
- content:
- _videoBufferedPercent: 0
- _videoDroppedFrames: 0
- mimeType: mimeType
- encoding: encoding
- _videoDecodedByteCount: 0
- _videoTotalFrames: 0
- size: 1
- _videoStallCount: 0
- _videoErrorCount: 0
- comment: comment
- text: text
- _videoAudioBytesDecoded: 0
- compression: 4
- _videoWaitingCount: 0
- status: 7
- serverIPAddress: serverIPAddress
- timings:
- receive: 0
- wait: 0
- blocked: 0
- dns: 0
- comment: comment
- send: 0
- ssl: 0
- connect: 0
- connection: connection
- comment: comment
- time: 0
- pageref: pageref
- - startedDateTime: 2000-01-23T04:56:07.000+00:00
- request:
- headers:
- - name: name
- comment: comment
- value: value
- - name: name
- comment: comment
- value: value
- httpVersion: httpVersion
- method: method
- headersSize: 1
- bodySize: 6
- comment: comment
- queryString:
- - name: name
- comment: comment
- value: value
- - name: name
- comment: comment
- value: value
- postData:
- mimeType: mimeType
- text: text
- params:
- - fileName: fileName
- name: name
- comment: comment
- value: value
- contentType: contentType
- - fileName: fileName
- name: name
- comment: comment
- value: value
- contentType: contentType
- url: https://openapi-generator.tech
- cookies:
- - path: path
- expires: expires
- domain: domain
- name: name
- comment: comment
- httpOnly: true
- secure: true
- value: value
- - path: path
- expires: expires
- domain: domain
- name: name
- comment: comment
- httpOnly: true
- secure: true
- value: value
- cache:
- afterRequest:
- expires: expires
- hitCount: 2
- lastAccess: lastAccess
- eTag: eTag
- comment: comment
- comment: comment
- beforeRequest:
- expires: expires
- hitCount: 2
- lastAccess: lastAccess
- eTag: eTag
- comment: comment
- _webSocketMessages:
- - data: data
- time: 7.058770351582356
- type: type
- opcode: 0.8851374739011653
- - data: data
- time: 7.058770351582356
- type: type
- opcode: 0.8851374739011653
- response:
- headers:
- - name: name
- comment: comment
- value: value
- - name: name
- comment: comment
- value: value
- httpVersion: httpVersion
- redirectURL: redirectURL
- statusText: statusText
- headersSize: 6
- bodySize: 1
- comment: comment
- cookies:
- - path: path
- expires: expires
- domain: domain
- name: name
- comment: comment
- httpOnly: true
- secure: true
- value: value
- - path: path
- expires: expires
- domain: domain
- name: name
- comment: comment
- httpOnly: true
- secure: true
- value: value
- content:
- _videoBufferedPercent: 0
- _videoDroppedFrames: 0
- mimeType: mimeType
- encoding: encoding
- _videoDecodedByteCount: 0
- _videoTotalFrames: 0
- size: 1
- _videoStallCount: 0
- _videoErrorCount: 0
- comment: comment
- text: text
- _videoAudioBytesDecoded: 0
- compression: 4
- _videoWaitingCount: 0
- status: 7
- serverIPAddress: serverIPAddress
- timings:
- receive: 0
- wait: 0
- blocked: 0
- dns: 0
- comment: comment
- send: 0
- ssl: 0
- connect: 0
- connection: connection
- comment: comment
- time: 0
- pageref: pageref
- pages:
- - startedDateTime: 2000-01-23T04:56:07.000+00:00
- pageTimings:
- _href: _href
- _ssl: 0
- _firstPaint: 0
- _cumulativeLayoutShift: -0.29385987
- _dns: 0
- _largestContentfulPaint:
- size: 0
- domPath: domPath
- startTime: 0
- tag: tag
- _firstInputDelay: -0.5854392
- _domInteractive: 0
- _timeToFirstByte: 0
- _firstContentfulPaint: 0
- onContentLoad: 0
- onLoad: 0
- comment: comment
- comment: comment
- id: id
- _verifications:
- - result: true
- name: name
- type: type
- - result: true
- name: name
- type: type
- title: title
- _counters:
- - name: name
- value: 0.8008281904610115
- - name: name
- value: 0.8008281904610115
- _errors:
- - name: name
- details: details
- - name: name
- details: details
- - startedDateTime: 2000-01-23T04:56:07.000+00:00
- pageTimings:
- _href: _href
- _ssl: 0
- _firstPaint: 0
- _cumulativeLayoutShift: -0.29385987
- _dns: 0
- _largestContentfulPaint:
- size: 0
- domPath: domPath
- startTime: 0
- tag: tag
- _firstInputDelay: -0.5854392
- _domInteractive: 0
- _timeToFirstByte: 0
- _firstContentfulPaint: 0
- onContentLoad: 0
- onLoad: 0
- comment: comment
- comment: comment
- id: id
- _verifications:
- - result: true
- name: name
- type: type
- - result: true
- name: name
- type: type
- title: title
- _counters:
- - name: name
- value: 0.8008281904610115
- - name: name
- value: 0.8008281904610115
- _errors:
- - name: name
- details: details
- - name: name
- details: details
- browser:
- name: name
- comment: comment
- version: version
- comment: comment
- version: version
- externalDocs:
- description: HAR (HTTP Archive) Log Format
- url: http://www.softwareishard.com/blog/har-12-spec/
- properties:
- version:
- type: string
- creator:
- $ref: '#/components/schemas/Har_log_creator'
- browser:
- $ref: '#/components/schemas/Har_log_creator'
- pages:
- items:
- $ref: '#/components/schemas/Page'
- type: array
- entries:
- items:
- $ref: '#/components/schemas/HarEntry'
- type: array
- comment:
- type: string
- required:
- - creator
- - entries
- - pages
- - version
- type: object
- HarEntry_request_cookies_inner:
- example:
- path: path
- expires: expires
- domain: domain
- name: name
- comment: comment
- httpOnly: true
- secure: true
- value: value
- properties:
- name:
- type: string
- value:
- type: string
- path:
- type: string
- domain:
- type: string
- expires:
- type: string
- httpOnly:
- type: boolean
- secure:
- type: boolean
- comment:
- type: string
- required:
- - name
- - value
- type: object
- HarEntry_request_queryString_inner:
- example:
- name: name
- comment: comment
- value: value
- properties:
- name:
- type: string
- value:
- type: string
- comment:
- type: string
- required:
- - name
- - value
- type: object
- HarEntry_request_postData_params_inner:
- example:
- fileName: fileName
- name: name
- comment: comment
- value: value
- contentType: contentType
- properties:
- name:
- type: string
- value:
- type: string
- fileName:
- type: string
- contentType:
- type: string
- comment:
- type: string
- type: object
- HarEntry_request_postData:
- description: Posted data info.
- example:
- mimeType: mimeType
- text: text
- params:
- - fileName: fileName
- name: name
- comment: comment
- value: value
- contentType: contentType
- - fileName: fileName
- name: name
- comment: comment
- value: value
- contentType: contentType
- properties:
- mimeType:
- type: string
- text:
- type: string
- params:
- items:
- $ref: '#/components/schemas/HarEntry_request_postData_params_inner'
- type: array
- required:
- - mimeType
- HarEntry_request:
- additionalProperties: true
- example:
- headers:
- - name: name
- comment: comment
- value: value
- - name: name
- comment: comment
- value: value
- httpVersion: httpVersion
- method: method
- headersSize: 1
- bodySize: 6
- comment: comment
- queryString:
- - name: name
- comment: comment
- value: value
- - name: name
- comment: comment
- value: value
- postData:
- mimeType: mimeType
- text: text
- params:
- - fileName: fileName
- name: name
- comment: comment
- value: value
- contentType: contentType
- - fileName: fileName
- name: name
- comment: comment
- value: value
- contentType: contentType
- url: https://openapi-generator.tech
- cookies:
- - path: path
- expires: expires
- domain: domain
- name: name
- comment: comment
- httpOnly: true
- secure: true
- value: value
- - path: path
- expires: expires
- domain: domain
- name: name
- comment: comment
- httpOnly: true
- secure: true
- value: value
- properties:
- method:
- type: string
- url:
- format: uri
- type: string
- httpVersion:
- type: string
- cookies:
- items:
- $ref: '#/components/schemas/HarEntry_request_cookies_inner'
- type: array
- headers:
- items:
- $ref: '#/components/schemas/Header'
- type: array
- queryString:
- items:
- $ref: '#/components/schemas/HarEntry_request_queryString_inner'
- type: array
- postData:
- $ref: '#/components/schemas/HarEntry_request_postData'
- headersSize:
- type: integer
- bodySize:
- type: integer
- comment:
- type: string
- required:
- - bodySize
- - cookies
- - headers
- - headersSize
- - httpVersion
- - method
- - queryString
- - url
- type: object
- HarEntry_response_content:
- example:
- _videoBufferedPercent: 0
- _videoDroppedFrames: 0
- mimeType: mimeType
- encoding: encoding
- _videoDecodedByteCount: 0
- _videoTotalFrames: 0
- size: 1
- _videoStallCount: 0
- _videoErrorCount: 0
- comment: comment
- text: text
- _videoAudioBytesDecoded: 0
- compression: 4
- _videoWaitingCount: 0
- properties:
- size:
- type: integer
- compression:
- type: integer
- mimeType:
- type: string
- text:
- type: string
- encoding:
- type: string
- _videoBufferedPercent:
- default: -1
- format: int64
- minimum: -1
- type: integer
- _videoStallCount:
- default: -1
- format: int64
- minimum: -1
- type: integer
- _videoDecodedByteCount:
- default: -1
- format: int64
- minimum: -1
- type: integer
- _videoWaitingCount:
- default: -1
- format: int64
- minimum: -1
- type: integer
- _videoErrorCount:
- default: -1
- format: int64
- minimum: -1
- type: integer
- _videoDroppedFrames:
- default: -1
- format: int64
- minimum: -1
- type: integer
- _videoTotalFrames:
- default: -1
- format: int64
- minimum: -1
- type: integer
- _videoAudioBytesDecoded:
- default: -1
- format: int64
- minimum: -1
- type: integer
- comment:
- type: string
- required:
- - mimeType
- - size
- type: object
- HarEntry_response:
- additionalProperties: true
- example:
- headers:
- - name: name
- comment: comment
- value: value
- - name: name
- comment: comment
- value: value
- httpVersion: httpVersion
- redirectURL: redirectURL
- statusText: statusText
- headersSize: 6
- bodySize: 1
- comment: comment
- cookies:
- - path: path
- expires: expires
- domain: domain
- name: name
- comment: comment
- httpOnly: true
- secure: true
- value: value
- - path: path
- expires: expires
- domain: domain
- name: name
- comment: comment
- httpOnly: true
- secure: true
- value: value
- content:
- _videoBufferedPercent: 0
- _videoDroppedFrames: 0
- mimeType: mimeType
- encoding: encoding
- _videoDecodedByteCount: 0
- _videoTotalFrames: 0
- size: 1
- _videoStallCount: 0
- _videoErrorCount: 0
- comment: comment
- text: text
- _videoAudioBytesDecoded: 0
- compression: 4
- _videoWaitingCount: 0
- status: 7
- properties:
- status:
- type: integer
- statusText:
- type: string
- httpVersion:
- type: string
- cookies:
- items:
- $ref: '#/components/schemas/HarEntry_request_cookies_inner'
- type: array
- headers:
- items:
- $ref: '#/components/schemas/Header'
- type: array
- content:
- $ref: '#/components/schemas/HarEntry_response_content'
- redirectURL:
- type: string
- headersSize:
- type: integer
- bodySize:
- type: integer
- comment:
- type: string
- required:
- - bodySize
- - content
- - cookies
- - headers
- - headersSize
- - httpVersion
- - redirectURL
- - status
- - statusText
- type: object
- HarEntry_cache_beforeRequest:
- example:
- expires: expires
- hitCount: 2
- lastAccess: lastAccess
- eTag: eTag
- comment: comment
- nullable: true
- properties:
- expires:
- type: string
- lastAccess:
- type: string
- eTag:
- type: string
- hitCount:
- type: integer
- comment:
- type: string
- required:
- - eTag
- - hitCount
- - lastAccess
- type: object
- HarEntry_cache:
- example:
- afterRequest:
- expires: expires
- hitCount: 2
- lastAccess: lastAccess
- eTag: eTag
- comment: comment
- comment: comment
- beforeRequest:
- expires: expires
- hitCount: 2
- lastAccess: lastAccess
- eTag: eTag
- comment: comment
- properties:
- beforeRequest:
- $ref: '#/components/schemas/HarEntry_cache_beforeRequest'
- afterRequest:
- $ref: '#/components/schemas/HarEntry_cache_beforeRequest'
- comment:
- type: string
- HarEntry_timings:
- example:
- receive: 0
- wait: 0
- blocked: 0
- dns: 0
- comment: comment
- send: 0
- ssl: 0
- connect: 0
- properties:
- dns:
- default: -1
- format: int64
- minimum: -1
- type: integer
- connect:
- default: -1
- format: int64
- minimum: -1
- type: integer
- blocked:
- default: -1
- format: int64
- minimum: -1
- type: integer
- send:
- default: -1
- format: int64
- minimum: -1
- type: integer
- wait:
- default: -1
- format: int64
- minimum: -1
- type: integer
- receive:
- default: -1
- format: int64
- minimum: -1
- type: integer
- ssl:
- default: -1
- format: int64
- minimum: -1
- type: integer
- comment:
- type: string
- required:
- - blocked
- - connect
- - dns
- - receive
- - send
- - ssl
- - wait
- type: object
-
diff --git a/clients/csharp/appveyor.yml b/clients/csharp/appveyor.yml
index a791cd53e9..ac2886e0b4 100644
--- a/clients/csharp/appveyor.yml
+++ b/clients/csharp/appveyor.yml
@@ -6,4 +6,4 @@ build_script:
- dotnet build -c Release
- dotnet test -c Release
after_build:
-- dotnet pack .\src\BrowserUp.Mitmproxy.Client\BrowserUp.Mitmproxy.Client.csproj -o ../../output -c Release --no-build
+- dotnet pack .\src\BrowserUpMitmProxyClient\BrowserUpMitmProxyClient.csproj -o ../../output -c Release --no-build
diff --git a/clients/csharp/docs/Action.md b/clients/csharp/docs/Action.md
index aca9839139..6a4918c10e 100644
--- a/clients/csharp/docs/Action.md
+++ b/clients/csharp/docs/Action.md
@@ -1,4 +1,4 @@
-# BrowserUp.Mitmproxy.Client.Model.Action
+# BrowserUpMitmProxyClient.Model.Action
## Properties
diff --git a/clients/csharp/docs/BrowserUpProxyApi.md b/clients/csharp/docs/BrowserUpProxyApi.md
index f3fee4cf31..eb5a562c3f 100644
--- a/clients/csharp/docs/BrowserUpProxyApi.md
+++ b/clients/csharp/docs/BrowserUpProxyApi.md
@@ -1,11 +1,11 @@
-# BrowserUp.Mitmproxy.Client.Api.BrowserUpProxyApi
+# BrowserUpMitmProxyClient.Api.BrowserUpProxyApi
All URIs are relative to *http://localhost:48088*
| Method | HTTP request | Description |
|--------|--------------|-------------|
-| [**AddCounter**](BrowserUpProxyApi.md#addcounter) | **POST** /har/counters | |
| [**AddError**](BrowserUpProxyApi.md#adderror) | **POST** /har/errors | |
+| [**AddMetric**](BrowserUpProxyApi.md#addmetric) | **POST** /har/metrics | |
| [**GetHarLog**](BrowserUpProxyApi.md#getharlog) | **GET** /har | |
| [**Healthcheck**](BrowserUpProxyApi.md#healthcheck) | **GET** /healthcheck | |
| [**NewPage**](BrowserUpProxyApi.md#newpage) | **POST** /har/page | |
@@ -15,40 +15,40 @@ All URIs are relative to *http://localhost:48088*
| [**VerifySLA**](BrowserUpProxyApi.md#verifysla) | **POST** /verify/sla/{time}/{name} | |
| [**VerifySize**](BrowserUpProxyApi.md#verifysize) | **POST** /verify/size/{size}/{name} | |
-
-# **AddCounter**
-> void AddCounter (Counter counter)
+
+# **AddError**
+> void AddError (Error error)
-Add Custom Counter to the captured traffic har
+Add Custom Error to the captured traffic har
### Example
```csharp
using System.Collections.Generic;
using System.Diagnostics;
-using BrowserUp.Mitmproxy.Client.Api;
-using BrowserUp.Mitmproxy.Client.Client;
-using BrowserUp.Mitmproxy.Client.Model;
+using BrowserUpMitmProxyClient.Api;
+using BrowserUpMitmProxyClient.Client;
+using BrowserUpMitmProxyClient.Model;
namespace Example
{
- public class AddCounterExample
+ public class AddErrorExample
{
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "http://localhost:48088";
var apiInstance = new BrowserUpProxyApi(config);
- var counter = new Counter(); // Counter | Receives a new counter to add. The counter is stored, under the hood, in an array in the har under the _counters key
+ var error = new Error(); // Error | Receives an error to track. Internally, the error is stored in an array in the har under the _errors key
try
{
- apiInstance.AddCounter(counter);
+ apiInstance.AddError(error);
}
catch (ApiException e)
{
- Debug.Print("Exception when calling BrowserUpProxyApi.AddCounter: " + e.Message);
+ Debug.Print("Exception when calling BrowserUpProxyApi.AddError: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
@@ -57,17 +57,17 @@ namespace Example
}
```
-#### Using the AddCounterWithHttpInfo variant
+#### Using the AddErrorWithHttpInfo variant
This returns an ApiResponse object which contains the response data, status code and headers.
```csharp
try
{
- apiInstance.AddCounterWithHttpInfo(counter);
+ apiInstance.AddErrorWithHttpInfo(error);
}
catch (ApiException e)
{
- Debug.Print("Exception when calling BrowserUpProxyApi.AddCounterWithHttpInfo: " + e.Message);
+ Debug.Print("Exception when calling BrowserUpProxyApi.AddErrorWithHttpInfo: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
@@ -77,7 +77,7 @@ catch (ApiException e)
| Name | Type | Description | Notes |
|------|------|-------------|-------|
-| **counter** | [**Counter**](Counter.md) | Receives a new counter to add. The counter is stored, under the hood, in an array in the har under the _counters key | |
+| **error** | [**Error**](Error.md) | Receives an error to track. Internally, the error is stored in an array in the har under the _errors key | |
### Return type
@@ -96,45 +96,45 @@ No authorization required
### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
-| **204** | The counter was added. | - |
-| **422** | The counter was invalid. | - |
+| **204** | The Error was added. | - |
+| **422** | The Error was invalid. | - |
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
-
-# **AddError**
-> void AddError (Error error)
+
+# **AddMetric**
+> void AddMetric (Metric metric)
-Add Custom Error to the captured traffic har
+Add Custom Metric to the captured traffic har
### Example
```csharp
using System.Collections.Generic;
using System.Diagnostics;
-using BrowserUp.Mitmproxy.Client.Api;
-using BrowserUp.Mitmproxy.Client.Client;
-using BrowserUp.Mitmproxy.Client.Model;
+using BrowserUpMitmProxyClient.Api;
+using BrowserUpMitmProxyClient.Client;
+using BrowserUpMitmProxyClient.Model;
namespace Example
{
- public class AddErrorExample
+ public class AddMetricExample
{
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "http://localhost:48088";
var apiInstance = new BrowserUpProxyApi(config);
- var error = new Error(); // Error | Receives an error to track. Internally, the error is stored in an array in the har under the _errors key
+ var metric = new Metric(); // Metric | Receives a new metric to add. The metric is stored, under the hood, in an array in the har under the _metrics key
try
{
- apiInstance.AddError(error);
+ apiInstance.AddMetric(metric);
}
catch (ApiException e)
{
- Debug.Print("Exception when calling BrowserUpProxyApi.AddError: " + e.Message);
+ Debug.Print("Exception when calling BrowserUpProxyApi.AddMetric: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
@@ -143,17 +143,17 @@ namespace Example
}
```
-#### Using the AddErrorWithHttpInfo variant
+#### Using the AddMetricWithHttpInfo variant
This returns an ApiResponse object which contains the response data, status code and headers.
```csharp
try
{
- apiInstance.AddErrorWithHttpInfo(error);
+ apiInstance.AddMetricWithHttpInfo(metric);
}
catch (ApiException e)
{
- Debug.Print("Exception when calling BrowserUpProxyApi.AddErrorWithHttpInfo: " + e.Message);
+ Debug.Print("Exception when calling BrowserUpProxyApi.AddMetricWithHttpInfo: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
@@ -163,7 +163,7 @@ catch (ApiException e)
| Name | Type | Description | Notes |
|------|------|-------------|-------|
-| **error** | [**Error**](Error.md) | Receives an error to track. Internally, the error is stored in an array in the har under the _errors key | |
+| **metric** | [**Metric**](Metric.md) | Receives a new metric to add. The metric is stored, under the hood, in an array in the har under the _metrics key | |
### Return type
@@ -182,12 +182,12 @@ No authorization required
### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
-| **204** | The Error was added. | - |
-| **422** | The Error was invalid. | - |
+| **204** | The metric was added. | - |
+| **422** | The metric was invalid. | - |
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
-
+
# **GetHarLog**
> Har GetHarLog ()
@@ -199,9 +199,9 @@ Get the current HAR.
```csharp
using System.Collections.Generic;
using System.Diagnostics;
-using BrowserUp.Mitmproxy.Client.Api;
-using BrowserUp.Mitmproxy.Client.Client;
-using BrowserUp.Mitmproxy.Client.Model;
+using BrowserUpMitmProxyClient.Api;
+using BrowserUpMitmProxyClient.Client;
+using BrowserUpMitmProxyClient.Model;
namespace Example
{
@@ -271,7 +271,7 @@ No authorization required
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
-
+
# **Healthcheck**
> void Healthcheck ()
@@ -283,9 +283,9 @@ Get the healthcheck
```csharp
using System.Collections.Generic;
using System.Diagnostics;
-using BrowserUp.Mitmproxy.Client.Api;
-using BrowserUp.Mitmproxy.Client.Client;
-using BrowserUp.Mitmproxy.Client.Model;
+using BrowserUpMitmProxyClient.Api;
+using BrowserUpMitmProxyClient.Client;
+using BrowserUpMitmProxyClient.Model;
namespace Example
{
@@ -351,7 +351,7 @@ No authorization required
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
-
+
# **NewPage**
> Har NewPage (string title)
@@ -363,9 +363,9 @@ Starts a fresh HAR Page (Step) in the current active HAR to group requests.
```csharp
using System.Collections.Generic;
using System.Diagnostics;
-using BrowserUp.Mitmproxy.Client.Api;
-using BrowserUp.Mitmproxy.Client.Client;
-using BrowserUp.Mitmproxy.Client.Model;
+using BrowserUpMitmProxyClient.Api;
+using BrowserUpMitmProxyClient.Client;
+using BrowserUpMitmProxyClient.Model;
namespace Example
{
@@ -440,7 +440,7 @@ No authorization required
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
-
+
# **ResetHarLog**
> Har ResetHarLog ()
@@ -452,9 +452,9 @@ Starts a fresh HAR capture session.
```csharp
using System.Collections.Generic;
using System.Diagnostics;
-using BrowserUp.Mitmproxy.Client.Api;
-using BrowserUp.Mitmproxy.Client.Client;
-using BrowserUp.Mitmproxy.Client.Model;
+using BrowserUpMitmProxyClient.Api;
+using BrowserUpMitmProxyClient.Client;
+using BrowserUpMitmProxyClient.Model;
namespace Example
{
@@ -524,7 +524,7 @@ No authorization required
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
-
+
# **VerifyNotPresent**
> VerifyResult VerifyNotPresent (string name, MatchCriteria matchCriteria)
@@ -536,9 +536,9 @@ Verify no matching items are present in the captured traffic
```csharp
using System.Collections.Generic;
using System.Diagnostics;
-using BrowserUp.Mitmproxy.Client.Api;
-using BrowserUp.Mitmproxy.Client.Client;
-using BrowserUp.Mitmproxy.Client.Model;
+using BrowserUpMitmProxyClient.Api;
+using BrowserUpMitmProxyClient.Client;
+using BrowserUpMitmProxyClient.Model;
namespace Example
{
@@ -616,7 +616,7 @@ No authorization required
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
-
+
# **VerifyPresent**
> VerifyResult VerifyPresent (string name, MatchCriteria matchCriteria)
@@ -628,9 +628,9 @@ Verify at least one matching item is present in the captured traffic
```csharp
using System.Collections.Generic;
using System.Diagnostics;
-using BrowserUp.Mitmproxy.Client.Api;
-using BrowserUp.Mitmproxy.Client.Client;
-using BrowserUp.Mitmproxy.Client.Model;
+using BrowserUpMitmProxyClient.Api;
+using BrowserUpMitmProxyClient.Client;
+using BrowserUpMitmProxyClient.Model;
namespace Example
{
@@ -708,7 +708,7 @@ No authorization required
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
-
+
# **VerifySLA**
> VerifyResult VerifySLA (int time, string name, MatchCriteria matchCriteria)
@@ -720,9 +720,9 @@ Verify each traffic item matching the criteria meets is below SLA time
```csharp
using System.Collections.Generic;
using System.Diagnostics;
-using BrowserUp.Mitmproxy.Client.Api;
-using BrowserUp.Mitmproxy.Client.Client;
-using BrowserUp.Mitmproxy.Client.Model;
+using BrowserUpMitmProxyClient.Api;
+using BrowserUpMitmProxyClient.Client;
+using BrowserUpMitmProxyClient.Model;
namespace Example
{
@@ -802,7 +802,7 @@ No authorization required
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
-
+
# **VerifySize**
> VerifyResult VerifySize (int size, string name, MatchCriteria matchCriteria)
@@ -814,9 +814,9 @@ Verify matching items in the captured traffic meet the size criteria
```csharp
using System.Collections.Generic;
using System.Diagnostics;
-using BrowserUp.Mitmproxy.Client.Api;
-using BrowserUp.Mitmproxy.Client.Client;
-using BrowserUp.Mitmproxy.Client.Model;
+using BrowserUpMitmProxyClient.Api;
+using BrowserUpMitmProxyClient.Client;
+using BrowserUpMitmProxyClient.Model;
namespace Example
{
diff --git a/clients/csharp/docs/Error.md b/clients/csharp/docs/Error.md
index 3fe7acdc78..233292cb71 100644
--- a/clients/csharp/docs/Error.md
+++ b/clients/csharp/docs/Error.md
@@ -1,4 +1,4 @@
-# BrowserUp.Mitmproxy.Client.Model.Error
+# BrowserUpMitmProxyClient.Model.Error
## Properties
diff --git a/clients/csharp/docs/Har.md b/clients/csharp/docs/Har.md
index 5288923e6e..937347ff03 100644
--- a/clients/csharp/docs/Har.md
+++ b/clients/csharp/docs/Har.md
@@ -1,4 +1,4 @@
-# BrowserUp.Mitmproxy.Client.Model.Har
+# BrowserUpMitmProxyClient.Model.Har
## Properties
diff --git a/clients/csharp/docs/HarEntry.md b/clients/csharp/docs/HarEntry.md
index 8e52cfe25c..c82d4b3a11 100644
--- a/clients/csharp/docs/HarEntry.md
+++ b/clients/csharp/docs/HarEntry.md
@@ -1,4 +1,4 @@
-# BrowserUp.Mitmproxy.Client.Model.HarEntry
+# BrowserUpMitmProxyClient.Model.HarEntry
## Properties
diff --git a/clients/csharp/docs/HarEntryCache.md b/clients/csharp/docs/HarEntryCache.md
index cd05520213..9c5f791723 100644
--- a/clients/csharp/docs/HarEntryCache.md
+++ b/clients/csharp/docs/HarEntryCache.md
@@ -1,4 +1,4 @@
-# BrowserUp.Mitmproxy.Client.Model.HarEntryCache
+# BrowserUpMitmProxyClient.Model.HarEntryCache
## Properties
diff --git a/clients/csharp/docs/HarEntryCacheBeforeRequest.md b/clients/csharp/docs/HarEntryCacheBeforeRequest.md
index 40460c7093..e82a792085 100644
--- a/clients/csharp/docs/HarEntryCacheBeforeRequest.md
+++ b/clients/csharp/docs/HarEntryCacheBeforeRequest.md
@@ -1,4 +1,4 @@
-# BrowserUp.Mitmproxy.Client.Model.HarEntryCacheBeforeRequest
+# BrowserUpMitmProxyClient.Model.HarEntryCacheBeforeRequest
## Properties
diff --git a/clients/csharp/docs/HarEntryCacheBeforeRequestOneOf.md b/clients/csharp/docs/HarEntryCacheBeforeRequestOneOf.md
index ae8bab15a5..327c082ec9 100644
--- a/clients/csharp/docs/HarEntryCacheBeforeRequestOneOf.md
+++ b/clients/csharp/docs/HarEntryCacheBeforeRequestOneOf.md
@@ -1,4 +1,4 @@
-# BrowserUp.Mitmproxy.Client.Model.HarEntryCacheBeforeRequestOneOf
+# BrowserUpMitmProxyClient.Model.HarEntryCacheBeforeRequestOneOf
## Properties
diff --git a/clients/csharp/docs/HarEntryRequest.md b/clients/csharp/docs/HarEntryRequest.md
index b3c4e4c07e..c8652581ea 100644
--- a/clients/csharp/docs/HarEntryRequest.md
+++ b/clients/csharp/docs/HarEntryRequest.md
@@ -1,4 +1,4 @@
-# BrowserUp.Mitmproxy.Client.Model.HarEntryRequest
+# BrowserUpMitmProxyClient.Model.HarEntryRequest
## Properties
diff --git a/clients/csharp/docs/HarEntryRequestCookiesInner.md b/clients/csharp/docs/HarEntryRequestCookiesInner.md
index 7f83f86569..dad007ba56 100644
--- a/clients/csharp/docs/HarEntryRequestCookiesInner.md
+++ b/clients/csharp/docs/HarEntryRequestCookiesInner.md
@@ -1,4 +1,4 @@
-# BrowserUp.Mitmproxy.Client.Model.HarEntryRequestCookiesInner
+# BrowserUpMitmProxyClient.Model.HarEntryRequestCookiesInner
## Properties
diff --git a/clients/csharp/docs/HarEntryRequestPostData.md b/clients/csharp/docs/HarEntryRequestPostData.md
index 53d3e4fa74..01c50e07ec 100644
--- a/clients/csharp/docs/HarEntryRequestPostData.md
+++ b/clients/csharp/docs/HarEntryRequestPostData.md
@@ -1,4 +1,4 @@
-# BrowserUp.Mitmproxy.Client.Model.HarEntryRequestPostData
+# BrowserUpMitmProxyClient.Model.HarEntryRequestPostData
Posted data info.
## Properties
@@ -7,7 +7,7 @@ Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**MimeType** | **string** | |
**Text** | **string** | | [optional]
-**VarParams** | [**List<HarEntryRequestPostDataParamsInner>**](HarEntryRequestPostDataParamsInner.md) | | [optional]
+**Params** | [**List<HarEntryRequestPostDataParamsInner>**](HarEntryRequestPostDataParamsInner.md) | | [optional]
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
diff --git a/clients/csharp/docs/HarEntryRequestPostDataParamsInner.md b/clients/csharp/docs/HarEntryRequestPostDataParamsInner.md
index a35fb93d68..c8af0de1ad 100644
--- a/clients/csharp/docs/HarEntryRequestPostDataParamsInner.md
+++ b/clients/csharp/docs/HarEntryRequestPostDataParamsInner.md
@@ -1,4 +1,4 @@
-# BrowserUp.Mitmproxy.Client.Model.HarEntryRequestPostDataParamsInner
+# BrowserUpMitmProxyClient.Model.HarEntryRequestPostDataParamsInner
## Properties
diff --git a/clients/csharp/docs/HarEntryRequestQueryStringInner.md b/clients/csharp/docs/HarEntryRequestQueryStringInner.md
index 25b112e861..19c1ceecdb 100644
--- a/clients/csharp/docs/HarEntryRequestQueryStringInner.md
+++ b/clients/csharp/docs/HarEntryRequestQueryStringInner.md
@@ -1,4 +1,4 @@
-# BrowserUp.Mitmproxy.Client.Model.HarEntryRequestQueryStringInner
+# BrowserUpMitmProxyClient.Model.HarEntryRequestQueryStringInner
## Properties
diff --git a/clients/csharp/docs/HarEntryResponse.md b/clients/csharp/docs/HarEntryResponse.md
index 64d79c8bc3..620119003a 100644
--- a/clients/csharp/docs/HarEntryResponse.md
+++ b/clients/csharp/docs/HarEntryResponse.md
@@ -1,4 +1,4 @@
-# BrowserUp.Mitmproxy.Client.Model.HarEntryResponse
+# BrowserUpMitmProxyClient.Model.HarEntryResponse
## Properties
diff --git a/clients/csharp/docs/HarEntryResponseContent.md b/clients/csharp/docs/HarEntryResponseContent.md
index 59df2fbfd4..06ecc72427 100644
--- a/clients/csharp/docs/HarEntryResponseContent.md
+++ b/clients/csharp/docs/HarEntryResponseContent.md
@@ -1,4 +1,4 @@
-# BrowserUp.Mitmproxy.Client.Model.HarEntryResponseContent
+# BrowserUpMitmProxyClient.Model.HarEntryResponseContent
## Properties
diff --git a/clients/csharp/docs/HarEntryTimings.md b/clients/csharp/docs/HarEntryTimings.md
index 6a08f174e8..6e7e376f9e 100644
--- a/clients/csharp/docs/HarEntryTimings.md
+++ b/clients/csharp/docs/HarEntryTimings.md
@@ -1,4 +1,4 @@
-# BrowserUp.Mitmproxy.Client.Model.HarEntryTimings
+# BrowserUpMitmProxyClient.Model.HarEntryTimings
## Properties
diff --git a/clients/csharp/docs/HarLog.md b/clients/csharp/docs/HarLog.md
index 75c68d1169..99698d97f2 100644
--- a/clients/csharp/docs/HarLog.md
+++ b/clients/csharp/docs/HarLog.md
@@ -1,10 +1,10 @@
-# BrowserUp.Mitmproxy.Client.Model.HarLog
+# BrowserUpMitmProxyClient.Model.HarLog
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**VarVersion** | **string** | |
+**_Version** | **string** | |
**Creator** | [**HarLogCreator**](HarLogCreator.md) | |
**Browser** | [**HarLogCreator**](HarLogCreator.md) | | [optional]
**Pages** | [**List<Page>**](Page.md) | |
diff --git a/clients/csharp/docs/HarLogCreator.md b/clients/csharp/docs/HarLogCreator.md
index 3777ff8f15..f543a199dc 100644
--- a/clients/csharp/docs/HarLogCreator.md
+++ b/clients/csharp/docs/HarLogCreator.md
@@ -1,11 +1,11 @@
-# BrowserUp.Mitmproxy.Client.Model.HarLogCreator
+# BrowserUpMitmProxyClient.Model.HarLogCreator
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**Name** | **string** | |
-**VarVersion** | **string** | |
+**_Version** | **string** | |
**Comment** | **string** | | [optional]
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
diff --git a/clients/csharp/docs/Header.md b/clients/csharp/docs/Header.md
index 7bfe778b7b..28f7024168 100644
--- a/clients/csharp/docs/Header.md
+++ b/clients/csharp/docs/Header.md
@@ -1,4 +1,4 @@
-# BrowserUp.Mitmproxy.Client.Model.Header
+# BrowserUpMitmProxyClient.Model.Header
## Properties
diff --git a/clients/csharp/docs/LargestContentfulPaint.md b/clients/csharp/docs/LargestContentfulPaint.md
index a15c7d73b9..f79c97251e 100644
--- a/clients/csharp/docs/LargestContentfulPaint.md
+++ b/clients/csharp/docs/LargestContentfulPaint.md
@@ -1,4 +1,4 @@
-# BrowserUp.Mitmproxy.Client.Model.LargestContentfulPaint
+# BrowserUpMitmProxyClient.Model.LargestContentfulPaint
## Properties
diff --git a/clients/csharp/docs/MatchCriteria.md b/clients/csharp/docs/MatchCriteria.md
index b5fdc7e970..baa7157432 100644
--- a/clients/csharp/docs/MatchCriteria.md
+++ b/clients/csharp/docs/MatchCriteria.md
@@ -1,4 +1,4 @@
-# BrowserUp.Mitmproxy.Client.Model.MatchCriteria
+# BrowserUpMitmProxyClient.Model.MatchCriteria
A set of criteria for filtering HTTP Requests and Responses. Criteria are AND based, and use python regular expressions for string comparison
## Properties
@@ -11,10 +11,10 @@ Name | Type | Description | Notes
**Content** | **string** | Body content regexp content to match | [optional]
**ContentType** | **string** | Content type | [optional]
**WebsocketMessage** | **string** | Websocket message text to match | [optional]
-**RequestHeader** | [**NameValuePair**](NameValuePair.md) | | [optional]
-**RequestCookie** | [**NameValuePair**](NameValuePair.md) | | [optional]
-**ResponseHeader** | [**NameValuePair**](NameValuePair.md) | | [optional]
-**ResponseCookie** | [**NameValuePair**](NameValuePair.md) | | [optional]
+**RequestHeader** | [**MatchCriteriaRequestHeader**](MatchCriteriaRequestHeader.md) | | [optional]
+**RequestCookie** | [**MatchCriteriaRequestHeader**](MatchCriteriaRequestHeader.md) | | [optional]
+**ResponseHeader** | [**MatchCriteriaRequestHeader**](MatchCriteriaRequestHeader.md) | | [optional]
+**ResponseCookie** | [**MatchCriteriaRequestHeader**](MatchCriteriaRequestHeader.md) | | [optional]
**JsonValid** | **bool** | Is valid JSON | [optional]
**JsonPath** | **string** | Has JSON path | [optional]
**JsonSchema** | **string** | Validates against passed JSON schema | [optional]
diff --git a/clients/csharp/docs/MatchCriteriaRequestHeader.md b/clients/csharp/docs/MatchCriteriaRequestHeader.md
index 30839ed5b1..8b26bc9191 100644
--- a/clients/csharp/docs/MatchCriteriaRequestHeader.md
+++ b/clients/csharp/docs/MatchCriteriaRequestHeader.md
@@ -1,4 +1,4 @@
-# BrowserUp.Mitmproxy.Client.Model.MatchCriteriaRequestHeader
+# BrowserUpMitmProxyClient.Model.MatchCriteriaRequestHeader
## Properties
diff --git a/clients/csharp/docs/Counter.md b/clients/csharp/docs/Metric.md
similarity index 57%
rename from clients/csharp/docs/Counter.md
rename to clients/csharp/docs/Metric.md
index c70696d300..59f9266dff 100644
--- a/clients/csharp/docs/Counter.md
+++ b/clients/csharp/docs/Metric.md
@@ -1,11 +1,11 @@
-# BrowserUp.Mitmproxy.Client.Model.Counter
+# BrowserUpMitmProxyClient.Model.Metric
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**Name** | **string** | Name of Custom Counter to add to the page under _counters | [optional]
-**Value** | **double** | Value for the counter | [optional]
+**Name** | **string** | Name of Custom Metric to add to the page under _metrics | [optional]
+**Value** | **double** | Value for the metric | [optional]
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
diff --git a/clients/csharp/docs/NameValuePair.md b/clients/csharp/docs/NameValuePair.md
index c45a152287..cfbe1b6fa3 100644
--- a/clients/csharp/docs/NameValuePair.md
+++ b/clients/csharp/docs/NameValuePair.md
@@ -1,4 +1,4 @@
-# BrowserUp.Mitmproxy.Client.Model.NameValuePair
+# BrowserUpMitmProxyClient.Model.NameValuePair
## Properties
diff --git a/clients/csharp/docs/Page.md b/clients/csharp/docs/Page.md
index dab58bbeeb..e883302e97 100644
--- a/clients/csharp/docs/Page.md
+++ b/clients/csharp/docs/Page.md
@@ -1,4 +1,4 @@
-# BrowserUp.Mitmproxy.Client.Model.Page
+# BrowserUpMitmProxyClient.Model.Page
## Properties
@@ -8,7 +8,7 @@ Name | Type | Description | Notes
**Id** | **string** | |
**Title** | **string** | |
**Verifications** | [**List<VerifyResult>**](VerifyResult.md) | | [optional]
-**Counters** | [**List<Counter>**](Counter.md) | | [optional]
+**Metrics** | [**List<Metric>**](Metric.md) | | [optional]
**Errors** | [**List<Error>**](Error.md) | | [optional]
**PageTimings** | [**PageTimings**](PageTimings.md) | |
**Comment** | **string** | | [optional]
diff --git a/clients/csharp/docs/PageTiming.md b/clients/csharp/docs/PageTiming.md
index 1859d4ed01..2b5a0b2d25 100644
--- a/clients/csharp/docs/PageTiming.md
+++ b/clients/csharp/docs/PageTiming.md
@@ -1,4 +1,4 @@
-# BrowserUp.Mitmproxy.Client.Model.PageTiming
+# BrowserUpMitmProxyClient.Model.PageTiming
## Properties
diff --git a/clients/csharp/docs/PageTimings.md b/clients/csharp/docs/PageTimings.md
index ed9d16e773..f41b9119cf 100644
--- a/clients/csharp/docs/PageTimings.md
+++ b/clients/csharp/docs/PageTimings.md
@@ -1,4 +1,4 @@
-# BrowserUp.Mitmproxy.Client.Model.PageTimings
+# BrowserUpMitmProxyClient.Model.PageTimings
## Properties
diff --git a/clients/csharp/docs/VerifyResult.md b/clients/csharp/docs/VerifyResult.md
index 8159839b27..95af4c4c6d 100644
--- a/clients/csharp/docs/VerifyResult.md
+++ b/clients/csharp/docs/VerifyResult.md
@@ -1,4 +1,4 @@
-# BrowserUp.Mitmproxy.Client.Model.VerifyResult
+# BrowserUpMitmProxyClient.Model.VerifyResult
## Properties
diff --git a/clients/csharp/docs/WebSocketMessage.md b/clients/csharp/docs/WebSocketMessage.md
index 0ed2032f46..fe0fa5bbcc 100644
--- a/clients/csharp/docs/WebSocketMessage.md
+++ b/clients/csharp/docs/WebSocketMessage.md
@@ -1,4 +1,4 @@
-# BrowserUp.Mitmproxy.Client.Model.WebSocketMessage
+# BrowserUpMitmProxyClient.Model.WebSocketMessage
## Properties
diff --git a/clients/csharp/src/BrowserUp.Mitmproxy.Client/Model/HarEntryCacheBeforeRequest.cs b/clients/csharp/src/BrowserUp.Mitmproxy.Client/Model/HarEntryCacheBeforeRequest.cs
deleted file mode 100644
index 422d731e86..0000000000
--- a/clients/csharp/src/BrowserUp.Mitmproxy.Client/Model/HarEntryCacheBeforeRequest.cs
+++ /dev/null
@@ -1,211 +0,0 @@
-/*
- * BrowserUp MitmProxy
- *
- * ___ This is the REST API for controlling the BrowserUp MitmProxy. The BrowserUp MitmProxy is a swiss army knife for automated testing that captures HTTP traffic in HAR files. It is also useful for Selenium/Cypress tests. ___
- *
- * The version of the OpenAPI document: 1.0.0
- * Generated by: https://github.com/openapitools/openapi-generator.git
- */
-
-
-using System;
-using System.Collections;
-using System.Collections.Generic;
-using System.Collections.ObjectModel;
-using System.Linq;
-using System.IO;
-using System.Runtime.Serialization;
-using System.Text;
-using System.Text.RegularExpressions;
-using Newtonsoft.Json;
-using Newtonsoft.Json.Converters;
-using Newtonsoft.Json.Linq;
-using System.ComponentModel.DataAnnotations;
-using OpenAPIDateConverter = BrowserUp.Mitmproxy.Client.Client.OpenAPIDateConverter;
-
-namespace BrowserUp.Mitmproxy.Client.Model
-{
- ///
- /// HarEntryCacheBeforeRequest
- ///
- [DataContract(Name = "HarEntry_cache_beforeRequest")]
- public partial class HarEntryCacheBeforeRequest : IEquatable, IValidatableObject
- {
- ///
- /// Initializes a new instance of the class.
- ///
- [JsonConstructorAttribute]
- protected HarEntryCacheBeforeRequest() { }
- ///
- /// Initializes a new instance of the class.
- ///
- /// expires.
- /// lastAccess (required).
- /// eTag (required).
- /// hitCount (required).
- /// comment.
- public HarEntryCacheBeforeRequest(string expires = default(string), string lastAccess = default(string), string eTag = default(string), int hitCount = default(int), string comment = default(string))
- {
- // to ensure "lastAccess" is required (not null)
- if (lastAccess == null)
- {
- throw new ArgumentNullException("lastAccess is a required property for HarEntryCacheBeforeRequest and cannot be null");
- }
- this.LastAccess = lastAccess;
- // to ensure "eTag" is required (not null)
- if (eTag == null)
- {
- throw new ArgumentNullException("eTag is a required property for HarEntryCacheBeforeRequest and cannot be null");
- }
- this.ETag = eTag;
- this.HitCount = hitCount;
- this.Expires = expires;
- this.Comment = comment;
- }
-
- ///
- /// Gets or Sets Expires
- ///
- [DataMember(Name = "expires", EmitDefaultValue = false)]
- public string Expires { get; set; }
-
- ///
- /// Gets or Sets LastAccess
- ///
- [DataMember(Name = "lastAccess", IsRequired = true, EmitDefaultValue = true)]
- public string LastAccess { get; set; }
-
- ///
- /// Gets or Sets ETag
- ///
- [DataMember(Name = "eTag", IsRequired = true, EmitDefaultValue = true)]
- public string ETag { get; set; }
-
- ///
- /// Gets or Sets HitCount
- ///
- [DataMember(Name = "hitCount", IsRequired = true, EmitDefaultValue = true)]
- public int HitCount { get; set; }
-
- ///
- /// Gets or Sets Comment
- ///
- [DataMember(Name = "comment", EmitDefaultValue = false)]
- public string Comment { get; set; }
-
- ///
- /// Returns the string presentation of the object
- ///
- /// String presentation of the object
- public override string ToString()
- {
- StringBuilder sb = new StringBuilder();
- sb.Append("class HarEntryCacheBeforeRequest {\n");
- sb.Append(" Expires: ").Append(Expires).Append("\n");
- sb.Append(" LastAccess: ").Append(LastAccess).Append("\n");
- sb.Append(" ETag: ").Append(ETag).Append("\n");
- sb.Append(" HitCount: ").Append(HitCount).Append("\n");
- sb.Append(" Comment: ").Append(Comment).Append("\n");
- sb.Append("}\n");
- return sb.ToString();
- }
-
- ///
- /// Returns the JSON string presentation of the object
- ///
- /// JSON string presentation of the object
- public virtual string ToJson()
- {
- return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented);
- }
-
- ///
- /// Returns true if objects are equal
- ///
- /// Object to be compared
- /// Boolean
- public override bool Equals(object input)
- {
- return this.Equals(input as HarEntryCacheBeforeRequest);
- }
-
- ///
- /// Returns true if HarEntryCacheBeforeRequest instances are equal
- ///
- /// Instance of HarEntryCacheBeforeRequest to be compared
- /// Boolean
- public bool Equals(HarEntryCacheBeforeRequest input)
- {
- if (input == null)
- {
- return false;
- }
- return
- (
- this.Expires == input.Expires ||
- (this.Expires != null &&
- this.Expires.Equals(input.Expires))
- ) &&
- (
- this.LastAccess == input.LastAccess ||
- (this.LastAccess != null &&
- this.LastAccess.Equals(input.LastAccess))
- ) &&
- (
- this.ETag == input.ETag ||
- (this.ETag != null &&
- this.ETag.Equals(input.ETag))
- ) &&
- (
- this.HitCount == input.HitCount ||
- this.HitCount.Equals(input.HitCount)
- ) &&
- (
- this.Comment == input.Comment ||
- (this.Comment != null &&
- this.Comment.Equals(input.Comment))
- );
- }
-
- ///
- /// Gets the hash code
- ///
- /// Hash code
- public override int GetHashCode()
- {
- unchecked // Overflow is fine, just wrap
- {
- int hashCode = 41;
- if (this.Expires != null)
- {
- hashCode = (hashCode * 59) + this.Expires.GetHashCode();
- }
- if (this.LastAccess != null)
- {
- hashCode = (hashCode * 59) + this.LastAccess.GetHashCode();
- }
- if (this.ETag != null)
- {
- hashCode = (hashCode * 59) + this.ETag.GetHashCode();
- }
- hashCode = (hashCode * 59) + this.HitCount.GetHashCode();
- if (this.Comment != null)
- {
- hashCode = (hashCode * 59) + this.Comment.GetHashCode();
- }
- return hashCode;
- }
- }
-
- ///
- /// To validate all properties of the instance
- ///
- /// Validation context
- /// Validation Result
- IEnumerable IValidatableObject.Validate(ValidationContext validationContext)
- {
- yield break;
- }
- }
-
-}
diff --git a/clients/csharp/src/BrowserUp.Mitmproxy.Client.Test/Api/BrowserUpProxyApiTests.cs b/clients/csharp/src/BrowserUpMitmProxyClient.Test/Api/BrowserUpProxyApiTests.cs
similarity index 93%
rename from clients/csharp/src/BrowserUp.Mitmproxy.Client.Test/Api/BrowserUpProxyApiTests.cs
rename to clients/csharp/src/BrowserUpMitmProxyClient.Test/Api/BrowserUpProxyApiTests.cs
index 477a080596..2a9e07eec7 100644
--- a/clients/csharp/src/BrowserUp.Mitmproxy.Client.Test/Api/BrowserUpProxyApiTests.cs
+++ b/clients/csharp/src/BrowserUpMitmProxyClient.Test/Api/BrowserUpProxyApiTests.cs
@@ -3,7 +3,7 @@
*
* ___ This is the REST API for controlling the BrowserUp MitmProxy. The BrowserUp MitmProxy is a swiss army knife for automated testing that captures HTTP traffic in HAR files. It is also useful for Selenium/Cypress tests. ___
*
- * The version of the OpenAPI document: 1.0.0
+ * The version of the OpenAPI document: 1.24
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
@@ -16,12 +16,12 @@
using RestSharp;
using Xunit;
-using BrowserUp.Mitmproxy.Client.Client;
-using BrowserUp.Mitmproxy.Client.Api;
+using BrowserUpMitmProxyClient.Client;
+using BrowserUpMitmProxyClient.Api;
// uncomment below to import models
-//using BrowserUp.Mitmproxy.Client.Model;
+//using BrowserUpMitmProxyClient.Model;
-namespace BrowserUp.Mitmproxy.Client.Test.Api
+namespace BrowserUpMitmProxyClient.Test.Api
{
///
/// Class for testing BrowserUpProxyApi
@@ -55,25 +55,25 @@ public void InstanceTest()
}
///
- /// Test AddCounter
+ /// Test AddError
///
[Fact]
- public void AddCounterTest()
+ public void AddErrorTest()
{
// TODO uncomment below to test the method and replace null with proper value
- //Counter counter = null;
- //instance.AddCounter(counter);
+ //Error error = null;
+ //instance.AddError(error);
}
///
- /// Test AddError
+ /// Test AddMetric
///
[Fact]
- public void AddErrorTest()
+ public void AddMetricTest()
{
// TODO uncomment below to test the method and replace null with proper value
- //Error error = null;
- //instance.AddError(error);
+ //Metric metric = null;
+ //instance.AddMetric(metric);
}
///
diff --git a/clients/csharp/src/BrowserUp.Mitmproxy.Client.Test/BrowserUp.Mitmproxy.Client.Test.csproj b/clients/csharp/src/BrowserUpMitmProxyClient.Test/BrowserUpMitmProxyClient.Test.csproj
similarity index 55%
rename from clients/csharp/src/BrowserUp.Mitmproxy.Client.Test/BrowserUp.Mitmproxy.Client.Test.csproj
rename to clients/csharp/src/BrowserUpMitmProxyClient.Test/BrowserUpMitmProxyClient.Test.csproj
index 364afd3205..03c8dd80c4 100644
--- a/clients/csharp/src/BrowserUp.Mitmproxy.Client.Test/BrowserUp.Mitmproxy.Client.Test.csproj
+++ b/clients/csharp/src/BrowserUpMitmProxyClient.Test/BrowserUpMitmProxyClient.Test.csproj
@@ -1,20 +1,20 @@
- BrowserUp.Mitmproxy.Client.Test
- BrowserUp.Mitmproxy.Client.Test
+ BrowserUpMitmProxyClient.Test
+ BrowserUpMitmProxyClient.Testnet7.0falseannotations
-
-
-
+
+
+
-
+
diff --git a/clients/csharp/src/BrowserUp.Mitmproxy.Client.Test/Model/ActionTests.cs b/clients/csharp/src/BrowserUpMitmProxyClient.Test/Model/ActionTests.cs
similarity index 93%
rename from clients/csharp/src/BrowserUp.Mitmproxy.Client.Test/Model/ActionTests.cs
rename to clients/csharp/src/BrowserUpMitmProxyClient.Test/Model/ActionTests.cs
index 1ad7f9befd..403d0695ff 100644
--- a/clients/csharp/src/BrowserUp.Mitmproxy.Client.Test/Model/ActionTests.cs
+++ b/clients/csharp/src/BrowserUpMitmProxyClient.Test/Model/ActionTests.cs
@@ -3,7 +3,7 @@
*
* ___ This is the REST API for controlling the BrowserUp MitmProxy. The BrowserUp MitmProxy is a swiss army knife for automated testing that captures HTTP traffic in HAR files. It is also useful for Selenium/Cypress tests. ___
*
- * The version of the OpenAPI document: 1.0.0
+ * The version of the OpenAPI document: 1.24
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
@@ -14,12 +14,13 @@
using System.Linq;
using System.IO;
using System.Collections.Generic;
-using BrowserUp.Mitmproxy.Client.Model;
-using BrowserUp.Mitmproxy.Client.Client;
+using BrowserUpMitmProxyClient.Api;
+using BrowserUpMitmProxyClient.Model;
+using BrowserUpMitmProxyClient.Client;
using System.Reflection;
using Newtonsoft.Json;
-namespace BrowserUp.Mitmproxy.Client.Test.Model
+namespace BrowserUpMitmProxyClient.Test.Model
{
///
/// Class for testing Action
diff --git a/clients/csharp/src/BrowserUp.Mitmproxy.Client.Test/Model/ErrorTests.cs b/clients/csharp/src/BrowserUpMitmProxyClient.Test/Model/ErrorTests.cs
similarity index 90%
rename from clients/csharp/src/BrowserUp.Mitmproxy.Client.Test/Model/ErrorTests.cs
rename to clients/csharp/src/BrowserUpMitmProxyClient.Test/Model/ErrorTests.cs
index e9cb32f51b..6c9f3fe91e 100644
--- a/clients/csharp/src/BrowserUp.Mitmproxy.Client.Test/Model/ErrorTests.cs
+++ b/clients/csharp/src/BrowserUpMitmProxyClient.Test/Model/ErrorTests.cs
@@ -3,7 +3,7 @@
*
* ___ This is the REST API for controlling the BrowserUp MitmProxy. The BrowserUp MitmProxy is a swiss army knife for automated testing that captures HTTP traffic in HAR files. It is also useful for Selenium/Cypress tests. ___
*
- * The version of the OpenAPI document: 1.0.0
+ * The version of the OpenAPI document: 1.24
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
@@ -14,12 +14,13 @@
using System.Linq;
using System.IO;
using System.Collections.Generic;
-using BrowserUp.Mitmproxy.Client.Model;
-using BrowserUp.Mitmproxy.Client.Client;
+using BrowserUpMitmProxyClient.Api;
+using BrowserUpMitmProxyClient.Model;
+using BrowserUpMitmProxyClient.Client;
using System.Reflection;
using Newtonsoft.Json;
-namespace BrowserUp.Mitmproxy.Client.Test.Model
+namespace BrowserUpMitmProxyClient.Test.Model
{
///
/// Class for testing Error
@@ -56,20 +57,20 @@ public void ErrorInstanceTest()
///
- /// Test the property 'Details'
+ /// Test the property 'Name'
///
[Fact]
- public void DetailsTest()
+ public void NameTest()
{
- // TODO unit test for the property 'Details'
+ // TODO unit test for the property 'Name'
}
///
- /// Test the property 'Name'
+ /// Test the property 'Details'
///
[Fact]
- public void NameTest()
+ public void DetailsTest()
{
- // TODO unit test for the property 'Name'
+ // TODO unit test for the property 'Details'
}
}
diff --git a/clients/csharp/src/BrowserUp.Mitmproxy.Client.Test/Model/HarEntryCacheBeforeRequestOneOfTests.cs b/clients/csharp/src/BrowserUpMitmProxyClient.Test/Model/HarEntryCacheBeforeRequestOneOfTests.cs
similarity index 93%
rename from clients/csharp/src/BrowserUp.Mitmproxy.Client.Test/Model/HarEntryCacheBeforeRequestOneOfTests.cs
rename to clients/csharp/src/BrowserUpMitmProxyClient.Test/Model/HarEntryCacheBeforeRequestOneOfTests.cs
index a674b30565..476578ad1e 100644
--- a/clients/csharp/src/BrowserUp.Mitmproxy.Client.Test/Model/HarEntryCacheBeforeRequestOneOfTests.cs
+++ b/clients/csharp/src/BrowserUpMitmProxyClient.Test/Model/HarEntryCacheBeforeRequestOneOfTests.cs
@@ -3,7 +3,7 @@
*
* ___ This is the REST API for controlling the BrowserUp MitmProxy. The BrowserUp MitmProxy is a swiss army knife for automated testing that captures HTTP traffic in HAR files. It is also useful for Selenium/Cypress tests. ___
*
- * The version of the OpenAPI document: 1.0.0
+ * The version of the OpenAPI document: 1.24
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
@@ -14,12 +14,13 @@
using System.Linq;
using System.IO;
using System.Collections.Generic;
-using BrowserUp.Mitmproxy.Client.Model;
-using BrowserUp.Mitmproxy.Client.Client;
+using BrowserUpMitmProxyClient.Api;
+using BrowserUpMitmProxyClient.Model;
+using BrowserUpMitmProxyClient.Client;
using System.Reflection;
using Newtonsoft.Json;
-namespace BrowserUp.Mitmproxy.Client.Test.Model
+namespace BrowserUpMitmProxyClient.Test.Model
{
///
/// Class for testing HarEntryCacheBeforeRequestOneOf
diff --git a/clients/csharp/src/BrowserUp.Mitmproxy.Client.Test/Model/HarEntryCacheBeforeRequestTests.cs b/clients/csharp/src/BrowserUpMitmProxyClient.Test/Model/HarEntryCacheBeforeRequestTests.cs
similarity index 93%
rename from clients/csharp/src/BrowserUp.Mitmproxy.Client.Test/Model/HarEntryCacheBeforeRequestTests.cs
rename to clients/csharp/src/BrowserUpMitmProxyClient.Test/Model/HarEntryCacheBeforeRequestTests.cs
index 67adca511c..f60f6c0232 100644
--- a/clients/csharp/src/BrowserUp.Mitmproxy.Client.Test/Model/HarEntryCacheBeforeRequestTests.cs
+++ b/clients/csharp/src/BrowserUpMitmProxyClient.Test/Model/HarEntryCacheBeforeRequestTests.cs
@@ -3,7 +3,7 @@
*
* ___ This is the REST API for controlling the BrowserUp MitmProxy. The BrowserUp MitmProxy is a swiss army knife for automated testing that captures HTTP traffic in HAR files. It is also useful for Selenium/Cypress tests. ___
*
- * The version of the OpenAPI document: 1.0.0
+ * The version of the OpenAPI document: 1.24
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
@@ -14,12 +14,13 @@
using System.Linq;
using System.IO;
using System.Collections.Generic;
-using BrowserUp.Mitmproxy.Client.Model;
-using BrowserUp.Mitmproxy.Client.Client;
+using BrowserUpMitmProxyClient.Api;
+using BrowserUpMitmProxyClient.Model;
+using BrowserUpMitmProxyClient.Client;
using System.Reflection;
using Newtonsoft.Json;
-namespace BrowserUp.Mitmproxy.Client.Test.Model
+namespace BrowserUpMitmProxyClient.Test.Model
{
///
/// Class for testing HarEntryCacheBeforeRequest
diff --git a/clients/csharp/src/BrowserUp.Mitmproxy.Client.Test/Model/HarEntryCacheTests.cs b/clients/csharp/src/BrowserUpMitmProxyClient.Test/Model/HarEntryCacheTests.cs
similarity index 91%
rename from clients/csharp/src/BrowserUp.Mitmproxy.Client.Test/Model/HarEntryCacheTests.cs
rename to clients/csharp/src/BrowserUpMitmProxyClient.Test/Model/HarEntryCacheTests.cs
index 44509d566e..6fd3b0f1c6 100644
--- a/clients/csharp/src/BrowserUp.Mitmproxy.Client.Test/Model/HarEntryCacheTests.cs
+++ b/clients/csharp/src/BrowserUpMitmProxyClient.Test/Model/HarEntryCacheTests.cs
@@ -3,7 +3,7 @@
*
* ___ This is the REST API for controlling the BrowserUp MitmProxy. The BrowserUp MitmProxy is a swiss army knife for automated testing that captures HTTP traffic in HAR files. It is also useful for Selenium/Cypress tests. ___
*
- * The version of the OpenAPI document: 1.0.0
+ * The version of the OpenAPI document: 1.24
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
@@ -14,12 +14,13 @@
using System.Linq;
using System.IO;
using System.Collections.Generic;
-using BrowserUp.Mitmproxy.Client.Model;
-using BrowserUp.Mitmproxy.Client.Client;
+using BrowserUpMitmProxyClient.Api;
+using BrowserUpMitmProxyClient.Model;
+using BrowserUpMitmProxyClient.Client;
using System.Reflection;
using Newtonsoft.Json;
-namespace BrowserUp.Mitmproxy.Client.Test.Model
+namespace BrowserUpMitmProxyClient.Test.Model
{
///
/// Class for testing HarEntryCache
diff --git a/clients/csharp/src/BrowserUp.Mitmproxy.Client.Test/Model/HarEntryRequestCookiesInnerTests.cs b/clients/csharp/src/BrowserUpMitmProxyClient.Test/Model/HarEntryRequestCookiesInnerTests.cs
similarity index 94%
rename from clients/csharp/src/BrowserUp.Mitmproxy.Client.Test/Model/HarEntryRequestCookiesInnerTests.cs
rename to clients/csharp/src/BrowserUpMitmProxyClient.Test/Model/HarEntryRequestCookiesInnerTests.cs
index 470208df75..4e41276773 100644
--- a/clients/csharp/src/BrowserUp.Mitmproxy.Client.Test/Model/HarEntryRequestCookiesInnerTests.cs
+++ b/clients/csharp/src/BrowserUpMitmProxyClient.Test/Model/HarEntryRequestCookiesInnerTests.cs
@@ -3,7 +3,7 @@
*
* ___ This is the REST API for controlling the BrowserUp MitmProxy. The BrowserUp MitmProxy is a swiss army knife for automated testing that captures HTTP traffic in HAR files. It is also useful for Selenium/Cypress tests. ___
*
- * The version of the OpenAPI document: 1.0.0
+ * The version of the OpenAPI document: 1.24
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
@@ -14,12 +14,13 @@
using System.Linq;
using System.IO;
using System.Collections.Generic;
-using BrowserUp.Mitmproxy.Client.Model;
-using BrowserUp.Mitmproxy.Client.Client;
+using BrowserUpMitmProxyClient.Api;
+using BrowserUpMitmProxyClient.Model;
+using BrowserUpMitmProxyClient.Client;
using System.Reflection;
using Newtonsoft.Json;
-namespace BrowserUp.Mitmproxy.Client.Test.Model
+namespace BrowserUpMitmProxyClient.Test.Model
{
///
/// Class for testing HarEntryRequestCookiesInner
diff --git a/clients/csharp/src/BrowserUp.Mitmproxy.Client.Test/Model/HarEntryRequestPostDataParamsInnerTests.cs b/clients/csharp/src/BrowserUpMitmProxyClient.Test/Model/HarEntryRequestPostDataParamsInnerTests.cs
similarity index 93%
rename from clients/csharp/src/BrowserUp.Mitmproxy.Client.Test/Model/HarEntryRequestPostDataParamsInnerTests.cs
rename to clients/csharp/src/BrowserUpMitmProxyClient.Test/Model/HarEntryRequestPostDataParamsInnerTests.cs
index ed74684e32..e7dc363d08 100644
--- a/clients/csharp/src/BrowserUp.Mitmproxy.Client.Test/Model/HarEntryRequestPostDataParamsInnerTests.cs
+++ b/clients/csharp/src/BrowserUpMitmProxyClient.Test/Model/HarEntryRequestPostDataParamsInnerTests.cs
@@ -3,7 +3,7 @@
*
* ___ This is the REST API for controlling the BrowserUp MitmProxy. The BrowserUp MitmProxy is a swiss army knife for automated testing that captures HTTP traffic in HAR files. It is also useful for Selenium/Cypress tests. ___
*
- * The version of the OpenAPI document: 1.0.0
+ * The version of the OpenAPI document: 1.24
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
@@ -14,12 +14,13 @@
using System.Linq;
using System.IO;
using System.Collections.Generic;
-using BrowserUp.Mitmproxy.Client.Model;
-using BrowserUp.Mitmproxy.Client.Client;
+using BrowserUpMitmProxyClient.Api;
+using BrowserUpMitmProxyClient.Model;
+using BrowserUpMitmProxyClient.Client;
using System.Reflection;
using Newtonsoft.Json;
-namespace BrowserUp.Mitmproxy.Client.Test.Model
+namespace BrowserUpMitmProxyClient.Test.Model
{
///
/// Class for testing HarEntryRequestPostDataParamsInner
diff --git a/clients/csharp/src/BrowserUp.Mitmproxy.Client.Test/Model/HarEntryRequestPostDataTests.cs b/clients/csharp/src/BrowserUpMitmProxyClient.Test/Model/HarEntryRequestPostDataTests.cs
similarity index 91%
rename from clients/csharp/src/BrowserUp.Mitmproxy.Client.Test/Model/HarEntryRequestPostDataTests.cs
rename to clients/csharp/src/BrowserUpMitmProxyClient.Test/Model/HarEntryRequestPostDataTests.cs
index c5fd545ae3..fa51f67117 100644
--- a/clients/csharp/src/BrowserUp.Mitmproxy.Client.Test/Model/HarEntryRequestPostDataTests.cs
+++ b/clients/csharp/src/BrowserUpMitmProxyClient.Test/Model/HarEntryRequestPostDataTests.cs
@@ -3,7 +3,7 @@
*
* ___ This is the REST API for controlling the BrowserUp MitmProxy. The BrowserUp MitmProxy is a swiss army knife for automated testing that captures HTTP traffic in HAR files. It is also useful for Selenium/Cypress tests. ___
*
- * The version of the OpenAPI document: 1.0.0
+ * The version of the OpenAPI document: 1.24
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
@@ -14,12 +14,13 @@
using System.Linq;
using System.IO;
using System.Collections.Generic;
-using BrowserUp.Mitmproxy.Client.Model;
-using BrowserUp.Mitmproxy.Client.Client;
+using BrowserUpMitmProxyClient.Api;
+using BrowserUpMitmProxyClient.Model;
+using BrowserUpMitmProxyClient.Client;
using System.Reflection;
using Newtonsoft.Json;
-namespace BrowserUp.Mitmproxy.Client.Test.Model
+namespace BrowserUpMitmProxyClient.Test.Model
{
///
/// Class for testing HarEntryRequestPostData
diff --git a/clients/csharp/src/BrowserUp.Mitmproxy.Client.Test/Model/HarEntryRequestQueryStringInnerTests.cs b/clients/csharp/src/BrowserUpMitmProxyClient.Test/Model/HarEntryRequestQueryStringInnerTests.cs
similarity index 91%
rename from clients/csharp/src/BrowserUp.Mitmproxy.Client.Test/Model/HarEntryRequestQueryStringInnerTests.cs
rename to clients/csharp/src/BrowserUpMitmProxyClient.Test/Model/HarEntryRequestQueryStringInnerTests.cs
index 7e6f97b7de..eb8f515e86 100644
--- a/clients/csharp/src/BrowserUp.Mitmproxy.Client.Test/Model/HarEntryRequestQueryStringInnerTests.cs
+++ b/clients/csharp/src/BrowserUpMitmProxyClient.Test/Model/HarEntryRequestQueryStringInnerTests.cs
@@ -3,7 +3,7 @@
*
* ___ This is the REST API for controlling the BrowserUp MitmProxy. The BrowserUp MitmProxy is a swiss army knife for automated testing that captures HTTP traffic in HAR files. It is also useful for Selenium/Cypress tests. ___
*
- * The version of the OpenAPI document: 1.0.0
+ * The version of the OpenAPI document: 1.24
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
@@ -14,12 +14,13 @@
using System.Linq;
using System.IO;
using System.Collections.Generic;
-using BrowserUp.Mitmproxy.Client.Model;
-using BrowserUp.Mitmproxy.Client.Client;
+using BrowserUpMitmProxyClient.Api;
+using BrowserUpMitmProxyClient.Model;
+using BrowserUpMitmProxyClient.Client;
using System.Reflection;
using Newtonsoft.Json;
-namespace BrowserUp.Mitmproxy.Client.Test.Model
+namespace BrowserUpMitmProxyClient.Test.Model
{
///
/// Class for testing HarEntryRequestQueryStringInner
diff --git a/clients/csharp/src/BrowserUp.Mitmproxy.Client.Test/Model/HarEntryRequestTests.cs b/clients/csharp/src/BrowserUpMitmProxyClient.Test/Model/HarEntryRequestTests.cs
similarity index 94%
rename from clients/csharp/src/BrowserUp.Mitmproxy.Client.Test/Model/HarEntryRequestTests.cs
rename to clients/csharp/src/BrowserUpMitmProxyClient.Test/Model/HarEntryRequestTests.cs
index 1463f8d577..8bb0a0fef8 100644
--- a/clients/csharp/src/BrowserUp.Mitmproxy.Client.Test/Model/HarEntryRequestTests.cs
+++ b/clients/csharp/src/BrowserUpMitmProxyClient.Test/Model/HarEntryRequestTests.cs
@@ -3,7 +3,7 @@
*
* ___ This is the REST API for controlling the BrowserUp MitmProxy. The BrowserUp MitmProxy is a swiss army knife for automated testing that captures HTTP traffic in HAR files. It is also useful for Selenium/Cypress tests. ___
*
- * The version of the OpenAPI document: 1.0.0
+ * The version of the OpenAPI document: 1.24
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
@@ -14,12 +14,13 @@
using System.Linq;
using System.IO;
using System.Collections.Generic;
-using BrowserUp.Mitmproxy.Client.Model;
-using BrowserUp.Mitmproxy.Client.Client;
+using BrowserUpMitmProxyClient.Api;
+using BrowserUpMitmProxyClient.Model;
+using BrowserUpMitmProxyClient.Client;
using System.Reflection;
using Newtonsoft.Json;
-namespace BrowserUp.Mitmproxy.Client.Test.Model
+namespace BrowserUpMitmProxyClient.Test.Model
{
///
/// Class for testing HarEntryRequest
diff --git a/clients/csharp/src/BrowserUp.Mitmproxy.Client.Test/Model/HarEntryResponseContentTests.cs b/clients/csharp/src/BrowserUpMitmProxyClient.Test/Model/HarEntryResponseContentTests.cs
similarity index 57%
rename from clients/csharp/src/BrowserUp.Mitmproxy.Client.Test/Model/HarEntryResponseContentTests.cs
rename to clients/csharp/src/BrowserUpMitmProxyClient.Test/Model/HarEntryResponseContentTests.cs
index 34c4ec4458..a1d810f183 100644
--- a/clients/csharp/src/BrowserUp.Mitmproxy.Client.Test/Model/HarEntryResponseContentTests.cs
+++ b/clients/csharp/src/BrowserUpMitmProxyClient.Test/Model/HarEntryResponseContentTests.cs
@@ -3,7 +3,7 @@
*
* ___ This is the REST API for controlling the BrowserUp MitmProxy. The BrowserUp MitmProxy is a swiss army knife for automated testing that captures HTTP traffic in HAR files. It is also useful for Selenium/Cypress tests. ___
*
- * The version of the OpenAPI document: 1.0.0
+ * The version of the OpenAPI document: 1.24
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
@@ -14,12 +14,13 @@
using System.Linq;
using System.IO;
using System.Collections.Generic;
-using BrowserUp.Mitmproxy.Client.Model;
-using BrowserUp.Mitmproxy.Client.Client;
+using BrowserUpMitmProxyClient.Api;
+using BrowserUpMitmProxyClient.Model;
+using BrowserUpMitmProxyClient.Client;
using System.Reflection;
using Newtonsoft.Json;
-namespace BrowserUp.Mitmproxy.Client.Test.Model
+namespace BrowserUpMitmProxyClient.Test.Model
{
///
/// Class for testing HarEntryResponseContent
@@ -96,6 +97,70 @@ public void EncodingTest()
// TODO unit test for the property 'Encoding'
}
///
+ /// Test the property 'VideoBufferedPercent'
+ ///
+ [Fact]
+ public void VideoBufferedPercentTest()
+ {
+ // TODO unit test for the property 'VideoBufferedPercent'
+ }
+ ///
+ /// Test the property 'VideoStallCount'
+ ///
+ [Fact]
+ public void VideoStallCountTest()
+ {
+ // TODO unit test for the property 'VideoStallCount'
+ }
+ ///
+ /// Test the property 'VideoDecodedByteCount'
+ ///
+ [Fact]
+ public void VideoDecodedByteCountTest()
+ {
+ // TODO unit test for the property 'VideoDecodedByteCount'
+ }
+ ///
+ /// Test the property 'VideoWaitingCount'
+ ///
+ [Fact]
+ public void VideoWaitingCountTest()
+ {
+ // TODO unit test for the property 'VideoWaitingCount'
+ }
+ ///
+ /// Test the property 'VideoErrorCount'
+ ///
+ [Fact]
+ public void VideoErrorCountTest()
+ {
+ // TODO unit test for the property 'VideoErrorCount'
+ }
+ ///
+ /// Test the property 'VideoDroppedFrames'
+ ///
+ [Fact]
+ public void VideoDroppedFramesTest()
+ {
+ // TODO unit test for the property 'VideoDroppedFrames'
+ }
+ ///
+ /// Test the property 'VideoTotalFrames'
+ ///
+ [Fact]
+ public void VideoTotalFramesTest()
+ {
+ // TODO unit test for the property 'VideoTotalFrames'
+ }
+ ///
+ /// Test the property 'VideoAudioBytesDecoded'
+ ///
+ [Fact]
+ public void VideoAudioBytesDecodedTest()
+ {
+ // TODO unit test for the property 'VideoAudioBytesDecoded'
+ }
+ ///
/// Test the property 'Comment'
///
[Fact]
diff --git a/clients/csharp/src/BrowserUp.Mitmproxy.Client.Test/Model/HarEntryResponseTests.cs b/clients/csharp/src/BrowserUpMitmProxyClient.Test/Model/HarEntryResponseTests.cs
similarity index 94%
rename from clients/csharp/src/BrowserUp.Mitmproxy.Client.Test/Model/HarEntryResponseTests.cs
rename to clients/csharp/src/BrowserUpMitmProxyClient.Test/Model/HarEntryResponseTests.cs
index aad2275745..bfda3da0b5 100644
--- a/clients/csharp/src/BrowserUp.Mitmproxy.Client.Test/Model/HarEntryResponseTests.cs
+++ b/clients/csharp/src/BrowserUpMitmProxyClient.Test/Model/HarEntryResponseTests.cs
@@ -3,7 +3,7 @@
*
* ___ This is the REST API for controlling the BrowserUp MitmProxy. The BrowserUp MitmProxy is a swiss army knife for automated testing that captures HTTP traffic in HAR files. It is also useful for Selenium/Cypress tests. ___
*
- * The version of the OpenAPI document: 1.0.0
+ * The version of the OpenAPI document: 1.24
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
@@ -14,12 +14,13 @@
using System.Linq;
using System.IO;
using System.Collections.Generic;
-using BrowserUp.Mitmproxy.Client.Model;
-using BrowserUp.Mitmproxy.Client.Client;
+using BrowserUpMitmProxyClient.Api;
+using BrowserUpMitmProxyClient.Model;
+using BrowserUpMitmProxyClient.Client;
using System.Reflection;
using Newtonsoft.Json;
-namespace BrowserUp.Mitmproxy.Client.Test.Model
+namespace BrowserUpMitmProxyClient.Test.Model
{
///
/// Class for testing HarEntryResponse
diff --git a/clients/csharp/src/BrowserUp.Mitmproxy.Client.Test/Model/HarEntryTests.cs b/clients/csharp/src/BrowserUpMitmProxyClient.Test/Model/HarEntryTests.cs
similarity index 94%
rename from clients/csharp/src/BrowserUp.Mitmproxy.Client.Test/Model/HarEntryTests.cs
rename to clients/csharp/src/BrowserUpMitmProxyClient.Test/Model/HarEntryTests.cs
index 1ceed4678f..81f436c297 100644
--- a/clients/csharp/src/BrowserUp.Mitmproxy.Client.Test/Model/HarEntryTests.cs
+++ b/clients/csharp/src/BrowserUpMitmProxyClient.Test/Model/HarEntryTests.cs
@@ -3,7 +3,7 @@
*
* ___ This is the REST API for controlling the BrowserUp MitmProxy. The BrowserUp MitmProxy is a swiss army knife for automated testing that captures HTTP traffic in HAR files. It is also useful for Selenium/Cypress tests. ___
*
- * The version of the OpenAPI document: 1.0.0
+ * The version of the OpenAPI document: 1.24
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
@@ -14,12 +14,13 @@
using System.Linq;
using System.IO;
using System.Collections.Generic;
-using BrowserUp.Mitmproxy.Client.Model;
-using BrowserUp.Mitmproxy.Client.Client;
+using BrowserUpMitmProxyClient.Api;
+using BrowserUpMitmProxyClient.Model;
+using BrowserUpMitmProxyClient.Client;
using System.Reflection;
using Newtonsoft.Json;
-namespace BrowserUp.Mitmproxy.Client.Test.Model
+namespace BrowserUpMitmProxyClient.Test.Model
{
///
/// Class for testing HarEntry
diff --git a/clients/csharp/src/BrowserUp.Mitmproxy.Client.Test/Model/HarEntryTimingsTests.cs b/clients/csharp/src/BrowserUpMitmProxyClient.Test/Model/HarEntryTimingsTests.cs
similarity index 94%
rename from clients/csharp/src/BrowserUp.Mitmproxy.Client.Test/Model/HarEntryTimingsTests.cs
rename to clients/csharp/src/BrowserUpMitmProxyClient.Test/Model/HarEntryTimingsTests.cs
index cbd9515ce3..7e5c826ec8 100644
--- a/clients/csharp/src/BrowserUp.Mitmproxy.Client.Test/Model/HarEntryTimingsTests.cs
+++ b/clients/csharp/src/BrowserUpMitmProxyClient.Test/Model/HarEntryTimingsTests.cs
@@ -3,7 +3,7 @@
*
* ___ This is the REST API for controlling the BrowserUp MitmProxy. The BrowserUp MitmProxy is a swiss army knife for automated testing that captures HTTP traffic in HAR files. It is also useful for Selenium/Cypress tests. ___
*
- * The version of the OpenAPI document: 1.0.0
+ * The version of the OpenAPI document: 1.24
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
@@ -14,12 +14,13 @@
using System.Linq;
using System.IO;
using System.Collections.Generic;
-using BrowserUp.Mitmproxy.Client.Model;
-using BrowserUp.Mitmproxy.Client.Client;
+using BrowserUpMitmProxyClient.Api;
+using BrowserUpMitmProxyClient.Model;
+using BrowserUpMitmProxyClient.Client;
using System.Reflection;
using Newtonsoft.Json;
-namespace BrowserUp.Mitmproxy.Client.Test.Model
+namespace BrowserUpMitmProxyClient.Test.Model
{
///
/// Class for testing HarEntryTimings
diff --git a/clients/csharp/src/BrowserUp.Mitmproxy.Client.Test/Model/HarLogCreatorTests.cs b/clients/csharp/src/BrowserUpMitmProxyClient.Test/Model/HarLogCreatorTests.cs
similarity index 91%
rename from clients/csharp/src/BrowserUp.Mitmproxy.Client.Test/Model/HarLogCreatorTests.cs
rename to clients/csharp/src/BrowserUpMitmProxyClient.Test/Model/HarLogCreatorTests.cs
index 9ee7943055..52897d3b75 100644
--- a/clients/csharp/src/BrowserUp.Mitmproxy.Client.Test/Model/HarLogCreatorTests.cs
+++ b/clients/csharp/src/BrowserUpMitmProxyClient.Test/Model/HarLogCreatorTests.cs
@@ -3,7 +3,7 @@
*
* ___ This is the REST API for controlling the BrowserUp MitmProxy. The BrowserUp MitmProxy is a swiss army knife for automated testing that captures HTTP traffic in HAR files. It is also useful for Selenium/Cypress tests. ___
*
- * The version of the OpenAPI document: 1.0.0
+ * The version of the OpenAPI document: 1.24
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
@@ -14,12 +14,13 @@
using System.Linq;
using System.IO;
using System.Collections.Generic;
-using BrowserUp.Mitmproxy.Client.Model;
-using BrowserUp.Mitmproxy.Client.Client;
+using BrowserUpMitmProxyClient.Api;
+using BrowserUpMitmProxyClient.Model;
+using BrowserUpMitmProxyClient.Client;
using System.Reflection;
using Newtonsoft.Json;
-namespace BrowserUp.Mitmproxy.Client.Test.Model
+namespace BrowserUpMitmProxyClient.Test.Model
{
///
/// Class for testing HarLogCreator
diff --git a/clients/csharp/src/BrowserUp.Mitmproxy.Client.Test/Model/HarLogTests.cs b/clients/csharp/src/BrowserUpMitmProxyClient.Test/Model/HarLogTests.cs
similarity index 93%
rename from clients/csharp/src/BrowserUp.Mitmproxy.Client.Test/Model/HarLogTests.cs
rename to clients/csharp/src/BrowserUpMitmProxyClient.Test/Model/HarLogTests.cs
index 7fb4c39177..953de64f39 100644
--- a/clients/csharp/src/BrowserUp.Mitmproxy.Client.Test/Model/HarLogTests.cs
+++ b/clients/csharp/src/BrowserUpMitmProxyClient.Test/Model/HarLogTests.cs
@@ -3,7 +3,7 @@
*
* ___ This is the REST API for controlling the BrowserUp MitmProxy. The BrowserUp MitmProxy is a swiss army knife for automated testing that captures HTTP traffic in HAR files. It is also useful for Selenium/Cypress tests. ___
*
- * The version of the OpenAPI document: 1.0.0
+ * The version of the OpenAPI document: 1.24
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
@@ -14,12 +14,13 @@
using System.Linq;
using System.IO;
using System.Collections.Generic;
-using BrowserUp.Mitmproxy.Client.Model;
-using BrowserUp.Mitmproxy.Client.Client;
+using BrowserUpMitmProxyClient.Api;
+using BrowserUpMitmProxyClient.Model;
+using BrowserUpMitmProxyClient.Client;
using System.Reflection;
using Newtonsoft.Json;
-namespace BrowserUp.Mitmproxy.Client.Test.Model
+namespace BrowserUpMitmProxyClient.Test.Model
{
///
/// Class for testing HarLog
diff --git a/clients/csharp/src/BrowserUp.Mitmproxy.Client.Test/Model/HarTests.cs b/clients/csharp/src/BrowserUpMitmProxyClient.Test/Model/HarTests.cs
similarity index 88%
rename from clients/csharp/src/BrowserUp.Mitmproxy.Client.Test/Model/HarTests.cs
rename to clients/csharp/src/BrowserUpMitmProxyClient.Test/Model/HarTests.cs
index fd80d26047..e33682fee1 100644
--- a/clients/csharp/src/BrowserUp.Mitmproxy.Client.Test/Model/HarTests.cs
+++ b/clients/csharp/src/BrowserUpMitmProxyClient.Test/Model/HarTests.cs
@@ -3,7 +3,7 @@
*
* ___ This is the REST API for controlling the BrowserUp MitmProxy. The BrowserUp MitmProxy is a swiss army knife for automated testing that captures HTTP traffic in HAR files. It is also useful for Selenium/Cypress tests. ___
*
- * The version of the OpenAPI document: 1.0.0
+ * The version of the OpenAPI document: 1.24
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
@@ -14,12 +14,13 @@
using System.Linq;
using System.IO;
using System.Collections.Generic;
-using BrowserUp.Mitmproxy.Client.Model;
-using BrowserUp.Mitmproxy.Client.Client;
+using BrowserUpMitmProxyClient.Api;
+using BrowserUpMitmProxyClient.Model;
+using BrowserUpMitmProxyClient.Client;
using System.Reflection;
using Newtonsoft.Json;
-namespace BrowserUp.Mitmproxy.Client.Test.Model
+namespace BrowserUpMitmProxyClient.Test.Model
{
///
/// Class for testing Har
diff --git a/clients/csharp/src/BrowserUp.Mitmproxy.Client.Test/Model/HeaderTests.cs b/clients/csharp/src/BrowserUpMitmProxyClient.Test/Model/HeaderTests.cs
similarity index 91%
rename from clients/csharp/src/BrowserUp.Mitmproxy.Client.Test/Model/HeaderTests.cs
rename to clients/csharp/src/BrowserUpMitmProxyClient.Test/Model/HeaderTests.cs
index b884759712..daf3a0d950 100644
--- a/clients/csharp/src/BrowserUp.Mitmproxy.Client.Test/Model/HeaderTests.cs
+++ b/clients/csharp/src/BrowserUpMitmProxyClient.Test/Model/HeaderTests.cs
@@ -3,7 +3,7 @@
*
* ___ This is the REST API for controlling the BrowserUp MitmProxy. The BrowserUp MitmProxy is a swiss army knife for automated testing that captures HTTP traffic in HAR files. It is also useful for Selenium/Cypress tests. ___
*
- * The version of the OpenAPI document: 1.0.0
+ * The version of the OpenAPI document: 1.24
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
@@ -14,12 +14,13 @@
using System.Linq;
using System.IO;
using System.Collections.Generic;
-using BrowserUp.Mitmproxy.Client.Model;
-using BrowserUp.Mitmproxy.Client.Client;
+using BrowserUpMitmProxyClient.Api;
+using BrowserUpMitmProxyClient.Model;
+using BrowserUpMitmProxyClient.Client;
using System.Reflection;
using Newtonsoft.Json;
-namespace BrowserUp.Mitmproxy.Client.Test.Model
+namespace BrowserUpMitmProxyClient.Test.Model
{
///
/// Class for testing Header
diff --git a/clients/csharp/src/BrowserUp.Mitmproxy.Client.Test/Model/LargestContentfulPaintTests.cs b/clients/csharp/src/BrowserUpMitmProxyClient.Test/Model/LargestContentfulPaintTests.cs
similarity index 92%
rename from clients/csharp/src/BrowserUp.Mitmproxy.Client.Test/Model/LargestContentfulPaintTests.cs
rename to clients/csharp/src/BrowserUpMitmProxyClient.Test/Model/LargestContentfulPaintTests.cs
index 315fa2aa75..ac739d704b 100644
--- a/clients/csharp/src/BrowserUp.Mitmproxy.Client.Test/Model/LargestContentfulPaintTests.cs
+++ b/clients/csharp/src/BrowserUpMitmProxyClient.Test/Model/LargestContentfulPaintTests.cs
@@ -3,7 +3,7 @@
*
* ___ This is the REST API for controlling the BrowserUp MitmProxy. The BrowserUp MitmProxy is a swiss army knife for automated testing that captures HTTP traffic in HAR files. It is also useful for Selenium/Cypress tests. ___
*
- * The version of the OpenAPI document: 1.0.0
+ * The version of the OpenAPI document: 1.24
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
@@ -14,12 +14,13 @@
using System.Linq;
using System.IO;
using System.Collections.Generic;
-using BrowserUp.Mitmproxy.Client.Model;
-using BrowserUp.Mitmproxy.Client.Client;
+using BrowserUpMitmProxyClient.Api;
+using BrowserUpMitmProxyClient.Model;
+using BrowserUpMitmProxyClient.Client;
using System.Reflection;
using Newtonsoft.Json;
-namespace BrowserUp.Mitmproxy.Client.Test.Model
+namespace BrowserUpMitmProxyClient.Test.Model
{
///
/// Class for testing LargestContentfulPaint
diff --git a/clients/csharp/src/BrowserUp.Mitmproxy.Client.Test/Model/MatchCriteriaRequestHeaderTests.cs b/clients/csharp/src/BrowserUpMitmProxyClient.Test/Model/MatchCriteriaRequestHeaderTests.cs
similarity index 91%
rename from clients/csharp/src/BrowserUp.Mitmproxy.Client.Test/Model/MatchCriteriaRequestHeaderTests.cs
rename to clients/csharp/src/BrowserUpMitmProxyClient.Test/Model/MatchCriteriaRequestHeaderTests.cs
index fda72413e2..b66d083018 100644
--- a/clients/csharp/src/BrowserUp.Mitmproxy.Client.Test/Model/MatchCriteriaRequestHeaderTests.cs
+++ b/clients/csharp/src/BrowserUpMitmProxyClient.Test/Model/MatchCriteriaRequestHeaderTests.cs
@@ -3,7 +3,7 @@
*
* ___ This is the REST API for controlling the BrowserUp MitmProxy. The BrowserUp MitmProxy is a swiss army knife for automated testing that captures HTTP traffic in HAR files. It is also useful for Selenium/Cypress tests. ___
*
- * The version of the OpenAPI document: 1.0.0
+ * The version of the OpenAPI document: 1.24
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
@@ -14,12 +14,13 @@
using System.Linq;
using System.IO;
using System.Collections.Generic;
-using BrowserUp.Mitmproxy.Client.Model;
-using BrowserUp.Mitmproxy.Client.Client;
+using BrowserUpMitmProxyClient.Api;
+using BrowserUpMitmProxyClient.Model;
+using BrowserUpMitmProxyClient.Client;
using System.Reflection;
using Newtonsoft.Json;
-namespace BrowserUp.Mitmproxy.Client.Test.Model
+namespace BrowserUpMitmProxyClient.Test.Model
{
///
/// Class for testing MatchCriteriaRequestHeader
@@ -56,20 +57,20 @@ public void MatchCriteriaRequestHeaderInstanceTest()
///
- /// Test the property 'Value'
+ /// Test the property 'Name'
///
[Fact]
- public void ValueTest()
+ public void NameTest()
{
- // TODO unit test for the property 'Value'
+ // TODO unit test for the property 'Name'
}
///
- /// Test the property 'Name'
+ /// Test the property 'Value'
///
[Fact]
- public void NameTest()
+ public void ValueTest()
{
- // TODO unit test for the property 'Name'
+ // TODO unit test for the property 'Value'
}
}
diff --git a/clients/csharp/src/BrowserUp.Mitmproxy.Client.Test/Model/MatchCriteriaTests.cs b/clients/csharp/src/BrowserUpMitmProxyClient.Test/Model/MatchCriteriaTests.cs
similarity index 95%
rename from clients/csharp/src/BrowserUp.Mitmproxy.Client.Test/Model/MatchCriteriaTests.cs
rename to clients/csharp/src/BrowserUpMitmProxyClient.Test/Model/MatchCriteriaTests.cs
index cd6162191e..7f7c7dc955 100644
--- a/clients/csharp/src/BrowserUp.Mitmproxy.Client.Test/Model/MatchCriteriaTests.cs
+++ b/clients/csharp/src/BrowserUpMitmProxyClient.Test/Model/MatchCriteriaTests.cs
@@ -3,7 +3,7 @@
*
* ___ This is the REST API for controlling the BrowserUp MitmProxy. The BrowserUp MitmProxy is a swiss army knife for automated testing that captures HTTP traffic in HAR files. It is also useful for Selenium/Cypress tests. ___
*
- * The version of the OpenAPI document: 1.0.0
+ * The version of the OpenAPI document: 1.24
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
@@ -14,12 +14,13 @@
using System.Linq;
using System.IO;
using System.Collections.Generic;
-using BrowserUp.Mitmproxy.Client.Model;
-using BrowserUp.Mitmproxy.Client.Client;
+using BrowserUpMitmProxyClient.Api;
+using BrowserUpMitmProxyClient.Model;
+using BrowserUpMitmProxyClient.Client;
using System.Reflection;
using Newtonsoft.Json;
-namespace BrowserUp.Mitmproxy.Client.Test.Model
+namespace BrowserUpMitmProxyClient.Test.Model
{
///
/// Class for testing MatchCriteria
diff --git a/clients/csharp/src/BrowserUp.Mitmproxy.Client.Test/Model/CounterTests.cs b/clients/csharp/src/BrowserUpMitmProxyClient.Test/Model/MetricTests.cs
similarity index 68%
rename from clients/csharp/src/BrowserUp.Mitmproxy.Client.Test/Model/CounterTests.cs
rename to clients/csharp/src/BrowserUpMitmProxyClient.Test/Model/MetricTests.cs
index c6744a27e0..9dc722e0a4 100644
--- a/clients/csharp/src/BrowserUp.Mitmproxy.Client.Test/Model/CounterTests.cs
+++ b/clients/csharp/src/BrowserUpMitmProxyClient.Test/Model/MetricTests.cs
@@ -3,7 +3,7 @@
*
* ___ This is the REST API for controlling the BrowserUp MitmProxy. The BrowserUp MitmProxy is a swiss army knife for automated testing that captures HTTP traffic in HAR files. It is also useful for Selenium/Cypress tests. ___
*
- * The version of the OpenAPI document: 1.0.0
+ * The version of the OpenAPI document: 1.24
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
@@ -14,29 +14,30 @@
using System.Linq;
using System.IO;
using System.Collections.Generic;
-using BrowserUp.Mitmproxy.Client.Model;
-using BrowserUp.Mitmproxy.Client.Client;
+using BrowserUpMitmProxyClient.Api;
+using BrowserUpMitmProxyClient.Model;
+using BrowserUpMitmProxyClient.Client;
using System.Reflection;
using Newtonsoft.Json;
-namespace BrowserUp.Mitmproxy.Client.Test.Model
+namespace BrowserUpMitmProxyClient.Test.Model
{
///
- /// Class for testing Counter
+ /// Class for testing Metric
///
///
/// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech).
/// Please update the test case below to test the model.
///
- public class CounterTests : IDisposable
+ public class MetricTests : IDisposable
{
- // TODO uncomment below to declare an instance variable for Counter
- //private Counter instance;
+ // TODO uncomment below to declare an instance variable for Metric
+ //private Metric instance;
- public CounterTests()
+ public MetricTests()
{
- // TODO uncomment below to create an instance of Counter
- //instance = new Counter();
+ // TODO uncomment below to create an instance of Metric
+ //instance = new Metric();
}
public void Dispose()
@@ -45,31 +46,31 @@ public void Dispose()
}
///
- /// Test an instance of Counter
+ /// Test an instance of Metric
///
[Fact]
- public void CounterInstanceTest()
+ public void MetricInstanceTest()
{
- // TODO uncomment below to test "IsType" Counter
- //Assert.IsType(instance);
+ // TODO uncomment below to test "IsType" Metric
+ //Assert.IsType(instance);
}
///
- /// Test the property 'Value'
+ /// Test the property 'Name'
///
[Fact]
- public void ValueTest()
+ public void NameTest()
{
- // TODO unit test for the property 'Value'
+ // TODO unit test for the property 'Name'
}
///
- /// Test the property 'Name'
+ /// Test the property 'Value'
///
[Fact]
- public void NameTest()
+ public void ValueTest()
{
- // TODO unit test for the property 'Name'
+ // TODO unit test for the property 'Value'
}
}
diff --git a/clients/csharp/src/BrowserUp.Mitmproxy.Client.Test/Model/NameValuePairTests.cs b/clients/csharp/src/BrowserUpMitmProxyClient.Test/Model/NameValuePairTests.cs
similarity index 90%
rename from clients/csharp/src/BrowserUp.Mitmproxy.Client.Test/Model/NameValuePairTests.cs
rename to clients/csharp/src/BrowserUpMitmProxyClient.Test/Model/NameValuePairTests.cs
index b96f1b685c..0d2b16c5c9 100644
--- a/clients/csharp/src/BrowserUp.Mitmproxy.Client.Test/Model/NameValuePairTests.cs
+++ b/clients/csharp/src/BrowserUpMitmProxyClient.Test/Model/NameValuePairTests.cs
@@ -3,7 +3,7 @@
*
* ___ This is the REST API for controlling the BrowserUp MitmProxy. The BrowserUp MitmProxy is a swiss army knife for automated testing that captures HTTP traffic in HAR files. It is also useful for Selenium/Cypress tests. ___
*
- * The version of the OpenAPI document: 1.0.0
+ * The version of the OpenAPI document: 1.24
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
@@ -14,12 +14,13 @@
using System.Linq;
using System.IO;
using System.Collections.Generic;
-using BrowserUp.Mitmproxy.Client.Model;
-using BrowserUp.Mitmproxy.Client.Client;
+using BrowserUpMitmProxyClient.Api;
+using BrowserUpMitmProxyClient.Model;
+using BrowserUpMitmProxyClient.Client;
using System.Reflection;
using Newtonsoft.Json;
-namespace BrowserUp.Mitmproxy.Client.Test.Model
+namespace BrowserUpMitmProxyClient.Test.Model
{
///
/// Class for testing NameValuePair
@@ -56,20 +57,20 @@ public void NameValuePairInstanceTest()
///
- /// Test the property 'Value'
+ /// Test the property 'Name'
///
[Fact]
- public void ValueTest()
+ public void NameTest()
{
- // TODO unit test for the property 'Value'
+ // TODO unit test for the property 'Name'
}
///
- /// Test the property 'Name'
+ /// Test the property 'Value'
///
[Fact]
- public void NameTest()
+ public void ValueTest()
{
- // TODO unit test for the property 'Name'
+ // TODO unit test for the property 'Value'
}
}
diff --git a/clients/csharp/src/BrowserUp.Mitmproxy.Client.Test/Model/PageTests.cs b/clients/csharp/src/BrowserUpMitmProxyClient.Test/Model/PageTests.cs
similarity index 90%
rename from clients/csharp/src/BrowserUp.Mitmproxy.Client.Test/Model/PageTests.cs
rename to clients/csharp/src/BrowserUpMitmProxyClient.Test/Model/PageTests.cs
index c6047a68f8..b6a727a758 100644
--- a/clients/csharp/src/BrowserUp.Mitmproxy.Client.Test/Model/PageTests.cs
+++ b/clients/csharp/src/BrowserUpMitmProxyClient.Test/Model/PageTests.cs
@@ -3,7 +3,7 @@
*
* ___ This is the REST API for controlling the BrowserUp MitmProxy. The BrowserUp MitmProxy is a swiss army knife for automated testing that captures HTTP traffic in HAR files. It is also useful for Selenium/Cypress tests. ___
*
- * The version of the OpenAPI document: 1.0.0
+ * The version of the OpenAPI document: 1.24
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
@@ -14,12 +14,13 @@
using System.Linq;
using System.IO;
using System.Collections.Generic;
-using BrowserUp.Mitmproxy.Client.Model;
-using BrowserUp.Mitmproxy.Client.Client;
+using BrowserUpMitmProxyClient.Api;
+using BrowserUpMitmProxyClient.Model;
+using BrowserUpMitmProxyClient.Client;
using System.Reflection;
using Newtonsoft.Json;
-namespace BrowserUp.Mitmproxy.Client.Test.Model
+namespace BrowserUpMitmProxyClient.Test.Model
{
///
/// Class for testing Page
@@ -88,12 +89,12 @@ public void VerificationsTest()
// TODO unit test for the property 'Verifications'
}
///
- /// Test the property 'Counters'
+ /// Test the property 'Metrics'
///
[Fact]
- public void CountersTest()
+ public void MetricsTest()
{
- // TODO unit test for the property 'Counters'
+ // TODO unit test for the property 'Metrics'
}
///
/// Test the property 'Errors'
diff --git a/clients/csharp/src/BrowserUp.Mitmproxy.Client.Test/Model/PageTimingTests.cs b/clients/csharp/src/BrowserUpMitmProxyClient.Test/Model/PageTimingTests.cs
similarity index 95%
rename from clients/csharp/src/BrowserUp.Mitmproxy.Client.Test/Model/PageTimingTests.cs
rename to clients/csharp/src/BrowserUpMitmProxyClient.Test/Model/PageTimingTests.cs
index 50a17f2fca..859b9157c2 100644
--- a/clients/csharp/src/BrowserUp.Mitmproxy.Client.Test/Model/PageTimingTests.cs
+++ b/clients/csharp/src/BrowserUpMitmProxyClient.Test/Model/PageTimingTests.cs
@@ -3,7 +3,7 @@
*
* ___ This is the REST API for controlling the BrowserUp MitmProxy. The BrowserUp MitmProxy is a swiss army knife for automated testing that captures HTTP traffic in HAR files. It is also useful for Selenium/Cypress tests. ___
*
- * The version of the OpenAPI document: 1.0.0
+ * The version of the OpenAPI document: 1.24
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
@@ -14,12 +14,13 @@
using System.Linq;
using System.IO;
using System.Collections.Generic;
-using BrowserUp.Mitmproxy.Client.Model;
-using BrowserUp.Mitmproxy.Client.Client;
+using BrowserUpMitmProxyClient.Api;
+using BrowserUpMitmProxyClient.Model;
+using BrowserUpMitmProxyClient.Client;
using System.Reflection;
using Newtonsoft.Json;
-namespace BrowserUp.Mitmproxy.Client.Test.Model
+namespace BrowserUpMitmProxyClient.Test.Model
{
///
/// Class for testing PageTiming
@@ -56,100 +57,100 @@ public void PageTimingInstanceTest()
///
- /// Test the property 'FirstInputDelay'
+ /// Test the property 'OnContentLoad'
///
[Fact]
- public void FirstInputDelayTest()
+ public void OnContentLoadTest()
{
- // TODO unit test for the property 'FirstInputDelay'
+ // TODO unit test for the property 'OnContentLoad'
}
///
- /// Test the property 'DomInteractive'
+ /// Test the property 'OnLoad'
///
[Fact]
- public void DomInteractiveTest()
+ public void OnLoadTest()
{
- // TODO unit test for the property 'DomInteractive'
+ // TODO unit test for the property 'OnLoad'
}
///
- /// Test the property 'CumulativeLayoutShift'
+ /// Test the property 'FirstInputDelay'
///
[Fact]
- public void CumulativeLayoutShiftTest()
+ public void FirstInputDelayTest()
{
- // TODO unit test for the property 'CumulativeLayoutShift'
+ // TODO unit test for the property 'FirstInputDelay'
}
///
- /// Test the property 'Dns'
+ /// Test the property 'FirstPaint'
///
[Fact]
- public void DnsTest()
+ public void FirstPaintTest()
{
- // TODO unit test for the property 'Dns'
+ // TODO unit test for the property 'FirstPaint'
}
///
- /// Test the property 'Href'
+ /// Test the property 'CumulativeLayoutShift'
///
[Fact]
- public void HrefTest()
+ public void CumulativeLayoutShiftTest()
{
- // TODO unit test for the property 'Href'
+ // TODO unit test for the property 'CumulativeLayoutShift'
}
///
- /// Test the property 'FirstPaint'
+ /// Test the property 'LargestContentfulPaint'
///
[Fact]
- public void FirstPaintTest()
+ public void LargestContentfulPaintTest()
{
- // TODO unit test for the property 'FirstPaint'
+ // TODO unit test for the property 'LargestContentfulPaint'
}
///
- /// Test the property 'LargestContentfulPaint'
+ /// Test the property 'DomInteractive'
///
[Fact]
- public void LargestContentfulPaintTest()
+ public void DomInteractiveTest()
{
- // TODO unit test for the property 'LargestContentfulPaint'
+ // TODO unit test for the property 'DomInteractive'
}
///
- /// Test the property 'TimeToFirstByte'
+ /// Test the property 'FirstContentfulPaint'
///
[Fact]
- public void TimeToFirstByteTest()
+ public void FirstContentfulPaintTest()
{
- // TODO unit test for the property 'TimeToFirstByte'
+ // TODO unit test for the property 'FirstContentfulPaint'
}
///
- /// Test the property 'Ssl'
+ /// Test the property 'Dns'
///
[Fact]
- public void SslTest()
+ public void DnsTest()
{
- // TODO unit test for the property 'Ssl'
+ // TODO unit test for the property 'Dns'
}
///
- /// Test the property 'FirstContentfulPaint'
+ /// Test the property 'Ssl'
///
[Fact]
- public void FirstContentfulPaintTest()
+ public void SslTest()
{
- // TODO unit test for the property 'FirstContentfulPaint'
+ // TODO unit test for the property 'Ssl'
}
///
- /// Test the property 'OnLoad'
+ /// Test the property 'TimeToFirstByte'
///
[Fact]
- public void OnLoadTest()
+ public void TimeToFirstByteTest()
{
- // TODO unit test for the property 'OnLoad'
+ // TODO unit test for the property 'TimeToFirstByte'
}
///
- /// Test the property 'OnContentLoad'
+ /// Test the property 'Href'
///
[Fact]
- public void OnContentLoadTest()
+ public void HrefTest()
{
- // TODO unit test for the property 'OnContentLoad'
+ // TODO unit test for the property 'Href'
}
}
diff --git a/clients/csharp/src/BrowserUp.Mitmproxy.Client.Test/Model/PageTimingsTests.cs b/clients/csharp/src/BrowserUpMitmProxyClient.Test/Model/PageTimingsTests.cs
similarity index 95%
rename from clients/csharp/src/BrowserUp.Mitmproxy.Client.Test/Model/PageTimingsTests.cs
rename to clients/csharp/src/BrowserUpMitmProxyClient.Test/Model/PageTimingsTests.cs
index 0dbb912e31..ee8f203c9d 100644
--- a/clients/csharp/src/BrowserUp.Mitmproxy.Client.Test/Model/PageTimingsTests.cs
+++ b/clients/csharp/src/BrowserUpMitmProxyClient.Test/Model/PageTimingsTests.cs
@@ -3,7 +3,7 @@
*
* ___ This is the REST API for controlling the BrowserUp MitmProxy. The BrowserUp MitmProxy is a swiss army knife for automated testing that captures HTTP traffic in HAR files. It is also useful for Selenium/Cypress tests. ___
*
- * The version of the OpenAPI document: 1.0.0
+ * The version of the OpenAPI document: 1.24
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
@@ -14,12 +14,13 @@
using System.Linq;
using System.IO;
using System.Collections.Generic;
-using BrowserUp.Mitmproxy.Client.Model;
-using BrowserUp.Mitmproxy.Client.Client;
+using BrowserUpMitmProxyClient.Api;
+using BrowserUpMitmProxyClient.Model;
+using BrowserUpMitmProxyClient.Client;
using System.Reflection;
using Newtonsoft.Json;
-namespace BrowserUp.Mitmproxy.Client.Test.Model
+namespace BrowserUpMitmProxyClient.Test.Model
{
///
/// Class for testing PageTimings
diff --git a/clients/csharp/src/BrowserUp.Mitmproxy.Client.Test/Model/VerifyResultTests.cs b/clients/csharp/src/BrowserUpMitmProxyClient.Test/Model/VerifyResultTests.cs
similarity index 91%
rename from clients/csharp/src/BrowserUp.Mitmproxy.Client.Test/Model/VerifyResultTests.cs
rename to clients/csharp/src/BrowserUpMitmProxyClient.Test/Model/VerifyResultTests.cs
index b5be2bfbf7..2a72d308e4 100644
--- a/clients/csharp/src/BrowserUp.Mitmproxy.Client.Test/Model/VerifyResultTests.cs
+++ b/clients/csharp/src/BrowserUpMitmProxyClient.Test/Model/VerifyResultTests.cs
@@ -3,7 +3,7 @@
*
* ___ This is the REST API for controlling the BrowserUp MitmProxy. The BrowserUp MitmProxy is a swiss army knife for automated testing that captures HTTP traffic in HAR files. It is also useful for Selenium/Cypress tests. ___
*
- * The version of the OpenAPI document: 1.0.0
+ * The version of the OpenAPI document: 1.24
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
@@ -14,12 +14,13 @@
using System.Linq;
using System.IO;
using System.Collections.Generic;
-using BrowserUp.Mitmproxy.Client.Model;
-using BrowserUp.Mitmproxy.Client.Client;
+using BrowserUpMitmProxyClient.Api;
+using BrowserUpMitmProxyClient.Model;
+using BrowserUpMitmProxyClient.Client;
using System.Reflection;
using Newtonsoft.Json;
-namespace BrowserUp.Mitmproxy.Client.Test.Model
+namespace BrowserUpMitmProxyClient.Test.Model
{
///
/// Class for testing VerifyResult
@@ -56,12 +57,12 @@ public void VerifyResultInstanceTest()
///
- /// Test the property 'Type'
+ /// Test the property 'Result'
///
[Fact]
- public void TypeTest()
+ public void ResultTest()
{
- // TODO unit test for the property 'Type'
+ // TODO unit test for the property 'Result'
}
///
/// Test the property 'Name'
@@ -72,12 +73,12 @@ public void NameTest()
// TODO unit test for the property 'Name'
}
///
- /// Test the property 'Result'
+ /// Test the property 'Type'
///
[Fact]
- public void ResultTest()
+ public void TypeTest()
{
- // TODO unit test for the property 'Result'
+ // TODO unit test for the property 'Type'
}
}
diff --git a/clients/csharp/src/BrowserUp.Mitmproxy.Client.Test/Model/WebSocketMessageTests.cs b/clients/csharp/src/BrowserUpMitmProxyClient.Test/Model/WebSocketMessageTests.cs
similarity index 92%
rename from clients/csharp/src/BrowserUp.Mitmproxy.Client.Test/Model/WebSocketMessageTests.cs
rename to clients/csharp/src/BrowserUpMitmProxyClient.Test/Model/WebSocketMessageTests.cs
index 9831c48a85..64f5a70329 100644
--- a/clients/csharp/src/BrowserUp.Mitmproxy.Client.Test/Model/WebSocketMessageTests.cs
+++ b/clients/csharp/src/BrowserUpMitmProxyClient.Test/Model/WebSocketMessageTests.cs
@@ -3,7 +3,7 @@
*
* ___ This is the REST API for controlling the BrowserUp MitmProxy. The BrowserUp MitmProxy is a swiss army knife for automated testing that captures HTTP traffic in HAR files. It is also useful for Selenium/Cypress tests. ___
*
- * The version of the OpenAPI document: 1.0.0
+ * The version of the OpenAPI document: 1.24
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
@@ -14,12 +14,13 @@
using System.Linq;
using System.IO;
using System.Collections.Generic;
-using BrowserUp.Mitmproxy.Client.Model;
-using BrowserUp.Mitmproxy.Client.Client;
+using BrowserUpMitmProxyClient.Api;
+using BrowserUpMitmProxyClient.Model;
+using BrowserUpMitmProxyClient.Client;
using System.Reflection;
using Newtonsoft.Json;
-namespace BrowserUp.Mitmproxy.Client.Test.Model
+namespace BrowserUpMitmProxyClient.Test.Model
{
///
/// Class for testing WebSocketMessage
diff --git a/clients/csharp/src/BrowserUp.Mitmproxy.Client/Api/BrowserUpProxyApi.cs b/clients/csharp/src/BrowserUpMitmProxyClient/Api/BrowserUpProxyApi.cs
similarity index 69%
rename from clients/csharp/src/BrowserUp.Mitmproxy.Client/Api/BrowserUpProxyApi.cs
rename to clients/csharp/src/BrowserUpMitmProxyClient/Api/BrowserUpProxyApi.cs
index 3dfaff8495..44aa4f2371 100644
--- a/clients/csharp/src/BrowserUp.Mitmproxy.Client/Api/BrowserUpProxyApi.cs
+++ b/clients/csharp/src/BrowserUpMitmProxyClient/Api/BrowserUpProxyApi.cs
@@ -3,7 +3,7 @@
*
* ___ This is the REST API for controlling the BrowserUp MitmProxy. The BrowserUp MitmProxy is a swiss army knife for automated testing that captures HTTP traffic in HAR files. It is also useful for Selenium/Cypress tests. ___
*
- * The version of the OpenAPI document: 1.0.0
+ * The version of the OpenAPI document: 1.24
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
@@ -14,10 +14,10 @@
using System.Linq;
using System.Net;
using System.Net.Mime;
-using BrowserUp.Mitmproxy.Client.Client;
-using BrowserUp.Mitmproxy.Client.Model;
+using BrowserUpMitmProxyClient.Client;
+using BrowserUpMitmProxyClient.Model;
-namespace BrowserUp.Mitmproxy.Client.Api
+namespace BrowserUpMitmProxyClient.Api
{
///
@@ -30,55 +30,55 @@ public interface IBrowserUpProxyApiSync : IApiAccessor
///
///
///
- /// Add Custom Counter to the captured traffic har
+ /// Add Custom Error to the captured traffic har
///
- /// Thrown when fails to make API call
- /// Receives a new counter to add. The counter is stored, under the hood, in an array in the har under the _counters key
+ /// Thrown when fails to make API call
+ /// Receives an error to track. Internally, the error is stored in an array in the har under the _errors key
/// Index associated with the operation.
///
- void AddCounter(Counter counter, int operationIndex = 0);
+ void AddError(Error error, int operationIndex = 0);
///
///
///
///
- /// Add Custom Counter to the captured traffic har
+ /// Add Custom Error to the captured traffic har
///
- /// Thrown when fails to make API call
- /// Receives a new counter to add. The counter is stored, under the hood, in an array in the har under the _counters key
+ /// Thrown when fails to make API call
+ /// Receives an error to track. Internally, the error is stored in an array in the har under the _errors key
/// Index associated with the operation.
/// ApiResponse of Object(void)
- ApiResponse
///
- /// Add Custom Counter to the captured traffic har
+ /// Add Custom Error to the captured traffic har
///
- /// Thrown when fails to make API call
- /// Receives a new counter to add. The counter is stored, under the hood, in an array in the har under the _counters key
+ /// Thrown when fails to make API call
+ /// Receives an error to track. Internally, the error is stored in an array in the har under the _errors key
/// Index associated with the operation.
/// Cancellation Token to cancel the request.
/// Task of void
- System.Threading.Tasks.Task AddCounterAsync(Counter counter, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
+ System.Threading.Tasks.Task AddErrorAsync(Error error, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
///
///
///
///
- /// Add Custom Counter to the captured traffic har
+ /// Add Custom Error to the captured traffic har
///
- /// Thrown when fails to make API call
- /// Receives a new counter to add. The counter is stored, under the hood, in an array in the har under the _counters key
+ /// Thrown when fails to make API call
+ /// Receives an error to track. Internally, the error is stored in an array in the har under the _errors key
/// Index associated with the operation.
/// Cancellation Token to cancel the request.
/// Task of ApiResponse
- System.Threading.Tasks.Task> AddCounterWithHttpInfoAsync(Counter counter, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
+ System.Threading.Tasks.Task> AddErrorWithHttpInfoAsync(Error error, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
///
///
///
///
- /// Add Custom Error to the captured traffic har
+ /// Add Custom Metric to the captured traffic har
///
- /// Thrown when fails to make API call
- /// Receives an error to track. Internally, the error is stored in an array in the har under the _errors key
+ /// Thrown when fails to make API call
+ /// Receives a new metric to add. The metric is stored, under the hood, in an array in the har under the _metrics key
/// Index associated with the operation.
/// Cancellation Token to cancel the request.
/// Task of void
- System.Threading.Tasks.Task AddErrorAsync(Error error, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
+ System.Threading.Tasks.Task AddMetricAsync(Metric metric, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
///
///
///
///
- /// Add Custom Error to the captured traffic har
+ /// Add Custom Metric to the captured traffic har
///
- /// Thrown when fails to make API call
- /// Receives an error to track. Internally, the error is stored in an array in the har under the _errors key
+ /// Thrown when fails to make API call
+ /// Receives a new metric to add. The metric is stored, under the hood, in an array in the har under the _metrics key
/// Index associated with the operation.
/// Cancellation Token to cancel the request.
/// Task of ApiResponse
- System.Threading.Tasks.Task> AddErrorWithHttpInfoAsync(Error error, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
+ System.Threading.Tasks.Task> AddMetricWithHttpInfoAsync(Metric metric, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
///
///
///
///
/// Get the current HAR.
///
- /// Thrown when fails to make API call
+ /// Thrown when fails to make API call
/// Index associated with the operation.
/// Cancellation Token to cancel the request.
/// Task of Har
@@ -339,7 +339,7 @@ public interface IBrowserUpProxyApiAsync : IApiAccessor
///
/// Get the current HAR.
///
- /// Thrown when fails to make API call
+ /// Thrown when fails to make API call
/// Index associated with the operation.
/// Cancellation Token to cancel the request.
/// Task of ApiResponse (Har)
@@ -350,7 +350,7 @@ public interface IBrowserUpProxyApiAsync : IApiAccessor
///
/// Get the healthcheck
///
- /// Thrown when fails to make API call
+ /// Thrown when fails to make API call
/// Index associated with the operation.
/// Cancellation Token to cancel the request.
/// Task of void
@@ -362,7 +362,7 @@ public interface IBrowserUpProxyApiAsync : IApiAccessor
///
/// Get the healthcheck
///
- /// Thrown when fails to make API call
+ /// Thrown when fails to make API call
/// Index associated with the operation.
/// Cancellation Token to cancel the request.
/// Task of ApiResponse
@@ -373,7 +373,7 @@ public interface IBrowserUpProxyApiAsync : IApiAccessor
///
/// Starts a fresh HAR Page (Step) in the current active HAR to group requests.
///
- /// Thrown when fails to make API call
+ /// Thrown when fails to make API call
/// The unique title for this har page/step.
/// Index associated with the operation.
/// Cancellation Token to cancel the request.
@@ -386,7 +386,7 @@ public interface IBrowserUpProxyApiAsync : IApiAccessor
///
/// Starts a fresh HAR Page (Step) in the current active HAR to group requests.
///
- /// Thrown when fails to make API call
+ /// Thrown when fails to make API call
/// The unique title for this har page/step.
/// Index associated with the operation.
/// Cancellation Token to cancel the request.
@@ -398,7 +398,7 @@ public interface IBrowserUpProxyApiAsync : IApiAccessor
///
/// Starts a fresh HAR capture session.
///
- /// Thrown when fails to make API call
+ /// Thrown when fails to make API call
/// Index associated with the operation.
/// Cancellation Token to cancel the request.
/// Task of Har
@@ -410,7 +410,7 @@ public interface IBrowserUpProxyApiAsync : IApiAccessor
///
/// Starts a fresh HAR capture session.
///
- /// Thrown when fails to make API call
+ /// Thrown when fails to make API call
/// Index associated with the operation.
/// Cancellation Token to cancel the request.
/// Task of ApiResponse (Har)
@@ -421,7 +421,7 @@ public interface IBrowserUpProxyApiAsync : IApiAccessor
///
/// Verify no matching items are present in the captured traffic
///
- /// Thrown when fails to make API call
+ /// Thrown when fails to make API call
/// The unique name for this verification operation
/// Match criteria to select requests - response pairs for size tests
/// Index associated with the operation.
@@ -435,7 +435,7 @@ public interface IBrowserUpProxyApiAsync : IApiAccessor
///
/// Verify no matching items are present in the captured traffic
///
- /// Thrown when fails to make API call
+ /// Thrown when fails to make API call
/// The unique name for this verification operation
/// Match criteria to select requests - response pairs for size tests
/// Index associated with the operation.
@@ -448,7 +448,7 @@ public interface IBrowserUpProxyApiAsync : IApiAccessor
///
/// Verify at least one matching item is present in the captured traffic
///
- /// Thrown when fails to make API call
+ /// Thrown when fails to make API call
/// The unique name for this verification operation
/// Match criteria to select requests - response pairs for size tests
/// Index associated with the operation.
@@ -462,7 +462,7 @@ public interface IBrowserUpProxyApiAsync : IApiAccessor
///
/// Verify at least one matching item is present in the captured traffic
///
- /// Thrown when fails to make API call
+ /// Thrown when fails to make API call
/// The unique name for this verification operation
/// Match criteria to select requests - response pairs for size tests
/// Index associated with the operation.
@@ -475,7 +475,7 @@ public interface IBrowserUpProxyApiAsync : IApiAccessor
///
/// Verify each traffic item matching the criteria meets is below SLA time
///
- /// Thrown when fails to make API call
+ /// Thrown when fails to make API call
/// The time used for comparison
/// The unique name for this verification operation
/// Match criteria to select requests - response pairs for size tests
@@ -490,7 +490,7 @@ public interface IBrowserUpProxyApiAsync : IApiAccessor
///
/// Verify each traffic item matching the criteria meets is below SLA time
///
- /// Thrown when fails to make API call
+ /// Thrown when fails to make API call
/// The time used for comparison
/// The unique name for this verification operation
/// Match criteria to select requests - response pairs for size tests
@@ -504,7 +504,7 @@ public interface IBrowserUpProxyApiAsync : IApiAccessor
///
/// Verify matching items in the captured traffic meet the size criteria
///
- /// Thrown when fails to make API call
+ /// Thrown when fails to make API call
/// The size used for comparison, in kilobytes
/// The unique name for this verification operation
/// Match criteria to select requests - response pairs for size tests
@@ -519,7 +519,7 @@ public interface IBrowserUpProxyApiAsync : IApiAccessor
///
/// Verify matching items in the captured traffic meet the size criteria
///
- /// Thrown when fails to make API call
+ /// Thrown when fails to make API call
/// The size used for comparison, in kilobytes
/// The unique name for this verification operation
/// Match criteria to select requests - response pairs for size tests
@@ -543,7 +543,7 @@ public interface IBrowserUpProxyApi : IBrowserUpProxyApiSync, IBrowserUpProxyApi
///
public partial class BrowserUpProxyApi : IBrowserUpProxyApi
{
- private BrowserUp.Mitmproxy.Client.Client.ExceptionFactory _exceptionFactory = (name, response) => null;
+ private BrowserUpMitmProxyClient.Client.ExceptionFactory _exceptionFactory = (name, response) => null;
///
/// Initializes a new instance of the class.
@@ -559,13 +559,13 @@ public BrowserUpProxyApi() : this((string)null)
///
public BrowserUpProxyApi(string basePath)
{
- this.Configuration = BrowserUp.Mitmproxy.Client.Client.Configuration.MergeConfigurations(
- BrowserUp.Mitmproxy.Client.Client.GlobalConfiguration.Instance,
- new BrowserUp.Mitmproxy.Client.Client.Configuration { BasePath = basePath }
+ this.Configuration = BrowserUpMitmProxyClient.Client.Configuration.MergeConfigurations(
+ BrowserUpMitmProxyClient.Client.GlobalConfiguration.Instance,
+ new BrowserUpMitmProxyClient.Client.Configuration { BasePath = basePath }
);
- this.Client = new BrowserUp.Mitmproxy.Client.Client.ApiClient(this.Configuration.BasePath);
- this.AsynchronousClient = new BrowserUp.Mitmproxy.Client.Client.ApiClient(this.Configuration.BasePath);
- this.ExceptionFactory = BrowserUp.Mitmproxy.Client.Client.Configuration.DefaultExceptionFactory;
+ this.Client = new BrowserUpMitmProxyClient.Client.ApiClient(this.Configuration.BasePath);
+ this.AsynchronousClient = new BrowserUpMitmProxyClient.Client.ApiClient(this.Configuration.BasePath);
+ this.ExceptionFactory = BrowserUpMitmProxyClient.Client.Configuration.DefaultExceptionFactory;
}
///
@@ -574,17 +574,17 @@ public BrowserUpProxyApi(string basePath)
///
/// An instance of Configuration
///
- public BrowserUpProxyApi(BrowserUp.Mitmproxy.Client.Client.Configuration configuration)
+ public BrowserUpProxyApi(BrowserUpMitmProxyClient.Client.Configuration configuration)
{
if (configuration == null) throw new ArgumentNullException("configuration");
- this.Configuration = BrowserUp.Mitmproxy.Client.Client.Configuration.MergeConfigurations(
- BrowserUp.Mitmproxy.Client.Client.GlobalConfiguration.Instance,
+ this.Configuration = BrowserUpMitmProxyClient.Client.Configuration.MergeConfigurations(
+ BrowserUpMitmProxyClient.Client.GlobalConfiguration.Instance,
configuration
);
- this.Client = new BrowserUp.Mitmproxy.Client.Client.ApiClient(this.Configuration.BasePath);
- this.AsynchronousClient = new BrowserUp.Mitmproxy.Client.Client.ApiClient(this.Configuration.BasePath);
- ExceptionFactory = BrowserUp.Mitmproxy.Client.Client.Configuration.DefaultExceptionFactory;
+ this.Client = new BrowserUpMitmProxyClient.Client.ApiClient(this.Configuration.BasePath);
+ this.AsynchronousClient = new BrowserUpMitmProxyClient.Client.ApiClient(this.Configuration.BasePath);
+ ExceptionFactory = BrowserUpMitmProxyClient.Client.Configuration.DefaultExceptionFactory;
}
///
@@ -594,7 +594,7 @@ public BrowserUpProxyApi(BrowserUp.Mitmproxy.Client.Client.Configuration configu
/// The client interface for synchronous API access.
/// The client interface for asynchronous API access.
/// The configuration object.
- public BrowserUpProxyApi(BrowserUp.Mitmproxy.Client.Client.ISynchronousClient client, BrowserUp.Mitmproxy.Client.Client.IAsynchronousClient asyncClient, BrowserUp.Mitmproxy.Client.Client.IReadableConfiguration configuration)
+ public BrowserUpProxyApi(BrowserUpMitmProxyClient.Client.ISynchronousClient client, BrowserUpMitmProxyClient.Client.IAsynchronousClient asyncClient, BrowserUpMitmProxyClient.Client.IReadableConfiguration configuration)
{
if (client == null) throw new ArgumentNullException("client");
if (asyncClient == null) throw new ArgumentNullException("asyncClient");
@@ -603,18 +603,18 @@ public BrowserUpProxyApi(BrowserUp.Mitmproxy.Client.Client.ISynchronousClient cl
this.Client = client;
this.AsynchronousClient = asyncClient;
this.Configuration = configuration;
- this.ExceptionFactory = BrowserUp.Mitmproxy.Client.Client.Configuration.DefaultExceptionFactory;
+ this.ExceptionFactory = BrowserUpMitmProxyClient.Client.Configuration.DefaultExceptionFactory;
}
///
/// The client for accessing this underlying API asynchronously.
///
- public BrowserUp.Mitmproxy.Client.Client.IAsynchronousClient AsynchronousClient { get; set; }
+ public BrowserUpMitmProxyClient.Client.IAsynchronousClient AsynchronousClient { get; set; }
///
/// The client for accessing this underlying API synchronously.
///
- public BrowserUp.Mitmproxy.Client.Client.ISynchronousClient Client { get; set; }
+ public BrowserUpMitmProxyClient.Client.ISynchronousClient Client { get; set; }
///
/// Gets the base path of the API client.
@@ -629,12 +629,12 @@ public string GetBasePath()
/// Gets or sets the configuration object
///
/// An instance of the Configuration
- public BrowserUp.Mitmproxy.Client.Client.IReadableConfiguration Configuration { get; set; }
+ public BrowserUpMitmProxyClient.Client.IReadableConfiguration Configuration { get; set; }
///
/// Provides a factory method hook for the creation of exceptions.
///
- public BrowserUp.Mitmproxy.Client.Client.ExceptionFactory ExceptionFactory
+ public BrowserUpMitmProxyClient.Client.ExceptionFactory ExceptionFactory
{
get
{
@@ -648,33 +648,33 @@ public BrowserUp.Mitmproxy.Client.Client.ExceptionFactory ExceptionFactory
}
///
- /// Add Custom Counter to the captured traffic har
+ /// Add Custom Error to the captured traffic har
///
- /// Thrown when fails to make API call
- /// Receives a new counter to add. The counter is stored, under the hood, in an array in the har under the _counters key
+ /// Thrown when fails to make API call
+ /// Receives an error to track. Internally, the error is stored in an array in the har under the _errors key
/// Index associated with the operation.
///
- public void AddCounter(Counter counter, int operationIndex = 0)
+ public void AddError(Error error, int operationIndex = 0)
{
- AddCounterWithHttpInfo(counter);
+ AddErrorWithHttpInfo(error);
}
///
- /// Add Custom Counter to the captured traffic har
+ /// Add Custom Error to the captured traffic har
///
- /// Thrown when fails to make API call
- /// Receives a new counter to add. The counter is stored, under the hood, in an array in the har under the _counters key
+ /// Thrown when fails to make API call
+ /// Receives an error to track. Internally, the error is stored in an array in the har under the _errors key
/// Index associated with the operation.
/// ApiResponse of Object(void)
- public BrowserUp.Mitmproxy.Client.Client.ApiResponse AddCounterWithHttpInfo(Counter counter, int operationIndex = 0)
+ public BrowserUpMitmProxyClient.Client.ApiResponse AddErrorWithHttpInfo(Error error, int operationIndex = 0)
{
- // verify the required parameter 'counter' is set
- if (counter == null)
+ // verify the required parameter 'error' is set
+ if (error == null)
{
- throw new BrowserUp.Mitmproxy.Client.Client.ApiException(400, "Missing required parameter 'counter' when calling BrowserUpProxyApi->AddCounter");
+ throw new BrowserUpMitmProxyClient.Client.ApiException(400, "Missing required parameter 'error' when calling BrowserUpProxyApi->AddError");
}
- BrowserUp.Mitmproxy.Client.Client.RequestOptions localVarRequestOptions = new BrowserUp.Mitmproxy.Client.Client.RequestOptions();
+ BrowserUpMitmProxyClient.Client.RequestOptions localVarRequestOptions = new BrowserUpMitmProxyClient.Client.RequestOptions();
string[] _contentTypes = new string[] {
"application/json"
@@ -684,29 +684,29 @@ public BrowserUp.Mitmproxy.Client.Client.ApiResponse AddCounterWithHttpI
string[] _accepts = new string[] {
};
- var localVarContentType = BrowserUp.Mitmproxy.Client.Client.ClientUtils.SelectHeaderContentType(_contentTypes);
+ var localVarContentType = BrowserUpMitmProxyClient.Client.ClientUtils.SelectHeaderContentType(_contentTypes);
if (localVarContentType != null)
{
localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType);
}
- var localVarAccept = BrowserUp.Mitmproxy.Client.Client.ClientUtils.SelectHeaderAccept(_accepts);
+ var localVarAccept = BrowserUpMitmProxyClient.Client.ClientUtils.SelectHeaderAccept(_accepts);
if (localVarAccept != null)
{
localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept);
}
- localVarRequestOptions.Data = counter;
+ localVarRequestOptions.Data = error;
- localVarRequestOptions.Operation = "BrowserUpProxyApi.AddCounter";
+ localVarRequestOptions.Operation = "BrowserUpProxyApi.AddError";
localVarRequestOptions.OperationIndex = operationIndex;
// make the HTTP request
- var localVarResponse = this.Client.Post("/har/counters", localVarRequestOptions, this.Configuration);
+ var localVarResponse = this.Client.Post("/har/errors", localVarRequestOptions, this.Configuration);
if (this.ExceptionFactory != null)
{
- Exception _exception = this.ExceptionFactory("AddCounter", localVarResponse);
+ Exception _exception = this.ExceptionFactory("AddError", localVarResponse);
if (_exception != null)
{
throw _exception;
@@ -717,36 +717,36 @@ public BrowserUp.Mitmproxy.Client.Client.ApiResponse AddCounterWithHttpI
}
///
- /// Add Custom Counter to the captured traffic har
+ /// Add Custom Error to the captured traffic har
///
- /// Thrown when fails to make API call
- /// Receives a new counter to add. The counter is stored, under the hood, in an array in the har under the _counters key
+ /// Thrown when fails to make API call
+ /// Receives an error to track. Internally, the error is stored in an array in the har under the _errors key
/// Index associated with the operation.
/// Cancellation Token to cancel the request.
/// Task of void
- public async System.Threading.Tasks.Task AddCounterAsync(Counter counter, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
+ public async System.Threading.Tasks.Task AddErrorAsync(Error error, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
{
- await AddCounterWithHttpInfoAsync(counter, operationIndex, cancellationToken).ConfigureAwait(false);
+ await AddErrorWithHttpInfoAsync(error, operationIndex, cancellationToken).ConfigureAwait(false);
}
///
- /// Add Custom Counter to the captured traffic har
+ /// Add Custom Error to the captured traffic har
///
- /// Thrown when fails to make API call
- /// Receives a new counter to add. The counter is stored, under the hood, in an array in the har under the _counters key
+ /// Thrown when fails to make API call
+ /// Receives an error to track. Internally, the error is stored in an array in the har under the _errors key
/// Index associated with the operation.
/// Cancellation Token to cancel the request.
/// Task of ApiResponse
- public async System.Threading.Tasks.Task> AddCounterWithHttpInfoAsync(Counter counter, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
+ public async System.Threading.Tasks.Task> AddErrorWithHttpInfoAsync(Error error, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
{
- // verify the required parameter 'counter' is set
- if (counter == null)
+ // verify the required parameter 'error' is set
+ if (error == null)
{
- throw new BrowserUp.Mitmproxy.Client.Client.ApiException(400, "Missing required parameter 'counter' when calling BrowserUpProxyApi->AddCounter");
+ throw new BrowserUpMitmProxyClient.Client.ApiException(400, "Missing required parameter 'error' when calling BrowserUpProxyApi->AddError");
}
- BrowserUp.Mitmproxy.Client.Client.RequestOptions localVarRequestOptions = new BrowserUp.Mitmproxy.Client.Client.RequestOptions();
+ BrowserUpMitmProxyClient.Client.RequestOptions localVarRequestOptions = new BrowserUpMitmProxyClient.Client.RequestOptions();
string[] _contentTypes = new string[] {
"application/json"
@@ -756,30 +756,30 @@ public BrowserUp.Mitmproxy.Client.Client.ApiResponse AddCounterWithHttpI
string[] _accepts = new string[] {
};
- var localVarContentType = BrowserUp.Mitmproxy.Client.Client.ClientUtils.SelectHeaderContentType(_contentTypes);
+ var localVarContentType = BrowserUpMitmProxyClient.Client.ClientUtils.SelectHeaderContentType(_contentTypes);
if (localVarContentType != null)
{
localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType);
}
- var localVarAccept = BrowserUp.Mitmproxy.Client.Client.ClientUtils.SelectHeaderAccept(_accepts);
+ var localVarAccept = BrowserUpMitmProxyClient.Client.ClientUtils.SelectHeaderAccept(_accepts);
if (localVarAccept != null)
{
localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept);
}
- localVarRequestOptions.Data = counter;
+ localVarRequestOptions.Data = error;
- localVarRequestOptions.Operation = "BrowserUpProxyApi.AddCounter";
+ localVarRequestOptions.Operation = "BrowserUpProxyApi.AddError";
localVarRequestOptions.OperationIndex = operationIndex;
// make the HTTP request
- var localVarResponse = await this.AsynchronousClient.PostAsync("/har/counters", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false);
+ var localVarResponse = await this.AsynchronousClient.PostAsync("/har/errors", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false);
if (this.ExceptionFactory != null)
{
- Exception _exception = this.ExceptionFactory("AddCounter", localVarResponse);
+ Exception _exception = this.ExceptionFactory("AddError", localVarResponse);
if (_exception != null)
{
throw _exception;
@@ -790,33 +790,33 @@ public BrowserUp.Mitmproxy.Client.Client.ApiResponse AddCounterWithHttpI
}
///
- /// Add Custom Error to the captured traffic har
+ /// Add Custom Metric to the captured traffic har
///
- /// Thrown when fails to make API call
- /// Receives an error to track. Internally, the error is stored in an array in the har under the _errors key
+ /// Thrown when fails to make API call
+ /// Receives a new metric to add. The metric is stored, under the hood, in an array in the har under the _metrics key
/// Index associated with the operation.
///
- public void AddError(Error error, int operationIndex = 0)
+ public void AddMetric(Metric metric, int operationIndex = 0)
{
- AddErrorWithHttpInfo(error);
+ AddMetricWithHttpInfo(metric);
}
///
- /// Add Custom Error to the captured traffic har
+ /// Add Custom Metric to the captured traffic har
///
- /// Thrown when fails to make API call
- /// Receives an error to track. Internally, the error is stored in an array in the har under the _errors key
+ /// Thrown when fails to make API call
+ /// Receives a new metric to add. The metric is stored, under the hood, in an array in the har under the _metrics key
/// Index associated with the operation.
/// ApiResponse of Object(void)
- public BrowserUp.Mitmproxy.Client.Client.ApiResponse AddErrorWithHttpInfo(Error error, int operationIndex = 0)
+ public BrowserUpMitmProxyClient.Client.ApiResponse AddMetricWithHttpInfo(Metric metric, int operationIndex = 0)
{
- // verify the required parameter 'error' is set
- if (error == null)
+ // verify the required parameter 'metric' is set
+ if (metric == null)
{
- throw new BrowserUp.Mitmproxy.Client.Client.ApiException(400, "Missing required parameter 'error' when calling BrowserUpProxyApi->AddError");
+ throw new BrowserUpMitmProxyClient.Client.ApiException(400, "Missing required parameter 'metric' when calling BrowserUpProxyApi->AddMetric");
}
- BrowserUp.Mitmproxy.Client.Client.RequestOptions localVarRequestOptions = new BrowserUp.Mitmproxy.Client.Client.RequestOptions();
+ BrowserUpMitmProxyClient.Client.RequestOptions localVarRequestOptions = new BrowserUpMitmProxyClient.Client.RequestOptions();
string[] _contentTypes = new string[] {
"application/json"
@@ -826,29 +826,29 @@ public BrowserUp.Mitmproxy.Client.Client.ApiResponse AddErrorWithHttpInf
string[] _accepts = new string[] {
};
- var localVarContentType = BrowserUp.Mitmproxy.Client.Client.ClientUtils.SelectHeaderContentType(_contentTypes);
+ var localVarContentType = BrowserUpMitmProxyClient.Client.ClientUtils.SelectHeaderContentType(_contentTypes);
if (localVarContentType != null)
{
localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType);
}
- var localVarAccept = BrowserUp.Mitmproxy.Client.Client.ClientUtils.SelectHeaderAccept(_accepts);
+ var localVarAccept = BrowserUpMitmProxyClient.Client.ClientUtils.SelectHeaderAccept(_accepts);
if (localVarAccept != null)
{
localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept);
}
- localVarRequestOptions.Data = error;
+ localVarRequestOptions.Data = metric;
- localVarRequestOptions.Operation = "BrowserUpProxyApi.AddError";
+ localVarRequestOptions.Operation = "BrowserUpProxyApi.AddMetric";
localVarRequestOptions.OperationIndex = operationIndex;
// make the HTTP request
- var localVarResponse = this.Client.Post("/har/errors", localVarRequestOptions, this.Configuration);
+ var localVarResponse = this.Client.Post("/har/metrics", localVarRequestOptions, this.Configuration);
if (this.ExceptionFactory != null)
{
- Exception _exception = this.ExceptionFactory("AddError", localVarResponse);
+ Exception _exception = this.ExceptionFactory("AddMetric", localVarResponse);
if (_exception != null)
{
throw _exception;
@@ -859,36 +859,36 @@ public BrowserUp.Mitmproxy.Client.Client.ApiResponse AddErrorWithHttpInf
}
///
- /// Add Custom Error to the captured traffic har
+ /// Add Custom Metric to the captured traffic har
///
- /// Thrown when fails to make API call
- /// Receives an error to track. Internally, the error is stored in an array in the har under the _errors key
+ /// Thrown when fails to make API call
+ /// Receives a new metric to add. The metric is stored, under the hood, in an array in the har under the _metrics key
/// Index associated with the operation.
/// Cancellation Token to cancel the request.
/// Task of void
- public async System.Threading.Tasks.Task AddErrorAsync(Error error, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
+ public async System.Threading.Tasks.Task AddMetricAsync(Metric metric, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
{
- await AddErrorWithHttpInfoAsync(error, operationIndex, cancellationToken).ConfigureAwait(false);
+ await AddMetricWithHttpInfoAsync(metric, operationIndex, cancellationToken).ConfigureAwait(false);
}
///
- /// Add Custom Error to the captured traffic har
+ /// Add Custom Metric to the captured traffic har
///
- /// Thrown when fails to make API call
- /// Receives an error to track. Internally, the error is stored in an array in the har under the _errors key
+ /// Thrown when fails to make API call
+ /// Receives a new metric to add. The metric is stored, under the hood, in an array in the har under the _metrics key
/// Index associated with the operation.
/// Cancellation Token to cancel the request.
/// Task of ApiResponse
- public async System.Threading.Tasks.Task> AddErrorWithHttpInfoAsync(Error error, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
+ public async System.Threading.Tasks.Task> AddMetricWithHttpInfoAsync(Metric metric, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
{
- // verify the required parameter 'error' is set
- if (error == null)
+ // verify the required parameter 'metric' is set
+ if (metric == null)
{
- throw new BrowserUp.Mitmproxy.Client.Client.ApiException(400, "Missing required parameter 'error' when calling BrowserUpProxyApi->AddError");
+ throw new BrowserUpMitmProxyClient.Client.ApiException(400, "Missing required parameter 'metric' when calling BrowserUpProxyApi->AddMetric");
}
- BrowserUp.Mitmproxy.Client.Client.RequestOptions localVarRequestOptions = new BrowserUp.Mitmproxy.Client.Client.RequestOptions();
+ BrowserUpMitmProxyClient.Client.RequestOptions localVarRequestOptions = new BrowserUpMitmProxyClient.Client.RequestOptions();
string[] _contentTypes = new string[] {
"application/json"
@@ -898,30 +898,30 @@ public BrowserUp.Mitmproxy.Client.Client.ApiResponse AddErrorWithHttpInf
string[] _accepts = new string[] {
};
- var localVarContentType = BrowserUp.Mitmproxy.Client.Client.ClientUtils.SelectHeaderContentType(_contentTypes);
+ var localVarContentType = BrowserUpMitmProxyClient.Client.ClientUtils.SelectHeaderContentType(_contentTypes);
if (localVarContentType != null)
{
localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType);
}
- var localVarAccept = BrowserUp.Mitmproxy.Client.Client.ClientUtils.SelectHeaderAccept(_accepts);
+ var localVarAccept = BrowserUpMitmProxyClient.Client.ClientUtils.SelectHeaderAccept(_accepts);
if (localVarAccept != null)
{
localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept);
}
- localVarRequestOptions.Data = error;
+ localVarRequestOptions.Data = metric;
- localVarRequestOptions.Operation = "BrowserUpProxyApi.AddError";
+ localVarRequestOptions.Operation = "BrowserUpProxyApi.AddMetric";
localVarRequestOptions.OperationIndex = operationIndex;
// make the HTTP request
- var localVarResponse = await this.AsynchronousClient.PostAsync("/har/errors", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false);
+ var localVarResponse = await this.AsynchronousClient.PostAsync("/har/metrics", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false);
if (this.ExceptionFactory != null)
{
- Exception _exception = this.ExceptionFactory("AddError", localVarResponse);
+ Exception _exception = this.ExceptionFactory("AddMetric", localVarResponse);
if (_exception != null)
{
throw _exception;
@@ -934,24 +934,24 @@ public BrowserUp.Mitmproxy.Client.Client.ApiResponse AddErrorWithHttpInf
///
/// Get the current HAR.
///
- /// Thrown when fails to make API call
+ /// Thrown when fails to make API call
/// Index associated with the operation.
/// Har
public Har GetHarLog(int operationIndex = 0)
{
- BrowserUp.Mitmproxy.Client.Client.ApiResponse localVarResponse = GetHarLogWithHttpInfo();
+ BrowserUpMitmProxyClient.Client.ApiResponse localVarResponse = GetHarLogWithHttpInfo();
return localVarResponse.Data;
}
///
/// Get the current HAR.
///
- /// Thrown when fails to make API call
+ /// Thrown when fails to make API call
/// Index associated with the operation.
/// ApiResponse of Har
- public BrowserUp.Mitmproxy.Client.Client.ApiResponse GetHarLogWithHttpInfo(int operationIndex = 0)
+ public BrowserUpMitmProxyClient.Client.ApiResponse GetHarLogWithHttpInfo(int operationIndex = 0)
{
- BrowserUp.Mitmproxy.Client.Client.RequestOptions localVarRequestOptions = new BrowserUp.Mitmproxy.Client.Client.RequestOptions();
+ BrowserUpMitmProxyClient.Client.RequestOptions localVarRequestOptions = new BrowserUpMitmProxyClient.Client.RequestOptions();
string[] _contentTypes = new string[] {
};
@@ -961,13 +961,13 @@ public BrowserUp.Mitmproxy.Client.Client.ApiResponse GetHarLogWithHttpInfo(
"application/json"
};
- var localVarContentType = BrowserUp.Mitmproxy.Client.Client.ClientUtils.SelectHeaderContentType(_contentTypes);
+ var localVarContentType = BrowserUpMitmProxyClient.Client.ClientUtils.SelectHeaderContentType(_contentTypes);
if (localVarContentType != null)
{
localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType);
}
- var localVarAccept = BrowserUp.Mitmproxy.Client.Client.ClientUtils.SelectHeaderAccept(_accepts);
+ var localVarAccept = BrowserUpMitmProxyClient.Client.ClientUtils.SelectHeaderAccept(_accepts);
if (localVarAccept != null)
{
localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept);
@@ -995,27 +995,27 @@ public BrowserUp.Mitmproxy.Client.Client.ApiResponse GetHarLogWithHttpInfo(
///
/// Get the current HAR.
///
- /// Thrown when fails to make API call
+ /// Thrown when fails to make API call
/// Index associated with the operation.
/// Cancellation Token to cancel the request.
/// Task of Har
public async System.Threading.Tasks.Task GetHarLogAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
{
- BrowserUp.Mitmproxy.Client.Client.ApiResponse localVarResponse = await GetHarLogWithHttpInfoAsync(operationIndex, cancellationToken).ConfigureAwait(false);
+ BrowserUpMitmProxyClient.Client.ApiResponse localVarResponse = await GetHarLogWithHttpInfoAsync(operationIndex, cancellationToken).ConfigureAwait(false);
return localVarResponse.Data;
}
///
/// Get the current HAR.
///
- /// Thrown when fails to make API call
+ /// Thrown when fails to make API call
/// Index associated with the operation.
/// Cancellation Token to cancel the request.
/// Task of ApiResponse (Har)
- public async System.Threading.Tasks.Task> GetHarLogWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
+ public async System.Threading.Tasks.Task> GetHarLogWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
{
- BrowserUp.Mitmproxy.Client.Client.RequestOptions localVarRequestOptions = new BrowserUp.Mitmproxy.Client.Client.RequestOptions();
+ BrowserUpMitmProxyClient.Client.RequestOptions localVarRequestOptions = new BrowserUpMitmProxyClient.Client.RequestOptions();
string[] _contentTypes = new string[] {
};
@@ -1025,13 +1025,13 @@ public BrowserUp.Mitmproxy.Client.Client.ApiResponse GetHarLogWithHttpInfo(
"application/json"
};
- var localVarContentType = BrowserUp.Mitmproxy.Client.Client.ClientUtils.SelectHeaderContentType(_contentTypes);
+ var localVarContentType = BrowserUpMitmProxyClient.Client.ClientUtils.SelectHeaderContentType(_contentTypes);
if (localVarContentType != null)
{
localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType);
}
- var localVarAccept = BrowserUp.Mitmproxy.Client.Client.ClientUtils.SelectHeaderAccept(_accepts);
+ var localVarAccept = BrowserUpMitmProxyClient.Client.ClientUtils.SelectHeaderAccept(_accepts);
if (localVarAccept != null)
{
localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept);
@@ -1060,7 +1060,7 @@ public BrowserUp.Mitmproxy.Client.Client.ApiResponse GetHarLogWithHttpInfo(
///
/// Get the healthcheck
///
- /// Thrown when fails to make API call
+ /// Thrown when fails to make API call
/// Index associated with the operation.
///
public void Healthcheck(int operationIndex = 0)
@@ -1071,12 +1071,12 @@ public void Healthcheck(int operationIndex = 0)
///
/// Get the healthcheck
///
- /// Thrown when fails to make API call
+ /// Thrown when fails to make API call
/// Index associated with the operation.
/// ApiResponse of Object(void)
- public BrowserUp.Mitmproxy.Client.Client.ApiResponse HealthcheckWithHttpInfo(int operationIndex = 0)
+ public BrowserUpMitmProxyClient.Client.ApiResponse HealthcheckWithHttpInfo(int operationIndex = 0)
{
- BrowserUp.Mitmproxy.Client.Client.RequestOptions localVarRequestOptions = new BrowserUp.Mitmproxy.Client.Client.RequestOptions();
+ BrowserUpMitmProxyClient.Client.RequestOptions localVarRequestOptions = new BrowserUpMitmProxyClient.Client.RequestOptions();
string[] _contentTypes = new string[] {
};
@@ -1085,13 +1085,13 @@ public BrowserUp.Mitmproxy.Client.Client.ApiResponse HealthcheckWithHttp
string[] _accepts = new string[] {
};
- var localVarContentType = BrowserUp.Mitmproxy.Client.Client.ClientUtils.SelectHeaderContentType(_contentTypes);
+ var localVarContentType = BrowserUpMitmProxyClient.Client.ClientUtils.SelectHeaderContentType(_contentTypes);
if (localVarContentType != null)
{
localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType);
}
- var localVarAccept = BrowserUp.Mitmproxy.Client.Client.ClientUtils.SelectHeaderAccept(_accepts);
+ var localVarAccept = BrowserUpMitmProxyClient.Client.ClientUtils.SelectHeaderAccept(_accepts);
if (localVarAccept != null)
{
localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept);
@@ -1119,7 +1119,7 @@ public BrowserUp.Mitmproxy.Client.Client.ApiResponse HealthcheckWithHttp
///
/// Get the healthcheck
///
- /// Thrown when fails to make API call
+ /// Thrown when fails to make API call
/// Index associated with the operation.
/// Cancellation Token to cancel the request.
/// Task of void
@@ -1131,14 +1131,14 @@ public BrowserUp.Mitmproxy.Client.Client.ApiResponse HealthcheckWithHttp
///
/// Get the healthcheck
///
- /// Thrown when fails to make API call
+ /// Thrown when fails to make API call
/// Index associated with the operation.
/// Cancellation Token to cancel the request.
/// Task of ApiResponse
- public async System.Threading.Tasks.Task> HealthcheckWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
+ public async System.Threading.Tasks.Task> HealthcheckWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
{
- BrowserUp.Mitmproxy.Client.Client.RequestOptions localVarRequestOptions = new BrowserUp.Mitmproxy.Client.Client.RequestOptions();
+ BrowserUpMitmProxyClient.Client.RequestOptions localVarRequestOptions = new BrowserUpMitmProxyClient.Client.RequestOptions();
string[] _contentTypes = new string[] {
};
@@ -1147,13 +1147,13 @@ public BrowserUp.Mitmproxy.Client.Client.ApiResponse HealthcheckWithHttp
string[] _accepts = new string[] {
};
- var localVarContentType = BrowserUp.Mitmproxy.Client.Client.ClientUtils.SelectHeaderContentType(_contentTypes);
+ var localVarContentType = BrowserUpMitmProxyClient.Client.ClientUtils.SelectHeaderContentType(_contentTypes);
if (localVarContentType != null)
{
localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType);
}
- var localVarAccept = BrowserUp.Mitmproxy.Client.Client.ClientUtils.SelectHeaderAccept(_accepts);
+ var localVarAccept = BrowserUpMitmProxyClient.Client.ClientUtils.SelectHeaderAccept(_accepts);
if (localVarAccept != null)
{
localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept);
@@ -1182,32 +1182,32 @@ public BrowserUp.Mitmproxy.Client.Client.ApiResponse HealthcheckWithHttp
///
/// Starts a fresh HAR Page (Step) in the current active HAR to group requests.
///
- /// Thrown when fails to make API call
+ /// Thrown when fails to make API call
/// The unique title for this har page/step.
/// Index associated with the operation.
/// Har
public Har NewPage(string title, int operationIndex = 0)
{
- BrowserUp.Mitmproxy.Client.Client.ApiResponse localVarResponse = NewPageWithHttpInfo(title);
+ BrowserUpMitmProxyClient.Client.ApiResponse localVarResponse = NewPageWithHttpInfo(title);
return localVarResponse.Data;
}
///
/// Starts a fresh HAR Page (Step) in the current active HAR to group requests.
///
- /// Thrown when fails to make API call
+ /// Thrown when fails to make API call
/// The unique title for this har page/step.
/// Index associated with the operation.
/// ApiResponse of Har
- public BrowserUp.Mitmproxy.Client.Client.ApiResponse NewPageWithHttpInfo(string title, int operationIndex = 0)
+ public BrowserUpMitmProxyClient.Client.ApiResponse NewPageWithHttpInfo(string title, int operationIndex = 0)
{
// verify the required parameter 'title' is set
if (title == null)
{
- throw new BrowserUp.Mitmproxy.Client.Client.ApiException(400, "Missing required parameter 'title' when calling BrowserUpProxyApi->NewPage");
+ throw new BrowserUpMitmProxyClient.Client.ApiException(400, "Missing required parameter 'title' when calling BrowserUpProxyApi->NewPage");
}
- BrowserUp.Mitmproxy.Client.Client.RequestOptions localVarRequestOptions = new BrowserUp.Mitmproxy.Client.Client.RequestOptions();
+ BrowserUpMitmProxyClient.Client.RequestOptions localVarRequestOptions = new BrowserUpMitmProxyClient.Client.RequestOptions();
string[] _contentTypes = new string[] {
};
@@ -1217,19 +1217,19 @@ public BrowserUp.Mitmproxy.Client.Client.ApiResponse NewPageWithHttpInfo(st
"application/json"
};
- var localVarContentType = BrowserUp.Mitmproxy.Client.Client.ClientUtils.SelectHeaderContentType(_contentTypes);
+ var localVarContentType = BrowserUpMitmProxyClient.Client.ClientUtils.SelectHeaderContentType(_contentTypes);
if (localVarContentType != null)
{
localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType);
}
- var localVarAccept = BrowserUp.Mitmproxy.Client.Client.ClientUtils.SelectHeaderAccept(_accepts);
+ var localVarAccept = BrowserUpMitmProxyClient.Client.ClientUtils.SelectHeaderAccept(_accepts);
if (localVarAccept != null)
{
localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept);
}
- localVarRequestOptions.PathParameters.Add("title", BrowserUp.Mitmproxy.Client.Client.ClientUtils.ParameterToString(title)); // path parameter
+ localVarRequestOptions.PathParameters.Add("title", BrowserUpMitmProxyClient.Client.ClientUtils.ParameterToString(title)); // path parameter
localVarRequestOptions.Operation = "BrowserUpProxyApi.NewPage";
localVarRequestOptions.OperationIndex = operationIndex;
@@ -1252,35 +1252,35 @@ public BrowserUp.Mitmproxy.Client.Client.ApiResponse NewPageWithHttpInfo(st
///
/// Starts a fresh HAR Page (Step) in the current active HAR to group requests.
///
- /// Thrown when fails to make API call
+ /// Thrown when fails to make API call
/// The unique title for this har page/step.
/// Index associated with the operation.
/// Cancellation Token to cancel the request.
/// Task of Har
public async System.Threading.Tasks.Task NewPageAsync(string title, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
{
- BrowserUp.Mitmproxy.Client.Client.ApiResponse localVarResponse = await NewPageWithHttpInfoAsync(title, operationIndex, cancellationToken).ConfigureAwait(false);
+ BrowserUpMitmProxyClient.Client.ApiResponse localVarResponse = await NewPageWithHttpInfoAsync(title, operationIndex, cancellationToken).ConfigureAwait(false);
return localVarResponse.Data;
}
///
/// Starts a fresh HAR Page (Step) in the current active HAR to group requests.
///
- /// Thrown when fails to make API call
+ /// Thrown when fails to make API call
/// The unique title for this har page/step.
/// Index associated with the operation.
/// Cancellation Token to cancel the request.
/// Task of ApiResponse (Har)
- public async System.Threading.Tasks.Task> NewPageWithHttpInfoAsync(string title, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
+ public async System.Threading.Tasks.Task> NewPageWithHttpInfoAsync(string title, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
{
// verify the required parameter 'title' is set
if (title == null)
{
- throw new BrowserUp.Mitmproxy.Client.Client.ApiException(400, "Missing required parameter 'title' when calling BrowserUpProxyApi->NewPage");
+ throw new BrowserUpMitmProxyClient.Client.ApiException(400, "Missing required parameter 'title' when calling BrowserUpProxyApi->NewPage");
}
- BrowserUp.Mitmproxy.Client.Client.RequestOptions localVarRequestOptions = new BrowserUp.Mitmproxy.Client.Client.RequestOptions();
+ BrowserUpMitmProxyClient.Client.RequestOptions localVarRequestOptions = new BrowserUpMitmProxyClient.Client.RequestOptions();
string[] _contentTypes = new string[] {
};
@@ -1290,19 +1290,19 @@ public BrowserUp.Mitmproxy.Client.Client.ApiResponse NewPageWithHttpInfo(st
"application/json"
};
- var localVarContentType = BrowserUp.Mitmproxy.Client.Client.ClientUtils.SelectHeaderContentType(_contentTypes);
+ var localVarContentType = BrowserUpMitmProxyClient.Client.ClientUtils.SelectHeaderContentType(_contentTypes);
if (localVarContentType != null)
{
localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType);
}
- var localVarAccept = BrowserUp.Mitmproxy.Client.Client.ClientUtils.SelectHeaderAccept(_accepts);
+ var localVarAccept = BrowserUpMitmProxyClient.Client.ClientUtils.SelectHeaderAccept(_accepts);
if (localVarAccept != null)
{
localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept);
}
- localVarRequestOptions.PathParameters.Add("title", BrowserUp.Mitmproxy.Client.Client.ClientUtils.ParameterToString(title)); // path parameter
+ localVarRequestOptions.PathParameters.Add("title", BrowserUpMitmProxyClient.Client.ClientUtils.ParameterToString(title)); // path parameter
localVarRequestOptions.Operation = "BrowserUpProxyApi.NewPage";
localVarRequestOptions.OperationIndex = operationIndex;
@@ -1326,24 +1326,24 @@ public BrowserUp.Mitmproxy.Client.Client.ApiResponse NewPageWithHttpInfo(st
///
/// Starts a fresh HAR capture session.
///
- /// Thrown when fails to make API call
+ /// Thrown when fails to make API call
/// Index associated with the operation.
/// Har
public Har ResetHarLog(int operationIndex = 0)
{
- BrowserUp.Mitmproxy.Client.Client.ApiResponse localVarResponse = ResetHarLogWithHttpInfo();
+ BrowserUpMitmProxyClient.Client.ApiResponse localVarResponse = ResetHarLogWithHttpInfo();
return localVarResponse.Data;
}
///
/// Starts a fresh HAR capture session.
///
- /// Thrown when fails to make API call
+ /// Thrown when fails to make API call
/// Index associated with the operation.
/// ApiResponse of Har
- public BrowserUp.Mitmproxy.Client.Client.ApiResponse ResetHarLogWithHttpInfo(int operationIndex = 0)
+ public BrowserUpMitmProxyClient.Client.ApiResponse ResetHarLogWithHttpInfo(int operationIndex = 0)
{
- BrowserUp.Mitmproxy.Client.Client.RequestOptions localVarRequestOptions = new BrowserUp.Mitmproxy.Client.Client.RequestOptions();
+ BrowserUpMitmProxyClient.Client.RequestOptions localVarRequestOptions = new BrowserUpMitmProxyClient.Client.RequestOptions();
string[] _contentTypes = new string[] {
};
@@ -1353,13 +1353,13 @@ public BrowserUp.Mitmproxy.Client.Client.ApiResponse ResetHarLogWithHttpInf
"application/json"
};
- var localVarContentType = BrowserUp.Mitmproxy.Client.Client.ClientUtils.SelectHeaderContentType(_contentTypes);
+ var localVarContentType = BrowserUpMitmProxyClient.Client.ClientUtils.SelectHeaderContentType(_contentTypes);
if (localVarContentType != null)
{
localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType);
}
- var localVarAccept = BrowserUp.Mitmproxy.Client.Client.ClientUtils.SelectHeaderAccept(_accepts);
+ var localVarAccept = BrowserUpMitmProxyClient.Client.ClientUtils.SelectHeaderAccept(_accepts);
if (localVarAccept != null)
{
localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept);
@@ -1387,27 +1387,27 @@ public BrowserUp.Mitmproxy.Client.Client.ApiResponse ResetHarLogWithHttpInf
///
/// Starts a fresh HAR capture session.
///
- /// Thrown when fails to make API call
+ /// Thrown when fails to make API call
/// Index associated with the operation.
/// Cancellation Token to cancel the request.
/// Task of Har
public async System.Threading.Tasks.Task ResetHarLogAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
{
- BrowserUp.Mitmproxy.Client.Client.ApiResponse localVarResponse = await ResetHarLogWithHttpInfoAsync(operationIndex, cancellationToken).ConfigureAwait(false);
+ BrowserUpMitmProxyClient.Client.ApiResponse localVarResponse = await ResetHarLogWithHttpInfoAsync(operationIndex, cancellationToken).ConfigureAwait(false);
return localVarResponse.Data;
}
///
/// Starts a fresh HAR capture session.
///
- /// Thrown when fails to make API call
+ /// Thrown when fails to make API call
/// Index associated with the operation.
/// Cancellation Token to cancel the request.
/// Task of ApiResponse (Har)
- public async System.Threading.Tasks.Task> ResetHarLogWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
+ public async System.Threading.Tasks.Task> ResetHarLogWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
{
- BrowserUp.Mitmproxy.Client.Client.RequestOptions localVarRequestOptions = new BrowserUp.Mitmproxy.Client.Client.RequestOptions();
+ BrowserUpMitmProxyClient.Client.RequestOptions localVarRequestOptions = new BrowserUpMitmProxyClient.Client.RequestOptions();
string[] _contentTypes = new string[] {
};
@@ -1417,13 +1417,13 @@ public BrowserUp.Mitmproxy.Client.Client.ApiResponse ResetHarLogWithHttpInf
"application/json"
};
- var localVarContentType = BrowserUp.Mitmproxy.Client.Client.ClientUtils.SelectHeaderContentType(_contentTypes);
+ var localVarContentType = BrowserUpMitmProxyClient.Client.ClientUtils.SelectHeaderContentType(_contentTypes);
if (localVarContentType != null)
{
localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType);
}
- var localVarAccept = BrowserUp.Mitmproxy.Client.Client.ClientUtils.SelectHeaderAccept(_accepts);
+ var localVarAccept = BrowserUpMitmProxyClient.Client.ClientUtils.SelectHeaderAccept(_accepts);
if (localVarAccept != null)
{
localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept);
@@ -1452,40 +1452,40 @@ public BrowserUp.Mitmproxy.Client.Client.ApiResponse ResetHarLogWithHttpInf
///
/// Verify no matching items are present in the captured traffic
///
- /// Thrown when fails to make API call
+ /// Thrown when fails to make API call
/// The unique name for this verification operation
/// Match criteria to select requests - response pairs for size tests
/// Index associated with the operation.
/// VerifyResult
public VerifyResult VerifyNotPresent(string name, MatchCriteria matchCriteria, int operationIndex = 0)
{
- BrowserUp.Mitmproxy.Client.Client.ApiResponse localVarResponse = VerifyNotPresentWithHttpInfo(name, matchCriteria);
+ BrowserUpMitmProxyClient.Client.ApiResponse localVarResponse = VerifyNotPresentWithHttpInfo(name, matchCriteria);
return localVarResponse.Data;
}
///
/// Verify no matching items are present in the captured traffic
///
- /// Thrown when fails to make API call
+ /// Thrown when fails to make API call
/// The unique name for this verification operation
/// Match criteria to select requests - response pairs for size tests
/// Index associated with the operation.
/// ApiResponse of VerifyResult
- public BrowserUp.Mitmproxy.Client.Client.ApiResponse VerifyNotPresentWithHttpInfo(string name, MatchCriteria matchCriteria, int operationIndex = 0)
+ public BrowserUpMitmProxyClient.Client.ApiResponse VerifyNotPresentWithHttpInfo(string name, MatchCriteria matchCriteria, int operationIndex = 0)
{
// verify the required parameter 'name' is set
if (name == null)
{
- throw new BrowserUp.Mitmproxy.Client.Client.ApiException(400, "Missing required parameter 'name' when calling BrowserUpProxyApi->VerifyNotPresent");
+ throw new BrowserUpMitmProxyClient.Client.ApiException(400, "Missing required parameter 'name' when calling BrowserUpProxyApi->VerifyNotPresent");
}
// verify the required parameter 'matchCriteria' is set
if (matchCriteria == null)
{
- throw new BrowserUp.Mitmproxy.Client.Client.ApiException(400, "Missing required parameter 'matchCriteria' when calling BrowserUpProxyApi->VerifyNotPresent");
+ throw new BrowserUpMitmProxyClient.Client.ApiException(400, "Missing required parameter 'matchCriteria' when calling BrowserUpProxyApi->VerifyNotPresent");
}
- BrowserUp.Mitmproxy.Client.Client.RequestOptions localVarRequestOptions = new BrowserUp.Mitmproxy.Client.Client.RequestOptions();
+ BrowserUpMitmProxyClient.Client.RequestOptions localVarRequestOptions = new BrowserUpMitmProxyClient.Client.RequestOptions();
string[] _contentTypes = new string[] {
"application/json"
@@ -1496,19 +1496,19 @@ public BrowserUp.Mitmproxy.Client.Client.ApiResponse VerifyNotPres
"application/json"
};
- var localVarContentType = BrowserUp.Mitmproxy.Client.Client.ClientUtils.SelectHeaderContentType(_contentTypes);
+ var localVarContentType = BrowserUpMitmProxyClient.Client.ClientUtils.SelectHeaderContentType(_contentTypes);
if (localVarContentType != null)
{
localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType);
}
- var localVarAccept = BrowserUp.Mitmproxy.Client.Client.ClientUtils.SelectHeaderAccept(_accepts);
+ var localVarAccept = BrowserUpMitmProxyClient.Client.ClientUtils.SelectHeaderAccept(_accepts);
if (localVarAccept != null)
{
localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept);
}
- localVarRequestOptions.PathParameters.Add("name", BrowserUp.Mitmproxy.Client.Client.ClientUtils.ParameterToString(name)); // path parameter
+ localVarRequestOptions.PathParameters.Add("name", BrowserUpMitmProxyClient.Client.ClientUtils.ParameterToString(name)); // path parameter
localVarRequestOptions.Data = matchCriteria;
localVarRequestOptions.Operation = "BrowserUpProxyApi.VerifyNotPresent";
@@ -1532,7 +1532,7 @@ public BrowserUp.Mitmproxy.Client.Client.ApiResponse VerifyNotPres
///
/// Verify no matching items are present in the captured traffic
///
- /// Thrown when fails to make API call
+ /// Thrown when fails to make API call
/// The unique name for this verification operation
/// Match criteria to select requests - response pairs for size tests
/// Index associated with the operation.
@@ -1540,35 +1540,35 @@ public BrowserUp.Mitmproxy.Client.Client.ApiResponse VerifyNotPres
/// Task of VerifyResult
public async System.Threading.Tasks.Task VerifyNotPresentAsync(string name, MatchCriteria matchCriteria, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
{
- BrowserUp.Mitmproxy.Client.Client.ApiResponse localVarResponse = await VerifyNotPresentWithHttpInfoAsync(name, matchCriteria, operationIndex, cancellationToken).ConfigureAwait(false);
+ BrowserUpMitmProxyClient.Client.ApiResponse localVarResponse = await VerifyNotPresentWithHttpInfoAsync(name, matchCriteria, operationIndex, cancellationToken).ConfigureAwait(false);
return localVarResponse.Data;
}
///
/// Verify no matching items are present in the captured traffic
///
- /// Thrown when fails to make API call
+ /// Thrown when fails to make API call
/// The unique name for this verification operation
/// Match criteria to select requests - response pairs for size tests
/// Index associated with the operation.
/// Cancellation Token to cancel the request.
/// Task of ApiResponse (VerifyResult)
- public async System.Threading.Tasks.Task> VerifyNotPresentWithHttpInfoAsync(string name, MatchCriteria matchCriteria, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
+ public async System.Threading.Tasks.Task> VerifyNotPresentWithHttpInfoAsync(string name, MatchCriteria matchCriteria, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
{
// verify the required parameter 'name' is set
if (name == null)
{
- throw new BrowserUp.Mitmproxy.Client.Client.ApiException(400, "Missing required parameter 'name' when calling BrowserUpProxyApi->VerifyNotPresent");
+ throw new BrowserUpMitmProxyClient.Client.ApiException(400, "Missing required parameter 'name' when calling BrowserUpProxyApi->VerifyNotPresent");
}
// verify the required parameter 'matchCriteria' is set
if (matchCriteria == null)
{
- throw new BrowserUp.Mitmproxy.Client.Client.ApiException(400, "Missing required parameter 'matchCriteria' when calling BrowserUpProxyApi->VerifyNotPresent");
+ throw new BrowserUpMitmProxyClient.Client.ApiException(400, "Missing required parameter 'matchCriteria' when calling BrowserUpProxyApi->VerifyNotPresent");
}
- BrowserUp.Mitmproxy.Client.Client.RequestOptions localVarRequestOptions = new BrowserUp.Mitmproxy.Client.Client.RequestOptions();
+ BrowserUpMitmProxyClient.Client.RequestOptions localVarRequestOptions = new BrowserUpMitmProxyClient.Client.RequestOptions();
string[] _contentTypes = new string[] {
"application/json"
@@ -1579,19 +1579,19 @@ public BrowserUp.Mitmproxy.Client.Client.ApiResponse VerifyNotPres
"application/json"
};
- var localVarContentType = BrowserUp.Mitmproxy.Client.Client.ClientUtils.SelectHeaderContentType(_contentTypes);
+ var localVarContentType = BrowserUpMitmProxyClient.Client.ClientUtils.SelectHeaderContentType(_contentTypes);
if (localVarContentType != null)
{
localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType);
}
- var localVarAccept = BrowserUp.Mitmproxy.Client.Client.ClientUtils.SelectHeaderAccept(_accepts);
+ var localVarAccept = BrowserUpMitmProxyClient.Client.ClientUtils.SelectHeaderAccept(_accepts);
if (localVarAccept != null)
{
localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept);
}
- localVarRequestOptions.PathParameters.Add("name", BrowserUp.Mitmproxy.Client.Client.ClientUtils.ParameterToString(name)); // path parameter
+ localVarRequestOptions.PathParameters.Add("name", BrowserUpMitmProxyClient.Client.ClientUtils.ParameterToString(name)); // path parameter
localVarRequestOptions.Data = matchCriteria;
localVarRequestOptions.Operation = "BrowserUpProxyApi.VerifyNotPresent";
@@ -1616,40 +1616,40 @@ public BrowserUp.Mitmproxy.Client.Client.ApiResponse VerifyNotPres
///
/// Verify at least one matching item is present in the captured traffic
///
- /// Thrown when fails to make API call
+ /// Thrown when fails to make API call
/// The unique name for this verification operation
/// Match criteria to select requests - response pairs for size tests
/// Index associated with the operation.
/// VerifyResult
public VerifyResult VerifyPresent(string name, MatchCriteria matchCriteria, int operationIndex = 0)
{
- BrowserUp.Mitmproxy.Client.Client.ApiResponse localVarResponse = VerifyPresentWithHttpInfo(name, matchCriteria);
+ BrowserUpMitmProxyClient.Client.ApiResponse localVarResponse = VerifyPresentWithHttpInfo(name, matchCriteria);
return localVarResponse.Data;
}
///
/// Verify at least one matching item is present in the captured traffic
///
- /// Thrown when fails to make API call
+ /// Thrown when fails to make API call
/// The unique name for this verification operation
/// Match criteria to select requests - response pairs for size tests
/// Index associated with the operation.
/// ApiResponse of VerifyResult
- public BrowserUp.Mitmproxy.Client.Client.ApiResponse VerifyPresentWithHttpInfo(string name, MatchCriteria matchCriteria, int operationIndex = 0)
+ public BrowserUpMitmProxyClient.Client.ApiResponse VerifyPresentWithHttpInfo(string name, MatchCriteria matchCriteria, int operationIndex = 0)
{
// verify the required parameter 'name' is set
if (name == null)
{
- throw new BrowserUp.Mitmproxy.Client.Client.ApiException(400, "Missing required parameter 'name' when calling BrowserUpProxyApi->VerifyPresent");
+ throw new BrowserUpMitmProxyClient.Client.ApiException(400, "Missing required parameter 'name' when calling BrowserUpProxyApi->VerifyPresent");
}
// verify the required parameter 'matchCriteria' is set
if (matchCriteria == null)
{
- throw new BrowserUp.Mitmproxy.Client.Client.ApiException(400, "Missing required parameter 'matchCriteria' when calling BrowserUpProxyApi->VerifyPresent");
+ throw new BrowserUpMitmProxyClient.Client.ApiException(400, "Missing required parameter 'matchCriteria' when calling BrowserUpProxyApi->VerifyPresent");
}
- BrowserUp.Mitmproxy.Client.Client.RequestOptions localVarRequestOptions = new BrowserUp.Mitmproxy.Client.Client.RequestOptions();
+ BrowserUpMitmProxyClient.Client.RequestOptions localVarRequestOptions = new BrowserUpMitmProxyClient.Client.RequestOptions();
string[] _contentTypes = new string[] {
"application/json"
@@ -1660,19 +1660,19 @@ public BrowserUp.Mitmproxy.Client.Client.ApiResponse VerifyPresent
"application/json"
};
- var localVarContentType = BrowserUp.Mitmproxy.Client.Client.ClientUtils.SelectHeaderContentType(_contentTypes);
+ var localVarContentType = BrowserUpMitmProxyClient.Client.ClientUtils.SelectHeaderContentType(_contentTypes);
if (localVarContentType != null)
{
localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType);
}
- var localVarAccept = BrowserUp.Mitmproxy.Client.Client.ClientUtils.SelectHeaderAccept(_accepts);
+ var localVarAccept = BrowserUpMitmProxyClient.Client.ClientUtils.SelectHeaderAccept(_accepts);
if (localVarAccept != null)
{
localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept);
}
- localVarRequestOptions.PathParameters.Add("name", BrowserUp.Mitmproxy.Client.Client.ClientUtils.ParameterToString(name)); // path parameter
+ localVarRequestOptions.PathParameters.Add("name", BrowserUpMitmProxyClient.Client.ClientUtils.ParameterToString(name)); // path parameter
localVarRequestOptions.Data = matchCriteria;
localVarRequestOptions.Operation = "BrowserUpProxyApi.VerifyPresent";
@@ -1696,7 +1696,7 @@ public BrowserUp.Mitmproxy.Client.Client.ApiResponse VerifyPresent
///
/// Verify at least one matching item is present in the captured traffic
///
- /// Thrown when fails to make API call
+ /// Thrown when fails to make API call
/// The unique name for this verification operation
/// Match criteria to select requests - response pairs for size tests
/// Index associated with the operation.
@@ -1704,35 +1704,35 @@ public BrowserUp.Mitmproxy.Client.Client.ApiResponse VerifyPresent
/// Task of VerifyResult
public async System.Threading.Tasks.Task VerifyPresentAsync(string name, MatchCriteria matchCriteria, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
{
- BrowserUp.Mitmproxy.Client.Client.ApiResponse localVarResponse = await VerifyPresentWithHttpInfoAsync(name, matchCriteria, operationIndex, cancellationToken).ConfigureAwait(false);
+ BrowserUpMitmProxyClient.Client.ApiResponse localVarResponse = await VerifyPresentWithHttpInfoAsync(name, matchCriteria, operationIndex, cancellationToken).ConfigureAwait(false);
return localVarResponse.Data;
}
///
/// Verify at least one matching item is present in the captured traffic
///
- /// Thrown when fails to make API call
+ /// Thrown when fails to make API call
/// The unique name for this verification operation
/// Match criteria to select requests - response pairs for size tests
/// Index associated with the operation.
/// Cancellation Token to cancel the request.
/// Task of ApiResponse (VerifyResult)
- public async System.Threading.Tasks.Task> VerifyPresentWithHttpInfoAsync(string name, MatchCriteria matchCriteria, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
+ public async System.Threading.Tasks.Task> VerifyPresentWithHttpInfoAsync(string name, MatchCriteria matchCriteria, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
{
// verify the required parameter 'name' is set
if (name == null)
{
- throw new BrowserUp.Mitmproxy.Client.Client.ApiException(400, "Missing required parameter 'name' when calling BrowserUpProxyApi->VerifyPresent");
+ throw new BrowserUpMitmProxyClient.Client.ApiException(400, "Missing required parameter 'name' when calling BrowserUpProxyApi->VerifyPresent");
}
// verify the required parameter 'matchCriteria' is set
if (matchCriteria == null)
{
- throw new BrowserUp.Mitmproxy.Client.Client.ApiException(400, "Missing required parameter 'matchCriteria' when calling BrowserUpProxyApi->VerifyPresent");
+ throw new BrowserUpMitmProxyClient.Client.ApiException(400, "Missing required parameter 'matchCriteria' when calling BrowserUpProxyApi->VerifyPresent");
}
- BrowserUp.Mitmproxy.Client.Client.RequestOptions localVarRequestOptions = new BrowserUp.Mitmproxy.Client.Client.RequestOptions();
+ BrowserUpMitmProxyClient.Client.RequestOptions localVarRequestOptions = new BrowserUpMitmProxyClient.Client.RequestOptions();
string[] _contentTypes = new string[] {
"application/json"
@@ -1743,19 +1743,19 @@ public BrowserUp.Mitmproxy.Client.Client.ApiResponse VerifyPresent
"application/json"
};
- var localVarContentType = BrowserUp.Mitmproxy.Client.Client.ClientUtils.SelectHeaderContentType(_contentTypes);
+ var localVarContentType = BrowserUpMitmProxyClient.Client.ClientUtils.SelectHeaderContentType(_contentTypes);
if (localVarContentType != null)
{
localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType);
}
- var localVarAccept = BrowserUp.Mitmproxy.Client.Client.ClientUtils.SelectHeaderAccept(_accepts);
+ var localVarAccept = BrowserUpMitmProxyClient.Client.ClientUtils.SelectHeaderAccept(_accepts);
if (localVarAccept != null)
{
localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept);
}
- localVarRequestOptions.PathParameters.Add("name", BrowserUp.Mitmproxy.Client.Client.ClientUtils.ParameterToString(name)); // path parameter
+ localVarRequestOptions.PathParameters.Add("name", BrowserUpMitmProxyClient.Client.ClientUtils.ParameterToString(name)); // path parameter
localVarRequestOptions.Data = matchCriteria;
localVarRequestOptions.Operation = "BrowserUpProxyApi.VerifyPresent";
@@ -1780,7 +1780,7 @@ public BrowserUp.Mitmproxy.Client.Client.ApiResponse VerifyPresent
///
/// Verify each traffic item matching the criteria meets is below SLA time
///
- /// Thrown when fails to make API call
+ /// Thrown when fails to make API call
/// The time used for comparison
/// The unique name for this verification operation
/// Match criteria to select requests - response pairs for size tests
@@ -1788,34 +1788,34 @@ public BrowserUp.Mitmproxy.Client.Client.ApiResponse VerifyPresent
/// VerifyResult
public VerifyResult VerifySLA(int time, string name, MatchCriteria matchCriteria, int operationIndex = 0)
{
- BrowserUp.Mitmproxy.Client.Client.ApiResponse localVarResponse = VerifySLAWithHttpInfo(time, name, matchCriteria);
+ BrowserUpMitmProxyClient.Client.ApiResponse localVarResponse = VerifySLAWithHttpInfo(time, name, matchCriteria);
return localVarResponse.Data;
}
///
/// Verify each traffic item matching the criteria meets is below SLA time
///
- /// Thrown when fails to make API call
+ /// Thrown when fails to make API call
/// The time used for comparison
/// The unique name for this verification operation
/// Match criteria to select requests - response pairs for size tests
/// Index associated with the operation.
/// ApiResponse of VerifyResult
- public BrowserUp.Mitmproxy.Client.Client.ApiResponse VerifySLAWithHttpInfo(int time, string name, MatchCriteria matchCriteria, int operationIndex = 0)
+ public BrowserUpMitmProxyClient.Client.ApiResponse VerifySLAWithHttpInfo(int time, string name, MatchCriteria matchCriteria, int operationIndex = 0)
{
// verify the required parameter 'name' is set
if (name == null)
{
- throw new BrowserUp.Mitmproxy.Client.Client.ApiException(400, "Missing required parameter 'name' when calling BrowserUpProxyApi->VerifySLA");
+ throw new BrowserUpMitmProxyClient.Client.ApiException(400, "Missing required parameter 'name' when calling BrowserUpProxyApi->VerifySLA");
}
// verify the required parameter 'matchCriteria' is set
if (matchCriteria == null)
{
- throw new BrowserUp.Mitmproxy.Client.Client.ApiException(400, "Missing required parameter 'matchCriteria' when calling BrowserUpProxyApi->VerifySLA");
+ throw new BrowserUpMitmProxyClient.Client.ApiException(400, "Missing required parameter 'matchCriteria' when calling BrowserUpProxyApi->VerifySLA");
}
- BrowserUp.Mitmproxy.Client.Client.RequestOptions localVarRequestOptions = new BrowserUp.Mitmproxy.Client.Client.RequestOptions();
+ BrowserUpMitmProxyClient.Client.RequestOptions localVarRequestOptions = new BrowserUpMitmProxyClient.Client.RequestOptions();
string[] _contentTypes = new string[] {
"application/json"
@@ -1826,20 +1826,20 @@ public BrowserUp.Mitmproxy.Client.Client.ApiResponse VerifySLAWith
"application/json"
};
- var localVarContentType = BrowserUp.Mitmproxy.Client.Client.ClientUtils.SelectHeaderContentType(_contentTypes);
+ var localVarContentType = BrowserUpMitmProxyClient.Client.ClientUtils.SelectHeaderContentType(_contentTypes);
if (localVarContentType != null)
{
localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType);
}
- var localVarAccept = BrowserUp.Mitmproxy.Client.Client.ClientUtils.SelectHeaderAccept(_accepts);
+ var localVarAccept = BrowserUpMitmProxyClient.Client.ClientUtils.SelectHeaderAccept(_accepts);
if (localVarAccept != null)
{
localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept);
}
- localVarRequestOptions.PathParameters.Add("time", BrowserUp.Mitmproxy.Client.Client.ClientUtils.ParameterToString(time)); // path parameter
- localVarRequestOptions.PathParameters.Add("name", BrowserUp.Mitmproxy.Client.Client.ClientUtils.ParameterToString(name)); // path parameter
+ localVarRequestOptions.PathParameters.Add("time", BrowserUpMitmProxyClient.Client.ClientUtils.ParameterToString(time)); // path parameter
+ localVarRequestOptions.PathParameters.Add("name", BrowserUpMitmProxyClient.Client.ClientUtils.ParameterToString(name)); // path parameter
localVarRequestOptions.Data = matchCriteria;
localVarRequestOptions.Operation = "BrowserUpProxyApi.VerifySLA";
@@ -1863,7 +1863,7 @@ public BrowserUp.Mitmproxy.Client.Client.ApiResponse VerifySLAWith
///
/// Verify each traffic item matching the criteria meets is below SLA time
///
- /// Thrown when fails to make API call
+ /// Thrown when fails to make API call
/// The time used for comparison
/// The unique name for this verification operation
/// Match criteria to select requests - response pairs for size tests
@@ -1872,36 +1872,36 @@ public BrowserUp.Mitmproxy.Client.Client.ApiResponse VerifySLAWith
/// Task of VerifyResult
public async System.Threading.Tasks.Task VerifySLAAsync(int time, string name, MatchCriteria matchCriteria, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
{
- BrowserUp.Mitmproxy.Client.Client.ApiResponse localVarResponse = await VerifySLAWithHttpInfoAsync(time, name, matchCriteria, operationIndex, cancellationToken).ConfigureAwait(false);
+ BrowserUpMitmProxyClient.Client.ApiResponse localVarResponse = await VerifySLAWithHttpInfoAsync(time, name, matchCriteria, operationIndex, cancellationToken).ConfigureAwait(false);
return localVarResponse.Data;
}
///
/// Verify each traffic item matching the criteria meets is below SLA time
///
- /// Thrown when fails to make API call
+ /// Thrown when fails to make API call
/// The time used for comparison
/// The unique name for this verification operation
/// Match criteria to select requests - response pairs for size tests
/// Index associated with the operation.
/// Cancellation Token to cancel the request.
/// Task of ApiResponse (VerifyResult)
- public async System.Threading.Tasks.Task> VerifySLAWithHttpInfoAsync(int time, string name, MatchCriteria matchCriteria, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
+ public async System.Threading.Tasks.Task> VerifySLAWithHttpInfoAsync(int time, string name, MatchCriteria matchCriteria, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
{
// verify the required parameter 'name' is set
if (name == null)
{
- throw new BrowserUp.Mitmproxy.Client.Client.ApiException(400, "Missing required parameter 'name' when calling BrowserUpProxyApi->VerifySLA");
+ throw new BrowserUpMitmProxyClient.Client.ApiException(400, "Missing required parameter 'name' when calling BrowserUpProxyApi->VerifySLA");
}
// verify the required parameter 'matchCriteria' is set
if (matchCriteria == null)
{
- throw new BrowserUp.Mitmproxy.Client.Client.ApiException(400, "Missing required parameter 'matchCriteria' when calling BrowserUpProxyApi->VerifySLA");
+ throw new BrowserUpMitmProxyClient.Client.ApiException(400, "Missing required parameter 'matchCriteria' when calling BrowserUpProxyApi->VerifySLA");
}
- BrowserUp.Mitmproxy.Client.Client.RequestOptions localVarRequestOptions = new BrowserUp.Mitmproxy.Client.Client.RequestOptions();
+ BrowserUpMitmProxyClient.Client.RequestOptions localVarRequestOptions = new BrowserUpMitmProxyClient.Client.RequestOptions();
string[] _contentTypes = new string[] {
"application/json"
@@ -1912,20 +1912,20 @@ public BrowserUp.Mitmproxy.Client.Client.ApiResponse VerifySLAWith
"application/json"
};
- var localVarContentType = BrowserUp.Mitmproxy.Client.Client.ClientUtils.SelectHeaderContentType(_contentTypes);
+ var localVarContentType = BrowserUpMitmProxyClient.Client.ClientUtils.SelectHeaderContentType(_contentTypes);
if (localVarContentType != null)
{
localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType);
}
- var localVarAccept = BrowserUp.Mitmproxy.Client.Client.ClientUtils.SelectHeaderAccept(_accepts);
+ var localVarAccept = BrowserUpMitmProxyClient.Client.ClientUtils.SelectHeaderAccept(_accepts);
if (localVarAccept != null)
{
localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept);
}
- localVarRequestOptions.PathParameters.Add("time", BrowserUp.Mitmproxy.Client.Client.ClientUtils.ParameterToString(time)); // path parameter
- localVarRequestOptions.PathParameters.Add("name", BrowserUp.Mitmproxy.Client.Client.ClientUtils.ParameterToString(name)); // path parameter
+ localVarRequestOptions.PathParameters.Add("time", BrowserUpMitmProxyClient.Client.ClientUtils.ParameterToString(time)); // path parameter
+ localVarRequestOptions.PathParameters.Add("name", BrowserUpMitmProxyClient.Client.ClientUtils.ParameterToString(name)); // path parameter
localVarRequestOptions.Data = matchCriteria;
localVarRequestOptions.Operation = "BrowserUpProxyApi.VerifySLA";
@@ -1950,7 +1950,7 @@ public BrowserUp.Mitmproxy.Client.Client.ApiResponse VerifySLAWith
///
/// Verify matching items in the captured traffic meet the size criteria
///
- /// Thrown when fails to make API call
+ /// Thrown when fails to make API call
/// The size used for comparison, in kilobytes
/// The unique name for this verification operation
/// Match criteria to select requests - response pairs for size tests
@@ -1958,34 +1958,34 @@ public BrowserUp.Mitmproxy.Client.Client.ApiResponse VerifySLAWith
/// VerifyResult
public VerifyResult VerifySize(int size, string name, MatchCriteria matchCriteria, int operationIndex = 0)
{
- BrowserUp.Mitmproxy.Client.Client.ApiResponse localVarResponse = VerifySizeWithHttpInfo(size, name, matchCriteria);
+ BrowserUpMitmProxyClient.Client.ApiResponse localVarResponse = VerifySizeWithHttpInfo(size, name, matchCriteria);
return localVarResponse.Data;
}
///
/// Verify matching items in the captured traffic meet the size criteria
///
- /// Thrown when fails to make API call
+ /// Thrown when fails to make API call
/// The size used for comparison, in kilobytes
/// The unique name for this verification operation
/// Match criteria to select requests - response pairs for size tests
/// Index associated with the operation.
/// ApiResponse of VerifyResult
- public BrowserUp.Mitmproxy.Client.Client.ApiResponse VerifySizeWithHttpInfo(int size, string name, MatchCriteria matchCriteria, int operationIndex = 0)
+ public BrowserUpMitmProxyClient.Client.ApiResponse VerifySizeWithHttpInfo(int size, string name, MatchCriteria matchCriteria, int operationIndex = 0)
{
// verify the required parameter 'name' is set
if (name == null)
{
- throw new BrowserUp.Mitmproxy.Client.Client.ApiException(400, "Missing required parameter 'name' when calling BrowserUpProxyApi->VerifySize");
+ throw new BrowserUpMitmProxyClient.Client.ApiException(400, "Missing required parameter 'name' when calling BrowserUpProxyApi->VerifySize");
}
// verify the required parameter 'matchCriteria' is set
if (matchCriteria == null)
{
- throw new BrowserUp.Mitmproxy.Client.Client.ApiException(400, "Missing required parameter 'matchCriteria' when calling BrowserUpProxyApi->VerifySize");
+ throw new BrowserUpMitmProxyClient.Client.ApiException(400, "Missing required parameter 'matchCriteria' when calling BrowserUpProxyApi->VerifySize");
}
- BrowserUp.Mitmproxy.Client.Client.RequestOptions localVarRequestOptions = new BrowserUp.Mitmproxy.Client.Client.RequestOptions();
+ BrowserUpMitmProxyClient.Client.RequestOptions localVarRequestOptions = new BrowserUpMitmProxyClient.Client.RequestOptions();
string[] _contentTypes = new string[] {
"application/json"
@@ -1996,20 +1996,20 @@ public BrowserUp.Mitmproxy.Client.Client.ApiResponse VerifySizeWit
"application/json"
};
- var localVarContentType = BrowserUp.Mitmproxy.Client.Client.ClientUtils.SelectHeaderContentType(_contentTypes);
+ var localVarContentType = BrowserUpMitmProxyClient.Client.ClientUtils.SelectHeaderContentType(_contentTypes);
if (localVarContentType != null)
{
localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType);
}
- var localVarAccept = BrowserUp.Mitmproxy.Client.Client.ClientUtils.SelectHeaderAccept(_accepts);
+ var localVarAccept = BrowserUpMitmProxyClient.Client.ClientUtils.SelectHeaderAccept(_accepts);
if (localVarAccept != null)
{
localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept);
}
- localVarRequestOptions.PathParameters.Add("size", BrowserUp.Mitmproxy.Client.Client.ClientUtils.ParameterToString(size)); // path parameter
- localVarRequestOptions.PathParameters.Add("name", BrowserUp.Mitmproxy.Client.Client.ClientUtils.ParameterToString(name)); // path parameter
+ localVarRequestOptions.PathParameters.Add("size", BrowserUpMitmProxyClient.Client.ClientUtils.ParameterToString(size)); // path parameter
+ localVarRequestOptions.PathParameters.Add("name", BrowserUpMitmProxyClient.Client.ClientUtils.ParameterToString(name)); // path parameter
localVarRequestOptions.Data = matchCriteria;
localVarRequestOptions.Operation = "BrowserUpProxyApi.VerifySize";
@@ -2033,7 +2033,7 @@ public BrowserUp.Mitmproxy.Client.Client.ApiResponse VerifySizeWit
///
/// Verify matching items in the captured traffic meet the size criteria
///
- /// Thrown when fails to make API call
+ /// Thrown when fails to make API call
/// The size used for comparison, in kilobytes
/// The unique name for this verification operation
/// Match criteria to select requests - response pairs for size tests
@@ -2042,36 +2042,36 @@ public BrowserUp.Mitmproxy.Client.Client.ApiResponse VerifySizeWit
/// Task of VerifyResult
public async System.Threading.Tasks.Task VerifySizeAsync(int size, string name, MatchCriteria matchCriteria, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
{
- BrowserUp.Mitmproxy.Client.Client.ApiResponse localVarResponse = await VerifySizeWithHttpInfoAsync(size, name, matchCriteria, operationIndex, cancellationToken).ConfigureAwait(false);
+ BrowserUpMitmProxyClient.Client.ApiResponse localVarResponse = await VerifySizeWithHttpInfoAsync(size, name, matchCriteria, operationIndex, cancellationToken).ConfigureAwait(false);
return localVarResponse.Data;
}
///
/// Verify matching items in the captured traffic meet the size criteria
///
- /// Thrown when fails to make API call
+ /// Thrown when fails to make API call
/// The size used for comparison, in kilobytes
/// The unique name for this verification operation
/// Match criteria to select requests - response pairs for size tests
/// Index associated with the operation.
/// Cancellation Token to cancel the request.
/// Task of ApiResponse (VerifyResult)
- public async System.Threading.Tasks.Task> VerifySizeWithHttpInfoAsync(int size, string name, MatchCriteria matchCriteria, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
+ public async System.Threading.Tasks.Task> VerifySizeWithHttpInfoAsync(int size, string name, MatchCriteria matchCriteria, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
{
// verify the required parameter 'name' is set
if (name == null)
{
- throw new BrowserUp.Mitmproxy.Client.Client.ApiException(400, "Missing required parameter 'name' when calling BrowserUpProxyApi->VerifySize");
+ throw new BrowserUpMitmProxyClient.Client.ApiException(400, "Missing required parameter 'name' when calling BrowserUpProxyApi->VerifySize");
}
// verify the required parameter 'matchCriteria' is set
if (matchCriteria == null)
{
- throw new BrowserUp.Mitmproxy.Client.Client.ApiException(400, "Missing required parameter 'matchCriteria' when calling BrowserUpProxyApi->VerifySize");
+ throw new BrowserUpMitmProxyClient.Client.ApiException(400, "Missing required parameter 'matchCriteria' when calling BrowserUpProxyApi->VerifySize");
}
- BrowserUp.Mitmproxy.Client.Client.RequestOptions localVarRequestOptions = new BrowserUp.Mitmproxy.Client.Client.RequestOptions();
+ BrowserUpMitmProxyClient.Client.RequestOptions localVarRequestOptions = new BrowserUpMitmProxyClient.Client.RequestOptions();
string[] _contentTypes = new string[] {
"application/json"
@@ -2082,20 +2082,20 @@ public BrowserUp.Mitmproxy.Client.Client.ApiResponse VerifySizeWit
"application/json"
};
- var localVarContentType = BrowserUp.Mitmproxy.Client.Client.ClientUtils.SelectHeaderContentType(_contentTypes);
+ var localVarContentType = BrowserUpMitmProxyClient.Client.ClientUtils.SelectHeaderContentType(_contentTypes);
if (localVarContentType != null)
{
localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType);
}
- var localVarAccept = BrowserUp.Mitmproxy.Client.Client.ClientUtils.SelectHeaderAccept(_accepts);
+ var localVarAccept = BrowserUpMitmProxyClient.Client.ClientUtils.SelectHeaderAccept(_accepts);
if (localVarAccept != null)
{
localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept);
}
- localVarRequestOptions.PathParameters.Add("size", BrowserUp.Mitmproxy.Client.Client.ClientUtils.ParameterToString(size)); // path parameter
- localVarRequestOptions.PathParameters.Add("name", BrowserUp.Mitmproxy.Client.Client.ClientUtils.ParameterToString(name)); // path parameter
+ localVarRequestOptions.PathParameters.Add("size", BrowserUpMitmProxyClient.Client.ClientUtils.ParameterToString(size)); // path parameter
+ localVarRequestOptions.PathParameters.Add("name", BrowserUpMitmProxyClient.Client.ClientUtils.ParameterToString(name)); // path parameter
localVarRequestOptions.Data = matchCriteria;
localVarRequestOptions.Operation = "BrowserUpProxyApi.VerifySize";
diff --git a/clients/csharp/src/BrowserUp.Mitmproxy.Client/BrowserUp.Mitmproxy.Client.csproj b/clients/csharp/src/BrowserUpMitmProxyClient/BrowserUpMitmProxyClient.csproj
similarity index 68%
rename from clients/csharp/src/BrowserUp.Mitmproxy.Client/BrowserUp.Mitmproxy.Client.csproj
rename to clients/csharp/src/BrowserUpMitmProxyClient/BrowserUpMitmProxyClient.csproj
index a2a25d21fd..da35bc999d 100644
--- a/clients/csharp/src/BrowserUp.Mitmproxy.Client/BrowserUp.Mitmproxy.Client.csproj
+++ b/clients/csharp/src/BrowserUpMitmProxyClient/BrowserUpMitmProxyClient.csproj
@@ -3,17 +3,17 @@
falsenet7.0
- BrowserUp.Mitmproxy.Client
- BrowserUp.Mitmproxy.Client
+ BrowserUpMitmProxyClient
+ BrowserUpMitmProxyClientLibraryOpenAPIOpenAPIOpenAPI LibraryA library generated from a OpenAPI docNo Copyright
- BrowserUp.Mitmproxy.Client
+ BrowserUpMitmProxyClient1.0.0
- bin\$(Configuration)\$(TargetFramework)\BrowserUp.Mitmproxy.Client.xml
+ bin\$(Configuration)\$(TargetFramework)\BrowserUpMitmProxyClient.xmlhttps://github.com/GIT_USER_ID/GIT_REPO_ID.gitgitMinor update
@@ -21,10 +21,11 @@
-
-
-
+
+
+
+
diff --git a/clients/csharp/src/BrowserUp.Mitmproxy.Client/Client/ApiClient.cs b/clients/csharp/src/BrowserUpMitmProxyClient/Client/ApiClient.cs
similarity index 79%
rename from clients/csharp/src/BrowserUp.Mitmproxy.Client/Client/ApiClient.cs
rename to clients/csharp/src/BrowserUpMitmProxyClient/Client/ApiClient.cs
index 6b66250d95..b8c9ddd72b 100644
--- a/clients/csharp/src/BrowserUp.Mitmproxy.Client/Client/ApiClient.cs
+++ b/clients/csharp/src/BrowserUpMitmProxyClient/Client/ApiClient.cs
@@ -3,7 +3,7 @@
*
* ___ This is the REST API for controlling the BrowserUp MitmProxy. The BrowserUp MitmProxy is a swiss army knife for automated testing that captures HTTP traffic in HAR files. It is also useful for Selenium/Cypress tests. ___
*
- * The version of the OpenAPI document: 1.0.0
+ * The version of the OpenAPI document: 1.24
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
@@ -30,7 +30,7 @@
using RestSharpMethod = RestSharp.Method;
using Polly;
-namespace BrowserUp.Mitmproxy.Client.Client
+namespace BrowserUpMitmProxyClient.Client
{
///
/// Allows RestSharp to Serialize/Deserialize JSON using our custom logic, but only when ContentType is JSON.
@@ -38,6 +38,7 @@ namespace BrowserUp.Mitmproxy.Client.Client
internal class CustomJsonCodec : IRestSerializer, ISerializer, IDeserializer
{
private readonly IReadableConfiguration _configuration;
+ private static readonly string _contentType = "application/json";
private readonly JsonSerializerSettings _serializerSettings = new JsonSerializerSettings
{
// OpenAPI generated types generally hide default constructors.
@@ -69,10 +70,10 @@ public CustomJsonCodec(JsonSerializerSettings serializerSettings, IReadableConfi
/// A JSON string.
public string Serialize(object obj)
{
- if (obj != null && obj is BrowserUp.Mitmproxy.Client.Model.AbstractOpenAPISchema)
+ if (obj != null && obj is BrowserUpMitmProxyClient.Model.AbstractOpenAPISchema)
{
// the object to be serialized is an oneOf/anyOf schema
- return ((BrowserUp.Mitmproxy.Client.Model.AbstractOpenAPISchema)obj).ToJson();
+ return ((BrowserUpMitmProxyClient.Model.AbstractOpenAPISchema)obj).ToJson();
}
else
{
@@ -150,13 +151,17 @@ internal object Deserialize(RestResponse response, Type type)
public ISerializer Serializer => this;
public IDeserializer Deserializer => this;
- public string[] AcceptedContentTypes => RestSharp.ContentType.JsonAccept;
+ public string[] AcceptedContentTypes => RestSharp.Serializers.ContentType.JsonAccept;
public SupportsContentType SupportsContentType => contentType =>
- contentType.Value.EndsWith("json", StringComparison.InvariantCultureIgnoreCase) ||
- contentType.Value.EndsWith("javascript", StringComparison.InvariantCultureIgnoreCase);
+ contentType.EndsWith("json", StringComparison.InvariantCultureIgnoreCase) ||
+ contentType.EndsWith("javascript", StringComparison.InvariantCultureIgnoreCase);
- public ContentType ContentType { get; set; } = RestSharp.ContentType.Json;
+ public string ContentType
+ {
+ get { return _contentType; }
+ set { throw new InvalidOperationException("Not allowed to set content type."); }
+ }
public DataFormat DataFormat => DataFormat.Json;
}
@@ -203,7 +208,7 @@ public partial class ApiClient : ISynchronousClient, IAsynchronousClient
///
public ApiClient()
{
- _baseUrl = BrowserUp.Mitmproxy.Client.Client.GlobalConfiguration.Instance.BasePath;
+ _baseUrl = BrowserUpMitmProxyClient.Client.GlobalConfiguration.Instance.BasePath;
}
///
@@ -429,7 +434,7 @@ private ApiResponse ToApiResponse(RestResponse response)
return transformed;
}
- private ApiResponse Exec(RestRequest request, RequestOptions options, IReadableConfiguration configuration)
+ private ApiResponse Exec(RestRequest req, RequestOptions options, IReadableConfiguration configuration)
{
var baseUrl = configuration.GetOperationServerUrl(options.Operation, options.OperationIndex) ?? _baseUrl;
@@ -449,95 +454,93 @@ private ApiResponse Exec(RestRequest request, RequestOptions options, IRea
CookieContainer = cookies,
MaxTimeout = configuration.Timeout,
Proxy = configuration.Proxy,
- UserAgent = configuration.UserAgent,
- UseDefaultCredentials = configuration.UseDefaultCredentials,
- RemoteCertificateValidationCallback = configuration.RemoteCertificateValidationCallback
+ UserAgent = configuration.UserAgent
};
- using (RestClient client = new RestClient(clientOptions,
- configureSerialization: serializerConfig => serializerConfig.UseSerializer(() => new CustomJsonCodec(SerializerSettings, configuration))))
- {
- InterceptRequest(request);
+ RestClient client = new RestClient(clientOptions)
+ .UseSerializer(() => new CustomJsonCodec(SerializerSettings, configuration));
- RestResponse response;
- if (RetryConfiguration.RetryPolicy != null)
- {
- var policy = RetryConfiguration.RetryPolicy;
- var policyResult = policy.ExecuteAndCapture(() => client.Execute(request));
- response = (policyResult.Outcome == OutcomeType.Successful) ? client.Deserialize(policyResult.Result) : new RestResponse(request)
- {
- ErrorException = policyResult.FinalException
- };
- }
- else
- {
- response = client.Execute(request);
- }
+ InterceptRequest(req);
- // if the response type is oneOf/anyOf, call FromJSON to deserialize the data
- if (typeof(BrowserUp.Mitmproxy.Client.Model.AbstractOpenAPISchema).IsAssignableFrom(typeof(T)))
- {
- try
- {
- response.Data = (T) typeof(T).GetMethod("FromJson").Invoke(null, new object[] { response.Content });
- }
- catch (Exception ex)
- {
- throw ex.InnerException != null ? ex.InnerException : ex;
- }
- }
- else if (typeof(T).Name == "Stream") // for binary response
+ RestResponse response;
+ if (RetryConfiguration.RetryPolicy != null)
+ {
+ var policy = RetryConfiguration.RetryPolicy;
+ var policyResult = policy.ExecuteAndCapture(() => client.Execute(req));
+ response = (policyResult.Outcome == OutcomeType.Successful) ? client.Deserialize(policyResult.Result) : new RestResponse
{
- response.Data = (T)(object)new MemoryStream(response.RawBytes);
- }
- else if (typeof(T).Name == "Byte[]") // for byte response
+ Request = req,
+ ErrorException = policyResult.FinalException
+ };
+ }
+ else
+ {
+ response = client.Execute(req);
+ }
+
+ // if the response type is oneOf/anyOf, call FromJSON to deserialize the data
+ if (typeof(BrowserUpMitmProxyClient.Model.AbstractOpenAPISchema).IsAssignableFrom(typeof(T)))
+ {
+ try
{
- response.Data = (T)(object)response.RawBytes;
+ response.Data = (T) typeof(T).GetMethod("FromJson").Invoke(null, new object[] { response.Content });
}
- else if (typeof(T).Name == "String") // for string response
+ catch (Exception ex)
{
- response.Data = (T)(object)response.Content;
+ throw ex.InnerException != null ? ex.InnerException : ex;
}
+ }
+ else if (typeof(T).Name == "Stream") // for binary response
+ {
+ response.Data = (T)(object)new MemoryStream(response.RawBytes);
+ }
+ else if (typeof(T).Name == "Byte[]") // for byte response
+ {
+ response.Data = (T)(object)response.RawBytes;
+ }
+ else if (typeof(T).Name == "String") // for string response
+ {
+ response.Data = (T)(object)response.Content;
+ }
- InterceptResponse(request, response);
+ InterceptResponse(req, response);
- var result = ToApiResponse(response);
- if (response.ErrorMessage != null)
- {
- result.ErrorText = response.ErrorMessage;
- }
+ var result = ToApiResponse(response);
+ if (response.ErrorMessage != null)
+ {
+ result.ErrorText = response.ErrorMessage;
+ }
- if (response.Cookies != null && response.Cookies.Count > 0)
+ if (response.Cookies != null && response.Cookies.Count > 0)
+ {
+ if (result.Cookies == null) result.Cookies = new List();
+ foreach (var restResponseCookie in response.Cookies.Cast())
{
- if (result.Cookies == null) result.Cookies = new List();
- foreach (var restResponseCookie in response.Cookies.Cast())
+ var cookie = new Cookie(
+ restResponseCookie.Name,
+ restResponseCookie.Value,
+ restResponseCookie.Path,
+ restResponseCookie.Domain
+ )
{
- var cookie = new Cookie(
- restResponseCookie.Name,
- restResponseCookie.Value,
- restResponseCookie.Path,
- restResponseCookie.Domain
- )
- {
- Comment = restResponseCookie.Comment,
- CommentUri = restResponseCookie.CommentUri,
- Discard = restResponseCookie.Discard,
- Expired = restResponseCookie.Expired,
- Expires = restResponseCookie.Expires,
- HttpOnly = restResponseCookie.HttpOnly,
- Port = restResponseCookie.Port,
- Secure = restResponseCookie.Secure,
- Version = restResponseCookie.Version
- };
-
- result.Cookies.Add(cookie);
- }
+ Comment = restResponseCookie.Comment,
+ CommentUri = restResponseCookie.CommentUri,
+ Discard = restResponseCookie.Discard,
+ Expired = restResponseCookie.Expired,
+ Expires = restResponseCookie.Expires,
+ HttpOnly = restResponseCookie.HttpOnly,
+ Port = restResponseCookie.Port,
+ Secure = restResponseCookie.Secure,
+ Version = restResponseCookie.Version
+ };
+
+ result.Cookies.Add(cookie);
}
- return result;
}
+ return result;
}
- private async Task> ExecAsync(RestRequest request, RequestOptions options, IReadableConfiguration configuration, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
+ private async Task> ExecAsync(RestRequest req, RequestOptions options, IReadableConfiguration configuration, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
{
var baseUrl = configuration.GetOperationServerUrl(options.Operation, options.OperationIndex) ?? _baseUrl;
@@ -546,80 +549,79 @@ private ApiResponse Exec(RestRequest request, RequestOptions options, IRea
ClientCertificates = configuration.ClientCertificates,
MaxTimeout = configuration.Timeout,
Proxy = configuration.Proxy,
- UserAgent = configuration.UserAgent,
- UseDefaultCredentials = configuration.UseDefaultCredentials
+ UserAgent = configuration.UserAgent
};
- using (RestClient client = new RestClient(clientOptions,
- configureSerialization: serializerConfig => serializerConfig.UseSerializer(() => new CustomJsonCodec(SerializerSettings, configuration))))
- {
- InterceptRequest(request);
+ RestClient client = new RestClient(clientOptions)
+ .UseSerializer(() => new CustomJsonCodec(SerializerSettings, configuration));
- RestResponse response;
- if (RetryConfiguration.AsyncRetryPolicy != null)
- {
- var policy = RetryConfiguration.AsyncRetryPolicy;
- var policyResult = await policy.ExecuteAndCaptureAsync((ct) => client.ExecuteAsync(request, ct), cancellationToken).ConfigureAwait(false);
- response = (policyResult.Outcome == OutcomeType.Successful) ? client.Deserialize(policyResult.Result) : new RestResponse(request)
- {
- ErrorException = policyResult.FinalException
- };
- }
- else
- {
- response = await client.ExecuteAsync(request, cancellationToken).ConfigureAwait(false);
- }
+ InterceptRequest(req);
- // if the response type is oneOf/anyOf, call FromJSON to deserialize the data
- if (typeof(BrowserUp.Mitmproxy.Client.Model.AbstractOpenAPISchema).IsAssignableFrom(typeof(T)))
- {
- response.Data = (T) typeof(T).GetMethod("FromJson").Invoke(null, new object[] { response.Content });
- }
- else if (typeof(T).Name == "Stream") // for binary response
- {
- response.Data = (T)(object)new MemoryStream(response.RawBytes);
- }
- else if (typeof(T).Name == "Byte[]") // for byte response
+ RestResponse response;
+ if (RetryConfiguration.AsyncRetryPolicy != null)
+ {
+ var policy = RetryConfiguration.AsyncRetryPolicy;
+ var policyResult = await policy.ExecuteAndCaptureAsync((ct) => client.ExecuteAsync(req, ct), cancellationToken).ConfigureAwait(false);
+ response = (policyResult.Outcome == OutcomeType.Successful) ? client.Deserialize(policyResult.Result) : new RestResponse
{
- response.Data = (T)(object)response.RawBytes;
- }
+ Request = req,
+ ErrorException = policyResult.FinalException
+ };
+ }
+ else
+ {
+ response = await client.ExecuteAsync(req, cancellationToken).ConfigureAwait(false);
+ }
- InterceptResponse(request, response);
+ // if the response type is oneOf/anyOf, call FromJSON to deserialize the data
+ if (typeof(BrowserUpMitmProxyClient.Model.AbstractOpenAPISchema).IsAssignableFrom(typeof(T)))
+ {
+ response.Data = (T) typeof(T).GetMethod("FromJson").Invoke(null, new object[] { response.Content });
+ }
+ else if (typeof(T).Name == "Stream") // for binary response
+ {
+ response.Data = (T)(object)new MemoryStream(response.RawBytes);
+ }
+ else if (typeof(T).Name == "Byte[]") // for byte response
+ {
+ response.Data = (T)(object)response.RawBytes;
+ }
- var result = ToApiResponse(response);
- if (response.ErrorMessage != null)
- {
- result.ErrorText = response.ErrorMessage;
- }
+ InterceptResponse(req, response);
- if (response.Cookies != null && response.Cookies.Count > 0)
+ var result = ToApiResponse(response);
+ if (response.ErrorMessage != null)
+ {
+ result.ErrorText = response.ErrorMessage;
+ }
+
+ if (response.Cookies != null && response.Cookies.Count > 0)
+ {
+ if (result.Cookies == null) result.Cookies = new List();
+ foreach (var restResponseCookie in response.Cookies.Cast())
{
- if (result.Cookies == null) result.Cookies = new List();
- foreach (var restResponseCookie in response.Cookies.Cast())
+ var cookie = new Cookie(
+ restResponseCookie.Name,
+ restResponseCookie.Value,
+ restResponseCookie.Path,
+ restResponseCookie.Domain
+ )
{
- var cookie = new Cookie(
- restResponseCookie.Name,
- restResponseCookie.Value,
- restResponseCookie.Path,
- restResponseCookie.Domain
- )
- {
- Comment = restResponseCookie.Comment,
- CommentUri = restResponseCookie.CommentUri,
- Discard = restResponseCookie.Discard,
- Expired = restResponseCookie.Expired,
- Expires = restResponseCookie.Expires,
- HttpOnly = restResponseCookie.HttpOnly,
- Port = restResponseCookie.Port,
- Secure = restResponseCookie.Secure,
- Version = restResponseCookie.Version
- };
-
- result.Cookies.Add(cookie);
- }
+ Comment = restResponseCookie.Comment,
+ CommentUri = restResponseCookie.CommentUri,
+ Discard = restResponseCookie.Discard,
+ Expired = restResponseCookie.Expired,
+ Expires = restResponseCookie.Expires,
+ HttpOnly = restResponseCookie.HttpOnly,
+ Port = restResponseCookie.Port,
+ Secure = restResponseCookie.Secure,
+ Version = restResponseCookie.Version
+ };
+
+ result.Cookies.Add(cookie);
}
- return result;
}
+ return result;
}
#region IAsynchronousClient
diff --git a/clients/csharp/src/BrowserUp.Mitmproxy.Client/Client/ApiException.cs b/clients/csharp/src/BrowserUpMitmProxyClient/Client/ApiException.cs
similarity index 96%
rename from clients/csharp/src/BrowserUp.Mitmproxy.Client/Client/ApiException.cs
rename to clients/csharp/src/BrowserUpMitmProxyClient/Client/ApiException.cs
index 51f87b164c..1c38ace00e 100644
--- a/clients/csharp/src/BrowserUp.Mitmproxy.Client/Client/ApiException.cs
+++ b/clients/csharp/src/BrowserUpMitmProxyClient/Client/ApiException.cs
@@ -3,14 +3,14 @@
*
* ___ This is the REST API for controlling the BrowserUp MitmProxy. The BrowserUp MitmProxy is a swiss army knife for automated testing that captures HTTP traffic in HAR files. It is also useful for Selenium/Cypress tests. ___
*
- * The version of the OpenAPI document: 1.0.0
+ * The version of the OpenAPI document: 1.24
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
using System;
-namespace BrowserUp.Mitmproxy.Client.Client
+namespace BrowserUpMitmProxyClient.Client
{
///
/// API Exception
diff --git a/clients/csharp/src/BrowserUp.Mitmproxy.Client/Client/ApiResponse.cs b/clients/csharp/src/BrowserUpMitmProxyClient/Client/ApiResponse.cs
similarity index 98%
rename from clients/csharp/src/BrowserUp.Mitmproxy.Client/Client/ApiResponse.cs
rename to clients/csharp/src/BrowserUpMitmProxyClient/Client/ApiResponse.cs
index 7130955fc1..e8a741d67c 100644
--- a/clients/csharp/src/BrowserUp.Mitmproxy.Client/Client/ApiResponse.cs
+++ b/clients/csharp/src/BrowserUpMitmProxyClient/Client/ApiResponse.cs
@@ -3,7 +3,7 @@
*
* ___ This is the REST API for controlling the BrowserUp MitmProxy. The BrowserUp MitmProxy is a swiss army knife for automated testing that captures HTTP traffic in HAR files. It is also useful for Selenium/Cypress tests. ___
*
- * The version of the OpenAPI document: 1.0.0
+ * The version of the OpenAPI document: 1.24
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
@@ -12,7 +12,7 @@
using System.Collections.Generic;
using System.Net;
-namespace BrowserUp.Mitmproxy.Client.Client
+namespace BrowserUpMitmProxyClient.Client
{
///
/// Provides a non-generic contract for the ApiResponse wrapper.
diff --git a/clients/csharp/src/BrowserUp.Mitmproxy.Client/Client/ClientUtils.cs b/clients/csharp/src/BrowserUpMitmProxyClient/Client/ClientUtils.cs
similarity index 95%
rename from clients/csharp/src/BrowserUp.Mitmproxy.Client/Client/ClientUtils.cs
rename to clients/csharp/src/BrowserUpMitmProxyClient/Client/ClientUtils.cs
index 11b322423c..a657c5e09e 100644
--- a/clients/csharp/src/BrowserUp.Mitmproxy.Client/Client/ClientUtils.cs
+++ b/clients/csharp/src/BrowserUpMitmProxyClient/Client/ClientUtils.cs
@@ -3,14 +3,13 @@
*
* ___ This is the REST API for controlling the BrowserUp MitmProxy. The BrowserUp MitmProxy is a swiss army knife for automated testing that captures HTTP traffic in HAR files. It is also useful for Selenium/Cypress tests. ___
*
- * The version of the OpenAPI document: 1.0.0
+ * The version of the OpenAPI document: 1.24
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
using System;
using System.Collections;
-using System.Collections.Generic;
using System.Globalization;
using System.IO;
using System.Linq;
@@ -18,7 +17,7 @@
using System.Text;
using System.Text.RegularExpressions;
-namespace BrowserUp.Mitmproxy.Client.Client
+namespace BrowserUpMitmProxyClient.Client
{
///
/// Utility functions providing some benefit to API client consumers.
@@ -102,12 +101,8 @@ public static string ParameterToString(object obj, IReadableConfiguration config
return dateTimeOffset.ToString((configuration ?? GlobalConfiguration.Instance).DateTimeFormat);
if (obj is bool boolean)
return boolean ? "true" : "false";
- if (obj is ICollection collection) {
- List entries = new List();
- foreach (var entry in collection)
- entries.Add(ParameterToString(entry, configuration));
- return string.Join(",", entries);
- }
+ if (obj is ICollection collection)
+ return string.Join(",", collection.Cast());
if (obj is Enum && HasEnumMemberAttrValue(obj))
return GetEnumMemberAttrValue(obj);
diff --git a/clients/csharp/src/BrowserUp.Mitmproxy.Client/Client/Configuration.cs b/clients/csharp/src/BrowserUpMitmProxyClient/Client/Configuration.cs
similarity index 94%
rename from clients/csharp/src/BrowserUp.Mitmproxy.Client/Client/Configuration.cs
rename to clients/csharp/src/BrowserUpMitmProxyClient/Client/Configuration.cs
index 6c137c45eb..2e4b5c7d9e 100644
--- a/clients/csharp/src/BrowserUp.Mitmproxy.Client/Client/Configuration.cs
+++ b/clients/csharp/src/BrowserUpMitmProxyClient/Client/Configuration.cs
@@ -3,7 +3,7 @@
*
* ___ This is the REST API for controlling the BrowserUp MitmProxy. The BrowserUp MitmProxy is a swiss army knife for automated testing that captures HTTP traffic in HAR files. It is also useful for Selenium/Cypress tests. ___
*
- * The version of the OpenAPI document: 1.0.0
+ * The version of the OpenAPI document: 1.24
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
@@ -18,9 +18,8 @@
using System.Security.Cryptography.X509Certificates;
using System.Text;
using System.Net.Http;
-using System.Net.Security;
-namespace BrowserUp.Mitmproxy.Client.Client
+namespace BrowserUpMitmProxyClient.Client
{
///
/// Represents a set of configuration settings
@@ -76,8 +75,6 @@ public class Configuration : IReadableConfiguration
///
private string _basePath;
- private bool _useDefaultCredentials = false;
-
///
/// Gets or sets the API key based on the authentication name.
/// This is the key and value comprising the "secret" for accessing an API.
@@ -198,21 +195,11 @@ public Configuration(
///
/// Gets or sets the base path for API access.
///
- public virtual string BasePath
- {
+ public virtual string BasePath {
get { return _basePath; }
set { _basePath = value; }
}
- ///
- /// Determine whether or not the "default credentials" (e.g. the user account under which the current process is running) will be sent along to the server. The default is false.
- ///
- public virtual bool UseDefaultCredentials
- {
- get { return _useDefaultCredentials; }
- set { _useDefaultCredentials = value; }
- }
-
///
/// Gets or sets the default header.
///
@@ -477,7 +464,7 @@ public string GetOperationServerUrl(string operation, int index)
/// The operation server URL.
public string GetOperationServerUrl(string operation, int index, Dictionary inputVariables)
{
- if (operation != null && OperationServers.TryGetValue(operation, out var operationServer))
+ if (OperationServers.TryGetValue(operation, out var operationServer))
{
return GetServerUrl(operationServer, index, inputVariables);
}
@@ -536,11 +523,6 @@ private string GetServerUrl(IList> servers,
return url;
}
-
- ///
- /// Gets and Sets the RemoteCertificateValidationCallback
- ///
- public RemoteCertificateValidationCallback RemoteCertificateValidationCallback { get; set; }
#endregion Properties
@@ -551,10 +533,10 @@ private string GetServerUrl(IList> servers,
///
public static string ToDebugReport()
{
- string report = "C# SDK (BrowserUp.Mitmproxy.Client) Debug Report:\n";
+ string report = "C# SDK (BrowserUpMitmProxyClient) Debug Report:\n";
report += " OS: " + System.Environment.OSVersion + "\n";
report += " .NET Framework Version: " + System.Environment.Version + "\n";
- report += " Version of the API: 1.0.0\n";
+ report += " Version of the API: 1.24\n";
report += " SDK Package Version: 1.0.0\n";
return report;
@@ -617,8 +599,6 @@ public static IReadableConfiguration MergeConfigurations(IReadableConfiguration
TempFolderPath = second.TempFolderPath ?? first.TempFolderPath,
DateTimeFormat = second.DateTimeFormat ?? first.DateTimeFormat,
ClientCertificates = second.ClientCertificates ?? first.ClientCertificates,
- UseDefaultCredentials = second.UseDefaultCredentials,
- RemoteCertificateValidationCallback = second.RemoteCertificateValidationCallback ?? first.RemoteCertificateValidationCallback,
};
return config;
}
diff --git a/clients/csharp/src/BrowserUp.Mitmproxy.Client/Client/ExceptionFactory.cs b/clients/csharp/src/BrowserUpMitmProxyClient/Client/ExceptionFactory.cs
similarity index 88%
rename from clients/csharp/src/BrowserUp.Mitmproxy.Client/Client/ExceptionFactory.cs
rename to clients/csharp/src/BrowserUpMitmProxyClient/Client/ExceptionFactory.cs
index 993c997282..42148d22c4 100644
--- a/clients/csharp/src/BrowserUp.Mitmproxy.Client/Client/ExceptionFactory.cs
+++ b/clients/csharp/src/BrowserUpMitmProxyClient/Client/ExceptionFactory.cs
@@ -3,14 +3,14 @@
*
* ___ This is the REST API for controlling the BrowserUp MitmProxy. The BrowserUp MitmProxy is a swiss army knife for automated testing that captures HTTP traffic in HAR files. It is also useful for Selenium/Cypress tests. ___
*
- * The version of the OpenAPI document: 1.0.0
+ * The version of the OpenAPI document: 1.24
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
using System;
-namespace BrowserUp.Mitmproxy.Client.Client
+namespace BrowserUpMitmProxyClient.Client
{
///
/// A delegate to ExceptionFactory method
diff --git a/clients/csharp/src/BrowserUp.Mitmproxy.Client/Client/GlobalConfiguration.cs b/clients/csharp/src/BrowserUpMitmProxyClient/Client/GlobalConfiguration.cs
similarity index 95%
rename from clients/csharp/src/BrowserUp.Mitmproxy.Client/Client/GlobalConfiguration.cs
rename to clients/csharp/src/BrowserUpMitmProxyClient/Client/GlobalConfiguration.cs
index 88d8f8a647..fd95ab905c 100644
--- a/clients/csharp/src/BrowserUp.Mitmproxy.Client/Client/GlobalConfiguration.cs
+++ b/clients/csharp/src/BrowserUpMitmProxyClient/Client/GlobalConfiguration.cs
@@ -3,14 +3,14 @@
*
* ___ This is the REST API for controlling the BrowserUp MitmProxy. The BrowserUp MitmProxy is a swiss army knife for automated testing that captures HTTP traffic in HAR files. It is also useful for Selenium/Cypress tests. ___
*
- * The version of the OpenAPI document: 1.0.0
+ * The version of the OpenAPI document: 1.24
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
using System.Collections.Generic;
-namespace BrowserUp.Mitmproxy.Client.Client
+namespace BrowserUpMitmProxyClient.Client
{
///
/// provides a compile-time extension point for globally configuring
diff --git a/clients/csharp/src/BrowserUp.Mitmproxy.Client/Client/HttpMethod.cs b/clients/csharp/src/BrowserUpMitmProxyClient/Client/HttpMethod.cs
similarity index 91%
rename from clients/csharp/src/BrowserUp.Mitmproxy.Client/Client/HttpMethod.cs
rename to clients/csharp/src/BrowserUpMitmProxyClient/Client/HttpMethod.cs
index 5c4a39617f..7c79411868 100644
--- a/clients/csharp/src/BrowserUp.Mitmproxy.Client/Client/HttpMethod.cs
+++ b/clients/csharp/src/BrowserUpMitmProxyClient/Client/HttpMethod.cs
@@ -3,12 +3,12 @@
*
* ___ This is the REST API for controlling the BrowserUp MitmProxy. The BrowserUp MitmProxy is a swiss army knife for automated testing that captures HTTP traffic in HAR files. It is also useful for Selenium/Cypress tests. ___
*
- * The version of the OpenAPI document: 1.0.0
+ * The version of the OpenAPI document: 1.24
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
-namespace BrowserUp.Mitmproxy.Client.Client
+namespace BrowserUpMitmProxyClient.Client
{
///
/// Http methods supported by swagger
diff --git a/clients/csharp/src/BrowserUp.Mitmproxy.Client/Client/IApiAccessor.cs b/clients/csharp/src/BrowserUpMitmProxyClient/Client/IApiAccessor.cs
similarity index 92%
rename from clients/csharp/src/BrowserUp.Mitmproxy.Client/Client/IApiAccessor.cs
rename to clients/csharp/src/BrowserUpMitmProxyClient/Client/IApiAccessor.cs
index 52ef0755cf..5243403a95 100644
--- a/clients/csharp/src/BrowserUp.Mitmproxy.Client/Client/IApiAccessor.cs
+++ b/clients/csharp/src/BrowserUpMitmProxyClient/Client/IApiAccessor.cs
@@ -3,14 +3,14 @@
*
* ___ This is the REST API for controlling the BrowserUp MitmProxy. The BrowserUp MitmProxy is a swiss army knife for automated testing that captures HTTP traffic in HAR files. It is also useful for Selenium/Cypress tests. ___
*
- * The version of the OpenAPI document: 1.0.0
+ * The version of the OpenAPI document: 1.24
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
using System;
-namespace BrowserUp.Mitmproxy.Client.Client
+namespace BrowserUpMitmProxyClient.Client
{
///
/// Represents configuration aspects required to interact with the API endpoints.
diff --git a/clients/csharp/src/BrowserUp.Mitmproxy.Client/Client/IAsynchronousClient.cs b/clients/csharp/src/BrowserUpMitmProxyClient/Client/IAsynchronousClient.cs
similarity index 98%
rename from clients/csharp/src/BrowserUp.Mitmproxy.Client/Client/IAsynchronousClient.cs
rename to clients/csharp/src/BrowserUpMitmProxyClient/Client/IAsynchronousClient.cs
index 5fae815ba5..a6f92308c3 100644
--- a/clients/csharp/src/BrowserUp.Mitmproxy.Client/Client/IAsynchronousClient.cs
+++ b/clients/csharp/src/BrowserUpMitmProxyClient/Client/IAsynchronousClient.cs
@@ -3,7 +3,7 @@
*
* ___ This is the REST API for controlling the BrowserUp MitmProxy. The BrowserUp MitmProxy is a swiss army knife for automated testing that captures HTTP traffic in HAR files. It is also useful for Selenium/Cypress tests. ___
*
- * The version of the OpenAPI document: 1.0.0
+ * The version of the OpenAPI document: 1.24
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
@@ -11,7 +11,7 @@
using System;
using System.Threading.Tasks;
-namespace BrowserUp.Mitmproxy.Client.Client
+namespace BrowserUpMitmProxyClient.Client
{
///
/// Contract for Asynchronous RESTful API interactions.
diff --git a/clients/csharp/src/BrowserUp.Mitmproxy.Client/Client/IReadableConfiguration.cs b/clients/csharp/src/BrowserUpMitmProxyClient/Client/IReadableConfiguration.cs
similarity index 84%
rename from clients/csharp/src/BrowserUp.Mitmproxy.Client/Client/IReadableConfiguration.cs
rename to clients/csharp/src/BrowserUpMitmProxyClient/Client/IReadableConfiguration.cs
index c89d9de4fd..06f727a210 100644
--- a/clients/csharp/src/BrowserUp.Mitmproxy.Client/Client/IReadableConfiguration.cs
+++ b/clients/csharp/src/BrowserUpMitmProxyClient/Client/IReadableConfiguration.cs
@@ -3,7 +3,7 @@
*
* ___ This is the REST API for controlling the BrowserUp MitmProxy. The BrowserUp MitmProxy is a swiss army knife for automated testing that captures HTTP traffic in HAR files. It is also useful for Selenium/Cypress tests. ___
*
- * The version of the OpenAPI document: 1.0.0
+ * The version of the OpenAPI document: 1.24
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
@@ -11,10 +11,9 @@
using System;
using System.Collections.Generic;
using System.Net;
-using System.Net.Security;
using System.Security.Cryptography.X509Certificates;
-namespace BrowserUp.Mitmproxy.Client.Client
+namespace BrowserUpMitmProxyClient.Client
{
///
/// Represents a readable-only configuration contract.
@@ -100,11 +99,6 @@ public interface IReadableConfiguration
/// Password.
string Password { get; }
- ///
- /// Determine whether or not the "default credentials" (e.g. the user account under which the current process is running) will be sent along to the server. The default is false.
- ///
- bool UseDefaultCredentials { get; }
-
///
/// Get the servers associated with the operation.
///
@@ -131,11 +125,5 @@ public interface IReadableConfiguration
///
/// X509 Certificate collection.
X509CertificateCollection ClientCertificates { get; }
-
- ///
- /// Callback function for handling the validation of remote certificates. Useful for certificate pinning and
- /// overriding certificate errors in the scope of a request.
- ///
- RemoteCertificateValidationCallback RemoteCertificateValidationCallback { get; }
}
}
diff --git a/clients/csharp/src/BrowserUp.Mitmproxy.Client/Client/ISynchronousClient.cs b/clients/csharp/src/BrowserUpMitmProxyClient/Client/ISynchronousClient.cs
similarity index 98%
rename from clients/csharp/src/BrowserUp.Mitmproxy.Client/Client/ISynchronousClient.cs
rename to clients/csharp/src/BrowserUpMitmProxyClient/Client/ISynchronousClient.cs
index aa87d493dd..430c94b24e 100644
--- a/clients/csharp/src/BrowserUp.Mitmproxy.Client/Client/ISynchronousClient.cs
+++ b/clients/csharp/src/BrowserUpMitmProxyClient/Client/ISynchronousClient.cs
@@ -3,7 +3,7 @@
*
* ___ This is the REST API for controlling the BrowserUp MitmProxy. The BrowserUp MitmProxy is a swiss army knife for automated testing that captures HTTP traffic in HAR files. It is also useful for Selenium/Cypress tests. ___
*
- * The version of the OpenAPI document: 1.0.0
+ * The version of the OpenAPI document: 1.24
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
@@ -11,7 +11,7 @@
using System;
using System.IO;
-namespace BrowserUp.Mitmproxy.Client.Client
+namespace BrowserUpMitmProxyClient.Client
{
///
/// Contract for Synchronous RESTful API interactions.
diff --git a/clients/csharp/src/BrowserUp.Mitmproxy.Client/Client/Multimap.cs b/clients/csharp/src/BrowserUpMitmProxyClient/Client/Multimap.cs
similarity index 99%
rename from clients/csharp/src/BrowserUp.Mitmproxy.Client/Client/Multimap.cs
rename to clients/csharp/src/BrowserUpMitmProxyClient/Client/Multimap.cs
index d3a45b82eb..48abb21165 100644
--- a/clients/csharp/src/BrowserUp.Mitmproxy.Client/Client/Multimap.cs
+++ b/clients/csharp/src/BrowserUpMitmProxyClient/Client/Multimap.cs
@@ -3,7 +3,7 @@
*
* ___ This is the REST API for controlling the BrowserUp MitmProxy. The BrowserUp MitmProxy is a swiss army knife for automated testing that captures HTTP traffic in HAR files. It is also useful for Selenium/Cypress tests. ___
*
- * The version of the OpenAPI document: 1.0.0
+ * The version of the OpenAPI document: 1.24
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
@@ -12,7 +12,7 @@
using System.Collections;
using System.Collections.Generic;
-namespace BrowserUp.Mitmproxy.Client.Client
+namespace BrowserUpMitmProxyClient.Client
{
///
/// A dictionary in which one key has many associated values.
diff --git a/clients/csharp/src/BrowserUp.Mitmproxy.Client/Client/OpenAPIDateConverter.cs b/clients/csharp/src/BrowserUpMitmProxyClient/Client/OpenAPIDateConverter.cs
similarity index 91%
rename from clients/csharp/src/BrowserUp.Mitmproxy.Client/Client/OpenAPIDateConverter.cs
rename to clients/csharp/src/BrowserUpMitmProxyClient/Client/OpenAPIDateConverter.cs
index 9b962578f3..ea5de2a19b 100644
--- a/clients/csharp/src/BrowserUp.Mitmproxy.Client/Client/OpenAPIDateConverter.cs
+++ b/clients/csharp/src/BrowserUpMitmProxyClient/Client/OpenAPIDateConverter.cs
@@ -3,13 +3,13 @@
*
* ___ This is the REST API for controlling the BrowserUp MitmProxy. The BrowserUp MitmProxy is a swiss army knife for automated testing that captures HTTP traffic in HAR files. It is also useful for Selenium/Cypress tests. ___
*
- * The version of the OpenAPI document: 1.0.0
+ * The version of the OpenAPI document: 1.24
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
using Newtonsoft.Json.Converters;
-namespace BrowserUp.Mitmproxy.Client.Client
+namespace BrowserUpMitmProxyClient.Client
{
///
/// Formatter for 'date' openapi formats ss defined by full-date - RFC3339
diff --git a/clients/csharp/src/BrowserUp.Mitmproxy.Client/Client/RequestOptions.cs b/clients/csharp/src/BrowserUpMitmProxyClient/Client/RequestOptions.cs
similarity index 96%
rename from clients/csharp/src/BrowserUp.Mitmproxy.Client/Client/RequestOptions.cs
rename to clients/csharp/src/BrowserUpMitmProxyClient/Client/RequestOptions.cs
index 817903f8a6..76b060de33 100644
--- a/clients/csharp/src/BrowserUp.Mitmproxy.Client/Client/RequestOptions.cs
+++ b/clients/csharp/src/BrowserUpMitmProxyClient/Client/RequestOptions.cs
@@ -3,7 +3,7 @@
*
* ___ This is the REST API for controlling the BrowserUp MitmProxy. The BrowserUp MitmProxy is a swiss army knife for automated testing that captures HTTP traffic in HAR files. It is also useful for Selenium/Cypress tests. ___
*
- * The version of the OpenAPI document: 1.0.0
+ * The version of the OpenAPI document: 1.24
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
@@ -13,7 +13,7 @@
using System.IO;
using System.Net;
-namespace BrowserUp.Mitmproxy.Client.Client
+namespace BrowserUpMitmProxyClient.Client
{
///
/// A container for generalized request inputs. This type allows consumers to extend the request functionality
diff --git a/clients/csharp/src/BrowserUp.Mitmproxy.Client/Client/RetryConfiguration.cs b/clients/csharp/src/BrowserUpMitmProxyClient/Client/RetryConfiguration.cs
similarity index 90%
rename from clients/csharp/src/BrowserUp.Mitmproxy.Client/Client/RetryConfiguration.cs
rename to clients/csharp/src/BrowserUpMitmProxyClient/Client/RetryConfiguration.cs
index ef9e30f752..1ffd197846 100644
--- a/clients/csharp/src/BrowserUp.Mitmproxy.Client/Client/RetryConfiguration.cs
+++ b/clients/csharp/src/BrowserUpMitmProxyClient/Client/RetryConfiguration.cs
@@ -3,7 +3,7 @@
*
* ___ This is the REST API for controlling the BrowserUp MitmProxy. The BrowserUp MitmProxy is a swiss army knife for automated testing that captures HTTP traffic in HAR files. It is also useful for Selenium/Cypress tests. ___
*
- * The version of the OpenAPI document: 1.0.0
+ * The version of the OpenAPI document: 1.24
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
@@ -11,7 +11,7 @@
using Polly;
using RestSharp;
-namespace BrowserUp.Mitmproxy.Client.Client
+namespace BrowserUpMitmProxyClient.Client
{
///
/// Configuration class to set the polly retry policies to be applied to the requests.
diff --git a/clients/csharp/src/BrowserUp.Mitmproxy.Client/Model/AbstractOpenAPISchema.cs b/clients/csharp/src/BrowserUpMitmProxyClient/Model/AbstractOpenAPISchema.cs
similarity index 96%
rename from clients/csharp/src/BrowserUp.Mitmproxy.Client/Model/AbstractOpenAPISchema.cs
rename to clients/csharp/src/BrowserUpMitmProxyClient/Model/AbstractOpenAPISchema.cs
index fe4c146a1b..a7f4423184 100644
--- a/clients/csharp/src/BrowserUp.Mitmproxy.Client/Model/AbstractOpenAPISchema.cs
+++ b/clients/csharp/src/BrowserUpMitmProxyClient/Model/AbstractOpenAPISchema.cs
@@ -3,7 +3,7 @@
*
* ___ This is the REST API for controlling the BrowserUp MitmProxy. The BrowserUp MitmProxy is a swiss army knife for automated testing that captures HTTP traffic in HAR files. It is also useful for Selenium/Cypress tests. ___
*
- * The version of the OpenAPI document: 1.0.0
+ * The version of the OpenAPI document: 1.24
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
@@ -12,7 +12,7 @@
using Newtonsoft.Json;
using Newtonsoft.Json.Serialization;
-namespace BrowserUp.Mitmproxy.Client.Model
+namespace BrowserUpMitmProxyClient.Model
{
///
/// Abstract base class for oneOf, anyOf schemas in the OpenAPI specification
diff --git a/clients/csharp/src/BrowserUp.Mitmproxy.Client/Model/Action.cs b/clients/csharp/src/BrowserUpMitmProxyClient/Model/Action.cs
similarity index 96%
rename from clients/csharp/src/BrowserUp.Mitmproxy.Client/Model/Action.cs
rename to clients/csharp/src/BrowserUpMitmProxyClient/Model/Action.cs
index e0b6073be5..6049eddf1f 100644
--- a/clients/csharp/src/BrowserUp.Mitmproxy.Client/Model/Action.cs
+++ b/clients/csharp/src/BrowserUpMitmProxyClient/Model/Action.cs
@@ -3,7 +3,7 @@
*
* ___ This is the REST API for controlling the BrowserUp MitmProxy. The BrowserUp MitmProxy is a swiss army knife for automated testing that captures HTTP traffic in HAR files. It is also useful for Selenium/Cypress tests. ___
*
- * The version of the OpenAPI document: 1.0.0
+ * The version of the OpenAPI document: 1.24
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
@@ -21,9 +21,9 @@
using Newtonsoft.Json.Converters;
using Newtonsoft.Json.Linq;
using System.ComponentModel.DataAnnotations;
-using OpenAPIDateConverter = BrowserUp.Mitmproxy.Client.Client.OpenAPIDateConverter;
+using OpenAPIDateConverter = BrowserUpMitmProxyClient.Client.OpenAPIDateConverter;
-namespace BrowserUp.Mitmproxy.Client.Model
+namespace BrowserUpMitmProxyClient.Model
{
///
/// Action
@@ -245,7 +245,7 @@ public override int GetHashCode()
///
/// Validation context
/// Validation Result
- IEnumerable IValidatableObject.Validate(ValidationContext validationContext)
+ public IEnumerable Validate(ValidationContext validationContext)
{
yield break;
}
diff --git a/clients/csharp/src/BrowserUp.Mitmproxy.Client/Model/Error.cs b/clients/csharp/src/BrowserUpMitmProxyClient/Model/Error.cs
similarity index 93%
rename from clients/csharp/src/BrowserUp.Mitmproxy.Client/Model/Error.cs
rename to clients/csharp/src/BrowserUpMitmProxyClient/Model/Error.cs
index 219b8881dc..e4e46fbbef 100644
--- a/clients/csharp/src/BrowserUp.Mitmproxy.Client/Model/Error.cs
+++ b/clients/csharp/src/BrowserUpMitmProxyClient/Model/Error.cs
@@ -3,7 +3,7 @@
*
* ___ This is the REST API for controlling the BrowserUp MitmProxy. The BrowserUp MitmProxy is a swiss army knife for automated testing that captures HTTP traffic in HAR files. It is also useful for Selenium/Cypress tests. ___
*
- * The version of the OpenAPI document: 1.0.0
+ * The version of the OpenAPI document: 1.24
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
@@ -21,9 +21,9 @@
using Newtonsoft.Json.Converters;
using Newtonsoft.Json.Linq;
using System.ComponentModel.DataAnnotations;
-using OpenAPIDateConverter = BrowserUp.Mitmproxy.Client.Client.OpenAPIDateConverter;
+using OpenAPIDateConverter = BrowserUpMitmProxyClient.Client.OpenAPIDateConverter;
-namespace BrowserUp.Mitmproxy.Client.Model
+namespace BrowserUpMitmProxyClient.Model
{
///
/// Error
@@ -139,7 +139,7 @@ public override int GetHashCode()
///
/// Validation context
/// Validation Result
- IEnumerable IValidatableObject.Validate(ValidationContext validationContext)
+ public IEnumerable Validate(ValidationContext validationContext)
{
yield break;
}
diff --git a/clients/csharp/src/BrowserUp.Mitmproxy.Client/Model/Har.cs b/clients/csharp/src/BrowserUpMitmProxyClient/Model/Har.cs
similarity index 87%
rename from clients/csharp/src/BrowserUp.Mitmproxy.Client/Model/Har.cs
rename to clients/csharp/src/BrowserUpMitmProxyClient/Model/Har.cs
index d8d5d71986..8f68197694 100644
--- a/clients/csharp/src/BrowserUp.Mitmproxy.Client/Model/Har.cs
+++ b/clients/csharp/src/BrowserUpMitmProxyClient/Model/Har.cs
@@ -3,7 +3,7 @@
*
* ___ This is the REST API for controlling the BrowserUp MitmProxy. The BrowserUp MitmProxy is a swiss army knife for automated testing that captures HTTP traffic in HAR files. It is also useful for Selenium/Cypress tests. ___
*
- * The version of the OpenAPI document: 1.0.0
+ * The version of the OpenAPI document: 1.24
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
@@ -21,9 +21,9 @@
using Newtonsoft.Json.Converters;
using Newtonsoft.Json.Linq;
using System.ComponentModel.DataAnnotations;
-using OpenAPIDateConverter = BrowserUp.Mitmproxy.Client.Client.OpenAPIDateConverter;
+using OpenAPIDateConverter = BrowserUpMitmProxyClient.Client.OpenAPIDateConverter;
-namespace BrowserUp.Mitmproxy.Client.Model
+namespace BrowserUpMitmProxyClient.Model
{
///
/// Har
@@ -146,17 +146,7 @@ public override int GetHashCode()
///
/// Validation context
/// Validation Result
- IEnumerable IValidatableObject.Validate(ValidationContext validationContext)
- {
- return this.BaseValidate(validationContext);
- }
-
- ///
- /// To validate all properties of the instance
- ///
- /// Validation context
- /// Validation Result
- protected IEnumerable BaseValidate(ValidationContext validationContext)
+ public IEnumerable Validate(ValidationContext validationContext)
{
yield break;
}
diff --git a/clients/csharp/src/BrowserUp.Mitmproxy.Client/Model/HarEntry.cs b/clients/csharp/src/BrowserUpMitmProxyClient/Model/HarEntry.cs
similarity index 97%
rename from clients/csharp/src/BrowserUp.Mitmproxy.Client/Model/HarEntry.cs
rename to clients/csharp/src/BrowserUpMitmProxyClient/Model/HarEntry.cs
index 715713a004..14a35b4e5c 100644
--- a/clients/csharp/src/BrowserUp.Mitmproxy.Client/Model/HarEntry.cs
+++ b/clients/csharp/src/BrowserUpMitmProxyClient/Model/HarEntry.cs
@@ -3,7 +3,7 @@
*
* ___ This is the REST API for controlling the BrowserUp MitmProxy. The BrowserUp MitmProxy is a swiss army knife for automated testing that captures HTTP traffic in HAR files. It is also useful for Selenium/Cypress tests. ___
*
- * The version of the OpenAPI document: 1.0.0
+ * The version of the OpenAPI document: 1.24
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
@@ -21,9 +21,9 @@
using Newtonsoft.Json.Converters;
using Newtonsoft.Json.Linq;
using System.ComponentModel.DataAnnotations;
-using OpenAPIDateConverter = BrowserUp.Mitmproxy.Client.Client.OpenAPIDateConverter;
+using OpenAPIDateConverter = BrowserUpMitmProxyClient.Client.OpenAPIDateConverter;
-namespace BrowserUp.Mitmproxy.Client.Model
+namespace BrowserUpMitmProxyClient.Model
{
///
/// HarEntry
@@ -321,7 +321,7 @@ public override int GetHashCode()
///
/// Validation context
/// Validation Result
- IEnumerable IValidatableObject.Validate(ValidationContext validationContext)
+ public IEnumerable Validate(ValidationContext validationContext)
{
// Time (long) minimum
if (this.Time < (long)0)
diff --git a/clients/csharp/src/BrowserUp.Mitmproxy.Client/Model/HarEntryCache.cs b/clients/csharp/src/BrowserUpMitmProxyClient/Model/HarEntryCache.cs
similarity index 92%
rename from clients/csharp/src/BrowserUp.Mitmproxy.Client/Model/HarEntryCache.cs
rename to clients/csharp/src/BrowserUpMitmProxyClient/Model/HarEntryCache.cs
index ea797db09b..416090a8b7 100644
--- a/clients/csharp/src/BrowserUp.Mitmproxy.Client/Model/HarEntryCache.cs
+++ b/clients/csharp/src/BrowserUpMitmProxyClient/Model/HarEntryCache.cs
@@ -3,7 +3,7 @@
*
* ___ This is the REST API for controlling the BrowserUp MitmProxy. The BrowserUp MitmProxy is a swiss army knife for automated testing that captures HTTP traffic in HAR files. It is also useful for Selenium/Cypress tests. ___
*
- * The version of the OpenAPI document: 1.0.0
+ * The version of the OpenAPI document: 1.24
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
@@ -21,9 +21,9 @@
using Newtonsoft.Json.Converters;
using Newtonsoft.Json.Linq;
using System.ComponentModel.DataAnnotations;
-using OpenAPIDateConverter = BrowserUp.Mitmproxy.Client.Client.OpenAPIDateConverter;
+using OpenAPIDateConverter = BrowserUpMitmProxyClient.Client.OpenAPIDateConverter;
-namespace BrowserUp.Mitmproxy.Client.Model
+namespace BrowserUpMitmProxyClient.Model
{
///
/// HarEntryCache
@@ -47,13 +47,13 @@ public partial class HarEntryCache : IEquatable, IValidatableObje
///
/// Gets or Sets BeforeRequest
///
- [DataMember(Name = "beforeRequest", EmitDefaultValue = true)]
+ [DataMember(Name = "beforeRequest", EmitDefaultValue = false)]
public HarEntryCacheBeforeRequest BeforeRequest { get; set; }
///
/// Gets or Sets AfterRequest
///
- [DataMember(Name = "afterRequest", EmitDefaultValue = true)]
+ [DataMember(Name = "afterRequest", EmitDefaultValue = false)]
public HarEntryCacheBeforeRequest AfterRequest { get; set; }
///
@@ -155,7 +155,7 @@ public override int GetHashCode()
///
/// Validation context
/// Validation Result
- IEnumerable IValidatableObject.Validate(ValidationContext validationContext)
+ public IEnumerable Validate(ValidationContext validationContext)
{
yield break;
}
diff --git a/clients/csharp/src/BrowserUpMitmProxyClient/Model/HarEntryCacheBeforeRequest.cs b/clients/csharp/src/BrowserUpMitmProxyClient/Model/HarEntryCacheBeforeRequest.cs
new file mode 100644
index 0000000000..8859334142
--- /dev/null
+++ b/clients/csharp/src/BrowserUpMitmProxyClient/Model/HarEntryCacheBeforeRequest.cs
@@ -0,0 +1,256 @@
+/*
+ * BrowserUp MitmProxy
+ *
+ * ___ This is the REST API for controlling the BrowserUp MitmProxy. The BrowserUp MitmProxy is a swiss army knife for automated testing that captures HTTP traffic in HAR files. It is also useful for Selenium/Cypress tests. ___
+ *
+ * The version of the OpenAPI document: 1.24
+ * Generated by: https://github.com/openapitools/openapi-generator.git
+ */
+
+
+using System;
+using System.Collections;
+using System.Collections.Generic;
+using System.Collections.ObjectModel;
+using System.Linq;
+using System.IO;
+using System.Runtime.Serialization;
+using System.Text;
+using System.Text.RegularExpressions;
+using Newtonsoft.Json;
+using Newtonsoft.Json.Converters;
+using Newtonsoft.Json.Linq;
+using System.ComponentModel.DataAnnotations;
+using OpenAPIDateConverter = BrowserUpMitmProxyClient.Client.OpenAPIDateConverter;
+using System.Reflection;
+
+namespace BrowserUpMitmProxyClient.Model
+{
+ ///
+ /// HarEntryCacheBeforeRequest
+ ///
+ [JsonConverter(typeof(HarEntryCacheBeforeRequestJsonConverter))]
+ [DataContract(Name = "HarEntry_cache_beforeRequest")]
+ public partial class HarEntryCacheBeforeRequest : AbstractOpenAPISchema, IEquatable, IValidatableObject
+ {
+ ///
+ /// Initializes a new instance of the class.
+ ///
+ public HarEntryCacheBeforeRequest()
+ {
+ this.IsNullable = true;
+ this.SchemaType= "oneOf";
+ }
+
+ ///
+ /// Initializes a new instance of the class
+ /// with the class
+ ///
+ /// An instance of HarEntryCacheBeforeRequestOneOf.
+ public HarEntryCacheBeforeRequest(HarEntryCacheBeforeRequestOneOf actualInstance)
+ {
+ this.IsNullable = true;
+ this.SchemaType= "oneOf";
+ this.ActualInstance = actualInstance;
+ }
+
+
+ private Object _actualInstance;
+
+ ///
+ /// Gets or Sets ActualInstance
+ ///
+ public override Object ActualInstance
+ {
+ get
+ {
+ return _actualInstance;
+ }
+ set
+ {
+ if (value.GetType() == typeof(HarEntryCacheBeforeRequestOneOf))
+ {
+ this._actualInstance = value;
+ }
+ else
+ {
+ throw new ArgumentException("Invalid instance found. Must be the following types: HarEntryCacheBeforeRequestOneOf");
+ }
+ }
+ }
+
+ ///
+ /// Get the actual instance of `HarEntryCacheBeforeRequestOneOf`. If the actual instance is not `HarEntryCacheBeforeRequestOneOf`,
+ /// the InvalidClassException will be thrown
+ ///
+ /// An instance of HarEntryCacheBeforeRequestOneOf
+ public HarEntryCacheBeforeRequestOneOf GetHarEntryCacheBeforeRequestOneOf()
+ {
+ return (HarEntryCacheBeforeRequestOneOf)this.ActualInstance;
+ }
+
+ ///
+ /// Returns the string presentation of the object
+ ///
+ /// String presentation of the object
+ public override string ToString()
+ {
+ var sb = new StringBuilder();
+ sb.Append("class HarEntryCacheBeforeRequest {\n");
+ sb.Append(" ActualInstance: ").Append(this.ActualInstance).Append("\n");
+ sb.Append("}\n");
+ return sb.ToString();
+ }
+
+ ///
+ /// Returns the JSON string presentation of the object
+ ///
+ /// JSON string presentation of the object
+ public override string ToJson()
+ {
+ return JsonConvert.SerializeObject(this.ActualInstance, HarEntryCacheBeforeRequest.SerializerSettings);
+ }
+
+ ///
+ /// Converts the JSON string into an instance of HarEntryCacheBeforeRequest
+ ///
+ /// JSON string
+ /// An instance of HarEntryCacheBeforeRequest
+ public static HarEntryCacheBeforeRequest FromJson(string jsonString)
+ {
+ HarEntryCacheBeforeRequest newHarEntryCacheBeforeRequest = null;
+
+ if (string.IsNullOrEmpty(jsonString))
+ {
+ return newHarEntryCacheBeforeRequest;
+ }
+ int match = 0;
+ List matchedTypes = new List();
+
+ try
+ {
+ // if it does not contains "AdditionalProperties", use SerializerSettings to deserialize
+ if (typeof(HarEntryCacheBeforeRequestOneOf).GetProperty("AdditionalProperties") == null)
+ {
+ newHarEntryCacheBeforeRequest = new HarEntryCacheBeforeRequest(JsonConvert.DeserializeObject(jsonString, HarEntryCacheBeforeRequest.SerializerSettings));
+ }
+ else
+ {
+ newHarEntryCacheBeforeRequest = new HarEntryCacheBeforeRequest(JsonConvert.DeserializeObject(jsonString, HarEntryCacheBeforeRequest.AdditionalPropertiesSerializerSettings));
+ }
+ matchedTypes.Add("HarEntryCacheBeforeRequestOneOf");
+ match++;
+ }
+ catch (Exception exception)
+ {
+ // deserialization failed, try the next one
+ System.Diagnostics.Debug.WriteLine(string.Format("Failed to deserialize `{0}` into HarEntryCacheBeforeRequestOneOf: {1}", jsonString, exception.ToString()));
+ }
+
+ if (match == 0)
+ {
+ throw new InvalidDataException("The JSON string `" + jsonString + "` cannot be deserialized into any schema defined.");
+ }
+ else if (match > 1)
+ {
+ throw new InvalidDataException("The JSON string `" + jsonString + "` incorrectly matches more than one schema (should be exactly one match): " + matchedTypes);
+ }
+
+ // deserialization is considered successful at this point if no exception has been thrown.
+ return newHarEntryCacheBeforeRequest;
+ }
+
+ ///
+ /// Returns true if objects are equal
+ ///
+ /// Object to be compared
+ /// Boolean
+ public override bool Equals(object input)
+ {
+ return this.Equals(input as HarEntryCacheBeforeRequest);
+ }
+
+ ///
+ /// Returns true if HarEntryCacheBeforeRequest instances are equal
+ ///
+ /// Instance of HarEntryCacheBeforeRequest to be compared
+ /// Boolean
+ public bool Equals(HarEntryCacheBeforeRequest input)
+ {
+ if (input == null)
+ return false;
+
+ return this.ActualInstance.Equals(input.ActualInstance);
+ }
+
+ ///
+ /// Gets the hash code
+ ///
+ /// Hash code
+ public override int GetHashCode()
+ {
+ unchecked // Overflow is fine, just wrap
+ {
+ int hashCode = 41;
+ if (this.ActualInstance != null)
+ hashCode = hashCode * 59 + this.ActualInstance.GetHashCode();
+ return hashCode;
+ }
+ }
+
+ ///
+ /// To validate all properties of the instance
+ ///
+ /// Validation context
+ /// Validation Result
+ IEnumerable IValidatableObject.Validate(ValidationContext validationContext)
+ {
+ yield break;
+ }
+ }
+
+ ///
+ /// Custom JSON converter for HarEntryCacheBeforeRequest
+ ///
+ public class HarEntryCacheBeforeRequestJsonConverter : JsonConverter
+ {
+ ///
+ /// To write the JSON string
+ ///
+ /// JSON writer
+ /// Object to be converted into a JSON string
+ /// JSON Serializer
+ public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer)
+ {
+ writer.WriteRawValue((string)(typeof(HarEntryCacheBeforeRequest).GetMethod("ToJson").Invoke(value, null)));
+ }
+
+ ///
+ /// To convert a JSON string into an object
+ ///
+ /// JSON reader
+ /// Object type
+ /// Existing value
+ /// JSON Serializer
+ /// The object converted from the JSON string
+ public override object ReadJson(JsonReader reader, Type objectType, object existingValue, JsonSerializer serializer)
+ {
+ if(reader.TokenType != JsonToken.Null)
+ {
+ return HarEntryCacheBeforeRequest.FromJson(JObject.Load(reader).ToString(Formatting.None));
+ }
+ return null;
+ }
+
+ ///
+ /// Check if the object can be converted
+ ///
+ /// Object type
+ /// True if the object can be converted
+ public override bool CanConvert(Type objectType)
+ {
+ return false;
+ }
+ }
+
+}
diff --git a/clients/csharp/src/BrowserUp.Mitmproxy.Client/Model/HarEntryCacheBeforeRequestOneOf.cs b/clients/csharp/src/BrowserUpMitmProxyClient/Model/HarEntryCacheBeforeRequestOneOf.cs
similarity index 96%
rename from clients/csharp/src/BrowserUp.Mitmproxy.Client/Model/HarEntryCacheBeforeRequestOneOf.cs
rename to clients/csharp/src/BrowserUpMitmProxyClient/Model/HarEntryCacheBeforeRequestOneOf.cs
index abddd79e01..62dc016d6b 100644
--- a/clients/csharp/src/BrowserUp.Mitmproxy.Client/Model/HarEntryCacheBeforeRequestOneOf.cs
+++ b/clients/csharp/src/BrowserUpMitmProxyClient/Model/HarEntryCacheBeforeRequestOneOf.cs
@@ -3,7 +3,7 @@
*
* ___ This is the REST API for controlling the BrowserUp MitmProxy. The BrowserUp MitmProxy is a swiss army knife for automated testing that captures HTTP traffic in HAR files. It is also useful for Selenium/Cypress tests. ___
*
- * The version of the OpenAPI document: 1.0.0
+ * The version of the OpenAPI document: 1.24
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
@@ -21,9 +21,9 @@
using Newtonsoft.Json.Converters;
using Newtonsoft.Json.Linq;
using System.ComponentModel.DataAnnotations;
-using OpenAPIDateConverter = BrowserUp.Mitmproxy.Client.Client.OpenAPIDateConverter;
+using OpenAPIDateConverter = BrowserUpMitmProxyClient.Client.OpenAPIDateConverter;
-namespace BrowserUp.Mitmproxy.Client.Model
+namespace BrowserUpMitmProxyClient.Model
{
///
/// HarEntryCacheBeforeRequestOneOf
@@ -202,7 +202,7 @@ public override int GetHashCode()
///
/// Validation context
/// Validation Result
- IEnumerable IValidatableObject.Validate(ValidationContext validationContext)
+ public IEnumerable Validate(ValidationContext validationContext)
{
yield break;
}
diff --git a/clients/csharp/src/BrowserUp.Mitmproxy.Client/Model/HarEntryRequest.cs b/clients/csharp/src/BrowserUpMitmProxyClient/Model/HarEntryRequest.cs
similarity index 94%
rename from clients/csharp/src/BrowserUp.Mitmproxy.Client/Model/HarEntryRequest.cs
rename to clients/csharp/src/BrowserUpMitmProxyClient/Model/HarEntryRequest.cs
index 110ff327d6..0e96288d16 100644
--- a/clients/csharp/src/BrowserUp.Mitmproxy.Client/Model/HarEntryRequest.cs
+++ b/clients/csharp/src/BrowserUpMitmProxyClient/Model/HarEntryRequest.cs
@@ -3,7 +3,7 @@
*
* ___ This is the REST API for controlling the BrowserUp MitmProxy. The BrowserUp MitmProxy is a swiss army knife for automated testing that captures HTTP traffic in HAR files. It is also useful for Selenium/Cypress tests. ___
*
- * The version of the OpenAPI document: 1.0.0
+ * The version of the OpenAPI document: 1.24
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
@@ -21,9 +21,9 @@
using Newtonsoft.Json.Converters;
using Newtonsoft.Json.Linq;
using System.ComponentModel.DataAnnotations;
-using OpenAPIDateConverter = BrowserUp.Mitmproxy.Client.Client.OpenAPIDateConverter;
+using OpenAPIDateConverter = BrowserUpMitmProxyClient.Client.OpenAPIDateConverter;
-namespace BrowserUp.Mitmproxy.Client.Model
+namespace BrowserUpMitmProxyClient.Model
{
///
/// HarEntryRequest
@@ -328,17 +328,7 @@ public override int GetHashCode()
///
/// Validation context
/// Validation Result
- IEnumerable IValidatableObject.Validate(ValidationContext validationContext)
- {
- return this.BaseValidate(validationContext);
- }
-
- ///
- /// To validate all properties of the instance
- ///
- /// Validation context
- /// Validation Result
- protected IEnumerable BaseValidate(ValidationContext validationContext)
+ public IEnumerable Validate(ValidationContext validationContext)
{
yield break;
}
diff --git a/clients/csharp/src/BrowserUp.Mitmproxy.Client/Model/HarEntryRequestCookiesInner.cs b/clients/csharp/src/BrowserUpMitmProxyClient/Model/HarEntryRequestCookiesInner.cs
similarity index 96%
rename from clients/csharp/src/BrowserUp.Mitmproxy.Client/Model/HarEntryRequestCookiesInner.cs
rename to clients/csharp/src/BrowserUpMitmProxyClient/Model/HarEntryRequestCookiesInner.cs
index 7d4898d07a..44d8f43a27 100644
--- a/clients/csharp/src/BrowserUp.Mitmproxy.Client/Model/HarEntryRequestCookiesInner.cs
+++ b/clients/csharp/src/BrowserUpMitmProxyClient/Model/HarEntryRequestCookiesInner.cs
@@ -3,7 +3,7 @@
*
* ___ This is the REST API for controlling the BrowserUp MitmProxy. The BrowserUp MitmProxy is a swiss army knife for automated testing that captures HTTP traffic in HAR files. It is also useful for Selenium/Cypress tests. ___
*
- * The version of the OpenAPI document: 1.0.0
+ * The version of the OpenAPI document: 1.24
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
@@ -21,9 +21,9 @@
using Newtonsoft.Json.Converters;
using Newtonsoft.Json.Linq;
using System.ComponentModel.DataAnnotations;
-using OpenAPIDateConverter = BrowserUp.Mitmproxy.Client.Client.OpenAPIDateConverter;
+using OpenAPIDateConverter = BrowserUpMitmProxyClient.Client.OpenAPIDateConverter;
-namespace BrowserUp.Mitmproxy.Client.Model
+namespace BrowserUpMitmProxyClient.Model
{
///
/// HarEntryRequestCookiesInner
@@ -252,7 +252,7 @@ public override int GetHashCode()
///
/// Validation context
/// Validation Result
- IEnumerable IValidatableObject.Validate(ValidationContext validationContext)
+ public IEnumerable Validate(ValidationContext validationContext)
{
yield break;
}
diff --git a/clients/csharp/src/BrowserUp.Mitmproxy.Client/Model/HarEntryRequestPostData.cs b/clients/csharp/src/BrowserUpMitmProxyClient/Model/HarEntryRequestPostData.cs
similarity index 84%
rename from clients/csharp/src/BrowserUp.Mitmproxy.Client/Model/HarEntryRequestPostData.cs
rename to clients/csharp/src/BrowserUpMitmProxyClient/Model/HarEntryRequestPostData.cs
index acfa800288..1585e9fb68 100644
--- a/clients/csharp/src/BrowserUp.Mitmproxy.Client/Model/HarEntryRequestPostData.cs
+++ b/clients/csharp/src/BrowserUpMitmProxyClient/Model/HarEntryRequestPostData.cs
@@ -3,7 +3,7 @@
*
* ___ This is the REST API for controlling the BrowserUp MitmProxy. The BrowserUp MitmProxy is a swiss army knife for automated testing that captures HTTP traffic in HAR files. It is also useful for Selenium/Cypress tests. ___
*
- * The version of the OpenAPI document: 1.0.0
+ * The version of the OpenAPI document: 1.24
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
@@ -21,9 +21,9 @@
using Newtonsoft.Json.Converters;
using Newtonsoft.Json.Linq;
using System.ComponentModel.DataAnnotations;
-using OpenAPIDateConverter = BrowserUp.Mitmproxy.Client.Client.OpenAPIDateConverter;
+using OpenAPIDateConverter = BrowserUpMitmProxyClient.Client.OpenAPIDateConverter;
-namespace BrowserUp.Mitmproxy.Client.Model
+namespace BrowserUpMitmProxyClient.Model
{
///
/// Posted data info.
@@ -41,8 +41,8 @@ protected HarEntryRequestPostData() { }
///
/// mimeType (required).
/// text.
- /// varParams.
- public HarEntryRequestPostData(string mimeType = default(string), string text = default(string), List varParams = default(List))
+ /// _params.
+ public HarEntryRequestPostData(string mimeType = default(string), string text = default(string), List _params = default(List))
{
// to ensure "mimeType" is required (not null)
if (mimeType == null)
@@ -51,7 +51,7 @@ protected HarEntryRequestPostData() { }
}
this.MimeType = mimeType;
this.Text = text;
- this.VarParams = varParams;
+ this.Params = _params;
}
///
@@ -67,10 +67,10 @@ protected HarEntryRequestPostData() { }
public string Text { get; set; }
///
- /// Gets or Sets VarParams
+ /// Gets or Sets Params
///
[DataMember(Name = "params", EmitDefaultValue = false)]
- public List VarParams { get; set; }
+ public List