Skip to content

Commit

Permalink
feat: add an enum ENROLLED_SECOND_FACTORS under IapSettings (#162)
Browse files Browse the repository at this point in the history
* feat: add an enum ENROLLED_SECOND_FACTORS under IapSettings
    docs: update doc description for field_mask

PiperOrigin-RevId: 516408359

Source-Link: googleapis/googleapis@d2d07fc

Source-Link: googleapis/googleapis-gen@e22921a
Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiZTIyOTIxYTU2OWYxOTViZmM5NDBhOTliMWJhZmVmNzQ3MmE3NmMxZSJ9

* 🦉 Updates from OwlBot post-processor

See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md

---------

Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
  • Loading branch information
gcf-owl-bot[bot] and gcf-owl-bot[bot] authored Mar 14, 2023
1 parent 18e8c86 commit aa25b39
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions packages/google-cloud-iap/google/cloud/iap_v1/types/service.py
Original file line number Diff line number Diff line change
Expand Up @@ -275,10 +275,14 @@ class UpdateIapSettingsRequest(proto.Message):
Authorization: Requires the ``updateSettings`` permission
for the associated resource.
update_mask (google.protobuf.field_mask_pb2.FieldMask):
The field mask specifying which IAP settings
should be updated. If omitted, the all of the
settings are updated. See
https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask
The field mask specifying which IAP settings should be
updated. If omitted, then all of the settings are updated.
See
https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask.
Note: All IAP reauth settings must always be set together,
using the field mask:
``iapSettings.accessSettings.reauthSettings``.
"""

iap_settings: "IapSettings" = proto.Field(
Expand Down Expand Up @@ -472,11 +476,14 @@ class Method(proto.Enum):
SECURE_KEY (3):
User must use their secure key 2nd factor
device.
ENROLLED_SECOND_FACTORS (4):
User can use any enabled 2nd factor.
"""
METHOD_UNSPECIFIED = 0
LOGIN = 1
PASSWORD = 2
SECURE_KEY = 3
ENROLLED_SECOND_FACTORS = 4

class PolicyType(proto.Enum):
r"""Type of policy in the case of hierarchial policies.
Expand Down

0 comments on commit aa25b39

Please sign in to comment.