|
19 | 19 | from ..._base_client import make_request_options |
20 | 20 | from ...types.organizations import policy_update_params, policy_retrieve_params |
21 | 21 | from ...types.organizations.policy_retrieve_response import PolicyRetrieveResponse |
| 22 | +from ...types.organizations.executable_deny_list_param import ExecutableDenyListParam |
22 | 23 |
|
23 | 24 | __all__ = ["PoliciesResource", "AsyncPoliciesResource"] |
24 | 25 |
|
@@ -104,6 +105,7 @@ def update( |
104 | 105 | default_environment_image: Optional[str] | Omit = omit, |
105 | 106 | delete_archived_environments_after: Optional[str] | Omit = omit, |
106 | 107 | editor_version_restrictions: Dict[str, policy_update_params.EditorVersionRestrictions] | Omit = omit, |
| 108 | + executable_deny_list: Optional[ExecutableDenyListParam] | Omit = omit, |
107 | 109 | maximum_environment_lifetime: Optional[str] | Omit = omit, |
108 | 110 | maximum_environments_per_user: Optional[str] | Omit = omit, |
109 | 111 | maximum_environment_timeout: Optional[str] | Omit = omit, |
@@ -180,6 +182,9 @@ def update( |
180 | 182 | editor_version_restrictions: editor_version_restrictions restricts which editor versions can be used. Maps |
181 | 183 | editor ID to version policy with allowed major versions. |
182 | 184 |
|
| 185 | + executable_deny_list: executable_deny_list contains executables that are blocked from execution in |
| 186 | + environments. |
| 187 | +
|
183 | 188 | maximum_environment_lifetime: maximum_environment_lifetime controls for how long environments are allowed to |
184 | 189 | be reused. 0 means no maximum lifetime. Maximum duration is 180 days (15552000 |
185 | 190 | seconds). |
@@ -231,6 +236,7 @@ def update( |
231 | 236 | "default_environment_image": default_environment_image, |
232 | 237 | "delete_archived_environments_after": delete_archived_environments_after, |
233 | 238 | "editor_version_restrictions": editor_version_restrictions, |
| 239 | + "executable_deny_list": executable_deny_list, |
234 | 240 | "maximum_environment_lifetime": maximum_environment_lifetime, |
235 | 241 | "maximum_environments_per_user": maximum_environments_per_user, |
236 | 242 | "maximum_environment_timeout": maximum_environment_timeout, |
@@ -334,6 +340,7 @@ async def update( |
334 | 340 | default_environment_image: Optional[str] | Omit = omit, |
335 | 341 | delete_archived_environments_after: Optional[str] | Omit = omit, |
336 | 342 | editor_version_restrictions: Dict[str, policy_update_params.EditorVersionRestrictions] | Omit = omit, |
| 343 | + executable_deny_list: Optional[ExecutableDenyListParam] | Omit = omit, |
337 | 344 | maximum_environment_lifetime: Optional[str] | Omit = omit, |
338 | 345 | maximum_environments_per_user: Optional[str] | Omit = omit, |
339 | 346 | maximum_environment_timeout: Optional[str] | Omit = omit, |
@@ -410,6 +417,9 @@ async def update( |
410 | 417 | editor_version_restrictions: editor_version_restrictions restricts which editor versions can be used. Maps |
411 | 418 | editor ID to version policy with allowed major versions. |
412 | 419 |
|
| 420 | + executable_deny_list: executable_deny_list contains executables that are blocked from execution in |
| 421 | + environments. |
| 422 | +
|
413 | 423 | maximum_environment_lifetime: maximum_environment_lifetime controls for how long environments are allowed to |
414 | 424 | be reused. 0 means no maximum lifetime. Maximum duration is 180 days (15552000 |
415 | 425 | seconds). |
@@ -461,6 +471,7 @@ async def update( |
461 | 471 | "default_environment_image": default_environment_image, |
462 | 472 | "delete_archived_environments_after": delete_archived_environments_after, |
463 | 473 | "editor_version_restrictions": editor_version_restrictions, |
| 474 | + "executable_deny_list": executable_deny_list, |
464 | 475 | "maximum_environment_lifetime": maximum_environment_lifetime, |
465 | 476 | "maximum_environments_per_user": maximum_environments_per_user, |
466 | 477 | "maximum_environment_timeout": maximum_environment_timeout, |
|
0 commit comments