diff --git a/sdk/cosmos/azure_data_cosmos/examples/cosmos_metadata.rs b/sdk/cosmos/azure_data_cosmos/examples/cosmos_metadata.rs index 691d1b1707..ea40b71a74 100644 --- a/sdk/cosmos/azure_data_cosmos/examples/cosmos_metadata.rs +++ b/sdk/cosmos/azure_data_cosmos/examples/cosmos_metadata.rs @@ -1,3 +1,6 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + use azure_data_cosmos::{ clients::{ContainerClientMethods, DatabaseClientMethods}, CosmosClient, CosmosClientMethods, diff --git a/sdk/cosmos/azure_data_cosmos/examples/cosmos_query.rs b/sdk/cosmos/azure_data_cosmos/examples/cosmos_query.rs index b82a3fc3fd..f89b36be92 100644 --- a/sdk/cosmos/azure_data_cosmos/examples/cosmos_query.rs +++ b/sdk/cosmos/azure_data_cosmos/examples/cosmos_query.rs @@ -1,3 +1,6 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + use azure_data_cosmos::{ clients::{ContainerClientMethods, DatabaseClientMethods}, CosmosClient, CosmosClientMethods, diff --git a/sdk/cosmos/azure_data_cosmos/src/clients/container_client.rs b/sdk/cosmos/azure_data_cosmos/src/clients/container_client.rs index b920007492..d78a239a0a 100644 --- a/sdk/cosmos/azure_data_cosmos/src/clients/container_client.rs +++ b/sdk/cosmos/azure_data_cosmos/src/clients/container_client.rs @@ -1,3 +1,6 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + use crate::{ constants, models::{ContainerProperties, QueryResults}, diff --git a/sdk/cosmos/azure_data_cosmos/src/clients/cosmos_client.rs b/sdk/cosmos/azure_data_cosmos/src/clients/cosmos_client.rs index 6e1ddb8efb..625cbea024 100644 --- a/sdk/cosmos/azure_data_cosmos/src/clients/cosmos_client.rs +++ b/sdk/cosmos/azure_data_cosmos/src/clients/cosmos_client.rs @@ -1,3 +1,6 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + use crate::clients::DatabaseClient; use crate::pipeline::{AuthorizationPolicy, CosmosPipeline}; use crate::CosmosClientOptions; diff --git a/sdk/cosmos/azure_data_cosmos/src/clients/database_client.rs b/sdk/cosmos/azure_data_cosmos/src/clients/database_client.rs index 6118bd8a05..c7a88a1057 100644 --- a/sdk/cosmos/azure_data_cosmos/src/clients/database_client.rs +++ b/sdk/cosmos/azure_data_cosmos/src/clients/database_client.rs @@ -1,3 +1,6 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + use crate::clients::ContainerClient; use crate::models::DatabaseProperties; use crate::options::ReadDatabaseOptions; diff --git a/sdk/cosmos/azure_data_cosmos/src/clients/mod.rs b/sdk/cosmos/azure_data_cosmos/src/clients/mod.rs index 482d3d7475..92ed5fcb77 100644 --- a/sdk/cosmos/azure_data_cosmos/src/clients/mod.rs +++ b/sdk/cosmos/azure_data_cosmos/src/clients/mod.rs @@ -1,3 +1,6 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + //! Clients used to communicate with Azure Cosmos DB mod container_client; diff --git a/sdk/cosmos/azure_data_cosmos/src/constants.rs b/sdk/cosmos/azure_data_cosmos/src/constants.rs index 57a8ac8e2d..870322659f 100644 --- a/sdk/cosmos/azure_data_cosmos/src/constants.rs +++ b/sdk/cosmos/azure_data_cosmos/src/constants.rs @@ -1,3 +1,6 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + // Don't spell-check header names (which should start with 'x-'). // cSpell:ignoreRegExp /x-[^\s]+/ diff --git a/sdk/cosmos/azure_data_cosmos/src/lib.rs b/sdk/cosmos/azure_data_cosmos/src/lib.rs index 311bc9ae16..c8e5fa89e0 100644 --- a/sdk/cosmos/azure_data_cosmos/src/lib.rs +++ b/sdk/cosmos/azure_data_cosmos/src/lib.rs @@ -1,3 +1,6 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + #![doc = include_str!("../README.md")] // Docs.rs build is done with the nightly compiler, so we can enable nightly features in that build. // In this case we enable two features: diff --git a/sdk/cosmos/azure_data_cosmos/src/models/mod.rs b/sdk/cosmos/azure_data_cosmos/src/models/mod.rs index 5d1fd0401e..5cb7055d2b 100644 --- a/sdk/cosmos/azure_data_cosmos/src/models/mod.rs +++ b/sdk/cosmos/azure_data_cosmos/src/models/mod.rs @@ -1,3 +1,6 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + //! Model types sent to and received from the Cosmos DB API. use azure_core::{ diff --git a/sdk/cosmos/azure_data_cosmos/src/options/cosmos_client_options.rs b/sdk/cosmos/azure_data_cosmos/src/options/cosmos_client_options.rs index baba80d1b5..c0b5ced17e 100644 --- a/sdk/cosmos/azure_data_cosmos/src/options/cosmos_client_options.rs +++ b/sdk/cosmos/azure_data_cosmos/src/options/cosmos_client_options.rs @@ -1,3 +1,6 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + use azure_core::{builders::ClientOptionsBuilder, ClientOptions}; /// Options used when creating a [`CosmosClient`](crate::CosmosClient). diff --git a/sdk/cosmos/azure_data_cosmos/src/options/mod.rs b/sdk/cosmos/azure_data_cosmos/src/options/mod.rs index 3cd8cb5ff3..106350c143 100644 --- a/sdk/cosmos/azure_data_cosmos/src/options/mod.rs +++ b/sdk/cosmos/azure_data_cosmos/src/options/mod.rs @@ -1,3 +1,6 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + mod cosmos_client_options; mod query_items_options; mod read_container_options; diff --git a/sdk/cosmos/azure_data_cosmos/src/options/query_items_options.rs b/sdk/cosmos/azure_data_cosmos/src/options/query_items_options.rs index 458eee9c0b..e2c06fdf64 100644 --- a/sdk/cosmos/azure_data_cosmos/src/options/query_items_options.rs +++ b/sdk/cosmos/azure_data_cosmos/src/options/query_items_options.rs @@ -1,3 +1,6 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + #[cfg(doc)] use crate::clients::ContainerClientMethods; diff --git a/sdk/cosmos/azure_data_cosmos/src/options/read_container_options.rs b/sdk/cosmos/azure_data_cosmos/src/options/read_container_options.rs index 2636dff2dc..291b2a0e56 100644 --- a/sdk/cosmos/azure_data_cosmos/src/options/read_container_options.rs +++ b/sdk/cosmos/azure_data_cosmos/src/options/read_container_options.rs @@ -1,3 +1,6 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + #[cfg(doc)] use crate::clients::ContainerClientMethods; diff --git a/sdk/cosmos/azure_data_cosmos/src/options/read_database_options.rs b/sdk/cosmos/azure_data_cosmos/src/options/read_database_options.rs index 9b224bd8d2..cc9fda2e52 100644 --- a/sdk/cosmos/azure_data_cosmos/src/options/read_database_options.rs +++ b/sdk/cosmos/azure_data_cosmos/src/options/read_database_options.rs @@ -1,3 +1,6 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + #[cfg(doc)] use crate::clients::DatabaseClientMethods; diff --git a/sdk/cosmos/azure_data_cosmos/src/partition_key.rs b/sdk/cosmos/azure_data_cosmos/src/partition_key.rs index 47c8eccfaf..d0b5d204f4 100644 --- a/sdk/cosmos/azure_data_cosmos/src/partition_key.rs +++ b/sdk/cosmos/azure_data_cosmos/src/partition_key.rs @@ -1,3 +1,6 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + use crate::NullValue; /// Specifies a partition key value, usually used when querying a specific partition. diff --git a/sdk/cosmos/azure_data_cosmos/src/pipeline/authorization_policy.rs b/sdk/cosmos/azure_data_cosmos/src/pipeline/authorization_policy.rs index 39cc9bcc4a..0acb8abe42 100644 --- a/sdk/cosmos/azure_data_cosmos/src/pipeline/authorization_policy.rs +++ b/sdk/cosmos/azure_data_cosmos/src/pipeline/authorization_policy.rs @@ -1,3 +1,6 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + //! Defines Cosmos DB's unique Authentication Policy. //! //! The Cosmos DB data plane doesn't use a standard `Authorization: Bearer` header for authentication. diff --git a/sdk/cosmos/azure_data_cosmos/src/pipeline/mod.rs b/sdk/cosmos/azure_data_cosmos/src/pipeline/mod.rs index c8733cfc74..e1d6bfbc84 100644 --- a/sdk/cosmos/azure_data_cosmos/src/pipeline/mod.rs +++ b/sdk/cosmos/azure_data_cosmos/src/pipeline/mod.rs @@ -1,3 +1,6 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + mod authorization_policy; use std::sync::Arc; diff --git a/sdk/cosmos/azure_data_cosmos/src/query.rs b/sdk/cosmos/azure_data_cosmos/src/query.rs index f39cb9c8e6..7e4b7a8048 100644 --- a/sdk/cosmos/azure_data_cosmos/src/query.rs +++ b/sdk/cosmos/azure_data_cosmos/src/query.rs @@ -1,3 +1,6 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + use serde::Serialize; /// Represents a Cosmos DB Query, with optional parameters. diff --git a/sdk/cosmos/azure_data_cosmos/src/utils.rs b/sdk/cosmos/azure_data_cosmos/src/utils.rs index 0070214bb2..e3b494777b 100644 --- a/sdk/cosmos/azure_data_cosmos/src/utils.rs +++ b/sdk/cosmos/azure_data_cosmos/src/utils.rs @@ -1,3 +1,6 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + use url::Url; pub trait WithAddedPathSegments {