Class IdentityAwareProxyOAuthServiceGrpc.IdentityAwareProxyOAuthServiceBlockingStub (0.4.0)

public static final class IdentityAwareProxyOAuthServiceGrpc.IdentityAwareProxyOAuthServiceBlockingStub extends AbstractBlockingStub<IdentityAwareProxyOAuthServiceGrpc.IdentityAwareProxyOAuthServiceBlockingStub>

A stub to allow clients to do synchronous rpc calls to service IdentityAwareProxyOAuthService.

API to programmatically create, list and retrieve Identity Aware Proxy (IAP) OAuth brands; and create, retrieve, delete and reset-secret of IAP OAuth clients.

Inheritance

java.lang.Object > io.grpc.stub.AbstractStub > io.grpc.stub.AbstractBlockingStub > IdentityAwareProxyOAuthServiceGrpc.IdentityAwareProxyOAuthServiceBlockingStub

Methods

build(Channel channel, CallOptions callOptions)

protected IdentityAwareProxyOAuthServiceGrpc.IdentityAwareProxyOAuthServiceBlockingStub build(Channel channel, CallOptions callOptions)
Parameters
Name Description
channel io.grpc.Channel
callOptions io.grpc.CallOptions
Returns
Type Description
IdentityAwareProxyOAuthServiceGrpc.IdentityAwareProxyOAuthServiceBlockingStub
Overrides
io.grpc.stub.AbstractStub.build(io.grpc.Channel,io.grpc.CallOptions)

createBrand(CreateBrandRequest request)

public Brand createBrand(CreateBrandRequest request)

Constructs a new OAuth brand for the project if one does not exist. The created brand is "internal only", meaning that OAuth clients created under it only accept requests from users who belong to the same Google Workspace organization as the project. The brand is created in an un-reviewed status. NOTE: The "internal only" status can be manually changed in the Google Cloud Console. Requires that a brand does not already exist for the project, and that the specified support email is owned by the caller.

Parameter
Name Description
request CreateBrandRequest
Returns
Type Description
Brand

createIdentityAwareProxyClient(CreateIdentityAwareProxyClientRequest request)

public IdentityAwareProxyClient createIdentityAwareProxyClient(CreateIdentityAwareProxyClientRequest request)

Creates an Identity Aware Proxy (IAP) OAuth client. The client is owned by IAP. Requires that the brand for the project exists and that it is set for internal-only use.

Parameter
Name Description
request CreateIdentityAwareProxyClientRequest
Returns
Type Description
IdentityAwareProxyClient

deleteIdentityAwareProxyClient(DeleteIdentityAwareProxyClientRequest request)

public Empty deleteIdentityAwareProxyClient(DeleteIdentityAwareProxyClientRequest request)

Deletes an Identity Aware Proxy (IAP) OAuth client. Useful for removing obsolete clients, managing the number of clients in a given project, and cleaning up after tests. Requires that the client is owned by IAP.

Parameter
Name Description
request DeleteIdentityAwareProxyClientRequest
Returns
Type Description
Empty

getBrand(GetBrandRequest request)

public Brand getBrand(GetBrandRequest request)

Retrieves the OAuth brand of the project.

Parameter
Name Description
request GetBrandRequest
Returns
Type Description
Brand

getIdentityAwareProxyClient(GetIdentityAwareProxyClientRequest request)

public IdentityAwareProxyClient getIdentityAwareProxyClient(GetIdentityAwareProxyClientRequest request)

Retrieves an Identity Aware Proxy (IAP) OAuth client. Requires that the client is owned by IAP.

Parameter
Name Description
request GetIdentityAwareProxyClientRequest
Returns
Type Description
IdentityAwareProxyClient

listBrands(ListBrandsRequest request)

public ListBrandsResponse listBrands(ListBrandsRequest request)

Lists the existing brands for the project.

Parameter
Name Description
request ListBrandsRequest
Returns
Type Description
ListBrandsResponse

listIdentityAwareProxyClients(ListIdentityAwareProxyClientsRequest request)

public ListIdentityAwareProxyClientsResponse listIdentityAwareProxyClients(ListIdentityAwareProxyClientsRequest request)

Lists the existing clients for the brand.

Parameter
Name Description
request ListIdentityAwareProxyClientsRequest
Returns
Type Description
ListIdentityAwareProxyClientsResponse

resetIdentityAwareProxyClientSecret(ResetIdentityAwareProxyClientSecretRequest request)

public IdentityAwareProxyClient resetIdentityAwareProxyClientSecret(ResetIdentityAwareProxyClientSecretRequest request)

Resets an Identity Aware Proxy (IAP) OAuth client secret. Useful if the secret was compromised. Requires that the client is owned by IAP.

Parameter
Name Description
request ResetIdentityAwareProxyClientSecretRequest
Returns
Type Description
IdentityAwareProxyClient