Skip to content

Commit 26feeb7

Browse files
authored
add mgmt services with recursive types (Azure#76)
1 parent 992c4f6 commit 26feeb7

File tree

255 files changed

+1150422
-51
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

255 files changed

+1150422
-51
lines changed
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
# generated by AutoRust 0.1.0
2+
[package]
3+
name = "azure_mgmt_apimanagement"
4+
version = "0.1.0"
5+
edition = "2018"
6+
7+
[dependencies]
8+
azure_core = { path = "../../../sdk/core", version = "0.1.0" }
9+
serde = { version = "1.0", features = ["derive"] }
10+
serde_json = "1.0"
11+
reqwest = { version = "0.10", features = ["json"] }
12+
bytes = "0.5"
13+
snafu = "0.6"
14+
15+
[dev-dependencies]
16+
azure_identity = { path = "../../../sdk/identity", version = "0.1.0" }
17+
tokio = { version = "0.2", features = ["macros"] }
18+
19+
[features]
20+
default = ["package-2019-12"]
21+
"package-preview-2020-06" = []
22+
"package-2019-12" = []
23+
"package-preview-2019-12" = []
24+
"package-2019-01" = []
25+
"package-2018-06-preview" = []
Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
#![doc = "generated by AutoRust 0.1.0"]
2+
#[cfg(feature = "package-preview-2020-06")]
3+
mod package_preview_2020_06;
4+
#[cfg(feature = "package-preview-2020-06")]
5+
pub use package_preview_2020_06::{models, operations, API_VERSION};
6+
#[cfg(feature = "package-2019-12")]
7+
mod package_2019_12;
8+
#[cfg(feature = "package-2019-12")]
9+
pub use package_2019_12::{models, operations, API_VERSION};
10+
#[cfg(feature = "package-preview-2019-12")]
11+
mod package_preview_2019_12;
12+
#[cfg(feature = "package-preview-2019-12")]
13+
pub use package_preview_2019_12::{models, operations, API_VERSION};
14+
#[cfg(feature = "package-2019-01")]
15+
mod package_2019_01;
16+
#[cfg(feature = "package-2019-01")]
17+
pub use package_2019_01::{models, operations, API_VERSION};
18+
#[cfg(feature = "package-2018-06-preview")]
19+
mod package_2018_06_preview;
20+
#[cfg(feature = "package-2018-06-preview")]
21+
pub use package_2018_06_preview::{models, operations, API_VERSION};
22+
pub struct OperationConfig {
23+
pub api_version: String,
24+
pub client: reqwest::Client,
25+
pub base_path: String,
26+
pub token_credential: Option<Box<dyn azure_core::TokenCredential>>,
27+
pub token_credential_resource: String,
28+
}
29+
impl OperationConfig {
30+
pub fn new(token_credential: Box<dyn azure_core::TokenCredential>) -> Self {
31+
Self {
32+
token_credential: Some(token_credential),
33+
..Default::default()
34+
}
35+
}
36+
}
37+
impl Default for OperationConfig {
38+
fn default() -> Self {
39+
Self {
40+
api_version: API_VERSION.to_owned(),
41+
client: reqwest::Client::new(),
42+
base_path: "https://management.azure.com".to_owned(),
43+
token_credential: None,
44+
token_credential_resource: "https://management.azure.com/".to_owned(),
45+
}
46+
}
47+
}
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
pub mod models;
2+
pub mod operations;
3+
pub const API_VERSION: &str = "2018-06-01-preview";

0 commit comments

Comments
 (0)