1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

//! ## Overview
//!
//! `azure_devops_rust_api` implements a Rust interface to the Azure DevOps REST API (version 7.1).
//!
//! The crate is autogenerated from the [Azure DevOps OpenAPI spec](https://github.com/MicrosoftDocs/vsts-rest-api-specs).
//!
//! For usage and examples see the [`azure_devops_rust_api` README](https://github.com/microsoft/azure-devops-rust-api/blob/main/azure_devops_rust_api/README.md).
//!
//! Links:
//! - [Autogenerator repo](https://github.com/microsoft/azure-devops-rust-api/)
//! - [Examples](https://github.com/microsoft/azure-devops-rust-api/tree/main/azure_devops_rust_api/examples)

/// Accounts
#[cfg(feature = "accounts")]
pub mod accounts;
/// Approvals and checks
#[cfg(feature = "approvals_and_checks")]
pub mod approvals_and_checks;
/// Artifacts
#[cfg(feature = "artifacts")]
pub mod artifacts;
/// Artifacts Package Types
#[cfg(feature = "artifacts_package_types")]
pub mod artifacts_package_types;
/// Audit
#[cfg(feature = "audit")]
pub mod audit;
/// Build
#[cfg(feature = "build")]
pub mod build;
/// Core
#[cfg(feature = "core")]
pub mod core;
/// Dashboard
#[cfg(feature = "dashboard")]
pub mod dashboard;
/// Distributed tasks
#[cfg(feature = "distributed_task")]
pub mod distributed_task;
/// Extension Management
#[cfg(feature = "extension_management")]
pub mod extension_management;
/// Favorite
#[cfg(feature = "favorite")]
pub mod favorite;
/// Git
#[cfg(feature = "git")]
pub mod git;
/// Graph
#[cfg(feature = "graph")]
pub mod graph;
/// Service Hooks
#[cfg(feature = "hooks")]
pub mod hooks;
/// Identities
#[cfg(feature = "ims")]
pub mod ims;
/// Member Entitlement Management
#[cfg(feature = "member_entitlement_management")]
pub mod member_entitlement_management;
/// Operations
#[cfg(feature = "operations")]
pub mod operations;
/// Permissions Report
#[cfg(feature = "permissions_report")]
pub mod permissions_report;
/// Pipelines
#[cfg(feature = "pipelines")]
pub mod pipelines;
/// Policy
#[cfg(feature = "policy")]
pub mod policy;
/// Process admin
#[cfg(feature = "processadmin")]
pub mod processadmin;
/// Processes
#[cfg(feature = "processes")]
pub mod processes;
/// Profile
#[cfg(feature = "profile")]
pub mod profile;
/// Release
#[cfg(feature = "release")]
pub mod release;
/// Search
#[cfg(feature = "search")]
pub mod search;
/// Security
#[cfg(feature = "security")]
pub mod security;
/// Security roles
#[cfg(feature = "security_roles")]
pub mod security_roles;
/// Service Endpoint (aka Service Connection)
#[cfg(feature = "service_endpoint")]
pub mod service_endpoint;
/// Status
#[cfg(feature = "status")]
pub mod status;
/// Symbol
#[cfg(feature = "symbol")]
pub mod symbol;
/// Tests
#[cfg(feature = "test")]
pub mod test;
/// Test plans
#[cfg(feature = "test_plan")]
pub mod test_plan;
/// Test results
#[cfg(feature = "test_results")]
pub mod test_results;
/// Team Foundation Version Control (TFVC)
#[cfg(feature = "tfvc")]
pub mod tfvc;
/// Token Admin
#[cfg(feature = "token_admin")]
pub mod token_admin;
/// Tokens
#[cfg(feature = "tokens")]
pub mod tokens;
/// Wiki
#[cfg(feature = "wiki")]
pub mod wiki;
/// Work Item Tracking
#[cfg(feature = "wit")]
pub mod wit;
/// Work (boards, backlogs, iterations, plans)
#[cfg(feature = "work")]
pub mod work;

mod auth;
pub use auth::Credential;

pub mod date_time;

pub(crate) mod serde;

/// The token scope for Azure Devops
/// https://learn.microsoft.com/en-us/rest/api/azure/devops/tokens/?view=azure-devops-rest-7.0&tabs=powershell
pub const ADO_SCOPE: &str = "499b84ac-1321-427f-aa17-267ca6975798";