Source code for models_v2.externally_triggered_job_params

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

import cohesity_management_sdk.models_v2.externally_triggered_sbt_params

[docs]class ExternallyTriggeredJobParams(object): """Implementation of the 'ExternallyTriggeredJobParams' model. Specifies the externally triggered job paramters. Attributes: client_type (ClientTypeEnum): Specifies the client type of the externally triggered backup job. sbt_params (ExternallyTriggeredSbtParams): Specifies the SBT parameters for the externally triggered backup job. tags (list of string): Specifies all the tags of the externally triggered job. """ # Create a mapping from Model property names to API property names _names = { "client_type":'clientType', "sbt_params":'sbtParams', "tags":'tags' } def __init__(self, client_type=None, sbt_params=None, tags=None): """Constructor for the ExternallyTriggeredJobParams class""" # Initialize members of the class self.client_type = client_type self.sbt_params = sbt_params self.tags = tags
[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 client_type = dictionary.get('clientType') sbt_params = cohesity_management_sdk.models_v2.externally_triggered_sbt_params.ExternallyTriggeredSbtParams.from_dictionary(dictionary.get('sbtParams')) if dictionary.get('sbtParams') else None tags = dictionary.get('tags') # Return an object of this model return cls(client_type, sbt_params, tags)