Skip to content

Commit e1bba76

Browse files
feat(api): add allow_unverified_email_scim_fallback_match to scim_configurations
1 parent cbf4bac commit e1bba76

6 files changed

Lines changed: 57 additions & 2 deletions

File tree

.stats.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 193
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/gitpod/gitpod-8eb16dd2e26c8fd1ca37ef960aca95069f457ff8bdeca2347a2b157ae096ccd4.yml
3-
openapi_spec_hash: 6c5882382583c7db5824d6438a489724
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/gitpod/gitpod-17898495c070ff2b83528ccf268ff3a7426ccabe697c19ca5fe034daa7f76ed0.yml
3+
openapi_spec_hash: fc0b1da285521ddbb5293a228b31b51f
44
config_hash: e7d6e90c037f5d495ae913f3806471fd

src/gitpod/resources/organizations/scim_configurations.py

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ def create(
6060
*,
6161
organization_id: str,
6262
sso_configuration_id: str,
63+
allow_unverified_email_account_linking: Optional[bool] | Omit = omit,
6364
name: Optional[str] | Omit = omit,
6465
token_expires_in: Optional[str] | Omit = omit,
6566
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
@@ -107,6 +108,10 @@ def create(
107108
sso_configuration_id: sso_configuration_id is the SSO configuration to link (required for user
108109
provisioning)
109110
111+
allow_unverified_email_account_linking: allow_unverified_email_account_linking allows SCIM to link provisioned users to
112+
existing accounts when the identity provider does not mark the email address as
113+
verified
114+
110115
name: name is a human-readable name for the SCIM configuration
111116
112117
token_expires_in: token_expires_in is the duration until the token expires. Defaults to 1 year.
@@ -126,6 +131,7 @@ def create(
126131
{
127132
"organization_id": organization_id,
128133
"sso_configuration_id": sso_configuration_id,
134+
"allow_unverified_email_account_linking": allow_unverified_email_account_linking,
129135
"name": name,
130136
"token_expires_in": token_expires_in,
131137
},
@@ -194,6 +200,7 @@ def update(
194200
self,
195201
*,
196202
scim_configuration_id: str,
203+
allow_unverified_email_account_linking: Optional[bool] | Omit = omit,
197204
enabled: Optional[bool] | Omit = omit,
198205
name: Optional[str] | Omit = omit,
199206
sso_configuration_id: Optional[str] | Omit = omit,
@@ -236,6 +243,10 @@ def update(
236243
Args:
237244
scim_configuration_id: scim_configuration_id is the ID of the SCIM configuration to update
238245
246+
allow_unverified_email_account_linking: allow_unverified_email_account_linking allows SCIM to link provisioned users to
247+
existing accounts when the identity provider does not mark the email address as
248+
verified
249+
239250
enabled: enabled controls whether SCIM provisioning is active
240251
241252
name: name is a human-readable name for the SCIM configuration
@@ -255,6 +266,7 @@ def update(
255266
body=maybe_transform(
256267
{
257268
"scim_configuration_id": scim_configuration_id,
269+
"allow_unverified_email_account_linking": allow_unverified_email_account_linking,
258270
"enabled": enabled,
259271
"name": name,
260272
"sso_configuration_id": sso_configuration_id,
@@ -482,6 +494,7 @@ async def create(
482494
*,
483495
organization_id: str,
484496
sso_configuration_id: str,
497+
allow_unverified_email_account_linking: Optional[bool] | Omit = omit,
485498
name: Optional[str] | Omit = omit,
486499
token_expires_in: Optional[str] | Omit = omit,
487500
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
@@ -529,6 +542,10 @@ async def create(
529542
sso_configuration_id: sso_configuration_id is the SSO configuration to link (required for user
530543
provisioning)
531544
545+
allow_unverified_email_account_linking: allow_unverified_email_account_linking allows SCIM to link provisioned users to
546+
existing accounts when the identity provider does not mark the email address as
547+
verified
548+
532549
name: name is a human-readable name for the SCIM configuration
533550
534551
token_expires_in: token_expires_in is the duration until the token expires. Defaults to 1 year.
@@ -548,6 +565,7 @@ async def create(
548565
{
549566
"organization_id": organization_id,
550567
"sso_configuration_id": sso_configuration_id,
568+
"allow_unverified_email_account_linking": allow_unverified_email_account_linking,
551569
"name": name,
552570
"token_expires_in": token_expires_in,
553571
},
@@ -616,6 +634,7 @@ async def update(
616634
self,
617635
*,
618636
scim_configuration_id: str,
637+
allow_unverified_email_account_linking: Optional[bool] | Omit = omit,
619638
enabled: Optional[bool] | Omit = omit,
620639
name: Optional[str] | Omit = omit,
621640
sso_configuration_id: Optional[str] | Omit = omit,
@@ -658,6 +677,10 @@ async def update(
658677
Args:
659678
scim_configuration_id: scim_configuration_id is the ID of the SCIM configuration to update
660679
680+
allow_unverified_email_account_linking: allow_unverified_email_account_linking allows SCIM to link provisioned users to
681+
existing accounts when the identity provider does not mark the email address as
682+
verified
683+
661684
enabled: enabled controls whether SCIM provisioning is active
662685
663686
name: name is a human-readable name for the SCIM configuration
@@ -677,6 +700,7 @@ async def update(
677700
body=await async_maybe_transform(
678701
{
679702
"scim_configuration_id": scim_configuration_id,
703+
"allow_unverified_email_account_linking": allow_unverified_email_account_linking,
680704
"enabled": enabled,
681705
"name": name,
682706
"sso_configuration_id": sso_configuration_id,

src/gitpod/types/organizations/scim_configuration.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,15 @@ class ScimConfiguration(BaseModel):
3030
updated_at: datetime = FieldInfo(alias="updatedAt")
3131
"""updated_at is when the SCIM configuration was last updated"""
3232

33+
allow_unverified_email_account_linking: Optional[bool] = FieldInfo(
34+
alias="allowUnverifiedEmailAccountLinking", default=None
35+
)
36+
"""
37+
allow_unverified_email_account_linking allows SCIM to link provisioned users to
38+
existing accounts when the identity provider does not mark the email address as
39+
verified
40+
"""
41+
3342
enabled: Optional[bool] = None
3443
"""enabled indicates if SCIM provisioning is active"""
3544

src/gitpod/types/organizations/scim_configuration_create_params.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,15 @@ class ScimConfigurationCreateParams(TypedDict, total=False):
2323
provisioning)
2424
"""
2525

26+
allow_unverified_email_account_linking: Annotated[
27+
Optional[bool], PropertyInfo(alias="allowUnverifiedEmailAccountLinking")
28+
]
29+
"""
30+
allow_unverified_email_account_linking allows SCIM to link provisioned users to
31+
existing accounts when the identity provider does not mark the email address as
32+
verified
33+
"""
34+
2635
name: Optional[str]
2736
"""name is a human-readable name for the SCIM configuration"""
2837

src/gitpod/types/organizations/scim_configuration_update_params.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,15 @@ class ScimConfigurationUpdateParams(TypedDict, total=False):
1414
scim_configuration_id: Required[Annotated[str, PropertyInfo(alias="scimConfigurationId")]]
1515
"""scim_configuration_id is the ID of the SCIM configuration to update"""
1616

17+
allow_unverified_email_account_linking: Annotated[
18+
Optional[bool], PropertyInfo(alias="allowUnverifiedEmailAccountLinking")
19+
]
20+
"""
21+
allow_unverified_email_account_linking allows SCIM to link provisioned users to
22+
existing accounts when the identity provider does not mark the email address as
23+
verified
24+
"""
25+
1726
enabled: Optional[bool]
1827
"""enabled controls whether SCIM provisioning is active"""
1928

tests/api_resources/organizations/test_scim_configurations.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ def test_method_create_with_all_params(self, client: Gitpod) -> None:
3939
scim_configuration = client.organizations.scim_configurations.create(
4040
organization_id="b0e12f6c-4c67-429d-a4a6-d9838b5da047",
4141
sso_configuration_id="d2c94c27-3b76-4a42-b88c-95a85e392c68",
42+
allow_unverified_email_account_linking=True,
4243
name="name",
4344
token_expires_in="+9125115.360s",
4445
)
@@ -119,6 +120,7 @@ def test_method_update(self, client: Gitpod) -> None:
119120
def test_method_update_with_all_params(self, client: Gitpod) -> None:
120121
scim_configuration = client.organizations.scim_configurations.update(
121122
scim_configuration_id="d2c94c27-3b76-4a42-b88c-95a85e392c68",
123+
allow_unverified_email_account_linking=True,
122124
enabled=False,
123125
name="name",
124126
sso_configuration_id="182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
@@ -290,6 +292,7 @@ async def test_method_create_with_all_params(self, async_client: AsyncGitpod) ->
290292
scim_configuration = await async_client.organizations.scim_configurations.create(
291293
organization_id="b0e12f6c-4c67-429d-a4a6-d9838b5da047",
292294
sso_configuration_id="d2c94c27-3b76-4a42-b88c-95a85e392c68",
295+
allow_unverified_email_account_linking=True,
293296
name="name",
294297
token_expires_in="+9125115.360s",
295298
)
@@ -370,6 +373,7 @@ async def test_method_update(self, async_client: AsyncGitpod) -> None:
370373
async def test_method_update_with_all_params(self, async_client: AsyncGitpod) -> None:
371374
scim_configuration = await async_client.organizations.scim_configurations.update(
372375
scim_configuration_id="d2c94c27-3b76-4a42-b88c-95a85e392c68",
376+
allow_unverified_email_account_linking=True,
373377
enabled=False,
374378
name="name",
375379
sso_configuration_id="182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",

0 commit comments

Comments
 (0)