diff --git a/domains/.openapi-generator/FILES b/domains/.openapi-generator/FILES index c6c45f5..e2060c4 100644 --- a/domains/.openapi-generator/FILES +++ b/domains/.openapi-generator/FILES @@ -4,7 +4,9 @@ api/openapi.yaml appveyor.yml docs/CreateDomainRequest.md docs/DomainData.md +docs/DomainDataResponse.md docs/DomainEntity.md +docs/DomainEntityResponse.md docs/DomainLinks.md docs/DomainResponseWithResult.md docs/DomainResponseWithResults.md @@ -13,6 +15,8 @@ docs/PutDomainRequest.md docs/UpdateDomainRequest.md domains.sln git_push.sh +src/domains.Test/Model/DomainDataResponseTests.cs +src/domains.Test/Model/DomainEntityResponseTests.cs src/domains.Test/domains.Test.csproj src/domains/Api/DomainsApi.cs src/domains/Client/ApiClient.cs @@ -34,7 +38,9 @@ src/domains/Client/RetryConfiguration.cs src/domains/Model/AbstractOpenAPISchema.cs src/domains/Model/CreateDomainRequest.cs src/domains/Model/DomainData.cs +src/domains/Model/DomainDataResponse.cs src/domains/Model/DomainEntity.cs +src/domains/Model/DomainEntityResponse.cs src/domains/Model/DomainLinks.cs src/domains/Model/DomainResponseWithResult.cs src/domains/Model/DomainResponseWithResults.cs diff --git a/domains/README.md b/domains/README.md index e107724..0e0df1c 100644 --- a/domains/README.md +++ b/domains/README.md @@ -134,7 +134,9 @@ Class | Method | HTTP request | Description - [Model.CreateDomainRequest](docs/CreateDomainRequest.md) - [Model.DomainData](docs/DomainData.md) + - [Model.DomainDataResponse](docs/DomainDataResponse.md) - [Model.DomainEntity](docs/DomainEntity.md) + - [Model.DomainEntityResponse](docs/DomainEntityResponse.md) - [Model.DomainLinks](docs/DomainLinks.md) - [Model.DomainResponseWithResult](docs/DomainResponseWithResult.md) - [Model.DomainResponseWithResults](docs/DomainResponseWithResults.md) diff --git a/domains/api/openapi.yaml b/domains/api/openapi.yaml index 7180c41..0285004 100644 --- a/domains/api/openapi.yaml +++ b/domains/api/openapi.yaml @@ -364,6 +364,58 @@ components: nullable: true type: array type: object + DomainDataResponse: + properties: + name: + maxLength: 100 + minLength: 1 + pattern: "[a-zA-Z0-9$%^&*()-+=\\[\\]{};:?><,|/]+" + type: string + cnames: + items: + type: string + type: array + cname_access_only: + type: boolean + is_active: + type: boolean + edge_application_id: + format: int64 + maximum: 10000000000000000000 + minimum: 1 + type: integer + digital_certificate_id: + format: int64 + maximum: 10000000000000000000 + minimum: 1 + type: integer + environment: + enum: + - production + - preview + type: string + is_mtls_enabled: + type: boolean + mtls_trusted_ca_certificate_id: + format: int64 + nullable: true + type: integer + edge_firewall_id: + format: int64 + nullable: true + type: integer + mtls_verification: + enum: + - enforce + - permissive + type: string + crl_list: + items: + format: int64 + type: integer + nullable: true + type: array + type: object DomainEntity: allOf: - properties: @@ -374,9 +426,19 @@ components: type: string type: object - $ref: '#/components/schemas/DomainData' + DomainEntityResponse: + allOf: + - properties: + id: + format: int64 + type: integer + domain_name: + type: string + type: object + - $ref: '#/components/schemas/DomainDataResponse' example: edge_application_id: 5637376656633328640 - edge_firewall_id: 7 + edge_firewall_id: 9 is_active: true cnames: - cnames @@ -384,11 +446,11 @@ components: mtls_verification: enforce domain_name: domain_name environment: production - mtls_trusted_ca_certificate_id: 2 - digital_certificate_id: digital_certificate_id + mtls_trusted_ca_certificate_id: 7 + digital_certificate_id: 2302135886934765312 crl_list: - - 9 - - 9 + - 3 + - 3 cname_access_only: true name: name is_mtls_enabled: true @@ -490,7 +552,7 @@ components: total_pages: 6 results: - edge_application_id: 5637376656633328640 - edge_firewall_id: 7 + edge_firewall_id: 9 is_active: true cnames: - cnames @@ -498,17 +560,17 @@ components: mtls_verification: enforce domain_name: domain_name environment: production - mtls_trusted_ca_certificate_id: 2 - digital_certificate_id: digital_certificate_id + mtls_trusted_ca_certificate_id: 7 + digital_certificate_id: 2302135886934765312 crl_list: - - 9 - - 9 + - 3 + - 3 cname_access_only: true name: name is_mtls_enabled: true id: 5 - edge_application_id: 5637376656633328640 - edge_firewall_id: 7 + edge_firewall_id: 9 is_active: true cnames: - cnames @@ -516,11 +578,11 @@ components: mtls_verification: enforce domain_name: domain_name environment: production - mtls_trusted_ca_certificate_id: 2 - digital_certificate_id: digital_certificate_id + mtls_trusted_ca_certificate_id: 7 + digital_certificate_id: 2302135886934765312 crl_list: - - 9 - - 9 + - 3 + - 3 cname_access_only: true name: name is_mtls_enabled: true @@ -539,7 +601,7 @@ components: $ref: '#/components/schemas/DomainLinks' results: items: - $ref: '#/components/schemas/DomainEntity' + $ref: '#/components/schemas/DomainEntityResponse' type: array required: - count @@ -559,7 +621,7 @@ components: total_pages: 6 results: edge_application_id: 5637376656633328640 - edge_firewall_id: 7 + edge_firewall_id: 9 is_active: true cnames: - cnames @@ -567,11 +629,11 @@ components: mtls_verification: enforce domain_name: domain_name environment: production - mtls_trusted_ca_certificate_id: 2 - digital_certificate_id: digital_certificate_id + mtls_trusted_ca_certificate_id: 7 + digital_certificate_id: 2302135886934765312 crl_list: - - 9 - - 9 + - 3 + - 3 cname_access_only: true name: name is_mtls_enabled: true @@ -583,7 +645,7 @@ components: links: $ref: '#/components/schemas/DomainLinks' results: - $ref: '#/components/schemas/DomainEntity' + $ref: '#/components/schemas/DomainEntityResponse' total_pages: format: int64 type: integer diff --git a/domains/docs/DomainDataResponse.md b/domains/docs/DomainDataResponse.md new file mode 100644 index 0000000..c8dc45a --- /dev/null +++ b/domains/docs/DomainDataResponse.md @@ -0,0 +1,21 @@ +# domains.Model.DomainDataResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Name** | **string** | | [optional] +**Cnames** | **List<string>** | | [optional] +**CnameAccessOnly** | **bool** | | [optional] +**IsActive** | **bool** | | [optional] +**EdgeApplicationId** | **long** | | [optional] +**DigitalCertificateId** | **long** | | [optional] +**VarEnvironment** | **string** | | [optional] +**IsMtlsEnabled** | **bool** | | [optional] +**MtlsTrustedCaCertificateId** | **long?** | | [optional] +**EdgeFirewallId** | **long?** | | [optional] +**MtlsVerification** | **string** | | [optional] +**CrlList** | **List<long>** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/domains/docs/DomainEntityResponse.md b/domains/docs/DomainEntityResponse.md new file mode 100644 index 0000000..96df067 --- /dev/null +++ b/domains/docs/DomainEntityResponse.md @@ -0,0 +1,23 @@ +# domains.Model.DomainEntityResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Name** | **string** | | [optional] +**Cnames** | **List<string>** | | [optional] +**CnameAccessOnly** | **bool** | | [optional] +**IsActive** | **bool** | | [optional] +**EdgeApplicationId** | **long** | | [optional] +**DigitalCertificateId** | **long** | | [optional] +**VarEnvironment** | **string** | | [optional] +**IsMtlsEnabled** | **bool** | | [optional] +**MtlsTrustedCaCertificateId** | **long?** | | [optional] +**EdgeFirewallId** | **long?** | | [optional] +**MtlsVerification** | **string** | | [optional] +**CrlList** | **List<long>** | | [optional] +**Id** | **long** | | [optional] +**DomainName** | **string** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/domains/docs/DomainResponseWithResult.md b/domains/docs/DomainResponseWithResult.md index 9235241..acde83f 100644 --- a/domains/docs/DomainResponseWithResult.md +++ b/domains/docs/DomainResponseWithResult.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Count** | **long** | | [optional] **Links** | [**DomainLinks**](DomainLinks.md) | | [optional] -**Results** | [**DomainEntity**](DomainEntity.md) | | +**Results** | [**DomainEntityResponse**](DomainEntityResponse.md) | | **TotalPages** | **long** | | [optional] **SchemaVersion** | **long** | | diff --git a/domains/docs/DomainResponseWithResults.md b/domains/docs/DomainResponseWithResults.md index 009985c..1fe93cc 100644 --- a/domains/docs/DomainResponseWithResults.md +++ b/domains/docs/DomainResponseWithResults.md @@ -8,7 +8,7 @@ Name | Type | Description | Notes **TotalPages** | **long** | | **SchemaVersion** | **long** | | **Links** | [**DomainLinks**](DomainLinks.md) | | -**Results** | [**List<DomainEntity>**](DomainEntity.md) | | +**Results** | [**List<DomainEntityResponse>**](DomainEntityResponse.md) | | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/domains/domains.sln b/domains/domains.sln index a688868..22e79fc 100644 --- a/domains/domains.sln +++ b/domains/domains.sln @@ -2,7 +2,7 @@ Microsoft Visual Studio Solution File, Format Version 12.00 # Visual Studio 2012 VisualStudioVersion = 12.0.0.0 MinimumVisualStudioVersion = 10.0.0.1 -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "domains", "src\domains\domains.csproj", "{EDF00410-A6AA-415B-B047-034050F18551}" +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "domains", "src\domains\domains.csproj", "{45D1ECF8-DE73-451D-9E23-D65F20942298}" EndProject Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "domains.Test", "src\domains.Test\domains.Test.csproj", "{19F1DEBC-DE5E-4517-8062-F000CD499087}" EndProject @@ -12,10 +12,10 @@ Global Release|Any CPU = Release|Any CPU EndGlobalSection GlobalSection(ProjectConfigurationPlatforms) = postSolution - {EDF00410-A6AA-415B-B047-034050F18551}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {EDF00410-A6AA-415B-B047-034050F18551}.Debug|Any CPU.Build.0 = Debug|Any CPU - {EDF00410-A6AA-415B-B047-034050F18551}.Release|Any CPU.ActiveCfg = Release|Any CPU - {EDF00410-A6AA-415B-B047-034050F18551}.Release|Any CPU.Build.0 = Release|Any CPU + {45D1ECF8-DE73-451D-9E23-D65F20942298}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {45D1ECF8-DE73-451D-9E23-D65F20942298}.Debug|Any CPU.Build.0 = Debug|Any CPU + {45D1ECF8-DE73-451D-9E23-D65F20942298}.Release|Any CPU.ActiveCfg = Release|Any CPU + {45D1ECF8-DE73-451D-9E23-D65F20942298}.Release|Any CPU.Build.0 = Release|Any CPU {19F1DEBC-DE5E-4517-8062-F000CD499087}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {19F1DEBC-DE5E-4517-8062-F000CD499087}.Debug|Any CPU.Build.0 = Debug|Any CPU {19F1DEBC-DE5E-4517-8062-F000CD499087}.Release|Any CPU.ActiveCfg = Release|Any CPU diff --git a/domains/src/domains.Test/Model/DomainDataResponseTests.cs b/domains/src/domains.Test/Model/DomainDataResponseTests.cs new file mode 100644 index 0000000..6b1cbd3 --- /dev/null +++ b/domains/src/domains.Test/Model/DomainDataResponseTests.cs @@ -0,0 +1,165 @@ +/* + * Domain API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 2.0.0 + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using Xunit; + +using System; +using System.Linq; +using System.IO; +using System.Collections.Generic; +using domains.Model; +using domains.Client; +using System.Reflection; +using Newtonsoft.Json; + +namespace domains.Test.Model +{ + /// + /// Class for testing DomainDataResponse + /// + /// + /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). + /// Please update the test case below to test the model. + /// + public class DomainDataResponseTests : IDisposable + { + // TODO uncomment below to declare an instance variable for DomainDataResponse + //private DomainDataResponse instance; + + public DomainDataResponseTests() + { + // TODO uncomment below to create an instance of DomainDataResponse + //instance = new DomainDataResponse(); + } + + public void Dispose() + { + // Cleanup when everything is done. + } + + /// + /// Test an instance of DomainDataResponse + /// + [Fact] + public void DomainDataResponseInstanceTest() + { + // TODO uncomment below to test "IsType" DomainDataResponse + //Assert.IsType(instance); + } + + /// + /// Test the property 'Name' + /// + [Fact] + public void NameTest() + { + // TODO unit test for the property 'Name' + } + + /// + /// Test the property 'Cnames' + /// + [Fact] + public void CnamesTest() + { + // TODO unit test for the property 'Cnames' + } + + /// + /// Test the property 'CnameAccessOnly' + /// + [Fact] + public void CnameAccessOnlyTest() + { + // TODO unit test for the property 'CnameAccessOnly' + } + + /// + /// Test the property 'IsActive' + /// + [Fact] + public void IsActiveTest() + { + // TODO unit test for the property 'IsActive' + } + + /// + /// Test the property 'EdgeApplicationId' + /// + [Fact] + public void EdgeApplicationIdTest() + { + // TODO unit test for the property 'EdgeApplicationId' + } + + /// + /// Test the property 'DigitalCertificateId' + /// + [Fact] + public void DigitalCertificateIdTest() + { + // TODO unit test for the property 'DigitalCertificateId' + } + + /// + /// Test the property 'VarEnvironment' + /// + [Fact] + public void VarEnvironmentTest() + { + // TODO unit test for the property 'VarEnvironment' + } + + /// + /// Test the property 'IsMtlsEnabled' + /// + [Fact] + public void IsMtlsEnabledTest() + { + // TODO unit test for the property 'IsMtlsEnabled' + } + + /// + /// Test the property 'MtlsTrustedCaCertificateId' + /// + [Fact] + public void MtlsTrustedCaCertificateIdTest() + { + // TODO unit test for the property 'MtlsTrustedCaCertificateId' + } + + /// + /// Test the property 'EdgeFirewallId' + /// + [Fact] + public void EdgeFirewallIdTest() + { + // TODO unit test for the property 'EdgeFirewallId' + } + + /// + /// Test the property 'MtlsVerification' + /// + [Fact] + public void MtlsVerificationTest() + { + // TODO unit test for the property 'MtlsVerification' + } + + /// + /// Test the property 'CrlList' + /// + [Fact] + public void CrlListTest() + { + // TODO unit test for the property 'CrlList' + } + } +} diff --git a/domains/src/domains.Test/Model/DomainEntityResponseTests.cs b/domains/src/domains.Test/Model/DomainEntityResponseTests.cs new file mode 100644 index 0000000..06ce08e --- /dev/null +++ b/domains/src/domains.Test/Model/DomainEntityResponseTests.cs @@ -0,0 +1,183 @@ +/* + * Domain API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 2.0.0 + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using Xunit; + +using System; +using System.Linq; +using System.IO; +using System.Collections.Generic; +using domains.Model; +using domains.Client; +using System.Reflection; +using Newtonsoft.Json; + +namespace domains.Test.Model +{ + /// + /// Class for testing DomainEntityResponse + /// + /// + /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). + /// Please update the test case below to test the model. + /// + public class DomainEntityResponseTests : IDisposable + { + // TODO uncomment below to declare an instance variable for DomainEntityResponse + //private DomainEntityResponse instance; + + public DomainEntityResponseTests() + { + // TODO uncomment below to create an instance of DomainEntityResponse + //instance = new DomainEntityResponse(); + } + + public void Dispose() + { + // Cleanup when everything is done. + } + + /// + /// Test an instance of DomainEntityResponse + /// + [Fact] + public void DomainEntityResponseInstanceTest() + { + // TODO uncomment below to test "IsType" DomainEntityResponse + //Assert.IsType(instance); + } + + /// + /// Test the property 'Name' + /// + [Fact] + public void NameTest() + { + // TODO unit test for the property 'Name' + } + + /// + /// Test the property 'Cnames' + /// + [Fact] + public void CnamesTest() + { + // TODO unit test for the property 'Cnames' + } + + /// + /// Test the property 'CnameAccessOnly' + /// + [Fact] + public void CnameAccessOnlyTest() + { + // TODO unit test for the property 'CnameAccessOnly' + } + + /// + /// Test the property 'IsActive' + /// + [Fact] + public void IsActiveTest() + { + // TODO unit test for the property 'IsActive' + } + + /// + /// Test the property 'EdgeApplicationId' + /// + [Fact] + public void EdgeApplicationIdTest() + { + // TODO unit test for the property 'EdgeApplicationId' + } + + /// + /// Test the property 'DigitalCertificateId' + /// + [Fact] + public void DigitalCertificateIdTest() + { + // TODO unit test for the property 'DigitalCertificateId' + } + + /// + /// Test the property 'VarEnvironment' + /// + [Fact] + public void VarEnvironmentTest() + { + // TODO unit test for the property 'VarEnvironment' + } + + /// + /// Test the property 'IsMtlsEnabled' + /// + [Fact] + public void IsMtlsEnabledTest() + { + // TODO unit test for the property 'IsMtlsEnabled' + } + + /// + /// Test the property 'MtlsTrustedCaCertificateId' + /// + [Fact] + public void MtlsTrustedCaCertificateIdTest() + { + // TODO unit test for the property 'MtlsTrustedCaCertificateId' + } + + /// + /// Test the property 'EdgeFirewallId' + /// + [Fact] + public void EdgeFirewallIdTest() + { + // TODO unit test for the property 'EdgeFirewallId' + } + + /// + /// Test the property 'MtlsVerification' + /// + [Fact] + public void MtlsVerificationTest() + { + // TODO unit test for the property 'MtlsVerification' + } + + /// + /// Test the property 'CrlList' + /// + [Fact] + public void CrlListTest() + { + // TODO unit test for the property 'CrlList' + } + + /// + /// Test the property 'Id' + /// + [Fact] + public void IdTest() + { + // TODO unit test for the property 'Id' + } + + /// + /// Test the property 'DomainName' + /// + [Fact] + public void DomainNameTest() + { + // TODO unit test for the property 'DomainName' + } + } +} diff --git a/domains/src/domains/Model/DomainDataResponse.cs b/domains/src/domains/Model/DomainDataResponse.cs new file mode 100644 index 0000000..4132f47 --- /dev/null +++ b/domains/src/domains/Model/DomainDataResponse.cs @@ -0,0 +1,264 @@ +/* + * Domain API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 2.0.0 + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = domains.Client.OpenAPIDateConverter; + +namespace domains.Model +{ + /// + /// DomainDataResponse + /// + [DataContract(Name = "DomainDataResponse")] + public partial class DomainDataResponse : IValidatableObject + { + /// + /// Defines VarEnvironment + /// + [JsonConverter(typeof(StringEnumConverter))] + public enum VarEnvironmentEnum + { + /// + /// Enum Production for value: production + /// + [EnumMember(Value = "production")] + Production = 1, + + /// + /// Enum Preview for value: preview + /// + [EnumMember(Value = "preview")] + Preview = 2 + } + + + /// + /// Gets or Sets VarEnvironment + /// + [DataMember(Name = "environment", EmitDefaultValue = false)] + public VarEnvironmentEnum? VarEnvironment { get; set; } + /// + /// Defines MtlsVerification + /// + [JsonConverter(typeof(StringEnumConverter))] + public enum MtlsVerificationEnum + { + /// + /// Enum Enforce for value: enforce + /// + [EnumMember(Value = "enforce")] + Enforce = 1, + + /// + /// Enum Permissive for value: permissive + /// + [EnumMember(Value = "permissive")] + Permissive = 2 + } + + + /// + /// Gets or Sets MtlsVerification + /// + [DataMember(Name = "mtls_verification", EmitDefaultValue = false)] + public MtlsVerificationEnum? MtlsVerification { get; set; } + /// + /// Initializes a new instance of the class. + /// + /// name. + /// cnames. + /// cnameAccessOnly. + /// isActive. + /// edgeApplicationId. + /// digitalCertificateId. + /// varEnvironment. + /// isMtlsEnabled. + /// mtlsTrustedCaCertificateId. + /// edgeFirewallId. + /// mtlsVerification. + /// crlList. + public DomainDataResponse(string name = default(string), List cnames = default(List), bool cnameAccessOnly = default(bool), bool isActive = default(bool), long edgeApplicationId = default(long), long digitalCertificateId = default(long), VarEnvironmentEnum? varEnvironment = default(VarEnvironmentEnum?), bool isMtlsEnabled = default(bool), long? mtlsTrustedCaCertificateId = default(long?), long? edgeFirewallId = default(long?), MtlsVerificationEnum? mtlsVerification = default(MtlsVerificationEnum?), List crlList = default(List)) + { + this.Name = name; + this.Cnames = cnames; + this.CnameAccessOnly = cnameAccessOnly; + this.IsActive = isActive; + this.EdgeApplicationId = edgeApplicationId; + this.DigitalCertificateId = digitalCertificateId; + this.VarEnvironment = varEnvironment; + this.IsMtlsEnabled = isMtlsEnabled; + this.MtlsTrustedCaCertificateId = mtlsTrustedCaCertificateId; + this.EdgeFirewallId = edgeFirewallId; + this.MtlsVerification = mtlsVerification; + this.CrlList = crlList; + } + + /// + /// Gets or Sets Name + /// + [DataMember(Name = "name", EmitDefaultValue = false)] + public string Name { get; set; } + + /// + /// Gets or Sets Cnames + /// + [DataMember(Name = "cnames", EmitDefaultValue = false)] + public List Cnames { get; set; } + + /// + /// Gets or Sets CnameAccessOnly + /// + [DataMember(Name = "cname_access_only", EmitDefaultValue = true)] + public bool CnameAccessOnly { get; set; } + + /// + /// Gets or Sets IsActive + /// + [DataMember(Name = "is_active", EmitDefaultValue = true)] + public bool IsActive { get; set; } + + /// + /// Gets or Sets EdgeApplicationId + /// + [DataMember(Name = "edge_application_id", EmitDefaultValue = false)] + public long EdgeApplicationId { get; set; } + + /// + /// Gets or Sets DigitalCertificateId + /// + [DataMember(Name = "digital_certificate_id", EmitDefaultValue = false)] + public long DigitalCertificateId { get; set; } + + /// + /// Gets or Sets IsMtlsEnabled + /// + [DataMember(Name = "is_mtls_enabled", EmitDefaultValue = true)] + public bool IsMtlsEnabled { get; set; } + + /// + /// Gets or Sets MtlsTrustedCaCertificateId + /// + [DataMember(Name = "mtls_trusted_ca_certificate_id", EmitDefaultValue = true)] + public long? MtlsTrustedCaCertificateId { get; set; } + + /// + /// Gets or Sets EdgeFirewallId + /// + [DataMember(Name = "edge_firewall_id", EmitDefaultValue = true)] + public long? EdgeFirewallId { get; set; } + + /// + /// Gets or Sets CrlList + /// + [DataMember(Name = "crl_list", EmitDefaultValue = true)] + public List CrlList { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class DomainDataResponse {\n"); + sb.Append(" Name: ").Append(Name).Append("\n"); + sb.Append(" Cnames: ").Append(Cnames).Append("\n"); + sb.Append(" CnameAccessOnly: ").Append(CnameAccessOnly).Append("\n"); + sb.Append(" IsActive: ").Append(IsActive).Append("\n"); + sb.Append(" EdgeApplicationId: ").Append(EdgeApplicationId).Append("\n"); + sb.Append(" DigitalCertificateId: ").Append(DigitalCertificateId).Append("\n"); + sb.Append(" VarEnvironment: ").Append(VarEnvironment).Append("\n"); + sb.Append(" IsMtlsEnabled: ").Append(IsMtlsEnabled).Append("\n"); + sb.Append(" MtlsTrustedCaCertificateId: ").Append(MtlsTrustedCaCertificateId).Append("\n"); + sb.Append(" EdgeFirewallId: ").Append(EdgeFirewallId).Append("\n"); + sb.Append(" MtlsVerification: ").Append(MtlsVerification).Append("\n"); + sb.Append(" CrlList: ").Append(CrlList).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + // Name (string) maxLength + if (this.Name != null && this.Name.Length > 100) + { + yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Name, length must be less than 100.", new [] { "Name" }); + } + + // Name (string) minLength + if (this.Name != null && this.Name.Length < 1) + { + yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Name, length must be greater than 1.", new [] { "Name" }); + } + + if (this.Name != null) { + // Name (string) pattern + Regex regexName = new Regex(@"[a-zA-Z0-9$%^&*()-+=\[\]{};:?><,|/]+", RegexOptions.CultureInvariant); + if (!regexName.Match(this.Name).Success) + { + yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Name, must match a pattern of " + regexName, new [] { "Name" }); + } + } + + // EdgeApplicationId (long) maximum + if (this.EdgeApplicationId > (long)-8446744073709551616) + { + yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for EdgeApplicationId, must be a value less than or equal to -8446744073709551616.", new [] { "EdgeApplicationId" }); + } + + // EdgeApplicationId (long) minimum + if (this.EdgeApplicationId < (long)1) + { + yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for EdgeApplicationId, must be a value greater than or equal to 1.", new [] { "EdgeApplicationId" }); + } + + // DigitalCertificateId (long) maximum + if (this.DigitalCertificateId > (long)-8446744073709551616) + { + yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for DigitalCertificateId, must be a value less than or equal to -8446744073709551616.", new [] { "DigitalCertificateId" }); + } + + // DigitalCertificateId (long) minimum + if (this.DigitalCertificateId < (long)1) + { + yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for DigitalCertificateId, must be a value greater than or equal to 1.", new [] { "DigitalCertificateId" }); + } + + yield break; + } + } + +} diff --git a/domains/src/domains/Model/DomainEntityResponse.cs b/domains/src/domains/Model/DomainEntityResponse.cs new file mode 100644 index 0000000..d272a2d --- /dev/null +++ b/domains/src/domains/Model/DomainEntityResponse.cs @@ -0,0 +1,282 @@ +/* + * Domain API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 2.0.0 + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = domains.Client.OpenAPIDateConverter; + +namespace domains.Model +{ + /// + /// DomainEntityResponse + /// + [DataContract(Name = "DomainEntityResponse")] + public partial class DomainEntityResponse : IValidatableObject + { + /// + /// Defines VarEnvironment + /// + [JsonConverter(typeof(StringEnumConverter))] + public enum VarEnvironmentEnum + { + /// + /// Enum Production for value: production + /// + [EnumMember(Value = "production")] + Production = 1, + + /// + /// Enum Preview for value: preview + /// + [EnumMember(Value = "preview")] + Preview = 2 + } + + + /// + /// Gets or Sets VarEnvironment + /// + [DataMember(Name = "environment", EmitDefaultValue = false)] + public VarEnvironmentEnum? VarEnvironment { get; set; } + /// + /// Defines MtlsVerification + /// + [JsonConverter(typeof(StringEnumConverter))] + public enum MtlsVerificationEnum + { + /// + /// Enum Enforce for value: enforce + /// + [EnumMember(Value = "enforce")] + Enforce = 1, + + /// + /// Enum Permissive for value: permissive + /// + [EnumMember(Value = "permissive")] + Permissive = 2 + } + + + /// + /// Gets or Sets MtlsVerification + /// + [DataMember(Name = "mtls_verification", EmitDefaultValue = false)] + public MtlsVerificationEnum? MtlsVerification { get; set; } + /// + /// Initializes a new instance of the class. + /// + /// name. + /// cnames. + /// cnameAccessOnly. + /// isActive. + /// edgeApplicationId. + /// digitalCertificateId. + /// varEnvironment. + /// isMtlsEnabled. + /// mtlsTrustedCaCertificateId. + /// edgeFirewallId. + /// mtlsVerification. + /// crlList. + /// id. + /// domainName. + public DomainEntityResponse(string name = default(string), List cnames = default(List), bool cnameAccessOnly = default(bool), bool isActive = default(bool), long edgeApplicationId = default(long), long digitalCertificateId = default(long), VarEnvironmentEnum? varEnvironment = default(VarEnvironmentEnum?), bool isMtlsEnabled = default(bool), long? mtlsTrustedCaCertificateId = default(long?), long? edgeFirewallId = default(long?), MtlsVerificationEnum? mtlsVerification = default(MtlsVerificationEnum?), List crlList = default(List), long id = default(long), string domainName = default(string)) + { + this.Name = name; + this.Cnames = cnames; + this.CnameAccessOnly = cnameAccessOnly; + this.IsActive = isActive; + this.EdgeApplicationId = edgeApplicationId; + this.DigitalCertificateId = digitalCertificateId; + this.VarEnvironment = varEnvironment; + this.IsMtlsEnabled = isMtlsEnabled; + this.MtlsTrustedCaCertificateId = mtlsTrustedCaCertificateId; + this.EdgeFirewallId = edgeFirewallId; + this.MtlsVerification = mtlsVerification; + this.CrlList = crlList; + this.Id = id; + this.DomainName = domainName; + } + + /// + /// Gets or Sets Name + /// + [DataMember(Name = "name", EmitDefaultValue = false)] + public string Name { get; set; } + + /// + /// Gets or Sets Cnames + /// + [DataMember(Name = "cnames", EmitDefaultValue = false)] + public List Cnames { get; set; } + + /// + /// Gets or Sets CnameAccessOnly + /// + [DataMember(Name = "cname_access_only", EmitDefaultValue = true)] + public bool CnameAccessOnly { get; set; } + + /// + /// Gets or Sets IsActive + /// + [DataMember(Name = "is_active", EmitDefaultValue = true)] + public bool IsActive { get; set; } + + /// + /// Gets or Sets EdgeApplicationId + /// + [DataMember(Name = "edge_application_id", EmitDefaultValue = false)] + public long EdgeApplicationId { get; set; } + + /// + /// Gets or Sets DigitalCertificateId + /// + [DataMember(Name = "digital_certificate_id", EmitDefaultValue = false)] + public long DigitalCertificateId { get; set; } + + /// + /// Gets or Sets IsMtlsEnabled + /// + [DataMember(Name = "is_mtls_enabled", EmitDefaultValue = true)] + public bool IsMtlsEnabled { get; set; } + + /// + /// Gets or Sets MtlsTrustedCaCertificateId + /// + [DataMember(Name = "mtls_trusted_ca_certificate_id", EmitDefaultValue = true)] + public long? MtlsTrustedCaCertificateId { get; set; } + + /// + /// Gets or Sets EdgeFirewallId + /// + [DataMember(Name = "edge_firewall_id", EmitDefaultValue = true)] + public long? EdgeFirewallId { get; set; } + + /// + /// Gets or Sets CrlList + /// + [DataMember(Name = "crl_list", EmitDefaultValue = true)] + public List CrlList { get; set; } + + /// + /// Gets or Sets Id + /// + [DataMember(Name = "id", EmitDefaultValue = false)] + public long Id { get; set; } + + /// + /// Gets or Sets DomainName + /// + [DataMember(Name = "domain_name", EmitDefaultValue = false)] + public string DomainName { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class DomainEntityResponse {\n"); + sb.Append(" Name: ").Append(Name).Append("\n"); + sb.Append(" Cnames: ").Append(Cnames).Append("\n"); + sb.Append(" CnameAccessOnly: ").Append(CnameAccessOnly).Append("\n"); + sb.Append(" IsActive: ").Append(IsActive).Append("\n"); + sb.Append(" EdgeApplicationId: ").Append(EdgeApplicationId).Append("\n"); + sb.Append(" DigitalCertificateId: ").Append(DigitalCertificateId).Append("\n"); + sb.Append(" VarEnvironment: ").Append(VarEnvironment).Append("\n"); + sb.Append(" IsMtlsEnabled: ").Append(IsMtlsEnabled).Append("\n"); + sb.Append(" MtlsTrustedCaCertificateId: ").Append(MtlsTrustedCaCertificateId).Append("\n"); + sb.Append(" EdgeFirewallId: ").Append(EdgeFirewallId).Append("\n"); + sb.Append(" MtlsVerification: ").Append(MtlsVerification).Append("\n"); + sb.Append(" CrlList: ").Append(CrlList).Append("\n"); + sb.Append(" Id: ").Append(Id).Append("\n"); + sb.Append(" DomainName: ").Append(DomainName).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + // Name (string) maxLength + if (this.Name != null && this.Name.Length > 100) + { + yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Name, length must be less than 100.", new [] { "Name" }); + } + + // Name (string) minLength + if (this.Name != null && this.Name.Length < 1) + { + yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Name, length must be greater than 1.", new [] { "Name" }); + } + + if (this.Name != null) { + // Name (string) pattern + Regex regexName = new Regex(@"[a-zA-Z0-9$%^&*()-+=\[\]{};:?><,|/]+", RegexOptions.CultureInvariant); + if (!regexName.Match(this.Name).Success) + { + yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Name, must match a pattern of " + regexName, new [] { "Name" }); + } + } + + // EdgeApplicationId (long) maximum + if (this.EdgeApplicationId > (long)-8446744073709551616) + { + yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for EdgeApplicationId, must be a value less than or equal to -8446744073709551616.", new [] { "EdgeApplicationId" }); + } + + // EdgeApplicationId (long) minimum + if (this.EdgeApplicationId < (long)1) + { + yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for EdgeApplicationId, must be a value greater than or equal to 1.", new [] { "EdgeApplicationId" }); + } + + // DigitalCertificateId (long) maximum + if (this.DigitalCertificateId > (long)-8446744073709551616) + { + yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for DigitalCertificateId, must be a value less than or equal to -8446744073709551616.", new [] { "DigitalCertificateId" }); + } + + // DigitalCertificateId (long) minimum + if (this.DigitalCertificateId < (long)1) + { + yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for DigitalCertificateId, must be a value greater than or equal to 1.", new [] { "DigitalCertificateId" }); + } + + yield break; + } + } + +} diff --git a/domains/src/domains/Model/DomainResponseWithResult.cs b/domains/src/domains/Model/DomainResponseWithResult.cs index 1a1f755..a371a15 100644 --- a/domains/src/domains/Model/DomainResponseWithResult.cs +++ b/domains/src/domains/Model/DomainResponseWithResult.cs @@ -44,7 +44,7 @@ protected DomainResponseWithResult() { } /// results (required). /// totalPages. /// schemaVersion (required). - public DomainResponseWithResult(long count = default(long), DomainLinks links = default(DomainLinks), DomainEntity results = default(DomainEntity), long totalPages = default(long), long schemaVersion = default(long)) + public DomainResponseWithResult(long count = default(long), DomainLinks links = default(DomainLinks), DomainEntityResponse results = default(DomainEntityResponse), long totalPages = default(long), long schemaVersion = default(long)) { // to ensure "results" is required (not null) if (results == null) @@ -74,7 +74,7 @@ protected DomainResponseWithResult() { } /// Gets or Sets Results /// [DataMember(Name = "results", IsRequired = true, EmitDefaultValue = true)] - public DomainEntity Results { get; set; } + public DomainEntityResponse Results { get; set; } /// /// Gets or Sets TotalPages diff --git a/domains/src/domains/Model/DomainResponseWithResults.cs b/domains/src/domains/Model/DomainResponseWithResults.cs index 0087a0a..b635326 100644 --- a/domains/src/domains/Model/DomainResponseWithResults.cs +++ b/domains/src/domains/Model/DomainResponseWithResults.cs @@ -44,7 +44,7 @@ protected DomainResponseWithResults() { } /// schemaVersion (required). /// links (required). /// results (required). - public DomainResponseWithResults(long count = default(long), long totalPages = default(long), long schemaVersion = default(long), DomainLinks links = default(DomainLinks), List results = default(List)) + public DomainResponseWithResults(long count = default(long), long totalPages = default(long), long schemaVersion = default(long), DomainLinks links = default(DomainLinks), List results = default(List)) { this.Count = count; this.TotalPages = totalPages; @@ -91,7 +91,7 @@ protected DomainResponseWithResults() { } /// Gets or Sets Results /// [DataMember(Name = "results", IsRequired = true, EmitDefaultValue = true)] - public List Results { get; set; } + public List Results { get; set; } /// /// Returns the string presentation of the object