Skip to content

Commit

Permalink
regenerate services from azure-rest-api-specs (#732)
Browse files Browse the repository at this point in the history
  • Loading branch information
bmc-msft authored Apr 27, 2022
1 parent 89e9f71 commit 69968fb
Show file tree
Hide file tree
Showing 458 changed files with 372,477 additions and 2,001 deletions.
8 changes: 7 additions & 1 deletion services/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,16 @@
# 0.3 (2022-04)

- [#732](https://github.com/Azure/azure-sdk-for-rust/pull/732) generated from azure-rest-api-specs [commit from 2022-04-27](https://github.com/Azure/azure-rest-api-specs/commit/46ffdc4fe0f9a413ba29ed859b5ff4174ce1c7ec)
- [#718](https://github.com/Azure/azure-sdk-for-rust/pull/718) include `path` and `x_ms_path` endpoints
- [#706](https://github.com/Azure/azure-sdk-for-rust/pull/706) update `azure_core` to 0.2

# 0.2 (2022-03)

- [#672](https://github.com/Azure/azure-sdk-for-rust/pull/672) generated from azure-rest-api-specs [commit from 2022-04-01](https://github.com/Azure/azure-rest-api-specs/commit/48d85585897aa6ed448ca689b094e60377a25cb7)
- [#675](https://github.com/Azure/azure-sdk-for-rust/pull/675) use Basic Information tag for default version
- [#634](https://github.com/Azure/azure-sdk-for-rust/issues/634) limit docs.rs to 5 API tags
- [#632](https://github.com/Azure/azure-sdk-for-rust/issues/632) add links & README.md for services
- Renamed `no-default-version` feature to `no-default-tag` & expanded tag documentation
- [#711](https://github.com/Azure/azure-sdk-for-rust/pull/711) Renamed `no-default-version` feature to `no-default-tag` & expanded tag documentation

# 0.1 (2022-01)

Expand Down
9 changes: 9 additions & 0 deletions services/autorust/codegen/examples/gen_mgmt.rs
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ const SKIP_SERVICE_TAGS: &[(&str, &str)] = &[
("marketplace", "package-composite-v2"), // mixing versions
("monitor", "package-2021-09"), // AzureResource defined in 2021-09-01/actionGroups_API.json is different
("monitor", "package-2021-07"), // also AzureResource difference
("monitor", "package-2022-04"), // also AzureResource difference
("recoveryservicesbackup", "package-2020-07"), // duplicate fn get_operation_status
("recoveryservicesbackup", "package-2020-10"), // duplicate fn get_operation_status
("recoveryservicessiterecovery", "package-2016-08"), // duplicate package-2016-08 https://github.com/Azure/azure-rest-api-specs/pull/11287
Expand Down Expand Up @@ -188,6 +189,9 @@ const BOX_PROPERTIES: &[(&str, &str, &str)] = &[
("../../../azure-rest-api-specs/specification/databox/resource-manager/Microsoft.DataBox/stable/2021-05-01/databox.json", "transferAllDetails", "include"),
("../../../azure-rest-api-specs/specification/databox/resource-manager/Microsoft.DataBox/stable/2021-12-01/databox.json", "transferFilterDetails", "include"),
("../../../azure-rest-api-specs/specification/databox/resource-manager/Microsoft.DataBox/stable/2021-12-01/databox.json", "transferAllDetails", "include"),
("../../../azure-rest-api-specs/specification/databox/resource-manager/Microsoft.DataBox/stable/2022-03-01/databox.json", "transferAllDetails", "include"),
("../../../azure-rest-api-specs/specification/databox/resource-manager/Microsoft.DataBox/stable/2022-02-01/databox.json", "transferFilterDetails", "include"),
("../../../azure-rest-api-specs/specification/databox/resource-manager/Microsoft.DataBox/stable/2022-02-01/databox.json", "transferAllDetails", "include"),
// dataprotection
("../../../azure-rest-api-specs/specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2021-01-01/dataprotection.json", "InnerError", "embeddedInnerError"),
("../../../azure-rest-api-specs/specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2021-07-01/dataprotection.json", "InnerError", "embeddedInnerError"),
Expand All @@ -197,6 +201,7 @@ const BOX_PROPERTIES: &[(&str, &str, &str)] = &[
("../../../azure-rest-api-specs/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2021-12-01-preview/dataprotection.json", "InnerError", "embeddedInnerError"),
("../../../azure-rest-api-specs/specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2022-01-01/dataprotection.json", "InnerError", "embeddedInnerError"),
("../../../azure-rest-api-specs/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2022-02-01-preview/dataprotection.json", "InnerError", "embeddedInnerError"),
("../../../azure-rest-api-specs/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2022-03-31-preview/dataprotection.json", "InnerError", "embeddedInnerError"),
// hardwaresecuritymodels
("../../../azure-rest-api-specs/specification/hardwaresecuritymodules/resource-manager/Microsoft.HardwareSecurityModules/preview/2018-10-31-preview/dedicatedhsm.json", "Error", "innererror"),
("../../../azure-rest-api-specs/specification/hardwaresecuritymodules/resource-manager/Microsoft.HardwareSecurityModules/stable/2021-11-30/dedicatedhsm.json", "Error", "innererror"),
Expand Down Expand Up @@ -290,6 +295,10 @@ const BOX_PROPERTIES: &[(&str, &str, &str)] = &[
("../../../azure-rest-api-specs/specification/network/resource-manager/Microsoft.Network/stable/2016-03-30/network.json", "PublicIPAddress", "properties"),
("../../../azure-rest-api-specs/specification/network/resource-manager/Microsoft.Network/stable/2016-03-30/network.json", "IPConfigurationPropertiesFormat", "publicIPAddress"),
("../../../azure-rest-api-specs/specification/network/resource-manager/Microsoft.Network/stable/2016-03-30/network.json", "IPConfiguration", "properties"),
("../../../azure-rest-api-specs/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/networkInterface.json", "IPConfiguration", "properties"),
("../../../azure-rest-api-specs/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/networkInterface.json", "IPConfigurationPropertiesFormat", "publicIPAddress"),
("../../../azure-rest-api-specs/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/publicIpAddress.json", "PublicIPAddress" , "properties"),
("../../../azure-rest-api-specs/specification/network/resource-manager/Microsoft.Network/stable/2021-08-01/publicIpAddress.json", "PublicIPAddressPropertiesFormat", "ipConfiguration"),
// operationalinsights
("../../../azure-rest-api-specs/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/preview/2019-09-01-preview/QueryPackQueries_API.json", "ErrorInfo", "innererror"),
("../../../azure-rest-api-specs/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/preview/2019-09-01-preview/QueryPacks_API.json", "ErrorInfo", "innererror"),
Expand Down
11 changes: 10 additions & 1 deletion services/autorust/codegen/examples/gen_svc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ const SKIP_SERVICES: &[&str] = &[

const SKIP_SERVICE_TAGS: &[(&str, &str)] = &[
("agrifood", "package-2021-03-31-preview"), // duplicate params https://github.com/Azure/azure-sdk-for-rust/issues/501
("purview", "package-2021-05-01-preview"), // need to box types
("maps", "package-preview-2.0"), // global responses https://github.com/Azure/azure-sdk-for-rust/issues/502
("maps", "package-1.0-preview"), // global responses https://github.com/Azure/azure-sdk-for-rust/issues/502
("servicefabric", "6.2"), // invalid model TimeBasedBackupScheduleDescription
Expand Down Expand Up @@ -165,6 +164,16 @@ const BOX_PROPERTIES: &[(&str, &str, &str)] = &[
"InnerError",
"innererror"
),
("../../../azure-rest-api-specs/specification/purview/data-plane/Azure.Analytics.Purview.Catalog/preview/2022-03-01-preview/purviewcatalog.json", "NumberFormat", "currencyInstance"),
("../../../azure-rest-api-specs/specification/purview/data-plane/Azure.Analytics.Purview.Catalog/preview/2022-03-01-preview/purviewcatalog.json", "NumberFormat", "instance"),
("../../../azure-rest-api-specs/specification/purview/data-plane/Azure.Analytics.Purview.Catalog/preview/2022-03-01-preview/purviewcatalog.json", "NumberFormat", "integerInstance"),
("../../../azure-rest-api-specs/specification/purview/data-plane/Azure.Analytics.Purview.Catalog/preview/2022-03-01-preview/purviewcatalog.json", "NumberFormat", "numberInstance"),
("../../../azure-rest-api-specs/specification/purview/data-plane/Azure.Analytics.Purview.Catalog/preview/2022-03-01-preview/purviewcatalog.json", "NumberFormat", "percentInstance"),
("../../../azure-rest-api-specs/specification/purview/data-plane/Azure.Analytics.Purview.Catalog/preview/2022-03-01-preview/purviewcatalog.json", "TimeZone", "default"),
("../../../azure-rest-api-specs/specification/purview/data-plane/Azure.Analytics.Purview.Catalog/preview/2022-03-01-preview/purviewcatalog.json", "DateFormat", "dateInstance"),
("../../../azure-rest-api-specs/specification/purview/data-plane/Azure.Analytics.Purview.Catalog/preview/2022-03-01-preview/purviewcatalog.json", "DateFormat", "instance"),
("../../../azure-rest-api-specs/specification/purview/data-plane/Azure.Analytics.Purview.Catalog/preview/2022-03-01-preview/purviewcatalog.json", "DateFormat", "dateTimeInstance"),
("../../../azure-rest-api-specs/specification/purview/data-plane/Azure.Analytics.Purview.Catalog/preview/2022-03-01-preview/purviewcatalog.json", "DateFormat", "timeInstance"),
];

fn main() -> Result<()> {
Expand Down
2 changes: 1 addition & 1 deletion services/autorust/codegen/src/cargo_toml.rs
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ pub fn create(crate_name: &str, tags: &[&Tag], default_tag: &Tag, path: &Utf8Pat
r#"# generated by AutoRust
[package]
name = "{}"
version = "0.2.0"
version = "0.3.0"
edition = "2021"
license = "MIT"
description = "generated REST API bindings"
Expand Down
3 changes: 2 additions & 1 deletion services/autorust/codegen/src/codegen_models.rs
Original file line number Diff line number Diff line change
Expand Up @@ -480,7 +480,7 @@ fn create_struct(cg: &CodeGen, schema: &SchemaGen, struct_name: &str) -> Result<
} = create_struct_field_code(cg, &ns, &property.schema, property_name, lowercase_workaround)?;
mod_code.extend(field_code);
// uncomment the next two lines to help identify entries that need boxed
// let prop_nm_str = format!("{} , {} , {}", prop_nm.file_path.display(), prop_nm.schema_name, property_name);
// let prop_nm_str = format!("{} , {} , {}", prop_nm.file_path, prop_nm.schema_name, property_name);
// props.extend(quote! { #[doc = #prop_nm_str ]});

if cg.should_force_obj(prop_nm) {
Expand Down Expand Up @@ -513,6 +513,7 @@ fn create_struct(cg: &CodeGen, schema: &SchemaGen, struct_name: &str) -> Result<
} else {
quote! {}
};

// see if a field should be wrapped in a Box
let should_box = cg.should_box_property(prop_nm);
if should_box {
Expand Down
2 changes: 1 addition & 1 deletion services/mgmt/activedirectory/Cargo.toml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion services/mgmt/addons/Cargo.toml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion services/mgmt/adhybridhealthservice/Cargo.toml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion services/mgmt/adp/Cargo.toml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion services/mgmt/advisor/Cargo.toml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion services/mgmt/agrifood/Cargo.toml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion services/mgmt/alertsmanagement/Cargo.toml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion services/mgmt/analysisservices/Cargo.toml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 3 additions & 2 deletions services/mgmt/apimanagement/Cargo.toml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions services/mgmt/apimanagement/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ The default tag is `package-2021-08`.

The following [tags](https://github.com/Azure/azure-sdk-for-rust/blob/main/services/tags.md) are available:

- `package-preview-2021-12` has 355 operations from 1 API versions: `2021-12-01-preview`. Use crate feature `package-preview-2021-12` to enable. The operations will be in the `package_preview_2021_12` module.
- `package-2021-08` has 344 operations from 1 API versions: `2021-08-01`. Use crate feature `package-2021-08` to enable. The operations will be in the `package_2021_08` module.
- `package-preview-2021-04` has 344 operations from 1 API versions: `2021-04-01-preview`. Use crate feature `package-preview-2021-04` to enable. The operations will be in the `package_preview_2021_04` module.
- `package-preview-2021-01` has 331 operations from 1 API versions: `2021-01-01-preview`. Use crate feature `package-preview-2021-01` to enable. The operations will be in the `package_preview_2021_01` module.
Expand Down
4 changes: 4 additions & 0 deletions services/mgmt/apimanagement/src/lib.rs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion services/mgmt/apimanagement/src/package_2020_12/models.rs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion services/mgmt/apimanagement/src/package_2021_08/models.rs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 69968fb

Please sign in to comment.