Skip to content

Commit 8e6e434

Browse files
fix(api): rename executable_deny_list to veto_exec_policy in policies update
1 parent d0cf7a4 commit 8e6e434

File tree

5 files changed

+26
-26
lines changed

5 files changed

+26
-26
lines changed

.stats.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 175
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/gitpod%2Fgitpod-630c480e52441c340adc8a1e95c59e866136b0126b253234bdd578e75cdbbfa8.yml
3-
openapi_spec_hash: 5888d9e3eb30cf12d42cee3ac3932160
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/gitpod%2Fgitpod-6537d9d31bcf213ac7dab540eebd4b21a511ebb6dc9f602296f13e71aa7c859a.yml
3+
openapi_spec_hash: f6629cb53a0e7f5dc97956e9ae439289
44
config_hash: b478642d4e5f97aab620afc5c51bb2ea

src/gitpod/resources/organizations/policies.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,6 @@ def update(
105105
default_environment_image: Optional[str] | Omit = omit,
106106
delete_archived_environments_after: Optional[str] | Omit = omit,
107107
editor_version_restrictions: Dict[str, policy_update_params.EditorVersionRestrictions] | Omit = omit,
108-
executable_deny_list: Optional[VetoExecPolicyParam] | Omit = omit,
109108
maximum_environment_lifetime: Optional[str] | Omit = omit,
110109
maximum_environments_per_user: Optional[str] | Omit = omit,
111110
maximum_environment_timeout: Optional[str] | Omit = omit,
@@ -116,6 +115,7 @@ def update(
116115
require_custom_domain_access: Optional[bool] | Omit = omit,
117116
restrict_account_creation_to_scim: Optional[bool] | Omit = omit,
118117
security_agent_policy: Optional[policy_update_params.SecurityAgentPolicy] | Omit = omit,
118+
veto_exec_policy: Optional[VetoExecPolicyParam] | Omit = omit,
119119
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
120120
# The extra values given here take precedence over values defined on the client or passed to this method.
121121
extra_headers: Headers | None = None,
@@ -182,8 +182,6 @@ def update(
182182
editor_version_restrictions: editor_version_restrictions restricts which editor versions can be used. Maps
183183
editor ID to version policy with allowed major versions.
184184
185-
executable_deny_list: executable_deny_list contains the veto exec policy for environments.
186-
187185
maximum_environment_lifetime: maximum_environment_lifetime controls for how long environments are allowed to
188186
be reused. 0 means no maximum lifetime. Maximum duration is 180 days (15552000
189187
seconds).
@@ -216,6 +214,8 @@ def update(
216214
217215
security_agent_policy: security_agent_policy contains security agent configuration updates
218216
217+
veto_exec_policy: veto_exec_policy contains the veto exec policy for environments.
218+
219219
extra_headers: Send extra headers
220220
221221
extra_query: Add additional query parameters to the request
@@ -236,7 +236,6 @@ def update(
236236
"default_environment_image": default_environment_image,
237237
"delete_archived_environments_after": delete_archived_environments_after,
238238
"editor_version_restrictions": editor_version_restrictions,
239-
"executable_deny_list": executable_deny_list,
240239
"maximum_environment_lifetime": maximum_environment_lifetime,
241240
"maximum_environments_per_user": maximum_environments_per_user,
242241
"maximum_environment_timeout": maximum_environment_timeout,
@@ -247,6 +246,7 @@ def update(
247246
"require_custom_domain_access": require_custom_domain_access,
248247
"restrict_account_creation_to_scim": restrict_account_creation_to_scim,
249248
"security_agent_policy": security_agent_policy,
249+
"veto_exec_policy": veto_exec_policy,
250250
},
251251
policy_update_params.PolicyUpdateParams,
252252
),
@@ -340,7 +340,6 @@ async def update(
340340
default_environment_image: Optional[str] | Omit = omit,
341341
delete_archived_environments_after: Optional[str] | Omit = omit,
342342
editor_version_restrictions: Dict[str, policy_update_params.EditorVersionRestrictions] | Omit = omit,
343-
executable_deny_list: Optional[VetoExecPolicyParam] | Omit = omit,
344343
maximum_environment_lifetime: Optional[str] | Omit = omit,
345344
maximum_environments_per_user: Optional[str] | Omit = omit,
346345
maximum_environment_timeout: Optional[str] | Omit = omit,
@@ -351,6 +350,7 @@ async def update(
351350
require_custom_domain_access: Optional[bool] | Omit = omit,
352351
restrict_account_creation_to_scim: Optional[bool] | Omit = omit,
353352
security_agent_policy: Optional[policy_update_params.SecurityAgentPolicy] | Omit = omit,
353+
veto_exec_policy: Optional[VetoExecPolicyParam] | Omit = omit,
354354
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
355355
# The extra values given here take precedence over values defined on the client or passed to this method.
356356
extra_headers: Headers | None = None,
@@ -417,8 +417,6 @@ async def update(
417417
editor_version_restrictions: editor_version_restrictions restricts which editor versions can be used. Maps
418418
editor ID to version policy with allowed major versions.
419419
420-
executable_deny_list: executable_deny_list contains the veto exec policy for environments.
421-
422420
maximum_environment_lifetime: maximum_environment_lifetime controls for how long environments are allowed to
423421
be reused. 0 means no maximum lifetime. Maximum duration is 180 days (15552000
424422
seconds).
@@ -451,6 +449,8 @@ async def update(
451449
452450
security_agent_policy: security_agent_policy contains security agent configuration updates
453451
452+
veto_exec_policy: veto_exec_policy contains the veto exec policy for environments.
453+
454454
extra_headers: Send extra headers
455455
456456
extra_query: Add additional query parameters to the request
@@ -471,7 +471,6 @@ async def update(
471471
"default_environment_image": default_environment_image,
472472
"delete_archived_environments_after": delete_archived_environments_after,
473473
"editor_version_restrictions": editor_version_restrictions,
474-
"executable_deny_list": executable_deny_list,
475474
"maximum_environment_lifetime": maximum_environment_lifetime,
476475
"maximum_environments_per_user": maximum_environments_per_user,
477476
"maximum_environment_timeout": maximum_environment_timeout,
@@ -482,6 +481,7 @@ async def update(
482481
"require_custom_domain_access": require_custom_domain_access,
483482
"restrict_account_creation_to_scim": restrict_account_creation_to_scim,
484483
"security_agent_policy": security_agent_policy,
484+
"veto_exec_policy": veto_exec_policy,
485485
},
486486
policy_update_params.PolicyUpdateParams,
487487
),

src/gitpod/types/organizations/organization_policies.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -113,9 +113,6 @@ class OrganizationPolicies(BaseModel):
113113
of the editor
114114
"""
115115

116-
executable_deny_list: Optional[VetoExecPolicy] = FieldInfo(alias="executableDenyList", default=None)
117-
"""executable_deny_list contains the veto exec policy for environments."""
118-
119116
maximum_environment_lifetime: Optional[str] = FieldInfo(alias="maximumEnvironmentLifetime", default=None)
120117
"""
121118
maximum_environment_lifetime controls for how long environments are allowed to
@@ -136,3 +133,6 @@ class OrganizationPolicies(BaseModel):
136133
organization. When configured, security agents are automatically deployed to all
137134
environments.
138135
"""
136+
137+
veto_exec_policy: Optional[VetoExecPolicy] = FieldInfo(alias="vetoExecPolicy", default=None)
138+
"""veto_exec_policy contains the veto exec policy for environments."""

src/gitpod/types/organizations/policy_update_params.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -64,9 +64,6 @@ class PolicyUpdateParams(TypedDict, total=False):
6464
editor ID to version policy with allowed major versions.
6565
"""
6666

67-
executable_deny_list: Annotated[Optional[VetoExecPolicyParam], PropertyInfo(alias="executableDenyList")]
68-
"""executable_deny_list contains the veto exec policy for environments."""
69-
7067
maximum_environment_lifetime: Annotated[Optional[str], PropertyInfo(alias="maximumEnvironmentLifetime")]
7168
"""
7269
maximum_environment_lifetime controls for how long environments are allowed to
@@ -127,6 +124,9 @@ class PolicyUpdateParams(TypedDict, total=False):
127124
security_agent_policy: Annotated[Optional[SecurityAgentPolicy], PropertyInfo(alias="securityAgentPolicy")]
128125
"""security_agent_policy contains security agent configuration updates"""
129126

127+
veto_exec_policy: Annotated[Optional[VetoExecPolicyParam], PropertyInfo(alias="vetoExecPolicy")]
128+
"""veto_exec_policy contains the veto exec policy for environments."""
129+
130130

131131
class AgentPolicy(TypedDict, total=False):
132132
"""agent_policy contains agent-specific policy settings"""

tests/api_resources/organizations/test_policies.py

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -78,11 +78,6 @@ def test_method_update_with_all_params(self, client: Gitpod) -> None:
7878
default_environment_image="defaultEnvironmentImage",
7979
delete_archived_environments_after="+9125115.360s",
8080
editor_version_restrictions={"foo": {"allowed_versions": ["string"]}},
81-
executable_deny_list={
82-
"action": "KERNEL_CONTROLS_ACTION_UNSPECIFIED",
83-
"enabled": True,
84-
"executables": ["string"],
85-
},
8681
maximum_environment_lifetime="+9125115.360s",
8782
maximum_environments_per_user="20",
8883
maximum_environment_timeout="3600s",
@@ -101,6 +96,11 @@ def test_method_update_with_all_params(self, client: Gitpod) -> None:
10196
"tags": "tags",
10297
}
10398
},
99+
veto_exec_policy={
100+
"action": "KERNEL_CONTROLS_ACTION_UNSPECIFIED",
101+
"enabled": True,
102+
"executables": ["string"],
103+
},
104104
)
105105
assert_matches_type(object, policy, path=["response"])
106106

@@ -195,11 +195,6 @@ async def test_method_update_with_all_params(self, async_client: AsyncGitpod) ->
195195
default_environment_image="defaultEnvironmentImage",
196196
delete_archived_environments_after="+9125115.360s",
197197
editor_version_restrictions={"foo": {"allowed_versions": ["string"]}},
198-
executable_deny_list={
199-
"action": "KERNEL_CONTROLS_ACTION_UNSPECIFIED",
200-
"enabled": True,
201-
"executables": ["string"],
202-
},
203198
maximum_environment_lifetime="+9125115.360s",
204199
maximum_environments_per_user="20",
205200
maximum_environment_timeout="3600s",
@@ -218,6 +213,11 @@ async def test_method_update_with_all_params(self, async_client: AsyncGitpod) ->
218213
"tags": "tags",
219214
}
220215
},
216+
veto_exec_policy={
217+
"action": "KERNEL_CONTROLS_ACTION_UNSPECIFIED",
218+
"enabled": True,
219+
"executables": ["string"],
220+
},
221221
)
222222
assert_matches_type(object, policy, path=["response"])
223223

0 commit comments

Comments
 (0)