new-integration-tests/src/test/java/oracle/weblogic/kubernetes/actions/impl/primitive/Kubernetes.java
public static V1DeploymentList listDeployments(String namespace) throws ApiException {
    V1DeploymentList deployments;
    try {
      AppsV1Api apiInstance = new AppsV1Api(apiClient);
      deployments = apiInstance.listNamespacedDeployment(
              namespace, // String | namespace.
              PRETTY, // String | If 'true', then the output is pretty printed.
              ALLOW_WATCH_BOOKMARKS, // 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.
              null, // 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.
              RESOURCE_VERSION, // String | Shows changes that occur after that particular version of a resource.
              TIMEOUT_SECONDS, // Integer | Timeout for the list call.
              Boolean.FALSE // Boolean | Watch for changes to the described resources.
      );

    } catch (ApiException apex) {
      getLogger().warning(apex.getResponseBody());
      throw apex;
    }
    return deployments;
  }
/**
   * List deployments in the given namespace.
   *
   * @param namespace namespace in which to list the deployments
   * @return list of deployment objects as {@link V1DeploymentList}
   * @throws ApiException when listing fails
   */
List deployments in the given namespace.
@param namespace namespace in which to list the deployments
@return list of deployment objects as  V1DeploymentList
@throws ApiException when listing fails
List deployments in the given namespace . @param namespace namespace in which to list the deployments @return list of deployment objects as V1DeploymentList @throws ApiException when listing fails
public static V1DeploymentList listDeployments(String namespace) throws ApiException {
    V1DeploymentList deployments;
    try {
      AppsV1Api apiInstance = new AppsV1Api(apiClient);
      deployments = apiInstance.listNamespacedDeployment(
              namespace, 
              PRETTY, 
              ALLOW_WATCH_BOOKMARKS, 
              null, 
              null, 
              null, 
              null, 
              RESOURCE_VERSION, 
              TIMEOUT_SECONDS, 
              Boolean.FALSE 
      );
    } catch (ApiException apex) {
      getLogger().warning(apex.getResponseBody());
      throw apex;
    }
    return deployments;
  }
public static V1DeploymentList listDeployments ( String namespace ) throws ApiException { V1DeploymentList deployments ; try { AppsV1Api apiInstance = new AppsV1Api ( apiClient ) ; deployments = apiInstance . listNamespacedDeployment ( namespace , PRETTY , ALLOW_WATCH_BOOKMARKS , null , null , null , null , RESOURCE_VERSION , TIMEOUT_SECONDS , Boolean . FALSE ) ; } catch ( ApiException apex ) { getLogger ( ) . warning ( apex . getResponseBody ( ) ) ; throw apex ; } return deployments ; }
List deployments in the given namespace.
List deployments in the given namespace .
// String | namespace. // String | If 'true', then the output is pretty printed. // 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 call. // Boolean | Watch for changes to the described resources.