# -*- coding: utf-8 -*-
# Copyright 2021 Cohesity Inc.
[docs]class ChangeServiceStateResult(object):
"""Implementation of the 'ChangeServiceStateResult' model.
Specifies the result returned after a successful request to change the
state of services running on the Cluster.
Attributes:
message (string): Specifies a description of the result of the
operation.
status_url (string): Specifies a URL which can be queried to check the
status of the operation.
"""
# Create a mapping from Model property names to API property names
_names = {
"message":'message',
"status_url":'statusUrl'
}
def __init__(self,
message=None,
status_url=None):
"""Constructor for the ChangeServiceStateResult class"""
# Initialize members of the class
self.message = message
self.status_url = status_url
[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')
status_url = dictionary.get('statusUrl')
# Return an object of this model
return cls(message,
status_url)