ProjectsLocationsProductsAuthConfigs
class ProjectsLocationsProductsAuthConfigs extends Resource (View source)
The "authConfigs" collection of methods.
Typical usage is:
$integrationsService = new Google\Service\Integrations(...);
$authConfigs = $integrationsService->projects_locations_products_authConfigs;
Methods
Creates an auth config record. Fetch corresponding credentials for specific auth types, e.g. access token for OAuth 2.0, JWT token for JWT. Encrypt the auth config with Cloud KMS and store the encrypted credentials in Spanner.
Deletes an auth config. (authConfigs.delete)
Gets a complete auth config. If the auth config doesn't exist, Code.NOT_FOUND exception will be thrown. Returns the decrypted auth config.
Lists all auth configs that match the filter. Restrict to auth configs belong to the current client only.
Updates an auth config. If credential is updated, fetch the encrypted auth config from Spanner, decrypt with Cloud KMS key, update the credential fields, re-encrypt with Cloud KMS key and update the Spanner record. For other fields, directly update the Spanner record. Returns the encrypted auth config. (authConfigs.patch)
Details
GoogleCloudIntegrationsV1alphaAuthConfig
create(string $parent, GoogleCloudIntegrationsV1alphaAuthConfig $postBody, array $optParams = [])
Creates an auth config record. Fetch corresponding credentials for specific auth types, e.g. access token for OAuth 2.0, JWT token for JWT. Encrypt the auth config with Cloud KMS and store the encrypted credentials in Spanner.
Returns the encrypted auth config. (authConfigs.create)
GoogleProtobufEmpty
delete(string $name, array $optParams = [])
Deletes an auth config. (authConfigs.delete)
GoogleCloudIntegrationsV1alphaAuthConfig
get(string $name, array $optParams = [])
Gets a complete auth config. If the auth config doesn't exist, Code.NOT_FOUND exception will be thrown. Returns the decrypted auth config.
(authConfigs.get)
GoogleCloudIntegrationsV1alphaListAuthConfigsResponse
listProjectsLocationsProductsAuthConfigs(string $parent, array $optParams = [])
Lists all auth configs that match the filter. Restrict to auth configs belong to the current client only.
(authConfigs.listProjectsLocationsProductsAuthConfigs)
GoogleCloudIntegrationsV1alphaAuthConfig
patch(string $name, GoogleCloudIntegrationsV1alphaAuthConfig $postBody, array $optParams = [])
Updates an auth config. If credential is updated, fetch the encrypted auth config from Spanner, decrypt with Cloud KMS key, update the credential fields, re-encrypt with Cloud KMS key and update the Spanner record. For other fields, directly update the Spanner record. Returns the encrypted auth config. (authConfigs.patch)