Source code for models.oracle_env_job_parameters

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

import cohesity_management_sdk.models.vlan_params

[docs]class OracleEnvJobParameters(object): """Implementation of the 'OracleEnvJobParameters' model. Specifies job parameters applicable for all 'kOracle' Environment type Protection Sources in a Protection Job. Attributes: persist_mountpoints (bool): Specifies whether the mountpoints created while backing up Oracle DBs should be persisted. Note: This parameter is for the entire Job. For overriding persistence of mountpoints for a subset of Oracle hosts within the job, refer OracleSourceParams. vlan_params (VlanParams): Indicates the vlan preference that is selected by the user for doing backup. """ # Create a mapping from Model property names to API property names _names = { "persist_mountpoints": 'persistMountpoints', "vlan_params":'vlanParams' } def __init__(self, persist_mountpoints=None, vlan_params=None): """Constructor for the OracleEnvJobParameters class""" # Initialize members of the class self.persist_mountpoints = persist_mountpoints self.vlan_params = vlan_params
[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 persist_mountpoints = dictionary.get('persistMountpoints') vlan_params = cohesity_management_sdk.models.vlan_params.VlanParams.from_dictionary(dictionary.get('vlanParams')) if dictionary.get('vlanParams') else None # Return an object of this model return cls(persist_mountpoints, vlan_params)