Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

check service examples #767

Merged
merged 7 commits into from
May 25, 2022
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
3 changes: 3 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,9 @@ jobs:
- name: services check
run: cargo check --manifest-path services/Cargo.toml --all

- name: services check examples
run: cargo check --manifest-path services/Cargo.toml --examples
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍


- name: services clippy
run: cargo clippy --manifest-path services/Cargo.toml --all

Expand Down
1 change: 0 additions & 1 deletion services/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ There are a few examples:
- [private_cloud_list](mgmt/vmware/examples/private_cloud_list.rs)
- azure_svc_batch
- [create_task](svc/batch/examples/create_task.rs)
- [create_task_thiserror](svc/batch/examples/create_task_thiserror.rs)
- [list_pools](svc/batch/examples/list_pools.rs)

These services are in their own [Rust workspace](Cargo.toml), so you need to change to the `services` directory to run these examples.
Expand Down
5 changes: 5 additions & 0 deletions services/autorust/codegen/examples/gen_mgmt.rs
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,11 @@ const OPTIONAL_PROPERTIES: &[(&str, &str, &str)] = &[
"Resource",
"location",
),
(
"../../../azure-rest-api-specs/specification/compute/resource-manager/Microsoft.Compute/stable/2021-11-01/compute.json",
"Resource",
"location",
),
];

// because of recursive types, some properties have to be boxed
Expand Down
1 change: 1 addition & 0 deletions services/autorust/codegen/src/cargo_toml.rs
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ futures = "0.3"
azure_identity = {{ path = "../../../sdk/identity" }}
tokio = {{ version = "1.0", features = ["macros"] }}
env_logger = "0.9"
chrono = "0.4"

[package.metadata.docs.rs]
all-features = true
Expand Down
1 change: 1 addition & 0 deletions services/mgmt/activedirectory/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/addons/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/adhybridhealthservice/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/adp/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/advisor/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/agrifood/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/alertsmanagement/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/analysisservices/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/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/app/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/appconfiguration/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/applicationinsights/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/appplatform/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/arcdata/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/attestation/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/authorization/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/automanage/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/automation/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/baremetalinfrastructure/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/batch/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/billing/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/blockchain/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/blueprint/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/botservice/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/cdn/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/changeanalysis/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/chaos/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/cloudshell/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/cognitiveservices/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/commerce/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/communication/Cargo.toml

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

13 changes: 7 additions & 6 deletions services/mgmt/compute/Cargo.toml

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

12 changes: 6 additions & 6 deletions services/mgmt/compute/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@ https://github.com/Azure/azure-rest-api-specs/blob/main/specification/compute/re

To get started with these generated service crates, see the [examples](https://github.com/Azure/azure-sdk-for-rust/blob/main/services/README.md#examples).

The default tag is `package-skus-2017-09`.
The default tag is `package-2021-12-01`.

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

- `package-skus-2017-09` has 1 operations from 1 API versions: `2017-09-01`. Use crate feature `package-skus-2017-09` to enable. The operations will be in the `package_skus_2017_09` module.
- `package-disks-2018-04` has 16 operations from 1 API versions: `2018-04-01`. Use crate feature `package-disks-2018-04` to enable. The operations will be in the `package_disks_2018_04` module.
- `package-container-service-2017-01` has 5 operations from 1 API versions: `2017-01-31`. Use crate feature `package-container-service-2017-01` to enable. The operations will be in the `package_container_service_2017_01` module.
- `package-container-service-2016-09` has 5 operations from 1 API versions: `2016-09-30`. Use crate feature `package-container-service-2016-09` to enable. The operations will be in the `package_container_service_2016_09` module.
- `package-container-service-2016-03` has 5 operations from 1 API versions: `2016-03-30`. Use crate feature `package-container-service-2016-03` to enable. The operations will be in the `package_container_service_2016_03` module.
- `package-2021-12-01` has 276 operations from 5 API versions: `2021-03-01`, `2021-07-01`, `2021-10-01`, `2021-11-01`, `2021-12-01`. Use crate feature `package-2021-12-01` to enable. The operations will be in the `package_2021_12_01` module.
- `package-2021-11-01` has 276 operations from 5 API versions: `2021-03-01`, `2021-07-01`, `2021-08-01`, `2021-10-01`, `2021-11-01`. Use crate feature `package-2021-11-01` to enable. The operations will be in the `package_2021_11_01` module.
- `package-2021-10-01` has 275 operations from 4 API versions: `2021-03-01`, `2021-04-01`, `2021-07-01`, `2021-10-01`. Use crate feature `package-2021-10-01` to enable. The operations will be in the `package_2021_10_01` module.
- `package-2021-08-01` has 275 operations from 3 API versions: `2021-03-01`, `2021-07-01`, `2021-08-01`. Use crate feature `package-2021-08-01` to enable. The operations will be in the `package_2021_08_01` module.
- `package-2021-07-01` has 275 operations from 3 API versions: `2021-03-01`, `2021-04-01`, `2021-07-01`. Use crate feature `package-2021-07-01` to enable. The operations will be in the `package_2021_07_01` module.
3 changes: 3 additions & 0 deletions services/mgmt/compute/autorust.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[tags]
# Some of the old tags use a different naming convention.
deny_contains = ["compute", "disk", "skus", "container"]
40 changes: 20 additions & 20 deletions services/mgmt/compute/src/lib.rs

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

Loading