@@ -757,6 +757,7 @@ def __init__(
757
757
command_content: str = None,
758
758
command_type: str = None,
759
759
dockerfile_path: str = None,
760
+ enable_gpu: bool = None,
760
761
region_id: str = None,
761
762
source_container_image: str = None,
762
763
source_image_id: str = None,
@@ -786,6 +787,7 @@ def __init__(
786
787
#
787
788
# > This parameter is available only if the ArtifactBuildType is Dockerfile type.
788
789
self.dockerfile_path = dockerfile_path
790
+ self.enable_gpu = enable_gpu
789
791
# The region ID where the source mirror image is located.
790
792
#
791
793
# > This parameter is available only if the deployment package is a ecs image type.
@@ -830,6 +832,8 @@ def to_map(self):
830
832
result['CommandType'] = self.command_type
831
833
if self.dockerfile_path is not None:
832
834
result['DockerfilePath'] = self.dockerfile_path
835
+ if self.enable_gpu is not None:
836
+ result['EnableGpu'] = self.enable_gpu
833
837
if self.region_id is not None:
834
838
result['RegionId'] = self.region_id
835
839
if self.source_container_image is not None:
@@ -856,6 +860,8 @@ def from_map(self, m: dict = None):
856
860
self.command_type = m.get('CommandType')
857
861
if m.get('DockerfilePath') is not None:
858
862
self.dockerfile_path = m.get('DockerfilePath')
863
+ if m.get('EnableGpu') is not None:
864
+ self.enable_gpu = m.get('EnableGpu')
859
865
if m.get('RegionId') is not None:
860
866
self.region_id = m.get('RegionId')
861
867
if m.get('SourceContainerImage') is not None:
@@ -19180,9 +19186,11 @@ def __init__(
19180
19186
command_content: str = None,
19181
19187
command_type: str = None,
19182
19188
dockerfile_path: str = None,
19189
+ enable_gpu: bool = None,
19183
19190
region_id: str = None,
19184
19191
source_container_image: str = None,
19185
19192
source_image_id: str = None,
19193
+ system_disk_size: int = None,
19186
19194
):
19187
19195
# The build arguments used during the image build process.
19188
19196
#
@@ -19208,6 +19216,7 @@ def __init__(
19208
19216
#
19209
19217
# > This parameter is available only if the ArtifactBuildType is Dockerfile type.
19210
19218
self.dockerfile_path = dockerfile_path
19219
+ self.enable_gpu = enable_gpu
19211
19220
# The region ID where the source mirror image is located.
19212
19221
#
19213
19222
# > This parameter is available only if the deployment package is a ecs image type.
@@ -19224,6 +19233,7 @@ def __init__(
19224
19233
#
19225
19234
# > This parameter is available only if the deployment package is a ecs image type.
19226
19235
self.source_image_id = source_image_id
19236
+ self.system_disk_size = system_disk_size
19227
19237
19228
19238
def validate(self):
19229
19239
if self.build_args:
@@ -19251,12 +19261,16 @@ def to_map(self):
19251
19261
result['CommandType'] = self.command_type
19252
19262
if self.dockerfile_path is not None:
19253
19263
result['DockerfilePath'] = self.dockerfile_path
19264
+ if self.enable_gpu is not None:
19265
+ result['EnableGpu'] = self.enable_gpu
19254
19266
if self.region_id is not None:
19255
19267
result['RegionId'] = self.region_id
19256
19268
if self.source_container_image is not None:
19257
19269
result['SourceContainerImage'] = self.source_container_image
19258
19270
if self.source_image_id is not None:
19259
19271
result['SourceImageId'] = self.source_image_id
19272
+ if self.system_disk_size is not None:
19273
+ result['SystemDiskSize'] = self.system_disk_size
19260
19274
return result
19261
19275
19262
19276
def from_map(self, m: dict = None):
@@ -19275,12 +19289,16 @@ def from_map(self, m: dict = None):
19275
19289
self.command_type = m.get('CommandType')
19276
19290
if m.get('DockerfilePath') is not None:
19277
19291
self.dockerfile_path = m.get('DockerfilePath')
19292
+ if m.get('EnableGpu') is not None:
19293
+ self.enable_gpu = m.get('EnableGpu')
19278
19294
if m.get('RegionId') is not None:
19279
19295
self.region_id = m.get('RegionId')
19280
19296
if m.get('SourceContainerImage') is not None:
19281
19297
self.source_container_image = m.get('SourceContainerImage')
19282
19298
if m.get('SourceImageId') is not None:
19283
19299
self.source_image_id = m.get('SourceImageId')
19300
+ if m.get('SystemDiskSize') is not None:
19301
+ self.system_disk_size = m.get('SystemDiskSize')
19284
19302
return self
19285
19303
19286
19304
0 commit comments