diff --git a/Fortigate/Api/Certificate.cs b/Fortigate/Api/Certificate.cs deleted file mode 100644 index 3f1113f..0000000 --- a/Fortigate/Api/Certificate.cs +++ /dev/null @@ -1,67 +0,0 @@ -//Copyright 2023 Keyfactor -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. - -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; - -namespace Keyfactor.Extensions.Orchestrator.Fortigate.Api -{ - public class Certificate - { - public string name { get; set; } - public string source { get; set; } - public string comments { get; set; } - public bool exists { get; set; } - public string range { get; set; } - public bool is_ssl_server_cert { get; set; } - public bool is_ssl_client_cert { get; set; } - public bool is_proxy_ssl_cert { get; set; } - public bool is_general_allowable_cert { get; set; } - public bool is_default_local { get; set; } - public bool is_built_in { get; set; } - public bool is_wifi_cert { get; set; } - public bool is_deep_inspection_cert { get; set; } - public bool has_valid_cert_key { get; set; } - public string key_type { get; set; } - public int key_size { get; set; } - public bool is_local_ca_cert { get; set; } - public string type { get; set; } - public string status { get; set; } - public long valid_from { get; set; } - public string valid_from_raw { get; set; } - public long valid_to { get; set; } - public string valid_to_raw { get; set; } - public string signature_algorithm { get; set; } - public Subject subject { get; set; } - public string subject_raw { get; set; } - public Issuer issuer { get; set; } - public string issuer_raw { get; set; } - public string fingerprint { get; set; } - public int version { get; set; } - public bool is_ca { get; set; } - public string serial_number { get; set; } - public Ext[] ext { get; set; } - public string q_path { get; set; } - public string q_name { get; set; } - public int q_ref { get; set; } - public bool q_static { get; set; } - public int q_type { get; set; } - } - - [JsonConverter(typeof(StringEnumConverter))] - public enum KeyType - { - RSA, DSA, ECDSA - } -} - diff --git a/Fortigate/Api/Ext.cs b/Fortigate/Api/Ext.cs deleted file mode 100644 index f81f9b9..0000000 --- a/Fortigate/Api/Ext.cs +++ /dev/null @@ -1,22 +0,0 @@ -//Copyright 2023 Keyfactor -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. - -namespace Keyfactor.Extensions.Orchestrator.Fortigate.Api -{ - public class Ext - { - public string name { get; set; } - public string data { get; set; } - public bool critical { get; set; } - } -} \ No newline at end of file diff --git a/Fortigate/Api/FortigateResponse.cs b/Fortigate/Api/FortigateResponse.cs deleted file mode 100644 index fcc2fdf..0000000 --- a/Fortigate/Api/FortigateResponse.cs +++ /dev/null @@ -1,29 +0,0 @@ -//Copyright 2023 Keyfactor -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. - -namespace Keyfactor.Extensions.Orchestrator.Fortigate.Api -{ - public class FortigateResponse - { - public string http_method { get; set; } - public ResultType results { get; set; } - public string vdom { get; set; } - public string path { get; set; } - public string name { get; set; } - public string action { get; set; } - public string status { get; set; } - public string serial { get; set; } - public string version { get; set; } - public int build { get; set; } - } -} \ No newline at end of file diff --git a/Fortigate/Api/Issuer.cs b/Fortigate/Api/Issuer.cs deleted file mode 100644 index 39f197a..0000000 --- a/Fortigate/Api/Issuer.cs +++ /dev/null @@ -1,26 +0,0 @@ -//Copyright 2023 Keyfactor -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. - -namespace Keyfactor.Extensions.Orchestrator.Fortigate.Api -{ - public class Issuer - { - public string C { get; set; } - public string ST { get; set; } - public string L { get; set; } - public string O { get; set; } - public string OU { get; set; } - public string CN { get; set; } - public string emailAddress { get; set; } - } -} \ No newline at end of file diff --git a/Fortigate/Api/Subject.cs b/Fortigate/Api/Subject.cs deleted file mode 100644 index 6b03d68..0000000 --- a/Fortigate/Api/Subject.cs +++ /dev/null @@ -1,26 +0,0 @@ -//Copyright 2023 Keyfactor -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. - -namespace Keyfactor.Extensions.Orchestrator.Fortigate.Api -{ - public class Subject - { - public string C { get; set; } - public string ST { get; set; } - public string L { get; set; } - public string O { get; set; } - public string OU { get; set; } - public string CN { get; set; } - public string emailAddress { get; set; } - } -} \ No newline at end of file diff --git a/Fortigate/Api/Usage.cs b/Fortigate/Api/Usage.cs deleted file mode 100644 index f5a6199..0000000 --- a/Fortigate/Api/Usage.cs +++ /dev/null @@ -1,47 +0,0 @@ -//Copyright 2023 Keyfactor -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. - -using System.Text.Json.Serialization; - -namespace Keyfactor.Extensions.Orchestrator.Fortigate.Api -{ - public class Usage - { - public CanUse[] can_use { get; set; } - - public CurrentlyUsing[] currently_using { get; set; } - - public int[] q_types { get; set; } - - public class CanUse - { - public string name { get; set; } - public string path { get; set; } - public string range { get; set; } - } - - public class CurrentlyUsing - { - public string attribute { get; set; } - public string name { get; set; } - public string path { get; set; } - public string range { get; set; } - public int reference_count { get; set; } - public bool static_ { get; set; } - [JsonPropertyName("static")] - public string table_type { get; set; } - public string vdom { get; set; } - } - //[attribute, mkey, name, path, range, reference_count,static,table_type,vdom] - } -} diff --git a/Fortigate/Api/cmdb_certificate_resource.cs b/Fortigate/Api/cmdb_certificate_resource.cs deleted file mode 100644 index 2fb07c3..0000000 --- a/Fortigate/Api/cmdb_certificate_resource.cs +++ /dev/null @@ -1,33 +0,0 @@ -//Copyright 2023 Keyfactor -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. - -namespace Keyfactor.Extensions.Orchestrator.Fortigate.Api -{ - public class cmdb_certificate_resource - { - public string type { get; set; } - - public string certname { get; set; } - - //< pass phrase used to encrypt key> - //public string password { get; set; } - - // - public string key_file_content { get; set; } - - // - public string file_content { get; set; } - - public string scope { get; set; } - } -}