Interface IdentityAwareProxyOAuthServiceGrpc.AsyncService (0.8.0)

public static interface IdentityAwareProxyOAuthServiceGrpc.AsyncService

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

Methods

createBrand(CreateBrandRequest request, StreamObserver<Brand> responseObserver)

public default void createBrand(CreateBrandRequest request, StreamObserver<Brand> responseObserver)

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.

Parameters
Name Description
request CreateBrandRequest
responseObserver io.grpc.stub.StreamObserver<Brand>

createIdentityAwareProxyClient(CreateIdentityAwareProxyClientRequest request, StreamObserver<IdentityAwareProxyClient> responseObserver)

public default void createIdentityAwareProxyClient(CreateIdentityAwareProxyClientRequest request, StreamObserver<IdentityAwareProxyClient> responseObserver)

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.

Parameters
Name Description
request CreateIdentityAwareProxyClientRequest
responseObserver io.grpc.stub.StreamObserver<IdentityAwareProxyClient>

deleteIdentityAwareProxyClient(DeleteIdentityAwareProxyClientRequest request, StreamObserver<Empty> responseObserver)

public default void deleteIdentityAwareProxyClient(DeleteIdentityAwareProxyClientRequest request, StreamObserver<Empty> responseObserver)

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.

Parameters
Name Description
request DeleteIdentityAwareProxyClientRequest
responseObserver io.grpc.stub.StreamObserver<Empty>

getBrand(GetBrandRequest request, StreamObserver<Brand> responseObserver)

public default void getBrand(GetBrandRequest request, StreamObserver<Brand> responseObserver)

Retrieves the OAuth brand of the project.

Parameters
Name Description
request GetBrandRequest
responseObserver io.grpc.stub.StreamObserver<Brand>

getIdentityAwareProxyClient(GetIdentityAwareProxyClientRequest request, StreamObserver<IdentityAwareProxyClient> responseObserver)

public default void getIdentityAwareProxyClient(GetIdentityAwareProxyClientRequest request, StreamObserver<IdentityAwareProxyClient> responseObserver)

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

Parameters
Name Description
request GetIdentityAwareProxyClientRequest
responseObserver io.grpc.stub.StreamObserver<IdentityAwareProxyClient>

listBrands(ListBrandsRequest request, StreamObserver<ListBrandsResponse> responseObserver)

public default void listBrands(ListBrandsRequest request, StreamObserver<ListBrandsResponse> responseObserver)

Lists the existing brands for the project.

Parameters
Name Description
request ListBrandsRequest
responseObserver io.grpc.stub.StreamObserver<ListBrandsResponse>

listIdentityAwareProxyClients(ListIdentityAwareProxyClientsRequest request, StreamObserver<ListIdentityAwareProxyClientsResponse> responseObserver)

public default void listIdentityAwareProxyClients(ListIdentityAwareProxyClientsRequest request, StreamObserver<ListIdentityAwareProxyClientsResponse> responseObserver)

Lists the existing clients for the brand.

Parameters
Name Description
request ListIdentityAwareProxyClientsRequest
responseObserver io.grpc.stub.StreamObserver<ListIdentityAwareProxyClientsResponse>

resetIdentityAwareProxyClientSecret(ResetIdentityAwareProxyClientSecretRequest request, StreamObserver<IdentityAwareProxyClient> responseObserver)

public default void resetIdentityAwareProxyClientSecret(ResetIdentityAwareProxyClientSecretRequest request, StreamObserver<IdentityAwareProxyClient> responseObserver)

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

Parameters
Name Description
request ResetIdentityAwareProxyClientSecretRequest
responseObserver io.grpc.stub.StreamObserver<IdentityAwareProxyClient>