# -*- coding: utf-8 -*-
# Copyright 2021 Cohesity Inc.
import cohesity_management_sdk.models.connector_params
import cohesity_management_sdk.models.entity_proto
[docs]class StorageSnapshotProviderParams(object):
"""Implementation of the 'StorageSnapshotProviderParams' model.
TODO: type model description here.
Attributes:
connector_params (ConnectorParams): Message that encapsulates the
various params required to establish a connection with a
particular environment.
entity (EntityProto): Specifies the attributes and the latest
statistics about an entity.
"""
# Create a mapping from Model property names to API property names
_names = {
"connector_params":'connectorParams',
"entity":'entity'
}
def __init__(self,
connector_params=None,
entity=None):
"""Constructor for the StorageSnapshotProviderParams class"""
# Initialize members of the class
self.connector_params = connector_params
self.entity = entity
[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
connector_params = cohesity_management_sdk.models.connector_params.ConnectorParams.from_dictionary(dictionary.get('connectorParams')) if dictionary.get('connectorParams') else None
entity = cohesity_management_sdk.models.entity_proto.EntityProto.from_dictionary(dictionary.get('entity')) if dictionary.get('entity') else None
# Return an object of this model
return cls(connector_params,
entity)