Skip to content

Commit

Permalink
copyright headers, copyright headers everywhere
Browse files Browse the repository at this point in the history
  • Loading branch information
analogrelay authored Sep 19, 2024
1 parent 7223f81 commit 4b44745
Show file tree
Hide file tree
Showing 19 changed files with 57 additions and 0 deletions.
3 changes: 3 additions & 0 deletions sdk/cosmos/azure_data_cosmos/examples/cosmos_metadata.rs
Original file line number Diff line number Diff line change
@@ -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,
Expand Down
3 changes: 3 additions & 0 deletions sdk/cosmos/azure_data_cosmos/examples/cosmos_query.rs
Original file line number Diff line number Diff line change
@@ -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,
Expand Down
3 changes: 3 additions & 0 deletions sdk/cosmos/azure_data_cosmos/src/clients/container_client.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.

use crate::{
constants,
models::{ContainerProperties, QueryResults},
Expand Down
3 changes: 3 additions & 0 deletions sdk/cosmos/azure_data_cosmos/src/clients/cosmos_client.rs
Original file line number Diff line number Diff line change
@@ -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;
Expand Down
3 changes: 3 additions & 0 deletions sdk/cosmos/azure_data_cosmos/src/clients/database_client.rs
Original file line number Diff line number Diff line change
@@ -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;
Expand Down
3 changes: 3 additions & 0 deletions sdk/cosmos/azure_data_cosmos/src/clients/mod.rs
Original file line number Diff line number Diff line change
@@ -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;
Expand Down
3 changes: 3 additions & 0 deletions sdk/cosmos/azure_data_cosmos/src/constants.rs
Original file line number Diff line number Diff line change
@@ -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]+/

Expand Down
3 changes: 3 additions & 0 deletions sdk/cosmos/azure_data_cosmos/src/lib.rs
Original file line number Diff line number Diff line change
@@ -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:
Expand Down
3 changes: 3 additions & 0 deletions sdk/cosmos/azure_data_cosmos/src/models/mod.rs
Original file line number Diff line number Diff line change
@@ -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::{
Expand Down
Original file line number Diff line number Diff line change
@@ -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).
Expand Down
3 changes: 3 additions & 0 deletions sdk/cosmos/azure_data_cosmos/src/options/mod.rs
Original file line number Diff line number Diff line change
@@ -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;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.

#[cfg(doc)]
use crate::clients::ContainerClientMethods;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.

#[cfg(doc)]
use crate::clients::ContainerClientMethods;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.

#[cfg(doc)]
use crate::clients::DatabaseClientMethods;

Expand Down
3 changes: 3 additions & 0 deletions sdk/cosmos/azure_data_cosmos/src/partition_key.rs
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
3 changes: 3 additions & 0 deletions sdk/cosmos/azure_data_cosmos/src/pipeline/mod.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.

mod authorization_policy;

use std::sync::Arc;
Expand Down
3 changes: 3 additions & 0 deletions sdk/cosmos/azure_data_cosmos/src/query.rs
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
3 changes: 3 additions & 0 deletions sdk/cosmos/azure_data_cosmos/src/utils.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.

use url::Url;

pub trait WithAddedPathSegments {
Expand Down

0 comments on commit 4b44745

Please sign in to comment.