new-integration-tests/src/test/java/oracle/weblogic/kubernetes/assertions/impl/Kubernetes.java
public static V1JobList listJobs(String namespace, String labelSelectors)
      throws ApiException {
    V1JobList list;
    try {
      BatchV1Api apiInstance = new BatchV1Api(apiClient);
      list = apiInstance.listNamespacedJob(
          namespace, // String | name of the namespace.
          null, // String | pretty print output.
          null, // Boolean | allowWatchBookmarks requests watch events with type "BOOKMARK".
          null, // String | The continue option should be set when retrieving more results from the server.
          null, // String | A selector to restrict the list of returned objects by their fields.
          labelSelectors, // String | A selector to restrict the list of returned objects by their labels.
          null, // Integer | limit is a maximum number of responses to return for a list call.
          "", // String | Shows changes that occur after that particular version of a resource.
          5, // Integer | Timeout for the list/watch call.
          Boolean.FALSE // Boolean | Watch for changes to the described resources
      );
    } catch (ApiException apex) {
      getLogger().warning(apex.getResponseBody());
      throw apex;
    }
    return list;
  }
/**
   * List jobs in the given namespace.
   *
   * @param namespace in which to list the jobs
   * @param labelSelectors labels to narrow the list of jobs
   * @return V1JobList list of {@link V1Job} from Kubernetes cluster
   * @throws ApiException when list fails
   */
List jobs in the given namespace.
@param namespace in which to list the jobs
@param labelSelectors labels to narrow the list of jobs
@return V1JobList list of  V1Job from Kubernetes cluster
@throws ApiException when list fails
List jobs in the given namespace . @param namespace in which to list the jobs @param labelSelectors labels to narrow the list of jobs @return V1JobList list of V1Job from Kubernetes cluster @throws ApiException when list fails
public static V1JobList listJobs(String namespace, String labelSelectors)
      throws ApiException {
    V1JobList list;
    try {
      BatchV1Api apiInstance = new BatchV1Api(apiClient);
      list = apiInstance.listNamespacedJob(
          namespace, 
          null, 
          null, 
          null, 
          null, 
          labelSelectors, 
          null, 
          "", 
          5, 
          Boolean.FALSE 
      );
    } catch (ApiException apex) {
      getLogger().warning(apex.getResponseBody());
      throw apex;
    }
    return list;
  }
public static V1JobList listJobs ( String namespace , String labelSelectors ) throws ApiException { V1JobList list ; try { BatchV1Api apiInstance = new BatchV1Api ( apiClient ) ; list = apiInstance . listNamespacedJob ( namespace , null , null , null , null , labelSelectors , null , "" , 5 , Boolean . FALSE ) ; } catch ( ApiException apex ) { getLogger ( ) . warning ( apex . getResponseBody ( ) ) ; throw apex ; } return list ; }
List jobs in the given namespace.
List jobs in the given namespace .
// String | name of the namespace. // String | pretty print output. // Boolean | allowWatchBookmarks requests watch events with type "BOOKMARK". // String | The continue option should be set when retrieving more results from the server. // String | A selector to restrict the list of returned objects by their fields. // String | A selector to restrict the list of returned objects by their labels. // Integer | limit is a maximum number of responses to return for a list call. // String | Shows changes that occur after that particular version of a resource. // Integer | Timeout for the list/watch call. // Boolean | Watch for changes to the described resources