# -*- coding: utf-8 -*-
# Copyright 2021 Cohesity Inc.
[docs]class UpgradePhysicalAgentsMessage(object):
"""Implementation of the 'UpgradePhysicalAgentsMessage' model.
Specifies the status of an upgrade request.
Attributes:
message (string): Specifies the status message returned after
initiating an upgrade request. Status of each agent upgrade can be
obtained by listing Physical Servers using the GET
/public/protectionSources operation.
"""
# Create a mapping from Model property names to API property names
_names = {
"message":'message'
}
def __init__(self,
message=None):
"""Constructor for the UpgradePhysicalAgentsMessage class"""
# Initialize members of the class
self.message = message
[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
message = dictionary.get('message')
# Return an object of this model
return cls(message)