Skip to content

Commit cb475f3

Browse files
docs: [workstations] Adjust wording around service accounts and control planes (#9321)
* docs: Adjust wording around service accounts and control planes PiperOrigin-RevId: 522482855 Source-Link: googleapis/googleapis@f0cec0b Source-Link: https://github.com/googleapis/googleapis-gen/commit/480b18a2766a287abb5d003bc79daa4d6bff5727 Copy-Tag: eyJwIjoiamF2YS13b3Jrc3RhdGlvbnMvLk93bEJvdC55YW1sIiwiaCI6IjQ4MGIxOGEyNzY2YTI4N2FiYjVkMDAzYmM3OWRhYTRkNmJmZjU3MjcifQ== feat: add client libraries for Workstations v1 PiperOrigin-RevId: 522193471 Source-Link: googleapis/googleapis@5cb1253 Source-Link: https://github.com/googleapis/googleapis-gen/commit/c806967c017f4f02811abaacb9c91bc2861572b1 Copy-Tag: eyJwIjoiamF2YS13b3Jrc3RhdGlvbnMvLk93bEJvdC55YW1sIiwiaCI6ImM4MDY5NjdjMDE3ZjRmMDI4MTFhYmFhY2I5YzkxYmMyODYxNTcyYjEifQ== * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * remove diff in pom --------- Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com> Co-authored-by: Joe Wang <joewa@google.com>
1 parent ff61097 commit cb475f3

199 files changed

Lines changed: 87985 additions & 41 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

java-workstations/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file:
2323
<dependency>
2424
<groupId>com.google.cloud</groupId>
2525
<artifactId>libraries-bom</artifactId>
26-
<version>26.11.0</version>
26+
<version>26.12.0</version>
2727
<type>pom</type>
2828
<scope>import</scope>
2929
</dependency>

java-workstations/google-cloud-workstations-bom/pom.xml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,11 +34,21 @@
3434
<artifactId>grpc-google-cloud-workstations-v1beta</artifactId>
3535
<version>0.3.0-SNAPSHOT</version><!-- {x-version-update:grpc-google-cloud-workstations-v1beta:current} -->
3636
</dependency>
37+
<dependency>
38+
<groupId>com.google.api.grpc</groupId>
39+
<artifactId>grpc-google-cloud-workstations-v1</artifactId>
40+
<version>0.3.0-SNAPSHOT</version><!-- {x-version-update:grpc-google-cloud-workstations-v1:current} -->
41+
</dependency>
3742
<dependency>
3843
<groupId>com.google.api.grpc</groupId>
3944
<artifactId>proto-google-cloud-workstations-v1beta</artifactId>
4045
<version>0.3.0-SNAPSHOT</version><!-- {x-version-update:proto-google-cloud-workstations-v1beta:current} -->
4146
</dependency>
47+
<dependency>
48+
<groupId>com.google.api.grpc</groupId>
49+
<artifactId>proto-google-cloud-workstations-v1</artifactId>
50+
<version>0.3.0-SNAPSHOT</version><!-- {x-version-update:proto-google-cloud-workstations-v1:current} -->
51+
</dependency>
4252
</dependencies>
4353
</dependencyManagement>
4454
</project>

java-workstations/google-cloud-workstations/pom.xml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,10 @@
4141
<artifactId>proto-google-common-protos</artifactId>
4242
</dependency>
4343

44+
<dependency>
45+
<groupId>com.google.api.grpc</groupId>
46+
<artifactId>proto-google-cloud-workstations-v1</artifactId>
47+
</dependency>
4448
<dependency>
4549
<groupId>com.google.api.grpc</groupId>
4650
<artifactId>proto-google-cloud-workstations-v1beta</artifactId>
@@ -65,6 +69,11 @@
6569
<groupId>com.google.api.grpc</groupId>
6670
<artifactId>grpc-google-common-protos</artifactId>
6771
</dependency>
72+
<dependency>
73+
<groupId>com.google.api.grpc</groupId>
74+
<artifactId>grpc-google-cloud-workstations-v1</artifactId>
75+
<scope>test</scope>
76+
</dependency>
6877
<dependency>
6978
<groupId>com.google.api.grpc</groupId>
7079
<artifactId>proto-google-iam-v1</artifactId>

java-workstations/google-cloud-workstations/src/main/java/com/google/cloud/workstations/v1/WorkstationsClient.java

Lines changed: 4179 additions & 0 deletions
Large diffs are not rendered by default.

java-workstations/google-cloud-workstations/src/main/java/com/google/cloud/workstations/v1/WorkstationsSettings.java

Lines changed: 645 additions & 0 deletions
Large diffs are not rendered by default.
Lines changed: 87 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,87 @@
1+
{
2+
"schema": "1.0",
3+
"comment": "This file maps proto services/RPCs to the corresponding library clients/methods",
4+
"language": "java",
5+
"protoPackage": "google.cloud.workstations.v1",
6+
"libraryPackage": "com.google.cloud.workstations.v1",
7+
"services": {
8+
"Workstations": {
9+
"clients": {
10+
"grpc": {
11+
"libraryClient": "WorkstationsClient",
12+
"rpcs": {
13+
"CreateWorkstation": {
14+
"methods": ["createWorkstationAsync", "createWorkstationAsync", "createWorkstationAsync", "createWorkstationOperationCallable", "createWorkstationCallable"]
15+
},
16+
"CreateWorkstationCluster": {
17+
"methods": ["createWorkstationClusterAsync", "createWorkstationClusterAsync", "createWorkstationClusterAsync", "createWorkstationClusterOperationCallable", "createWorkstationClusterCallable"]
18+
},
19+
"CreateWorkstationConfig": {
20+
"methods": ["createWorkstationConfigAsync", "createWorkstationConfigAsync", "createWorkstationConfigAsync", "createWorkstationConfigOperationCallable", "createWorkstationConfigCallable"]
21+
},
22+
"DeleteWorkstation": {
23+
"methods": ["deleteWorkstationAsync", "deleteWorkstationAsync", "deleteWorkstationAsync", "deleteWorkstationOperationCallable", "deleteWorkstationCallable"]
24+
},
25+
"DeleteWorkstationCluster": {
26+
"methods": ["deleteWorkstationClusterAsync", "deleteWorkstationClusterAsync", "deleteWorkstationClusterAsync", "deleteWorkstationClusterOperationCallable", "deleteWorkstationClusterCallable"]
27+
},
28+
"DeleteWorkstationConfig": {
29+
"methods": ["deleteWorkstationConfigAsync", "deleteWorkstationConfigAsync", "deleteWorkstationConfigAsync", "deleteWorkstationConfigOperationCallable", "deleteWorkstationConfigCallable"]
30+
},
31+
"GenerateAccessToken": {
32+
"methods": ["generateAccessToken", "generateAccessToken", "generateAccessToken", "generateAccessTokenCallable"]
33+
},
34+
"GetIamPolicy": {
35+
"methods": ["getIamPolicy", "getIamPolicyCallable"]
36+
},
37+
"GetWorkstation": {
38+
"methods": ["getWorkstation", "getWorkstation", "getWorkstation", "getWorkstationCallable"]
39+
},
40+
"GetWorkstationCluster": {
41+
"methods": ["getWorkstationCluster", "getWorkstationCluster", "getWorkstationCluster", "getWorkstationClusterCallable"]
42+
},
43+
"GetWorkstationConfig": {
44+
"methods": ["getWorkstationConfig", "getWorkstationConfig", "getWorkstationConfig", "getWorkstationConfigCallable"]
45+
},
46+
"ListUsableWorkstationConfigs": {
47+
"methods": ["listUsableWorkstationConfigs", "listUsableWorkstationConfigs", "listUsableWorkstationConfigs", "listUsableWorkstationConfigsPagedCallable", "listUsableWorkstationConfigsCallable"]
48+
},
49+
"ListUsableWorkstations": {
50+
"methods": ["listUsableWorkstations", "listUsableWorkstations", "listUsableWorkstations", "listUsableWorkstationsPagedCallable", "listUsableWorkstationsCallable"]
51+
},
52+
"ListWorkstationClusters": {
53+
"methods": ["listWorkstationClusters", "listWorkstationClusters", "listWorkstationClusters", "listWorkstationClustersPagedCallable", "listWorkstationClustersCallable"]
54+
},
55+
"ListWorkstationConfigs": {
56+
"methods": ["listWorkstationConfigs", "listWorkstationConfigs", "listWorkstationConfigs", "listWorkstationConfigsPagedCallable", "listWorkstationConfigsCallable"]
57+
},
58+
"ListWorkstations": {
59+
"methods": ["listWorkstations", "listWorkstations", "listWorkstations", "listWorkstationsPagedCallable", "listWorkstationsCallable"]
60+
},
61+
"SetIamPolicy": {
62+
"methods": ["setIamPolicy", "setIamPolicyCallable"]
63+
},
64+
"StartWorkstation": {
65+
"methods": ["startWorkstationAsync", "startWorkstationAsync", "startWorkstationAsync", "startWorkstationOperationCallable", "startWorkstationCallable"]
66+
},
67+
"StopWorkstation": {
68+
"methods": ["stopWorkstationAsync", "stopWorkstationAsync", "stopWorkstationAsync", "stopWorkstationOperationCallable", "stopWorkstationCallable"]
69+
},
70+
"TestIamPermissions": {
71+
"methods": ["testIamPermissions", "testIamPermissionsCallable"]
72+
},
73+
"UpdateWorkstation": {
74+
"methods": ["updateWorkstationAsync", "updateWorkstationAsync", "updateWorkstationOperationCallable", "updateWorkstationCallable"]
75+
},
76+
"UpdateWorkstationCluster": {
77+
"methods": ["updateWorkstationClusterAsync", "updateWorkstationClusterAsync", "updateWorkstationClusterOperationCallable", "updateWorkstationClusterCallable"]
78+
},
79+
"UpdateWorkstationConfig": {
80+
"methods": ["updateWorkstationConfigAsync", "updateWorkstationConfigAsync", "updateWorkstationConfigOperationCallable", "updateWorkstationConfigCallable"]
81+
}
82+
}
83+
}
84+
}
85+
}
86+
}
87+
}
Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
/*
2+
* Copyright 2022 Google LLC
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* https://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*/
16+
17+
/**
18+
* A client to Cloud Workstations API
19+
*
20+
* <p>The interfaces provided are listed below, along with usage samples.
21+
*
22+
* <p>======================= WorkstationsClient =======================
23+
*
24+
* <p>Service Description: Service for interacting with Cloud Workstations.
25+
*
26+
* <p>Sample for WorkstationsClient:
27+
*
28+
* <pre>{@code
29+
* // This snippet has been automatically generated and should be regarded as a code template only.
30+
* // It will require modifications to work:
31+
* // - It may require correct/in-range values for request initialization.
32+
* // - It may require specifying regional endpoints when creating the service client as shown in
33+
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
34+
* try (WorkstationsClient workstationsClient = WorkstationsClient.create()) {
35+
* WorkstationClusterName name =
36+
* WorkstationClusterName.of("[PROJECT]", "[LOCATION]", "[WORKSTATION_CLUSTER]");
37+
* WorkstationCluster response = workstationsClient.getWorkstationCluster(name);
38+
* }
39+
* }</pre>
40+
*/
41+
@Generated("by gapic-generator-java")
42+
package com.google.cloud.workstations.v1;
43+
44+
import javax.annotation.Generated;
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,113 @@
1+
/*
2+
* Copyright 2022 Google LLC
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* https://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*/
16+
17+
package com.google.cloud.workstations.v1.stub;
18+
19+
import com.google.api.gax.grpc.GrpcCallSettings;
20+
import com.google.api.gax.grpc.GrpcCallableFactory;
21+
import com.google.api.gax.grpc.GrpcStubCallableFactory;
22+
import com.google.api.gax.rpc.BatchingCallSettings;
23+
import com.google.api.gax.rpc.BidiStreamingCallable;
24+
import com.google.api.gax.rpc.ClientContext;
25+
import com.google.api.gax.rpc.ClientStreamingCallable;
26+
import com.google.api.gax.rpc.OperationCallSettings;
27+
import com.google.api.gax.rpc.OperationCallable;
28+
import com.google.api.gax.rpc.PagedCallSettings;
29+
import com.google.api.gax.rpc.ServerStreamingCallSettings;
30+
import com.google.api.gax.rpc.ServerStreamingCallable;
31+
import com.google.api.gax.rpc.StreamingCallSettings;
32+
import com.google.api.gax.rpc.UnaryCallSettings;
33+
import com.google.api.gax.rpc.UnaryCallable;
34+
import com.google.longrunning.Operation;
35+
import com.google.longrunning.stub.OperationsStub;
36+
import javax.annotation.Generated;
37+
38+
// AUTO-GENERATED DOCUMENTATION AND CLASS.
39+
/**
40+
* gRPC callable factory implementation for the Workstations service API.
41+
*
42+
* <p>This class is for advanced usage.
43+
*/
44+
@Generated("by gapic-generator-java")
45+
public class GrpcWorkstationsCallableFactory implements GrpcStubCallableFactory {
46+
47+
@Override
48+
public <RequestT, ResponseT> UnaryCallable<RequestT, ResponseT> createUnaryCallable(
49+
GrpcCallSettings<RequestT, ResponseT> grpcCallSettings,
50+
UnaryCallSettings<RequestT, ResponseT> callSettings,
51+
ClientContext clientContext) {
52+
return GrpcCallableFactory.createUnaryCallable(grpcCallSettings, callSettings, clientContext);
53+
}
54+
55+
@Override
56+
public <RequestT, ResponseT, PagedListResponseT>
57+
UnaryCallable<RequestT, PagedListResponseT> createPagedCallable(
58+
GrpcCallSettings<RequestT, ResponseT> grpcCallSettings,
59+
PagedCallSettings<RequestT, ResponseT, PagedListResponseT> callSettings,
60+
ClientContext clientContext) {
61+
return GrpcCallableFactory.createPagedCallable(grpcCallSettings, callSettings, clientContext);
62+
}
63+
64+
@Override
65+
public <RequestT, ResponseT> UnaryCallable<RequestT, ResponseT> createBatchingCallable(
66+
GrpcCallSettings<RequestT, ResponseT> grpcCallSettings,
67+
BatchingCallSettings<RequestT, ResponseT> callSettings,
68+
ClientContext clientContext) {
69+
return GrpcCallableFactory.createBatchingCallable(
70+
grpcCallSettings, callSettings, clientContext);
71+
}
72+
73+
@Override
74+
public <RequestT, ResponseT, MetadataT>
75+
OperationCallable<RequestT, ResponseT, MetadataT> createOperationCallable(
76+
GrpcCallSettings<RequestT, Operation> grpcCallSettings,
77+
OperationCallSettings<RequestT, ResponseT, MetadataT> callSettings,
78+
ClientContext clientContext,
79+
OperationsStub operationsStub) {
80+
return GrpcCallableFactory.createOperationCallable(
81+
grpcCallSettings, callSettings, clientContext, operationsStub);
82+
}
83+
84+
@Override
85+
public <RequestT, ResponseT>
86+
BidiStreamingCallable<RequestT, ResponseT> createBidiStreamingCallable(
87+
GrpcCallSettings<RequestT, ResponseT> grpcCallSettings,
88+
StreamingCallSettings<RequestT, ResponseT> callSettings,
89+
ClientContext clientContext) {
90+
return GrpcCallableFactory.createBidiStreamingCallable(
91+
grpcCallSettings, callSettings, clientContext);
92+
}
93+
94+
@Override
95+
public <RequestT, ResponseT>
96+
ServerStreamingCallable<RequestT, ResponseT> createServerStreamingCallable(
97+
GrpcCallSettings<RequestT, ResponseT> grpcCallSettings,
98+
ServerStreamingCallSettings<RequestT, ResponseT> callSettings,
99+
ClientContext clientContext) {
100+
return GrpcCallableFactory.createServerStreamingCallable(
101+
grpcCallSettings, callSettings, clientContext);
102+
}
103+
104+
@Override
105+
public <RequestT, ResponseT>
106+
ClientStreamingCallable<RequestT, ResponseT> createClientStreamingCallable(
107+
GrpcCallSettings<RequestT, ResponseT> grpcCallSettings,
108+
StreamingCallSettings<RequestT, ResponseT> callSettings,
109+
ClientContext clientContext) {
110+
return GrpcCallableFactory.createClientStreamingCallable(
111+
grpcCallSettings, callSettings, clientContext);
112+
}
113+
}

0 commit comments

Comments
 (0)