3131 */
3232public interface Dns extends Service <DnsOptions > {
3333
34+
35+
3436 /**
3537 * The fields of a project.
3638 *
3739 * <p>These values can be used to specify the fields to include in a partial response when calling
38- * {@code Dns#getProjectInfo(ProjectGetOption...)}. Project ID is always returned, even if
39- * not specified.
40+ * {@code Dns#getProjectInfo(ProjectGetOption...)}. Project ID is always returned, even if not
41+ * specified.
4042 */
4143 enum ProjectField {
4244 PROJECT_ID ("id" ),
@@ -67,8 +69,8 @@ static String selector(ProjectField... fields) {
6769 * The fields of a zone.
6870 *
6971 * <p>These values can be used to specify the fields to include in a partial response when calling
70- * {@code Dns#getZone(BigInteger, ZoneFieldOption ...)} or {@code Dns#getZone(String,
71- * ZoneFieldOption...)}. The ID is always returned, even if not specified.
72+ * {@code Dns#getZone(BigInteger, ZoneOption ...)} or {@code Dns#getZone(String, ZoneOption...)}.
73+ * The ID is always returned, even if not specified.
7274 */
7375 enum ZoneField {
7476 CREATION_TIME ("creationTime" ),
@@ -104,8 +106,8 @@ static String selector(ZoneField... fields) {
104106 *
105107 * <p>These values can be used to specify the fields to include in a partial response when calling
106108 * {@code Dns#listDnsRecords(BigInteger, DnsRecordListOption...)} or {@code
107- * Dns#listDnsRecords(String, DnsRecordListOption...)}. The name is always returned even if
108- * not selected.
109+ * Dns#listDnsRecords(String, DnsRecordListOption...)}. The name is always returned even if not
110+ * selected.
109111 */
110112 enum DnsRecordField {
111113 DNS_RECORDS ("rrdatas" ),
@@ -137,9 +139,9 @@ static String selector(DnsRecordField... fields) {
137139 * The fields of a change request.
138140 *
139141 * <p>These values can be used to specify the fields to include in a partial response when calling
140- * {@code Dns#applyChangeRequest(ChangeRequest, BigInteger, ChangeRequestOption...)}
141- * or {@code Dns#applyChangeRequest(ChangeRequest, String, ChangeRequestOption...)}
142- * The ID is always returned even if not selected.
142+ * {@code Dns#applyChangeRequest(ChangeRequest, BigInteger, ChangeRequestOption...)} or {@code
143+ * Dns#applyChangeRequest(ChangeRequest, String, ChangeRequestOption...)} The ID is always
144+ * returned even if not selected.
143145 */
144146 enum ChangeRequestField {
145147 ID ("id" ),
@@ -168,24 +170,6 @@ static String selector(ChangeRequestField... fields) {
168170 }
169171 }
170172
171- /**
172- * The sorting keys for listing change requests. The only currently supported sorting key is the
173- * when the change request was created.
174- */
175- enum ChangeRequestSortingKey {
176- TIME_CREATED ("changeSequence" );
177-
178- private final String selector ;
179-
180- ChangeRequestSortingKey (String selector ) {
181- this .selector = selector ;
182- }
183-
184- String selector () {
185- return selector ;
186- }
187- }
188-
189173 /**
190174 * The sorting order for listing.
191175 */
@@ -261,24 +245,23 @@ public static DnsRecordListOption type(DnsRecord.Type type) {
261245 /**
262246 * Class for specifying zone field options.
263247 */
264- class ZoneFieldOption extends AbstractOption implements Serializable {
248+ class ZoneOption extends AbstractOption implements Serializable {
265249
266250 private static final long serialVersionUID = -8065564464895945037L ;
267251
268- ZoneFieldOption (DnsRpc .Option option , Object value ) {
252+ ZoneOption (DnsRpc .Option option , Object value ) {
269253 super (option , value );
270254 }
271255
272256 /**
273257 * Returns an option to specify the zones's fields to be returned by the RPC call.
274258 *
275- * <p>If this option is not provided all zone fields are returned. {@code
276- * ZoneFieldOption.fields} can be used to specify only the fields of interest. Zone ID is always
277- * returned, even if not specified. {@link ZoneField} provides a list of fields that can be
278- * used.
259+ * <p>If this option is not provided all zone fields are returned. {@code ZoneOption.fields} can
260+ * be used to specify only the fields of interest. Zone ID is always returned, even if not
261+ * specified. {@link ZoneField} provides a list of fields that can be used.
279262 */
280- public static ZoneFieldOption fields (ZoneField ... fields ) {
281- return new ZoneFieldOption (DnsRpc .Option .FIELDS , ZoneField .selector (fields ));
263+ public static ZoneOption fields (ZoneField ... fields ) {
264+ return new ZoneOption (DnsRpc .Option .FIELDS , ZoneField .selector (fields ));
282265 }
283266 }
284267
@@ -296,10 +279,9 @@ class ZoneListOption extends AbstractOption implements Serializable {
296279 /**
297280 * Returns an option to specify the zones's fields to be returned by the RPC call.
298281 *
299- * <p>If this option is not provided all zone fields are returned. {@code
300- * ZoneFieldOption.fields} can be used to specify only the fields of interest. Zone ID is always
301- * returned, even if not specified. {@link ZoneField} provides a list of fields that can be
302- * used.
282+ * <p>If this option is not provided all zone fields are returned. {@code ZoneOption.fields} can
283+ * be used to specify only the fields of interest. Zone ID is always returned, even if not
284+ * specified. {@link ZoneField} provides a list of fields that can be used.
303285 */
304286 public static ZoneListOption fields (ZoneField ... fields ) {
305287 return new ZoneListOption (DnsRpc .Option .FIELDS , ZoneField .selector (fields ));
@@ -366,9 +348,9 @@ class ChangeRequestOption extends AbstractOption implements Serializable {
366348 * service.
367349 *
368350 * <p>If this option is not provided all change request fields are returned. {@code
369- * ChangeRequestOption.fields} can be used to specify only the fields of interest. The ID
370- * of the change request is always returned, even if not specified. {@link ChangeRequestField}
371- * provides a list of fields that can be used.
351+ * ChangeRequestOption.fields} can be used to specify only the fields of interest. The ID of the
352+ * change request is always returned, even if not specified. {@link ChangeRequestField} provides
353+ * a list of fields that can be used.
372354 */
373355 public static ChangeRequestOption fields (ChangeRequestField ... fields ) {
374356 return new ChangeRequestOption (
@@ -394,9 +376,9 @@ class ChangeRequestListOption extends AbstractOption implements Serializable {
394376 * service.
395377 *
396378 * <p>If this option is not provided all change request fields are returned. {@code
397- * ChangeRequestOption.fields} can be used to specify only the fields of interest. The ID
398- * of the change request is always returned, even if not specified. {@link ChangeRequestField}
399- * provides a list of fields that can be used.
379+ * ChangeRequestOption.fields} can be used to specify only the fields of interest. The ID of the
380+ * change request is always returned, even if not specified. {@link ChangeRequestField} provides
381+ * a list of fields that can be used.
400382 */
401383 public static ChangeRequestListOption fields (ChangeRequestField ... fields ) {
402384 return new ChangeRequestListOption (
@@ -427,16 +409,10 @@ public static ChangeRequestListOption pageSize(int pageSize) {
427409 }
428410
429411 /**
430- * Returns an option for specifying the sorting criterion of change requests. Note the the only
431- * currently supported criterion is the change sequence.
432- */
433- public static ChangeRequestListOption sortBy (ChangeRequestSortingKey key ) {
434- return new ChangeRequestListOption (DnsRpc .Option .SORTING_KEY , key .selector ());
435- }
436-
437- /**
438- * Returns an option to specify whether the the change requests should be listed in ascending or
439- * descending order.
412+ * Returns an option to specify whether the the change requests should be listed in ascending
413+ * (most-recent last) or descending (most-recent first) order with respect to when the change
414+ * request was accepted by the server. If this option is not provided, the listing order is
415+ * undefined.
440416 */
441417 public static ChangeRequestListOption sortOrder (SortingOrder order ) {
442418 return new ChangeRequestListOption (DnsRpc .Option .SORTING_ORDER , order .selector ());
0 commit comments