You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -99,17 +102,5 @@ You can test against a temporary local Resource Manager by following these steps
99
102
100
103
This method will block until the server thread has been terminated.
101
104
102
-
#### On a remote machine
103
-
104
-
You can test against a remote Resource Manager emulator as well. To do this, set the host to the hostname of the remote machine, like the example below.
.host("http://<hostname of machine>:<port>").build();
109
-
```
110
-
111
-
Note that the remote Resource Manager emulator must be running before your tests are run.
Then add the following code to create a project (be sure to change `myProjectId` to be something unique).
91
+
Then add the following code to create a project (be sure to change `myProjectId` to your own unique project ID).
78
92
79
93
```java
80
94
String myProjectId ="my-globally-unique-project-id"; // Change to a unique project ID.
@@ -121,7 +135,7 @@ while (projectIterator.hasNext()) {
121
135
122
136
#### Complete source code
123
137
124
-
Here we put together all the code shown above into one program. This program assumes that you are running from your own desktop.
138
+
Here we put together all the code shown above into one program. This program assumes that you are running from your own desktop and used the Google Cloud SDK to authenticate yourself.
Copy file name to clipboardExpand all lines: branches/tswast-patch-1/gcloud-java-resourcemanager/src/main/java/com/google/gcloud/resourcemanager/ProjectInfo.java
+21-22Lines changed: 21 additions & 22 deletions
Original file line number
Diff line number
Diff line change
@@ -50,12 +50,12 @@ public class ProjectInfo implements Serializable {
50
50
*/
51
51
publicenumState {
52
52
/**
53
-
* Only used/useful for distinguishing unset values
53
+
* Only used/useful for distinguishing unset values.
54
54
*/
55
55
LIFECYCLE_STATE_UNSPECIFIED,
56
56
57
57
/**
58
-
* The normal and active state
58
+
* The normal and active state.
59
59
*/
60
60
ACTIVE,
61
61
@@ -66,7 +66,7 @@ public enum State {
66
66
DELETE_REQUESTED,
67
67
68
68
/**
69
-
* the process of deleting the project has begun. Reversing the deletion is no longer possible.
69
+
* The process of deleting the project has begun. Reversing the deletion is no longer possible.
Copy file name to clipboardExpand all lines: branches/tswast-patch-1/gcloud-java-resourcemanager/src/main/java/com/google/gcloud/resourcemanager/testing/LocalResourceManagerHelper.java
Copy file name to clipboardExpand all lines: branches/tswast-patch-1/gcloud-java-resourcemanager/src/main/java/com/google/gcloud/spi/DefaultResourceManagerRpc.java
Copy file name to clipboardExpand all lines: branches/tswast-patch-1/gcloud-java-resourcemanager/src/test/java/com/google/gcloud/resourcemanager/LocalResourceManagerHelperTest.java
+2-4Lines changed: 2 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -32,10 +32,8 @@ public class LocalResourceManagerHelperTest {
Copy file name to clipboardExpand all lines: branches/tswast-patch-1/gcloud-java-resourcemanager/src/test/java/com/google/gcloud/resourcemanager/ProjectInfoTest.java
Copy file name to clipboardExpand all lines: branches/tswast-patch-1/gcloud-java-resourcemanager/src/test/java/com/google/gcloud/resourcemanager/ResourceManagerImplTest.java
+2-4Lines changed: 2 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -48,10 +48,8 @@ public class ResourceManagerImplTest {
0 commit comments