diff --git a/docs/LeasesLookUpWithPrefixResponse.md b/docs/LeasesLookUpWithPrefixResponse.md
deleted file mode 100644
index 06079bd8..00000000
--- a/docs/LeasesLookUpWithPrefixResponse.md
+++ /dev/null
@@ -1,10 +0,0 @@
-# Vault.Model.LeasesLookUpWithPrefixResponse
-
-## Properties
-
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**Keys** | **List<string>** | A list of lease ids | [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/docs/RawListPathResponse.md b/docs/RawListPathResponse.md
deleted file mode 100644
index 487fa3af..00000000
--- a/docs/RawListPathResponse.md
+++ /dev/null
@@ -1,10 +0,0 @@
-# Vault.Model.RawListPathResponse
-
-## Properties
-
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**Keys** | **List<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/docs/RawReadPathResponse.md b/docs/RawReadPathResponse.md
deleted file mode 100644
index 0f20ea8f..00000000
--- a/docs/RawReadPathResponse.md
+++ /dev/null
@@ -1,10 +0,0 @@
-# Vault.Model.RawReadPathResponse
-
-## Properties
-
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**Value** | **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/docs/RawWritePathRequest.md b/docs/RawWritePathRequest.md
deleted file mode 100644
index e911f8b6..00000000
--- a/docs/RawWritePathRequest.md
+++ /dev/null
@@ -1,13 +0,0 @@
-# Vault.Model.RawWritePathRequest
-
-## Properties
-
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**Compressed** | **bool** | | [optional]
-**CompressionType** | **string** | | [optional]
-**Encoding** | **string** | | [optional]
-**Value** | **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/docs/RawWriteRequest.md b/docs/RawWriteRequest.md
index 9ed5fc5b..c7c20465 100644
--- a/docs/RawWriteRequest.md
+++ b/docs/RawWriteRequest.md
@@ -7,7 +7,6 @@ Name | Type | Description | Notes
**Compressed** | **bool** | | [optional]
**CompressionType** | **string** | | [optional]
**Encoding** | **string** | | [optional]
-**Path** | **string** | | [optional]
**Value** | **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/docs/SystemApi.md b/docs/SystemApi.md
index f753198b..c356d9fd 100644
--- a/docs/SystemApi.md
+++ b/docs/SystemApi.md
@@ -56,8 +56,7 @@ Method | HTTP request | Description
[**LeasesCount**](SystemApi.md#leasescount) | **GET** /sys/leases/count |
[**LeasesForceRevokeLeaseWithPrefix**](SystemApi.md#leasesforcerevokeleasewithprefix) | **POST** /sys/leases/revoke-force/{prefix} | Revokes all secrets or tokens generated under a given prefix immediately
[**LeasesList**](SystemApi.md#leaseslist) | **GET** /sys/leases |
-[**LeasesLookUp**](SystemApi.md#leaseslookup) | **GET** /sys/leases/lookup/ |
-[**LeasesLookUpWithPrefix**](SystemApi.md#leaseslookupwithprefix) | **GET** /sys/leases/lookup/{prefix}/ |
+[**LeasesLookUp**](SystemApi.md#leaseslookup) | **GET** /sys/leases/lookup/{prefix}/ |
[**LeasesReadLease**](SystemApi.md#leasesreadlease) | **POST** /sys/leases/lookup |
[**LeasesRenewLease**](SystemApi.md#leasesrenewlease) | **POST** /sys/leases/renew | Renews a lease, requesting to extend the lease.
[**LeasesRenewLeaseWithId**](SystemApi.md#leasesrenewleasewithid) | **POST** /sys/leases/renew/{url_lease_id} | Renews a lease, requesting to extend the lease.
@@ -121,14 +120,10 @@ Method | HTTP request | Description
[**RateLimitQuotasRead**](SystemApi.md#ratelimitquotasread) | **GET** /sys/quotas/rate-limit/{name} |
[**RateLimitQuotasReadConfiguration**](SystemApi.md#ratelimitquotasreadconfiguration) | **GET** /sys/quotas/config |
[**RateLimitQuotasWrite**](SystemApi.md#ratelimitquotaswrite) | **POST** /sys/quotas/rate-limit/{name} |
-[**RawDelete**](SystemApi.md#rawdelete) | **DELETE** /sys/raw | Delete the key with given path.
-[**RawDeletePath**](SystemApi.md#rawdeletepath) | **DELETE** /sys/raw/{path} | Delete the key with given path.
-[**RawList**](SystemApi.md#rawlist) | **GET** /sys/raw/ | Return a list keys for a given path prefix.
-[**RawListPath**](SystemApi.md#rawlistpath) | **GET** /sys/raw/{path}/ | Return a list keys for a given path prefix.
-[**RawRead**](SystemApi.md#rawread) | **GET** /sys/raw | Read the value of the key at the given path.
-[**RawReadPath**](SystemApi.md#rawreadpath) | **GET** /sys/raw/{path} | Read the value of the key at the given path.
-[**RawWrite**](SystemApi.md#rawwrite) | **POST** /sys/raw | Update the value of the key at the given path.
-[**RawWritePath**](SystemApi.md#rawwritepath) | **POST** /sys/raw/{path} | Update the value of the key at the given path.
+[**RawDelete**](SystemApi.md#rawdelete) | **DELETE** /sys/raw/{path} | Delete the key with given path.
+[**RawList**](SystemApi.md#rawlist) | **GET** /sys/raw/{path}/ | Return a list keys for a given path prefix.
+[**RawRead**](SystemApi.md#rawread) | **GET** /sys/raw/{path} | Read the value of the key at the given path.
+[**RawWrite**](SystemApi.md#rawwrite) | **POST** /sys/raw/{path} | Update the value of the key at the given path.
[**ReadHealthStatus**](SystemApi.md#readhealthstatus) | **GET** /sys/health | Returns the health status of Vault.
[**ReadInitializationStatus**](SystemApi.md#readinitializationstatus) | **GET** /sys/init | Returns the initialization status of Vault.
[**ReadSanitizedConfigurationState**](SystemApi.md#readsanitizedconfigurationstate) | **GET** /sys/config/state/sanitized | Return a sanitized version of the Vault server configuration.
@@ -6158,7 +6153,7 @@ No authorization required
# **LeasesLookUp**
-> LeasesLookUpResponse LeasesLookUp (TimeSpan? wrapTTL = null)
+> LeasesLookUpResponse LeasesLookUp (string prefix, TimeSpan? wrapTTL = null)
@@ -6191,98 +6186,6 @@ namespace Example
- var list = "true"; // string | Must be set to `true`
-
-
-
-
- try
- {
-
-
- LeasesLookUpResponse result = apiInstance.LeasesLookUp(TimeSpan? wrapTTL = null);
-
- Debug.WriteLine(result);
- }
- catch (ApiException e)
- {
- Debug.Print("Exception when calling System.LeasesLookUp: " + e.Message );
- Debug.Print("Status Code: "+ e.ErrorCode);
- }
- }
- }
-}
-```
-
-### Parameters
-
-Name | Type | Description | Notes
-------------- | ------------- | ------------- | -------------
- **list** | **string**| Must be set to `true` |
-
-
-### Return type
-
-[**LeasesLookUpResponse**](LeasesLookUpResponse.md)
-
-### Authorization
-
-No authorization required
-
-### HTTP request headers
-
- - **Content-Type**: Not defined
- - **Accept**: application/json
-
-
-
-### HTTP response details
-| Status code | Description | Response headers |
-|-------------|-------------|------------------|
-
-| **200** | OK | - |
-
-
-
-[[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)
-
-
-
-# **LeasesLookUpWithPrefix**
-
-> LeasesLookUpWithPrefixResponse LeasesLookUpWithPrefix (string prefix, TimeSpan? wrapTTL = null)
-
-
-
-### Example
-```csharp
-using System.Collections.Generic;
-using System.Diagnostics;
-
-using System.Net.Http;
-
-using Vault.Api;
-using Vault.Client;
-using Vault.Model;
-
-namespace Example
-{
- public class LeasesLookUpWithPrefixExample
- {
- public static void Main()
- {
- Configuration config = new Configuration();
- config.BasePath = "http://localhost";
-
-
- // create instances of HttpClient, HttpClientHandler to be reused later with different Api classes
- HttpClient httpClient = new HttpClient();
- HttpClientHandler httpClientHandler = new HttpClientHandler();
- var apiInstance = new System(httpClient, config, httpClientHandler);
-
-
-
-
var prefix = "prefix_example"; // string | The path to list leases under. Example: \"aws/creds/deploy\"
@@ -6297,13 +6200,13 @@ namespace Example
{
- LeasesLookUpWithPrefixResponse result = apiInstance.LeasesLookUpWithPrefix(string prefix, TimeSpan? wrapTTL = null);
+ LeasesLookUpResponse result = apiInstance.LeasesLookUp(string prefix, TimeSpan? wrapTTL = null);
Debug.WriteLine(result);
}
catch (ApiException e)
{
- Debug.Print("Exception when calling System.LeasesLookUpWithPrefix: " + e.Message );
+ Debug.Print("Exception when calling System.LeasesLookUp: " + e.Message );
Debug.Print("Status Code: "+ e.ErrorCode);
}
}
@@ -6321,7 +6224,7 @@ Name | Type | Description | Notes
### Return type
-[**LeasesLookUpWithPrefixResponse**](LeasesLookUpWithPrefixResponse.md)
+[**LeasesLookUpResponse**](LeasesLookUpResponse.md)
### Authorization
@@ -12408,7 +12311,7 @@ No authorization required
# **RawDelete**
-> void RawDelete (TimeSpan? wrapTTL = null)
+> void RawDelete (string path, TimeSpan? wrapTTL = null)
Delete the key with given path.
@@ -12440,90 +12343,6 @@ namespace Example
-
- try
- {
-
- // Delete the key with given path.
-
-
- apiInstance.RawDelete(TimeSpan? wrapTTL = null);
- }
- catch (ApiException e)
- {
- Debug.Print("Exception when calling System.RawDelete: " + e.Message );
- Debug.Print("Status Code: "+ e.ErrorCode);
- }
- }
- }
-}
-```
-
-### Parameters
-This endpoint does not need any parameter.
-
-
-### Return type
-
-void (empty response body)
-
-### Authorization
-
-No authorization required
-
-### HTTP request headers
-
- - **Content-Type**: Not defined
- - **Accept**: Not defined
-
-
-
-### HTTP response details
-| Status code | Description | Response headers |
-|-------------|-------------|------------------|
-
-| **204** | OK | - |
-
-
-
-[[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)
-
-
-
-# **RawDeletePath**
-
-> void RawDeletePath (string path, TimeSpan? wrapTTL = null)
-
-Delete the key with given path.
-
-### Example
-```csharp
-using System.Collections.Generic;
-using System.Diagnostics;
-
-using System.Net.Http;
-
-using Vault.Api;
-using Vault.Client;
-using Vault.Model;
-
-namespace Example
-{
- public class RawDeletePathExample
- {
- public static void Main()
- {
- Configuration config = new Configuration();
- config.BasePath = "http://localhost";
-
-
- // create instances of HttpClient, HttpClientHandler to be reused later with different Api classes
- HttpClient httpClient = new HttpClient();
- HttpClientHandler httpClientHandler = new HttpClientHandler();
- var apiInstance = new System(httpClient, config, httpClientHandler);
-
-
-
var path = "path_example"; // string |
@@ -12536,11 +12355,11 @@ namespace Example
// Delete the key with given path.
- apiInstance.RawDeletePath(string path, TimeSpan? wrapTTL = null);
+ apiInstance.RawDelete(string path, TimeSpan? wrapTTL = null);
}
catch (ApiException e)
{
- Debug.Print("Exception when calling System.RawDeletePath: " + e.Message );
+ Debug.Print("Exception when calling System.RawDelete: " + e.Message );
Debug.Print("Status Code: "+ e.ErrorCode);
}
}
@@ -12584,7 +12403,7 @@ No authorization required
# **RawList**
-> RawListResponse RawList (TimeSpan? wrapTTL = null)
+> RawListResponse RawList (string path, TimeSpan? wrapTTL = null)
Return a list keys for a given path prefix.
@@ -12617,100 +12436,6 @@ namespace Example
- var list = "true"; // string | Must be set to `true`
-
-
-
-
- try
- {
-
- // Return a list keys for a given path prefix.
-
-
- RawListResponse result = apiInstance.RawList(TimeSpan? wrapTTL = null);
-
- Debug.WriteLine(result);
- }
- catch (ApiException e)
- {
- Debug.Print("Exception when calling System.RawList: " + e.Message );
- Debug.Print("Status Code: "+ e.ErrorCode);
- }
- }
- }
-}
-```
-
-### Parameters
-
-Name | Type | Description | Notes
-------------- | ------------- | ------------- | -------------
- **list** | **string**| Must be set to `true` |
-
-
-### Return type
-
-[**RawListResponse**](RawListResponse.md)
-
-### Authorization
-
-No authorization required
-
-### HTTP request headers
-
- - **Content-Type**: Not defined
- - **Accept**: application/json
-
-
-
-### HTTP response details
-| Status code | Description | Response headers |
-|-------------|-------------|------------------|
-
-| **200** | OK | - |
-
-
-
-[[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)
-
-
-
-# **RawListPath**
-
-> RawListPathResponse RawListPath (string path, TimeSpan? wrapTTL = null)
-
-Return a list keys for a given path prefix.
-
-### Example
-```csharp
-using System.Collections.Generic;
-using System.Diagnostics;
-
-using System.Net.Http;
-
-using Vault.Api;
-using Vault.Client;
-using Vault.Model;
-
-namespace Example
-{
- public class RawListPathExample
- {
- public static void Main()
- {
- Configuration config = new Configuration();
- config.BasePath = "http://localhost";
-
-
- // create instances of HttpClient, HttpClientHandler to be reused later with different Api classes
- HttpClient httpClient = new HttpClient();
- HttpClientHandler httpClientHandler = new HttpClientHandler();
- var apiInstance = new System(httpClient, config, httpClientHandler);
-
-
-
-
var path = "path_example"; // string |
@@ -12727,13 +12452,13 @@ namespace Example
// Return a list keys for a given path prefix.
- RawListPathResponse result = apiInstance.RawListPath(string path, TimeSpan? wrapTTL = null);
+ RawListResponse result = apiInstance.RawList(string path, TimeSpan? wrapTTL = null);
Debug.WriteLine(result);
}
catch (ApiException e)
{
- Debug.Print("Exception when calling System.RawListPath: " + e.Message );
+ Debug.Print("Exception when calling System.RawList: " + e.Message );
Debug.Print("Status Code: "+ e.ErrorCode);
}
}
@@ -12751,7 +12476,7 @@ Name | Type | Description | Notes
### Return type
-[**RawListPathResponse**](RawListPathResponse.md)
+[**RawListResponse**](RawListResponse.md)
### Authorization
@@ -12778,7 +12503,7 @@ No authorization required
# **RawRead**
-> RawReadResponse RawRead (TimeSpan? wrapTTL = null)
+> RawReadResponse RawRead (string path, TimeSpan? wrapTTL = null)
Read the value of the key at the given path.
@@ -12810,92 +12535,6 @@ namespace Example
-
- try
- {
-
- // Read the value of the key at the given path.
-
-
- RawReadResponse result = apiInstance.RawRead(TimeSpan? wrapTTL = null);
-
- Debug.WriteLine(result);
- }
- catch (ApiException e)
- {
- Debug.Print("Exception when calling System.RawRead: " + e.Message );
- Debug.Print("Status Code: "+ e.ErrorCode);
- }
- }
- }
-}
-```
-
-### Parameters
-This endpoint does not need any parameter.
-
-
-### Return type
-
-[**RawReadResponse**](RawReadResponse.md)
-
-### Authorization
-
-No authorization required
-
-### HTTP request headers
-
- - **Content-Type**: Not defined
- - **Accept**: application/json
-
-
-
-### HTTP response details
-| Status code | Description | Response headers |
-|-------------|-------------|------------------|
-
-| **200** | OK | - |
-
-
-
-[[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)
-
-
-
-# **RawReadPath**
-
-> RawReadPathResponse RawReadPath (string path, TimeSpan? wrapTTL = null)
-
-Read the value of the key at the given path.
-
-### Example
-```csharp
-using System.Collections.Generic;
-using System.Diagnostics;
-
-using System.Net.Http;
-
-using Vault.Api;
-using Vault.Client;
-using Vault.Model;
-
-namespace Example
-{
- public class RawReadPathExample
- {
- public static void Main()
- {
- Configuration config = new Configuration();
- config.BasePath = "http://localhost";
-
-
- // create instances of HttpClient, HttpClientHandler to be reused later with different Api classes
- HttpClient httpClient = new HttpClient();
- HttpClientHandler httpClientHandler = new HttpClientHandler();
- var apiInstance = new System(httpClient, config, httpClientHandler);
-
-
-
var path = "path_example"; // string |
@@ -12908,13 +12547,13 @@ namespace Example
// Read the value of the key at the given path.
- RawReadPathResponse result = apiInstance.RawReadPath(string path, TimeSpan? wrapTTL = null);
+ RawReadResponse result = apiInstance.RawRead(string path, TimeSpan? wrapTTL = null);
Debug.WriteLine(result);
}
catch (ApiException e)
{
- Debug.Print("Exception when calling System.RawReadPath: " + e.Message );
+ Debug.Print("Exception when calling System.RawRead: " + e.Message );
Debug.Print("Status Code: "+ e.ErrorCode);
}
}
@@ -12931,7 +12570,7 @@ Name | Type | Description | Notes
### Return type
-[**RawReadPathResponse**](RawReadPathResponse.md)
+[**RawReadResponse**](RawReadResponse.md)
### Authorization
@@ -12958,7 +12597,7 @@ No authorization required
# **RawWrite**
-> void RawWrite (RawWriteRequest rawWriteRequest, TimeSpan? wrapTTL = null)
+> void RawWrite (string path, RawWriteRequest rawWriteRequest, TimeSpan? wrapTTL = null)
Update the value of the key at the given path.
@@ -12991,105 +12630,13 @@ namespace Example
-
- var rawWriteRequest = new RawWriteRequest(); // RawWriteRequest |
-
-
-
- try
- {
-
- // Update the value of the key at the given path.
-
-
- apiInstance.RawWrite(RawWriteRequest rawWriteRequest, TimeSpan? wrapTTL = null);
- }
- catch (ApiException e)
- {
- Debug.Print("Exception when calling System.RawWrite: " + e.Message );
- Debug.Print("Status Code: "+ e.ErrorCode);
- }
- }
- }
-}
-```
-
-### Parameters
-
-Name | Type | Description | Notes
-------------- | ------------- | ------------- | -------------
- **rawWriteRequest** | [**RawWriteRequest**](RawWriteRequest.md)| |
-
-
-### Return type
-
-void (empty response body)
-
-### Authorization
-
-No authorization required
-
-### HTTP request headers
-
- - **Content-Type**: ,
- - **Accept**: Not defined
-
-
-
-### HTTP response details
-| Status code | Description | Response headers |
-|-------------|-------------|------------------|
-
-| **200** | OK | - |
-
-
-
-[[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)
-
-
-
-# **RawWritePath**
-
-> void RawWritePath (string path, RawWritePathRequest rawWritePathRequest, TimeSpan? wrapTTL = null)
-
-Update the value of the key at the given path.
-
-### Example
-```csharp
-using System.Collections.Generic;
-using System.Diagnostics;
-
-using System.Net.Http;
-
-using Vault.Api;
-using Vault.Client;
-using Vault.Model;
-
-namespace Example
-{
- public class RawWritePathExample
- {
- public static void Main()
- {
- Configuration config = new Configuration();
- config.BasePath = "http://localhost";
-
-
- // create instances of HttpClient, HttpClientHandler to be reused later with different Api classes
- HttpClient httpClient = new HttpClient();
- HttpClientHandler httpClientHandler = new HttpClientHandler();
- var apiInstance = new System(httpClient, config, httpClientHandler);
-
-
-
-
var path = "path_example"; // string |
- var rawWritePathRequest = new RawWritePathRequest(); // RawWritePathRequest |
+ var rawWriteRequest = new RawWriteRequest(); // RawWriteRequest |
@@ -13099,11 +12646,11 @@ namespace Example
// Update the value of the key at the given path.
- apiInstance.RawWritePath(string path, RawWritePathRequest rawWritePathRequest, TimeSpan? wrapTTL = null);
+ apiInstance.RawWrite(string path, RawWriteRequest rawWriteRequest, TimeSpan? wrapTTL = null);
}
catch (ApiException e)
{
- Debug.Print("Exception when calling System.RawWritePath: " + e.Message );
+ Debug.Print("Exception when calling System.RawWrite: " + e.Message );
Debug.Print("Status Code: "+ e.ErrorCode);
}
}
@@ -13116,7 +12663,7 @@ namespace Example
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**path** | **string**| |
- **rawWritePathRequest** | [**RawWritePathRequest**](RawWritePathRequest.md)| |
+ **rawWriteRequest** | [**RawWriteRequest**](RawWriteRequest.md)| |
### Return type
diff --git a/openapi.json b/openapi.json
index aabd8b2a..4b4aa395 100644
--- a/openapi.json
+++ b/openapi.json
@@ -11209,42 +11209,6 @@
}
}
},
- "/sys/leases/lookup/": {
- "description": "View or list lease metadata.",
- "x-vault-sudo": true,
- "get": {
- "operationId": "leases-look-up",
- "tags": [
- "system"
- ],
- "parameters": [
- {
- "name": "list",
- "description": "Must be set to `true`",
- "in": "query",
- "schema": {
- "type": "string",
- "enum": [
- "true"
- ]
- },
- "required": true
- }
- ],
- "responses": {
- "200": {
- "description": "OK",
- "content": {
- "application/json": {
- "schema": {
- "$ref": "#/components/schemas/LeasesLookUpResponse"
- }
- }
- }
- }
- }
- }
- },
"/sys/leases/lookup/{prefix}/": {
"description": "View or list lease metadata.",
"parameters": [
@@ -11260,7 +11224,7 @@
],
"x-vault-sudo": true,
"get": {
- "operationId": "leases-look-up-with-prefix",
+ "operationId": "leases-look-up",
"tags": [
"system"
],
@@ -11284,7 +11248,7 @@
"content": {
"application/json": {
"schema": {
- "$ref": "#/components/schemas/LeasesLookUpWithPrefixResponse"
+ "$ref": "#/components/schemas/LeasesLookUpResponse"
}
}
}
@@ -13593,101 +13557,6 @@
}
}
},
- "/sys/raw": {
- "description": "Write, Read, and Delete data directly in the Storage backend.",
- "x-vault-sudo": true,
- "x-vault-createSupported": true,
- "get": {
- "summary": "Read the value of the key at the given path.",
- "operationId": "raw-read",
- "tags": [
- "system"
- ],
- "responses": {
- "200": {
- "description": "OK",
- "content": {
- "application/json": {
- "schema": {
- "$ref": "#/components/schemas/RawReadResponse"
- }
- }
- }
- }
- }
- },
- "post": {
- "summary": "Update the value of the key at the given path.",
- "operationId": "raw-write",
- "tags": [
- "system"
- ],
- "requestBody": {
- "required": true,
- "content": {
- "application/json": {
- "schema": {
- "$ref": "#/components/schemas/RawWriteRequest"
- }
- }
- }
- },
- "responses": {
- "200": {
- "description": "OK"
- }
- }
- },
- "delete": {
- "summary": "Delete the key with given path.",
- "operationId": "raw-delete",
- "tags": [
- "system"
- ],
- "responses": {
- "204": {
- "description": "OK"
- }
- }
- }
- },
- "/sys/raw/": {
- "description": "Write, Read, and Delete data directly in the Storage backend.",
- "x-vault-sudo": true,
- "get": {
- "summary": "Return a list keys for a given path prefix.",
- "operationId": "raw-list",
- "tags": [
- "system"
- ],
- "parameters": [
- {
- "name": "list",
- "description": "Must be set to `true`",
- "in": "query",
- "schema": {
- "type": "string",
- "enum": [
- "true"
- ]
- },
- "required": true
- }
- ],
- "responses": {
- "200": {
- "description": "OK",
- "content": {
- "application/json": {
- "schema": {
- "$ref": "#/components/schemas/RawListResponse"
- }
- }
- }
- }
- }
- }
- },
"/sys/raw/{path}": {
"description": "Write, Read, and Delete data directly in the Storage backend.",
"parameters": [
@@ -13704,7 +13573,7 @@
"x-vault-createSupported": true,
"get": {
"summary": "Read the value of the key at the given path.",
- "operationId": "raw-read-path",
+ "operationId": "raw-read",
"tags": [
"system"
],
@@ -13714,7 +13583,7 @@
"content": {
"application/json": {
"schema": {
- "$ref": "#/components/schemas/RawReadPathResponse"
+ "$ref": "#/components/schemas/RawReadResponse"
}
}
}
@@ -13723,7 +13592,7 @@
},
"post": {
"summary": "Update the value of the key at the given path.",
- "operationId": "raw-write-path",
+ "operationId": "raw-write",
"tags": [
"system"
],
@@ -13732,7 +13601,7 @@
"content": {
"application/json": {
"schema": {
- "$ref": "#/components/schemas/RawWritePathRequest"
+ "$ref": "#/components/schemas/RawWriteRequest"
}
}
}
@@ -13745,7 +13614,7 @@
},
"delete": {
"summary": "Delete the key with given path.",
- "operationId": "raw-delete-path",
+ "operationId": "raw-delete",
"tags": [
"system"
],
@@ -13771,7 +13640,7 @@
"x-vault-sudo": true,
"get": {
"summary": "Return a list keys for a given path prefix.",
- "operationId": "raw-list-path",
+ "operationId": "raw-list",
"tags": [
"system"
],
@@ -13795,7 +13664,7 @@
"content": {
"application/json": {
"schema": {
- "$ref": "#/components/schemas/RawListPathResponse"
+ "$ref": "#/components/schemas/RawListResponse"
}
}
}
@@ -36822,18 +36691,6 @@
}
}
},
- "LeasesLookUpWithPrefixResponse": {
- "type": "object",
- "properties": {
- "keys": {
- "type": "array",
- "description": "A list of lease ids",
- "items": {
- "type": "string"
- }
- }
- }
- },
"LeasesReadLeaseRequest": {
"type": "object",
"properties": {
@@ -47145,17 +47002,6 @@
}
}
},
- "RawListPathResponse": {
- "type": "object",
- "properties": {
- "keys": {
- "type": "array",
- "items": {
- "type": "string"
- }
- }
- }
- },
"RawListResponse": {
"type": "object",
"properties": {
@@ -47167,14 +47013,6 @@
}
}
},
- "RawReadPathResponse": {
- "type": "object",
- "properties": {
- "value": {
- "type": "string"
- }
- }
- },
"RawReadResponse": {
"type": "object",
"properties": {
@@ -47183,23 +47021,6 @@
}
}
},
- "RawWritePathRequest": {
- "type": "object",
- "properties": {
- "compressed": {
- "type": "boolean"
- },
- "compression_type": {
- "type": "string"
- },
- "encoding": {
- "type": "string"
- },
- "value": {
- "type": "string"
- }
- }
- },
"RawWriteRequest": {
"type": "object",
"properties": {
@@ -47212,9 +47033,6 @@
"encoding": {
"type": "string"
},
- "path": {
- "type": "string"
- },
"value": {
"type": "string"
}
diff --git a/src/Vault.Test/Model/LeasesLookUpWithPrefixResponseTests.cs b/src/Vault.Test/Model/LeasesLookUpWithPrefixResponseTests.cs
deleted file mode 100644
index 470321b5..00000000
--- a/src/Vault.Test/Model/LeasesLookUpWithPrefixResponseTests.cs
+++ /dev/null
@@ -1,72 +0,0 @@
-// Copyright (c) HashiCorp, Inc.
-// SPDX-License-Identifier: MPL-2.0
-//
-// Code generated with OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
-
-using Xunit;
-
-using System;
-using System.Linq;
-using System.IO;
-using System.Collections.Generic;
-using Vault.Api;
-using Vault.Model;
-using Vault.Client;
-using System.Reflection;
-using Newtonsoft.Json;
-
-
-
-namespace Vault.Test.Model
-{
- ///
- /// Class for testing LeasesLookUpWithPrefixResponse
- ///
- ///
- /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech).
- /// Please update the test case below to test the model.
- ///
- public class LeasesLookUpWithPrefixResponseTests : IDisposable
- {
- // TODO uncomment below to declare an instance variable for LeasesLookUpWithPrefixResponse
- //private LeasesLookUpWithPrefixResponse instance;
-
- public LeasesLookUpWithPrefixResponseTests()
- {
- // TODO uncomment below to create an instance of LeasesLookUpWithPrefixResponse
- //instance = new LeasesLookUpWithPrefixResponse();
- }
-
- public void Dispose()
- {
- // Cleanup when everything is done.
- }
-
- ///
- /// Test an instance of LeasesLookUpWithPrefixResponse
- ///
- [Fact]
- public void LeasesLookUpWithPrefixResponseInstanceTest()
- {
- // TODO uncomment below to test "IsType" LeasesLookUpWithPrefixResponse
- //Assert.IsType(instance);
- }
-
-
-
-
- ///
- /// Test the property 'Keys'
- ///
- [Fact]
- public void KeysTest()
- {
- // TODO unit test for the property 'Keys'
- }
-
-
- }
-
-}
-
-
diff --git a/src/Vault.Test/Model/RawListPathResponseTests.cs b/src/Vault.Test/Model/RawListPathResponseTests.cs
deleted file mode 100644
index c960822e..00000000
--- a/src/Vault.Test/Model/RawListPathResponseTests.cs
+++ /dev/null
@@ -1,72 +0,0 @@
-// Copyright (c) HashiCorp, Inc.
-// SPDX-License-Identifier: MPL-2.0
-//
-// Code generated with OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
-
-using Xunit;
-
-using System;
-using System.Linq;
-using System.IO;
-using System.Collections.Generic;
-using Vault.Api;
-using Vault.Model;
-using Vault.Client;
-using System.Reflection;
-using Newtonsoft.Json;
-
-
-
-namespace Vault.Test.Model
-{
- ///
- /// Class for testing RawListPathResponse
- ///
- ///
- /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech).
- /// Please update the test case below to test the model.
- ///
- public class RawListPathResponseTests : IDisposable
- {
- // TODO uncomment below to declare an instance variable for RawListPathResponse
- //private RawListPathResponse instance;
-
- public RawListPathResponseTests()
- {
- // TODO uncomment below to create an instance of RawListPathResponse
- //instance = new RawListPathResponse();
- }
-
- public void Dispose()
- {
- // Cleanup when everything is done.
- }
-
- ///
- /// Test an instance of RawListPathResponse
- ///
- [Fact]
- public void RawListPathResponseInstanceTest()
- {
- // TODO uncomment below to test "IsType" RawListPathResponse
- //Assert.IsType(instance);
- }
-
-
-
-
- ///
- /// Test the property 'Keys'
- ///
- [Fact]
- public void KeysTest()
- {
- // TODO unit test for the property 'Keys'
- }
-
-
- }
-
-}
-
-
diff --git a/src/Vault.Test/Model/RawReadPathResponseTests.cs b/src/Vault.Test/Model/RawReadPathResponseTests.cs
deleted file mode 100644
index 8de43458..00000000
--- a/src/Vault.Test/Model/RawReadPathResponseTests.cs
+++ /dev/null
@@ -1,72 +0,0 @@
-// Copyright (c) HashiCorp, Inc.
-// SPDX-License-Identifier: MPL-2.0
-//
-// Code generated with OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
-
-using Xunit;
-
-using System;
-using System.Linq;
-using System.IO;
-using System.Collections.Generic;
-using Vault.Api;
-using Vault.Model;
-using Vault.Client;
-using System.Reflection;
-using Newtonsoft.Json;
-
-
-
-namespace Vault.Test.Model
-{
- ///
- /// Class for testing RawReadPathResponse
- ///
- ///
- /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech).
- /// Please update the test case below to test the model.
- ///
- public class RawReadPathResponseTests : IDisposable
- {
- // TODO uncomment below to declare an instance variable for RawReadPathResponse
- //private RawReadPathResponse instance;
-
- public RawReadPathResponseTests()
- {
- // TODO uncomment below to create an instance of RawReadPathResponse
- //instance = new RawReadPathResponse();
- }
-
- public void Dispose()
- {
- // Cleanup when everything is done.
- }
-
- ///
- /// Test an instance of RawReadPathResponse
- ///
- [Fact]
- public void RawReadPathResponseInstanceTest()
- {
- // TODO uncomment below to test "IsType" RawReadPathResponse
- //Assert.IsType(instance);
- }
-
-
-
-
- ///
- /// Test the property 'Value'
- ///
- [Fact]
- public void ValueTest()
- {
- // TODO unit test for the property 'Value'
- }
-
-
- }
-
-}
-
-
diff --git a/src/Vault.Test/Model/RawWritePathRequestTests.cs b/src/Vault.Test/Model/RawWritePathRequestTests.cs
deleted file mode 100644
index 7315f7dc..00000000
--- a/src/Vault.Test/Model/RawWritePathRequestTests.cs
+++ /dev/null
@@ -1,99 +0,0 @@
-// Copyright (c) HashiCorp, Inc.
-// SPDX-License-Identifier: MPL-2.0
-//
-// Code generated with OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
-
-using Xunit;
-
-using System;
-using System.Linq;
-using System.IO;
-using System.Collections.Generic;
-using Vault.Api;
-using Vault.Model;
-using Vault.Client;
-using System.Reflection;
-using Newtonsoft.Json;
-
-
-
-namespace Vault.Test.Model
-{
- ///
- /// Class for testing RawWritePathRequest
- ///
- ///
- /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech).
- /// Please update the test case below to test the model.
- ///
- public class RawWritePathRequestTests : IDisposable
- {
- // TODO uncomment below to declare an instance variable for RawWritePathRequest
- //private RawWritePathRequest instance;
-
- public RawWritePathRequestTests()
- {
- // TODO uncomment below to create an instance of RawWritePathRequest
- //instance = new RawWritePathRequest();
- }
-
- public void Dispose()
- {
- // Cleanup when everything is done.
- }
-
- ///
- /// Test an instance of RawWritePathRequest
- ///
- [Fact]
- public void RawWritePathRequestInstanceTest()
- {
- // TODO uncomment below to test "IsType" RawWritePathRequest
- //Assert.IsType(instance);
- }
-
-
-
-
- ///
- /// Test the property 'Compressed'
- ///
- [Fact]
- public void CompressedTest()
- {
- // TODO unit test for the property 'Compressed'
- }
-
- ///
- /// Test the property 'CompressionType'
- ///
- [Fact]
- public void CompressionTypeTest()
- {
- // TODO unit test for the property 'CompressionType'
- }
-
- ///
- /// Test the property 'Encoding'
- ///
- [Fact]
- public void EncodingTest()
- {
- // TODO unit test for the property 'Encoding'
- }
-
- ///
- /// Test the property 'Value'
- ///
- [Fact]
- public void ValueTest()
- {
- // TODO unit test for the property 'Value'
- }
-
-
- }
-
-}
-
-
diff --git a/src/Vault.Test/Model/RawWriteRequestTests.cs b/src/Vault.Test/Model/RawWriteRequestTests.cs
index 674696d3..1f8fbdc9 100644
--- a/src/Vault.Test/Model/RawWriteRequestTests.cs
+++ b/src/Vault.Test/Model/RawWriteRequestTests.cs
@@ -82,15 +82,6 @@ public void EncodingTest()
// TODO unit test for the property 'Encoding'
}
- ///
- /// Test the property 'Path'
- ///
- [Fact]
- public void PathTest()
- {
- // TODO unit test for the property 'Path'
- }
-
///
/// Test the property 'Value'
///
diff --git a/src/Vault/Api/SystemApi.cs b/src/Vault/Api/SystemApi.cs
index 273cb515..0c070198 100644
--- a/src/Vault/Api/SystemApi.cs
+++ b/src/Vault/Api/SystemApi.cs
@@ -789,26 +789,12 @@ public interface ISystemSync : IApiAccessor
///
VaultResponse LeasesList(TimeSpan? wrapTTL = null);
- ///
- ///
- ///
- /// Thrown when fails to make API call
- /// VaultResponse of LeasesLookUpResponse
- ///
- /// Sets the X-Vault-Wrap-TTL Header
- ///
- /// This will take precedence over client level wrapTTL value
- ///
- /// Vault Response Wrapping
- ///
- VaultResponse LeasesLookUp(TimeSpan? wrapTTL = null);
-
///
///
///
/// Thrown when fails to make API call
/// The path to list leases under. Example: \"aws/creds/deploy\"
- /// VaultResponse of LeasesLookUpWithPrefixResponse
+ /// VaultResponse of LeasesLookUpResponse
///
/// Sets the X-Vault-Wrap-TTL Header
///
@@ -816,7 +802,7 @@ public interface ISystemSync : IApiAccessor
///
/// Vault Response Wrapping
///
- VaultResponse LeasesLookUpWithPrefix(string prefix, TimeSpan? wrapTTL = null);
+ VaultResponse LeasesLookUp(string prefix, TimeSpan? wrapTTL = null);
///
///
@@ -1760,20 +1746,6 @@ public interface ISystemSync : IApiAccessor
///
VaultResponse
/// Thrown when fails to make API call
+ ///
///
/// Sets the X-Vault-Wrap-TTL Header
///
@@ -22282,9 +22029,13 @@ public VaultResponse RawDelete(TimeSpan? wrapTTL = null)
///
/// Cancellation Token to cancel the request.
/// Task of VaultResponse
- public async Task> RawDeleteAsync(TimeSpan? wrapTTL = null, CancellationToken cancellationToken = default(CancellationToken))
+ public async Task> RawDeleteAsync(string path, TimeSpan? wrapTTL = null, CancellationToken cancellationToken = default(CancellationToken))
{
+ // verify the required parameter 'path' is set
+ if (path == null)
+ throw new VaultApiException(400, "Missing required parameter 'path' when calling System->RawDelete");
+
RequestOptions requestOptions = new RequestOptions();
@@ -22310,9 +22061,12 @@ public VaultResponse RawDelete(TimeSpan? wrapTTL = null)
if (accept != null) requestOptions.HeaderParameters.Add("Accept", accept);
+ requestOptions.PathParameters.Add("path", ClientUtils.ParameterToString(path)); // path parameter
+
+
// make the HTTP request
- var response = await this.AsynchronousClient.DeleteAsync("/sys/raw", requestOptions, cancellationToken).ConfigureAwait(false);
+ var response = await this.AsynchronousClient.DeleteAsync("/sys/raw/{path}", requestOptions, cancellationToken).ConfigureAwait(false);
if (this.ExceptionFactory != null)
{
@@ -22323,11 +22077,11 @@ public VaultResponse RawDelete(TimeSpan? wrapTTL = null)
return ClientUtils.ToVaultResponse(response.RawContent);
}
///
- /// Delete the key with given path.
+ /// Return a list keys for a given path prefix.
///
/// Thrown when fails to make API call
///
- /// VaultResponse of Object(void)
+ /// VaultResponse of RawListResponse
///
/// Sets the X-Vault-Wrap-TTL Header
///
@@ -22335,12 +22089,12 @@ public VaultResponse RawDelete(TimeSpan? wrapTTL = null)
///
/// Vault Response Wrapping
///
- public VaultResponse RawDeletePath(string path, TimeSpan? wrapTTL = null)
+ public VaultResponse RawList(string path, TimeSpan? wrapTTL = null)
{
// verify the required parameter 'path' is set
if (path == null)
- throw new VaultApiException(400, "Missing required parameter 'path' when calling System->RawDeletePath");
+ throw new VaultApiException(400, "Missing required parameter 'path' when calling System->RawList");
RequestOptions requestOptions = new RequestOptions();
@@ -22356,7 +22110,7 @@ public VaultResponse RawDeletePath(string path, TimeSpan? wrapTTL = null
// to determine the Accept header
string[] _accepts = new string[] {
-
+ "application/json"
};
var contentType = ClientUtils.SelectHeaderContentType(_contentTypes);
@@ -22370,24 +22124,27 @@ public VaultResponse RawDeletePath(string path, TimeSpan? wrapTTL = null
+ requestOptions.QueryParameters.Add(ClientUtils.ParameterToMultiMap("", "list", "true"));
+
+
// make the HTTP request
- var response = this.Client.Delete("/sys/raw/{path}", requestOptions);
+ var response = this.Client.Get("/sys/raw/{path}/", requestOptions);
if (this.ExceptionFactory != null)
{
- Exception exception = this.ExceptionFactory("RawDeletePath", response);
+ Exception exception = this.ExceptionFactory("RawList", response);
if (exception != null) throw exception;
}
- return ClientUtils.ToVaultResponse(response.RawContent);
+ return ClientUtils.ToVaultResponse(response.RawContent);
}
///
- /// Delete the key with given path.
+ /// Return a list keys for a given path prefix.
///
/// Thrown when fails to make API call
///
@@ -22399,13 +22156,13 @@ public VaultResponse RawDeletePath(string path, TimeSpan? wrapTTL = null
/// Vault Response Wrapping
///
/// Cancellation Token to cancel the request.
- /// Task of VaultResponse
- public async Task> RawDeletePathAsync(string path, TimeSpan? wrapTTL = null, CancellationToken cancellationToken = default(CancellationToken))
+ /// Task of VaultResponse (RawListResponse)
+ public async Task> RawListAsync(string path, TimeSpan? wrapTTL = null, CancellationToken cancellationToken = default(CancellationToken))
{
// verify the required parameter 'path' is set
if (path == null)
- throw new VaultApiException(400, "Missing required parameter 'path' when calling System->RawDeletePath");
+ throw new VaultApiException(400, "Missing required parameter 'path' when calling System->RawList");
@@ -22422,7 +22179,7 @@ public VaultResponse RawDeletePath(string path, TimeSpan? wrapTTL = null
// to determine the Accept header
string[] _accepts = new string[] {
-
+ "application/json"
};
var contentType = ClientUtils.SelectHeaderContentType(_contentTypes);
@@ -22436,22 +22193,26 @@ public VaultResponse RawDeletePath(string path, TimeSpan? wrapTTL = null
+ requestOptions.QueryParameters.Add(ClientUtils.ParameterToMultiMap("", "list", "true"));
+
+
// make the HTTP request
- var response = await this.AsynchronousClient.DeleteAsync("/sys/raw/{path}", requestOptions, cancellationToken).ConfigureAwait(false);
+ var response = await this.AsynchronousClient.GetAsync("/sys/raw/{path}/", requestOptions, cancellationToken).ConfigureAwait(false);
if (this.ExceptionFactory != null)
{
- Exception exception = this.ExceptionFactory("RawDeletePath", response);
+ Exception exception = this.ExceptionFactory("RawList", response);
if (exception != null) throw exception;
}
- return ClientUtils.ToVaultResponse(response.RawContent);
+ return ClientUtils.ToVaultResponse(response.RawContent);
}
///
- /// Return a list keys for a given path prefix.
+ /// Read the value of the key at the given path.
///
/// Thrown when fails to make API call
- /// VaultResponse of RawListResponse
+ ///
+ /// VaultResponse of RawReadResponse
///
/// Sets the X-Vault-Wrap-TTL Header
///
@@ -22459,9 +22220,13 @@ public VaultResponse RawDeletePath(string path, TimeSpan? wrapTTL = null
///
/// Vault Response Wrapping
///
- public VaultResponse RawList(TimeSpan? wrapTTL = null)
+ public VaultResponse RawRead(string path, TimeSpan? wrapTTL = null)
{
+ // verify the required parameter 'path' is set
+ if (path == null)
+ throw new VaultApiException(400, "Missing required parameter 'path' when calling System->RawRead");
+
RequestOptions requestOptions = new RequestOptions();
@@ -22486,30 +22251,31 @@ public VaultResponse RawList(TimeSpan? wrapTTL = null)
if (accept != null) requestOptions.HeaderParameters.Add("Accept", accept);
+ requestOptions.PathParameters.Add("path", ClientUtils.ParameterToString(path)); // path parameter
- requestOptions.QueryParameters.Add(ClientUtils.ParameterToMultiMap("", "list", "true"));
// make the HTTP request
- var response = this.Client.Get("/sys/raw/", requestOptions);
+ var response = this.Client.Get("/sys/raw/{path}", requestOptions);
if (this.ExceptionFactory != null)
{
- Exception exception = this.ExceptionFactory("RawList", response);
+ Exception exception = this.ExceptionFactory("RawRead", response);
if (exception != null) throw exception;
}
- return ClientUtils.ToVaultResponse(response.RawContent);
+ return ClientUtils.ToVaultResponse(response.RawContent);
}
///
- /// Return a list keys for a given path prefix.
+ /// Read the value of the key at the given path.
///
/// Thrown when fails to make API call
+ ///
///
/// Sets the X-Vault-Wrap-TTL Header
///
@@ -22518,10 +22284,14 @@ public VaultResponse RawList(TimeSpan? wrapTTL = null)
/// Vault Response Wrapping
///
/// Cancellation Token to cancel the request.
- /// Task of VaultResponse (RawListResponse)
- public async Task> RawListAsync(TimeSpan? wrapTTL = null, CancellationToken cancellationToken = default(CancellationToken))
+ /// Task of VaultResponse (RawReadResponse)
+ public async Task> RawReadAsync(string path, TimeSpan? wrapTTL = null, CancellationToken cancellationToken = default(CancellationToken))
{
+ // verify the required parameter 'path' is set
+ if (path == null)
+ throw new VaultApiException(400, "Missing required parameter 'path' when calling System->RawRead");
+
RequestOptions requestOptions = new RequestOptions();
@@ -22547,27 +22317,28 @@ public VaultResponse RawList(TimeSpan? wrapTTL = null)
if (accept != null) requestOptions.HeaderParameters.Add("Accept", accept);
+ requestOptions.PathParameters.Add("path", ClientUtils.ParameterToString(path)); // path parameter
- requestOptions.QueryParameters.Add(ClientUtils.ParameterToMultiMap("", "list", "true"));
// make the HTTP request
- var response = await this.AsynchronousClient.GetAsync("/sys/raw/", requestOptions, cancellationToken).ConfigureAwait(false);
+ var response = await this.AsynchronousClient.GetAsync("/sys/raw/{path}", requestOptions, cancellationToken).ConfigureAwait(false);
if (this.ExceptionFactory != null)
{
- Exception exception = this.ExceptionFactory("RawList", response);
+ Exception exception = this.ExceptionFactory("RawRead", response);
if (exception != null) throw exception;
}
- return ClientUtils.ToVaultResponse(response.RawContent);
+ return ClientUtils.ToVaultResponse(response.RawContent);
}
///
- /// Return a list keys for a given path prefix.
+ /// Update the value of the key at the given path.
///
/// Thrown when fails to make API call
+ ///
///
- /// VaultResponse of RawListPathResponse
+ /// VaultResponse of Object(void)
///
/// Sets the X-Vault-Wrap-TTL Header
///
@@ -22575,14 +22346,18 @@ public VaultResponse RawList(TimeSpan? wrapTTL = null)
///
/// Vault Response Wrapping
///
- public VaultResponse RawListPath(string path, TimeSpan? wrapTTL = null)
+ public VaultResponse RawWrite(string path, RawWriteRequest rawWriteRequest, TimeSpan? wrapTTL = null)
{
// verify the required parameter 'path' is set
if (path == null)
- throw new VaultApiException(400, "Missing required parameter 'path' when calling System->RawListPath");
+ throw new VaultApiException(400, "Missing required parameter 'path' when calling System->RawWrite");
+ // verify the required parameter 'rawWriteRequest' is set
+ if (rawWriteRequest == null)
+ throw new VaultApiException(400, "Missing required parameter 'rawWriteRequest' when calling System->RawWrite");
+
RequestOptions requestOptions = new RequestOptions();
if (wrapTTL != null)
@@ -22591,12 +22366,12 @@ public VaultResponse RawListPath(string path, TimeSpan? wra
}
string[] _contentTypes = new string[] {
-
+ "",
};
// to determine the Accept header
string[] _accepts = new string[] {
- "application/json"
+
};
var contentType = ClientUtils.SelectHeaderContentType(_contentTypes);
@@ -22610,29 +22385,29 @@ public VaultResponse RawListPath(string path, TimeSpan? wra
- requestOptions.QueryParameters.Add(ClientUtils.ParameterToMultiMap("", "list", "true"));
-
+ requestOptions.Data = rawWriteRequest;
// make the HTTP request
- var response = this.Client.Get("/sys/raw/{path}/", requestOptions);
+ var response = this.Client.Post("/sys/raw/{path}", requestOptions);
if (this.ExceptionFactory != null)
{
- Exception exception = this.ExceptionFactory("RawListPath", response);
+ Exception exception = this.ExceptionFactory("RawWrite", response);
if (exception != null) throw exception;
}
- return ClientUtils.ToVaultResponse(response.RawContent);
+ return ClientUtils.ToVaultResponse(response.RawContent);
}
///
- /// Return a list keys for a given path prefix.
+ /// Update the value of the key at the given path.
///
/// Thrown when fails to make API call
+ ///
///
///
/// Sets the X-Vault-Wrap-TTL Header
@@ -22642,15 +22417,19 @@ public VaultResponse RawListPath(string path, TimeSpan? wra
/// Vault Response Wrapping
///
/// Cancellation Token to cancel the request.
- /// Task of VaultResponse (RawListPathResponse)
- public async Task> RawListPathAsync(string path, TimeSpan? wrapTTL = null, CancellationToken cancellationToken = default(CancellationToken))
+ /// Task of VaultResponse
+ public async Task> RawWriteAsync(string path, RawWriteRequest rawWriteRequest, TimeSpan? wrapTTL = null, CancellationToken cancellationToken = default(CancellationToken))
{
// verify the required parameter 'path' is set
if (path == null)
- throw new VaultApiException(400, "Missing required parameter 'path' when calling System->RawListPath");
+ throw new VaultApiException(400, "Missing required parameter 'path' when calling System->RawWrite");
+ // verify the required parameter 'rawWriteRequest' is set
+ if (rawWriteRequest == null)
+ throw new VaultApiException(400, "Missing required parameter 'rawWriteRequest' when calling System->RawWrite");
+
RequestOptions requestOptions = new RequestOptions();
@@ -22660,12 +22439,12 @@ public VaultResponse RawListPath(string path, TimeSpan? wra
}
string[] _contentTypes = new string[] {
-
+ "",
};
// to determine the Accept header
string[] _accepts = new string[] {
- "application/json"
+
};
var contentType = ClientUtils.SelectHeaderContentType(_contentTypes);
@@ -22679,306 +22458,9 @@ public VaultResponse RawListPath(string path, TimeSpan? wra
- requestOptions.QueryParameters.Add(ClientUtils.ParameterToMultiMap("", "list", "true"));
-
-
+ requestOptions.Data = rawWriteRequest;
// make the HTTP request
- var response = await this.AsynchronousClient.GetAsync("/sys/raw/{path}/", requestOptions, cancellationToken).ConfigureAwait(false);
-
- if (this.ExceptionFactory != null)
- {
- Exception exception = this.ExceptionFactory("RawListPath", response);
- if (exception != null) throw exception;
- }
-
- return ClientUtils.ToVaultResponse(response.RawContent);
- }
- ///
- /// Read the value of the key at the given path.
- ///
- /// Thrown when fails to make API call
- /// VaultResponse of RawReadResponse
- ///
- /// Sets the X-Vault-Wrap-TTL Header
- ///
- /// This will take precedence over client level wrapTTL value
- ///
- /// Vault Response Wrapping
- ///
- public VaultResponse RawRead(TimeSpan? wrapTTL = null)
- {
-
-
- RequestOptions requestOptions = new RequestOptions();
-
- if (wrapTTL != null)
- {
- requestOptions.HeaderParameters.Add("X-Vault-Wrap-TTL", wrapTTL.Value.TotalSeconds.ToString());
- }
-
- string[] _contentTypes = new string[] {
-
- };
-
- // to determine the Accept header
- string[] _accepts = new string[] {
- "application/json"
- };
-
- var contentType = ClientUtils.SelectHeaderContentType(_contentTypes);
- if (contentType != null) requestOptions.HeaderParameters.Add("Content-Type", contentType);
-
- var accept = ClientUtils.SelectHeaderAccept(_accepts);
- if (accept != null) requestOptions.HeaderParameters.Add("Accept", accept);
-
-
-
-
-
-
- // make the HTTP request
- var response = this.Client.Get("/sys/raw", requestOptions);
-
- if (this.ExceptionFactory != null)
- {
- Exception exception = this.ExceptionFactory("RawRead", response);
- if (exception != null) throw exception;
- }
-
- return ClientUtils.ToVaultResponse(response.RawContent);
- }
-
-
- ///
- /// Read the value of the key at the given path.
- ///
- /// Thrown when fails to make API call
- ///
- /// Sets the X-Vault-Wrap-TTL Header
- ///
- /// This will take precedence over client level wrapTTL value
- ///
- /// Vault Response Wrapping
- ///
- /// Cancellation Token to cancel the request.
- /// Task of VaultResponse (RawReadResponse)
- public async Task> RawReadAsync(TimeSpan? wrapTTL = null, CancellationToken cancellationToken = default(CancellationToken))
- {
-
-
-
- RequestOptions requestOptions = new RequestOptions();
-
- if (wrapTTL != null)
- {
- requestOptions.HeaderParameters.Add("X-Vault-Wrap-TTL", wrapTTL.Value.TotalSeconds.ToString());
- }
-
- string[] _contentTypes = new string[] {
-
- };
-
- // to determine the Accept header
- string[] _accepts = new string[] {
- "application/json"
- };
-
- var contentType = ClientUtils.SelectHeaderContentType(_contentTypes);
- if (contentType != null) requestOptions.HeaderParameters.Add("Content-Type", contentType);
-
- var accept = ClientUtils.SelectHeaderAccept(_accepts);
- if (accept != null) requestOptions.HeaderParameters.Add("Accept", accept);
-
-
-
- // make the HTTP request
- var response = await this.AsynchronousClient.GetAsync("/sys/raw", requestOptions, cancellationToken).ConfigureAwait(false);
-
- if (this.ExceptionFactory != null)
- {
- Exception exception = this.ExceptionFactory("RawRead", response);
- if (exception != null) throw exception;
- }
-
- return ClientUtils.ToVaultResponse(response.RawContent);
- }
- ///
- /// Read the value of the key at the given path.
- ///
- /// Thrown when fails to make API call
- ///
- /// VaultResponse of RawReadPathResponse
- ///
- /// Sets the X-Vault-Wrap-TTL Header
- ///
- /// This will take precedence over client level wrapTTL value
- ///
- /// Vault Response Wrapping
- ///
- public VaultResponse RawReadPath(string path, TimeSpan? wrapTTL = null)
- {
-
- // verify the required parameter 'path' is set
- if (path == null)
- throw new VaultApiException(400, "Missing required parameter 'path' when calling System->RawReadPath");
-
-
- RequestOptions requestOptions = new RequestOptions();
-
- if (wrapTTL != null)
- {
- requestOptions.HeaderParameters.Add("X-Vault-Wrap-TTL", wrapTTL.Value.TotalSeconds.ToString());
- }
-
- string[] _contentTypes = new string[] {
-
- };
-
- // to determine the Accept header
- string[] _accepts = new string[] {
- "application/json"
- };
-
- var contentType = ClientUtils.SelectHeaderContentType(_contentTypes);
- if (contentType != null) requestOptions.HeaderParameters.Add("Content-Type", contentType);
-
- var accept = ClientUtils.SelectHeaderAccept(_accepts);
- if (accept != null) requestOptions.HeaderParameters.Add("Accept", accept);
-
-
- requestOptions.PathParameters.Add("path", ClientUtils.ParameterToString(path)); // path parameter
-
-
-
-
-
-
- // make the HTTP request
- var response = this.Client.Get("/sys/raw/{path}", requestOptions);
-
- if (this.ExceptionFactory != null)
- {
- Exception exception = this.ExceptionFactory("RawReadPath", response);
- if (exception != null) throw exception;
- }
-
- return ClientUtils.ToVaultResponse(response.RawContent);
- }
-
-
- ///
- /// Read the value of the key at the given path.
- ///
- /// Thrown when fails to make API call
- ///
- ///
- /// Sets the X-Vault-Wrap-TTL Header
- ///
- /// This will take precedence over client level wrapTTL value
- ///
- /// Vault Response Wrapping
- ///
- /// Cancellation Token to cancel the request.
- /// Task of VaultResponse (RawReadPathResponse)
- public async Task> RawReadPathAsync(string path, TimeSpan? wrapTTL = null, CancellationToken cancellationToken = default(CancellationToken))
- {
-
- // verify the required parameter 'path' is set
- if (path == null)
- throw new VaultApiException(400, "Missing required parameter 'path' when calling System->RawReadPath");
-
-
-
- RequestOptions requestOptions = new RequestOptions();
-
- if (wrapTTL != null)
- {
- requestOptions.HeaderParameters.Add("X-Vault-Wrap-TTL", wrapTTL.Value.TotalSeconds.ToString());
- }
-
- string[] _contentTypes = new string[] {
-
- };
-
- // to determine the Accept header
- string[] _accepts = new string[] {
- "application/json"
- };
-
- var contentType = ClientUtils.SelectHeaderContentType(_contentTypes);
- if (contentType != null) requestOptions.HeaderParameters.Add("Content-Type", contentType);
-
- var accept = ClientUtils.SelectHeaderAccept(_accepts);
- if (accept != null) requestOptions.HeaderParameters.Add("Accept", accept);
-
-
- requestOptions.PathParameters.Add("path", ClientUtils.ParameterToString(path)); // path parameter
-
-
-
- // make the HTTP request
- var response = await this.AsynchronousClient.GetAsync("/sys/raw/{path}", requestOptions, cancellationToken).ConfigureAwait(false);
-
- if (this.ExceptionFactory != null)
- {
- Exception exception = this.ExceptionFactory("RawReadPath", response);
- if (exception != null) throw exception;
- }
-
- return ClientUtils.ToVaultResponse(response.RawContent);
- }
- ///
- /// Update the value of the key at the given path.
- ///
- /// Thrown when fails to make API call
- ///
- /// VaultResponse of Object(void)
- ///
- /// Sets the X-Vault-Wrap-TTL Header
- ///
- /// This will take precedence over client level wrapTTL value
- ///
- /// Vault Response Wrapping
- ///
- public VaultResponse RawWrite(RawWriteRequest rawWriteRequest, TimeSpan? wrapTTL = null)
- {
-
-
- // verify the required parameter 'rawWriteRequest' is set
- if (rawWriteRequest == null)
- throw new VaultApiException(400, "Missing required parameter 'rawWriteRequest' when calling System->RawWrite");
-
- RequestOptions requestOptions = new RequestOptions();
-
- if (wrapTTL != null)
- {
- requestOptions.HeaderParameters.Add("X-Vault-Wrap-TTL", wrapTTL.Value.TotalSeconds.ToString());
- }
-
- string[] _contentTypes = new string[] {
- "",
- };
-
- // to determine the Accept header
- string[] _accepts = new string[] {
-
- };
-
- var contentType = ClientUtils.SelectHeaderContentType(_contentTypes);
- if (contentType != null) requestOptions.HeaderParameters.Add("Content-Type", contentType);
-
- var accept = ClientUtils.SelectHeaderAccept(_accepts);
- if (accept != null) requestOptions.HeaderParameters.Add("Accept", accept);
-
-
-
-
-
- requestOptions.Data = rawWriteRequest;
-
-
- // make the HTTP request
- var response = this.Client.Post("/sys/raw", requestOptions);
+ var response = await this.AsynchronousClient.PostAsync("/sys/raw/{path}", requestOptions, cancellationToken).ConfigureAwait(false);
if (this.ExceptionFactory != null)
{
@@ -22988,205 +22470,6 @@ public VaultResponse RawWrite(RawWriteRequest rawWriteRequest, TimeSpan?
return ClientUtils.ToVaultResponse(response.RawContent);
}
-
-
- ///
- /// Update the value of the key at the given path.
- ///
- /// Thrown when fails to make API call
- ///
- ///
- /// Sets the X-Vault-Wrap-TTL Header
- ///
- /// This will take precedence over client level wrapTTL value
- ///
- /// Vault Response Wrapping
- ///
- /// Cancellation Token to cancel the request.
- /// Task of VaultResponse
- public async Task> RawWriteAsync(RawWriteRequest rawWriteRequest, TimeSpan? wrapTTL = null, CancellationToken cancellationToken = default(CancellationToken))
- {
-
-
- // verify the required parameter 'rawWriteRequest' is set
- if (rawWriteRequest == null)
- throw new VaultApiException(400, "Missing required parameter 'rawWriteRequest' when calling System->RawWrite");
-
-
- RequestOptions requestOptions = new RequestOptions();
-
- if (wrapTTL != null)
- {
- requestOptions.HeaderParameters.Add("X-Vault-Wrap-TTL", wrapTTL.Value.TotalSeconds.ToString());
- }
-
- string[] _contentTypes = new string[] {
- "",
- };
-
- // to determine the Accept header
- string[] _accepts = new string[] {
-
- };
-
- var contentType = ClientUtils.SelectHeaderContentType(_contentTypes);
- if (contentType != null) requestOptions.HeaderParameters.Add("Content-Type", contentType);
-
- var accept = ClientUtils.SelectHeaderAccept(_accepts);
- if (accept != null) requestOptions.HeaderParameters.Add("Accept", accept);
-
-
-
- requestOptions.Data = rawWriteRequest;
- // make the HTTP request
- var response = await this.AsynchronousClient.PostAsync("/sys/raw", requestOptions, cancellationToken).ConfigureAwait(false);
-
- if (this.ExceptionFactory != null)
- {
- Exception exception = this.ExceptionFactory("RawWrite", response);
- if (exception != null) throw exception;
- }
-
- return ClientUtils.ToVaultResponse(response.RawContent);
- }
- ///
- /// Update the value of the key at the given path.
- ///
- /// Thrown when fails to make API call
- ///
- ///
- /// VaultResponse of Object(void)
- ///
- /// Sets the X-Vault-Wrap-TTL Header
- ///
- /// This will take precedence over client level wrapTTL value
- ///
- /// Vault Response Wrapping
- ///
- public VaultResponse RawWritePath(string path, RawWritePathRequest rawWritePathRequest, TimeSpan? wrapTTL = null)
- {
-
- // verify the required parameter 'path' is set
- if (path == null)
- throw new VaultApiException(400, "Missing required parameter 'path' when calling System->RawWritePath");
-
-
- // verify the required parameter 'rawWritePathRequest' is set
- if (rawWritePathRequest == null)
- throw new VaultApiException(400, "Missing required parameter 'rawWritePathRequest' when calling System->RawWritePath");
-
- RequestOptions requestOptions = new RequestOptions();
-
- if (wrapTTL != null)
- {
- requestOptions.HeaderParameters.Add("X-Vault-Wrap-TTL", wrapTTL.Value.TotalSeconds.ToString());
- }
-
- string[] _contentTypes = new string[] {
- "",
- };
-
- // to determine the Accept header
- string[] _accepts = new string[] {
-
- };
-
- var contentType = ClientUtils.SelectHeaderContentType(_contentTypes);
- if (contentType != null) requestOptions.HeaderParameters.Add("Content-Type", contentType);
-
- var accept = ClientUtils.SelectHeaderAccept(_accepts);
- if (accept != null) requestOptions.HeaderParameters.Add("Accept", accept);
-
-
- requestOptions.PathParameters.Add("path", ClientUtils.ParameterToString(path)); // path parameter
-
-
-
-
-
- requestOptions.Data = rawWritePathRequest;
-
-
- // make the HTTP request
- var response = this.Client.Post("/sys/raw/{path}", requestOptions);
-
- if (this.ExceptionFactory != null)
- {
- Exception exception = this.ExceptionFactory("RawWritePath", response);
- if (exception != null) throw exception;
- }
-
- return ClientUtils.ToVaultResponse(response.RawContent);
- }
-
-
- ///
- /// Update the value of the key at the given path.
- ///
- /// Thrown when fails to make API call
- ///
- ///
- ///
- /// Sets the X-Vault-Wrap-TTL Header
- ///
- /// This will take precedence over client level wrapTTL value
- ///
- /// Vault Response Wrapping
- ///
- /// Cancellation Token to cancel the request.
- /// Task of VaultResponse
- public async Task> RawWritePathAsync(string path, RawWritePathRequest rawWritePathRequest, TimeSpan? wrapTTL = null, CancellationToken cancellationToken = default(CancellationToken))
- {
-
- // verify the required parameter 'path' is set
- if (path == null)
- throw new VaultApiException(400, "Missing required parameter 'path' when calling System->RawWritePath");
-
-
- // verify the required parameter 'rawWritePathRequest' is set
- if (rawWritePathRequest == null)
- throw new VaultApiException(400, "Missing required parameter 'rawWritePathRequest' when calling System->RawWritePath");
-
-
- RequestOptions requestOptions = new RequestOptions();
-
- if (wrapTTL != null)
- {
- requestOptions.HeaderParameters.Add("X-Vault-Wrap-TTL", wrapTTL.Value.TotalSeconds.ToString());
- }
-
- string[] _contentTypes = new string[] {
- "",
- };
-
- // to determine the Accept header
- string[] _accepts = new string[] {
-
- };
-
- var contentType = ClientUtils.SelectHeaderContentType(_contentTypes);
- if (contentType != null) requestOptions.HeaderParameters.Add("Content-Type", contentType);
-
- var accept = ClientUtils.SelectHeaderAccept(_accepts);
- if (accept != null) requestOptions.HeaderParameters.Add("Accept", accept);
-
-
- requestOptions.PathParameters.Add("path", ClientUtils.ParameterToString(path)); // path parameter
-
-
-
- requestOptions.Data = rawWritePathRequest;
- // make the HTTP request
- var response = await this.AsynchronousClient.PostAsync("/sys/raw/{path}", requestOptions, cancellationToken).ConfigureAwait(false);
-
- if (this.ExceptionFactory != null)
- {
- Exception exception = this.ExceptionFactory("RawWritePath", response);
- if (exception != null) throw exception;
- }
-
- return ClientUtils.ToVaultResponse(response.RawContent);
- }
///
/// Returns the health status of Vault.
///
diff --git a/src/Vault/Model/LeasesLookUpWithPrefixResponse.cs b/src/Vault/Model/LeasesLookUpWithPrefixResponse.cs
deleted file mode 100644
index 8d3052ff..00000000
--- a/src/Vault/Model/LeasesLookUpWithPrefixResponse.cs
+++ /dev/null
@@ -1,141 +0,0 @@
-// Copyright (c) HashiCorp, Inc.
-// SPDX-License-Identifier: MPL-2.0
-//
-// Code generated with OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
-
-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 FileParameter = Vault.Client.FileParameter;
-
-
-namespace Vault.Model
-{
- ///
- /// LeasesLookUpWithPrefixResponse
- ///
- [DataContract(Name = "LeasesLookUpWithPrefixResponse")]
- public partial class LeasesLookUpWithPrefixResponse : IEquatable, IValidatableObject
- {
-
-
- ///
- /// Initializes a new instance of the class.
- ///
-
- /// A list of lease ids.
-
-
- public LeasesLookUpWithPrefixResponse(List Keys = default(List))
- {
-
- this.Keys = Keys;
-
- }
-
- ///
- /// A list of lease ids
- ///
- /// A list of lease ids
- [DataMember(Name = "keys", EmitDefaultValue = false)]
-
- public List Keys { 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 LeasesLookUpWithPrefixResponse {\n");
- sb.Append(" Keys: ").Append(Keys).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 LeasesLookUpWithPrefixResponse);
- }
-
- ///
- /// Returns true if LeasesLookUpWithPrefixResponse instances are equal
- ///
- /// Instance of LeasesLookUpWithPrefixResponse to be compared
- /// Boolean
- public bool Equals(LeasesLookUpWithPrefixResponse input)
- {
- if (input == null)
- {
- return false;
- }
- return
- (
- this.Keys == input.Keys ||
- this.Keys != null &&
- input.Keys != null &&
- this.Keys.SequenceEqual(input.Keys)
- );
-
- }
-
- ///
- /// Gets the hash code
- ///
- /// Hash code
- public override int GetHashCode()
- {
- unchecked // Overflow is fine, just wrap
- {
- int hashCode = 41;
-
- if (this.Keys != null)
- {
- hashCode = (hashCode * 59) + this.Keys.GetHashCode();
- }
-
- return hashCode;
- }
- }
-
- ///
- /// To validate all properties of the instance
- ///
- /// Validation context
- /// Validation Result
- public IEnumerable Validate(ValidationContext validationContext)
- {
- yield break;
- }
- }
-
-}
diff --git a/src/Vault/Model/RawListPathResponse.cs b/src/Vault/Model/RawListPathResponse.cs
deleted file mode 100644
index 58e5dfda..00000000
--- a/src/Vault/Model/RawListPathResponse.cs
+++ /dev/null
@@ -1,140 +0,0 @@
-// Copyright (c) HashiCorp, Inc.
-// SPDX-License-Identifier: MPL-2.0
-//
-// Code generated with OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
-
-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 FileParameter = Vault.Client.FileParameter;
-
-
-namespace Vault.Model
-{
- ///
- /// RawListPathResponse
- ///
- [DataContract(Name = "RawListPathResponse")]
- public partial class RawListPathResponse : IEquatable, IValidatableObject
- {
-
-
- ///
- /// Initializes a new instance of the class.
- ///
-
- /// Keys.
-
-
- public RawListPathResponse(List Keys = default(List))
- {
-
- this.Keys = Keys;
-
- }
-
- ///
- /// Gets or Sets Keys
- ///
- [DataMember(Name = "keys", EmitDefaultValue = false)]
-
- public List Keys { 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 RawListPathResponse {\n");
- sb.Append(" Keys: ").Append(Keys).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 RawListPathResponse);
- }
-
- ///
- /// Returns true if RawListPathResponse instances are equal
- ///
- /// Instance of RawListPathResponse to be compared
- /// Boolean
- public bool Equals(RawListPathResponse input)
- {
- if (input == null)
- {
- return false;
- }
- return
- (
- this.Keys == input.Keys ||
- this.Keys != null &&
- input.Keys != null &&
- this.Keys.SequenceEqual(input.Keys)
- );
-
- }
-
- ///
- /// Gets the hash code
- ///
- /// Hash code
- public override int GetHashCode()
- {
- unchecked // Overflow is fine, just wrap
- {
- int hashCode = 41;
-
- if (this.Keys != null)
- {
- hashCode = (hashCode * 59) + this.Keys.GetHashCode();
- }
-
- return hashCode;
- }
- }
-
- ///
- /// To validate all properties of the instance
- ///
- /// Validation context
- /// Validation Result
- public IEnumerable Validate(ValidationContext validationContext)
- {
- yield break;
- }
- }
-
-}
diff --git a/src/Vault/Model/RawReadPathResponse.cs b/src/Vault/Model/RawReadPathResponse.cs
deleted file mode 100644
index 8eaac0fa..00000000
--- a/src/Vault/Model/RawReadPathResponse.cs
+++ /dev/null
@@ -1,140 +0,0 @@
-// Copyright (c) HashiCorp, Inc.
-// SPDX-License-Identifier: MPL-2.0
-//
-// Code generated with OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
-
-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 FileParameter = Vault.Client.FileParameter;
-
-
-namespace Vault.Model
-{
- ///
- /// RawReadPathResponse
- ///
- [DataContract(Name = "RawReadPathResponse")]
- public partial class RawReadPathResponse : IEquatable, IValidatableObject
- {
-
-
- ///
- /// Initializes a new instance of the class.
- ///
-
- /// Value.
-
-
- public RawReadPathResponse(string Value = default(string))
- {
-
- this.Value = Value;
-
- }
-
- ///
- /// Gets or Sets Value
- ///
- [DataMember(Name = "value", EmitDefaultValue = false)]
-
- public string Value { 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 RawReadPathResponse {\n");
- sb.Append(" Value: ").Append(Value).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 RawReadPathResponse);
- }
-
- ///
- /// Returns true if RawReadPathResponse instances are equal
- ///
- /// Instance of RawReadPathResponse to be compared
- /// Boolean
- public bool Equals(RawReadPathResponse input)
- {
- if (input == null)
- {
- return false;
- }
- return
- (
- this.Value == input.Value ||
- (this.Value != null &&
- this.Value.Equals(input.Value))
-
- );
-
- }
-
- ///
- /// Gets the hash code
- ///
- /// Hash code
- public override int GetHashCode()
- {
- unchecked // Overflow is fine, just wrap
- {
- int hashCode = 41;
-
- if (this.Value != null)
- {
- hashCode = (hashCode * 59) + this.Value.GetHashCode();
- }
-
- return hashCode;
- }
- }
-
- ///
- /// To validate all properties of the instance
- ///
- /// Validation context
- /// Validation Result
- public IEnumerable Validate(ValidationContext validationContext)
- {
- yield break;
- }
- }
-
-}
diff --git a/src/Vault/Model/RawWritePathRequest.cs b/src/Vault/Model/RawWritePathRequest.cs
deleted file mode 100644
index 595c0a66..00000000
--- a/src/Vault/Model/RawWritePathRequest.cs
+++ /dev/null
@@ -1,208 +0,0 @@
-// Copyright (c) HashiCorp, Inc.
-// SPDX-License-Identifier: MPL-2.0
-//
-// Code generated with OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
-
-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 FileParameter = Vault.Client.FileParameter;
-
-
-namespace Vault.Model
-{
- ///
- /// RawWritePathRequest
- ///
- [DataContract(Name = "RawWritePathRequest")]
- public partial class RawWritePathRequest : IEquatable, IValidatableObject
- {
-
-
- ///
- /// Initializes a new instance of the class.
- ///
-
- /// Compressed.
-
- /// CompressionType.
-
- /// Encoding.
-
- /// Value.
-
-
- public RawWritePathRequest(bool Compressed = default(bool), string CompressionType = default(string), string Encoding = default(string), string Value = default(string))
- {
-
- this.Compressed = Compressed;
-
- this.CompressionType = CompressionType;
-
- this.Encoding = Encoding;
-
- this.Value = Value;
-
- }
-
- ///
- /// Gets or Sets Compressed
- ///
- [DataMember(Name = "compressed", EmitDefaultValue = true)]
-
- public bool Compressed { get; set; }
-
-
- ///
- /// Gets or Sets CompressionType
- ///
- [DataMember(Name = "compression_type", EmitDefaultValue = false)]
-
- public string CompressionType { get; set; }
-
-
- ///
- /// Gets or Sets Encoding
- ///
- [DataMember(Name = "encoding", EmitDefaultValue = false)]
-
- public string Encoding { get; set; }
-
-
- ///
- /// Gets or Sets Value
- ///
- [DataMember(Name = "value", EmitDefaultValue = false)]
-
- public string Value { 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 RawWritePathRequest {\n");
- sb.Append(" Compressed: ").Append(Compressed).Append("\n");
- sb.Append(" CompressionType: ").Append(CompressionType).Append("\n");
- sb.Append(" Encoding: ").Append(Encoding).Append("\n");
- sb.Append(" Value: ").Append(Value).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 RawWritePathRequest);
- }
-
- ///
- /// Returns true if RawWritePathRequest instances are equal
- ///
- /// Instance of RawWritePathRequest to be compared
- /// Boolean
- public bool Equals(RawWritePathRequest input)
- {
- if (input == null)
- {
- return false;
- }
- return
- (
- this.Compressed == input.Compressed ||
-
- this.Compressed.Equals(input.Compressed)
- ) &&
- (
- this.CompressionType == input.CompressionType ||
- (this.CompressionType != null &&
- this.CompressionType.Equals(input.CompressionType))
-
- ) &&
- (
- this.Encoding == input.Encoding ||
- (this.Encoding != null &&
- this.Encoding.Equals(input.Encoding))
-
- ) &&
- (
- this.Value == input.Value ||
- (this.Value != null &&
- this.Value.Equals(input.Value))
-
- );
-
- }
-
- ///
- /// Gets the hash code
- ///
- /// Hash code
- public override int GetHashCode()
- {
- unchecked // Overflow is fine, just wrap
- {
- int hashCode = 41;
-
-
- hashCode = (hashCode * 59) + this.Compressed.GetHashCode();
- if (this.CompressionType != null)
- {
- hashCode = (hashCode * 59) + this.CompressionType.GetHashCode();
- }
-
- if (this.Encoding != null)
- {
- hashCode = (hashCode * 59) + this.Encoding.GetHashCode();
- }
-
- if (this.Value != null)
- {
- hashCode = (hashCode * 59) + this.Value.GetHashCode();
- }
-
- return hashCode;
- }
- }
-
- ///
- /// To validate all properties of the instance
- ///
- /// Validation context
- /// Validation Result
- public IEnumerable Validate(ValidationContext validationContext)
- {
- yield break;
- }
- }
-
-}
diff --git a/src/Vault/Model/RawWriteRequest.cs b/src/Vault/Model/RawWriteRequest.cs
index ed8bb202..ffb3bff3 100644
--- a/src/Vault/Model/RawWriteRequest.cs
+++ b/src/Vault/Model/RawWriteRequest.cs
@@ -40,12 +40,10 @@ public partial class RawWriteRequest : IEquatable, IValidatable
/// Encoding.
- /// Path.
-
/// Value.
- public RawWriteRequest(bool Compressed = default(bool), string CompressionType = default(string), string Encoding = default(string), string Path = default(string), string Value = default(string))
+ public RawWriteRequest(bool Compressed = default(bool), string CompressionType = default(string), string Encoding = default(string), string Value = default(string))
{
this.Compressed = Compressed;
@@ -54,8 +52,6 @@ public partial class RawWriteRequest : IEquatable, IValidatable
this.Encoding = Encoding;
- this.Path = Path;
-
this.Value = Value;
}
@@ -84,14 +80,6 @@ public partial class RawWriteRequest : IEquatable, IValidatable
public string Encoding { get; set; }
- ///
- /// Gets or Sets Path
- ///
- [DataMember(Name = "path", EmitDefaultValue = false)]
-
- public string Path { get; set; }
-
-
///
/// Gets or Sets Value
///
@@ -113,7 +101,6 @@ public override string ToString()
sb.Append(" Compressed: ").Append(Compressed).Append("\n");
sb.Append(" CompressionType: ").Append(CompressionType).Append("\n");
sb.Append(" Encoding: ").Append(Encoding).Append("\n");
- sb.Append(" Path: ").Append(Path).Append("\n");
sb.Append(" Value: ").Append(Value).Append("\n");
sb.Append("}\n");
return sb.ToString();
@@ -166,12 +153,6 @@ public bool Equals(RawWriteRequest input)
(this.Encoding != null &&
this.Encoding.Equals(input.Encoding))
- ) &&
- (
- this.Path == input.Path ||
- (this.Path != null &&
- this.Path.Equals(input.Path))
-
) &&
(
this.Value == input.Value ||
@@ -204,11 +185,6 @@ public override int GetHashCode()
hashCode = (hashCode * 59) + this.Encoding.GetHashCode();
}
- if (this.Path != null)
- {
- hashCode = (hashCode * 59) + this.Path.GetHashCode();
- }
-
if (this.Value != null)
{
hashCode = (hashCode * 59) + this.Value.GetHashCode();