コード例 #1
0
def main():
    """Create an organization, print out its attributes and delete it."""
    server_config = ServerConfig(
        auth=('admin', 'changeme'),  # Use these credentials…
        url='https://sat1.example.com',  # …to talk to this server.
    )
    org = Organization(server_config, name='junk org').create()
    pprint(org.get_values())  # e.g. {'name': 'junk org', …}
    org.delete()
コード例 #2
0
def main():
    """Create an organization, print out its attributes and delete it."""
    server_config = ServerConfig(
        auth=('admin', 'changeme'),      # Use these credentials…
        url='https://sat1.example.com',  # …to talk to this server.
    )
    org = Organization(server_config, name='junk org').create()
    pprint(org.get_values())  # e.g. {'name': 'junk org', …}
    org.delete()
コード例 #3
0
def main():
    """Create an organization, print out its attributes and delete it."""
    org = Organization(name='junk org').create()
    pprint(org.get_values())  # e.g. {'name': 'junk org', …}
    org.delete()
コード例 #4
0
def main():
    """Create an organization, print out its attributes and delete it."""
    org = Organization(name="junk org").create()
    pprint(org.get_values())  # e.g. {'name': 'junk org', …}
    org.delete()
コード例 #5
0
def main():
    """Create an organization, print out its attributes and delete it."""
    org = Organization(name='junk org').create()
    PrettyPrinter().pprint(org.get_values())
    org.delete()