/** * Returns an option to specify a filter. * * <p>Filter rules are case insensitive. The fields eligible for filtering are: * <ul> * <li>name * <li>project ID * <li>labels.key, where key is the name of a label * </ul> * * <p>You can specify multiple filters by adding a space between each filter. Multiple filters * are composed using "and". * * <p>Some examples of filters: * <ul> * <li> name:* The project has a name. * <li> name:Howl The project's name is Howl or howl. * <li> name:HOWL Equivalent to above. * <li> NAME:howl Equivalent to above. * <li> labels.color:* The project has the label color. * <li> labels.color:red The project's label color has the value red. * <li> labels.color:red label.size:big The project's label color has the value red and its * label size has the value big. * </ul> */ public static ProjectListOption filter(String filter) { return new ProjectListOption(ResourceManagerRpc.Option.FILTER, filter); }
/** * Returns an option to specify the project's fields to be returned by the RPC call. * * <p>If this option is not provided all project fields are returned. * {@code ProjectListOption.fields} can be used to specify only the fields of interest. Project * ID is always returned, even if not specified. {@link ProjectField} provides a list of fields * that can be used. */ public static ProjectListOption fields(ProjectField... fields) { return new ProjectListOption(ResourceManagerRpc.Option.FIELDS, Helper.listSelector("projects", ProjectField.REQUIRED_FIELDS, fields)); } }
/** * The maximum number of projects to return per RPC. * * <p>The server can return fewer projects than requested. When there are more results than the * page size, the server will return a page token that can be used to fetch other results. */ public static ProjectListOption pageSize(int pageSize) { return new ProjectListOption(ResourceManagerRpc.Option.PAGE_SIZE, pageSize); }
/** * Returns an option to specify a page token. * * <p>The page token (returned from a previous call to list) indicates from where listing should * continue. */ public static ProjectListOption pageToken(String pageToken) { return new ProjectListOption(ResourceManagerRpc.Option.PAGE_TOKEN, pageToken); }
/** * Returns an option to specify a filter. * * <p>Filter rules are case insensitive. The fields eligible for filtering are: * * <ul> * <li>name * <li>project ID * <li>labels.key, where key is the name of a label * </ul> * * <p>You can specify multiple filters by adding a space between each filter. Multiple filters * are composed using "and". * * <p>Some examples of filters: * * <ul> * <li>name:* The project has a name. * <li>name:Howl The project's name is Howl or howl. * <li>name:HOWL Equivalent to above. * <li>NAME:howl Equivalent to above. * <li>labels.color:* The project has the label color. * <li>labels.color:red The project's label color has the value red. * <li>labels.color:red label.size:big The project's label color has the value red and its * label size has the value big. * </ul> */ public static ProjectListOption filter(String filter) { return new ProjectListOption(ResourceManagerRpc.Option.FILTER, filter); }
/** * Returns an option to specify the project's fields to be returned by the RPC call. * * <p>If this option is not provided all project fields are returned. {@code * ProjectListOption.fields} can be used to specify only the fields of interest. Project ID is * always returned, even if not specified. {@link ProjectField} provides a list of fields that * can be used. */ public static ProjectListOption fields(ProjectField... fields) { return new ProjectListOption( ResourceManagerRpc.Option.FIELDS, Helper.listSelector("projects", ProjectField.REQUIRED_FIELDS, fields)); } }
/** * The maximum number of projects to return per RPC. * * <p>The server can return fewer projects than requested. When there are more results than the * page size, the server will return a page token that can be used to fetch other results. */ public static ProjectListOption pageSize(int pageSize) { return new ProjectListOption(ResourceManagerRpc.Option.PAGE_SIZE, pageSize); }
/** * Returns an option to specify a page token. * * <p>The page token (returned from a previous call to list) indicates from where listing should * continue. */ public static ProjectListOption pageToken(String pageToken) { return new ProjectListOption(ResourceManagerRpc.Option.PAGE_TOKEN, pageToken); }