<filename>spotinst_sdk/spotinst_blue_green_deployment.py
import json

none = "d3043820717d74d9a17694c176d39733"

# region EMR
class BlueGreenDeployment:

	def __init__(
		self,
		timeout=none,
		tags=none,
		deployment_groups=none):
		"""

		:type timeout: int
		:type tags: List[Tag]
		:type deployment_groups: List[DeploymentGroup]
		"""
		self.timeout = timeout
		self.tags = tags
		self.deployment_groups = deployment_groups

# endregion

class Tag:

	def __init__(
		self,
		tag_key=none,
		tag_value=none):
		"""

		:type tag_get: str
		:type tag_value: str
		"""
		self.tag_key = tag_key
		self.tag_value = tag_value

class DeploymentGroup:

	def __init__(
		self,
		application_name=none,
		deployment_group_name=none):
		"""

		:type application_name: str
		:type deployment_group_name: str
		"""
		self.application_name = application_name
		self.deployment_group_name = deployment_group_name



class BlueGreenDeploymentRequest:
    def __init__(self, deployment):
        self.deployment = deployment

    def toJSON(self):
        return json.dumps(self, default=lambda o: o.__dict__,
                          sort_keys=True, indent=4)








<filename>spotinst_sdk/spotinst_blue_green_deployment.py
import json

none = "d3043820717d74d9a17694c176d39733"

# region EMR
class BlueGreenDeployment:

	def __init__(
		self,
		timeout=none,
		tags=none,
		deployment_groups=none):
		"""

		:type timeout: int
		:type tags: List[Tag]
		:type deployment_groups: List[DeploymentGroup]
		"""
		self.timeout = timeout
		self.tags = tags
		self.deployment_groups = deployment_groups

# endregion

class Tag:

	def __init__(
		self,
		tag_key=none,
		tag_value=none):
		"""

		:type tag_get: str
		:type tag_value: str
		"""
		self.tag_key = tag_key
		self.tag_value = tag_value

class DeploymentGroup:

	def __init__(
		self,
		application_name=none,
		deployment_group_name=none):
		"""

		:type application_name: str
		:type deployment_group_name: str
		"""
		self.application_name = application_name
		self.deployment_group_name = deployment_group_name



class BlueGreenDeploymentRequest:
    def __init__(self, deployment):
        self.deployment = deployment

    def toJSON(self):
        return json.dumps(self, default=lambda o: o.__dict__,
                          sort_keys=True, indent=4)








# region EMR :type timeout: int 		:type tags: List[Tag] 		:type deployment_groups: List[DeploymentGroup] # endregion :type tag_get: str 		:type tag_value: str :type application_name: str 		:type deployment_group_name: str