Source code for models_v2.domain_scope_params_2

# -*- coding: utf-8 -*-


[docs]class DomainScopeParams2(object): """Implementation of the 'DomainScopeParams2' model. Specifies the parameters for domain type scope. Attributes: domain_name (string): Specifies the domain name. """ # Create a mapping from Model property names to API property names _names = { "domain_name":'domainName' } def __init__(self, domain_name=None): """Constructor for the DomainScopeParams2 class""" # Initialize members of the class self.domain_name = domain_name
[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 domain_name = dictionary.get('domainName') # Return an object of this model return cls(domain_name)