Skip to content

Commit

Permalink
docs: [workstations] Adjust wording around service accounts and contr…
Browse files Browse the repository at this point in the history
…ol planes (#9321)

* docs: Adjust wording around service accounts and control planes

PiperOrigin-RevId: 522482855

Source-Link: googleapis/googleapis@f0cec0b

Source-Link: googleapis/googleapis-gen@480b18a
Copy-Tag: eyJwIjoiamF2YS13b3Jrc3RhdGlvbnMvLk93bEJvdC55YW1sIiwiaCI6IjQ4MGIxOGEyNzY2YTI4N2FiYjVkMDAzYmM3OWRhYTRkNmJmZjU3MjcifQ==

feat: add client libraries for Workstations v1

PiperOrigin-RevId: 522193471

Source-Link: googleapis/googleapis@5cb1253

Source-Link: googleapis/googleapis-gen@c806967
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>
  • Loading branch information
3 people committed Apr 13, 2023
1 parent ff61097 commit cb475f3
Show file tree
Hide file tree
Showing 199 changed files with 87,985 additions and 41 deletions.
2 changes: 1 addition & 1 deletion java-workstations/README.md
Expand Up @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file:
<dependency>
<groupId>com.google.cloud</groupId>
<artifactId>libraries-bom</artifactId>
<version>26.11.0</version>
<version>26.12.0</version>
<type>pom</type>
<scope>import</scope>
</dependency>
Expand Down
10 changes: 10 additions & 0 deletions java-workstations/google-cloud-workstations-bom/pom.xml
Expand Up @@ -34,11 +34,21 @@
<artifactId>grpc-google-cloud-workstations-v1beta</artifactId>
<version>0.3.0-SNAPSHOT</version><!-- {x-version-update:grpc-google-cloud-workstations-v1beta:current} -->
</dependency>
<dependency>
<groupId>com.google.api.grpc</groupId>
<artifactId>grpc-google-cloud-workstations-v1</artifactId>
<version>0.3.0-SNAPSHOT</version><!-- {x-version-update:grpc-google-cloud-workstations-v1:current} -->
</dependency>
<dependency>
<groupId>com.google.api.grpc</groupId>
<artifactId>proto-google-cloud-workstations-v1beta</artifactId>
<version>0.3.0-SNAPSHOT</version><!-- {x-version-update:proto-google-cloud-workstations-v1beta:current} -->
</dependency>
<dependency>
<groupId>com.google.api.grpc</groupId>
<artifactId>proto-google-cloud-workstations-v1</artifactId>
<version>0.3.0-SNAPSHOT</version><!-- {x-version-update:proto-google-cloud-workstations-v1:current} -->
</dependency>
</dependencies>
</dependencyManagement>
</project>
9 changes: 9 additions & 0 deletions java-workstations/google-cloud-workstations/pom.xml
Expand Up @@ -41,6 +41,10 @@
<artifactId>proto-google-common-protos</artifactId>
</dependency>

<dependency>
<groupId>com.google.api.grpc</groupId>
<artifactId>proto-google-cloud-workstations-v1</artifactId>
</dependency>
<dependency>
<groupId>com.google.api.grpc</groupId>
<artifactId>proto-google-cloud-workstations-v1beta</artifactId>
Expand All @@ -65,6 +69,11 @@
<groupId>com.google.api.grpc</groupId>
<artifactId>grpc-google-common-protos</artifactId>
</dependency>
<dependency>
<groupId>com.google.api.grpc</groupId>
<artifactId>grpc-google-cloud-workstations-v1</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>com.google.api.grpc</groupId>
<artifactId>proto-google-iam-v1</artifactId>
Expand Down

Large diffs are not rendered by default.

Large diffs are not rendered by default.

@@ -0,0 +1,87 @@
{
"schema": "1.0",
"comment": "This file maps proto services/RPCs to the corresponding library clients/methods",
"language": "java",
"protoPackage": "google.cloud.workstations.v1",
"libraryPackage": "com.google.cloud.workstations.v1",
"services": {
"Workstations": {
"clients": {
"grpc": {
"libraryClient": "WorkstationsClient",
"rpcs": {
"CreateWorkstation": {
"methods": ["createWorkstationAsync", "createWorkstationAsync", "createWorkstationAsync", "createWorkstationOperationCallable", "createWorkstationCallable"]
},
"CreateWorkstationCluster": {
"methods": ["createWorkstationClusterAsync", "createWorkstationClusterAsync", "createWorkstationClusterAsync", "createWorkstationClusterOperationCallable", "createWorkstationClusterCallable"]
},
"CreateWorkstationConfig": {
"methods": ["createWorkstationConfigAsync", "createWorkstationConfigAsync", "createWorkstationConfigAsync", "createWorkstationConfigOperationCallable", "createWorkstationConfigCallable"]
},
"DeleteWorkstation": {
"methods": ["deleteWorkstationAsync", "deleteWorkstationAsync", "deleteWorkstationAsync", "deleteWorkstationOperationCallable", "deleteWorkstationCallable"]
},
"DeleteWorkstationCluster": {
"methods": ["deleteWorkstationClusterAsync", "deleteWorkstationClusterAsync", "deleteWorkstationClusterAsync", "deleteWorkstationClusterOperationCallable", "deleteWorkstationClusterCallable"]
},
"DeleteWorkstationConfig": {
"methods": ["deleteWorkstationConfigAsync", "deleteWorkstationConfigAsync", "deleteWorkstationConfigAsync", "deleteWorkstationConfigOperationCallable", "deleteWorkstationConfigCallable"]
},
"GenerateAccessToken": {
"methods": ["generateAccessToken", "generateAccessToken", "generateAccessToken", "generateAccessTokenCallable"]
},
"GetIamPolicy": {
"methods": ["getIamPolicy", "getIamPolicyCallable"]
},
"GetWorkstation": {
"methods": ["getWorkstation", "getWorkstation", "getWorkstation", "getWorkstationCallable"]
},
"GetWorkstationCluster": {
"methods": ["getWorkstationCluster", "getWorkstationCluster", "getWorkstationCluster", "getWorkstationClusterCallable"]
},
"GetWorkstationConfig": {
"methods": ["getWorkstationConfig", "getWorkstationConfig", "getWorkstationConfig", "getWorkstationConfigCallable"]
},
"ListUsableWorkstationConfigs": {
"methods": ["listUsableWorkstationConfigs", "listUsableWorkstationConfigs", "listUsableWorkstationConfigs", "listUsableWorkstationConfigsPagedCallable", "listUsableWorkstationConfigsCallable"]
},
"ListUsableWorkstations": {
"methods": ["listUsableWorkstations", "listUsableWorkstations", "listUsableWorkstations", "listUsableWorkstationsPagedCallable", "listUsableWorkstationsCallable"]
},
"ListWorkstationClusters": {
"methods": ["listWorkstationClusters", "listWorkstationClusters", "listWorkstationClusters", "listWorkstationClustersPagedCallable", "listWorkstationClustersCallable"]
},
"ListWorkstationConfigs": {
"methods": ["listWorkstationConfigs", "listWorkstationConfigs", "listWorkstationConfigs", "listWorkstationConfigsPagedCallable", "listWorkstationConfigsCallable"]
},
"ListWorkstations": {
"methods": ["listWorkstations", "listWorkstations", "listWorkstations", "listWorkstationsPagedCallable", "listWorkstationsCallable"]
},
"SetIamPolicy": {
"methods": ["setIamPolicy", "setIamPolicyCallable"]
},
"StartWorkstation": {
"methods": ["startWorkstationAsync", "startWorkstationAsync", "startWorkstationAsync", "startWorkstationOperationCallable", "startWorkstationCallable"]
},
"StopWorkstation": {
"methods": ["stopWorkstationAsync", "stopWorkstationAsync", "stopWorkstationAsync", "stopWorkstationOperationCallable", "stopWorkstationCallable"]
},
"TestIamPermissions": {
"methods": ["testIamPermissions", "testIamPermissionsCallable"]
},
"UpdateWorkstation": {
"methods": ["updateWorkstationAsync", "updateWorkstationAsync", "updateWorkstationOperationCallable", "updateWorkstationCallable"]
},
"UpdateWorkstationCluster": {
"methods": ["updateWorkstationClusterAsync", "updateWorkstationClusterAsync", "updateWorkstationClusterOperationCallable", "updateWorkstationClusterCallable"]
},
"UpdateWorkstationConfig": {
"methods": ["updateWorkstationConfigAsync", "updateWorkstationConfigAsync", "updateWorkstationConfigOperationCallable", "updateWorkstationConfigCallable"]
}
}
}
}
}
}
}
@@ -0,0 +1,44 @@
/*
* Copyright 2022 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

/**
* A client to Cloud Workstations API
*
* <p>The interfaces provided are listed below, along with usage samples.
*
* <p>======================= WorkstationsClient =======================
*
* <p>Service Description: Service for interacting with Cloud Workstations.
*
* <p>Sample for WorkstationsClient:
*
* <pre>{@code
* // This snippet has been automatically generated and should be regarded as a code template only.
* // It will require modifications to work:
* // - It may require correct/in-range values for request initialization.
* // - It may require specifying regional endpoints when creating the service client as shown in
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (WorkstationsClient workstationsClient = WorkstationsClient.create()) {
* WorkstationClusterName name =
* WorkstationClusterName.of("[PROJECT]", "[LOCATION]", "[WORKSTATION_CLUSTER]");
* WorkstationCluster response = workstationsClient.getWorkstationCluster(name);
* }
* }</pre>
*/
@Generated("by gapic-generator-java")
package com.google.cloud.workstations.v1;

import javax.annotation.Generated;
@@ -0,0 +1,113 @@
/*
* Copyright 2022 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

package com.google.cloud.workstations.v1.stub;

import com.google.api.gax.grpc.GrpcCallSettings;
import com.google.api.gax.grpc.GrpcCallableFactory;
import com.google.api.gax.grpc.GrpcStubCallableFactory;
import com.google.api.gax.rpc.BatchingCallSettings;
import com.google.api.gax.rpc.BidiStreamingCallable;
import com.google.api.gax.rpc.ClientContext;
import com.google.api.gax.rpc.ClientStreamingCallable;
import com.google.api.gax.rpc.OperationCallSettings;
import com.google.api.gax.rpc.OperationCallable;
import com.google.api.gax.rpc.PagedCallSettings;
import com.google.api.gax.rpc.ServerStreamingCallSettings;
import com.google.api.gax.rpc.ServerStreamingCallable;
import com.google.api.gax.rpc.StreamingCallSettings;
import com.google.api.gax.rpc.UnaryCallSettings;
import com.google.api.gax.rpc.UnaryCallable;
import com.google.longrunning.Operation;
import com.google.longrunning.stub.OperationsStub;
import javax.annotation.Generated;

// AUTO-GENERATED DOCUMENTATION AND CLASS.
/**
* gRPC callable factory implementation for the Workstations service API.
*
* <p>This class is for advanced usage.
*/
@Generated("by gapic-generator-java")
public class GrpcWorkstationsCallableFactory implements GrpcStubCallableFactory {

@Override
public <RequestT, ResponseT> UnaryCallable<RequestT, ResponseT> createUnaryCallable(
GrpcCallSettings<RequestT, ResponseT> grpcCallSettings,
UnaryCallSettings<RequestT, ResponseT> callSettings,
ClientContext clientContext) {
return GrpcCallableFactory.createUnaryCallable(grpcCallSettings, callSettings, clientContext);
}

@Override
public <RequestT, ResponseT, PagedListResponseT>
UnaryCallable<RequestT, PagedListResponseT> createPagedCallable(
GrpcCallSettings<RequestT, ResponseT> grpcCallSettings,
PagedCallSettings<RequestT, ResponseT, PagedListResponseT> callSettings,
ClientContext clientContext) {
return GrpcCallableFactory.createPagedCallable(grpcCallSettings, callSettings, clientContext);
}

@Override
public <RequestT, ResponseT> UnaryCallable<RequestT, ResponseT> createBatchingCallable(
GrpcCallSettings<RequestT, ResponseT> grpcCallSettings,
BatchingCallSettings<RequestT, ResponseT> callSettings,
ClientContext clientContext) {
return GrpcCallableFactory.createBatchingCallable(
grpcCallSettings, callSettings, clientContext);
}

@Override
public <RequestT, ResponseT, MetadataT>
OperationCallable<RequestT, ResponseT, MetadataT> createOperationCallable(
GrpcCallSettings<RequestT, Operation> grpcCallSettings,
OperationCallSettings<RequestT, ResponseT, MetadataT> callSettings,
ClientContext clientContext,
OperationsStub operationsStub) {
return GrpcCallableFactory.createOperationCallable(
grpcCallSettings, callSettings, clientContext, operationsStub);
}

@Override
public <RequestT, ResponseT>
BidiStreamingCallable<RequestT, ResponseT> createBidiStreamingCallable(
GrpcCallSettings<RequestT, ResponseT> grpcCallSettings,
StreamingCallSettings<RequestT, ResponseT> callSettings,
ClientContext clientContext) {
return GrpcCallableFactory.createBidiStreamingCallable(
grpcCallSettings, callSettings, clientContext);
}

@Override
public <RequestT, ResponseT>
ServerStreamingCallable<RequestT, ResponseT> createServerStreamingCallable(
GrpcCallSettings<RequestT, ResponseT> grpcCallSettings,
ServerStreamingCallSettings<RequestT, ResponseT> callSettings,
ClientContext clientContext) {
return GrpcCallableFactory.createServerStreamingCallable(
grpcCallSettings, callSettings, clientContext);
}

@Override
public <RequestT, ResponseT>
ClientStreamingCallable<RequestT, ResponseT> createClientStreamingCallable(
GrpcCallSettings<RequestT, ResponseT> grpcCallSettings,
StreamingCallSettings<RequestT, ResponseT> callSettings,
ClientContext clientContext) {
return GrpcCallableFactory.createClientStreamingCallable(
grpcCallSettings, callSettings, clientContext);
}
}

0 comments on commit cb475f3

Please sign in to comment.