diff --git a/CHANGELOG.md b/CHANGELOG.md index 73c83dd46..01c546916 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -13,6 +13,7 @@ This release introduces a support for new InfluxDB OSS API definitions - [oss.ym - `DeleteService` is used to delete time series data instead of `DefaultService` - `Run` contains list of `LogEvent` in `Log` property - `DBRPs` contains list of `DBRP` in `Content` property +- `DBRPsService` uses `DBRPCreate` to create `DBRP` - Inheritance structure: - `Check` <- `CheckDiscriminator` <- `CheckBase` - `NotificationEndpoint` <- `NotificationEndpointDiscriminator` <- `NotificationEndpointBase` @@ -26,7 +27,7 @@ This release introduces a support for new InfluxDB OSS API definitions - [oss.ym 1. [#206](https://github.com/influxdata/influxdb-client-csharp/pull/206): Use optional args to pass query parameters into API list call - useful for the ability to use pagination. ### API -1. [#206](https://github.com/influxdata/influxdb-client-csharp/pull/206), [#210](https://github.com/influxdata/influxdb-client-csharp/pull/210): Use InfluxDB OSS API definitions to generated APIs +1. [#206](https://github.com/influxdata/influxdb-client-csharp/pull/206), [#210](https://github.com/influxdata/influxdb-client-csharp/pull/210), [#211](https://github.com/influxdata/influxdb-client-csharp/pull/211): Use InfluxDB OSS API definitions to generated APIs ## 1.19.0 [2021-06-04] diff --git a/Client/InfluxDB.Client.Api/Domain/DBRP.cs b/Client/InfluxDB.Client.Api/Domain/DBRP.cs index 8bcb89cf1..5b140742a 100644 --- a/Client/InfluxDB.Client.Api/Domain/DBRP.cs +++ b/Client/InfluxDB.Client.Api/Domain/DBRP.cs @@ -38,13 +38,12 @@ protected DBRP() { } /// Initializes a new instance of the class. /// /// the organization ID that owns this mapping. (required). - /// the organization that owns this mapping.. /// the bucket ID used as target for the translation. (required). /// InfluxDB v1 database (required). /// InfluxDB v1 retention policy (required). - /// Specify if this mapping represents the default retention policy for the database specificed.. + /// Specify if this mapping represents the default retention policy for the database specificed. (required). /// links. - public DBRP(string orgID = default(string), string org = default(string), string bucketID = default(string), string database = default(string), string retentionPolicy = default(string), bool? _default = default(bool?), Links links = default(Links)) + public DBRP(string orgID = default(string), string bucketID = default(string), string database = default(string), string retentionPolicy = default(string), bool? _default = default(bool?), Links links = default(Links)) { // to ensure "orgID" is required (not null) if (orgID == null) @@ -82,8 +81,15 @@ protected DBRP() { } { this.RetentionPolicy = retentionPolicy; } - this.Org = org; - this.Default = _default; + // to ensure "_default" is required (not null) + if (_default == null) + { + throw new InvalidDataException("_default is a required property for DBRP and cannot be null"); + } + else + { + this.Default = _default; + } this.Links = links; } @@ -101,13 +107,6 @@ protected DBRP() { } [DataMember(Name="orgID", EmitDefaultValue=false)] public string OrgID { get; set; } - /// - /// the organization that owns this mapping. - /// - /// the organization that owns this mapping. - [DataMember(Name="org", EmitDefaultValue=false)] - public string Org { get; set; } - /// /// the bucket ID used as target for the translation. /// @@ -152,7 +151,6 @@ public override string ToString() sb.Append("class DBRP {\n"); sb.Append(" Id: ").Append(Id).Append("\n"); sb.Append(" OrgID: ").Append(OrgID).Append("\n"); - sb.Append(" Org: ").Append(Org).Append("\n"); sb.Append(" BucketID: ").Append(BucketID).Append("\n"); sb.Append(" Database: ").Append(Database).Append("\n"); sb.Append(" RetentionPolicy: ").Append(RetentionPolicy).Append("\n"); @@ -202,11 +200,6 @@ public bool Equals(DBRP input) (this.OrgID != null && this.OrgID.Equals(input.OrgID)) ) && - ( - this.Org == input.Org || - (this.Org != null && - this.Org.Equals(input.Org)) - ) && ( this.BucketID == input.BucketID || (this.BucketID != null && @@ -247,8 +240,6 @@ public override int GetHashCode() hashCode = hashCode * 59 + this.Id.GetHashCode(); if (this.OrgID != null) hashCode = hashCode * 59 + this.OrgID.GetHashCode(); - if (this.Org != null) - hashCode = hashCode * 59 + this.Org.GetHashCode(); if (this.BucketID != null) hashCode = hashCode * 59 + this.BucketID.GetHashCode(); if (this.Database != null) diff --git a/Client/InfluxDB.Client.Api/Domain/DBRPCreate.cs b/Client/InfluxDB.Client.Api/Domain/DBRPCreate.cs new file mode 100644 index 000000000..1c92d4fca --- /dev/null +++ b/Client/InfluxDB.Client.Api/Domain/DBRPCreate.cs @@ -0,0 +1,229 @@ +/* + * Influx OSS API Service + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * OpenAPI spec version: 2.0.0 + * + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Text.RegularExpressions; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using OpenAPIDateConverter = InfluxDB.Client.Api.Client.OpenAPIDateConverter; + +namespace InfluxDB.Client.Api.Domain +{ + /// + /// DBRPCreate + /// + [DataContract] + public partial class DBRPCreate : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected DBRPCreate() { } + /// + /// Initializes a new instance of the class. + /// + /// the organization ID that owns this mapping.. + /// the organization that owns this mapping.. + /// the bucket ID used as target for the translation. (required). + /// InfluxDB v1 database (required). + /// InfluxDB v1 retention policy (required). + /// Specify if this mapping represents the default retention policy for the database specificed.. + public DBRPCreate(string orgID = default(string), string org = default(string), string bucketID = default(string), string database = default(string), string retentionPolicy = default(string), bool? _default = default(bool?)) + { + // to ensure "bucketID" is required (not null) + if (bucketID == null) + { + throw new InvalidDataException("bucketID is a required property for DBRPCreate and cannot be null"); + } + else + { + this.BucketID = bucketID; + } + // to ensure "database" is required (not null) + if (database == null) + { + throw new InvalidDataException("database is a required property for DBRPCreate and cannot be null"); + } + else + { + this.Database = database; + } + // to ensure "retentionPolicy" is required (not null) + if (retentionPolicy == null) + { + throw new InvalidDataException("retentionPolicy is a required property for DBRPCreate and cannot be null"); + } + else + { + this.RetentionPolicy = retentionPolicy; + } + this.OrgID = orgID; + this.Org = org; + this.Default = _default; + } + + /// + /// the organization ID that owns this mapping. + /// + /// the organization ID that owns this mapping. + [DataMember(Name="orgID", EmitDefaultValue=false)] + public string OrgID { get; set; } + + /// + /// the organization that owns this mapping. + /// + /// the organization that owns this mapping. + [DataMember(Name="org", EmitDefaultValue=false)] + public string Org { get; set; } + + /// + /// the bucket ID used as target for the translation. + /// + /// the bucket ID used as target for the translation. + [DataMember(Name="bucketID", EmitDefaultValue=false)] + public string BucketID { get; set; } + + /// + /// InfluxDB v1 database + /// + /// InfluxDB v1 database + [DataMember(Name="database", EmitDefaultValue=false)] + public string Database { get; set; } + + /// + /// InfluxDB v1 retention policy + /// + /// InfluxDB v1 retention policy + [DataMember(Name="retention_policy", EmitDefaultValue=false)] + public string RetentionPolicy { get; set; } + + /// + /// Specify if this mapping represents the default retention policy for the database specificed. + /// + /// Specify if this mapping represents the default retention policy for the database specificed. + [DataMember(Name="default", EmitDefaultValue=false)] + public bool? Default { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class DBRPCreate {\n"); + sb.Append(" OrgID: ").Append(OrgID).Append("\n"); + sb.Append(" Org: ").Append(Org).Append("\n"); + sb.Append(" BucketID: ").Append(BucketID).Append("\n"); + sb.Append(" Database: ").Append(Database).Append("\n"); + sb.Append(" RetentionPolicy: ").Append(RetentionPolicy).Append("\n"); + sb.Append(" Default: ").Append(Default).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 JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as DBRPCreate); + } + + /// + /// Returns true if DBRPCreate instances are equal + /// + /// Instance of DBRPCreate to be compared + /// Boolean + public bool Equals(DBRPCreate input) + { + if (input == null) + return false; + + return + ( + this.OrgID == input.OrgID || + (this.OrgID != null && + this.OrgID.Equals(input.OrgID)) + ) && + ( + this.Org == input.Org || + (this.Org != null && + this.Org.Equals(input.Org)) + ) && + ( + this.BucketID == input.BucketID || + (this.BucketID != null && + this.BucketID.Equals(input.BucketID)) + ) && + ( + this.Database == input.Database || + (this.Database != null && + this.Database.Equals(input.Database)) + ) && + ( + this.RetentionPolicy == input.RetentionPolicy || + (this.RetentionPolicy != null && + this.RetentionPolicy.Equals(input.RetentionPolicy)) + ) && + ( + this.Default == input.Default || + (this.Default != null && + this.Default.Equals(input.Default)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.OrgID != null) + hashCode = hashCode * 59 + this.OrgID.GetHashCode(); + if (this.Org != null) + hashCode = hashCode * 59 + this.Org.GetHashCode(); + if (this.BucketID != null) + hashCode = hashCode * 59 + this.BucketID.GetHashCode(); + if (this.Database != null) + hashCode = hashCode * 59 + this.Database.GetHashCode(); + if (this.RetentionPolicy != null) + hashCode = hashCode * 59 + this.RetentionPolicy.GetHashCode(); + if (this.Default != null) + hashCode = hashCode * 59 + this.Default.GetHashCode(); + return hashCode; + } + } + + } + +} diff --git a/Client/InfluxDB.Client.Api/Domain/DBRPGet.cs b/Client/InfluxDB.Client.Api/Domain/DBRPGet.cs new file mode 100644 index 000000000..9adce4a83 --- /dev/null +++ b/Client/InfluxDB.Client.Api/Domain/DBRPGet.cs @@ -0,0 +1,114 @@ +/* + * Influx OSS API Service + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * OpenAPI spec version: 2.0.0 + * + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Text.RegularExpressions; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using OpenAPIDateConverter = InfluxDB.Client.Api.Client.OpenAPIDateConverter; + +namespace InfluxDB.Client.Api.Domain +{ + /// + /// DBRPGet + /// + [DataContract] + public partial class DBRPGet : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + /// content. + public DBRPGet(DBRP content = default(DBRP)) + { + this.Content = content; + } + + /// + /// Gets or Sets Content + /// + [DataMember(Name="content", EmitDefaultValue=false)] + public DBRP Content { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class DBRPGet {\n"); + sb.Append(" Content: ").Append(Content).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 JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as DBRPGet); + } + + /// + /// Returns true if DBRPGet instances are equal + /// + /// Instance of DBRPGet to be compared + /// Boolean + public bool Equals(DBRPGet input) + { + if (input == null) + return false; + + return + ( + + (this.Content != null && + this.Content.Equals(input.Content)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Content != null) + hashCode = hashCode * 59 + this.Content.GetHashCode(); + return hashCode; + } + } + + } + +} diff --git a/Client/InfluxDB.Client.Api/Domain/DBRPUpdate.cs b/Client/InfluxDB.Client.Api/Domain/DBRPUpdate.cs index fb32971a3..83fd6f0bf 100644 --- a/Client/InfluxDB.Client.Api/Domain/DBRPUpdate.cs +++ b/Client/InfluxDB.Client.Api/Domain/DBRPUpdate.cs @@ -32,25 +32,14 @@ public partial class DBRPUpdate : IEquatable /// /// Initializes a new instance of the class. /// - /// InfluxDB v1 database. /// InfluxDB v1 retention policy. /// _default. - /// links. - public DBRPUpdate(string database = default(string), string retentionPolicy = default(string), bool? _default = default(bool?), Links links = default(Links)) + public DBRPUpdate(string retentionPolicy = default(string), bool? _default = default(bool?)) { - this.Database = database; this.RetentionPolicy = retentionPolicy; this.Default = _default; - this.Links = links; } - /// - /// InfluxDB v1 database - /// - /// InfluxDB v1 database - [DataMember(Name="database", EmitDefaultValue=false)] - public string Database { get; set; } - /// /// InfluxDB v1 retention policy /// @@ -64,12 +53,6 @@ public partial class DBRPUpdate : IEquatable [DataMember(Name="default", EmitDefaultValue=false)] public bool? Default { get; set; } - /// - /// Gets or Sets Links - /// - [DataMember(Name="links", EmitDefaultValue=false)] - public Links Links { get; set; } - /// /// Returns the string presentation of the object /// @@ -78,10 +61,8 @@ public override string ToString() { var sb = new StringBuilder(); sb.Append("class DBRPUpdate {\n"); - sb.Append(" Database: ").Append(Database).Append("\n"); sb.Append(" RetentionPolicy: ").Append(RetentionPolicy).Append("\n"); sb.Append(" Default: ").Append(Default).Append("\n"); - sb.Append(" Links: ").Append(Links).Append("\n"); sb.Append("}\n"); return sb.ToString(); } @@ -116,11 +97,6 @@ public bool Equals(DBRPUpdate input) return false; return - ( - this.Database == input.Database || - (this.Database != null && - this.Database.Equals(input.Database)) - ) && ( this.RetentionPolicy == input.RetentionPolicy || (this.RetentionPolicy != null && @@ -130,11 +106,6 @@ public bool Equals(DBRPUpdate input) this.Default == input.Default || (this.Default != null && this.Default.Equals(input.Default)) - ) && - ( - - (this.Links != null && - this.Links.Equals(input.Links)) ); } @@ -147,14 +118,10 @@ public override int GetHashCode() unchecked // Overflow is fine, just wrap { int hashCode = 41; - if (this.Database != null) - hashCode = hashCode * 59 + this.Database.GetHashCode(); if (this.RetentionPolicy != null) hashCode = hashCode * 59 + this.RetentionPolicy.GetHashCode(); if (this.Default != null) hashCode = hashCode * 59 + this.Default.GetHashCode(); - if (this.Links != null) - hashCode = hashCode * 59 + this.Links.GetHashCode(); return hashCode; } } diff --git a/Client/InfluxDB.Client.Api/Service/DBRPsService.cs b/Client/InfluxDB.Client.Api/Service/DBRPsService.cs index 33dd37458..dbc9a9474 100644 --- a/Client/InfluxDB.Client.Api/Service/DBRPsService.cs +++ b/Client/InfluxDB.Client.Api/Service/DBRPsService.cs @@ -32,11 +32,12 @@ public interface IDBRPsService : IApiAccessor /// /// /// Thrown when fails to make API call - /// Specifies the organization ID of the mapping /// The database retention policy mapping /// OpenTracing span context (optional) + /// Specifies the organization ID of the mapping (optional) + /// Specifies the organization name of the mapping (optional) /// - void DeleteDBRPID (string orgID, string dbrpID, string zapTraceSpan = null); + void DeleteDBRPID (string dbrpID, string zapTraceSpan = null, string orgID = null, string org = null); /// /// Delete a database retention policy @@ -45,11 +46,12 @@ public interface IDBRPsService : IApiAccessor /// /// /// Thrown when fails to make API call - /// Specifies the organization ID of the mapping /// The database retention policy mapping /// OpenTracing span context (optional) + /// Specifies the organization ID of the mapping (optional) + /// Specifies the organization name of the mapping (optional) /// ApiResponse of Object(void) - ApiResponse DeleteDBRPIDWithHttpInfo (string orgID, string dbrpID, string zapTraceSpan = null); + ApiResponse DeleteDBRPIDWithHttpInfo (string dbrpID, string zapTraceSpan = null, string orgID = null, string org = null); /// /// List all database retention policy mappings /// @@ -57,15 +59,16 @@ public interface IDBRPsService : IApiAccessor /// /// /// Thrown when fails to make API call - /// Specifies the organization ID to filter on /// OpenTracing span context (optional) + /// Specifies the organization ID to filter on (optional) + /// Specifies the organization name to filter on (optional) /// Specifies the mapping ID to filter on (optional) /// Specifies the bucket ID to filter on (optional) /// Specifies filtering on default (optional) /// Specifies the database to filter on (optional) /// Specifies the retention policy to filter on (optional) /// DBRPs - DBRPs GetDBRPs (string orgID, string zapTraceSpan = null, string id = null, string bucketID = null, bool? _default = null, string db = null, string rp = null); + DBRPs GetDBRPs (string zapTraceSpan = null, string orgID = null, string org = null, string id = null, string bucketID = null, bool? _default = null, string db = null, string rp = null); /// /// List all database retention policy mappings @@ -74,15 +77,16 @@ public interface IDBRPsService : IApiAccessor /// /// /// Thrown when fails to make API call - /// Specifies the organization ID to filter on /// OpenTracing span context (optional) + /// Specifies the organization ID to filter on (optional) + /// Specifies the organization name to filter on (optional) /// Specifies the mapping ID to filter on (optional) /// Specifies the bucket ID to filter on (optional) /// Specifies filtering on default (optional) /// Specifies the database to filter on (optional) /// Specifies the retention policy to filter on (optional) /// ApiResponse of DBRPs - ApiResponse GetDBRPsWithHttpInfo (string orgID, string zapTraceSpan = null, string id = null, string bucketID = null, bool? _default = null, string db = null, string rp = null); + ApiResponse GetDBRPsWithHttpInfo (string zapTraceSpan = null, string orgID = null, string org = null, string id = null, string bucketID = null, bool? _default = null, string db = null, string rp = null); /// /// Retrieve a database retention policy mapping /// @@ -90,11 +94,12 @@ public interface IDBRPsService : IApiAccessor /// /// /// Thrown when fails to make API call - /// Specifies the organization ID of the mapping /// The database retention policy mapping ID /// OpenTracing span context (optional) - /// DBRP - DBRP GetDBRPsID (string orgID, string dbrpID, string zapTraceSpan = null); + /// Specifies the organization ID of the mapping (optional) + /// Specifies the organization name of the mapping (optional) + /// DBRPGet + DBRPGet GetDBRPsID (string dbrpID, string zapTraceSpan = null, string orgID = null, string org = null); /// /// Retrieve a database retention policy mapping @@ -103,11 +108,12 @@ public interface IDBRPsService : IApiAccessor /// /// /// Thrown when fails to make API call - /// Specifies the organization ID of the mapping /// The database retention policy mapping ID /// OpenTracing span context (optional) - /// ApiResponse of DBRP - ApiResponse GetDBRPsIDWithHttpInfo (string orgID, string dbrpID, string zapTraceSpan = null); + /// Specifies the organization ID of the mapping (optional) + /// Specifies the organization name of the mapping (optional) + /// ApiResponse of DBRPGet + ApiResponse GetDBRPsIDWithHttpInfo (string dbrpID, string zapTraceSpan = null, string orgID = null, string org = null); /// /// Update a database retention policy mapping /// @@ -115,12 +121,13 @@ public interface IDBRPsService : IApiAccessor /// /// /// Thrown when fails to make API call - /// Specifies the organization ID of the mapping /// The database retention policy mapping. /// Database retention policy update to apply /// OpenTracing span context (optional) - /// DBRP - DBRP PatchDBRPID (string orgID, string dbrpID, DBRPUpdate dBRPUpdate, string zapTraceSpan = null); + /// Specifies the organization ID of the mapping (optional) + /// Specifies the organization name of the mapping (optional) + /// DBRPGet + DBRPGet PatchDBRPID (string dbrpID, DBRPUpdate dBRPUpdate, string zapTraceSpan = null, string orgID = null, string org = null); /// /// Update a database retention policy mapping @@ -129,12 +136,13 @@ public interface IDBRPsService : IApiAccessor /// /// /// Thrown when fails to make API call - /// Specifies the organization ID of the mapping /// The database retention policy mapping. /// Database retention policy update to apply /// OpenTracing span context (optional) - /// ApiResponse of DBRP - ApiResponse PatchDBRPIDWithHttpInfo (string orgID, string dbrpID, DBRPUpdate dBRPUpdate, string zapTraceSpan = null); + /// Specifies the organization ID of the mapping (optional) + /// Specifies the organization name of the mapping (optional) + /// ApiResponse of DBRPGet + ApiResponse PatchDBRPIDWithHttpInfo (string dbrpID, DBRPUpdate dBRPUpdate, string zapTraceSpan = null, string orgID = null, string org = null); /// /// Add a database retention policy mapping /// @@ -142,10 +150,10 @@ public interface IDBRPsService : IApiAccessor /// /// /// Thrown when fails to make API call - /// The database retention policy mapping to add + /// The database retention policy mapping to add /// OpenTracing span context (optional) /// DBRP - DBRP PostDBRP (DBRP DBRP, string zapTraceSpan = null); + DBRP PostDBRP (DBRPCreate dBRPCreate, string zapTraceSpan = null); /// /// Add a database retention policy mapping @@ -154,10 +162,10 @@ public interface IDBRPsService : IApiAccessor /// /// /// Thrown when fails to make API call - /// The database retention policy mapping to add + /// The database retention policy mapping to add /// OpenTracing span context (optional) /// ApiResponse of DBRP - ApiResponse PostDBRPWithHttpInfo (DBRP DBRP, string zapTraceSpan = null); + ApiResponse PostDBRPWithHttpInfo (DBRPCreate dBRPCreate, string zapTraceSpan = null); #endregion Synchronous Operations #region Asynchronous Operations /// @@ -167,12 +175,13 @@ public interface IDBRPsService : IApiAccessor /// /// /// Thrown when fails to make API call - /// Specifies the organization ID of the mapping /// The database retention policy mapping /// OpenTracing span context (optional) + /// Specifies the organization ID of the mapping (optional) + /// Specifies the organization name of the mapping (optional) /// Cancellation token /// Task of void - System.Threading.Tasks.Task DeleteDBRPIDAsync (string orgID, string dbrpID, string zapTraceSpan = null, CancellationToken cancellationToken = default); + System.Threading.Tasks.Task DeleteDBRPIDAsync (string dbrpID, string zapTraceSpan = null, string orgID = null, string org = null, CancellationToken cancellationToken = default); /// /// Delete a database retention policy @@ -181,12 +190,13 @@ public interface IDBRPsService : IApiAccessor /// /// /// Thrown when fails to make API call - /// Specifies the organization ID of the mapping /// The database retention policy mapping /// OpenTracing span context (optional) + /// Specifies the organization ID of the mapping (optional) + /// Specifies the organization name of the mapping (optional) /// Cancellation token /// Task of ApiResponse - System.Threading.Tasks.Task> DeleteDBRPIDAsyncWithHttpInfo (string orgID, string dbrpID, string zapTraceSpan = null, CancellationToken cancellationToken = default); + System.Threading.Tasks.Task> DeleteDBRPIDAsyncWithHttpInfo (string dbrpID, string zapTraceSpan = null, string orgID = null, string org = null, CancellationToken cancellationToken = default); /// /// List all database retention policy mappings /// @@ -194,8 +204,9 @@ public interface IDBRPsService : IApiAccessor /// /// /// Thrown when fails to make API call - /// Specifies the organization ID to filter on /// OpenTracing span context (optional) + /// Specifies the organization ID to filter on (optional) + /// Specifies the organization name to filter on (optional) /// Specifies the mapping ID to filter on (optional) /// Specifies the bucket ID to filter on (optional) /// Specifies filtering on default (optional) @@ -203,7 +214,7 @@ public interface IDBRPsService : IApiAccessor /// Specifies the retention policy to filter on (optional) /// Cancellation token /// Task of DBRPs - System.Threading.Tasks.Task GetDBRPsAsync (string orgID, string zapTraceSpan = null, string id = null, string bucketID = null, bool? _default = null, string db = null, string rp = null, CancellationToken cancellationToken = default); + System.Threading.Tasks.Task GetDBRPsAsync (string zapTraceSpan = null, string orgID = null, string org = null, string id = null, string bucketID = null, bool? _default = null, string db = null, string rp = null, CancellationToken cancellationToken = default); /// /// List all database retention policy mappings @@ -212,8 +223,9 @@ public interface IDBRPsService : IApiAccessor /// /// /// Thrown when fails to make API call - /// Specifies the organization ID to filter on /// OpenTracing span context (optional) + /// Specifies the organization ID to filter on (optional) + /// Specifies the organization name to filter on (optional) /// Specifies the mapping ID to filter on (optional) /// Specifies the bucket ID to filter on (optional) /// Specifies filtering on default (optional) @@ -221,7 +233,7 @@ public interface IDBRPsService : IApiAccessor /// Specifies the retention policy to filter on (optional) /// Cancellation token /// Task of ApiResponse (DBRPs) - System.Threading.Tasks.Task> GetDBRPsAsyncWithHttpInfo (string orgID, string zapTraceSpan = null, string id = null, string bucketID = null, bool? _default = null, string db = null, string rp = null, CancellationToken cancellationToken = default); + System.Threading.Tasks.Task> GetDBRPsAsyncWithHttpInfo (string zapTraceSpan = null, string orgID = null, string org = null, string id = null, string bucketID = null, bool? _default = null, string db = null, string rp = null, CancellationToken cancellationToken = default); /// /// Retrieve a database retention policy mapping /// @@ -229,12 +241,13 @@ public interface IDBRPsService : IApiAccessor /// /// /// Thrown when fails to make API call - /// Specifies the organization ID of the mapping /// The database retention policy mapping ID /// OpenTracing span context (optional) + /// Specifies the organization ID of the mapping (optional) + /// Specifies the organization name of the mapping (optional) /// Cancellation token - /// Task of DBRP - System.Threading.Tasks.Task GetDBRPsIDAsync (string orgID, string dbrpID, string zapTraceSpan = null, CancellationToken cancellationToken = default); + /// Task of DBRPGet + System.Threading.Tasks.Task GetDBRPsIDAsync (string dbrpID, string zapTraceSpan = null, string orgID = null, string org = null, CancellationToken cancellationToken = default); /// /// Retrieve a database retention policy mapping @@ -243,12 +256,13 @@ public interface IDBRPsService : IApiAccessor /// /// /// Thrown when fails to make API call - /// Specifies the organization ID of the mapping /// The database retention policy mapping ID /// OpenTracing span context (optional) + /// Specifies the organization ID of the mapping (optional) + /// Specifies the organization name of the mapping (optional) /// Cancellation token - /// Task of ApiResponse (DBRP) - System.Threading.Tasks.Task> GetDBRPsIDAsyncWithHttpInfo (string orgID, string dbrpID, string zapTraceSpan = null, CancellationToken cancellationToken = default); + /// Task of ApiResponse (DBRPGet) + System.Threading.Tasks.Task> GetDBRPsIDAsyncWithHttpInfo (string dbrpID, string zapTraceSpan = null, string orgID = null, string org = null, CancellationToken cancellationToken = default); /// /// Update a database retention policy mapping /// @@ -256,13 +270,14 @@ public interface IDBRPsService : IApiAccessor /// /// /// Thrown when fails to make API call - /// Specifies the organization ID of the mapping /// The database retention policy mapping. /// Database retention policy update to apply /// OpenTracing span context (optional) + /// Specifies the organization ID of the mapping (optional) + /// Specifies the organization name of the mapping (optional) /// Cancellation token - /// Task of DBRP - System.Threading.Tasks.Task PatchDBRPIDAsync (string orgID, string dbrpID, DBRPUpdate dBRPUpdate, string zapTraceSpan = null, CancellationToken cancellationToken = default); + /// Task of DBRPGet + System.Threading.Tasks.Task PatchDBRPIDAsync (string dbrpID, DBRPUpdate dBRPUpdate, string zapTraceSpan = null, string orgID = null, string org = null, CancellationToken cancellationToken = default); /// /// Update a database retention policy mapping @@ -271,13 +286,14 @@ public interface IDBRPsService : IApiAccessor /// /// /// Thrown when fails to make API call - /// Specifies the organization ID of the mapping /// The database retention policy mapping. /// Database retention policy update to apply /// OpenTracing span context (optional) + /// Specifies the organization ID of the mapping (optional) + /// Specifies the organization name of the mapping (optional) /// Cancellation token - /// Task of ApiResponse (DBRP) - System.Threading.Tasks.Task> PatchDBRPIDAsyncWithHttpInfo (string orgID, string dbrpID, DBRPUpdate dBRPUpdate, string zapTraceSpan = null, CancellationToken cancellationToken = default); + /// Task of ApiResponse (DBRPGet) + System.Threading.Tasks.Task> PatchDBRPIDAsyncWithHttpInfo (string dbrpID, DBRPUpdate dBRPUpdate, string zapTraceSpan = null, string orgID = null, string org = null, CancellationToken cancellationToken = default); /// /// Add a database retention policy mapping /// @@ -285,11 +301,11 @@ public interface IDBRPsService : IApiAccessor /// /// /// Thrown when fails to make API call - /// The database retention policy mapping to add + /// The database retention policy mapping to add /// OpenTracing span context (optional) /// Cancellation token /// Task of DBRP - System.Threading.Tasks.Task PostDBRPAsync (DBRP DBRP, string zapTraceSpan = null, CancellationToken cancellationToken = default); + System.Threading.Tasks.Task PostDBRPAsync (DBRPCreate dBRPCreate, string zapTraceSpan = null, CancellationToken cancellationToken = default); /// /// Add a database retention policy mapping @@ -298,11 +314,11 @@ public interface IDBRPsService : IApiAccessor /// /// /// Thrown when fails to make API call - /// The database retention policy mapping to add + /// The database retention policy mapping to add /// OpenTracing span context (optional) /// Cancellation token /// Task of ApiResponse (DBRP) - System.Threading.Tasks.Task> PostDBRPAsyncWithHttpInfo (DBRP DBRP, string zapTraceSpan = null, CancellationToken cancellationToken = default); + System.Threading.Tasks.Task> PostDBRPAsyncWithHttpInfo (DBRPCreate dBRPCreate, string zapTraceSpan = null, CancellationToken cancellationToken = default); #endregion Asynchronous Operations } @@ -407,28 +423,27 @@ public void AddDefaultHeader(string key, string value) /// Delete a database retention policy /// /// Thrown when fails to make API call - /// Specifies the organization ID of the mapping /// The database retention policy mapping /// OpenTracing span context (optional) + /// Specifies the organization ID of the mapping (optional) + /// Specifies the organization name of the mapping (optional) /// - public void DeleteDBRPID (string orgID, string dbrpID, string zapTraceSpan = null) + public void DeleteDBRPID (string dbrpID, string zapTraceSpan = null, string orgID = null, string org = null) { - DeleteDBRPIDWithHttpInfo(orgID, dbrpID, zapTraceSpan); + DeleteDBRPIDWithHttpInfo(dbrpID, zapTraceSpan, orgID, org); } /// /// Delete a database retention policy /// /// Thrown when fails to make API call - /// Specifies the organization ID of the mapping /// The database retention policy mapping /// OpenTracing span context (optional) + /// Specifies the organization ID of the mapping (optional) + /// Specifies the organization name of the mapping (optional) /// ApiResponse of Object(void) - public ApiResponse DeleteDBRPIDWithHttpInfo (string orgID, string dbrpID, string zapTraceSpan = null) + public ApiResponse DeleteDBRPIDWithHttpInfo (string dbrpID, string zapTraceSpan = null, string orgID = null, string org = null) { - // verify the required parameter 'orgID' is set - if (orgID == null) - throw new ApiException(400, "Missing required parameter 'orgID' when calling DBRPsService->DeleteDBRPID"); // verify the required parameter 'dbrpID' is set if (dbrpID == null) throw new ApiException(400, "Missing required parameter 'dbrpID' when calling DBRPsService->DeleteDBRPID"); @@ -448,6 +463,7 @@ public ApiResponse DeleteDBRPIDWithHttpInfo (string orgID, string dbrpID if (dbrpID != null) localVarPathParams.Add("dbrpID", this.Configuration.ApiClient.ParameterToString(dbrpID)); // path parameter if (orgID != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "orgID", orgID)); // query parameter + if (org != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "org", org)); // query parameter if (zapTraceSpan != null) localVarHeaderParams.Add("Zap-Trace-Span", this.Configuration.ApiClient.ParameterToString(zapTraceSpan)); // header parameter // to determine the Accept header @@ -482,16 +498,14 @@ public ApiResponse DeleteDBRPIDWithHttpInfo (string orgID, string dbrpID /// Delete a database retention policy /// /// Thrown when fails to make API call - /// Specifies the organization ID of the mapping /// The database retention policy mapping /// OpenTracing span context (optional) + /// Specifies the organization ID of the mapping (optional) + /// Specifies the organization name of the mapping (optional) /// Cancellation token /// ApiResponse of Object(void) - public async System.Threading.Tasks.Task DeleteDBRPIDWithIRestResponseAsync (string orgID, string dbrpID, string zapTraceSpan = null, CancellationToken cancellationToken = default) + public async System.Threading.Tasks.Task DeleteDBRPIDWithIRestResponseAsync (string dbrpID, string zapTraceSpan = null, string orgID = null, string org = null, CancellationToken cancellationToken = default) { - // verify the required parameter 'orgID' is set - if (orgID == null) - throw new ApiException(400, "Missing required parameter 'orgID' when calling DBRPsService->DeleteDBRPID"); // verify the required parameter 'dbrpID' is set if (dbrpID == null) throw new ApiException(400, "Missing required parameter 'dbrpID' when calling DBRPsService->DeleteDBRPID"); @@ -511,6 +525,7 @@ public async System.Threading.Tasks.Task DeleteDBRPIDWithIRestRes if (dbrpID != null) localVarPathParams.Add("dbrpID", this.Configuration.ApiClient.ParameterToString(dbrpID)); // path parameter if (orgID != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "orgID", orgID)); // query parameter + if (org != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "org", org)); // query parameter if (zapTraceSpan != null) localVarHeaderParams.Add("Zap-Trace-Span", this.Configuration.ApiClient.ParameterToString(zapTraceSpan)); // header parameter // to determine the Accept header @@ -543,15 +558,13 @@ public async System.Threading.Tasks.Task DeleteDBRPIDWithIRestRes /// Delete a database retention policy /// /// Thrown when fails to make API call - /// Specifies the organization ID of the mapping /// The database retention policy mapping /// OpenTracing span context (optional) + /// Specifies the organization ID of the mapping (optional) + /// Specifies the organization name of the mapping (optional) /// ApiResponse of Object(void) - public IRestResponse DeleteDBRPIDWithIRestResponse (string orgID, string dbrpID, string zapTraceSpan = null) + public IRestResponse DeleteDBRPIDWithIRestResponse (string dbrpID, string zapTraceSpan = null, string orgID = null, string org = null) { - // verify the required parameter 'orgID' is set - if (orgID == null) - throw new ApiException(400, "Missing required parameter 'orgID' when calling DBRPsService->DeleteDBRPID"); // verify the required parameter 'dbrpID' is set if (dbrpID == null) throw new ApiException(400, "Missing required parameter 'dbrpID' when calling DBRPsService->DeleteDBRPID"); @@ -571,6 +584,7 @@ public IRestResponse DeleteDBRPIDWithIRestResponse (string orgID, string dbrpID, if (dbrpID != null) localVarPathParams.Add("dbrpID", this.Configuration.ApiClient.ParameterToString(dbrpID)); // path parameter if (orgID != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "orgID", orgID)); // query parameter + if (org != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "org", org)); // query parameter if (zapTraceSpan != null) localVarHeaderParams.Add("Zap-Trace-Span", this.Configuration.ApiClient.ParameterToString(zapTraceSpan)); // header parameter // to determine the Accept header @@ -603,15 +617,13 @@ public IRestResponse DeleteDBRPIDWithIRestResponse (string orgID, string dbrpID, /// Delete a database retention policy /// /// Thrown when fails to make API call - /// Specifies the organization ID of the mapping /// The database retention policy mapping /// OpenTracing span context (optional) + /// Specifies the organization ID of the mapping (optional) + /// Specifies the organization name of the mapping (optional) /// ApiResponse of Object(void) - public RestRequest DeleteDBRPIDWithRestRequest (string orgID, string dbrpID, string zapTraceSpan = null) + public RestRequest DeleteDBRPIDWithRestRequest (string dbrpID, string zapTraceSpan = null, string orgID = null, string org = null) { - // verify the required parameter 'orgID' is set - if (orgID == null) - throw new ApiException(400, "Missing required parameter 'orgID' when calling DBRPsService->DeleteDBRPID"); // verify the required parameter 'dbrpID' is set if (dbrpID == null) throw new ApiException(400, "Missing required parameter 'dbrpID' when calling DBRPsService->DeleteDBRPID"); @@ -631,6 +643,7 @@ public RestRequest DeleteDBRPIDWithRestRequest (string orgID, string dbrpID, str if (dbrpID != null) localVarPathParams.Add("dbrpID", this.Configuration.ApiClient.ParameterToString(dbrpID)); // path parameter if (orgID != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "orgID", orgID)); // query parameter + if (org != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "org", org)); // query parameter if (zapTraceSpan != null) localVarHeaderParams.Add("Zap-Trace-Span", this.Configuration.ApiClient.ParameterToString(zapTraceSpan)); // header parameter // to determine the Accept header @@ -652,14 +665,15 @@ public RestRequest DeleteDBRPIDWithRestRequest (string orgID, string dbrpID, str /// Delete a database retention policy /// /// Thrown when fails to make API call - /// Specifies the organization ID of the mapping /// The database retention policy mapping /// OpenTracing span context (optional) + /// Specifies the organization ID of the mapping (optional) + /// Specifies the organization name of the mapping (optional) /// Cancellation token /// Task of void - public System.Threading.Tasks.Task DeleteDBRPIDAsync (string orgID, string dbrpID, string zapTraceSpan = null, CancellationToken cancellationToken = default) + public System.Threading.Tasks.Task DeleteDBRPIDAsync (string dbrpID, string zapTraceSpan = null, string orgID = null, string org = null, CancellationToken cancellationToken = default) { - return DeleteDBRPIDAsyncWithHttpInfo(orgID, dbrpID, zapTraceSpan, cancellationToken); + return DeleteDBRPIDAsyncWithHttpInfo(dbrpID, zapTraceSpan, orgID, org, cancellationToken); } @@ -667,15 +681,16 @@ public System.Threading.Tasks.Task DeleteDBRPIDAsync (string orgID, string dbrpI /// Delete a database retention policy /// /// Thrown when fails to make API call - /// Specifies the organization ID of the mapping /// The database retention policy mapping /// OpenTracing span context (optional) + /// Specifies the organization ID of the mapping (optional) + /// Specifies the organization name of the mapping (optional) /// Cancellation token /// Task of ApiResponse - public async System.Threading.Tasks.Task> DeleteDBRPIDAsyncWithHttpInfo (string orgID, string dbrpID, string zapTraceSpan = null, CancellationToken cancellationToken = default) + public async System.Threading.Tasks.Task> DeleteDBRPIDAsyncWithHttpInfo (string dbrpID, string zapTraceSpan = null, string orgID = null, string org = null, CancellationToken cancellationToken = default) { // make the HTTP request - IRestResponse localVarResponse = await DeleteDBRPIDAsyncWithIRestResponse(orgID, dbrpID, zapTraceSpan, cancellationToken).ConfigureAwait(false); + IRestResponse localVarResponse = await DeleteDBRPIDAsyncWithIRestResponse(dbrpID, zapTraceSpan, orgID, org, cancellationToken).ConfigureAwait(false); int localVarStatusCode = (int) localVarResponse.StatusCode; @@ -694,16 +709,14 @@ public async System.Threading.Tasks.Task> DeleteDBRPIDAsyncW /// Delete a database retention policy /// /// Thrown when fails to make API call - /// Specifies the organization ID of the mapping /// The database retention policy mapping /// OpenTracing span context (optional) + /// Specifies the organization ID of the mapping (optional) + /// Specifies the organization name of the mapping (optional) /// Cancellation token /// Task of IRestResponse - public async System.Threading.Tasks.Task DeleteDBRPIDAsyncWithIRestResponse (string orgID, string dbrpID, string zapTraceSpan = null, CancellationToken cancellationToken = default) + public async System.Threading.Tasks.Task DeleteDBRPIDAsyncWithIRestResponse (string dbrpID, string zapTraceSpan = null, string orgID = null, string org = null, CancellationToken cancellationToken = default) { - // verify the required parameter 'orgID' is set - if (orgID == null) - throw new ApiException(400, "Missing required parameter 'orgID' when calling DBRPsService->DeleteDBRPID"); // verify the required parameter 'dbrpID' is set if (dbrpID == null) throw new ApiException(400, "Missing required parameter 'dbrpID' when calling DBRPsService->DeleteDBRPID"); @@ -723,6 +736,7 @@ public async System.Threading.Tasks.Task DeleteDBRPIDAsyncWithIRe if (dbrpID != null) localVarPathParams.Add("dbrpID", this.Configuration.ApiClient.ParameterToString(dbrpID)); // path parameter if (orgID != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "orgID", orgID)); // query parameter + if (org != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "org", org)); // query parameter if (zapTraceSpan != null) localVarHeaderParams.Add("Zap-Trace-Span", this.Configuration.ApiClient.ParameterToString(zapTraceSpan)); // header parameter // to determine the Accept header @@ -753,17 +767,18 @@ public async System.Threading.Tasks.Task DeleteDBRPIDAsyncWithIRe /// List all database retention policy mappings /// /// Thrown when fails to make API call - /// Specifies the organization ID to filter on /// OpenTracing span context (optional) + /// Specifies the organization ID to filter on (optional) + /// Specifies the organization name to filter on (optional) /// Specifies the mapping ID to filter on (optional) /// Specifies the bucket ID to filter on (optional) /// Specifies filtering on default (optional) /// Specifies the database to filter on (optional) /// Specifies the retention policy to filter on (optional) /// DBRPs - public DBRPs GetDBRPs (string orgID, string zapTraceSpan = null, string id = null, string bucketID = null, bool? _default = null, string db = null, string rp = null) + public DBRPs GetDBRPs (string zapTraceSpan = null, string orgID = null, string org = null, string id = null, string bucketID = null, bool? _default = null, string db = null, string rp = null) { - ApiResponse localVarResponse = GetDBRPsWithHttpInfo(orgID, zapTraceSpan, id, bucketID, _default, db, rp); + ApiResponse localVarResponse = GetDBRPsWithHttpInfo(zapTraceSpan, orgID, org, id, bucketID, _default, db, rp); return localVarResponse.Data; } @@ -771,19 +786,17 @@ public DBRPs GetDBRPs (string orgID, string zapTraceSpan = null, string id = nul /// List all database retention policy mappings /// /// Thrown when fails to make API call - /// Specifies the organization ID to filter on /// OpenTracing span context (optional) + /// Specifies the organization ID to filter on (optional) + /// Specifies the organization name to filter on (optional) /// Specifies the mapping ID to filter on (optional) /// Specifies the bucket ID to filter on (optional) /// Specifies filtering on default (optional) /// Specifies the database to filter on (optional) /// Specifies the retention policy to filter on (optional) /// ApiResponse of DBRPs - public ApiResponse< DBRPs > GetDBRPsWithHttpInfo (string orgID, string zapTraceSpan = null, string id = null, string bucketID = null, bool? _default = null, string db = null, string rp = null) + public ApiResponse< DBRPs > GetDBRPsWithHttpInfo (string zapTraceSpan = null, string orgID = null, string org = null, string id = null, string bucketID = null, bool? _default = null, string db = null, string rp = null) { - // verify the required parameter 'orgID' is set - if (orgID == null) - throw new ApiException(400, "Missing required parameter 'orgID' when calling DBRPsService->GetDBRPs"); var localVarPath = "/api/v2/dbrps"; var localVarPathParams = new Dictionary(); @@ -799,6 +812,7 @@ public ApiResponse< DBRPs > GetDBRPsWithHttpInfo (string orgID, string zapTraceS String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); if (orgID != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "orgID", orgID)); // query parameter + if (org != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "org", org)); // query parameter if (id != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "id", id)); // query parameter if (bucketID != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "bucketID", bucketID)); // query parameter if (_default != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "default", _default)); // query parameter @@ -838,8 +852,9 @@ public ApiResponse< DBRPs > GetDBRPsWithHttpInfo (string orgID, string zapTraceS /// List all database retention policy mappings /// /// Thrown when fails to make API call - /// Specifies the organization ID to filter on /// OpenTracing span context (optional) + /// Specifies the organization ID to filter on (optional) + /// Specifies the organization name to filter on (optional) /// Specifies the mapping ID to filter on (optional) /// Specifies the bucket ID to filter on (optional) /// Specifies filtering on default (optional) @@ -847,11 +862,8 @@ public ApiResponse< DBRPs > GetDBRPsWithHttpInfo (string orgID, string zapTraceS /// Specifies the retention policy to filter on (optional) /// Cancellation token /// ApiResponse of DBRPs - public async System.Threading.Tasks.Task GetDBRPsWithIRestResponseAsync (string orgID, string zapTraceSpan = null, string id = null, string bucketID = null, bool? _default = null, string db = null, string rp = null, CancellationToken cancellationToken = default) + public async System.Threading.Tasks.Task GetDBRPsWithIRestResponseAsync (string zapTraceSpan = null, string orgID = null, string org = null, string id = null, string bucketID = null, bool? _default = null, string db = null, string rp = null, CancellationToken cancellationToken = default) { - // verify the required parameter 'orgID' is set - if (orgID == null) - throw new ApiException(400, "Missing required parameter 'orgID' when calling DBRPsService->GetDBRPs"); var localVarPath = "/api/v2/dbrps"; var localVarPathParams = new Dictionary(); @@ -867,6 +879,7 @@ public async System.Threading.Tasks.Task GetDBRPsWithIRestRespons String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); if (orgID != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "orgID", orgID)); // query parameter + if (org != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "org", org)); // query parameter if (id != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "id", id)); // query parameter if (bucketID != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "bucketID", bucketID)); // query parameter if (_default != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "default", _default)); // query parameter @@ -904,19 +917,17 @@ public async System.Threading.Tasks.Task GetDBRPsWithIRestRespons /// List all database retention policy mappings /// /// Thrown when fails to make API call - /// Specifies the organization ID to filter on /// OpenTracing span context (optional) + /// Specifies the organization ID to filter on (optional) + /// Specifies the organization name to filter on (optional) /// Specifies the mapping ID to filter on (optional) /// Specifies the bucket ID to filter on (optional) /// Specifies filtering on default (optional) /// Specifies the database to filter on (optional) /// Specifies the retention policy to filter on (optional) /// ApiResponse of DBRPs - public IRestResponse GetDBRPsWithIRestResponse (string orgID, string zapTraceSpan = null, string id = null, string bucketID = null, bool? _default = null, string db = null, string rp = null) + public IRestResponse GetDBRPsWithIRestResponse (string zapTraceSpan = null, string orgID = null, string org = null, string id = null, string bucketID = null, bool? _default = null, string db = null, string rp = null) { - // verify the required parameter 'orgID' is set - if (orgID == null) - throw new ApiException(400, "Missing required parameter 'orgID' when calling DBRPsService->GetDBRPs"); var localVarPath = "/api/v2/dbrps"; var localVarPathParams = new Dictionary(); @@ -932,6 +943,7 @@ public IRestResponse GetDBRPsWithIRestResponse (string orgID, string zapTraceSpa String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); if (orgID != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "orgID", orgID)); // query parameter + if (org != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "org", org)); // query parameter if (id != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "id", id)); // query parameter if (bucketID != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "bucketID", bucketID)); // query parameter if (_default != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "default", _default)); // query parameter @@ -969,19 +981,17 @@ public IRestResponse GetDBRPsWithIRestResponse (string orgID, string zapTraceSpa /// List all database retention policy mappings /// /// Thrown when fails to make API call - /// Specifies the organization ID to filter on /// OpenTracing span context (optional) + /// Specifies the organization ID to filter on (optional) + /// Specifies the organization name to filter on (optional) /// Specifies the mapping ID to filter on (optional) /// Specifies the bucket ID to filter on (optional) /// Specifies filtering on default (optional) /// Specifies the database to filter on (optional) /// Specifies the retention policy to filter on (optional) /// ApiResponse of DBRPs - public RestRequest GetDBRPsWithRestRequest (string orgID, string zapTraceSpan = null, string id = null, string bucketID = null, bool? _default = null, string db = null, string rp = null) + public RestRequest GetDBRPsWithRestRequest (string zapTraceSpan = null, string orgID = null, string org = null, string id = null, string bucketID = null, bool? _default = null, string db = null, string rp = null) { - // verify the required parameter 'orgID' is set - if (orgID == null) - throw new ApiException(400, "Missing required parameter 'orgID' when calling DBRPsService->GetDBRPs"); var localVarPath = "/api/v2/dbrps"; var localVarPathParams = new Dictionary(); @@ -997,6 +1007,7 @@ public RestRequest GetDBRPsWithRestRequest (string orgID, string zapTraceSpan = String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); if (orgID != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "orgID", orgID)); // query parameter + if (org != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "org", org)); // query parameter if (id != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "id", id)); // query parameter if (bucketID != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "bucketID", bucketID)); // query parameter if (_default != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "default", _default)); // query parameter @@ -1023,8 +1034,9 @@ public RestRequest GetDBRPsWithRestRequest (string orgID, string zapTraceSpan = /// List all database retention policy mappings /// /// Thrown when fails to make API call - /// Specifies the organization ID to filter on /// OpenTracing span context (optional) + /// Specifies the organization ID to filter on (optional) + /// Specifies the organization name to filter on (optional) /// Specifies the mapping ID to filter on (optional) /// Specifies the bucket ID to filter on (optional) /// Specifies filtering on default (optional) @@ -1032,9 +1044,9 @@ public RestRequest GetDBRPsWithRestRequest (string orgID, string zapTraceSpan = /// Specifies the retention policy to filter on (optional) /// Cancellation token /// Task of DBRPs - public async System.Threading.Tasks.Task GetDBRPsAsync (string orgID, string zapTraceSpan = null, string id = null, string bucketID = null, bool? _default = null, string db = null, string rp = null, CancellationToken cancellationToken = default) + public async System.Threading.Tasks.Task GetDBRPsAsync (string zapTraceSpan = null, string orgID = null, string org = null, string id = null, string bucketID = null, bool? _default = null, string db = null, string rp = null, CancellationToken cancellationToken = default) { - ApiResponse localVarResponse = await GetDBRPsAsyncWithHttpInfo(orgID, zapTraceSpan, id, bucketID, _default, db, rp, cancellationToken).ConfigureAwait(false); + ApiResponse localVarResponse = await GetDBRPsAsyncWithHttpInfo(zapTraceSpan, orgID, org, id, bucketID, _default, db, rp, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; } @@ -1043,8 +1055,9 @@ public async System.Threading.Tasks.Task GetDBRPsAsync (string orgID, str /// List all database retention policy mappings /// /// Thrown when fails to make API call - /// Specifies the organization ID to filter on /// OpenTracing span context (optional) + /// Specifies the organization ID to filter on (optional) + /// Specifies the organization name to filter on (optional) /// Specifies the mapping ID to filter on (optional) /// Specifies the bucket ID to filter on (optional) /// Specifies filtering on default (optional) @@ -1052,10 +1065,10 @@ public async System.Threading.Tasks.Task GetDBRPsAsync (string orgID, str /// Specifies the retention policy to filter on (optional) /// Cancellation token /// Task of ApiResponse (DBRPs) - public async System.Threading.Tasks.Task> GetDBRPsAsyncWithHttpInfo (string orgID, string zapTraceSpan = null, string id = null, string bucketID = null, bool? _default = null, string db = null, string rp = null, CancellationToken cancellationToken = default) + public async System.Threading.Tasks.Task> GetDBRPsAsyncWithHttpInfo (string zapTraceSpan = null, string orgID = null, string org = null, string id = null, string bucketID = null, bool? _default = null, string db = null, string rp = null, CancellationToken cancellationToken = default) { // make the HTTP request - IRestResponse localVarResponse = await GetDBRPsAsyncWithIRestResponse(orgID, zapTraceSpan, id, bucketID, _default, db, rp, cancellationToken).ConfigureAwait(false); + IRestResponse localVarResponse = await GetDBRPsAsyncWithIRestResponse(zapTraceSpan, orgID, org, id, bucketID, _default, db, rp, cancellationToken).ConfigureAwait(false); int localVarStatusCode = (int) localVarResponse.StatusCode; @@ -1074,8 +1087,9 @@ public async System.Threading.Tasks.Task> GetDBRPsAsyncWithHt /// List all database retention policy mappings /// /// Thrown when fails to make API call - /// Specifies the organization ID to filter on /// OpenTracing span context (optional) + /// Specifies the organization ID to filter on (optional) + /// Specifies the organization name to filter on (optional) /// Specifies the mapping ID to filter on (optional) /// Specifies the bucket ID to filter on (optional) /// Specifies filtering on default (optional) @@ -1083,11 +1097,8 @@ public async System.Threading.Tasks.Task> GetDBRPsAsyncWithHt /// Specifies the retention policy to filter on (optional) /// Cancellation token /// Task of IRestResponse (DBRPs) - public async System.Threading.Tasks.Task GetDBRPsAsyncWithIRestResponse (string orgID, string zapTraceSpan = null, string id = null, string bucketID = null, bool? _default = null, string db = null, string rp = null, CancellationToken cancellationToken = default) + public async System.Threading.Tasks.Task GetDBRPsAsyncWithIRestResponse (string zapTraceSpan = null, string orgID = null, string org = null, string id = null, string bucketID = null, bool? _default = null, string db = null, string rp = null, CancellationToken cancellationToken = default) { - // verify the required parameter 'orgID' is set - if (orgID == null) - throw new ApiException(400, "Missing required parameter 'orgID' when calling DBRPsService->GetDBRPs"); var localVarPath = "/api/v2/dbrps"; var localVarPathParams = new Dictionary(); @@ -1103,6 +1114,7 @@ public async System.Threading.Tasks.Task GetDBRPsAsyncWithIRestRe String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); if (orgID != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "orgID", orgID)); // query parameter + if (org != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "org", org)); // query parameter if (id != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "id", id)); // query parameter if (bucketID != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "bucketID", bucketID)); // query parameter if (_default != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "default", _default)); // query parameter @@ -1138,13 +1150,14 @@ public async System.Threading.Tasks.Task GetDBRPsAsyncWithIRestRe /// Retrieve a database retention policy mapping /// /// Thrown when fails to make API call - /// Specifies the organization ID of the mapping /// The database retention policy mapping ID /// OpenTracing span context (optional) - /// DBRP - public DBRP GetDBRPsID (string orgID, string dbrpID, string zapTraceSpan = null) + /// Specifies the organization ID of the mapping (optional) + /// Specifies the organization name of the mapping (optional) + /// DBRPGet + public DBRPGet GetDBRPsID (string dbrpID, string zapTraceSpan = null, string orgID = null, string org = null) { - ApiResponse localVarResponse = GetDBRPsIDWithHttpInfo(orgID, dbrpID, zapTraceSpan); + ApiResponse localVarResponse = GetDBRPsIDWithHttpInfo(dbrpID, zapTraceSpan, orgID, org); return localVarResponse.Data; } @@ -1152,15 +1165,13 @@ public DBRP GetDBRPsID (string orgID, string dbrpID, string zapTraceSpan = null) /// Retrieve a database retention policy mapping /// /// Thrown when fails to make API call - /// Specifies the organization ID of the mapping /// The database retention policy mapping ID /// OpenTracing span context (optional) - /// ApiResponse of DBRP - public ApiResponse< DBRP > GetDBRPsIDWithHttpInfo (string orgID, string dbrpID, string zapTraceSpan = null) + /// Specifies the organization ID of the mapping (optional) + /// Specifies the organization name of the mapping (optional) + /// ApiResponse of DBRPGet + public ApiResponse< DBRPGet > GetDBRPsIDWithHttpInfo (string dbrpID, string zapTraceSpan = null, string orgID = null, string org = null) { - // verify the required parameter 'orgID' is set - if (orgID == null) - throw new ApiException(400, "Missing required parameter 'orgID' when calling DBRPsService->GetDBRPsID"); // verify the required parameter 'dbrpID' is set if (dbrpID == null) throw new ApiException(400, "Missing required parameter 'dbrpID' when calling DBRPsService->GetDBRPsID"); @@ -1180,6 +1191,7 @@ public ApiResponse< DBRP > GetDBRPsIDWithHttpInfo (string orgID, string dbrpID, if (dbrpID != null) localVarPathParams.Add("dbrpID", this.Configuration.ApiClient.ParameterToString(dbrpID)); // path parameter if (orgID != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "orgID", orgID)); // query parameter + if (org != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "org", org)); // query parameter if (zapTraceSpan != null) localVarHeaderParams.Add("Zap-Trace-Span", this.Configuration.ApiClient.ParameterToString(zapTraceSpan)); // header parameter // to determine the Accept header @@ -1205,25 +1217,23 @@ public ApiResponse< DBRP > GetDBRPsIDWithHttpInfo (string orgID, string dbrpID, if (exception != null) throw exception; } - return new ApiResponse(localVarStatusCode, + return new ApiResponse(localVarStatusCode, localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (DBRP) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(DBRP))); + (DBRPGet) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(DBRPGet))); } /// /// Retrieve a database retention policy mapping /// /// Thrown when fails to make API call - /// Specifies the organization ID of the mapping /// The database retention policy mapping ID /// OpenTracing span context (optional) + /// Specifies the organization ID of the mapping (optional) + /// Specifies the organization name of the mapping (optional) /// Cancellation token - /// ApiResponse of DBRP - public async System.Threading.Tasks.Task GetDBRPsIDWithIRestResponseAsync (string orgID, string dbrpID, string zapTraceSpan = null, CancellationToken cancellationToken = default) + /// ApiResponse of DBRPGet + public async System.Threading.Tasks.Task GetDBRPsIDWithIRestResponseAsync (string dbrpID, string zapTraceSpan = null, string orgID = null, string org = null, CancellationToken cancellationToken = default) { - // verify the required parameter 'orgID' is set - if (orgID == null) - throw new ApiException(400, "Missing required parameter 'orgID' when calling DBRPsService->GetDBRPsID"); // verify the required parameter 'dbrpID' is set if (dbrpID == null) throw new ApiException(400, "Missing required parameter 'dbrpID' when calling DBRPsService->GetDBRPsID"); @@ -1243,6 +1253,7 @@ public async System.Threading.Tasks.Task GetDBRPsIDWithIRestRespo if (dbrpID != null) localVarPathParams.Add("dbrpID", this.Configuration.ApiClient.ParameterToString(dbrpID)); // path parameter if (orgID != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "orgID", orgID)); // query parameter + if (org != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "org", org)); // query parameter if (zapTraceSpan != null) localVarHeaderParams.Add("Zap-Trace-Span", this.Configuration.ApiClient.ParameterToString(zapTraceSpan)); // header parameter // to determine the Accept header @@ -1275,15 +1286,13 @@ public async System.Threading.Tasks.Task GetDBRPsIDWithIRestRespo /// Retrieve a database retention policy mapping /// /// Thrown when fails to make API call - /// Specifies the organization ID of the mapping /// The database retention policy mapping ID /// OpenTracing span context (optional) - /// ApiResponse of DBRP - public IRestResponse GetDBRPsIDWithIRestResponse (string orgID, string dbrpID, string zapTraceSpan = null) + /// Specifies the organization ID of the mapping (optional) + /// Specifies the organization name of the mapping (optional) + /// ApiResponse of DBRPGet + public IRestResponse GetDBRPsIDWithIRestResponse (string dbrpID, string zapTraceSpan = null, string orgID = null, string org = null) { - // verify the required parameter 'orgID' is set - if (orgID == null) - throw new ApiException(400, "Missing required parameter 'orgID' when calling DBRPsService->GetDBRPsID"); // verify the required parameter 'dbrpID' is set if (dbrpID == null) throw new ApiException(400, "Missing required parameter 'dbrpID' when calling DBRPsService->GetDBRPsID"); @@ -1303,6 +1312,7 @@ public IRestResponse GetDBRPsIDWithIRestResponse (string orgID, string dbrpID, s if (dbrpID != null) localVarPathParams.Add("dbrpID", this.Configuration.ApiClient.ParameterToString(dbrpID)); // path parameter if (orgID != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "orgID", orgID)); // query parameter + if (org != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "org", org)); // query parameter if (zapTraceSpan != null) localVarHeaderParams.Add("Zap-Trace-Span", this.Configuration.ApiClient.ParameterToString(zapTraceSpan)); // header parameter // to determine the Accept header @@ -1335,15 +1345,13 @@ public IRestResponse GetDBRPsIDWithIRestResponse (string orgID, string dbrpID, s /// Retrieve a database retention policy mapping /// /// Thrown when fails to make API call - /// Specifies the organization ID of the mapping /// The database retention policy mapping ID /// OpenTracing span context (optional) - /// ApiResponse of DBRP - public RestRequest GetDBRPsIDWithRestRequest (string orgID, string dbrpID, string zapTraceSpan = null) + /// Specifies the organization ID of the mapping (optional) + /// Specifies the organization name of the mapping (optional) + /// ApiResponse of DBRPGet + public RestRequest GetDBRPsIDWithRestRequest (string dbrpID, string zapTraceSpan = null, string orgID = null, string org = null) { - // verify the required parameter 'orgID' is set - if (orgID == null) - throw new ApiException(400, "Missing required parameter 'orgID' when calling DBRPsService->GetDBRPsID"); // verify the required parameter 'dbrpID' is set if (dbrpID == null) throw new ApiException(400, "Missing required parameter 'dbrpID' when calling DBRPsService->GetDBRPsID"); @@ -1363,6 +1371,7 @@ public RestRequest GetDBRPsIDWithRestRequest (string orgID, string dbrpID, strin if (dbrpID != null) localVarPathParams.Add("dbrpID", this.Configuration.ApiClient.ParameterToString(dbrpID)); // path parameter if (orgID != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "orgID", orgID)); // query parameter + if (org != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "org", org)); // query parameter if (zapTraceSpan != null) localVarHeaderParams.Add("Zap-Trace-Span", this.Configuration.ApiClient.ParameterToString(zapTraceSpan)); // header parameter // to determine the Accept header @@ -1384,14 +1393,15 @@ public RestRequest GetDBRPsIDWithRestRequest (string orgID, string dbrpID, strin /// Retrieve a database retention policy mapping /// /// Thrown when fails to make API call - /// Specifies the organization ID of the mapping /// The database retention policy mapping ID /// OpenTracing span context (optional) + /// Specifies the organization ID of the mapping (optional) + /// Specifies the organization name of the mapping (optional) /// Cancellation token - /// Task of DBRP - public async System.Threading.Tasks.Task GetDBRPsIDAsync (string orgID, string dbrpID, string zapTraceSpan = null, CancellationToken cancellationToken = default) + /// Task of DBRPGet + public async System.Threading.Tasks.Task GetDBRPsIDAsync (string dbrpID, string zapTraceSpan = null, string orgID = null, string org = null, CancellationToken cancellationToken = default) { - ApiResponse localVarResponse = await GetDBRPsIDAsyncWithHttpInfo(orgID, dbrpID, zapTraceSpan, cancellationToken).ConfigureAwait(false); + ApiResponse localVarResponse = await GetDBRPsIDAsyncWithHttpInfo(dbrpID, zapTraceSpan, orgID, org, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; } @@ -1400,15 +1410,16 @@ public async System.Threading.Tasks.Task GetDBRPsIDAsync (string orgID, st /// Retrieve a database retention policy mapping /// /// Thrown when fails to make API call - /// Specifies the organization ID of the mapping /// The database retention policy mapping ID /// OpenTracing span context (optional) + /// Specifies the organization ID of the mapping (optional) + /// Specifies the organization name of the mapping (optional) /// Cancellation token - /// Task of ApiResponse (DBRP) - public async System.Threading.Tasks.Task> GetDBRPsIDAsyncWithHttpInfo (string orgID, string dbrpID, string zapTraceSpan = null, CancellationToken cancellationToken = default) + /// Task of ApiResponse (DBRPGet) + public async System.Threading.Tasks.Task> GetDBRPsIDAsyncWithHttpInfo (string dbrpID, string zapTraceSpan = null, string orgID = null, string org = null, CancellationToken cancellationToken = default) { // make the HTTP request - IRestResponse localVarResponse = await GetDBRPsIDAsyncWithIRestResponse(orgID, dbrpID, zapTraceSpan, cancellationToken).ConfigureAwait(false); + IRestResponse localVarResponse = await GetDBRPsIDAsyncWithIRestResponse(dbrpID, zapTraceSpan, orgID, org, cancellationToken).ConfigureAwait(false); int localVarStatusCode = (int) localVarResponse.StatusCode; @@ -1418,25 +1429,23 @@ public async System.Threading.Tasks.Task> GetDBRPsIDAsyncWithH if (exception != null) throw exception; } - return new ApiResponse(localVarStatusCode, + return new ApiResponse(localVarStatusCode, localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (DBRP) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(DBRP))); + (DBRPGet) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(DBRPGet))); } /// /// Retrieve a database retention policy mapping /// /// Thrown when fails to make API call - /// Specifies the organization ID of the mapping /// The database retention policy mapping ID /// OpenTracing span context (optional) + /// Specifies the organization ID of the mapping (optional) + /// Specifies the organization name of the mapping (optional) /// Cancellation token - /// Task of IRestResponse (DBRP) - public async System.Threading.Tasks.Task GetDBRPsIDAsyncWithIRestResponse (string orgID, string dbrpID, string zapTraceSpan = null, CancellationToken cancellationToken = default) + /// Task of IRestResponse (DBRPGet) + public async System.Threading.Tasks.Task GetDBRPsIDAsyncWithIRestResponse (string dbrpID, string zapTraceSpan = null, string orgID = null, string org = null, CancellationToken cancellationToken = default) { - // verify the required parameter 'orgID' is set - if (orgID == null) - throw new ApiException(400, "Missing required parameter 'orgID' when calling DBRPsService->GetDBRPsID"); // verify the required parameter 'dbrpID' is set if (dbrpID == null) throw new ApiException(400, "Missing required parameter 'dbrpID' when calling DBRPsService->GetDBRPsID"); @@ -1456,6 +1465,7 @@ public async System.Threading.Tasks.Task GetDBRPsIDAsyncWithIRest if (dbrpID != null) localVarPathParams.Add("dbrpID", this.Configuration.ApiClient.ParameterToString(dbrpID)); // path parameter if (orgID != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "orgID", orgID)); // query parameter + if (org != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "org", org)); // query parameter if (zapTraceSpan != null) localVarHeaderParams.Add("Zap-Trace-Span", this.Configuration.ApiClient.ParameterToString(zapTraceSpan)); // header parameter // to determine the Accept header @@ -1486,14 +1496,15 @@ public async System.Threading.Tasks.Task GetDBRPsIDAsyncWithIRest /// Update a database retention policy mapping /// /// Thrown when fails to make API call - /// Specifies the organization ID of the mapping /// The database retention policy mapping. /// Database retention policy update to apply /// OpenTracing span context (optional) - /// DBRP - public DBRP PatchDBRPID (string orgID, string dbrpID, DBRPUpdate dBRPUpdate, string zapTraceSpan = null) + /// Specifies the organization ID of the mapping (optional) + /// Specifies the organization name of the mapping (optional) + /// DBRPGet + public DBRPGet PatchDBRPID (string dbrpID, DBRPUpdate dBRPUpdate, string zapTraceSpan = null, string orgID = null, string org = null) { - ApiResponse localVarResponse = PatchDBRPIDWithHttpInfo(orgID, dbrpID, dBRPUpdate, zapTraceSpan); + ApiResponse localVarResponse = PatchDBRPIDWithHttpInfo(dbrpID, dBRPUpdate, zapTraceSpan, orgID, org); return localVarResponse.Data; } @@ -1501,16 +1512,14 @@ public DBRP PatchDBRPID (string orgID, string dbrpID, DBRPUpdate dBRPUpdate, str /// Update a database retention policy mapping /// /// Thrown when fails to make API call - /// Specifies the organization ID of the mapping /// The database retention policy mapping. /// Database retention policy update to apply /// OpenTracing span context (optional) - /// ApiResponse of DBRP - public ApiResponse< DBRP > PatchDBRPIDWithHttpInfo (string orgID, string dbrpID, DBRPUpdate dBRPUpdate, string zapTraceSpan = null) + /// Specifies the organization ID of the mapping (optional) + /// Specifies the organization name of the mapping (optional) + /// ApiResponse of DBRPGet + public ApiResponse< DBRPGet > PatchDBRPIDWithHttpInfo (string dbrpID, DBRPUpdate dBRPUpdate, string zapTraceSpan = null, string orgID = null, string org = null) { - // verify the required parameter 'orgID' is set - if (orgID == null) - throw new ApiException(400, "Missing required parameter 'orgID' when calling DBRPsService->PatchDBRPID"); // verify the required parameter 'dbrpID' is set if (dbrpID == null) throw new ApiException(400, "Missing required parameter 'dbrpID' when calling DBRPsService->PatchDBRPID"); @@ -1534,6 +1543,7 @@ public ApiResponse< DBRP > PatchDBRPIDWithHttpInfo (string orgID, string dbrpID, if (dbrpID != null) localVarPathParams.Add("dbrpID", this.Configuration.ApiClient.ParameterToString(dbrpID)); // path parameter if (orgID != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "orgID", orgID)); // query parameter + if (org != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "org", org)); // query parameter if (zapTraceSpan != null) localVarHeaderParams.Add("Zap-Trace-Span", this.Configuration.ApiClient.ParameterToString(zapTraceSpan)); // header parameter if (dBRPUpdate != null && dBRPUpdate.GetType() != typeof(byte[])) { @@ -1567,26 +1577,24 @@ public ApiResponse< DBRP > PatchDBRPIDWithHttpInfo (string orgID, string dbrpID, if (exception != null) throw exception; } - return new ApiResponse(localVarStatusCode, + return new ApiResponse(localVarStatusCode, localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (DBRP) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(DBRP))); + (DBRPGet) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(DBRPGet))); } /// /// Update a database retention policy mapping /// /// Thrown when fails to make API call - /// Specifies the organization ID of the mapping /// The database retention policy mapping. /// Database retention policy update to apply /// OpenTracing span context (optional) + /// Specifies the organization ID of the mapping (optional) + /// Specifies the organization name of the mapping (optional) /// Cancellation token - /// ApiResponse of DBRP - public async System.Threading.Tasks.Task PatchDBRPIDWithIRestResponseAsync (string orgID, string dbrpID, DBRPUpdate dBRPUpdate, string zapTraceSpan = null, CancellationToken cancellationToken = default) + /// ApiResponse of DBRPGet + public async System.Threading.Tasks.Task PatchDBRPIDWithIRestResponseAsync (string dbrpID, DBRPUpdate dBRPUpdate, string zapTraceSpan = null, string orgID = null, string org = null, CancellationToken cancellationToken = default) { - // verify the required parameter 'orgID' is set - if (orgID == null) - throw new ApiException(400, "Missing required parameter 'orgID' when calling DBRPsService->PatchDBRPID"); // verify the required parameter 'dbrpID' is set if (dbrpID == null) throw new ApiException(400, "Missing required parameter 'dbrpID' when calling DBRPsService->PatchDBRPID"); @@ -1610,6 +1618,7 @@ public async System.Threading.Tasks.Task PatchDBRPIDWithIRestResp if (dbrpID != null) localVarPathParams.Add("dbrpID", this.Configuration.ApiClient.ParameterToString(dbrpID)); // path parameter if (orgID != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "orgID", orgID)); // query parameter + if (org != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "org", org)); // query parameter if (zapTraceSpan != null) localVarHeaderParams.Add("Zap-Trace-Span", this.Configuration.ApiClient.ParameterToString(zapTraceSpan)); // header parameter if (dBRPUpdate != null && dBRPUpdate.GetType() != typeof(byte[])) { @@ -1650,16 +1659,14 @@ public async System.Threading.Tasks.Task PatchDBRPIDWithIRestResp /// Update a database retention policy mapping /// /// Thrown when fails to make API call - /// Specifies the organization ID of the mapping /// The database retention policy mapping. /// Database retention policy update to apply /// OpenTracing span context (optional) - /// ApiResponse of DBRP - public IRestResponse PatchDBRPIDWithIRestResponse (string orgID, string dbrpID, DBRPUpdate dBRPUpdate, string zapTraceSpan = null) + /// Specifies the organization ID of the mapping (optional) + /// Specifies the organization name of the mapping (optional) + /// ApiResponse of DBRPGet + public IRestResponse PatchDBRPIDWithIRestResponse (string dbrpID, DBRPUpdate dBRPUpdate, string zapTraceSpan = null, string orgID = null, string org = null) { - // verify the required parameter 'orgID' is set - if (orgID == null) - throw new ApiException(400, "Missing required parameter 'orgID' when calling DBRPsService->PatchDBRPID"); // verify the required parameter 'dbrpID' is set if (dbrpID == null) throw new ApiException(400, "Missing required parameter 'dbrpID' when calling DBRPsService->PatchDBRPID"); @@ -1683,6 +1690,7 @@ public IRestResponse PatchDBRPIDWithIRestResponse (string orgID, string dbrpID, if (dbrpID != null) localVarPathParams.Add("dbrpID", this.Configuration.ApiClient.ParameterToString(dbrpID)); // path parameter if (orgID != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "orgID", orgID)); // query parameter + if (org != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "org", org)); // query parameter if (zapTraceSpan != null) localVarHeaderParams.Add("Zap-Trace-Span", this.Configuration.ApiClient.ParameterToString(zapTraceSpan)); // header parameter if (dBRPUpdate != null && dBRPUpdate.GetType() != typeof(byte[])) { @@ -1723,16 +1731,14 @@ public IRestResponse PatchDBRPIDWithIRestResponse (string orgID, string dbrpID, /// Update a database retention policy mapping /// /// Thrown when fails to make API call - /// Specifies the organization ID of the mapping /// The database retention policy mapping. /// Database retention policy update to apply /// OpenTracing span context (optional) - /// ApiResponse of DBRP - public RestRequest PatchDBRPIDWithRestRequest (string orgID, string dbrpID, DBRPUpdate dBRPUpdate, string zapTraceSpan = null) + /// Specifies the organization ID of the mapping (optional) + /// Specifies the organization name of the mapping (optional) + /// ApiResponse of DBRPGet + public RestRequest PatchDBRPIDWithRestRequest (string dbrpID, DBRPUpdate dBRPUpdate, string zapTraceSpan = null, string orgID = null, string org = null) { - // verify the required parameter 'orgID' is set - if (orgID == null) - throw new ApiException(400, "Missing required parameter 'orgID' when calling DBRPsService->PatchDBRPID"); // verify the required parameter 'dbrpID' is set if (dbrpID == null) throw new ApiException(400, "Missing required parameter 'dbrpID' when calling DBRPsService->PatchDBRPID"); @@ -1756,6 +1762,7 @@ public RestRequest PatchDBRPIDWithRestRequest (string orgID, string dbrpID, DBRP if (dbrpID != null) localVarPathParams.Add("dbrpID", this.Configuration.ApiClient.ParameterToString(dbrpID)); // path parameter if (orgID != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "orgID", orgID)); // query parameter + if (org != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "org", org)); // query parameter if (zapTraceSpan != null) localVarHeaderParams.Add("Zap-Trace-Span", this.Configuration.ApiClient.ParameterToString(zapTraceSpan)); // header parameter if (dBRPUpdate != null && dBRPUpdate.GetType() != typeof(byte[])) { @@ -1785,15 +1792,16 @@ public RestRequest PatchDBRPIDWithRestRequest (string orgID, string dbrpID, DBRP /// Update a database retention policy mapping /// /// Thrown when fails to make API call - /// Specifies the organization ID of the mapping /// The database retention policy mapping. /// Database retention policy update to apply /// OpenTracing span context (optional) + /// Specifies the organization ID of the mapping (optional) + /// Specifies the organization name of the mapping (optional) /// Cancellation token - /// Task of DBRP - public async System.Threading.Tasks.Task PatchDBRPIDAsync (string orgID, string dbrpID, DBRPUpdate dBRPUpdate, string zapTraceSpan = null, CancellationToken cancellationToken = default) + /// Task of DBRPGet + public async System.Threading.Tasks.Task PatchDBRPIDAsync (string dbrpID, DBRPUpdate dBRPUpdate, string zapTraceSpan = null, string orgID = null, string org = null, CancellationToken cancellationToken = default) { - ApiResponse localVarResponse = await PatchDBRPIDAsyncWithHttpInfo(orgID, dbrpID, dBRPUpdate, zapTraceSpan, cancellationToken).ConfigureAwait(false); + ApiResponse localVarResponse = await PatchDBRPIDAsyncWithHttpInfo(dbrpID, dBRPUpdate, zapTraceSpan, orgID, org, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; } @@ -1802,16 +1810,17 @@ public async System.Threading.Tasks.Task PatchDBRPIDAsync (string orgID, s /// Update a database retention policy mapping /// /// Thrown when fails to make API call - /// Specifies the organization ID of the mapping /// The database retention policy mapping. /// Database retention policy update to apply /// OpenTracing span context (optional) + /// Specifies the organization ID of the mapping (optional) + /// Specifies the organization name of the mapping (optional) /// Cancellation token - /// Task of ApiResponse (DBRP) - public async System.Threading.Tasks.Task> PatchDBRPIDAsyncWithHttpInfo (string orgID, string dbrpID, DBRPUpdate dBRPUpdate, string zapTraceSpan = null, CancellationToken cancellationToken = default) + /// Task of ApiResponse (DBRPGet) + public async System.Threading.Tasks.Task> PatchDBRPIDAsyncWithHttpInfo (string dbrpID, DBRPUpdate dBRPUpdate, string zapTraceSpan = null, string orgID = null, string org = null, CancellationToken cancellationToken = default) { // make the HTTP request - IRestResponse localVarResponse = await PatchDBRPIDAsyncWithIRestResponse(orgID, dbrpID, dBRPUpdate, zapTraceSpan, cancellationToken).ConfigureAwait(false); + IRestResponse localVarResponse = await PatchDBRPIDAsyncWithIRestResponse(dbrpID, dBRPUpdate, zapTraceSpan, orgID, org, cancellationToken).ConfigureAwait(false); int localVarStatusCode = (int) localVarResponse.StatusCode; @@ -1821,26 +1830,24 @@ public async System.Threading.Tasks.Task> PatchDBRPIDAsyncWith if (exception != null) throw exception; } - return new ApiResponse(localVarStatusCode, + return new ApiResponse(localVarStatusCode, localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (DBRP) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(DBRP))); + (DBRPGet) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(DBRPGet))); } /// /// Update a database retention policy mapping /// /// Thrown when fails to make API call - /// Specifies the organization ID of the mapping /// The database retention policy mapping. /// Database retention policy update to apply /// OpenTracing span context (optional) + /// Specifies the organization ID of the mapping (optional) + /// Specifies the organization name of the mapping (optional) /// Cancellation token - /// Task of IRestResponse (DBRP) - public async System.Threading.Tasks.Task PatchDBRPIDAsyncWithIRestResponse (string orgID, string dbrpID, DBRPUpdate dBRPUpdate, string zapTraceSpan = null, CancellationToken cancellationToken = default) + /// Task of IRestResponse (DBRPGet) + public async System.Threading.Tasks.Task PatchDBRPIDAsyncWithIRestResponse (string dbrpID, DBRPUpdate dBRPUpdate, string zapTraceSpan = null, string orgID = null, string org = null, CancellationToken cancellationToken = default) { - // verify the required parameter 'orgID' is set - if (orgID == null) - throw new ApiException(400, "Missing required parameter 'orgID' when calling DBRPsService->PatchDBRPID"); // verify the required parameter 'dbrpID' is set if (dbrpID == null) throw new ApiException(400, "Missing required parameter 'dbrpID' when calling DBRPsService->PatchDBRPID"); @@ -1864,6 +1871,7 @@ public async System.Threading.Tasks.Task PatchDBRPIDAsyncWithIRes if (dbrpID != null) localVarPathParams.Add("dbrpID", this.Configuration.ApiClient.ParameterToString(dbrpID)); // path parameter if (orgID != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "orgID", orgID)); // query parameter + if (org != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "org", org)); // query parameter if (zapTraceSpan != null) localVarHeaderParams.Add("Zap-Trace-Span", this.Configuration.ApiClient.ParameterToString(zapTraceSpan)); // header parameter if (dBRPUpdate != null && dBRPUpdate.GetType() != typeof(byte[])) { @@ -1902,12 +1910,12 @@ public async System.Threading.Tasks.Task PatchDBRPIDAsyncWithIRes /// Add a database retention policy mapping /// /// Thrown when fails to make API call - /// The database retention policy mapping to add + /// The database retention policy mapping to add /// OpenTracing span context (optional) /// DBRP - public DBRP PostDBRP (DBRP DBRP, string zapTraceSpan = null) + public DBRP PostDBRP (DBRPCreate dBRPCreate, string zapTraceSpan = null) { - ApiResponse localVarResponse = PostDBRPWithHttpInfo(DBRP, zapTraceSpan); + ApiResponse localVarResponse = PostDBRPWithHttpInfo(dBRPCreate, zapTraceSpan); return localVarResponse.Data; } @@ -1915,14 +1923,14 @@ public DBRP PostDBRP (DBRP DBRP, string zapTraceSpan = null) /// Add a database retention policy mapping /// /// Thrown when fails to make API call - /// The database retention policy mapping to add + /// The database retention policy mapping to add /// OpenTracing span context (optional) /// ApiResponse of DBRP - public ApiResponse< DBRP > PostDBRPWithHttpInfo (DBRP DBRP, string zapTraceSpan = null) + public ApiResponse< DBRP > PostDBRPWithHttpInfo (DBRPCreate dBRPCreate, string zapTraceSpan = null) { - // verify the required parameter 'DBRP' is set - if (DBRP == null) - throw new ApiException(400, "Missing required parameter 'DBRP' when calling DBRPsService->PostDBRP"); + // verify the required parameter 'dBRPCreate' is set + if (dBRPCreate == null) + throw new ApiException(400, "Missing required parameter 'dBRPCreate' when calling DBRPsService->PostDBRP"); var localVarPath = "/api/v2/dbrps"; var localVarPathParams = new Dictionary(); @@ -1939,13 +1947,13 @@ public ApiResponse< DBRP > PostDBRPWithHttpInfo (DBRP DBRP, string zapTraceSpan String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); if (zapTraceSpan != null) localVarHeaderParams.Add("Zap-Trace-Span", this.Configuration.ApiClient.ParameterToString(zapTraceSpan)); // header parameter - if (DBRP != null && DBRP.GetType() != typeof(byte[])) + if (dBRPCreate != null && dBRPCreate.GetType() != typeof(byte[])) { - localVarPostBody = this.Configuration.ApiClient.Serialize(DBRP); // http body (model) parameter + localVarPostBody = this.Configuration.ApiClient.Serialize(dBRPCreate); // http body (model) parameter } else { - localVarPostBody = DBRP; // byte array + localVarPostBody = dBRPCreate; // byte array } // to determine the Accept header @@ -1980,15 +1988,15 @@ public ApiResponse< DBRP > PostDBRPWithHttpInfo (DBRP DBRP, string zapTraceSpan /// Add a database retention policy mapping /// /// Thrown when fails to make API call - /// The database retention policy mapping to add + /// The database retention policy mapping to add /// OpenTracing span context (optional) /// Cancellation token /// ApiResponse of DBRP - public async System.Threading.Tasks.Task PostDBRPWithIRestResponseAsync (DBRP DBRP, string zapTraceSpan = null, CancellationToken cancellationToken = default) + public async System.Threading.Tasks.Task PostDBRPWithIRestResponseAsync (DBRPCreate dBRPCreate, string zapTraceSpan = null, CancellationToken cancellationToken = default) { - // verify the required parameter 'DBRP' is set - if (DBRP == null) - throw new ApiException(400, "Missing required parameter 'DBRP' when calling DBRPsService->PostDBRP"); + // verify the required parameter 'dBRPCreate' is set + if (dBRPCreate == null) + throw new ApiException(400, "Missing required parameter 'dBRPCreate' when calling DBRPsService->PostDBRP"); var localVarPath = "/api/v2/dbrps"; var localVarPathParams = new Dictionary(); @@ -2005,13 +2013,13 @@ public async System.Threading.Tasks.Task PostDBRPWithIRestRespons String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); if (zapTraceSpan != null) localVarHeaderParams.Add("Zap-Trace-Span", this.Configuration.ApiClient.ParameterToString(zapTraceSpan)); // header parameter - if (DBRP != null && DBRP.GetType() != typeof(byte[])) + if (dBRPCreate != null && dBRPCreate.GetType() != typeof(byte[])) { - localVarPostBody = this.Configuration.ApiClient.Serialize(DBRP); // http body (model) parameter + localVarPostBody = this.Configuration.ApiClient.Serialize(dBRPCreate); // http body (model) parameter } else { - localVarPostBody = DBRP; // byte array + localVarPostBody = dBRPCreate; // byte array } // to determine the Accept header @@ -2044,14 +2052,14 @@ public async System.Threading.Tasks.Task PostDBRPWithIRestRespons /// Add a database retention policy mapping /// /// Thrown when fails to make API call - /// The database retention policy mapping to add + /// The database retention policy mapping to add /// OpenTracing span context (optional) /// ApiResponse of DBRP - public IRestResponse PostDBRPWithIRestResponse (DBRP DBRP, string zapTraceSpan = null) + public IRestResponse PostDBRPWithIRestResponse (DBRPCreate dBRPCreate, string zapTraceSpan = null) { - // verify the required parameter 'DBRP' is set - if (DBRP == null) - throw new ApiException(400, "Missing required parameter 'DBRP' when calling DBRPsService->PostDBRP"); + // verify the required parameter 'dBRPCreate' is set + if (dBRPCreate == null) + throw new ApiException(400, "Missing required parameter 'dBRPCreate' when calling DBRPsService->PostDBRP"); var localVarPath = "/api/v2/dbrps"; var localVarPathParams = new Dictionary(); @@ -2068,13 +2076,13 @@ public IRestResponse PostDBRPWithIRestResponse (DBRP DBRP, string zapTraceSpan = String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); if (zapTraceSpan != null) localVarHeaderParams.Add("Zap-Trace-Span", this.Configuration.ApiClient.ParameterToString(zapTraceSpan)); // header parameter - if (DBRP != null && DBRP.GetType() != typeof(byte[])) + if (dBRPCreate != null && dBRPCreate.GetType() != typeof(byte[])) { - localVarPostBody = this.Configuration.ApiClient.Serialize(DBRP); // http body (model) parameter + localVarPostBody = this.Configuration.ApiClient.Serialize(dBRPCreate); // http body (model) parameter } else { - localVarPostBody = DBRP; // byte array + localVarPostBody = dBRPCreate; // byte array } // to determine the Accept header @@ -2107,14 +2115,14 @@ public IRestResponse PostDBRPWithIRestResponse (DBRP DBRP, string zapTraceSpan = /// Add a database retention policy mapping /// /// Thrown when fails to make API call - /// The database retention policy mapping to add + /// The database retention policy mapping to add /// OpenTracing span context (optional) /// ApiResponse of DBRP - public RestRequest PostDBRPWithRestRequest (DBRP DBRP, string zapTraceSpan = null) + public RestRequest PostDBRPWithRestRequest (DBRPCreate dBRPCreate, string zapTraceSpan = null) { - // verify the required parameter 'DBRP' is set - if (DBRP == null) - throw new ApiException(400, "Missing required parameter 'DBRP' when calling DBRPsService->PostDBRP"); + // verify the required parameter 'dBRPCreate' is set + if (dBRPCreate == null) + throw new ApiException(400, "Missing required parameter 'dBRPCreate' when calling DBRPsService->PostDBRP"); var localVarPath = "/api/v2/dbrps"; var localVarPathParams = new Dictionary(); @@ -2131,13 +2139,13 @@ public RestRequest PostDBRPWithRestRequest (DBRP DBRP, string zapTraceSpan = nul String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); if (zapTraceSpan != null) localVarHeaderParams.Add("Zap-Trace-Span", this.Configuration.ApiClient.ParameterToString(zapTraceSpan)); // header parameter - if (DBRP != null && DBRP.GetType() != typeof(byte[])) + if (dBRPCreate != null && dBRPCreate.GetType() != typeof(byte[])) { - localVarPostBody = this.Configuration.ApiClient.Serialize(DBRP); // http body (model) parameter + localVarPostBody = this.Configuration.ApiClient.Serialize(dBRPCreate); // http body (model) parameter } else { - localVarPostBody = DBRP; // byte array + localVarPostBody = dBRPCreate; // byte array } // to determine the Accept header @@ -2159,13 +2167,13 @@ public RestRequest PostDBRPWithRestRequest (DBRP DBRP, string zapTraceSpan = nul /// Add a database retention policy mapping /// /// Thrown when fails to make API call - /// The database retention policy mapping to add + /// The database retention policy mapping to add /// OpenTracing span context (optional) /// Cancellation token /// Task of DBRP - public async System.Threading.Tasks.Task PostDBRPAsync (DBRP DBRP, string zapTraceSpan = null, CancellationToken cancellationToken = default) + public async System.Threading.Tasks.Task PostDBRPAsync (DBRPCreate dBRPCreate, string zapTraceSpan = null, CancellationToken cancellationToken = default) { - ApiResponse localVarResponse = await PostDBRPAsyncWithHttpInfo(DBRP, zapTraceSpan, cancellationToken).ConfigureAwait(false); + ApiResponse localVarResponse = await PostDBRPAsyncWithHttpInfo(dBRPCreate, zapTraceSpan, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; } @@ -2174,14 +2182,14 @@ public async System.Threading.Tasks.Task PostDBRPAsync (DBRP DBRP, string /// Add a database retention policy mapping /// /// Thrown when fails to make API call - /// The database retention policy mapping to add + /// The database retention policy mapping to add /// OpenTracing span context (optional) /// Cancellation token /// Task of ApiResponse (DBRP) - public async System.Threading.Tasks.Task> PostDBRPAsyncWithHttpInfo (DBRP DBRP, string zapTraceSpan = null, CancellationToken cancellationToken = default) + public async System.Threading.Tasks.Task> PostDBRPAsyncWithHttpInfo (DBRPCreate dBRPCreate, string zapTraceSpan = null, CancellationToken cancellationToken = default) { // make the HTTP request - IRestResponse localVarResponse = await PostDBRPAsyncWithIRestResponse(DBRP, zapTraceSpan, cancellationToken).ConfigureAwait(false); + IRestResponse localVarResponse = await PostDBRPAsyncWithIRestResponse(dBRPCreate, zapTraceSpan, cancellationToken).ConfigureAwait(false); int localVarStatusCode = (int) localVarResponse.StatusCode; @@ -2200,15 +2208,15 @@ public async System.Threading.Tasks.Task> PostDBRPAsyncWithHtt /// Add a database retention policy mapping /// /// Thrown when fails to make API call - /// The database retention policy mapping to add + /// The database retention policy mapping to add /// OpenTracing span context (optional) /// Cancellation token /// Task of IRestResponse (DBRP) - public async System.Threading.Tasks.Task PostDBRPAsyncWithIRestResponse (DBRP DBRP, string zapTraceSpan = null, CancellationToken cancellationToken = default) + public async System.Threading.Tasks.Task PostDBRPAsyncWithIRestResponse (DBRPCreate dBRPCreate, string zapTraceSpan = null, CancellationToken cancellationToken = default) { - // verify the required parameter 'DBRP' is set - if (DBRP == null) - throw new ApiException(400, "Missing required parameter 'DBRP' when calling DBRPsService->PostDBRP"); + // verify the required parameter 'dBRPCreate' is set + if (dBRPCreate == null) + throw new ApiException(400, "Missing required parameter 'dBRPCreate' when calling DBRPsService->PostDBRP"); var localVarPath = "/api/v2/dbrps"; var localVarPathParams = new Dictionary(); @@ -2225,13 +2233,13 @@ public async System.Threading.Tasks.Task PostDBRPAsyncWithIRestRe String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); if (zapTraceSpan != null) localVarHeaderParams.Add("Zap-Trace-Span", this.Configuration.ApiClient.ParameterToString(zapTraceSpan)); // header parameter - if (DBRP != null && DBRP.GetType() != typeof(byte[])) + if (dBRPCreate != null && dBRPCreate.GetType() != typeof(byte[])) { - localVarPostBody = this.Configuration.ApiClient.Serialize(DBRP); // http body (model) parameter + localVarPostBody = this.Configuration.ApiClient.Serialize(dBRPCreate); // http body (model) parameter } else { - localVarPostBody = DBRP; // byte array + localVarPostBody = dBRPCreate; // byte array } // to determine the Accept header diff --git a/.codecov.yml b/codecov.yml similarity index 100% rename from .codecov.yml rename to codecov.yml