Skip to content

Commit eea5fd6

Browse files
authored
align storage key name to documentation (#844)
1 parent 58806e4 commit eea5fd6

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

56 files changed

+177
-177
lines changed

sdk/data_cosmos/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ impl<'a> azure_data_cosmos::CosmosEntity<'a> for MySampleStruct {
3737
// 1. Create 10 documents in the collection.
3838
#[tokio::main]
3939
async fn main() -> azure_core::Result<()> {
40-
// Let's get Cosmos account and master key from env variables.
40+
// Let's get Cosmos account and access key from env variables.
4141
let primary_key =
4242
std::env::var("COSMOS_PRIMARY_KEY").expect("Set env variable COSMOS_PRIMARY_KEY first!");
4343
let account = std::env::var("COSMOS_ACCOUNT").expect("Set env variable COSMOS_ACCOUNT first!");

sdk/data_cosmos/examples/cancellation.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ use tokio::time::{Duration, Instant};
66
#[tokio::main]
77
async fn main() -> azure_core::Result<()> {
88
env_logger::init();
9-
// First we retrieve the account name and master key from environment variables, and
9+
// First we retrieve the account name and access key from environment variables, and
1010
// create an authorization token.
1111
let account = std::env::var("COSMOS_ACCOUNT").expect("Set env variable COSMOS_ACCOUNT first!");
1212
let primary_key =

sdk/data_cosmos/examples/collection.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ use futures::stream::StreamExt;
33

44
#[tokio::main]
55
async fn main() -> azure_core::Result<()> {
6-
// First we retrieve the account name and master key from environment variables.
7-
// We expect master keys (ie, not resource constrained)
6+
// First we retrieve the account name and access key from environment variables.
7+
// We expect access keys (ie, not resource constrained)
88
let primary_key =
99
std::env::var("COSMOS_PRIMARY_KEY").expect("Set env variable COSMOS_PRIMARY_KEY first!");
1010
let account = std::env::var("COSMOS_ACCOUNT").expect("Set env variable COSMOS_ACCOUNT first!");

sdk/data_cosmos/examples/create_delete_database.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ use futures::stream::StreamExt;
33

44
#[tokio::main]
55
async fn main() -> azure_core::Result<()> {
6-
// First we retrieve the account name and master key from environment variables.
7-
// We expect master keys (ie, not resource constrained)
6+
// First we retrieve the account name and access key from environment variables.
7+
// We expect access keys (ie, not resource constrained)
88
let primary_key =
99
std::env::var("COSMOS_PRIMARY_KEY").expect("Set env variable COSMOS_PRIMARY_KEY first!");
1010
let account = std::env::var("COSMOS_ACCOUNT").expect("Set env variable COSMOS_ACCOUNT first!");

sdk/data_cosmos/examples/database_00.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ use serde_json::Value;
44

55
#[tokio::main]
66
async fn main() -> azure_core::Result<()> {
7-
// First we retrieve the account name and master key from environment variables.
8-
// We expect master keys (ie, not resource constrained)
7+
// First we retrieve the account name and access key from environment variables.
8+
// We expect access keys (ie, not resource constrained)
99
let primary_key =
1010
std::env::var("COSMOS_PRIMARY_KEY").expect("Set env variable COSMOS_PRIMARY_KEY first!");
1111
let account = std::env::var("COSMOS_ACCOUNT").expect("Set env variable COSMOS_ACCOUNT first!");

sdk/data_cosmos/examples/database_01.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ use futures::stream::StreamExt;
33

44
#[tokio::main]
55
async fn main() -> azure_core::Result<()> {
6-
// First we retrieve the account name and master key from environment variables.
7-
// We expect master keys (ie, not resource constrained)
6+
// First we retrieve the account name and access key from environment variables.
7+
// We expect access keys (ie, not resource constrained)
88
let primary_key =
99
std::env::var("COSMOS_PRIMARY_KEY").expect("Set env variable COSMOS_PRIMARY_KEY first!");
1010
let account = std::env::var("COSMOS_ACCOUNT").expect("Set env variable COSMOS_ACCOUNT first!");

sdk/data_cosmos/examples/document_00.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ const COLLECTION: &str = "azuresdktc";
3333
// 4. Delete everything.
3434
#[tokio::main]
3535
async fn main() -> azure_core::Result<()> {
36-
// Let's get Cosmos account and master key from env variables.
36+
// Let's get Cosmos account and access key from env variables.
3737
// This helps automated testing.
3838
let primary_key =
3939
std::env::var("COSMOS_PRIMARY_KEY").expect("Set env variable COSMOS_PRIMARY_KEY first!");

sdk/data_cosmos/examples/get_database.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ use azure_data_cosmos::prelude::*;
66

77
#[tokio::main]
88
async fn main() -> azure_core::Result<()> {
9-
// First we retrieve the account name and master key from environment variables.
10-
// We expect master keys (ie, not resource constrained)
9+
// First we retrieve the account name and access key from environment variables.
10+
// We expect access keys (ie, not resource constrained)
1111
let primary_key =
1212
std::env::var("COSMOS_PRIMARY_KEY").expect("Set env variable COSMOS_PRIMARY_KEY first!");
1313
let account = std::env::var("COSMOS_ACCOUNT").expect("Set env variable COSMOS_ACCOUNT first!");

sdk/data_cosmos/examples/permission_00.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ use futures::StreamExt;
33

44
#[tokio::main]
55
async fn main() -> azure_core::Result<()> {
6-
// First we retrieve the account name and master key from environment variables.
7-
// We expect master keys (ie, not resource constrained)
6+
// First we retrieve the account name and access key from environment variables.
7+
// We expect access keys (ie, not resource constrained)
88
let primary_key =
99
std::env::var("COSMOS_PRIMARY_KEY").expect("Set env variable COSMOS_PRIMARY_KEY first!");
1010
let account = std::env::var("COSMOS_ACCOUNT").expect("Set env variable COSMOS_ACCOUNT first!");

sdk/data_cosmos/examples/readme.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ impl azure_data_cosmos::CosmosEntity for MySampleStruct {
3232
// 5. Check the remaining documents.
3333
#[tokio::main]
3434
async fn main() -> azure_core::Result<()> {
35-
// Let's get Cosmos account and master key from env variables.
35+
// Let's get Cosmos account and access key from env variables.
3636
// This helps automated testing.
3737
let primary_key =
3838
std::env::var("COSMOS_PRIMARY_KEY").expect("Set env variable COSMOS_PRIMARY_KEY first!");

0 commit comments

Comments
 (0)