1
0
mirror of https://github.com/vmware/vsphere-automation-sdk-python.git synced 2024-11-22 09:39:58 -05:00
vsphere-automation-sdk-python/sample_template
Tianhao He abe05ece27 Improve sample code
1. Make sample code more consistent
2. Improve input parameter parser

Signed-off-by: Tianhao He <tianhao64@users.noreply.github.com>
2017-08-18 04:46:18 -07:00
..
__init__.py update sample template and doc 2017-08-08 11:58:05 -07:00
README.md update sample template and doc 2017-08-08 11:58:05 -07:00
sample_template.py Improve sample code 2017-08-18 04:46:18 -07:00

Boilerplate code for new samples

sample_template.py contains boilerplate code that can be used for most of the new samples. Please fill out the TODOs with your sample information. The steps included in the template code are:

  • Cmd line argument parser.
  • Login to vAPI services using vSphere Automation API.
  • Login to Vim service using pyVmomi.
  • Cleanup after sample execution.
  • Logout from both services.