# -*- coding: utf-8 -*-
import cohesity_management_sdk.models_v2.target_vm_credentials_10
[docs]class OriginalTargetConfig6(object):
"""Implementation of the 'OriginalTargetConfig6' model.
Specifies the configuration for mounting to the original target.
Attributes:
bring_disks_online (bool): Specifies whether the volumes need to be
online within the target environment after attaching the disks.
For linux VMs, this should always be set to false because bring
disks online is only supported for Windows VM. For Windows, this
is optional. If this is set to true, HyperV Integration Services
must be installed on the VM.
target_vm_credentials (TargetVmCredentials10): Specifies credentials
to access the target VM.
"""
# Create a mapping from Model property names to API property names
_names = {
"bring_disks_online":'bringDisksOnline',
"target_vm_credentials":'targetVmCredentials'
}
def __init__(self,
bring_disks_online=None,
target_vm_credentials=None):
"""Constructor for the OriginalTargetConfig6 class"""
# Initialize members of the class
self.bring_disks_online = bring_disks_online
self.target_vm_credentials = target_vm_credentials
[docs] @classmethod
def from_dictionary(cls,
dictionary):
"""Creates an instance of this model from a dictionary
Args:
dictionary (dictionary): A dictionary representation of the object as
obtained from the deserialization of the server's response. The keys
MUST match property names in the API description.
Returns:
object: An instance of this structure class.
"""
if dictionary is None:
return None
# Extract variables from the dictionary
bring_disks_online = dictionary.get('bringDisksOnline')
target_vm_credentials = cohesity_management_sdk.models_v2.target_vm_credentials_10.TargetVmCredentials10.from_dictionary(dictionary.get('targetVmCredentials')) if dictionary.get('targetVmCredentials') else None
# Return an object of this model
return cls(bring_disks_online,
target_vm_credentials)