diff --git a/openstack_cli/Cargo.toml b/openstack_cli/Cargo.toml index 882f02411..215926d23 100644 --- a/openstack_cli/Cargo.toml +++ b/openstack_cli/Cargo.toml @@ -26,6 +26,7 @@ default = [ "openstack_sdk/async", "block_storage", "compute", + "dns", "identity", "image", "load_balancer", @@ -34,6 +35,7 @@ default = [ ] block_storage = ["openstack_sdk/block_storage"] compute = ["openstack_sdk/compute"] +dns = ["openstack_sdk/dns"] identity = ["openstack_sdk/identity"] image = ["openstack_sdk/image"] load_balancer = ["openstack_sdk/load_balancer"] diff --git a/openstack_cli/src/dns/mod.rs b/openstack_cli/src/dns/mod.rs new file mode 100644 index 000000000..a2b8d3f07 --- /dev/null +++ b/openstack_cli/src/dns/mod.rs @@ -0,0 +1,15 @@ +// 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. +// +// SPDX-License-Identifier: Apache-2.0 + +//! DNS (Designate) API bindings diff --git a/openstack_cli/src/lib.rs b/openstack_cli/src/lib.rs index 4e5e74ff5..ee209dbac 100644 --- a/openstack_cli/src/lib.rs +++ b/openstack_cli/src/lib.rs @@ -40,6 +40,7 @@ mod block_storage; mod catalog; mod common; mod compute; +mod dns; mod identity; mod image; mod load_balancer; diff --git a/openstack_sdk/Cargo.toml b/openstack_sdk/Cargo.toml index 0b39a7581..1338b8e11 100644 --- a/openstack_sdk/Cargo.toml +++ b/openstack_sdk/Cargo.toml @@ -17,6 +17,7 @@ default = [ "sync", "block_storage", "compute", + "dns", "identity", "image", "load_balancer", @@ -25,6 +26,7 @@ default = [ ] block_storage = [] compute = [] +dns = [] identity = [] image = [] load_balancer = [] diff --git a/openstack_sdk/src/api.rs b/openstack_sdk/src/api.rs index 5e3f13918..9e00fcc68 100644 --- a/openstack_sdk/src/api.rs +++ b/openstack_sdk/src/api.rs @@ -153,6 +153,8 @@ mod rest_endpoint; pub mod block_storage; #[cfg(feature = "compute")] pub mod compute; +#[cfg(feature = "dns")] +pub mod dns; #[allow(dead_code)] #[cfg(feature = "identity")] pub mod identity; diff --git a/openstack_sdk/src/api/dns.rs b/openstack_sdk/src/api/dns.rs new file mode 100644 index 000000000..a9e79137b --- /dev/null +++ b/openstack_sdk/src/api/dns.rs @@ -0,0 +1,15 @@ +// 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. +// +// SPDX-License-Identifier: Apache-2.0 + +//! DNS service (Designate) bindings diff --git a/openstack_sdk/src/types.rs b/openstack_sdk/src/types.rs index 9c115bcd8..d8c9633f3 100644 --- a/openstack_sdk/src/types.rs +++ b/openstack_sdk/src/types.rs @@ -34,6 +34,7 @@ pub use crate::types::api_version::ApiVersion; pub enum ServiceType { BlockStorage, Compute, + Dns, Image, Identity, LoadBalancer, @@ -48,6 +49,7 @@ impl fmt::Display for ServiceType { match self { ServiceType::BlockStorage => write!(f, "block-storage"), ServiceType::Compute => write!(f, "compute"), + ServiceType::Dns => write!(f, "dns"), ServiceType::Image => write!(f, "image"), ServiceType::Identity => write!(f, "identity"), ServiceType::LoadBalancer => write!(f, "load-balancer"), @@ -64,6 +66,7 @@ impl From<&str> for ServiceType { match val { "block-storage" => ServiceType::BlockStorage, "compute" => ServiceType::Compute, + "dns" => ServiceType::Dns, "identity" => ServiceType::Identity, "image" => ServiceType::Image, "load-balancer" => ServiceType::LoadBalancer,