Class SecureSourceManagerGrpc.SecureSourceManagerStub (0.3.0)

public static final class SecureSourceManagerGrpc.SecureSourceManagerStub extends AbstractAsyncStub<SecureSourceManagerGrpc.SecureSourceManagerStub>

A stub to allow clients to do asynchronous rpc calls to service SecureSourceManager.

Secure Source Manager API Access Secure Source Manager instances, resources, and repositories. This API is split across two servers: the Control Plane and the Data Plane. Data Plane endpoints are hosted directly by your Secure Source Manager instance, so you must connect to your instance's API hostname to access them. The API hostname looks like the following: https://[instance-id]-[project-number]-api.[location].sourcemanager.dev For example, https://my-instance-702770452863-api.us-central1.sourcemanager.dev Data Plane endpoints are denoted with Host: Data Plane. All other endpoints are found in the normal Cloud API location, namely, securcesourcemanager.googleapis.com.

Inheritance

java.lang.Object > io.grpc.stub.AbstractStub > io.grpc.stub.AbstractAsyncStub > SecureSourceManagerGrpc.SecureSourceManagerStub

Methods

build(Channel channel, CallOptions callOptions)

protected SecureSourceManagerGrpc.SecureSourceManagerStub build(Channel channel, CallOptions callOptions)
Parameters
NameDescription
channelio.grpc.Channel
callOptionsio.grpc.CallOptions
Returns
TypeDescription
SecureSourceManagerGrpc.SecureSourceManagerStub
Overrides
io.grpc.stub.AbstractStub.build(io.grpc.Channel,io.grpc.CallOptions)

createInstance(CreateInstanceRequest request, StreamObserver<Operation> responseObserver)

public void createInstance(CreateInstanceRequest request, StreamObserver<Operation> responseObserver)

Creates a new instance in a given project and location.

Parameters
NameDescription
requestCreateInstanceRequest
responseObserverio.grpc.stub.StreamObserver<Operation>

createRepository(CreateRepositoryRequest request, StreamObserver<Operation> responseObserver)

public void createRepository(CreateRepositoryRequest request, StreamObserver<Operation> responseObserver)

Creates a new repository in a given project and location. Host: Data Plane

Parameters
NameDescription
requestCreateRepositoryRequest
responseObserverio.grpc.stub.StreamObserver<Operation>

deleteInstance(DeleteInstanceRequest request, StreamObserver<Operation> responseObserver)

public void deleteInstance(DeleteInstanceRequest request, StreamObserver<Operation> responseObserver)

Deletes a single instance.

Parameters
NameDescription
requestDeleteInstanceRequest
responseObserverio.grpc.stub.StreamObserver<Operation>

deleteRepository(DeleteRepositoryRequest request, StreamObserver<Operation> responseObserver)

public void deleteRepository(DeleteRepositoryRequest request, StreamObserver<Operation> responseObserver)

Deletes a Repository. Host: Data Plane

Parameters
NameDescription
requestDeleteRepositoryRequest
responseObserverio.grpc.stub.StreamObserver<Operation>

getIamPolicyRepo(GetIamPolicyRequest request, StreamObserver<Policy> responseObserver)

public void getIamPolicyRepo(GetIamPolicyRequest request, StreamObserver<Policy> responseObserver)

Get IAM policy for a repository.

Parameters
NameDescription
requestcom.google.iam.v1.GetIamPolicyRequest
responseObserverio.grpc.stub.StreamObserver<com.google.iam.v1.Policy>

getInstance(GetInstanceRequest request, StreamObserver<Instance> responseObserver)

public void getInstance(GetInstanceRequest request, StreamObserver<Instance> responseObserver)

Gets details of a single instance.

Parameters
NameDescription
requestGetInstanceRequest
responseObserverio.grpc.stub.StreamObserver<Instance>

getRepository(GetRepositoryRequest request, StreamObserver<Repository> responseObserver)

public void getRepository(GetRepositoryRequest request, StreamObserver<Repository> responseObserver)

Gets metadata of a repository. Host: Data Plane

Parameters
NameDescription
requestGetRepositoryRequest
responseObserverio.grpc.stub.StreamObserver<Repository>

listInstances(ListInstancesRequest request, StreamObserver<ListInstancesResponse> responseObserver)

public void listInstances(ListInstancesRequest request, StreamObserver<ListInstancesResponse> responseObserver)

Lists Instances in a given project and location.

Parameters
NameDescription
requestListInstancesRequest
responseObserverio.grpc.stub.StreamObserver<ListInstancesResponse>

listRepositories(ListRepositoriesRequest request, StreamObserver<ListRepositoriesResponse> responseObserver)

public void listRepositories(ListRepositoriesRequest request, StreamObserver<ListRepositoriesResponse> responseObserver)

Lists Repositories in a given project and location. Host: Data Plane

Parameters
NameDescription
requestListRepositoriesRequest
responseObserverio.grpc.stub.StreamObserver<ListRepositoriesResponse>

setIamPolicyRepo(SetIamPolicyRequest request, StreamObserver<Policy> responseObserver)

public void setIamPolicyRepo(SetIamPolicyRequest request, StreamObserver<Policy> responseObserver)

Set IAM policy on a repository.

Parameters
NameDescription
requestcom.google.iam.v1.SetIamPolicyRequest
responseObserverio.grpc.stub.StreamObserver<com.google.iam.v1.Policy>

testIamPermissionsRepo(TestIamPermissionsRequest request, StreamObserver<TestIamPermissionsResponse> responseObserver)

public void testIamPermissionsRepo(TestIamPermissionsRequest request, StreamObserver<TestIamPermissionsResponse> responseObserver)

Test IAM permissions on a repository. IAM permission checks are not required on this method.

Parameters
NameDescription
requestcom.google.iam.v1.TestIamPermissionsRequest
responseObserverio.grpc.stub.StreamObserver<com.google.iam.v1.TestIamPermissionsResponse>