Skip to content

Commit 33e6ea5

Browse files
add tabs (#1372)
1 parent 163f3e9 commit 33e6ea5

File tree

24 files changed

+567
-4
lines changed

24 files changed

+567
-4
lines changed

source/core/queryable-encryption/quick-start.txt

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,11 @@ Before You Get Started
7474

7575
`Complete Go Application <{+sample-app-url-qe+}go-fle-2/local/reader/>`__
7676

77+
.. tab:: C#
78+
:tabid: csharp
79+
80+
`Complete C# Application <{+sample-app-url-qe+}dotnet-fle-2/local/reader/>`__
81+
7782

7883
.. tabs-selector:: drivers
7984

@@ -123,6 +128,12 @@ Procedure
123128
To view the complete code for making a {+dek-long+}, see
124129
`our Github repository <{+sample-app-url-qe+}go-fle-2/local/reader/make-data-key.go>`__.
125130

131+
.. tab::
132+
:tabid: csharp
133+
134+
To view the complete code for making a {+dek-long+}, see
135+
`our Github repository <{+sample-app-url-qe+}dotnet-fle-2/local/reader/CSFLE/MakeDataKey.cs>`__.
136+
126137

127138
.. step:: Configure your MongoClient for Encrypted Reads and Writes
128139

@@ -160,6 +171,12 @@ Procedure
160171
To view the complete code for inserting an encrypted document, see
161172
`our Github repository <{+sample-app-url-qe+}go-fle-2/local/reader/insert-encrypted-document.go>`__.
162173

174+
.. tab::
175+
:tabid: csharp
176+
177+
To view the complete code for inserting an encrypted document, see
178+
`our Github repository <{+sample-app-url-qe+}dotnet-fle-2/local/reader/CSFLE/InsertEncryptedDocument.cs>`__.
179+
163180

164181
.. step:: Retrieve Your Encrypted Document
165182

@@ -193,6 +210,12 @@ Procedure
193210
To view the complete code for finding an encrypted document, see
194211
`our Github repository <{+sample-app-url-qe+}go-fle-2/local/reader/insert-encrypted-document.go>`__.
195212

213+
.. tab::
214+
:tabid: csharp
215+
216+
To view the complete code for finding an encrypted document, see
217+
`our Github repository <{+sample-app-url-qe+}dotnet-fle-2/local/reader/CSFLE/InsertEncryptedDocument.cs>`__.
218+
196219

197220
Learn More
198221
----------

source/core/queryable-encryption/tutorials/aws/aws-automatic.txt

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,11 @@ Before You Get Started
5757

5858
`Complete Go Application <{+sample-app-url-qe+}go-fle-2/aws/reader/>`__
5959

60+
.. tab:: C#
61+
:tabid: csharp
62+
63+
`Complete C# Application <{+sample-app-url-qe+}dotnet-fle-2/aws/reader/>`__
64+
6065

6166
.. tabs-selector:: drivers
6267

@@ -117,6 +122,12 @@ Create the Application
117122
To view the complete code for making a {+dek-long+}, see
118123
`our Github repository <{+sample-app-url-qe+}go-fle-2/aws/reader/make-data-key.go>`__.
119124

125+
.. tab::
126+
:tabid: csharp
127+
128+
To view the complete code for making a {+dek-long+}, see
129+
`our Github repository <{+sample-app-url-qe+}dotnet-fle-2/aws/reader/CSFLE/MakeDataKey.cs>`__.
130+
120131

121132
.. step:: Configure your MongoClient for Encrypted Reads and Writes
122133

@@ -154,6 +165,12 @@ Create the Application
154165
To view the complete code for inserting an encrypted document, see
155166
`our Github repository <{+sample-app-url-qe+}go-fle-2/aws/reader/insert-encrypted-document.go>`__.
156167

168+
.. tab::
169+
:tabid: csharp
170+
171+
To view the complete code for inserting an encrypted document, see
172+
`our Github repository <{+sample-app-url-qe+}dotnet-fle-2/aws/reader/CSFLE/InsertEncryptedDocument.cs>`__.
173+
157174

158175
.. step:: Retrieve Your Encrypted Document
159176

@@ -187,6 +204,12 @@ Create the Application
187204
To view the complete code for finding an encrypted document, see
188205
`our Github repository <{+sample-app-url-qe+}go-fle-2/aws/reader/insert-encrypted-document.go>`__.
189206

207+
.. tab::
208+
:tabid: csharp
209+
210+
To view the complete code for finding an encrypted document, see
211+
`our Github repository <{+sample-app-url-qe+}dotnet-fle-2/aws/reader/CSFLE/InsertEncryptedDocument.cs>`__.
212+
190213

191214

192215
Learn More

source/core/queryable-encryption/tutorials/azure/azure-automatic.txt

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,11 @@ Before You Get Started
5757

5858
`Complete Go Application <{+sample-app-url-qe+}go-fle-2/azure/reader/>`__
5959

60+
.. tab:: C#
61+
:tabid: csharp
62+
63+
`Complete C# Application <{+sample-app-url-qe+}dotnet-fle-2/azure/reader/>`__
64+
6065

6166
.. tabs-selector:: drivers
6267

@@ -116,6 +121,12 @@ Create the Application
116121
To view the complete code for making a {+dek-long+}, see
117122
`our Github repository <{+sample-app-url-qe+}go-fle-2/azure/reader/make-data-key.go>`__.
118123

124+
.. tab::
125+
:tabid: csharp
126+
127+
To view the complete code for making a {+dek-long+}, see
128+
`our Github repository <{+sample-app-url-qe+}dotnet-fle-2/azure/reader/CSFLE/MakeDataKey.cs>`__.
129+
119130

120131
.. step:: Configure your MongoClient for Encrypted Reads and Writes
121132

@@ -153,6 +164,12 @@ Create the Application
153164
To view the complete code for inserting an encrypted document, see
154165
`our Github repository <{+sample-app-url-qe+}go-fle-2/azure/reader/insert-encrypted-document.go>`__.
155166

167+
.. tab::
168+
:tabid: csharp
169+
170+
To view the complete code for inserting an encrypted document, see
171+
`our Github repository <{+sample-app-url-qe+}dotnet-fle-2/azure/reader/CSFLE/InsertEncryptedDocument.cs>`__.
172+
156173

157174
.. step:: Retrieve Your Encrypted Document
158175

@@ -186,6 +203,12 @@ Create the Application
186203
To view the complete code for finding an encrypted document, see
187204
`our Github repository <{+sample-app-url-qe+}go-fle-2/azure/reader/insert-encrypted-document.go>`__.
188205

206+
.. tab::
207+
:tabid: csharp
208+
209+
To view the complete code for finding an encrypted document, see
210+
`our Github repository <{+sample-app-url-qe+}dotnet-fle-2/azure/reader/CSFLE/InsertEncryptedDocument.cs>`__.
211+
189212

190213
Learn More
191214
----------

source/core/queryable-encryption/tutorials/gcp/gcp-automatic.txt

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,11 @@ Before You Get Started
5656

5757
`Complete Go Application <{+sample-app-url-qe+}go-fle-2/gcp/reader/>`__
5858

59+
.. tab:: C#
60+
:tabid: csharp
61+
62+
`Complete Go Application <{+sample-app-url-qe+}dotnet-fle-2/gcp/reader/>`__
63+
5964

6065
.. tabs-selector:: drivers
6166

@@ -119,6 +124,12 @@ your application to see relevant code samples.
119124
To view the complete code for making a {+dek-long+}, see
120125
`our Github repository <{+sample-app-url-qe+}go-fle-2/gcp/reader/make-data-key.go>`__.
121126

127+
.. tab::
128+
:tabid: csharp
129+
130+
To view the complete code for making a {+dek-long+}, see
131+
`our Github repository <{+sample-app-url-qe+}dotnet-fle-2/gcp/reader/CSFLE/MakeDataKey.cs>`__.
132+
122133

123134
.. step:: Configure your MongoClient for Encrypted Reads and Writes
124135

@@ -156,6 +167,12 @@ your application to see relevant code samples.
156167
To view the complete code for inserting an encrypted document, see
157168
`our Github repository <{+sample-app-url-qe+}go-fle-2/gcp/reader/insert-encrypted-document.go>`__.
158169

170+
.. tab::
171+
:tabid: csharp
172+
173+
To view the complete code for inserting an encrypted document, see
174+
`our Github repository <{+sample-app-url-qe+}dotnet-fle-2/gcp/reader/CSFLE/InsertEncryptedDocument.cs>`__.
175+
159176

160177
.. step:: Retrieve Your Encrypted Document
161178

@@ -189,6 +206,12 @@ your application to see relevant code samples.
189206
To view the complete code for finding an encrypted document, see
190207
`our Github repository <{+sample-app-url-qe+}go-fle-2/gcp/reader/insert_encrypted_document.go>`__.
191208

209+
.. tab::
210+
:tabid: csharp
211+
212+
To view the complete code for finding an encrypted document, see
213+
`our Github repository <{+sample-app-url-qe+}dotnet-fle-2/gcp/reader/CSFLE/InsertEncryptedDocument.cs>`__.
214+
192215

193216
Learn More
194217
----------

source/includes/queryable-encryption/quick-start/client.rst

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,16 @@
5050
:dedent:
5151
:caption: insert-encrypted-document.go
5252

53+
.. tab::
54+
:tabid: csharp
55+
56+
.. literalinclude:: /includes/sample_apps/csfle/build/dotnet-fle-2/local/reader/CSFLE/InsertEncryptedDocument.cs
57+
:start-after: start-key-vault
58+
:end-before: end-key-vault
59+
:language: csharp
60+
:dedent:
61+
:caption: InsertEncryptedDocument.cs
62+
5363
.. step:: Specify the Local {+cmk-long+}
5464

5565
Specify the KMS provider and specify your key inline:
@@ -96,6 +106,16 @@
96106
:dedent:
97107
:caption: insert-encrypted-document.go
98108

109+
.. tab::
110+
:tabid: csharp
111+
112+
.. literalinclude:: /includes/sample_apps/csfle/build/dotnet-fle-2/local/reader/CSFLE/InsertEncryptedDocument.cs
113+
:start-after: start-kmsproviders
114+
:end-before: end-kmsproviders
115+
:language: csharp
116+
:dedent:
117+
:caption: InsertEncryptedDocument.cs
118+
99119
.. step:: Create an {+enc-fields-map-title+} For Your Collection
100120

101121
.. _qe-quickstart-encrypted-fields-map:
@@ -142,6 +162,16 @@
142162
:dedent:
143163
:caption: insert-encrypted-document.go
144164

165+
.. tab::
166+
:tabid: csharp
167+
168+
.. literalinclude:: /includes/sample_apps/csfle/build/dotnet-fle-2/local/reader/CSFLE/InsertEncryptedDocument.cs
169+
:start-after: start-schema
170+
:end-before: end-schema
171+
:language: csharp
172+
:dedent:
173+
:caption: InsertEncryptedDocument.cs
174+
145175
.. step:: Specify the Location of the {+shared-library+}
146176

147177
.. _qe-quick-start-shared-lib:
@@ -187,6 +217,16 @@
187217
:language: go
188218
:dedent:
189219
:caption: insert-encrypted-document.go
220+
221+
.. tab::
222+
:tabid: csharp
223+
224+
.. literalinclude:: /includes/sample_apps/csfle/build/dotnet-fle-2/local/reader/CSFLE/InsertEncryptedDocument.cs
225+
:start-after: start-extra-options
226+
:end-before: end-extra-options
227+
:language: csharp
228+
:dedent:
229+
:caption: InsertEncryptedDocument.cs
190230

191231
.. include:: /includes/queryable-encryption/shared-lib-learn-more.rst
192232

@@ -236,3 +276,13 @@
236276
:language: go
237277
:dedent:
238278
:caption: insert-encrypted-document.go
279+
280+
.. tab::
281+
:tabid: csharp
282+
283+
.. literalinclude:: /includes/sample_apps/csfle/build/dotnet-fle-2/local/reader/CSFLE/InsertEncryptedDocument.cs
284+
:start-after: start-client
285+
:end-before: end-client
286+
:language: csharp
287+
:dedent:
288+
:caption: InsertEncryptedDocument.cs

source/includes/queryable-encryption/quick-start/dek.rst

Lines changed: 33 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,17 @@
5555
:end-before: end-kmsproviders
5656
:language: go
5757
:dedent:
58-
:caption: insert-encrypted-document.go
58+
:caption: make-data-key.go
59+
60+
.. tab::
61+
:tabid: csharp
62+
63+
.. literalinclude:: /includes/sample_apps/csfle/build/dotnet-fle-2/local/reader/CSFLE/MakeDataKey.cs
64+
:start-after: start-kmsproviders
65+
:end-before: end-kmsproviders
66+
:language: csharp
67+
:dedent:
68+
:caption: MakeDataKey.cs
5969

6070
.. step:: Create your {+dek-long+}s
6171

@@ -113,7 +123,17 @@
113123
:end-before: end-create-dek
114124
:language: go
115125
:dedent:
116-
:caption: insert-encrypted-document.go
126+
:caption: make-data-key.go
127+
128+
.. tab::
129+
:tabid: csharp
130+
131+
.. literalinclude:: /includes/sample_apps/csfle/build/dotnet-fle-2/local/reader/CSFLE/MakeDataKey.cs
132+
:start-after: start-create-dek
133+
:end-before: end-create-dek
134+
:language: csharp
135+
:dedent:
136+
:caption: MakeDataKey.cs
117137

118138
.. step:: Create Your Encrypted Collection
119139

@@ -160,7 +180,17 @@
160180
:end-before: end-create-enc-collection
161181
:language: go
162182
:dedent:
163-
:caption: insert-encrypted-document.go
183+
:caption: make-data-key.go
184+
185+
.. tab::
186+
:tabid: csharp
187+
188+
.. literalinclude:: /includes/sample_apps/csfle/build/dotnet-fle-2/local/reader/CSFLE/MakeDataKey.cs
189+
:start-after: start-create-enc-collection
190+
:end-before: end-create-enc-collection
191+
:language: csharp
192+
:dedent:
193+
:caption: MakeDataKey.cs
164194

165195
The output from the code in this section should resemble the following:
166196

source/includes/queryable-encryption/quick-start/find.rst

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,16 @@ a client that is not configured for automatic {+qe+}.
4848
:dedent:
4949
:caption: insert-encrypted-document.go
5050

51+
.. tab::
52+
:tabid: csharp
53+
54+
.. literalinclude:: /includes/sample_apps/csfle/build/dotnet-fle-2/local/reader/CSFLE/InsertEncryptedDocument.cs
55+
:start-after: start-find
56+
:end-before: end-find
57+
:language: csharp
58+
:dedent:
59+
:caption: InsertEncryptedDocument.cs
60+
5161
The output of the preceding code snippet should look like this:
5262

5363
.. literalinclude:: /includes/queryable-encryption/quick-start/find-output.out

source/includes/queryable-encryption/quick-start/insert.rst

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,16 @@ snippet:
4747
:dedent:
4848
:caption: insert-encrypted-document.go
4949

50+
.. tab::
51+
:tabid: csharp
52+
53+
.. literalinclude:: /includes/sample_apps/csfle/build/dotnet-fle-2/local/reader/CSFLE/InsertEncryptedDocument.cs
54+
:start-after: start-insert
55+
:end-before: end-insert
56+
:language: csharp
57+
:dedent:
58+
:caption: InsertEncryptedDocument.cs
59+
5060
When you insert a document, your {+qe+} enabled client
5161
encrypts the fields of your document such that it resembles the following:
5262

source/includes/queryable-encryption/quick-start/key-vault-index.rst

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,3 +44,13 @@ Create a unique index on the ``keyAltNames`` field in your
4444
:language: go
4545
:dedent:
4646
:caption: insert-encrypted-document.go
47+
48+
.. tab::
49+
:tabid: csharp
50+
51+
.. literalinclude:: /includes/sample_apps/csfle/build/dotnet-fle-2/local/reader/CSFLE/MakeDataKey.cs
52+
:start-after: start-create-index
53+
:end-before: end-create-index
54+
:language: csharp
55+
:dedent:
56+
:caption: MakeDataKey.cs

0 commit comments

Comments
 (0)