@Deprecated public class LocalResourceManagerHelper extends Object
The mock runs in a separate thread, listening for HTTP requests on the local machine at an ephemeral port. While this mock attempts to simulate the Cloud Resource Manager, there are some divergences in behavior. The following is a non-exhaustive list of some of those behavioral differences:
changeLifecycleState(java.lang.String, java.lang.String)
. Similarly, a project is never completely removed without an
explicit call to the utility method removeProject(java.lang.String)
.
Modifier and Type | Method and Description |
---|---|
boolean |
changeLifecycleState(String projectId,
String lifecycleState)
Deprecated.
Utility method to change the lifecycle state of the specified project.
|
static LocalResourceManagerHelper |
create()
Deprecated.
Creates a
LocalResourceManagerHelper object that listens to requests on the local
machine. |
ResourceManagerOptions |
getOptions()
Deprecated.
Returns a
ResourceManagerOptions instance that sets the host to use the mock server. |
boolean |
removeProject(String projectId)
Deprecated.
Utility method to remove the specified project.
|
void |
start()
Deprecated.
Starts the thread that runs the Resource Manager server.
|
void |
stop()
Deprecated.
Stops the thread that runs the mock Resource Manager server.
|
public static LocalResourceManagerHelper create()
LocalResourceManagerHelper
object that listens to requests on the local
machine.public ResourceManagerOptions getOptions()
ResourceManagerOptions
instance that sets the host to use the mock server.public void start()
public void stop()
public boolean changeLifecycleState(String projectId, String lifecycleState)
public boolean removeProject(String projectId)
This method can be used to fully remove a project (to mimic when the server completely deletes a project).
Copyright © 2022 Google LLC. All rights reserved.