Skip to content

Commit 269241b

Browse files
feat: Adding programmatic_clients attribute to UpdateIapSettings API request (googleapis#11649)
- [ ] Regenerate this pull request now. PiperOrigin-RevId: 565783416 Source-Link: googleapis/googleapis@54e08f2 Source-Link: https://github.com/googleapis/googleapis-gen/commit/b86e5408d04030bf2e91270d2dba0f45ec8e0115 Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLWlhcC8uT3dsQm90LnlhbWwiLCJoIjoiYjg2ZTU0MDhkMDQwMzBiZjJlOTEyNzBkMmRiYTBmNDVlYzhlMDExNSJ9 --------- Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
1 parent be7f5e4 commit 269241b

5 files changed

Lines changed: 24 additions & 5 deletions

File tree

packages/google-cloud-iap/google/cloud/iap/gapic_version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@
1313
# See the License for the specific language governing permissions and
1414
# limitations under the License.
1515
#
16-
__version__ = "1.10.3" # {x-release-please-version}
16+
__version__ = "0.0.0" # {x-release-please-version}

packages/google-cloud-iap/google/cloud/iap_v1/gapic_version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@
1313
# See the License for the specific language governing permissions and
1414
# limitations under the License.
1515
#
16-
__version__ = "1.10.3" # {x-release-please-version}
16+
__version__ = "0.0.0" # {x-release-please-version}

packages/google-cloud-iap/google/cloud/iap_v1/types/service.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -438,13 +438,20 @@ class OAuthSettings(proto.Message):
438438
Note: IAP does not verify that the id token's hd
439439
claim matches this value since access behavior
440440
is managed by IAM policies.
441+
programmatic_clients (MutableSequence[str]):
442+
List of Oauth client IDs allowed to
443+
programmatically authenticate with IAP.
441444
"""
442445

443446
login_hint: wrappers_pb2.StringValue = proto.Field(
444447
proto.MESSAGE,
445448
number=2,
446449
message=wrappers_pb2.StringValue,
447450
)
451+
programmatic_clients: MutableSequence[str] = proto.RepeatedField(
452+
proto.STRING,
453+
number=5,
454+
)
448455

449456

450457
class ReauthSettings(proto.Message):

packages/google-cloud-iap/samples/generated_samples/snippet_metadata_google.cloud.iap.v1.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
],
99
"language": "PYTHON",
1010
"name": "google-cloud-iap",
11-
"version": "1.10.3"
11+
"version": "0.1.0"
1212
},
1313
"snippets": [
1414
{

packages/google-cloud-iap/tests/unit/gapic/iap_v1/test_identity_aware_proxy_admin_service.py

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3950,7 +3950,13 @@ def test_update_iap_settings_rest(request_type):
39503950
"login_page_uri": {"value": "value_value"},
39513951
},
39523952
"cors_settings": {"allow_http_options": {"value": True}},
3953-
"oauth_settings": {"login_hint": {}},
3953+
"oauth_settings": {
3954+
"login_hint": {},
3955+
"programmatic_clients": [
3956+
"programmatic_clients_value1",
3957+
"programmatic_clients_value2",
3958+
],
3959+
},
39543960
"reauth_settings": {
39553961
"method": 1,
39563962
"max_age": {"seconds": 751, "nanos": 543},
@@ -4159,7 +4165,13 @@ def test_update_iap_settings_rest_bad_request(
41594165
"login_page_uri": {"value": "value_value"},
41604166
},
41614167
"cors_settings": {"allow_http_options": {"value": True}},
4162-
"oauth_settings": {"login_hint": {}},
4168+
"oauth_settings": {
4169+
"login_hint": {},
4170+
"programmatic_clients": [
4171+
"programmatic_clients_value1",
4172+
"programmatic_clients_value2",
4173+
],
4174+
},
41634175
"reauth_settings": {
41644176
"method": 1,
41654177
"max_age": {"seconds": 751, "nanos": 543},

0 commit comments

Comments
 (0)