new-integration-tests/src/test/java/oracle/weblogic/kubernetes/actions/impl/primitive/Kubernetes.java
public static V1PersistentVolumeList listPersistentVolumes(String labels) throws ApiException {
    V1PersistentVolumeList listPersistentVolume;
    try {
      listPersistentVolume = coreV1Api.listPersistentVolume(
              PRETTY, // pretty print output
              ALLOW_WATCH_BOOKMARKS, // allowWatchBookmarks requests watch events with type "BOOKMARK"
              null, // set when retrieving more results from the server
              null, // selector to restrict the list of returned objects by their fields
              labels, // selector to restrict the list of returned objects by their labels
              null, // maximum number of responses to return for a list call
              RESOURCE_VERSION, // shows changes that occur after that particular version of a resource
              TIMEOUT_SECONDS, // Timeout for the list/watch call
              false // Watch for changes to the described resources
      );
    } catch (ApiException apex) {
      getLogger().severe(apex.getResponseBody());
      throw apex;
    }
    return listPersistentVolume;
  }
/**
   * List persistent volumes in the Kubernetes cluster based on the label.
   * @param labels String containing the labels the PV is decorated with
   * @return V1PersistentVolumeList list of Persistent Volumes
   * @throws ApiException when listing fails
   */
List persistent volumes in the Kubernetes cluster based on the label.
@param labels String containing the labels the PV is decorated with
@return V1PersistentVolumeList list of Persistent Volumes
@throws ApiException when listing fails
List persistent volumes in the Kubernetes cluster based on the label . @param labels String containing the labels the PV is decorated with @return V1PersistentVolumeList list of Persistent Volumes @throws ApiException when listing fails
public static V1PersistentVolumeList listPersistentVolumes(String labels) throws ApiException {
    V1PersistentVolumeList listPersistentVolume;
    try {
      listPersistentVolume = coreV1Api.listPersistentVolume(
              PRETTY, 
              ALLOW_WATCH_BOOKMARKS, 
              null, 
              null, 
              labels, 
              null, 
              RESOURCE_VERSION, 
              TIMEOUT_SECONDS, 
              false 
      );
    } catch (ApiException apex) {
      getLogger().severe(apex.getResponseBody());
      throw apex;
    }
    return listPersistentVolume;
  }
public static V1PersistentVolumeList listPersistentVolumes ( String labels ) throws ApiException { V1PersistentVolumeList listPersistentVolume ; try { listPersistentVolume = coreV1Api . listPersistentVolume ( PRETTY , ALLOW_WATCH_BOOKMARKS , null , null , labels , null , RESOURCE_VERSION , TIMEOUT_SECONDS , false ) ; } catch ( ApiException apex ) { getLogger ( ) . severe ( apex . getResponseBody ( ) ) ; throw apex ; } return listPersistentVolume ; }
List persistent volumes in the Kubernetes cluster based on the label.
List persistent volumes in the Kubernetes cluster based on the label .
// pretty print output // allowWatchBookmarks requests watch events with type "BOOKMARK" // set when retrieving more results from the server // selector to restrict the list of returned objects by their fields // selector to restrict the list of returned objects by their labels // maximum number of responses to return for a list call // shows changes that occur after that particular version of a resource // Timeout for the list/watch call // Watch for changes to the described resources