def get_base_url(customer_name): """Retrieve the base url for downloading packages Args: customer_name (str): The name of the customer Basic Usage: >>> vFense.plugins.patching.patching import get_base_url >>> customer_name = 'default' >>> get_base_url(customer_name) Returns: String """ return( get_customer_property( customer_name, CustomerKeys.PackageUrl ) )
def get_global_agent_queue_ttl(self): """Return the global agent ttl property for a customer. TTL is in minutes. Basic Usage: >>> from vFense.queue.queue import AgentQueue >>> agent = AgentQueue() >>> agent_id = '70f3ca5f-09aa-4233-80ad-8fa5da6695fe' >>> customer_name = 'default' >>> queue = AgentQueue(agent_id, customer_name) >>> queue.get_global_agent_queue_ttl() Returns: Integer """ ttl = ( get_customer_property( self.customer_name, CustomerKeys.AgentQueueTTL ) ) return(ttl)