Skip to content

Commit 132263d

Browse files
feat(api): api update
1 parent 3814a0d commit 132263d

File tree

2 files changed

+36
-3
lines changed

2 files changed

+36
-3
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: 14
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/warp-bnavetta%2Fwarp-api-6c175d34cab49d79dbb24289ae516867404c42f3097264bbae171aced72ecc49.yml
3-
openapi_spec_hash: 5abb55a1fc2836207bc88d4815f47f24
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/warp-bnavetta%2Fwarp-api-a912e2533a6f1fbeee38d4b7739b771ed5711c648a6a7f3d8769b8b2cb4f31fb.yml
3+
openapi_spec_hash: ef48f8fcc46a51b00893505e9b52c95d
44
config_hash: 2aa9111d5020559664e110bed6e31388

src/oz_agent_sdk/types/cloud_environment_config.py

Lines changed: 34 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
from .._models import BaseModel
66

7-
__all__ = ["CloudEnvironmentConfig", "GitHubRepo"]
7+
__all__ = ["CloudEnvironmentConfig", "GitHubRepo", "Providers", "ProvidersAws", "ProvidersGcp"]
88

99

1010
class GitHubRepo(BaseModel):
@@ -15,6 +15,36 @@ class GitHubRepo(BaseModel):
1515
"""GitHub repository name"""
1616

1717

18+
class ProvidersAws(BaseModel):
19+
"""AWS IAM role assumption settings"""
20+
21+
role_arn: str
22+
"""AWS IAM role ARN to assume"""
23+
24+
25+
class ProvidersGcp(BaseModel):
26+
"""GCP Workload Identity Federation settings"""
27+
28+
project_number: str
29+
"""GCP project number"""
30+
31+
workload_identity_federation_pool_id: str
32+
"""Workload Identity Federation pool ID"""
33+
34+
workload_identity_federation_provider_id: str
35+
"""Workload Identity Federation provider ID"""
36+
37+
38+
class Providers(BaseModel):
39+
"""Optional cloud provider configurations for automatic auth"""
40+
41+
aws: Optional[ProvidersAws] = None
42+
"""AWS IAM role assumption settings"""
43+
44+
gcp: Optional[ProvidersGcp] = None
45+
"""GCP Workload Identity Federation settings"""
46+
47+
1848
class CloudEnvironmentConfig(BaseModel):
1949
"""Configuration for a cloud environment used by scheduled agents"""
2050

@@ -30,5 +60,8 @@ class CloudEnvironmentConfig(BaseModel):
3060
name: Optional[str] = None
3161
"""Human-readable name for the environment"""
3262

63+
providers: Optional[Providers] = None
64+
"""Optional cloud provider configurations for automatic auth"""
65+
3366
setup_commands: Optional[List[str]] = None
3467
"""Shell commands to run during environment setup"""

0 commit comments

Comments
 (0)