Add copyright headers to all .rs source files (#1788)
* Add copyright headers to all .rs source files * Add datetime to dictionary
This commit is contained in:
Родитель
15de102305
Коммит
759a012e79
|
@ -16,6 +16,7 @@
|
|||
"azsdk",
|
||||
"azurecli",
|
||||
"datalake",
|
||||
"datetime",
|
||||
"devicecode",
|
||||
"downcasted",
|
||||
"downcasting",
|
||||
|
|
|
@ -1,3 +1,6 @@
|
|||
// Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
// Licensed under the MIT License.
|
||||
|
||||
mod mock_request;
|
||||
mod mock_response;
|
||||
mod mock_transaction;
|
||||
|
|
|
@ -1,3 +1,6 @@
|
|||
// Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
// Licensed under the MIT License.
|
||||
|
||||
use azure_core::{base64, Body, Method, Request};
|
||||
use serde::de::Visitor;
|
||||
use serde::ser::{Serialize, SerializeStruct, Serializer};
|
||||
|
|
|
@ -1,3 +1,6 @@
|
|||
// Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
// Licensed under the MIT License.
|
||||
|
||||
use azure_core::{
|
||||
base64, error,
|
||||
headers::{HeaderName, HeaderValue, Headers},
|
||||
|
|
|
@ -1,3 +1,6 @@
|
|||
// Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
// Licensed under the MIT License.
|
||||
|
||||
use azure_core::error::{Error, ErrorKind, ResultExt};
|
||||
use std::path::PathBuf;
|
||||
use std::sync::atomic::{AtomicUsize, Ordering};
|
||||
|
|
|
@ -1,3 +1,6 @@
|
|||
// Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
// Licensed under the MIT License.
|
||||
|
||||
use crate::mock_request::RequestDeserializer;
|
||||
|
||||
use super::mock_response::MockResponse;
|
||||
|
|
|
@ -1,3 +1,6 @@
|
|||
// Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
// Licensed under the MIT License.
|
||||
|
||||
use crate::mock_request::RequestSerializer;
|
||||
|
||||
use super::mock_response::MockResponse;
|
||||
|
|
|
@ -1,3 +1,6 @@
|
|||
// Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
// Licensed under the MIT License.
|
||||
|
||||
use rustc_version::version;
|
||||
|
||||
fn main() {
|
||||
|
|
|
@ -1,3 +1,6 @@
|
|||
// Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
// Licensed under the MIT License.
|
||||
|
||||
//! Azure authentication and authorization.
|
||||
|
||||
use serde::{Deserialize, Serialize};
|
||||
|
|
|
@ -1,3 +1,6 @@
|
|||
// Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
// Licensed under the MIT License.
|
||||
|
||||
/// Endpoints for Azure Resource Manager in different Azure clouds
|
||||
pub mod resource_manager_endpoint {
|
||||
static_url!(
|
||||
|
|
|
@ -1,3 +1,6 @@
|
|||
// Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
// Licensed under the MIT License.
|
||||
|
||||
use crate::auth::Secret;
|
||||
#[cfg(any(feature = "hmac_rust", feature = "hmac_openssl"))]
|
||||
use crate::{
|
||||
|
|
|
@ -1,3 +1,6 @@
|
|||
// Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
// Licensed under the MIT License.
|
||||
|
||||
use crate::headers::Headers;
|
||||
use std::time::Duration;
|
||||
use typespec_client_core::date::OffsetDateTime;
|
||||
|
|
|
@ -1,3 +1,6 @@
|
|||
// Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
// Licensed under the MIT License.
|
||||
|
||||
/// Declare a `Future` with the given name
|
||||
///
|
||||
/// `Future::Output` will be set to `azure_core::Result<$NAMEResponse>`.
|
||||
|
|
|
@ -1,3 +1,6 @@
|
|||
// Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
// Licensed under the MIT License.
|
||||
|
||||
use serde::{Deserialize, Serialize};
|
||||
use std::{fmt, str::FromStr};
|
||||
|
||||
|
|
|
@ -1,3 +1,6 @@
|
|||
// Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
// Licensed under the MIT License.
|
||||
|
||||
//! Create and manage locks on Azure resources.
|
||||
|
||||
create_enum!(LeaseStatus, (Locked, "locked"), (Unlocked, "unlocked"));
|
||||
|
|
|
@ -1,3 +1,6 @@
|
|||
// Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
// Licensed under the MIT License.
|
||||
|
||||
mod etag;
|
||||
mod lease;
|
||||
|
||||
|
|
|
@ -1,3 +1,6 @@
|
|||
// Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
// Licensed under the MIT License.
|
||||
|
||||
use typespec_client_core::setters;
|
||||
|
||||
/// Telemetry options.
|
||||
|
|
|
@ -1,3 +1,6 @@
|
|||
// Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
// Licensed under the MIT License.
|
||||
|
||||
//! Parser helper utilities.
|
||||
|
||||
use crate::error::{Error, ErrorKind, ResultExt};
|
||||
|
|
|
@ -1,3 +1,6 @@
|
|||
// Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
// Licensed under the MIT License.
|
||||
|
||||
use crate::{
|
||||
auth::TokenCredential,
|
||||
headers::AUTHORIZATION,
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
// Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
// Licensed under the MIT License.
|
||||
|
||||
mod bearer_token_policy;
|
||||
mod telemetry;
|
||||
|
||||
|
|
|
@ -1,3 +1,6 @@
|
|||
// Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
// Licensed under the MIT License.
|
||||
|
||||
use crate::headers::{self, Header};
|
||||
|
||||
#[derive(Debug, Clone, Copy)]
|
||||
|
|
|
@ -1,3 +1,6 @@
|
|||
// Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
// Licensed under the MIT License.
|
||||
|
||||
use crate::error::{Error, ErrorKind, ResultExt};
|
||||
use std::fmt;
|
||||
use std::str::FromStr;
|
||||
|
|
|
@ -1,3 +1,6 @@
|
|||
// Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
// Licensed under the MIT License.
|
||||
|
||||
use crate::headers::{self, Header};
|
||||
use headers::{IF_MATCH, IF_NONE_MATCH};
|
||||
|
||||
|
|
|
@ -1,3 +1,6 @@
|
|||
// Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
// Licensed under the MIT License.
|
||||
|
||||
use crate::{
|
||||
date,
|
||||
headers::{self, Header},
|
||||
|
|
|
@ -1,3 +1,6 @@
|
|||
// Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
// Licensed under the MIT License.
|
||||
|
||||
use crate::{
|
||||
date,
|
||||
headers::{self, Header, HeaderName},
|
||||
|
|
|
@ -1,3 +1,6 @@
|
|||
// Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
// Licensed under the MIT License.
|
||||
|
||||
use crate::{headers, Header};
|
||||
|
||||
/// Conditional request header based on the value of the object's sequence number
|
||||
|
|
|
@ -1,3 +1,6 @@
|
|||
// Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
// Licensed under the MIT License.
|
||||
|
||||
use crate::headers::{self, Header};
|
||||
|
||||
#[derive(Debug, Clone, PartialEq, Eq)]
|
||||
|
|
|
@ -1,3 +1,6 @@
|
|||
// Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
// Licensed under the MIT License.
|
||||
|
||||
use crate::{
|
||||
date,
|
||||
headers::{self, Header, HeaderName},
|
||||
|
|
|
@ -1,3 +1,6 @@
|
|||
// Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
// Licensed under the MIT License.
|
||||
|
||||
use crate::headers::{self, Header};
|
||||
use std::str::FromStr;
|
||||
use uuid::Uuid;
|
||||
|
|
|
@ -1,3 +1,6 @@
|
|||
// Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
// Licensed under the MIT License.
|
||||
|
||||
use crate::headers::{self, Header};
|
||||
use std::time::Duration;
|
||||
|
||||
|
|
|
@ -1,3 +1,6 @@
|
|||
// Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
// Licensed under the MIT License.
|
||||
|
||||
use crate::headers::{self, Header};
|
||||
use std::time::Duration;
|
||||
|
||||
|
|
|
@ -1,3 +1,6 @@
|
|||
// Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
// Licensed under the MIT License.
|
||||
|
||||
use crate::headers::{self, Header};
|
||||
|
||||
/// The max number of items in the collection
|
||||
|
|
|
@ -1,3 +1,6 @@
|
|||
// Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
// Licensed under the MIT License.
|
||||
|
||||
use crate::{AppendToUrlQuery, Url};
|
||||
use std::num::NonZeroU32;
|
||||
|
||||
|
|
|
@ -1,3 +1,6 @@
|
|||
// Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
// Licensed under the MIT License.
|
||||
|
||||
use crate::headers;
|
||||
use crate::headers::Headers;
|
||||
use crate::Header;
|
||||
|
|
|
@ -1,3 +1,6 @@
|
|||
// Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
// Licensed under the MIT License.
|
||||
|
||||
mod content_length;
|
||||
mod content_range;
|
||||
mod if_match_condition;
|
||||
|
|
|
@ -1,3 +1,6 @@
|
|||
// Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
// Licensed under the MIT License.
|
||||
|
||||
use crate::{
|
||||
headers::{self, Headers},
|
||||
AppendToUrlQuery, Url,
|
||||
|
|
|
@ -1,3 +1,6 @@
|
|||
// Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
// Licensed under the MIT License.
|
||||
|
||||
use super::LeaseId;
|
||||
use crate::{headers, Header};
|
||||
|
||||
|
|
|
@ -1,3 +1,6 @@
|
|||
// Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
// Licensed under the MIT License.
|
||||
|
||||
use crate::error::{Error, ErrorKind, ResultExt};
|
||||
use crate::headers::{self, AsHeaders, HeaderName, HeaderValue};
|
||||
use std::fmt;
|
||||
|
|
|
@ -1,3 +1,6 @@
|
|||
// Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
// Licensed under the MIT License.
|
||||
|
||||
use crate::headers::{self, Header};
|
||||
|
||||
#[derive(Debug, Clone, Copy, PartialEq, PartialOrd, Eq, Ord)]
|
||||
|
|
|
@ -1,3 +1,6 @@
|
|||
// Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
// Licensed under the MIT License.
|
||||
|
||||
use crate::headers::{self, Header};
|
||||
use std::str::FromStr;
|
||||
use uuid::Uuid;
|
||||
|
|
|
@ -1,3 +1,6 @@
|
|||
// Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
// Licensed under the MIT License.
|
||||
|
||||
use crate::{AppendToUrlQuery, Url};
|
||||
use std::time::Duration;
|
||||
|
||||
|
|
|
@ -1,3 +1,6 @@
|
|||
// Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
// Licensed under the MIT License.
|
||||
|
||||
use futures::{task::Poll, Future};
|
||||
use std::{cmp::min, io::SeekFrom, pin::Pin, sync::Arc, task::Context};
|
||||
use tokio::{
|
||||
|
|
|
@ -1,2 +1,5 @@
|
|||
// Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
// Licensed under the MIT License.
|
||||
|
||||
#[cfg(feature = "tokio-fs")]
|
||||
pub mod fs;
|
||||
|
|
|
@ -1,3 +1,6 @@
|
|||
// Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
// Licensed under the MIT License.
|
||||
|
||||
//! An assortment of helper utilities.
|
||||
|
||||
use serde::{
|
||||
|
|
|
@ -1,3 +1,6 @@
|
|||
// Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
// Licensed under the MIT License.
|
||||
|
||||
use azure_core::auth::TokenCredential;
|
||||
use azure_identity::AzureCliCredential;
|
||||
use std::error::Error;
|
||||
|
|
|
@ -1,3 +1,6 @@
|
|||
// Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
// Licensed under the MIT License.
|
||||
|
||||
use azure_core::auth::TokenCredential;
|
||||
use azure_identity::AzureauthCliCredential;
|
||||
use clap::Parser;
|
||||
|
|
|
@ -1,3 +1,6 @@
|
|||
// Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
// Licensed under the MIT License.
|
||||
|
||||
use azure_identity::client_credentials_flow;
|
||||
use std::{env::var, error::Error};
|
||||
use url::Url;
|
||||
|
|
|
@ -1,3 +1,6 @@
|
|||
// Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
// Licensed under the MIT License.
|
||||
|
||||
use azure_core::{date, new_http_client};
|
||||
use azure_identity::client_credentials_flow;
|
||||
use std::{
|
||||
|
|
|
@ -1,3 +1,6 @@
|
|||
// Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
// Licensed under the MIT License.
|
||||
|
||||
use azure_core::new_http_client;
|
||||
use azure_identity::{authorization_code_flow, development::naive_redirect_server};
|
||||
use oauth2::{ClientId, ClientSecret, TokenResponse};
|
||||
|
|
|
@ -1,3 +1,6 @@
|
|||
// Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
// Licensed under the MIT License.
|
||||
|
||||
use azure_core::date;
|
||||
use azure_identity::{authorization_code_flow, development::naive_redirect_server};
|
||||
use oauth2::{ClientId, ClientSecret, TokenResponse};
|
||||
|
|
|
@ -1,3 +1,6 @@
|
|||
// Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
// Licensed under the MIT License.
|
||||
|
||||
#[tokio::main]
|
||||
async fn main() -> Result<(), Box<dyn std::error::Error>> {
|
||||
tracing_subscriber::fmt().init();
|
||||
|
|
|
@ -1,3 +1,6 @@
|
|||
// Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
// Licensed under the MIT License.
|
||||
|
||||
use azure_core::{
|
||||
error::{Error, ErrorKind},
|
||||
new_http_client,
|
||||
|
|
|
@ -1,3 +1,6 @@
|
|||
// Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
// Licensed under the MIT License.
|
||||
|
||||
use azure_core::auth::TokenCredential;
|
||||
use azure_identity::*;
|
||||
use std::{env::var, error::Error};
|
||||
|
|
|
@ -1,3 +1,6 @@
|
|||
// Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
// Licensed under the MIT License.
|
||||
|
||||
use azure_core::authority_hosts::AZURE_PUBLIC_CLOUD;
|
||||
use azure_identity::federated_credentials_flow;
|
||||
use std::{
|
||||
|
|
|
@ -1,3 +1,6 @@
|
|||
// Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
// Licensed under the MIT License.
|
||||
|
||||
//! Authorize using the authorization code flow
|
||||
//!
|
||||
//! You can learn more about the `OAuth2` authorization code flow [here](https://docs.microsoft.com/azure/active-directory/develop/v2-oauth2-auth-code-flow).
|
||||
|
|
|
@ -1,3 +1,6 @@
|
|||
// Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
// Licensed under the MIT License.
|
||||
|
||||
use azure_core::auth::Secret;
|
||||
use serde::{Deserialize, Deserializer};
|
||||
use time::OffsetDateTime;
|
||||
|
|
|
@ -1,3 +1,6 @@
|
|||
// Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
// Licensed under the MIT License.
|
||||
|
||||
//! Authorize using the OAuth 2.0 client credentials flow
|
||||
//!
|
||||
//! For example:
|
||||
|
|
|
@ -1,3 +1,6 @@
|
|||
// Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
// Licensed under the MIT License.
|
||||
|
||||
//! Utilities for aiding in development
|
||||
//!
|
||||
//! These utilities should not be used in production
|
||||
|
|
|
@ -1,3 +1,6 @@
|
|||
// Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
// Licensed under the MIT License.
|
||||
|
||||
use azure_core::auth::Secret;
|
||||
use serde::Deserialize;
|
||||
use std::fmt;
|
||||
|
|
|
@ -1,3 +1,6 @@
|
|||
// Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
// Licensed under the MIT License.
|
||||
|
||||
//! Authorize using the device authorization grant flow
|
||||
//!
|
||||
//! This flow allows users to sign in to input-constrained devices such as a smart TV, `IoT` device, or printer.
|
||||
|
|
|
@ -1,3 +1,6 @@
|
|||
// Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
// Licensed under the MIT License.
|
||||
|
||||
use azure_core::{
|
||||
error::{ErrorKind, ResultExt},
|
||||
Error,
|
||||
|
|
|
@ -1,3 +1,6 @@
|
|||
// Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
// Licensed under the MIT License.
|
||||
|
||||
use azure_core::auth::Secret;
|
||||
use serde::{Deserialize, Deserializer};
|
||||
use time::OffsetDateTime;
|
||||
|
|
|
@ -1,3 +1,6 @@
|
|||
// Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
// Licensed under the MIT License.
|
||||
|
||||
//! Authorize using the OAuth 2.0 client credentials flow with federated credentials.
|
||||
//!
|
||||
//! ```no_run
|
||||
|
|
|
@ -1,3 +1,6 @@
|
|||
// Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
// Licensed under the MIT License.
|
||||
|
||||
//! Azure Identity crate for the unofficial Microsoft Azure SDK for Rust. This crate is part of a collection of crates: for more information please refer to [https://github.com/azure/azure-sdk-for-rust](https://github.com/azure/azure-sdk-for-rust).
|
||||
//!
|
||||
//! This crate provides several implementations of the [azure_core::auth::TokenCredential](https://docs.rs/azure_core/latest/azure_core/auth/trait.TokenCredential.html) trait.
|
||||
|
|
|
@ -1,3 +1,6 @@
|
|||
// Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
// Licensed under the MIT License.
|
||||
|
||||
//! Implements the oauth2 crate http client interface using an `azure_core::HttpClient` instance.
|
||||
//! <https://docs.rs/oauth2/latest/oauth2/#importing-oauth2-selecting-an-http-client-interface>
|
||||
|
||||
|
|
|
@ -1,3 +1,6 @@
|
|||
// Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
// Licensed under the MIT License.
|
||||
|
||||
//! Refresh token utilities
|
||||
|
||||
use azure_core::{
|
||||
|
|
|
@ -1,3 +1,6 @@
|
|||
// Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
// Licensed under the MIT License.
|
||||
|
||||
use crate::{ImdsId, ImdsManagedIdentityCredential, TokenCredentialOptions};
|
||||
use azure_core::auth::{AccessToken, TokenCredential};
|
||||
use azure_core::error::{ErrorKind, ResultExt};
|
||||
|
|
|
@ -1,3 +1,6 @@
|
|||
// Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
// Licensed under the MIT License.
|
||||
|
||||
use crate::token_credentials::cache::TokenCache;
|
||||
use async_process::Command;
|
||||
use azure_core::{
|
||||
|
|
|
@ -1,3 +1,6 @@
|
|||
// Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
// Licensed under the MIT License.
|
||||
|
||||
use crate::token_credentials::cache::TokenCache;
|
||||
use async_process::Command;
|
||||
use azure_core::{
|
||||
|
|
|
@ -1,3 +1,6 @@
|
|||
// Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
// Licensed under the MIT License.
|
||||
|
||||
use async_lock::RwLock;
|
||||
use azure_core::auth::AccessToken;
|
||||
use futures::Future;
|
||||
|
|
|
@ -1,3 +1,6 @@
|
|||
// Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
// Licensed under the MIT License.
|
||||
|
||||
use crate::{token_credentials::cache::TokenCache, TokenCredentialOptions};
|
||||
use azure_core::{
|
||||
auth::{AccessToken, Secret, TokenCredential},
|
||||
|
|
|
@ -1,3 +1,6 @@
|
|||
// Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
// Licensed under the MIT License.
|
||||
|
||||
use crate::token_credentials::cache::TokenCache;
|
||||
use crate::{oauth2_http_client::Oauth2HttpClient, TokenCredentialOptions};
|
||||
use azure_core::Error;
|
||||
|
|
|
@ -1,3 +1,6 @@
|
|||
// Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
// Licensed under the MIT License.
|
||||
|
||||
#[cfg(not(target_arch = "wasm32"))]
|
||||
use crate::AzureCliCredential;
|
||||
use crate::{
|
||||
|
|
|
@ -1,3 +1,6 @@
|
|||
// Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
// Licensed under the MIT License.
|
||||
|
||||
#[cfg(feature = "client_certificate")]
|
||||
pub use crate::token_credentials::ClientCertificateCredential;
|
||||
use crate::token_credentials::{
|
||||
|
|
|
@ -1,3 +1,6 @@
|
|||
// Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
// Licensed under the MIT License.
|
||||
|
||||
use crate::{token_credentials::cache::TokenCache, TokenCredentialOptions};
|
||||
use azure_core::{
|
||||
auth::{AccessToken, Secret, TokenCredential},
|
||||
|
|
|
@ -1,3 +1,6 @@
|
|||
// Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
// Licensed under the MIT License.
|
||||
|
||||
//! Access to token credentials through various means
|
||||
//!
|
||||
//! Supported means currently include:
|
||||
|
|
|
@ -1,3 +1,6 @@
|
|||
// Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
// Licensed under the MIT License.
|
||||
|
||||
use crate::env::Env;
|
||||
use azure_core::error::{ErrorKind, ResultExt};
|
||||
use std::sync::Arc;
|
||||
|
|
|
@ -1,3 +1,6 @@
|
|||
// Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
// Licensed under the MIT License.
|
||||
|
||||
use super::options;
|
||||
#[cfg(not(target_arch = "wasm32"))]
|
||||
use crate::AzureCliCredential;
|
||||
|
|
|
@ -1,3 +1,6 @@
|
|||
// Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
// Licensed under the MIT License.
|
||||
|
||||
use crate::{ImdsId, ImdsManagedIdentityCredential, TokenCredentialOptions};
|
||||
use azure_core::{
|
||||
auth::{AccessToken, TokenCredential},
|
||||
|
|
|
@ -1,3 +1,6 @@
|
|||
// Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
// Licensed under the MIT License.
|
||||
|
||||
use crate::{
|
||||
federated_credentials_flow, token_credentials::cache::TokenCache, TokenCredentialOptions,
|
||||
};
|
||||
|
|
|
@ -1 +1,2 @@
|
|||
|
||||
// Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
// Licensed under the MIT License.
|
||||
|
|
|
@ -1 +1,2 @@
|
|||
|
||||
// Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
// Licensed under the MIT License.
|
||||
|
|
|
@ -1 +1,2 @@
|
|||
|
||||
// Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
// Licensed under the MIT License.
|
||||
|
|
|
@ -1,3 +1,6 @@
|
|||
// Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
// Licensed under the MIT License.
|
||||
|
||||
mod blob_client;
|
||||
mod blob_container_client;
|
||||
mod blob_service_client;
|
||||
|
|
|
@ -1 +1,4 @@
|
|||
// Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
// Licensed under the MIT License.
|
||||
|
||||
mod clients;
|
||||
|
|
|
@ -1 +1,2 @@
|
|||
|
||||
// Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
// Licensed under the MIT License.
|
||||
|
|
Загрузка…
Ссылка в новой задаче