Source code for models.stop_remote_vault_search_job_parameters

# -*- coding: utf-8 -*-
# Copyright 2021 Cohesity Inc.

import cohesity_management_sdk.models.universal_id

[docs]class StopRemoteVaultSearchJobParameters(object): """Implementation of the 'StopRemoteVaultSearchJobParameters' model. Request to stop a remote Vault search Job. Attributes: search_job_uid (UniversalId): Specifies the unique id of the Remote Vault search job in progress. """ # Create a mapping from Model property names to API property names _names = { "search_job_uid":'searchJobUid' } def __init__(self, search_job_uid=None): """Constructor for the StopRemoteVaultSearchJobParameters class""" # Initialize members of the class self.search_job_uid = search_job_uid
[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 search_job_uid = cohesity_management_sdk.models.universal_id.UniversalId.from_dictionary(dictionary.get('searchJobUid')) if dictionary.get('searchJobUid') else None # Return an object of this model return cls(search_job_uid)