Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions openstack_cli/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ default = [
"openstack_sdk/async",
"block_storage",
"compute",
"dns",
"identity",
"image",
"load_balancer",
Expand All @@ -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"]
Expand Down
15 changes: 15 additions & 0 deletions openstack_cli/src/dns/mod.rs
Original file line number Diff line number Diff line change
@@ -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
1 change: 1 addition & 0 deletions openstack_cli/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ mod block_storage;
mod catalog;
mod common;
mod compute;
mod dns;
mod identity;
mod image;
mod load_balancer;
Expand Down
2 changes: 2 additions & 0 deletions openstack_sdk/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ default = [
"sync",
"block_storage",
"compute",
"dns",
"identity",
"image",
"load_balancer",
Expand All @@ -25,6 +26,7 @@ default = [
]
block_storage = []
compute = []
dns = []
identity = []
image = []
load_balancer = []
Expand Down
2 changes: 2 additions & 0 deletions openstack_sdk/src/api.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
15 changes: 15 additions & 0 deletions openstack_sdk/src/api/dns.rs
Original file line number Diff line number Diff line change
@@ -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
3 changes: 3 additions & 0 deletions openstack_sdk/src/types.rs
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ pub use crate::types::api_version::ApiVersion;
pub enum ServiceType {
BlockStorage,
Compute,
Dns,
Image,
Identity,
LoadBalancer,
Expand All @@ -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"),
Expand All @@ -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,
Expand Down