# -*- coding: utf-8 -*-
# Copyright 2021 Cohesity Inc.
[docs]class ADGuidPairADAttributeRestoreParam(object):
"""Implementation of the 'ADGuidPair_ADAttributeRestoreParam' model.
TODO: type model description here.
Attributes:
destination (string): Destination guid in production AD object
corresponding to source. If empty, it assumed to be 'source'
guid.
source (string): Source guid string of an AD object in mounted AD
snapshot. This cannot be empty.
"""
# Create a mapping from Model property names to API property names
_names = {
"destination":'destination',
"source":'source'
}
def __init__(self,
destination=None,
source=None):
"""Constructor for the ADGuidPairADAttributeRestoreParam class"""
# Initialize members of the class
self.destination = destination
self.source = source
[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
destination = dictionary.get('destination')
source = dictionary.get('source')
# Return an object of this model
return cls(destination,
source)