Skip to main content

iap_settings

Creates, updates, deletes, gets or lists an iap_settings resource.

Overview

Nameiap_settings
TypeResource
Idgoogle.iap.iap_settings

Fields

The following fields are returned by SELECT queries:

Successful response

NameDatatypeDescription
namestringRequired. The resource name of the IAP protected resource.
accessSettingsobjectOptional. Top level wrapper for all access related setting in IAP (id: AccessSettings)
applicationSettingsobjectOptional. Top level wrapper for all application related settings in IAP (id: ApplicationSettings)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_iap_settingsselectv1IdGets the IAP settings on a particular IAP protected resource.
update_iap_settingsupdatev1IdupdateMaskUpdates the IAP settings on a particular IAP protected resource. It replaces all fields unless the update_mask is set.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
v1Idstring
updateMaskstring (google-fieldmask)

SELECT examples

Gets the IAP settings on a particular IAP protected resource.

SELECT
name,
accessSettings,
applicationSettings
FROM google.iap.iap_settings
WHERE v1Id = '{{ v1Id }}' -- required;

UPDATE examples

Updates the IAP settings on a particular IAP protected resource. It replaces all fields unless the update_mask is set.

UPDATE google.iap.iap_settings
SET
data__name = '{{ name }}',
data__accessSettings = '{{ accessSettings }}',
data__applicationSettings = '{{ applicationSettings }}'
WHERE
v1Id = '{{ v1Id }}' --required
AND updateMask = '{{ updateMask}}'
RETURNING
name,
accessSettings,
applicationSettings;