Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def compute_get_qualified_servers(cookie, in_qual_dn, in_return_pool_configs, in_return_server_configs):
""" Auto-generated UCSC XML API Method. """
method = ExternalMethod("ComputeGetQualifiedServers")
method.cookie = cookie
method.in_qual_dn = in_qual_dn
method.in_return_pool_configs = in_return_pool_configs
method.in_return_server_configs = in_return_server_configs
xml_request = method.to_xml(option=WriteXmlOption.DIRTY)
return xml_request
def config_resolve_class(cookie, class_id, in_filter, in_include_props=None, in_return_count_only=None, in_limit=0, in_offset=0, in_hierarchical=YesOrNo.FALSE):
""" Auto-generated UCSC XML API Method. """
method = ExternalMethod("ConfigResolveClass")
meta_class_id = coreutils.find_class_id_in_mo_meta_ignore_case(class_id)
if meta_class_id is not None:
class_id = ucscgenutils.word_l(meta_class_id)
method.class_id = class_id
method.cookie = cookie
method.in_filter = in_filter
method.in_hierarchical = (("false", "true")[in_hierarchical in ucscgenutils.AFFIRMATIVE_LIST])
if in_include_props is not None:
method.in_include_props = in_include_props
if in_limit > 0:
method.in_limit = in_limit
if in_offset > 0:
method.in_offset = in_offset
if in_return_count_only is not None:
method.in_return_count_only = in_return_count_only
def event_subscribe(cookie, in_filter):
""" Auto-generated UCSC XML API Method. """
method = ExternalMethod("EventSubscribe")
method.cookie = cookie
method.in_filter = in_filter
xml_request = method.to_xml(option=WriteXmlOption.DIRTY)
return xml_request
def config_get_token_requestors(cookie):
""" Auto-generated UCSC XML API Method. """
method = ExternalMethod("ConfigGetTokenRequestors")
method.cookie = cookie
xml_request = method.to_xml(option=WriteXmlOption.DIRTY)
return xml_request
def config_publish_vlan(cookie, in_domain, in_vlan_name):
""" Auto-generated UCSC XML API Method. """
method = ExternalMethod("ConfigPublishVlan")
method.cookie = cookie
method.in_domain = in_domain
method.in_vlan_name = in_vlan_name
xml_request = method.to_xml(option=WriteXmlOption.DIRTY)
return xml_request
def equipment_clone(cookie, dn, in_chassis_profile_name, in_target_org, in_hierarchical=YesOrNo.FALSE):
""" Auto-generated UCSC XML API Method. """
method = ExternalMethod("EquipmentClone")
method.cookie = cookie
method.dn = dn
method.in_chassis_profile_name = in_chassis_profile_name
method.in_hierarchical = (("false", "true")[in_hierarchical in ucscgenutils.AFFIRMATIVE_LIST])
method.in_target_org = in_target_org
xml_request = method.to_xml(option=WriteXmlOption.DIRTY)
return xml_request
def ls_clone(cookie, dn, in_server_name, in_target_org, in_hierarchical=YesOrNo.FALSE):
""" Auto-generated UCSC XML API Method. """
method = ExternalMethod("LsClone")
method.cookie = cookie
method.dn = dn
method.in_hierarchical = (("false", "true")[in_hierarchical in ucscgenutils.AFFIRMATIVE_LIST])
method.in_server_name = in_server_name
method.in_target_org = in_target_org
xml_request = method.to_xml(option=WriteXmlOption.DIRTY)
return xml_request
def org_get_subscribed_domains(cookie, in_class_id, in_domain_group_dn, in_subscription_type):
""" Auto-generated UCSC XML API Method. """
method = ExternalMethod("OrgGetSubscribedDomains")
method.cookie = cookie
method.in_class_id = str(in_class_id)
method.in_domain_group_dn = in_domain_group_dn
method.in_subscription_type = in_subscription_type
xml_request = method.to_xml(option=WriteXmlOption.DIRTY)
return xml_request
def stats_build_chart_result(cookie, dn):
""" Auto-generated UCSC XML API Method. """
method = ExternalMethod("StatsBuildChartResult")
method.cookie = cookie
method.dn = dn
xml_request = method.to_xml(option=WriteXmlOption.DIRTY)
return xml_request
def fabric_permits_for_existing_vlan_names(cookie, in_org_dn):
""" Auto-generated UCSC XML API Method. """
method = ExternalMethod("FabricPermitsForExistingVlanNames")
method.cookie = cookie
method.in_org_dn = in_org_dn
xml_request = method.to_xml(option=WriteXmlOption.DIRTY)
return xml_request