1616
1717package com .google .cloud .spanner ;
1818
19+ import com .google .api .gax .longrunning .OperationFuture ;
1920import com .google .api .gax .paging .Page ;
2021import com .google .cloud .spanner .Options .ListOption ;
2122import com .google .spanner .admin .instance .v1 .CreateInstanceMetadata ;
@@ -51,29 +52,30 @@ public interface InstanceAdminClient {
5152 * upon completion of this request:
5253 *
5354 * <ul>
54- * <li> The instance is readable via the API, with all requested attributes but no allocated
55+ * <li>The instance is readable via the API, with all requested attributes but no allocated
5556 * resources.
56- * <li> Its state is {@code CREATING}.
57+ * <li>Its state is {@code CREATING}.
5758 * </ul>
5859 *
5960 * Until completion of the returned operation:
6061 *
6162 * <ul>
62- * <li> Cancelling the operation renders the instance immediately unreadable via the API.
63- * <li> The instance can be deleted.
64- * <li> All other attempts to modify the instance are rejected.
63+ * <li>Cancelling the operation renders the instance immediately unreadable via the API.
64+ * <li>The instance can be deleted.
65+ * <li>All other attempts to modify the instance are rejected.
6566 * </ul>
6667 *
6768 * Upon completion of the returned operation:
6869 *
6970 * <ul>
70- * <li> Billing for all successfully-allocated resources begins (some types may have lower than
71+ * <li>Billing for all successfully-allocated resources begins (some types may have lower than
7172 * the requested levels).
72- * <li> Databases can be created in the instance.
73- * <li> The instance's allocated resource levels are readable via the
73+ * <li>Databases can be created in the instance.
74+ * <li>The instance's allocated resource levels are readable via the
7475 * </ul>
7576 *
7677 * <!--SNIPPET instance_admin_client_create_instance-->
78+ *
7779 * <pre>{@code
7880 * final String instanceId = my_instance_id;
7981 * final String configId = my_config_id;
@@ -88,9 +90,10 @@ public interface InstanceAdminClient {
8890 * .build());
8991 * op.waitFor();
9092 * }</pre>
93+ *
9194 * <!--SNIPPET instance_admin_client_create_instance-->
9295 */
93- Operation <Instance , CreateInstanceMetadata > createInstance (InstanceInfo instance )
96+ OperationFuture <Instance , CreateInstanceMetadata > createInstance (InstanceInfo instance )
9497 throws SpannerException ;
9598
9699 /** Gets an instance. */
@@ -142,31 +145,32 @@ Operation<Instance, CreateInstanceMetadata> createInstance(InstanceInfo instance
142145 * <p>Immediately upon completion of this request:
143146 *
144147 * <ul>
145- * <li> For resource types for which a decrease in the instance's allocation has been requested,
148+ * <li>For resource types for which a decrease in the instance's allocation has been requested,
146149 * billing is based on the newly-requested level.
147150 * </ul>
148151 *
149152 * Until completion of the returned operation:
150153 *
151154 * <ul>
152- * <li> Cancelling the operation sets its metadata's
155+ * <li>Cancelling the operation sets its metadata's
153156 * [cancel_time][UpdateInstanceMetadata.cancel_time], and begins restoring resources to
154157 * their pre-request values. The operation is guaranteed to succeed at undoing all resource
155158 * changes, after which point it terminates with a `CANCELLED` status.
156- * <li> All other attempts to modify the instance are rejected.
157- * <li> Reading the instance via the API continues to give the pre-request resource levels.
159+ * <li>All other attempts to modify the instance are rejected.
160+ * <li>Reading the instance via the API continues to give the pre-request resource levels.
158161 * </ul>
159162 *
160163 * Upon completion of the returned operation:
161164 *
162165 * <ul>
163- * <li> Billing begins for all successfully-allocated resources (some types may have lower than
166+ * <li>Billing begins for all successfully-allocated resources (some types may have lower than
164167 * the requested levels).
165- * <li> All newly-reserved resources are available for serving the instance's tables.
166- * <li> The instance's new resource levels are readable via the API.
168+ * <li>All newly-reserved resources are available for serving the instance's tables.
169+ * <li>The instance's new resource levels are readable via the API.
167170 * </ul>
168171 *
169172 * <!--SNIPPET instance_admin_client_update_instance-->
173+ *
170174 * <pre>{@code
171175 * Instance instance = my_instance;
172176 * final String clientProject = my_client_project;
@@ -184,9 +188,10 @@ Operation<Instance, CreateInstanceMetadata> createInstance(InstanceInfo instance
184188 * instanceAdminClient.updateInstance(toUpdate, InstanceInfo.InstanceField.DISPLAY_NAME);
185189 * op.waitFor().getResult();
186190 * }</pre>
191+ *
187192 * <!--SNIPPET instance_admin_client_update_instance-->
188193 */
189- Operation <Instance , UpdateInstanceMetadata > updateInstance (
194+ OperationFuture <Instance , UpdateInstanceMetadata > updateInstance (
190195 InstanceInfo instance , InstanceInfo .InstanceField ... fieldsToUpdate );
191196
192197 /** Returns a builder for {@code Instance} object with the given id. */
0 commit comments