diff --git a/gapic-libraries-bom/pom.xml b/gapic-libraries-bom/pom.xml
index 659b07234dc5..2a45129f119e 100644
--- a/gapic-libraries-bom/pom.xml
+++ b/gapic-libraries-bom/pom.xml
@@ -57,6 +57,13 @@
This class provides the ability to make remote calls to the backing service through method + * calls that map to API methods. Sample code to get started: + * + *
{@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 (AuthProviderServiceClient authProviderServiceClient = AuthProviderServiceClient.create()) {
+ * AuthProviderName name = AuthProviderName.of("[PROJECT]", "[LOCATION]", "[AUTH_PROVIDER]");
+ * AuthProvider response = authProviderServiceClient.getAuthProvider(name);
+ * }
+ * }
+ *
+ * Note: close() needs to be called on the AuthProviderServiceClient object to clean up resources + * such as threads. In the example above, try-with-resources is used, which automatically calls + * close(). + * + *
| Method | + *Description | + *Method Variants | + *
|---|---|---|
ListAuthProviders |
+ * Lists AuthProviders in a given project and location. |
+ *
+ * Request object method variants only take one parameter, a request object, which must be constructed before the call. + *
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. + *
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. + *
|
+ *
GetAuthProvider |
+ * Gets details of a single AuthProvider. |
+ *
+ * Request object method variants only take one parameter, a request object, which must be constructed before the call. + *
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. + *
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. + *
|
+ *
CreateAuthProvider |
+ * Creates a new AuthProvider in a given project and location. |
+ *
+ * Request object method variants only take one parameter, a request object, which must be constructed before the call. + *
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. + *
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. + *
|
+ *
UpdateAuthProvider |
+ * Updates the parameters of a single AuthProvider. |
+ *
+ * Request object method variants only take one parameter, a request object, which must be constructed before the call. + *
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. + *
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. + *
|
+ *
DeleteAuthProvider |
+ * Deletes a single AuthProvider. |
+ *
+ * Request object method variants only take one parameter, a request object, which must be constructed before the call. + *
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. + *
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. + *
|
+ *
UndeleteAuthProvider |
+ * Undeletes a single AuthProvider. |
+ *
+ * Request object method variants only take one parameter, a request object, which must be constructed before the call. + *
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. + *
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. + *
|
+ *
QueryAuthProviders |
+ * Queries what all auth_providers are used by a given workload_id. |
+ *
+ * Request object method variants only take one parameter, a request object, which must be constructed before the call. + *
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. + *
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. + *
|
+ *
QueryWorkloads |
+ * Queries what all workloads are using a given auth_provider. |
+ *
+ * Request object method variants only take one parameter, a request object, which must be constructed before the call. + *
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. + *
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. + *
|
+ *
ListAuthorizations |
+ * Lists Authorizations in a given project and location. |
+ *
+ * Request object method variants only take one parameter, a request object, which must be constructed before the call. + *
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. + *
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. + *
|
+ *
GetAuthorization |
+ * Gets details of a single Authorization. |
+ *
+ * Request object method variants only take one parameter, a request object, which must be constructed before the call. + *
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. + *
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. + *
|
+ *
DeleteAuthorization |
+ * Deletes a single Authorization. |
+ *
+ * Request object method variants only take one parameter, a request object, which must be constructed before the call. + *
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. + *
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. + *
|
+ *
ListAccessSummaries |
+ * Lists AccessSummaries in a given project and location. Supported Filters: - `workload_id`: Filter by the SPIFFE ID of the agent. Example: `workload_id="spiffe://example.com/ns/default/sa/my-agent"` |
+ *
+ * Request object method variants only take one parameter, a request object, which must be constructed before the call. + *
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. + *
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. + *
|
+ *
GetAccessSummary |
+ * Gets details of a single AccessSummary. |
+ *
+ * Request object method variants only take one parameter, a request object, which must be constructed before the call. + *
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. + *
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. + *
|
+ *
RevokeAuthorization |
+ * Revokes all authorizations for a specific user on an AuthProvider. This deletes all authorization records associated with the user and AuthProvider, effectively revoking access across all agents. |
+ *
+ * Request object method variants only take one parameter, a request object, which must be constructed before the call. + *
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. + *
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. + *
|
+ *
EnableAuthProvider |
+ * Enables a single AuthProvider. |
+ *
+ * Request object method variants only take one parameter, a request object, which must be constructed before the call. + *
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. + *
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. + *
|
+ *
DisableAuthProvider |
+ * Disables a single AuthProvider. |
+ *
+ * Request object method variants only take one parameter, a request object, which must be constructed before the call. + *
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. + *
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. + *
|
+ *
ListLocations |
+ * Lists information about the supported locations for this service. + * This method lists locations based on the resource scope provided inthe [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: ***Global locations**: If `name` is empty, the method lists thepublic locations available to all projects. * **Project-specificlocations**: If `name` follows the format`projects/{project}`, the method lists locations visible to thatspecific project. This includes public, private, or otherproject-specific locations enabled for the project. + * For gRPC and client library implementations, the resource name ispassed as the `name` field. For direct service calls, the resourcename isincorporated into the request path based on the specific serviceimplementation and version. |
+ *
+ * Request object method variants only take one parameter, a request object, which must be constructed before the call. + *
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. + *
|
+ *
GetLocation |
+ * Gets information about a location. |
+ *
+ * Request object method variants only take one parameter, a request object, which must be constructed before the call. + *
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. + *
|
+ *
SetIamPolicy |
+ * Sets the access control policy on the specified resource. Replacesany existing policy. + * Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED`errors. |
+ *
+ * Request object method variants only take one parameter, a request object, which must be constructed before the call. + *
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. + *
|
+ *
GetIamPolicy |
+ * Gets the access control policy for a resource. Returns an empty policyif the resource exists and does not have a policy set. |
+ *
+ * Request object method variants only take one parameter, a request object, which must be constructed before the call. + *
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. + *
|
+ *
TestIamPermissions |
+ * Returns permissions that a caller has on the specified resource. If theresource does not exist, this will return an empty set ofpermissions, not a `NOT_FOUND` error. + * Note: This operation is designed to be used for buildingpermission-aware UIs and command-line tools, not for authorizationchecking. This operation may "fail open" without warning. |
+ *
+ * Request object method variants only take one parameter, a request object, which must be constructed before the call. + *
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. + *
|
+ *
See the individual methods for example code. + * + *
Many parameters require resource names to be formatted in a particular way. To assist with + * these names, this class includes a format method for each type of name, and additionally a parse + * method to extract the individual identifiers contained within names that are returned. + * + *
This class can be customized by passing in a custom instance of AuthProviderServiceSettings to + * create(). For example: + * + *
To customize credentials: + * + *
{@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
+ * AuthProviderServiceSettings authProviderServiceSettings =
+ * AuthProviderServiceSettings.newBuilder()
+ * .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
+ * .build();
+ * AuthProviderServiceClient authProviderServiceClient =
+ * AuthProviderServiceClient.create(authProviderServiceSettings);
+ * }
+ *
+ * To customize the endpoint: + * + *
{@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
+ * AuthProviderServiceSettings authProviderServiceSettings =
+ * AuthProviderServiceSettings.newBuilder().setEndpoint(myEndpoint).build();
+ * AuthProviderServiceClient authProviderServiceClient =
+ * AuthProviderServiceClient.create(authProviderServiceSettings);
+ * }
+ *
+ * To use REST (HTTP1.1/JSON) transport (instead of gRPC) for sending and receiving requests over + * the wire: + * + *
{@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
+ * AuthProviderServiceSettings authProviderServiceSettings =
+ * AuthProviderServiceSettings.newHttpJsonBuilder().build();
+ * AuthProviderServiceClient authProviderServiceClient =
+ * AuthProviderServiceClient.create(authProviderServiceSettings);
+ * }
+ *
+ * Please refer to the GitHub repository's samples for more quickstart code snippets. + */ +@NullMarked +@Generated("by gapic-generator-java") +public class AuthProviderServiceClient implements BackgroundResource { + private final @Nullable AuthProviderServiceSettings settings; + private final AuthProviderServiceStub stub; + + /** Constructs an instance of AuthProviderServiceClient with default settings. */ + public static final AuthProviderServiceClient create() throws IOException { + return create(AuthProviderServiceSettings.newBuilder().build()); + } + + /** + * Constructs an instance of AuthProviderServiceClient, using the given settings. The channels are + * created based on the settings passed in, or defaults for any settings that are not set. + */ + public static final AuthProviderServiceClient create(AuthProviderServiceSettings settings) + throws IOException { + return new AuthProviderServiceClient(settings); + } + + /** + * Constructs an instance of AuthProviderServiceClient, using the given stub for making calls. + * This is for advanced usage - prefer using create(AuthProviderServiceSettings). + */ + public static final AuthProviderServiceClient create(AuthProviderServiceStub stub) { + return new AuthProviderServiceClient(stub); + } + + /** + * Constructs an instance of AuthProviderServiceClient, using the given settings. This is + * protected so that it is easy to make a subclass, but otherwise, the static factory methods + * should be preferred. + */ + protected AuthProviderServiceClient(AuthProviderServiceSettings settings) throws IOException { + this.settings = settings; + this.stub = ((AuthProviderServiceStubSettings) settings.getStubSettings()).createStub(); + } + + protected AuthProviderServiceClient(AuthProviderServiceStub stub) { + this.settings = null; + this.stub = stub; + } + + public final @Nullable AuthProviderServiceSettings getSettings() { + return settings; + } + + public AuthProviderServiceStub getStub() { + return stub; + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists AuthProviders in a given project and location. + * + *
Sample code: + * + *
{@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 (AuthProviderServiceClient authProviderServiceClient = AuthProviderServiceClient.create()) {
+ * LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
+ * for (AuthProvider element :
+ * authProviderServiceClient.listAuthProviders(parent).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ *
+ * @param parent Required. The parent resource where the search is performed. Format:
+ * projects/{project}/locations/{location}
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ListAuthProvidersPagedResponse listAuthProviders(@Nullable LocationName parent) {
+ ListAuthProvidersRequest request =
+ ListAuthProvidersRequest.newBuilder()
+ .setParent(parent == null ? null : parent.toString())
+ .build();
+ return listAuthProviders(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists AuthProviders in a given project and location.
+ *
+ * Sample code: + * + *
{@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 (AuthProviderServiceClient authProviderServiceClient = AuthProviderServiceClient.create()) {
+ * String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
+ * for (AuthProvider element :
+ * authProviderServiceClient.listAuthProviders(parent).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ *
+ * @param parent Required. The parent resource where the search is performed. Format:
+ * projects/{project}/locations/{location}
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ListAuthProvidersPagedResponse listAuthProviders(String parent) {
+ ListAuthProvidersRequest request =
+ ListAuthProvidersRequest.newBuilder().setParent(parent).build();
+ return listAuthProviders(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists AuthProviders in a given project and location.
+ *
+ * Sample code: + * + *
{@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 (AuthProviderServiceClient authProviderServiceClient = AuthProviderServiceClient.create()) {
+ * ListAuthProvidersRequest request =
+ * ListAuthProvidersRequest.newBuilder()
+ * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .setFilter("filter-1274492040")
+ * .setOrderBy("orderBy-1207110587")
+ * .setShowDeleted(true)
+ * .build();
+ * for (AuthProvider element :
+ * authProviderServiceClient.listAuthProviders(request).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ListAuthProvidersPagedResponse listAuthProviders(ListAuthProvidersRequest request) {
+ return listAuthProvidersPagedCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists AuthProviders in a given project and location.
+ *
+ * Sample code: + * + *
{@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 (AuthProviderServiceClient authProviderServiceClient = AuthProviderServiceClient.create()) {
+ * ListAuthProvidersRequest request =
+ * ListAuthProvidersRequest.newBuilder()
+ * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .setFilter("filter-1274492040")
+ * .setOrderBy("orderBy-1207110587")
+ * .setShowDeleted(true)
+ * .build();
+ * ApiFuture future =
+ * authProviderServiceClient.listAuthProvidersPagedCallable().futureCall(request);
+ * // Do something.
+ * for (AuthProvider element : future.get().iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ */
+ public final UnaryCallableSample code: + * + *
{@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 (AuthProviderServiceClient authProviderServiceClient = AuthProviderServiceClient.create()) {
+ * ListAuthProvidersRequest request =
+ * ListAuthProvidersRequest.newBuilder()
+ * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .setFilter("filter-1274492040")
+ * .setOrderBy("orderBy-1207110587")
+ * .setShowDeleted(true)
+ * .build();
+ * while (true) {
+ * ListAuthProvidersResponse response =
+ * authProviderServiceClient.listAuthProvidersCallable().call(request);
+ * for (AuthProvider element : response.getAuthProvidersList()) {
+ * // doThingsWith(element);
+ * }
+ * String nextPageToken = response.getNextPageToken();
+ * if (!Strings.isNullOrEmpty(nextPageToken)) {
+ * request = request.toBuilder().setPageToken(nextPageToken).build();
+ * } else {
+ * break;
+ * }
+ * }
+ * }
+ * }
+ */
+ public final UnaryCallableSample code: + * + *
{@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 (AuthProviderServiceClient authProviderServiceClient = AuthProviderServiceClient.create()) {
+ * AuthProviderName name = AuthProviderName.of("[PROJECT]", "[LOCATION]", "[AUTH_PROVIDER]");
+ * AuthProvider response = authProviderServiceClient.getAuthProvider(name);
+ * }
+ * }
+ *
+ * @param name Required. Name of the resource
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final AuthProvider getAuthProvider(@Nullable AuthProviderName name) {
+ GetAuthProviderRequest request =
+ GetAuthProviderRequest.newBuilder().setName(name == null ? null : name.toString()).build();
+ return getAuthProvider(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Gets details of a single AuthProvider.
+ *
+ * Sample code: + * + *
{@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 (AuthProviderServiceClient authProviderServiceClient = AuthProviderServiceClient.create()) {
+ * String name = AuthProviderName.of("[PROJECT]", "[LOCATION]", "[AUTH_PROVIDER]").toString();
+ * AuthProvider response = authProviderServiceClient.getAuthProvider(name);
+ * }
+ * }
+ *
+ * @param name Required. Name of the resource
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final AuthProvider getAuthProvider(String name) {
+ GetAuthProviderRequest request = GetAuthProviderRequest.newBuilder().setName(name).build();
+ return getAuthProvider(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Gets details of a single AuthProvider.
+ *
+ * Sample code: + * + *
{@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 (AuthProviderServiceClient authProviderServiceClient = AuthProviderServiceClient.create()) {
+ * GetAuthProviderRequest request =
+ * GetAuthProviderRequest.newBuilder()
+ * .setName(AuthProviderName.of("[PROJECT]", "[LOCATION]", "[AUTH_PROVIDER]").toString())
+ * .build();
+ * AuthProvider response = authProviderServiceClient.getAuthProvider(request);
+ * }
+ * }
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final AuthProvider getAuthProvider(GetAuthProviderRequest request) {
+ return getAuthProviderCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Gets details of a single AuthProvider.
+ *
+ * Sample code: + * + *
{@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 (AuthProviderServiceClient authProviderServiceClient = AuthProviderServiceClient.create()) {
+ * GetAuthProviderRequest request =
+ * GetAuthProviderRequest.newBuilder()
+ * .setName(AuthProviderName.of("[PROJECT]", "[LOCATION]", "[AUTH_PROVIDER]").toString())
+ * .build();
+ * ApiFuture future =
+ * authProviderServiceClient.getAuthProviderCallable().futureCall(request);
+ * // Do something.
+ * AuthProvider response = future.get();
+ * }
+ * }
+ */
+ public final UnaryCallableSample code: + * + *
{@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 (AuthProviderServiceClient authProviderServiceClient = AuthProviderServiceClient.create()) {
+ * LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
+ * AuthProvider authProvider = AuthProvider.newBuilder().build();
+ * String authProviderId = "authProviderId325000884";
+ * AuthProvider response =
+ * authProviderServiceClient.createAuthProvider(parent, authProvider, authProviderId);
+ * }
+ * }
+ *
+ * @param parent Required. The parent resource where the AuthProvider is created. Format:
+ * projects/{project}/locations/{location}
+ * @param authProvider Required. The AuthProvider to create.
+ * @param authProviderId Required. The ID to use for the AuthProvider, which will become the final
+ * segment of the AuthProvider's resource name. This value should be 1-63 characters, and
+ * valid characters are /[a-z][0-9]-/. The first character must be a lowercase letter, and the
+ * last character must be a lowercase letter or a number.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final AuthProvider createAuthProvider(
+ @Nullable LocationName parent, AuthProvider authProvider, String authProviderId) {
+ CreateAuthProviderRequest request =
+ CreateAuthProviderRequest.newBuilder()
+ .setParent(parent == null ? null : parent.toString())
+ .setAuthProvider(authProvider)
+ .setAuthProviderId(authProviderId)
+ .build();
+ return createAuthProvider(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Creates a new AuthProvider in a given project and location.
+ *
+ * Sample code: + * + *
{@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 (AuthProviderServiceClient authProviderServiceClient = AuthProviderServiceClient.create()) {
+ * String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
+ * AuthProvider authProvider = AuthProvider.newBuilder().build();
+ * String authProviderId = "authProviderId325000884";
+ * AuthProvider response =
+ * authProviderServiceClient.createAuthProvider(parent, authProvider, authProviderId);
+ * }
+ * }
+ *
+ * @param parent Required. The parent resource where the AuthProvider is created. Format:
+ * projects/{project}/locations/{location}
+ * @param authProvider Required. The AuthProvider to create.
+ * @param authProviderId Required. The ID to use for the AuthProvider, which will become the final
+ * segment of the AuthProvider's resource name. This value should be 1-63 characters, and
+ * valid characters are /[a-z][0-9]-/. The first character must be a lowercase letter, and the
+ * last character must be a lowercase letter or a number.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final AuthProvider createAuthProvider(
+ String parent, AuthProvider authProvider, String authProviderId) {
+ CreateAuthProviderRequest request =
+ CreateAuthProviderRequest.newBuilder()
+ .setParent(parent)
+ .setAuthProvider(authProvider)
+ .setAuthProviderId(authProviderId)
+ .build();
+ return createAuthProvider(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Creates a new AuthProvider in a given project and location.
+ *
+ * Sample code: + * + *
{@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 (AuthProviderServiceClient authProviderServiceClient = AuthProviderServiceClient.create()) {
+ * CreateAuthProviderRequest request =
+ * CreateAuthProviderRequest.newBuilder()
+ * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+ * .setAuthProviderId("authProviderId325000884")
+ * .setAuthProvider(AuthProvider.newBuilder().build())
+ * .setRequestId("requestId693933066")
+ * .build();
+ * AuthProvider response = authProviderServiceClient.createAuthProvider(request);
+ * }
+ * }
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final AuthProvider createAuthProvider(CreateAuthProviderRequest request) {
+ return createAuthProviderCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Creates a new AuthProvider in a given project and location.
+ *
+ * Sample code: + * + *
{@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 (AuthProviderServiceClient authProviderServiceClient = AuthProviderServiceClient.create()) {
+ * CreateAuthProviderRequest request =
+ * CreateAuthProviderRequest.newBuilder()
+ * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+ * .setAuthProviderId("authProviderId325000884")
+ * .setAuthProvider(AuthProvider.newBuilder().build())
+ * .setRequestId("requestId693933066")
+ * .build();
+ * ApiFuture future =
+ * authProviderServiceClient.createAuthProviderCallable().futureCall(request);
+ * // Do something.
+ * AuthProvider response = future.get();
+ * }
+ * }
+ */
+ public final UnaryCallableSample code: + * + *
{@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 (AuthProviderServiceClient authProviderServiceClient = AuthProviderServiceClient.create()) {
+ * AuthProvider authProvider = AuthProvider.newBuilder().build();
+ * FieldMask updateMask = FieldMask.newBuilder().build();
+ * AuthProvider response =
+ * authProviderServiceClient.updateAuthProvider(authProvider, updateMask);
+ * }
+ * }
+ *
+ * @param authProvider Required. The AuthProvider resource which replaces the resource on the
+ * server.
+ * @param updateMask Optional. Field mask is used to specify the fields to be overwritten in the
+ * AuthProvider resource by the update. The fields specified in the update_mask are relative
+ * to the resource, not the full request. A field will be overwritten if it is in the mask. If
+ * the user does not provide a mask then all fields present in the request will be
+ * overwritten.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final AuthProvider updateAuthProvider(AuthProvider authProvider, FieldMask updateMask) {
+ UpdateAuthProviderRequest request =
+ UpdateAuthProviderRequest.newBuilder()
+ .setAuthProvider(authProvider)
+ .setUpdateMask(updateMask)
+ .build();
+ return updateAuthProvider(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Updates the parameters of a single AuthProvider.
+ *
+ * Sample code: + * + *
{@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 (AuthProviderServiceClient authProviderServiceClient = AuthProviderServiceClient.create()) {
+ * UpdateAuthProviderRequest request =
+ * UpdateAuthProviderRequest.newBuilder()
+ * .setUpdateMask(FieldMask.newBuilder().build())
+ * .setAuthProvider(AuthProvider.newBuilder().build())
+ * .setRequestId("requestId693933066")
+ * .build();
+ * AuthProvider response = authProviderServiceClient.updateAuthProvider(request);
+ * }
+ * }
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final AuthProvider updateAuthProvider(UpdateAuthProviderRequest request) {
+ return updateAuthProviderCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Updates the parameters of a single AuthProvider.
+ *
+ * Sample code: + * + *
{@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 (AuthProviderServiceClient authProviderServiceClient = AuthProviderServiceClient.create()) {
+ * UpdateAuthProviderRequest request =
+ * UpdateAuthProviderRequest.newBuilder()
+ * .setUpdateMask(FieldMask.newBuilder().build())
+ * .setAuthProvider(AuthProvider.newBuilder().build())
+ * .setRequestId("requestId693933066")
+ * .build();
+ * ApiFuture future =
+ * authProviderServiceClient.updateAuthProviderCallable().futureCall(request);
+ * // Do something.
+ * AuthProvider response = future.get();
+ * }
+ * }
+ */
+ public final UnaryCallableSample code: + * + *
{@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 (AuthProviderServiceClient authProviderServiceClient = AuthProviderServiceClient.create()) {
+ * AuthProviderName name = AuthProviderName.of("[PROJECT]", "[LOCATION]", "[AUTH_PROVIDER]");
+ * authProviderServiceClient.deleteAuthProvider(name);
+ * }
+ * }
+ *
+ * @param name Required. Name of the resource
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final void deleteAuthProvider(@Nullable AuthProviderName name) {
+ DeleteAuthProviderRequest request =
+ DeleteAuthProviderRequest.newBuilder()
+ .setName(name == null ? null : name.toString())
+ .build();
+ deleteAuthProvider(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Deletes a single AuthProvider.
+ *
+ * Sample code: + * + *
{@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 (AuthProviderServiceClient authProviderServiceClient = AuthProviderServiceClient.create()) {
+ * String name = AuthProviderName.of("[PROJECT]", "[LOCATION]", "[AUTH_PROVIDER]").toString();
+ * authProviderServiceClient.deleteAuthProvider(name);
+ * }
+ * }
+ *
+ * @param name Required. Name of the resource
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final void deleteAuthProvider(String name) {
+ DeleteAuthProviderRequest request =
+ DeleteAuthProviderRequest.newBuilder().setName(name).build();
+ deleteAuthProvider(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Deletes a single AuthProvider.
+ *
+ * Sample code: + * + *
{@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 (AuthProviderServiceClient authProviderServiceClient = AuthProviderServiceClient.create()) {
+ * DeleteAuthProviderRequest request =
+ * DeleteAuthProviderRequest.newBuilder()
+ * .setName(AuthProviderName.of("[PROJECT]", "[LOCATION]", "[AUTH_PROVIDER]").toString())
+ * .setRequestId("requestId693933066")
+ * .build();
+ * authProviderServiceClient.deleteAuthProvider(request);
+ * }
+ * }
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final void deleteAuthProvider(DeleteAuthProviderRequest request) {
+ deleteAuthProviderCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Deletes a single AuthProvider.
+ *
+ * Sample code: + * + *
{@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 (AuthProviderServiceClient authProviderServiceClient = AuthProviderServiceClient.create()) {
+ * DeleteAuthProviderRequest request =
+ * DeleteAuthProviderRequest.newBuilder()
+ * .setName(AuthProviderName.of("[PROJECT]", "[LOCATION]", "[AUTH_PROVIDER]").toString())
+ * .setRequestId("requestId693933066")
+ * .build();
+ * ApiFuture future =
+ * authProviderServiceClient.deleteAuthProviderCallable().futureCall(request);
+ * // Do something.
+ * future.get();
+ * }
+ * }
+ */
+ public final UnaryCallableSample code: + * + *
{@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 (AuthProviderServiceClient authProviderServiceClient = AuthProviderServiceClient.create()) {
+ * AuthProviderName name = AuthProviderName.of("[PROJECT]", "[LOCATION]", "[AUTH_PROVIDER]");
+ * AuthProvider response = authProviderServiceClient.undeleteAuthProvider(name);
+ * }
+ * }
+ *
+ * @param name Required. Name of the resource Format:
+ * projects/{project}/locations/{location}/authProviders/{auth_provider}
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final AuthProvider undeleteAuthProvider(@Nullable AuthProviderName name) {
+ UndeleteAuthProviderRequest request =
+ UndeleteAuthProviderRequest.newBuilder()
+ .setName(name == null ? null : name.toString())
+ .build();
+ return undeleteAuthProvider(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Undeletes a single AuthProvider.
+ *
+ * Sample code: + * + *
{@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 (AuthProviderServiceClient authProviderServiceClient = AuthProviderServiceClient.create()) {
+ * String name = AuthProviderName.of("[PROJECT]", "[LOCATION]", "[AUTH_PROVIDER]").toString();
+ * AuthProvider response = authProviderServiceClient.undeleteAuthProvider(name);
+ * }
+ * }
+ *
+ * @param name Required. Name of the resource Format:
+ * projects/{project}/locations/{location}/authProviders/{auth_provider}
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final AuthProvider undeleteAuthProvider(String name) {
+ UndeleteAuthProviderRequest request =
+ UndeleteAuthProviderRequest.newBuilder().setName(name).build();
+ return undeleteAuthProvider(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Undeletes a single AuthProvider.
+ *
+ * Sample code: + * + *
{@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 (AuthProviderServiceClient authProviderServiceClient = AuthProviderServiceClient.create()) {
+ * UndeleteAuthProviderRequest request =
+ * UndeleteAuthProviderRequest.newBuilder()
+ * .setName(AuthProviderName.of("[PROJECT]", "[LOCATION]", "[AUTH_PROVIDER]").toString())
+ * .setRequestId("requestId693933066")
+ * .build();
+ * AuthProvider response = authProviderServiceClient.undeleteAuthProvider(request);
+ * }
+ * }
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final AuthProvider undeleteAuthProvider(UndeleteAuthProviderRequest request) {
+ return undeleteAuthProviderCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Undeletes a single AuthProvider.
+ *
+ * Sample code: + * + *
{@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 (AuthProviderServiceClient authProviderServiceClient = AuthProviderServiceClient.create()) {
+ * UndeleteAuthProviderRequest request =
+ * UndeleteAuthProviderRequest.newBuilder()
+ * .setName(AuthProviderName.of("[PROJECT]", "[LOCATION]", "[AUTH_PROVIDER]").toString())
+ * .setRequestId("requestId693933066")
+ * .build();
+ * ApiFuture future =
+ * authProviderServiceClient.undeleteAuthProviderCallable().futureCall(request);
+ * // Do something.
+ * AuthProvider response = future.get();
+ * }
+ * }
+ */
+ public final UnaryCallableSample code: + * + *
{@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 (AuthProviderServiceClient authProviderServiceClient = AuthProviderServiceClient.create()) {
+ * LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
+ * String workloadId = "workloadId-186277134";
+ * for (String element :
+ * authProviderServiceClient.queryAuthProviders(parent, workloadId).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ *
+ * @param parent Required. The parent resource where the search is performed. Format:
+ * projects/{project}/locations/{location}
+ * @param workloadId Required. The workload identifier to filter by.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final QueryAuthProvidersPagedResponse queryAuthProviders(
+ @Nullable LocationName parent, String workloadId) {
+ QueryAuthProvidersRequest request =
+ QueryAuthProvidersRequest.newBuilder()
+ .setParent(parent == null ? null : parent.toString())
+ .setWorkloadId(workloadId)
+ .build();
+ return queryAuthProviders(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Queries what all auth_providers are used by a given workload_id.
+ *
+ * Sample code: + * + *
{@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 (AuthProviderServiceClient authProviderServiceClient = AuthProviderServiceClient.create()) {
+ * String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
+ * String workloadId = "workloadId-186277134";
+ * for (String element :
+ * authProviderServiceClient.queryAuthProviders(parent, workloadId).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ *
+ * @param parent Required. The parent resource where the search is performed. Format:
+ * projects/{project}/locations/{location}
+ * @param workloadId Required. The workload identifier to filter by.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final QueryAuthProvidersPagedResponse queryAuthProviders(
+ String parent, String workloadId) {
+ QueryAuthProvidersRequest request =
+ QueryAuthProvidersRequest.newBuilder().setParent(parent).setWorkloadId(workloadId).build();
+ return queryAuthProviders(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Queries what all auth_providers are used by a given workload_id.
+ *
+ * Sample code: + * + *
{@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 (AuthProviderServiceClient authProviderServiceClient = AuthProviderServiceClient.create()) {
+ * QueryAuthProvidersRequest request =
+ * QueryAuthProvidersRequest.newBuilder()
+ * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+ * .setWorkloadId("workloadId-186277134")
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .build();
+ * for (String element : authProviderServiceClient.queryAuthProviders(request).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final QueryAuthProvidersPagedResponse queryAuthProviders(
+ QueryAuthProvidersRequest request) {
+ return queryAuthProvidersPagedCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Queries what all auth_providers are used by a given workload_id.
+ *
+ * Sample code: + * + *
{@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 (AuthProviderServiceClient authProviderServiceClient = AuthProviderServiceClient.create()) {
+ * QueryAuthProvidersRequest request =
+ * QueryAuthProvidersRequest.newBuilder()
+ * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+ * .setWorkloadId("workloadId-186277134")
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .build();
+ * ApiFuture future =
+ * authProviderServiceClient.queryAuthProvidersPagedCallable().futureCall(request);
+ * // Do something.
+ * for (String element : future.get().iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ */
+ public final UnaryCallableSample code: + * + *
{@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 (AuthProviderServiceClient authProviderServiceClient = AuthProviderServiceClient.create()) {
+ * QueryAuthProvidersRequest request =
+ * QueryAuthProvidersRequest.newBuilder()
+ * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+ * .setWorkloadId("workloadId-186277134")
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .build();
+ * while (true) {
+ * QueryAuthProvidersResponse response =
+ * authProviderServiceClient.queryAuthProvidersCallable().call(request);
+ * for (String element : response.getAuthProviderNamesList()) {
+ * // doThingsWith(element);
+ * }
+ * String nextPageToken = response.getNextPageToken();
+ * if (!Strings.isNullOrEmpty(nextPageToken)) {
+ * request = request.toBuilder().setPageToken(nextPageToken).build();
+ * } else {
+ * break;
+ * }
+ * }
+ * }
+ * }
+ */
+ public final UnaryCallableSample code: + * + *
{@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 (AuthProviderServiceClient authProviderServiceClient = AuthProviderServiceClient.create()) {
+ * AuthProviderName name = AuthProviderName.of("[PROJECT]", "[LOCATION]", "[AUTH_PROVIDER]");
+ * for (String element : authProviderServiceClient.queryWorkloads(name).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ *
+ * @param name Required. The name of the auth_provider to query. Format:
+ * projects/{project}/locations/{location}/authProviders/{auth_provider}
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final QueryWorkloadsPagedResponse queryWorkloads(@Nullable AuthProviderName name) {
+ QueryWorkloadsRequest request =
+ QueryWorkloadsRequest.newBuilder().setName(name == null ? null : name.toString()).build();
+ return queryWorkloads(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Queries what all workloads are using a given auth_provider.
+ *
+ * Sample code: + * + *
{@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 (AuthProviderServiceClient authProviderServiceClient = AuthProviderServiceClient.create()) {
+ * String name = AuthProviderName.of("[PROJECT]", "[LOCATION]", "[AUTH_PROVIDER]").toString();
+ * for (String element : authProviderServiceClient.queryWorkloads(name).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ *
+ * @param name Required. The name of the auth_provider to query. Format:
+ * projects/{project}/locations/{location}/authProviders/{auth_provider}
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final QueryWorkloadsPagedResponse queryWorkloads(String name) {
+ QueryWorkloadsRequest request = QueryWorkloadsRequest.newBuilder().setName(name).build();
+ return queryWorkloads(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Queries what all workloads are using a given auth_provider.
+ *
+ * Sample code: + * + *
{@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 (AuthProviderServiceClient authProviderServiceClient = AuthProviderServiceClient.create()) {
+ * QueryWorkloadsRequest request =
+ * QueryWorkloadsRequest.newBuilder()
+ * .setName(AuthProviderName.of("[PROJECT]", "[LOCATION]", "[AUTH_PROVIDER]").toString())
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .build();
+ * for (String element : authProviderServiceClient.queryWorkloads(request).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final QueryWorkloadsPagedResponse queryWorkloads(QueryWorkloadsRequest request) {
+ return queryWorkloadsPagedCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Queries what all workloads are using a given auth_provider.
+ *
+ * Sample code: + * + *
{@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 (AuthProviderServiceClient authProviderServiceClient = AuthProviderServiceClient.create()) {
+ * QueryWorkloadsRequest request =
+ * QueryWorkloadsRequest.newBuilder()
+ * .setName(AuthProviderName.of("[PROJECT]", "[LOCATION]", "[AUTH_PROVIDER]").toString())
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .build();
+ * ApiFuture future =
+ * authProviderServiceClient.queryWorkloadsPagedCallable().futureCall(request);
+ * // Do something.
+ * for (String element : future.get().iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ */
+ public final UnaryCallableSample code: + * + *
{@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 (AuthProviderServiceClient authProviderServiceClient = AuthProviderServiceClient.create()) {
+ * QueryWorkloadsRequest request =
+ * QueryWorkloadsRequest.newBuilder()
+ * .setName(AuthProviderName.of("[PROJECT]", "[LOCATION]", "[AUTH_PROVIDER]").toString())
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .build();
+ * while (true) {
+ * QueryWorkloadsResponse response =
+ * authProviderServiceClient.queryWorkloadsCallable().call(request);
+ * for (String element : response.getWorkloadIdsList()) {
+ * // doThingsWith(element);
+ * }
+ * String nextPageToken = response.getNextPageToken();
+ * if (!Strings.isNullOrEmpty(nextPageToken)) {
+ * request = request.toBuilder().setPageToken(nextPageToken).build();
+ * } else {
+ * break;
+ * }
+ * }
+ * }
+ * }
+ */
+ public final UnaryCallableSample code: + * + *
{@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 (AuthProviderServiceClient authProviderServiceClient = AuthProviderServiceClient.create()) {
+ * AuthProviderName parent = AuthProviderName.of("[PROJECT]", "[LOCATION]", "[AUTH_PROVIDER]");
+ * for (Authorization element :
+ * authProviderServiceClient.listAuthorizations(parent).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ *
+ * @param parent Required. The parent resource where the search is performed. Format:
+ * projects/{project}/locations/{location}/authProviders/{auth_provider}
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ListAuthorizationsPagedResponse listAuthorizations(
+ @Nullable AuthProviderName parent) {
+ ListAuthorizationsRequest request =
+ ListAuthorizationsRequest.newBuilder()
+ .setParent(parent == null ? null : parent.toString())
+ .build();
+ return listAuthorizations(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists Authorizations in a given project and location.
+ *
+ * Sample code: + * + *
{@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 (AuthProviderServiceClient authProviderServiceClient = AuthProviderServiceClient.create()) {
+ * String parent = AuthProviderName.of("[PROJECT]", "[LOCATION]", "[AUTH_PROVIDER]").toString();
+ * for (Authorization element :
+ * authProviderServiceClient.listAuthorizations(parent).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ *
+ * @param parent Required. The parent resource where the search is performed. Format:
+ * projects/{project}/locations/{location}/authProviders/{auth_provider}
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ListAuthorizationsPagedResponse listAuthorizations(String parent) {
+ ListAuthorizationsRequest request =
+ ListAuthorizationsRequest.newBuilder().setParent(parent).build();
+ return listAuthorizations(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists Authorizations in a given project and location.
+ *
+ * Sample code: + * + *
{@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 (AuthProviderServiceClient authProviderServiceClient = AuthProviderServiceClient.create()) {
+ * ListAuthorizationsRequest request =
+ * ListAuthorizationsRequest.newBuilder()
+ * .setParent(
+ * AuthProviderName.of("[PROJECT]", "[LOCATION]", "[AUTH_PROVIDER]").toString())
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .setFilter("filter-1274492040")
+ * .setOrderBy("orderBy-1207110587")
+ * .build();
+ * for (Authorization element :
+ * authProviderServiceClient.listAuthorizations(request).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ListAuthorizationsPagedResponse listAuthorizations(
+ ListAuthorizationsRequest request) {
+ return listAuthorizationsPagedCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists Authorizations in a given project and location.
+ *
+ * Sample code: + * + *
{@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 (AuthProviderServiceClient authProviderServiceClient = AuthProviderServiceClient.create()) {
+ * ListAuthorizationsRequest request =
+ * ListAuthorizationsRequest.newBuilder()
+ * .setParent(
+ * AuthProviderName.of("[PROJECT]", "[LOCATION]", "[AUTH_PROVIDER]").toString())
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .setFilter("filter-1274492040")
+ * .setOrderBy("orderBy-1207110587")
+ * .build();
+ * ApiFuture future =
+ * authProviderServiceClient.listAuthorizationsPagedCallable().futureCall(request);
+ * // Do something.
+ * for (Authorization element : future.get().iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ */
+ public final UnaryCallableSample code: + * + *
{@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 (AuthProviderServiceClient authProviderServiceClient = AuthProviderServiceClient.create()) {
+ * ListAuthorizationsRequest request =
+ * ListAuthorizationsRequest.newBuilder()
+ * .setParent(
+ * AuthProviderName.of("[PROJECT]", "[LOCATION]", "[AUTH_PROVIDER]").toString())
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .setFilter("filter-1274492040")
+ * .setOrderBy("orderBy-1207110587")
+ * .build();
+ * while (true) {
+ * ListAuthorizationsResponse response =
+ * authProviderServiceClient.listAuthorizationsCallable().call(request);
+ * for (Authorization element : response.getAuthorizationsList()) {
+ * // doThingsWith(element);
+ * }
+ * String nextPageToken = response.getNextPageToken();
+ * if (!Strings.isNullOrEmpty(nextPageToken)) {
+ * request = request.toBuilder().setPageToken(nextPageToken).build();
+ * } else {
+ * break;
+ * }
+ * }
+ * }
+ * }
+ */
+ public final UnaryCallableSample code: + * + *
{@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 (AuthProviderServiceClient authProviderServiceClient = AuthProviderServiceClient.create()) {
+ * AuthorizationName name =
+ * AuthorizationName.of("[PROJECT]", "[LOCATION]", "[AUTH_PROVIDER]", "[AUTHORIZATION]");
+ * Authorization response = authProviderServiceClient.getAuthorization(name);
+ * }
+ * }
+ *
+ * @param name Required. Name of the resource
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final Authorization getAuthorization(@Nullable AuthorizationName name) {
+ GetAuthorizationRequest request =
+ GetAuthorizationRequest.newBuilder().setName(name == null ? null : name.toString()).build();
+ return getAuthorization(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Gets details of a single Authorization.
+ *
+ * Sample code: + * + *
{@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 (AuthProviderServiceClient authProviderServiceClient = AuthProviderServiceClient.create()) {
+ * String name =
+ * AuthorizationName.of("[PROJECT]", "[LOCATION]", "[AUTH_PROVIDER]", "[AUTHORIZATION]")
+ * .toString();
+ * Authorization response = authProviderServiceClient.getAuthorization(name);
+ * }
+ * }
+ *
+ * @param name Required. Name of the resource
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final Authorization getAuthorization(String name) {
+ GetAuthorizationRequest request = GetAuthorizationRequest.newBuilder().setName(name).build();
+ return getAuthorization(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Gets details of a single Authorization.
+ *
+ * Sample code: + * + *
{@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 (AuthProviderServiceClient authProviderServiceClient = AuthProviderServiceClient.create()) {
+ * GetAuthorizationRequest request =
+ * GetAuthorizationRequest.newBuilder()
+ * .setName(
+ * AuthorizationName.of(
+ * "[PROJECT]", "[LOCATION]", "[AUTH_PROVIDER]", "[AUTHORIZATION]")
+ * .toString())
+ * .build();
+ * Authorization response = authProviderServiceClient.getAuthorization(request);
+ * }
+ * }
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final Authorization getAuthorization(GetAuthorizationRequest request) {
+ return getAuthorizationCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Gets details of a single Authorization.
+ *
+ * Sample code: + * + *
{@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 (AuthProviderServiceClient authProviderServiceClient = AuthProviderServiceClient.create()) {
+ * GetAuthorizationRequest request =
+ * GetAuthorizationRequest.newBuilder()
+ * .setName(
+ * AuthorizationName.of(
+ * "[PROJECT]", "[LOCATION]", "[AUTH_PROVIDER]", "[AUTHORIZATION]")
+ * .toString())
+ * .build();
+ * ApiFuture future =
+ * authProviderServiceClient.getAuthorizationCallable().futureCall(request);
+ * // Do something.
+ * Authorization response = future.get();
+ * }
+ * }
+ */
+ public final UnaryCallableSample code: + * + *
{@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 (AuthProviderServiceClient authProviderServiceClient = AuthProviderServiceClient.create()) {
+ * AuthorizationName name =
+ * AuthorizationName.of("[PROJECT]", "[LOCATION]", "[AUTH_PROVIDER]", "[AUTHORIZATION]");
+ * authProviderServiceClient.deleteAuthorization(name);
+ * }
+ * }
+ *
+ * @param name Required. The name of the Authorization to delete. Format:
+ * projects/{project}/locations/{location}/authProviders/{auth_provider}/authorizations/{authorization}
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final void deleteAuthorization(@Nullable AuthorizationName name) {
+ DeleteAuthorizationRequest request =
+ DeleteAuthorizationRequest.newBuilder()
+ .setName(name == null ? null : name.toString())
+ .build();
+ deleteAuthorization(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Deletes a single Authorization.
+ *
+ * Sample code: + * + *
{@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 (AuthProviderServiceClient authProviderServiceClient = AuthProviderServiceClient.create()) {
+ * String name =
+ * AuthorizationName.of("[PROJECT]", "[LOCATION]", "[AUTH_PROVIDER]", "[AUTHORIZATION]")
+ * .toString();
+ * authProviderServiceClient.deleteAuthorization(name);
+ * }
+ * }
+ *
+ * @param name Required. The name of the Authorization to delete. Format:
+ * projects/{project}/locations/{location}/authProviders/{auth_provider}/authorizations/{authorization}
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final void deleteAuthorization(String name) {
+ DeleteAuthorizationRequest request =
+ DeleteAuthorizationRequest.newBuilder().setName(name).build();
+ deleteAuthorization(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Deletes a single Authorization.
+ *
+ * Sample code: + * + *
{@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 (AuthProviderServiceClient authProviderServiceClient = AuthProviderServiceClient.create()) {
+ * DeleteAuthorizationRequest request =
+ * DeleteAuthorizationRequest.newBuilder()
+ * .setName(
+ * AuthorizationName.of(
+ * "[PROJECT]", "[LOCATION]", "[AUTH_PROVIDER]", "[AUTHORIZATION]")
+ * .toString())
+ * .setRequestId("requestId693933066")
+ * .build();
+ * authProviderServiceClient.deleteAuthorization(request);
+ * }
+ * }
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final void deleteAuthorization(DeleteAuthorizationRequest request) {
+ deleteAuthorizationCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Deletes a single Authorization.
+ *
+ * Sample code: + * + *
{@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 (AuthProviderServiceClient authProviderServiceClient = AuthProviderServiceClient.create()) {
+ * DeleteAuthorizationRequest request =
+ * DeleteAuthorizationRequest.newBuilder()
+ * .setName(
+ * AuthorizationName.of(
+ * "[PROJECT]", "[LOCATION]", "[AUTH_PROVIDER]", "[AUTHORIZATION]")
+ * .toString())
+ * .setRequestId("requestId693933066")
+ * .build();
+ * ApiFuture future =
+ * authProviderServiceClient.deleteAuthorizationCallable().futureCall(request);
+ * // Do something.
+ * future.get();
+ * }
+ * }
+ */
+ public final UnaryCallableSample code: + * + *
{@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 (AuthProviderServiceClient authProviderServiceClient = AuthProviderServiceClient.create()) {
+ * LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
+ * for (AccessSummary element :
+ * authProviderServiceClient.listAccessSummaries(parent).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ *
+ * @param parent Required. The parent resource where the search is performed. Format:
+ * projects/{project}/locations/{location}
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ListAccessSummariesPagedResponse listAccessSummaries(@Nullable LocationName parent) {
+ ListAccessSummariesRequest request =
+ ListAccessSummariesRequest.newBuilder()
+ .setParent(parent == null ? null : parent.toString())
+ .build();
+ return listAccessSummaries(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists AccessSummaries in a given project and location. Supported Filters: - `workload_id`:
+ * Filter by the SPIFFE ID of the agent. Example:
+ * `workload_id="spiffe://example.com/ns/default/sa/my-agent"`
+ *
+ * Sample code: + * + *
{@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 (AuthProviderServiceClient authProviderServiceClient = AuthProviderServiceClient.create()) {
+ * String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
+ * for (AccessSummary element :
+ * authProviderServiceClient.listAccessSummaries(parent).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ *
+ * @param parent Required. The parent resource where the search is performed. Format:
+ * projects/{project}/locations/{location}
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ListAccessSummariesPagedResponse listAccessSummaries(String parent) {
+ ListAccessSummariesRequest request =
+ ListAccessSummariesRequest.newBuilder().setParent(parent).build();
+ return listAccessSummaries(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists AccessSummaries in a given project and location. Supported Filters: - `workload_id`:
+ * Filter by the SPIFFE ID of the agent. Example:
+ * `workload_id="spiffe://example.com/ns/default/sa/my-agent"`
+ *
+ * Sample code: + * + *
{@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 (AuthProviderServiceClient authProviderServiceClient = AuthProviderServiceClient.create()) {
+ * ListAccessSummariesRequest request =
+ * ListAccessSummariesRequest.newBuilder()
+ * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .setFilter("filter-1274492040")
+ * .setOrderBy("orderBy-1207110587")
+ * .build();
+ * for (AccessSummary element :
+ * authProviderServiceClient.listAccessSummaries(request).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ListAccessSummariesPagedResponse listAccessSummaries(
+ ListAccessSummariesRequest request) {
+ return listAccessSummariesPagedCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists AccessSummaries in a given project and location. Supported Filters: - `workload_id`:
+ * Filter by the SPIFFE ID of the agent. Example:
+ * `workload_id="spiffe://example.com/ns/default/sa/my-agent"`
+ *
+ * Sample code: + * + *
{@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 (AuthProviderServiceClient authProviderServiceClient = AuthProviderServiceClient.create()) {
+ * ListAccessSummariesRequest request =
+ * ListAccessSummariesRequest.newBuilder()
+ * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .setFilter("filter-1274492040")
+ * .setOrderBy("orderBy-1207110587")
+ * .build();
+ * ApiFuture future =
+ * authProviderServiceClient.listAccessSummariesPagedCallable().futureCall(request);
+ * // Do something.
+ * for (AccessSummary element : future.get().iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ */
+ public final UnaryCallableSample code: + * + *
{@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 (AuthProviderServiceClient authProviderServiceClient = AuthProviderServiceClient.create()) {
+ * ListAccessSummariesRequest request =
+ * ListAccessSummariesRequest.newBuilder()
+ * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .setFilter("filter-1274492040")
+ * .setOrderBy("orderBy-1207110587")
+ * .build();
+ * while (true) {
+ * ListAccessSummariesResponse response =
+ * authProviderServiceClient.listAccessSummariesCallable().call(request);
+ * for (AccessSummary element : response.getAccessSummariesList()) {
+ * // doThingsWith(element);
+ * }
+ * String nextPageToken = response.getNextPageToken();
+ * if (!Strings.isNullOrEmpty(nextPageToken)) {
+ * request = request.toBuilder().setPageToken(nextPageToken).build();
+ * } else {
+ * break;
+ * }
+ * }
+ * }
+ * }
+ */
+ public final UnaryCallableSample code: + * + *
{@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 (AuthProviderServiceClient authProviderServiceClient = AuthProviderServiceClient.create()) {
+ * AccessSummaryName name = AccessSummaryName.of("[PROJECT]", "[LOCATION]", "[ACCESS_SUMMARY]");
+ * AccessSummary response = authProviderServiceClient.getAccessSummary(name);
+ * }
+ * }
+ *
+ * @param name Required. Name of the resource
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final AccessSummary getAccessSummary(@Nullable AccessSummaryName name) {
+ GetAccessSummaryRequest request =
+ GetAccessSummaryRequest.newBuilder().setName(name == null ? null : name.toString()).build();
+ return getAccessSummary(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Gets details of a single AccessSummary.
+ *
+ * Sample code: + * + *
{@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 (AuthProviderServiceClient authProviderServiceClient = AuthProviderServiceClient.create()) {
+ * String name = AccessSummaryName.of("[PROJECT]", "[LOCATION]", "[ACCESS_SUMMARY]").toString();
+ * AccessSummary response = authProviderServiceClient.getAccessSummary(name);
+ * }
+ * }
+ *
+ * @param name Required. Name of the resource
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final AccessSummary getAccessSummary(String name) {
+ GetAccessSummaryRequest request = GetAccessSummaryRequest.newBuilder().setName(name).build();
+ return getAccessSummary(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Gets details of a single AccessSummary.
+ *
+ * Sample code: + * + *
{@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 (AuthProviderServiceClient authProviderServiceClient = AuthProviderServiceClient.create()) {
+ * GetAccessSummaryRequest request =
+ * GetAccessSummaryRequest.newBuilder()
+ * .setName(
+ * AccessSummaryName.of("[PROJECT]", "[LOCATION]", "[ACCESS_SUMMARY]").toString())
+ * .build();
+ * AccessSummary response = authProviderServiceClient.getAccessSummary(request);
+ * }
+ * }
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final AccessSummary getAccessSummary(GetAccessSummaryRequest request) {
+ return getAccessSummaryCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Gets details of a single AccessSummary.
+ *
+ * Sample code: + * + *
{@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 (AuthProviderServiceClient authProviderServiceClient = AuthProviderServiceClient.create()) {
+ * GetAccessSummaryRequest request =
+ * GetAccessSummaryRequest.newBuilder()
+ * .setName(
+ * AccessSummaryName.of("[PROJECT]", "[LOCATION]", "[ACCESS_SUMMARY]").toString())
+ * .build();
+ * ApiFuture future =
+ * authProviderServiceClient.getAccessSummaryCallable().futureCall(request);
+ * // Do something.
+ * AccessSummary response = future.get();
+ * }
+ * }
+ */
+ public final UnaryCallableSample code: + * + *
{@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 (AuthProviderServiceClient authProviderServiceClient = AuthProviderServiceClient.create()) {
+ * AuthProviderName name = AuthProviderName.of("[PROJECT]", "[LOCATION]", "[AUTH_PROVIDER]");
+ * String userId = "userId-836030906";
+ * RevokeAuthorizationResponse response =
+ * authProviderServiceClient.revokeAuthorization(name, userId);
+ * }
+ * }
+ *
+ * @param name Required. The resource name of the AuthProvider. Format:
+ * projects/{project}/locations/{location}/authProviders/{auth_provider}
+ * @param userId Required. The identity of the user to revoke authorization for.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final RevokeAuthorizationResponse revokeAuthorization(
+ @Nullable AuthProviderName name, String userId) {
+ RevokeAuthorizationRequest request =
+ RevokeAuthorizationRequest.newBuilder()
+ .setName(name == null ? null : name.toString())
+ .setUserId(userId)
+ .build();
+ return revokeAuthorization(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Revokes all authorizations for a specific user on an AuthProvider. This deletes all
+ * authorization records associated with the user and AuthProvider, effectively revoking access
+ * across all agents.
+ *
+ * Sample code: + * + *
{@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 (AuthProviderServiceClient authProviderServiceClient = AuthProviderServiceClient.create()) {
+ * String name = AuthProviderName.of("[PROJECT]", "[LOCATION]", "[AUTH_PROVIDER]").toString();
+ * String userId = "userId-836030906";
+ * RevokeAuthorizationResponse response =
+ * authProviderServiceClient.revokeAuthorization(name, userId);
+ * }
+ * }
+ *
+ * @param name Required. The resource name of the AuthProvider. Format:
+ * projects/{project}/locations/{location}/authProviders/{auth_provider}
+ * @param userId Required. The identity of the user to revoke authorization for.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final RevokeAuthorizationResponse revokeAuthorization(String name, String userId) {
+ RevokeAuthorizationRequest request =
+ RevokeAuthorizationRequest.newBuilder().setName(name).setUserId(userId).build();
+ return revokeAuthorization(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Revokes all authorizations for a specific user on an AuthProvider. This deletes all
+ * authorization records associated with the user and AuthProvider, effectively revoking access
+ * across all agents.
+ *
+ * Sample code: + * + *
{@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 (AuthProviderServiceClient authProviderServiceClient = AuthProviderServiceClient.create()) {
+ * RevokeAuthorizationRequest request =
+ * RevokeAuthorizationRequest.newBuilder()
+ * .setName(AuthProviderName.of("[PROJECT]", "[LOCATION]", "[AUTH_PROVIDER]").toString())
+ * .setUserId("userId-836030906")
+ * .build();
+ * RevokeAuthorizationResponse response = authProviderServiceClient.revokeAuthorization(request);
+ * }
+ * }
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final RevokeAuthorizationResponse revokeAuthorization(RevokeAuthorizationRequest request) {
+ return revokeAuthorizationCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Revokes all authorizations for a specific user on an AuthProvider. This deletes all
+ * authorization records associated with the user and AuthProvider, effectively revoking access
+ * across all agents.
+ *
+ * Sample code: + * + *
{@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 (AuthProviderServiceClient authProviderServiceClient = AuthProviderServiceClient.create()) {
+ * RevokeAuthorizationRequest request =
+ * RevokeAuthorizationRequest.newBuilder()
+ * .setName(AuthProviderName.of("[PROJECT]", "[LOCATION]", "[AUTH_PROVIDER]").toString())
+ * .setUserId("userId-836030906")
+ * .build();
+ * ApiFuture future =
+ * authProviderServiceClient.revokeAuthorizationCallable().futureCall(request);
+ * // Do something.
+ * RevokeAuthorizationResponse response = future.get();
+ * }
+ * }
+ */
+ public final UnaryCallableSample code: + * + *
{@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 (AuthProviderServiceClient authProviderServiceClient = AuthProviderServiceClient.create()) {
+ * AuthProviderName name = AuthProviderName.of("[PROJECT]", "[LOCATION]", "[AUTH_PROVIDER]");
+ * AuthProvider response = authProviderServiceClient.enableAuthProvider(name);
+ * }
+ * }
+ *
+ * @param name Required. Name of the resource Format:
+ * projects/{project}/locations/{location}/authProviders/{auth_provider}
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final AuthProvider enableAuthProvider(@Nullable AuthProviderName name) {
+ EnableAuthProviderRequest request =
+ EnableAuthProviderRequest.newBuilder()
+ .setName(name == null ? null : name.toString())
+ .build();
+ return enableAuthProvider(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Enables a single AuthProvider.
+ *
+ * Sample code: + * + *
{@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 (AuthProviderServiceClient authProviderServiceClient = AuthProviderServiceClient.create()) {
+ * String name = AuthProviderName.of("[PROJECT]", "[LOCATION]", "[AUTH_PROVIDER]").toString();
+ * AuthProvider response = authProviderServiceClient.enableAuthProvider(name);
+ * }
+ * }
+ *
+ * @param name Required. Name of the resource Format:
+ * projects/{project}/locations/{location}/authProviders/{auth_provider}
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final AuthProvider enableAuthProvider(String name) {
+ EnableAuthProviderRequest request =
+ EnableAuthProviderRequest.newBuilder().setName(name).build();
+ return enableAuthProvider(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Enables a single AuthProvider.
+ *
+ * Sample code: + * + *
{@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 (AuthProviderServiceClient authProviderServiceClient = AuthProviderServiceClient.create()) {
+ * EnableAuthProviderRequest request =
+ * EnableAuthProviderRequest.newBuilder()
+ * .setName(AuthProviderName.of("[PROJECT]", "[LOCATION]", "[AUTH_PROVIDER]").toString())
+ * .setRequestId("requestId693933066")
+ * .build();
+ * AuthProvider response = authProviderServiceClient.enableAuthProvider(request);
+ * }
+ * }
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final AuthProvider enableAuthProvider(EnableAuthProviderRequest request) {
+ return enableAuthProviderCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Enables a single AuthProvider.
+ *
+ * Sample code: + * + *
{@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 (AuthProviderServiceClient authProviderServiceClient = AuthProviderServiceClient.create()) {
+ * EnableAuthProviderRequest request =
+ * EnableAuthProviderRequest.newBuilder()
+ * .setName(AuthProviderName.of("[PROJECT]", "[LOCATION]", "[AUTH_PROVIDER]").toString())
+ * .setRequestId("requestId693933066")
+ * .build();
+ * ApiFuture future =
+ * authProviderServiceClient.enableAuthProviderCallable().futureCall(request);
+ * // Do something.
+ * AuthProvider response = future.get();
+ * }
+ * }
+ */
+ public final UnaryCallableSample code: + * + *
{@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 (AuthProviderServiceClient authProviderServiceClient = AuthProviderServiceClient.create()) {
+ * AuthProviderName name = AuthProviderName.of("[PROJECT]", "[LOCATION]", "[AUTH_PROVIDER]");
+ * AuthProvider response = authProviderServiceClient.disableAuthProvider(name);
+ * }
+ * }
+ *
+ * @param name Required. Name of the resource Format:
+ * projects/{project}/locations/{location}/authProviders/{auth_provider}
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final AuthProvider disableAuthProvider(@Nullable AuthProviderName name) {
+ DisableAuthProviderRequest request =
+ DisableAuthProviderRequest.newBuilder()
+ .setName(name == null ? null : name.toString())
+ .build();
+ return disableAuthProvider(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Disables a single AuthProvider.
+ *
+ * Sample code: + * + *
{@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 (AuthProviderServiceClient authProviderServiceClient = AuthProviderServiceClient.create()) {
+ * String name = AuthProviderName.of("[PROJECT]", "[LOCATION]", "[AUTH_PROVIDER]").toString();
+ * AuthProvider response = authProviderServiceClient.disableAuthProvider(name);
+ * }
+ * }
+ *
+ * @param name Required. Name of the resource Format:
+ * projects/{project}/locations/{location}/authProviders/{auth_provider}
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final AuthProvider disableAuthProvider(String name) {
+ DisableAuthProviderRequest request =
+ DisableAuthProviderRequest.newBuilder().setName(name).build();
+ return disableAuthProvider(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Disables a single AuthProvider.
+ *
+ * Sample code: + * + *
{@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 (AuthProviderServiceClient authProviderServiceClient = AuthProviderServiceClient.create()) {
+ * DisableAuthProviderRequest request =
+ * DisableAuthProviderRequest.newBuilder()
+ * .setName(AuthProviderName.of("[PROJECT]", "[LOCATION]", "[AUTH_PROVIDER]").toString())
+ * .setRequestId("requestId693933066")
+ * .build();
+ * AuthProvider response = authProviderServiceClient.disableAuthProvider(request);
+ * }
+ * }
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final AuthProvider disableAuthProvider(DisableAuthProviderRequest request) {
+ return disableAuthProviderCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Disables a single AuthProvider.
+ *
+ * Sample code: + * + *
{@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 (AuthProviderServiceClient authProviderServiceClient = AuthProviderServiceClient.create()) {
+ * DisableAuthProviderRequest request =
+ * DisableAuthProviderRequest.newBuilder()
+ * .setName(AuthProviderName.of("[PROJECT]", "[LOCATION]", "[AUTH_PROVIDER]").toString())
+ * .setRequestId("requestId693933066")
+ * .build();
+ * ApiFuture future =
+ * authProviderServiceClient.disableAuthProviderCallable().futureCall(request);
+ * // Do something.
+ * AuthProvider response = future.get();
+ * }
+ * }
+ */
+ public final UnaryCallableThis method lists locations based on the resource scope provided inthe + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic + * locations available to all projects. * **Project-specificlocations**: If + * `name` follows the format`projects/{project}`, the method lists locations visible to + * thatspecific project. This includes public, private, or otherproject-specific locations enabled + * for the project. + * + *
For gRPC and client library implementations, the resource name ispassed as the `name` field. + * For direct service calls, the resourcename isincorporated into the request path based on the + * specific serviceimplementation and version. + * + *
Sample code: + * + *
{@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 (AuthProviderServiceClient authProviderServiceClient = AuthProviderServiceClient.create()) {
+ * ListLocationsRequest request =
+ * ListLocationsRequest.newBuilder()
+ * .setName("name3373707")
+ * .setFilter("filter-1274492040")
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .build();
+ * for (Location element : authProviderServiceClient.listLocations(request).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ListLocationsPagedResponse listLocations(ListLocationsRequest request) {
+ return listLocationsPagedCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists information about the supported locations for this service.
+ *
+ * This method lists locations based on the resource scope provided inthe + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic + * locations available to all projects. * **Project-specificlocations**: If + * `name` follows the format`projects/{project}`, the method lists locations visible to + * thatspecific project. This includes public, private, or otherproject-specific locations enabled + * for the project. + * + *
For gRPC and client library implementations, the resource name ispassed as the `name` field. + * For direct service calls, the resourcename isincorporated into the request path based on the + * specific serviceimplementation and version. + * + *
Sample code: + * + *
{@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 (AuthProviderServiceClient authProviderServiceClient = AuthProviderServiceClient.create()) {
+ * ListLocationsRequest request =
+ * ListLocationsRequest.newBuilder()
+ * .setName("name3373707")
+ * .setFilter("filter-1274492040")
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .build();
+ * ApiFuture future =
+ * authProviderServiceClient.listLocationsPagedCallable().futureCall(request);
+ * // Do something.
+ * for (Location element : future.get().iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ */
+ public final UnaryCallableThis method lists locations based on the resource scope provided inthe + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic + * locations available to all projects. * **Project-specificlocations**: If + * `name` follows the format`projects/{project}`, the method lists locations visible to + * thatspecific project. This includes public, private, or otherproject-specific locations enabled + * for the project. + * + *
For gRPC and client library implementations, the resource name ispassed as the `name` field. + * For direct service calls, the resourcename isincorporated into the request path based on the + * specific serviceimplementation and version. + * + *
Sample code: + * + *
{@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 (AuthProviderServiceClient authProviderServiceClient = AuthProviderServiceClient.create()) {
+ * ListLocationsRequest request =
+ * ListLocationsRequest.newBuilder()
+ * .setName("name3373707")
+ * .setFilter("filter-1274492040")
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .build();
+ * while (true) {
+ * ListLocationsResponse response =
+ * authProviderServiceClient.listLocationsCallable().call(request);
+ * for (Location element : response.getLocationsList()) {
+ * // doThingsWith(element);
+ * }
+ * String nextPageToken = response.getNextPageToken();
+ * if (!Strings.isNullOrEmpty(nextPageToken)) {
+ * request = request.toBuilder().setPageToken(nextPageToken).build();
+ * } else {
+ * break;
+ * }
+ * }
+ * }
+ * }
+ */
+ public final UnaryCallableSample code: + * + *
{@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 (AuthProviderServiceClient authProviderServiceClient = AuthProviderServiceClient.create()) {
+ * GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build();
+ * Location response = authProviderServiceClient.getLocation(request);
+ * }
+ * }
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final Location getLocation(GetLocationRequest request) {
+ return getLocationCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Gets information about a location.
+ *
+ * Sample code: + * + *
{@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 (AuthProviderServiceClient authProviderServiceClient = AuthProviderServiceClient.create()) {
+ * GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build();
+ * ApiFuture future =
+ * authProviderServiceClient.getLocationCallable().futureCall(request);
+ * // Do something.
+ * Location response = future.get();
+ * }
+ * }
+ */
+ public final UnaryCallableCan return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED`errors. + * + *
Sample code: + * + *
{@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 (AuthProviderServiceClient authProviderServiceClient = AuthProviderServiceClient.create()) {
+ * SetIamPolicyRequest request =
+ * SetIamPolicyRequest.newBuilder()
+ * .setResource(
+ * AuthProviderName.of("[PROJECT]", "[LOCATION]", "[AUTH_PROVIDER]").toString())
+ * .setPolicy(Policy.newBuilder().build())
+ * .setUpdateMask(FieldMask.newBuilder().build())
+ * .build();
+ * Policy response = authProviderServiceClient.setIamPolicy(request);
+ * }
+ * }
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final Policy setIamPolicy(SetIamPolicyRequest request) {
+ return setIamPolicyCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Sets the access control policy on the specified resource. Replacesany existing policy.
+ *
+ * Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED`errors. + * + *
Sample code: + * + *
{@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 (AuthProviderServiceClient authProviderServiceClient = AuthProviderServiceClient.create()) {
+ * SetIamPolicyRequest request =
+ * SetIamPolicyRequest.newBuilder()
+ * .setResource(
+ * AuthProviderName.of("[PROJECT]", "[LOCATION]", "[AUTH_PROVIDER]").toString())
+ * .setPolicy(Policy.newBuilder().build())
+ * .setUpdateMask(FieldMask.newBuilder().build())
+ * .build();
+ * ApiFuture future =
+ * authProviderServiceClient.setIamPolicyCallable().futureCall(request);
+ * // Do something.
+ * Policy response = future.get();
+ * }
+ * }
+ */
+ public final UnaryCallableSample code: + * + *
{@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 (AuthProviderServiceClient authProviderServiceClient = AuthProviderServiceClient.create()) {
+ * GetIamPolicyRequest request =
+ * GetIamPolicyRequest.newBuilder()
+ * .setResource(
+ * AuthProviderName.of("[PROJECT]", "[LOCATION]", "[AUTH_PROVIDER]").toString())
+ * .setOptions(GetPolicyOptions.newBuilder().build())
+ * .build();
+ * Policy response = authProviderServiceClient.getIamPolicy(request);
+ * }
+ * }
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final Policy getIamPolicy(GetIamPolicyRequest request) {
+ return getIamPolicyCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Gets the access control policy for a resource. Returns an empty policyif the resource exists
+ * and does not have a policy set.
+ *
+ * Sample code: + * + *
{@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 (AuthProviderServiceClient authProviderServiceClient = AuthProviderServiceClient.create()) {
+ * GetIamPolicyRequest request =
+ * GetIamPolicyRequest.newBuilder()
+ * .setResource(
+ * AuthProviderName.of("[PROJECT]", "[LOCATION]", "[AUTH_PROVIDER]").toString())
+ * .setOptions(GetPolicyOptions.newBuilder().build())
+ * .build();
+ * ApiFuture future =
+ * authProviderServiceClient.getIamPolicyCallable().futureCall(request);
+ * // Do something.
+ * Policy response = future.get();
+ * }
+ * }
+ */
+ public final UnaryCallableNote: This operation is designed to be used for buildingpermission-aware UIs and + * command-line tools, not for authorizationchecking. This operation may "fail open" without + * warning. + * + *
Sample code: + * + *
{@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 (AuthProviderServiceClient authProviderServiceClient = AuthProviderServiceClient.create()) {
+ * TestIamPermissionsRequest request =
+ * TestIamPermissionsRequest.newBuilder()
+ * .setResource(
+ * AuthProviderName.of("[PROJECT]", "[LOCATION]", "[AUTH_PROVIDER]").toString())
+ * .addAllPermissions(new ArrayList())
+ * .build();
+ * TestIamPermissionsResponse response = authProviderServiceClient.testIamPermissions(request);
+ * }
+ * }
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final TestIamPermissionsResponse testIamPermissions(TestIamPermissionsRequest request) {
+ return testIamPermissionsCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Returns permissions that a caller has on the specified resource. If theresource does not exist,
+ * this will return an empty set ofpermissions, not a `NOT_FOUND` error.
+ *
+ * Note: This operation is designed to be used for buildingpermission-aware UIs and + * command-line tools, not for authorizationchecking. This operation may "fail open" without + * warning. + * + *
Sample code: + * + *
{@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 (AuthProviderServiceClient authProviderServiceClient = AuthProviderServiceClient.create()) {
+ * TestIamPermissionsRequest request =
+ * TestIamPermissionsRequest.newBuilder()
+ * .setResource(
+ * AuthProviderName.of("[PROJECT]", "[LOCATION]", "[AUTH_PROVIDER]").toString())
+ * .addAllPermissions(new ArrayList())
+ * .build();
+ * ApiFuture future =
+ * authProviderServiceClient.testIamPermissionsCallable().futureCall(request);
+ * // Do something.
+ * TestIamPermissionsResponse response = future.get();
+ * }
+ * }
+ */
+ public final UnaryCallableThe default instance has everything set to sensible defaults: + * + *
The builder of this class is recursive, so contained classes are themselves builders. When + * build() is called, the tree of builders is called to create the complete settings object. + * + *
For example, to set the + * [RetrySettings](https://cloud.google.com/java/docs/reference/gax/latest/com.google.api.gax.retrying.RetrySettings) + * of getAuthProvider: + * + *
{@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
+ * AuthProviderServiceSettings.Builder authProviderServiceSettingsBuilder =
+ * AuthProviderServiceSettings.newBuilder();
+ * authProviderServiceSettingsBuilder
+ * .getAuthProviderSettings()
+ * .setRetrySettings(
+ * authProviderServiceSettingsBuilder
+ * .getAuthProviderSettings()
+ * .getRetrySettings()
+ * .toBuilder()
+ * .setInitialRetryDelayDuration(Duration.ofSeconds(1))
+ * .setInitialRpcTimeoutDuration(Duration.ofSeconds(5))
+ * .setMaxAttempts(5)
+ * .setMaxRetryDelayDuration(Duration.ofSeconds(30))
+ * .setMaxRpcTimeoutDuration(Duration.ofSeconds(60))
+ * .setRetryDelayMultiplier(1.3)
+ * .setRpcTimeoutMultiplier(1.5)
+ * .setTotalTimeoutDuration(Duration.ofSeconds(300))
+ * .build());
+ * AuthProviderServiceSettings authProviderServiceSettings =
+ * authProviderServiceSettingsBuilder.build();
+ * }
+ *
+ * Please refer to the [Client Side Retry
+ * Guide](https://docs.cloud.google.com/java/docs/client-retries) for additional support in setting
+ * retries.
+ */
+@NullMarked
+@Generated("by gapic-generator-java")
+public class AuthProviderServiceSettings extends ClientSettingsNote: This method does not support applying settings to streaming methods.
+ */
+ public Builder applyToAllUnaryMethods(
+ ApiFunction The interfaces provided are listed below, along with usage samples.
+ *
+ * ======================= AuthProviderServiceClient =======================
+ *
+ * Service Description: Service describing handlers for resources
+ *
+ * Sample for AuthProviderServiceClient:
+ *
+ * This class is for advanced usage and reflects the underlying API directly.
+ */
+@NullMarked
+@Generated("by gapic-generator-java")
+public abstract class AuthProviderServiceStub implements BackgroundResource {
+
+ public UnaryCallable The default instance has everything set to sensible defaults:
+ *
+ * The builder of this class is recursive, so contained classes are themselves builders. When
+ * build() is called, the tree of builders is called to create the complete settings object.
+ *
+ * For example, to set the
+ * [RetrySettings](https://cloud.google.com/java/docs/reference/gax/latest/com.google.api.gax.retrying.RetrySettings)
+ * of getAuthProvider:
+ *
+ * Note: This method does not support applying settings to streaming methods.
+ */
+ public Builder applyToAllUnaryMethods(
+ ApiFunction{@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 (AuthProviderServiceClient authProviderServiceClient = AuthProviderServiceClient.create()) {
+ * AuthProviderName name = AuthProviderName.of("[PROJECT]", "[LOCATION]", "[AUTH_PROVIDER]");
+ * AuthProvider response = authProviderServiceClient.getAuthProvider(name);
+ * }
+ * }
+ */
+@Generated("by gapic-generator-java")
+package com.google.cloud.agentidentity.v1;
+
+import javax.annotation.Generated;
diff --git a/java-agentidentity/google-cloud-agentidentity/src/main/java/com/google/cloud/agentidentity/v1/stub/AuthProviderServiceStub.java b/java-agentidentity/google-cloud-agentidentity/src/main/java/com/google/cloud/agentidentity/v1/stub/AuthProviderServiceStub.java
new file mode 100644
index 000000000000..a61be9e9db5c
--- /dev/null
+++ b/java-agentidentity/google-cloud-agentidentity/src/main/java/com/google/cloud/agentidentity/v1/stub/AuthProviderServiceStub.java
@@ -0,0 +1,198 @@
+/*
+ * Copyright 2026 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.agentidentity.v1.stub;
+
+import static com.google.cloud.agentidentity.v1.AuthProviderServiceClient.ListAccessSummariesPagedResponse;
+import static com.google.cloud.agentidentity.v1.AuthProviderServiceClient.ListAuthProvidersPagedResponse;
+import static com.google.cloud.agentidentity.v1.AuthProviderServiceClient.ListAuthorizationsPagedResponse;
+import static com.google.cloud.agentidentity.v1.AuthProviderServiceClient.ListLocationsPagedResponse;
+import static com.google.cloud.agentidentity.v1.AuthProviderServiceClient.QueryAuthProvidersPagedResponse;
+import static com.google.cloud.agentidentity.v1.AuthProviderServiceClient.QueryWorkloadsPagedResponse;
+
+import com.google.api.gax.core.BackgroundResource;
+import com.google.api.gax.rpc.UnaryCallable;
+import com.google.cloud.agentidentity.v1.AccessSummary;
+import com.google.cloud.agentidentity.v1.AuthProvider;
+import com.google.cloud.agentidentity.v1.Authorization;
+import com.google.cloud.agentidentity.v1.CreateAuthProviderRequest;
+import com.google.cloud.agentidentity.v1.DeleteAuthProviderRequest;
+import com.google.cloud.agentidentity.v1.DeleteAuthorizationRequest;
+import com.google.cloud.agentidentity.v1.DisableAuthProviderRequest;
+import com.google.cloud.agentidentity.v1.EnableAuthProviderRequest;
+import com.google.cloud.agentidentity.v1.GetAccessSummaryRequest;
+import com.google.cloud.agentidentity.v1.GetAuthProviderRequest;
+import com.google.cloud.agentidentity.v1.GetAuthorizationRequest;
+import com.google.cloud.agentidentity.v1.ListAccessSummariesRequest;
+import com.google.cloud.agentidentity.v1.ListAccessSummariesResponse;
+import com.google.cloud.agentidentity.v1.ListAuthProvidersRequest;
+import com.google.cloud.agentidentity.v1.ListAuthProvidersResponse;
+import com.google.cloud.agentidentity.v1.ListAuthorizationsRequest;
+import com.google.cloud.agentidentity.v1.ListAuthorizationsResponse;
+import com.google.cloud.agentidentity.v1.QueryAuthProvidersRequest;
+import com.google.cloud.agentidentity.v1.QueryAuthProvidersResponse;
+import com.google.cloud.agentidentity.v1.QueryWorkloadsRequest;
+import com.google.cloud.agentidentity.v1.QueryWorkloadsResponse;
+import com.google.cloud.agentidentity.v1.RevokeAuthorizationRequest;
+import com.google.cloud.agentidentity.v1.RevokeAuthorizationResponse;
+import com.google.cloud.agentidentity.v1.UndeleteAuthProviderRequest;
+import com.google.cloud.agentidentity.v1.UpdateAuthProviderRequest;
+import com.google.cloud.location.GetLocationRequest;
+import com.google.cloud.location.ListLocationsRequest;
+import com.google.cloud.location.ListLocationsResponse;
+import com.google.cloud.location.Location;
+import com.google.iam.v1.GetIamPolicyRequest;
+import com.google.iam.v1.Policy;
+import com.google.iam.v1.SetIamPolicyRequest;
+import com.google.iam.v1.TestIamPermissionsRequest;
+import com.google.iam.v1.TestIamPermissionsResponse;
+import com.google.protobuf.Empty;
+import javax.annotation.Generated;
+import org.jspecify.annotations.NullMarked;
+
+// AUTO-GENERATED DOCUMENTATION AND CLASS.
+/**
+ * Base stub class for the AuthProviderService service API.
+ *
+ *
+ *
+ *
+ * {@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
+ * AuthProviderServiceStubSettings.Builder authProviderServiceSettingsBuilder =
+ * AuthProviderServiceStubSettings.newBuilder();
+ * authProviderServiceSettingsBuilder
+ * .getAuthProviderSettings()
+ * .setRetrySettings(
+ * authProviderServiceSettingsBuilder
+ * .getAuthProviderSettings()
+ * .getRetrySettings()
+ * .toBuilder()
+ * .setInitialRetryDelayDuration(Duration.ofSeconds(1))
+ * .setInitialRpcTimeoutDuration(Duration.ofSeconds(5))
+ * .setMaxAttempts(5)
+ * .setMaxRetryDelayDuration(Duration.ofSeconds(30))
+ * .setMaxRpcTimeoutDuration(Duration.ofSeconds(60))
+ * .setRetryDelayMultiplier(1.3)
+ * .setRpcTimeoutMultiplier(1.5)
+ * .setTotalTimeoutDuration(Duration.ofSeconds(300))
+ * .build());
+ * AuthProviderServiceStubSettings authProviderServiceSettings =
+ * authProviderServiceSettingsBuilder.build();
+ * }
+ *
+ * Please refer to the [Client Side Retry
+ * Guide](https://docs.cloud.google.com/java/docs/client-retries) for additional support in setting
+ * retries.
+ */
+@NullMarked
+@Generated("by gapic-generator-java")
+@SuppressWarnings("CanonicalDuration")
+public class AuthProviderServiceStubSettings extends StubSettings