@Generated public class AppsAPI extends Object
| Constructor and Description |
|---|
AppsAPI(ApiClient apiClient)
Regular-use constructor
|
AppsAPI(AppsService mock)
Constructor for mocks
|
public AppsAPI(ApiClient apiClient)
public AppsAPI(AppsService mock)
public App waitGetAppIdle(String name) throws TimeoutException
TimeoutExceptionpublic App waitGetAppIdle(String name, Duration timeout, Consumer<App> callback) throws TimeoutException
TimeoutExceptionpublic AppDeployment waitGetDeploymentAppSucceeded(String appName, String deploymentId) throws TimeoutException
TimeoutExceptionpublic AppDeployment waitGetDeploymentAppSucceeded(String appName, String deploymentId, Duration timeout, Consumer<AppDeployment> callback) throws TimeoutException
TimeoutExceptionpublic Wait<App,App> create(CreateAppRequest request)
Creates a new app.
public void delete(String name)
public void delete(DeleteAppRequest request)
Deletes an app.
public Wait<AppDeployment,AppDeployment> deploy(String appName, String sourceCodePath)
public Wait<AppDeployment,AppDeployment> deploy(CreateAppDeploymentRequest request)
Creates an app deployment for the app with the supplied name.
public App get(GetAppRequest request)
Retrieves information for the app with the supplied name.
public AppDeployment getDeployment(String appName, String deploymentId)
public AppDeployment getDeployment(GetAppDeploymentRequest request)
Retrieves information for the app deployment with the supplied name and deployment id.
public GetAppPermissionLevelsResponse getPermissionLevels(String appName)
public GetAppPermissionLevelsResponse getPermissionLevels(GetAppPermissionLevelsRequest request)
Gets the permission levels that a user can have on an object.
public AppPermissions getPermissions(String appName)
public AppPermissions getPermissions(GetAppPermissionsRequest request)
Gets the permissions of an app. Apps can inherit permissions from their root object.
public Iterable<App> list(ListAppsRequest request)
Lists all apps in the workspace.
public Iterable<AppDeployment> listDeployments(String appName)
public Iterable<AppDeployment> listDeployments(ListAppDeploymentsRequest request)
Lists all app deployments for the app with the supplied name.
public AppPermissions setPermissions(String appName)
public AppPermissions setPermissions(AppPermissionsRequest request)
Sets permissions on an app. Apps can inherit permissions from their root object.
public Wait<AppDeployment,AppDeployment> start(String name)
public Wait<AppDeployment,AppDeployment> start(StartAppRequest request)
Start the last active deployment of the app in the workspace.
public void stop(String name)
public void stop(StopAppRequest request)
Stops the active deployment of the app in the workspace.
public App update(UpdateAppRequest request)
Updates the app with the supplied name.
public AppPermissions updatePermissions(String appName)
public AppPermissions updatePermissions(AppPermissionsRequest request)
Updates the permissions on an app. Apps can inherit permissions from their root object.
public AppsService impl()
Copyright © 2024. All rights reserved.