@@ -36,19 +36,25 @@ class CreateImageRequest(object):
3636 'description' : 'str' ,
3737 'image_name' : 'str' ,
3838 'instance_id' : 'str' ,
39+ 'need_detection' : 'bool' ,
3940 'project_name' : 'str' ,
41+ 'snapshot_group_id' : 'str' ,
42+ 'snapshot_id' : 'str' ,
4043 'tags' : 'list[TagForCreateImageInput]'
4144 }
4245
4346 attribute_map = {
4447 'description' : 'Description' ,
4548 'image_name' : 'ImageName' ,
4649 'instance_id' : 'InstanceId' ,
50+ 'need_detection' : 'NeedDetection' ,
4751 'project_name' : 'ProjectName' ,
52+ 'snapshot_group_id' : 'SnapshotGroupId' ,
53+ 'snapshot_id' : 'SnapshotId' ,
4854 'tags' : 'Tags'
4955 }
5056
51- def __init__ (self , description = None , image_name = None , instance_id = None , project_name = None , tags = None , _configuration = None ): # noqa: E501
57+ def __init__ (self , description = None , image_name = None , instance_id = None , need_detection = None , project_name = None , snapshot_group_id = None , snapshot_id = None , tags = None , _configuration = None ): # noqa: E501
5258 """CreateImageRequest - a model defined in Swagger""" # noqa: E501
5359 if _configuration is None :
5460 _configuration = Configuration ()
@@ -57,16 +63,26 @@ def __init__(self, description=None, image_name=None, instance_id=None, project_
5763 self ._description = None
5864 self ._image_name = None
5965 self ._instance_id = None
66+ self ._need_detection = None
6067 self ._project_name = None
68+ self ._snapshot_group_id = None
69+ self ._snapshot_id = None
6170 self ._tags = None
6271 self .discriminator = None
6372
6473 if description is not None :
6574 self .description = description
6675 self .image_name = image_name
67- self .instance_id = instance_id
76+ if instance_id is not None :
77+ self .instance_id = instance_id
78+ if need_detection is not None :
79+ self .need_detection = need_detection
6880 if project_name is not None :
6981 self .project_name = project_name
82+ if snapshot_group_id is not None :
83+ self .snapshot_group_id = snapshot_group_id
84+ if snapshot_id is not None :
85+ self .snapshot_id = snapshot_id
7086 if tags is not None :
7187 self .tags = tags
7288
@@ -132,11 +148,30 @@ def instance_id(self, instance_id):
132148 :param instance_id: The instance_id of this CreateImageRequest. # noqa: E501
133149 :type: str
134150 """
135- if self ._configuration .client_side_validation and instance_id is None :
136- raise ValueError ("Invalid value for `instance_id`, must not be `None`" ) # noqa: E501
137151
138152 self ._instance_id = instance_id
139153
154+ @property
155+ def need_detection (self ):
156+ """Gets the need_detection of this CreateImageRequest. # noqa: E501
157+
158+
159+ :return: The need_detection of this CreateImageRequest. # noqa: E501
160+ :rtype: bool
161+ """
162+ return self ._need_detection
163+
164+ @need_detection .setter
165+ def need_detection (self , need_detection ):
166+ """Sets the need_detection of this CreateImageRequest.
167+
168+
169+ :param need_detection: The need_detection of this CreateImageRequest. # noqa: E501
170+ :type: bool
171+ """
172+
173+ self ._need_detection = need_detection
174+
140175 @property
141176 def project_name (self ):
142177 """Gets the project_name of this CreateImageRequest. # noqa: E501
@@ -158,6 +193,48 @@ def project_name(self, project_name):
158193
159194 self ._project_name = project_name
160195
196+ @property
197+ def snapshot_group_id (self ):
198+ """Gets the snapshot_group_id of this CreateImageRequest. # noqa: E501
199+
200+
201+ :return: The snapshot_group_id of this CreateImageRequest. # noqa: E501
202+ :rtype: str
203+ """
204+ return self ._snapshot_group_id
205+
206+ @snapshot_group_id .setter
207+ def snapshot_group_id (self , snapshot_group_id ):
208+ """Sets the snapshot_group_id of this CreateImageRequest.
209+
210+
211+ :param snapshot_group_id: The snapshot_group_id of this CreateImageRequest. # noqa: E501
212+ :type: str
213+ """
214+
215+ self ._snapshot_group_id = snapshot_group_id
216+
217+ @property
218+ def snapshot_id (self ):
219+ """Gets the snapshot_id of this CreateImageRequest. # noqa: E501
220+
221+
222+ :return: The snapshot_id of this CreateImageRequest. # noqa: E501
223+ :rtype: str
224+ """
225+ return self ._snapshot_id
226+
227+ @snapshot_id .setter
228+ def snapshot_id (self , snapshot_id ):
229+ """Sets the snapshot_id of this CreateImageRequest.
230+
231+
232+ :param snapshot_id: The snapshot_id of this CreateImageRequest. # noqa: E501
233+ :type: str
234+ """
235+
236+ self ._snapshot_id = snapshot_id
237+
161238 @property
162239 def tags (self ):
163240 """Gets the tags of this CreateImageRequest. # noqa: E501
0 commit comments