new-integration-tests/src/test/java/oracle/weblogic/kubernetes/actions/impl/primitive/Kubernetes.java
public static V1ClusterRoleList listClusterRoles(String labelSelector) throws ApiException {
    V1ClusterRoleList roles;
    try {
      roles = rbacAuthApi.listClusterRole(
              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.
              labelSelector, // 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 roles;
  }
/**
   * List cluster roles in the Kubernetes cluster.
   *
   * @param labelSelector labels to narrow the list
   * @return V1ClusterRoleList list of {@link V1ClusterRole} objects
   * @throws ApiException when listing fails
   */
List cluster roles in the Kubernetes cluster.
@param labelSelector labels to narrow the list
@return V1ClusterRoleList list of  V1ClusterRole objects
@throws ApiException when listing fails
List cluster roles in the Kubernetes cluster . @param labelSelector labels to narrow the list @return V1ClusterRoleList list of V1ClusterRole objects @throws ApiException when listing fails
public static V1ClusterRoleList listClusterRoles(String labelSelector) throws ApiException {
    V1ClusterRoleList roles;
    try {
      roles = rbacAuthApi.listClusterRole(
              PRETTY, 
              ALLOW_WATCH_BOOKMARKS, 
              null, 
              null, 
              labelSelector, 
              null, 
              RESOURCE_VERSION, 
              TIMEOUT_SECONDS, 
              Boolean.FALSE 
      );
    } catch (ApiException apex) {
      getLogger().warning(apex.getResponseBody());
      throw apex;
    }
    return roles;
  }
public static V1ClusterRoleList listClusterRoles ( String labelSelector ) throws ApiException { V1ClusterRoleList roles ; try { roles = rbacAuthApi . listClusterRole ( PRETTY , ALLOW_WATCH_BOOKMARKS , null , null , labelSelector , null , RESOURCE_VERSION , TIMEOUT_SECONDS , Boolean . FALSE ) ; } catch ( ApiException apex ) { getLogger ( ) . warning ( apex . getResponseBody ( ) ) ; throw apex ; } return roles ; }
List cluster roles in the Kubernetes cluster.
List cluster roles in the Kubernetes cluster .
// 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.