@@ -69,14 +69,11 @@ following operations:
69
69
- Construct a ``MongoClientSettings`` instance using the
70
70
``MongoClientSettings.Builder`` class.
71
71
- Specify a server to connect to using a ``ServerAddress`` instance.
72
- - Instantiate a ``MongoClient`` using the ``MongoClients .create()`` method
72
+ - Instantiate a ``MongoClient`` using the ``MongoClient .create()`` method
73
73
and pass your ``MongoClientSettings`` instance as a parameter.
74
74
75
- .. literalinclude:: /includes/fundamentals/code-snippets/StableApiExample.java
76
- :start-after: start serverAPIVersion
77
- :end-before: end serverAPIVersion
78
- :language: java
79
- :dedent:
75
+ .. literalinclude:: /examples/generated/StableApiTest.snippet.connect-to-stable-api.kt
76
+ :language: kotlin
80
77
81
78
.. warning::
82
79
@@ -95,14 +92,14 @@ following operations:
95
92
For more information on the methods and classes referenced in this
96
93
section, see the following API Documentation:
97
94
98
- - `ServerApi <{+api+}/apidocs/mongodb-driver-core/com/mongodb/ServerApi.html >`__
99
- - `ServerApi.Builder <{+api+}/apidocs/mongodb-driver-core/com/mongodb/ServerApi.Builder.html >`__
100
- - `ServerApiVersion <{+api+}/apidocs/mongodb-driver-core/com/mongodb/ServerApiVersion.html >`__
101
- - `ServerAddress <{+api+}/apidocs/mongodb-driver-core/com/mongodb/ServerAddress.html >`__
102
- - `MongoClientSettings <{+api+}/apidocs/mongodb-driver-core/com/mongodb/MongoClientSettings.html >`__
103
- - `MongoClientSettings.Builder <{+api+}/apidocs/mongodb-driver-core/com/mongodb/MongoClientSettings.Builder.html >`__
104
- - `MongoClients .create() <{+api+}/apidocs/mongodb-driver-sync/com/mongodb/client/MongoClients.html#create(com.mongodb.MongoClientSettings )>`__
105
- - `MongoClient <{+api+}/apidocs/mongodb-driver-sync/com/mongodb/client/MongoClient.html >`__
95
+ - `ServerApi <TODO:(DOCSP-29169) >`__
96
+ - `ServerApi.Builder <TODO:(DOCSP-29169) >`__
97
+ - `ServerApiVersion <TODO:(DOCSP-29169) >`__
98
+ - `ServerAddress <TODO:(DOCSP-29169) >`__
99
+ - `MongoClientSettings <TODO:(DOCSP-29169) >`__
100
+ - `MongoClientSettings.Builder <TODO:(DOCSP-29169) >`__
101
+ - `MongoClient .create() <TODO:(DOCSP-29169 )>`__
102
+ - `MongoClient <TODO:(DOCSP-29169) >`__
106
103
107
104
.. _versioned-api-options:
108
105
.. _stable-api-options:
@@ -134,15 +131,12 @@ described in the following table.
134
131
The following example shows how you can set the two options on an instance
135
132
of ``ServerApi`` by chaining methods on the ``ServerApi.Builder``:
136
133
137
- .. literalinclude:: /includes/fundamentals/code-snippets/StableApiExample.java
138
- :start-after: start apiVersionOptions
139
- :end-before: end apiVersionOptions
140
- :language: java
141
- :dedent:
134
+ .. literalinclude:: /examples/generated/StableApiTest.snippet.stable-api-settings.kt
135
+ :language: kotlin
142
136
143
137
For more information on the options in this section, see the following
144
138
API Documentation:
145
139
146
- - `strict() <{+api+}/apidocs/mongodb-driver-core/com/mongodb/ServerApi.Builder.html#strict(boolean )>`__
147
- - `deprecationErrors() <{+api+}/apidocs/mongodb-driver-core/com/mongodb/ServerApi.Builder.html# >`__
140
+ - `strict() <TODO:(DOCSP-29169 )>`__
141
+ - `deprecationErrors() <TODO:(DOCSP-29169) >`__
148
142
0 commit comments