@@ -52,11 +52,12 @@ def with_streaming_response(self) -> DeploymentsResourceWithStreamingResponse:
5252 def create (
5353 self ,
5454 * ,
55- entrypoint_rel_path : str ,
56- file : FileTypes ,
55+ entrypoint_rel_path : str | Omit = omit ,
5756 env_vars : Dict [str , str ] | Omit = omit ,
57+ file : FileTypes | Omit = omit ,
5858 force : bool | Omit = omit ,
5959 region : Literal ["aws.us-east-1a" ] | Omit = omit ,
60+ source : deployment_create_params .Source | Omit = omit ,
6061 version : str | Omit = omit ,
6162 # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
6263 # The extra values given here take precedence over values defined on the client or passed to this method.
@@ -71,15 +72,17 @@ def create(
7172 Args:
7273 entrypoint_rel_path: Relative path to the entrypoint of the application
7374
74- file: ZIP file containing the application source directory
75-
7675 env_vars: Map of environment variables to set for the deployed application. Each key-value
7776 pair represents an environment variable.
7877
78+ file: ZIP file containing the application source directory
79+
7980 force: Allow overwriting an existing app version
8081
8182 region: Region for deployment. Currently we only support "aws.us-east-1a"
8283
84+ source: Source from which to fetch application code.
85+
8386 version: Version of the application. Can be any string.
8487
8588 extra_headers: Send extra headers
@@ -93,10 +96,11 @@ def create(
9396 body = deepcopy_minimal (
9497 {
9598 "entrypoint_rel_path" : entrypoint_rel_path ,
96- "file" : file ,
9799 "env_vars" : env_vars ,
100+ "file" : file ,
98101 "force" : force ,
99102 "region" : region ,
103+ "source" : source ,
100104 "version" : version ,
101105 }
102106 )
@@ -271,11 +275,12 @@ def with_streaming_response(self) -> AsyncDeploymentsResourceWithStreamingRespon
271275 async def create (
272276 self ,
273277 * ,
274- entrypoint_rel_path : str ,
275- file : FileTypes ,
278+ entrypoint_rel_path : str | Omit = omit ,
276279 env_vars : Dict [str , str ] | Omit = omit ,
280+ file : FileTypes | Omit = omit ,
277281 force : bool | Omit = omit ,
278282 region : Literal ["aws.us-east-1a" ] | Omit = omit ,
283+ source : deployment_create_params .Source | Omit = omit ,
279284 version : str | Omit = omit ,
280285 # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
281286 # The extra values given here take precedence over values defined on the client or passed to this method.
@@ -290,15 +295,17 @@ async def create(
290295 Args:
291296 entrypoint_rel_path: Relative path to the entrypoint of the application
292297
293- file: ZIP file containing the application source directory
294-
295298 env_vars: Map of environment variables to set for the deployed application. Each key-value
296299 pair represents an environment variable.
297300
301+ file: ZIP file containing the application source directory
302+
298303 force: Allow overwriting an existing app version
299304
300305 region: Region for deployment. Currently we only support "aws.us-east-1a"
301306
307+ source: Source from which to fetch application code.
308+
302309 version: Version of the application. Can be any string.
303310
304311 extra_headers: Send extra headers
@@ -312,10 +319,11 @@ async def create(
312319 body = deepcopy_minimal (
313320 {
314321 "entrypoint_rel_path" : entrypoint_rel_path ,
315- "file" : file ,
316322 "env_vars" : env_vars ,
323+ "file" : file ,
317324 "force" : force ,
318325 "region" : region ,
326+ "source" : source ,
319327 "version" : version ,
320328 }
321329 )
0 commit comments