Skip to content

Commit 6b48bf8

Browse files
authored
Merge pull request #57946 from SnehaGunda/partitioningdocs
Deleting file and updating links
2 parents 0ed09f9 + 6417dd8 commit 6b48bf8

8 files changed

+17
-472
lines changed

.openpublishing.redirection.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7859,6 +7859,11 @@
78597859
"redirect_url": "/azure/cosmos-db/enable-multi-master",
78607860
"redirect_document_id": false
78617861
},
7862+
{
7863+
"source_path": "articles/cosmos-db/sql-api-resources.md",
7864+
"redirect_url": "/azure/cosmos-db/databases-containers-items",
7865+
"redirect_document_id": false
7866+
},
78627867
{
78637868
"source_path": "articles/cosmos-db/multi-master-oss-nosql.md",
78647869
"redirect_url": "/azure/cosmos-db/consistency-levels-across-apis",

articles/cosmos-db/TOC.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,8 +101,6 @@
101101
href: unique-keys.md
102102
- name: Transactions and optimistic concurrency
103103
href: database-transactions-optimistic-concurrency.md
104-
- name: Resource model
105-
href: sql-api-resources.md
106104
- name: Global distribution
107105
items:
108106
- name: Overview

articles/cosmos-db/sql-api-async-java-get-started.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ client = new AsyncDocumentClient.Builder()
112112

113113
## <a id="CreateDatabase"></a>Step 5: Create a database
114114

115-
Your Azure Cosmos DB [database](sql-api-resources.md#databases) can be created by using the createDatabaseIfNotExists() method of the DocumentClient class. A database is the logical container of JSON document storage partitioned across collections.
115+
Your Azure Cosmos DB [database](databases-containers-items.md#azure-cosmos-databases) can be created by using the createDatabaseIfNotExists() method of the DocumentClient class. A database is the logical container of JSON document storage partitioned across collections.
116116

117117
```java
118118
private void createDatabaseIfNotExists() throws Exception
@@ -199,7 +199,7 @@ private void createDocumentCollectionIfNotExists() throws Exception
199199

200200
## <a id="CreateDoc"></a>Step 7: Create JSON documents
201201

202-
A [document](sql-api-resources.md#documents) can be created by using the createDocument method of the DocumentClient class. Documents are user-defined (arbitrary) JSON content. We can now insert one or more documents. The "src/main/java/com/microsoft/azure/cosmosdb/sample/Families.java" file defines the family JSON documents
202+
A document can be created by using the createDocument method of the DocumentClient class. Documents are user-defined (arbitrary) JSON content. We can now insert one or more documents. The "src/main/java/com/microsoft/azure/cosmosdb/sample/Families.java" file defines the family JSON documents
203203

204204
```java
205205
public static Family getJohnsonFamilyDocument() {

articles/cosmos-db/sql-api-dotnetcore-get-started.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ private void WriteToConsoleAndPromptToContinue(string format, params object[] ar
186186
}
187187
```
188188

189-
Your Azure Cosmos DB [database](sql-api-resources.md#databases) can be created by using the [CreateDatabaseAsync](https://msdn.microsoft.com/library/microsoft.azure.documents.client.documentclient.createdatabaseasync.aspx) method of the **DocumentClient** class. A database is the logical container of JSON document storage partitioned across collections.
189+
Your Azure Cosmos DB [database](databases-containers-items.md#azure-cosmos-databases) can be created by using the [CreateDatabaseAsync](https://msdn.microsoft.com/library/microsoft.azure.documents.client.documentclient.createdatabaseasync.aspx) method of the **DocumentClient** class. A database is the logical container of JSON document storage partitioned across collections.
190190
191191
Copy and paste the following code to your **GetStartedDemo** method underneath the client creation. This creates a database named *FamilyDB*.
192192

@@ -208,7 +208,7 @@ Congratulations! You have successfully created an Azure Cosmos DB database.
208208
> [!WARNING]
209209
> **CreateDocumentCollectionAsync** creates a new collection with reserved throughput, which has pricing implications. For more details, please visit our [pricing page](https://azure.microsoft.com/pricing/details/cosmos-db/).
210210
211-
A [collection](sql-api-resources.md#collections) can be created by using the [CreateDocumentCollectionAsync](https://msdn.microsoft.com/library/microsoft.azure.documents.client.documentclient.createdocumentcollectionasync.aspx) method of the **DocumentClient** class. A collection is a container of JSON documents and associated JavaScript application logic.
211+
A collection can be created by using the [CreateDocumentCollectionAsync](https://msdn.microsoft.com/library/microsoft.azure.documents.client.documentclient.createdocumentcollectionasync.aspx) method of the **DocumentClient** class. A collection is a container of JSON documents and associated JavaScript application logic.
212212
213213
Copy and paste the following code to your **GetStartedDemo** method underneath the database creation. This code creates a document collection named *FamilyCollection_oa*.
214214

@@ -227,7 +227,7 @@ Congratulations! You have successfully created an Azure Cosmos DB document colle
227227

228228
## <a id="CreateDoc"></a>Step 6: Create JSON documents
229229

230-
A [document](sql-api-resources.md#documents) can be created by using the [CreateDocumentAsync](https://msdn.microsoft.com/library/microsoft.azure.documents.client.documentclient.createdocumentasync.aspx) method of the **DocumentClient** class. Documents are user-defined (arbitrary) JSON content. We can now insert one or more documents. If you already have data you'd like to store in your database, you can use Azure Cosmos DB's [Data Migration tool](import-data.md).
230+
A document can be created by using the [CreateDocumentAsync](https://msdn.microsoft.com/library/microsoft.azure.documents.client.documentclient.createdocumentasync.aspx) method of the **DocumentClient** class. Documents are user-defined (arbitrary) JSON content. We can now insert one or more documents. If you already have data you'd like to store in your database, you can use Azure Cosmos DB's [Data Migration tool](import-data.md).
231231
232232
First, you will create a **Family** class that represents objects stored within Azure Cosmos DB. You will also create **Parent**, **Child**, **Pet**, **Address** subclasses that are used within **Family**. The documents must have an **Id** property serialized as **id** in JSON. Create these classes by adding the following internal subclasses after the **GetStartedDemo** method.
233233

articles/cosmos-db/sql-api-get-started.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ Copy and paste the **WriteToConsoleAndPromptToContinue** method after the **GetS
164164
Console.ReadKey();
165165
}
166166

167-
Your Azure Cosmos DB [database](sql-api-resources.md#databases) can be created by using the [CreateDatabaseIfNotExistsAsync](https://msdn.microsoft.com/library/microsoft.azure.documents.client.documentclient.createdatabaseifnotexistsasync.aspx) method of the **DocumentClient** class. A database is the logical container of JSON document storage partitioned across collections.
167+
Your Azure Cosmos DB [database](databases-containers-items.md#azure-cosmos-databases) can be created by using the [CreateDatabaseIfNotExistsAsync](https://msdn.microsoft.com/library/microsoft.azure.documents.client.documentclient.createdatabaseifnotexistsasync.aspx) method of the **DocumentClient** class. A database is the logical container of JSON document storage partitioned across collections.
168168

169169
Copy and paste the following code to your **GetStartedDemo** method after the client creation. This will create a database named *FamilyDB*.
170170

@@ -185,7 +185,7 @@ Congratulations! You have successfully created an Azure Cosmos DB database.
185185
>
186186
>
187187
188-
A [collection](sql-api-resources.md#collections) can be created by using the [CreateDocumentCollectionIfNotExistsAsync](https://msdn.microsoft.com/library/microsoft.azure.documents.client.documentclient.createdocumentcollectionifnotexistsasync.aspx) method of the **DocumentClient** class. A collection is a container of JSON documents and associated JavaScript application logic.
188+
A collection can be created by using the [CreateDocumentCollectionIfNotExistsAsync](https://msdn.microsoft.com/library/microsoft.azure.documents.client.documentclient.createdocumentcollectionifnotexistsasync.aspx) method of the **DocumentClient** class. A collection is a container of JSON documents and associated JavaScript application logic.
189189

190190
Copy and paste the following code to your **GetStartedDemo** method after the database creation. This will create a document collection named *FamilyCollection*.
191191

@@ -201,7 +201,7 @@ Press **F5** to run your application.
201201
Congratulations! You have successfully created an Azure Cosmos DB document collection.
202202

203203
## <a id="CreateDoc"></a>Step 6: Create JSON documents
204-
A [document](sql-api-resources.md#documents) can be created by using the [CreateDocumentAsync](https://msdn.microsoft.com/library/microsoft.azure.documents.client.documentclient.createdocumentasync.aspx) method of the **DocumentClient** class. Documents are user defined (arbitrary) JSON content. We can now insert one or more documents. If you already have data you'd like to store in your database, you can use the Azure Cosmos DB [Data Migration tool](import-data.md) to import the data into a database.
204+
A document can be created by using the [CreateDocumentAsync](https://msdn.microsoft.com/library/microsoft.azure.documents.client.documentclient.createdocumentasync.aspx) method of the **DocumentClient** class. Documents are user defined (arbitrary) JSON content. We can now insert one or more documents. If you already have data you'd like to store in your database, you can use the Azure Cosmos DB [Data Migration tool](import-data.md) to import the data into a database.
205205

206206
First, we need to create a **Family** class that will represent objects stored within Azure Cosmos DB in this sample. We will also create **Parent**, **Child**, **Pet**, **Address** subclasses that are used within **Family**. Note that documents must have an **Id** property serialized as **id** in JSON. Create these classes by adding the following internal sub-classes after the **GetStartedDemo** method.
207207

articles/cosmos-db/sql-api-java-get-started.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ In the Azure Portal, navigate to your Azure Cosmos DB account, and then click **
8787
![Screen shot of the Azure Portal used by the NoSQL tutorial to create a Java console application. Shows an Azure Cosmos DB account, with the ACTIVE hub highlighted, the KEYS button highlighted on the Azure Cosmos DB account blade, and the URI, PRIMARY KEY and SECONDARY KEY values highlighted on the Keys blade][keys]
8888

8989
## Step 4: Create a database
90-
Your Azure Cosmos DB [database](sql-api-resources.md#databases) can be created by using the [createDatabase](/java/api/com.microsoft.azure.documentdb._document_client.createdatabase) method of the **DocumentClient** class. A database is the logical container of JSON document storage partitioned across collections.
90+
Your Azure Cosmos DB [database](databases-containers-items.md#azure-cosmos-databases) can be created by using the [createDatabase](/java/api/com.microsoft.azure.documentdb._document_client.createdatabase) method of the **DocumentClient** class. A database is the logical container of JSON document storage partitioned across collections.
9191

9292
Database database = new Database();
9393
database.setId("familydb");
@@ -99,7 +99,7 @@ Your Azure Cosmos DB [database](sql-api-resources.md#databases) can be created b
9999
>
100100
>
101101
102-
A [collection](sql-api-resources.md#collections) can be created by using the [createCollection](/java/api/com.microsoft.azure.documentdb._document_client.createcollection) method of the **DocumentClient** class. A collection is a container of JSON documents and associated JavaScript application logic.
102+
A collection can be created by using the [createCollection](/java/api/com.microsoft.azure.documentdb._document_client.createcollection) method of the **DocumentClient** class. A collection is a container of JSON documents and associated JavaScript application logic.
103103

104104

105105
DocumentCollection collectionInfo = new DocumentCollection();
@@ -113,7 +113,7 @@ A [collection](sql-api-resources.md#collections) can be created by using the [cr
113113
this.client.createCollection("/dbs/familydb", collectionInfo, requestOptions);
114114

115115
## <a id="CreateDoc"></a>Step 6: Create JSON documents
116-
A [document](sql-api-resources.md#documents) can be created by using the [createDocument](/java/api/com.microsoft.azure.documentdb._document_client.createdocument) method of the **DocumentClient** class. Documents are user-defined (arbitrary) JSON content. We can now insert one or more documents. If you already have data you'd like to store in your database, you can use Azure Cosmos DB's [Data Migration tool](import-data.md) to import the data into a database.
116+
A document can be created by using the [createDocument](/java/api/com.microsoft.azure.documentdb._document_client.createdocument) method of the **DocumentClient** class. Documents are user-defined (arbitrary) JSON content. We can now insert one or more documents. If you already have data you'd like to store in your database, you can use Azure Cosmos DB's [Data Migration tool](import-data.md) to import the data into a database.
117117

118118
// Insert your Java objects as documents
119119
Family andersenFamily = new Family();

articles/cosmos-db/sql-api-nodejs-get-started.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@ Now that you have the code to initialize the Azure Cosmos DB client, let's take
214214
const containerId = config.container.id;
215215
```
216216

217-
A [database](sql-api-resources.md#databases) can be created by using either the [createIfNotExists](/javascript/api/%40azure/cosmos/databases) or [create](/javascript/api/%40azure/cosmos/databases) function of the **Databases** class. A database is the logical container of items partitioned across containers.
217+
A database can be created by using either the [createIfNotExists](/javascript/api/%40azure/cosmos/databases) or [create](/javascript/api/%40azure/cosmos/databases) function of the **Databases** class. A database is the logical container of items partitioned across containers.
218218

219219
2. Copy and paste the **createDatabase** and **readDatabase** methods into the app.js file under the ```databaseId``` and ```containerId``` definition. The **createDatabase** function will create a new database with id ```FamilyDatabase```, specified from the ```config``` object if it does not already exist. The **readDatabase** function will read the database's definition to ensure that the database exists.
220220

0 commit comments

Comments
 (0)