mirror of
https://github.com/vmware/vsphere-automation-sdk-python.git
synced 2024-11-26 11:19:59 -05:00
Add missing top level module dunder
Fixed a couple of format issues. Fixed a few empty __init__.py
This commit is contained in:
parent
45aa7b76e8
commit
5ae9f6afc0
@ -1,3 +1,19 @@
|
|||||||
|
"""
|
||||||
|
* *******************************************************
|
||||||
|
* Copyright VMware, Inc. 2016. All Rights Reserved.
|
||||||
|
* *******************************************************
|
||||||
|
*
|
||||||
|
* DISCLAIMER. THIS PROGRAM IS PROVIDED TO YOU "AS IS" WITHOUT
|
||||||
|
* WARRANTIES OR CONDITIONS OF ANY KIND, WHETHER ORAL OR WRITTEN,
|
||||||
|
* EXPRESS OR IMPLIED. THE AUTHOR SPECIFICALLY DISCLAIMS ANY IMPLIED
|
||||||
|
* WARRANTIES OR CONDITIONS OF MERCHANTABILITY, SATISFACTORY QUALITY,
|
||||||
|
* NON-INFRINGEMENT AND FITNESS FOR A PARTICULAR PURPOSE.
|
||||||
|
"""
|
||||||
|
|
||||||
|
__author__ = 'VMware, Inc.'
|
||||||
|
__copyright__ = 'Copyright 2016 VMware, Inc. All rights reserved.'
|
||||||
|
|
||||||
|
|
||||||
# Required to distribute different parts of this
|
# Required to distribute different parts of this
|
||||||
# package as multiple distribution
|
# package as multiple distribution
|
||||||
try:
|
try:
|
||||||
|
@ -0,0 +1,24 @@
|
|||||||
|
"""
|
||||||
|
* *******************************************************
|
||||||
|
* Copyright VMware, Inc. 2016. All Rights Reserved.
|
||||||
|
* *******************************************************
|
||||||
|
*
|
||||||
|
* DISCLAIMER. THIS PROGRAM IS PROVIDED TO YOU "AS IS" WITHOUT
|
||||||
|
* WARRANTIES OR CONDITIONS OF ANY KIND, WHETHER ORAL OR WRITTEN,
|
||||||
|
* EXPRESS OR IMPLIED. THE AUTHOR SPECIFICALLY DISCLAIMS ANY IMPLIED
|
||||||
|
* WARRANTIES OR CONDITIONS OF MERCHANTABILITY, SATISFACTORY QUALITY,
|
||||||
|
* NON-INFRINGEMENT AND FITNESS FOR A PARTICULAR PURPOSE.
|
||||||
|
"""
|
||||||
|
|
||||||
|
__author__ = 'VMware, Inc.'
|
||||||
|
__copyright__ = 'Copyright 2016 VMware, Inc. All rights reserved.'
|
||||||
|
|
||||||
|
|
||||||
|
# Required to distribute different parts of this
|
||||||
|
# package as multiple distribution
|
||||||
|
try:
|
||||||
|
import pkg_resources
|
||||||
|
pkg_resources.declare_namespace(__name__)
|
||||||
|
except ImportError:
|
||||||
|
from pkgutil import extend_path
|
||||||
|
__path__ = extend_path(__path__, __name__) # @ReservedAssignment
|
@ -28,7 +28,7 @@ def rand(value):
|
|||||||
|
|
||||||
|
|
||||||
def generate_random_string(length):
|
def generate_random_string(length):
|
||||||
return (''.join(random.choice(string.ascii_uppercase) for _i in range(length)))
|
return ''.join(random.choice(string.ascii_uppercase) for _i in range(length))
|
||||||
|
|
||||||
|
|
||||||
def main():
|
def main():
|
||||||
|
@ -308,7 +308,7 @@ class LookupServiceHelper(object):
|
|||||||
raise Exception('No management node found')
|
raise Exception('No management node found')
|
||||||
if len(result) > 1:
|
if len(result) > 1:
|
||||||
raise MultipleManagementNodeException(MultipleManagementNodeException.format(result))
|
raise MultipleManagementNodeException(MultipleManagementNodeException.format(result))
|
||||||
return (list(result.keys())[0], list(result.values())[0]) # python 3.x dict.keys() returns a view rather than a list
|
return list(result.keys())[0], list(result.values())[0] # python 3.x dict.keys() returns a view rather than a list
|
||||||
|
|
||||||
|
|
||||||
class MultipleManagementNodeException(Exception):
|
class MultipleManagementNodeException(Exception):
|
||||||
|
@ -10,7 +10,6 @@
|
|||||||
* NON-INFRINGEMENT AND FITNESS FOR A PARTICULAR PURPOSE.
|
* NON-INFRINGEMENT AND FITNESS FOR A PARTICULAR PURPOSE.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
|
||||||
__author__ = 'VMware, Inc.'
|
__author__ = 'VMware, Inc.'
|
||||||
__copyright__ = 'Copyright 2013, 2016 VMware, Inc. All rights reserved.'
|
__copyright__ = 'Copyright 2013, 2016 VMware, Inc. All rights reserved.'
|
||||||
|
|
||||||
@ -21,7 +20,6 @@ from samples.vsphere.common.lookup_service_helper import LookupServiceHelper
|
|||||||
from samples.vsphere.common.ssl_helper import get_unverified_context
|
from samples.vsphere.common.ssl_helper import get_unverified_context
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
class PlatformServiceController(object):
|
class PlatformServiceController(object):
|
||||||
"""
|
"""
|
||||||
Manages services on the infrastructure node (e.g. lookup service, SSO etc.)
|
Manages services on the infrastructure node (e.g. lookup service, SSO etc.)
|
||||||
|
@ -10,6 +10,9 @@
|
|||||||
* NON-INFRINGEMENT AND FITNESS FOR A PARTICULAR PURPOSE.
|
* NON-INFRINGEMENT AND FITNESS FOR A PARTICULAR PURPOSE.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
__author__ = 'VMware, Inc.'
|
||||||
|
__copyright__ = 'Copyright 2016 VMware, Inc. All rights reserved.'
|
||||||
|
|
||||||
import argparse
|
import argparse
|
||||||
|
|
||||||
|
|
||||||
|
@ -10,6 +10,9 @@
|
|||||||
* NON-INFRINGEMENT AND FITNESS FOR A PARTICULAR PURPOSE.
|
* NON-INFRINGEMENT AND FITNESS FOR A PARTICULAR PURPOSE.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
__author__ = 'VMware, Inc.'
|
||||||
|
__copyright__ = 'Copyright 2016 VMware, Inc. All rights reserved.'
|
||||||
|
|
||||||
from six.moves import cStringIO
|
from six.moves import cStringIO
|
||||||
from vmware.vapi.bindings.struct import PrettyPrinter
|
from vmware.vapi.bindings.struct import PrettyPrinter
|
||||||
|
|
||||||
|
@ -10,6 +10,9 @@
|
|||||||
* NON-INFRINGEMENT AND FITNESS FOR A PARTICULAR PURPOSE.
|
* NON-INFRINGEMENT AND FITNESS FOR A PARTICULAR PURPOSE.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
__author__ = 'VMware, Inc.'
|
||||||
|
__copyright__ = 'Copyright 2016 VMware, Inc. All rights reserved.'
|
||||||
|
|
||||||
import ssl
|
import ssl
|
||||||
|
|
||||||
def get_unverified_context():
|
def get_unverified_context():
|
||||||
|
@ -10,6 +10,9 @@
|
|||||||
* NON-INFRINGEMENT AND FITNESS FOR A PARTICULAR PURPOSE.
|
* NON-INFRINGEMENT AND FITNESS FOR A PARTICULAR PURPOSE.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
__author__ = 'VMware, Inc.'
|
||||||
|
__copyright__ = 'Copyright 2016 VMware, Inc. All rights reserved.'
|
||||||
|
|
||||||
import requests
|
import requests
|
||||||
|
|
||||||
from com.vmware.cis_client import Session
|
from com.vmware.cis_client import Session
|
||||||
|
@ -10,6 +10,9 @@
|
|||||||
* NON-INFRINGEMENT AND FITNESS FOR A PARTICULAR PURPOSE.
|
* NON-INFRINGEMENT AND FITNESS FOR A PARTICULAR PURPOSE.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
__author__ = 'VMware, Inc.'
|
||||||
|
__copyright__ = 'Copyright 2016 VMware, Inc. All rights reserved.'
|
||||||
|
|
||||||
import pyVim.task
|
import pyVim.task
|
||||||
import requests
|
import requests
|
||||||
from pyVmomi import vim
|
from pyVmomi import vim
|
||||||
|
@ -10,6 +10,9 @@
|
|||||||
* NON-INFRINGEMENT AND FITNESS FOR A PARTICULAR PURPOSE.
|
* NON-INFRINGEMENT AND FITNESS FOR A PARTICULAR PURPOSE.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
__author__ = 'VMware, Inc.'
|
||||||
|
__copyright__ = 'Copyright 2016 VMware, Inc. All rights reserved.'
|
||||||
|
|
||||||
import re
|
import re
|
||||||
|
|
||||||
from samples.vsphere.common.vim.inventory import get_datastore_mo
|
from samples.vsphere.common.vim.inventory import get_datastore_mo
|
||||||
@ -24,8 +27,8 @@ def parse_datastore_path(datastore_path):
|
|||||||
m = datastore_path_regex.match(datastore_path)
|
m = datastore_path_regex.match(datastore_path)
|
||||||
if m:
|
if m:
|
||||||
(datastore_name, path) = m.groups()
|
(datastore_name, path) = m.groups()
|
||||||
return (datastore_name, path)
|
return datastore_name, path
|
||||||
return (None, None)
|
return None, None
|
||||||
|
|
||||||
|
|
||||||
def detect_directory(context, description, datacenter_name, datastore_path):
|
def detect_directory(context, description, datacenter_name, datastore_path):
|
||||||
|
@ -10,6 +10,10 @@
|
|||||||
* NON-INFRINGEMENT AND FITNESS FOR A PARTICULAR PURPOSE.
|
* NON-INFRINGEMENT AND FITNESS FOR A PARTICULAR PURPOSE.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
__author__ = 'VMware, Inc.'
|
||||||
|
__copyright__ = 'Copyright 2016 VMware, Inc. All rights reserved.'
|
||||||
|
__vcenter__ = 'since 6.0'
|
||||||
|
|
||||||
from pyVmomi import vim
|
from pyVmomi import vim
|
||||||
|
|
||||||
from samples.vsphere.vcenter.helper.datastore_helper import get_datastore
|
from samples.vsphere.vcenter.helper.datastore_helper import get_datastore
|
||||||
|
@ -10,6 +10,9 @@
|
|||||||
* NON-INFRINGEMENT AND FITNESS FOR A PARTICULAR PURPOSE.
|
* NON-INFRINGEMENT AND FITNESS FOR A PARTICULAR PURPOSE.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
__author__ = 'VMware, Inc.'
|
||||||
|
__copyright__ = 'Copyright 2016 VMware, Inc. All rights reserved.'
|
||||||
|
|
||||||
import pyVim.task
|
import pyVim.task
|
||||||
from pyVmomi import vim
|
from pyVmomi import vim
|
||||||
from samples.vsphere.common.vim.inventory import get_datastore_mo
|
from samples.vsphere.common.vim.inventory import get_datastore_mo
|
||||||
|
@ -8,6 +8,9 @@
|
|||||||
* NON-INFRINGEMENT AND FITNESS FOR A PARTICULAR PURPOSE.
|
* NON-INFRINGEMENT AND FITNESS FOR A PARTICULAR PURPOSE.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
__author__ = 'VMware, Inc.'
|
||||||
|
__copyright__ = 'Copyright 2016 VMware, Inc. All rights reserved.'
|
||||||
|
|
||||||
try:
|
try:
|
||||||
import urllib2
|
import urllib2
|
||||||
except ImportError:
|
except ImportError:
|
||||||
@ -19,9 +22,6 @@ from samples.vsphere.common.sample_base import SampleBase
|
|||||||
from samples.vsphere.contentlibrary.lib.cls_api_client import ClsApiClient
|
from samples.vsphere.contentlibrary.lib.cls_api_client import ClsApiClient
|
||||||
from samples.vsphere.contentlibrary.lib.cls_api_helper import ClsApiHelper
|
from samples.vsphere.contentlibrary.lib.cls_api_helper import ClsApiHelper
|
||||||
|
|
||||||
__author__ = 'VMware, Inc.'
|
|
||||||
__copyright__ = 'Copyright 2016 VMware, Inc. All rights reserved.'
|
|
||||||
|
|
||||||
|
|
||||||
class ContentUpdate(SampleBase):
|
class ContentUpdate(SampleBase):
|
||||||
"""
|
"""
|
||||||
|
@ -12,6 +12,9 @@
|
|||||||
* NON-INFRINGEMENT AND FITNESS FOR A PARTICULAR PURPOSE.
|
* NON-INFRINGEMENT AND FITNESS FOR A PARTICULAR PURPOSE.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
__author__ = 'VMware, Inc.'
|
||||||
|
__copyright__ = 'Copyright 2016 VMware, Inc. All rights reserved.'
|
||||||
|
|
||||||
from com.vmware.content.library_client import StorageBacking
|
from com.vmware.content.library_client import StorageBacking
|
||||||
from com.vmware.content_client import LibraryModel
|
from com.vmware.content_client import LibraryModel
|
||||||
|
|
||||||
@ -20,9 +23,6 @@ from samples.vsphere.common.sample_base import SampleBase
|
|||||||
from samples.vsphere.common.vim.helpers.get_datastore_by_name import get_datastore_id
|
from samples.vsphere.common.vim.helpers.get_datastore_by_name import get_datastore_id
|
||||||
from samples.vsphere.contentlibrary.lib.cls_api_client import ClsApiClient
|
from samples.vsphere.contentlibrary.lib.cls_api_client import ClsApiClient
|
||||||
|
|
||||||
__author__ = 'VMware, Inc.'
|
|
||||||
__copyright__ = 'Copyright 2016 VMware, Inc. All rights reserved.'
|
|
||||||
|
|
||||||
|
|
||||||
class LibraryCrud(SampleBase):
|
class LibraryCrud(SampleBase):
|
||||||
"""
|
"""
|
||||||
|
@ -12,16 +12,15 @@
|
|||||||
* NON-INFRINGEMENT AND FITNESS FOR A PARTICULAR PURPOSE.
|
* NON-INFRINGEMENT AND FITNESS FOR A PARTICULAR PURPOSE.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
__author__ = 'VMware, Inc.'
|
||||||
|
__copyright__ = 'Copyright 2016 VMware, Inc. All rights reserved.'
|
||||||
|
|
||||||
from samples.vsphere.common.sample_base import SampleBase
|
from samples.vsphere.common.sample_base import SampleBase
|
||||||
from samples.vsphere.contentlibrary.lib.cls_api_client import ClsApiClient
|
from samples.vsphere.contentlibrary.lib.cls_api_client import ClsApiClient
|
||||||
from samples.vsphere.contentlibrary.lib.cls_api_helper import ClsApiHelper
|
from samples.vsphere.contentlibrary.lib.cls_api_helper import ClsApiHelper
|
||||||
|
|
||||||
from samples.vsphere.vcenter.helper.vm_helper import get_vm
|
from samples.vsphere.vcenter.helper.vm_helper import get_vm
|
||||||
|
|
||||||
__author__ = 'VMware, Inc.'
|
|
||||||
__copyright__ = 'Copyright 2016 VMware, Inc. All rights reserved.'
|
|
||||||
|
|
||||||
|
|
||||||
class IsoMount(SampleBase):
|
class IsoMount(SampleBase):
|
||||||
"""
|
"""
|
||||||
Demonstrates the content library ISO item mount and
|
Demonstrates the content library ISO item mount and
|
||||||
|
@ -10,6 +10,8 @@
|
|||||||
* NON-INFRINGEMENT AND FITNESS FOR A PARTICULAR PURPOSE.
|
* NON-INFRINGEMENT AND FITNESS FOR A PARTICULAR PURPOSE.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
__author__ = 'VMware, Inc.'
|
||||||
|
__copyright__ = 'Copyright 2016 VMware, Inc. All rights reserved.'
|
||||||
|
|
||||||
from com.vmware.content_client import (Library,
|
from com.vmware.content_client import (Library,
|
||||||
LocalLibrary,
|
LocalLibrary,
|
||||||
@ -24,10 +26,6 @@ from com.vmware.vcenter.iso_client import Image
|
|||||||
from com.vmware.vcenter.ovf_client import LibraryItem
|
from com.vmware.vcenter.ovf_client import LibraryItem
|
||||||
|
|
||||||
|
|
||||||
__author__ = 'VMware, Inc.'
|
|
||||||
__copyright__ = 'Copyright 2016 VMware, Inc. All rights reserved.'
|
|
||||||
|
|
||||||
|
|
||||||
class ClsApiClient(object):
|
class ClsApiClient(object):
|
||||||
"""
|
"""
|
||||||
This is a simplified wrapper around the Content Library APIs.
|
This is a simplified wrapper around the Content Library APIs.
|
||||||
|
@ -10,6 +10,9 @@
|
|||||||
* NON-INFRINGEMENT AND FITNESS FOR A PARTICULAR PURPOSE.
|
* NON-INFRINGEMENT AND FITNESS FOR A PARTICULAR PURPOSE.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
__author__ = 'VMware, Inc.'
|
||||||
|
__copyright__ = 'Copyright 2016 VMware, Inc. All rights reserved.'
|
||||||
|
|
||||||
import os
|
import os
|
||||||
import ssl
|
import ssl
|
||||||
import time
|
import time
|
||||||
@ -29,9 +32,6 @@ from com.vmware.content.library.item.updatesession_client import File as UpdateS
|
|||||||
from samples.vsphere.common.id_generator import generate_random_uuid
|
from samples.vsphere.common.id_generator import generate_random_uuid
|
||||||
from samples.vsphere.common.vim.helpers.get_datastore_by_name import get_datastore_id
|
from samples.vsphere.common.vim.helpers.get_datastore_by_name import get_datastore_id
|
||||||
|
|
||||||
__author__ = 'VMware, Inc.'
|
|
||||||
__copyright__ = 'Copyright 2016 VMware, Inc. All rights reserved.'
|
|
||||||
|
|
||||||
|
|
||||||
class ClsApiHelper(object):
|
class ClsApiHelper(object):
|
||||||
"""
|
"""
|
||||||
|
@ -1,10 +1,21 @@
|
|||||||
import time
|
"""
|
||||||
|
* *******************************************************
|
||||||
|
* Copyright VMware, Inc. 2016. All Rights Reserved.
|
||||||
|
* *******************************************************
|
||||||
|
*
|
||||||
|
* DISCLAIMER. THIS PROGRAM IS PROVIDED TO YOU "AS IS" WITHOUT
|
||||||
|
* WARRANTIES OR CONDITIONS OF ANY KIND, WHETHER ORAL OR WRITTEN,
|
||||||
|
* EXPRESS OR IMPLIED. THE AUTHOR SPECIFICALLY DISCLAIMS ANY IMPLIED
|
||||||
|
* WARRANTIES OR CONDITIONS OF MERCHANTABILITY, SATISFACTORY QUALITY,
|
||||||
|
* NON-INFRINGEMENT AND FITNESS FOR A PARTICULAR PURPOSE.
|
||||||
|
"""
|
||||||
|
|
||||||
__author__ = 'VMware, Inc.'
|
__author__ = 'VMware, Inc.'
|
||||||
__copyright__ = 'Copyright 2016 VMware, Inc. All rights reserved.'
|
__copyright__ = 'Copyright 2016 VMware, Inc. All rights reserved.'
|
||||||
|
|
||||||
|
import time
|
||||||
|
|
||||||
class ClsSyncHelper():
|
class ClsSyncHelper:
|
||||||
"""
|
"""
|
||||||
Helper class to wait for the subscribed libraries and items to be
|
Helper class to wait for the subscribed libraries and items to be
|
||||||
synchronized completely with the publisher.
|
synchronized completely with the publisher.
|
||||||
|
@ -12,6 +12,9 @@
|
|||||||
* NON-INFRINGEMENT AND FITNESS FOR A PARTICULAR PURPOSE.
|
* NON-INFRINGEMENT AND FITNESS FOR A PARTICULAR PURPOSE.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
__author__ = 'VMware, Inc.'
|
||||||
|
__copyright__ = 'Copyright 2016 VMware, Inc. All rights reserved.'
|
||||||
|
|
||||||
try:
|
try:
|
||||||
import urllib2
|
import urllib2
|
||||||
except ImportError:
|
except ImportError:
|
||||||
@ -28,8 +31,6 @@ from samples.vsphere.common.vim.helpers.vim_utils import (
|
|||||||
from samples.vsphere.contentlibrary.lib.cls_api_client import ClsApiClient
|
from samples.vsphere.contentlibrary.lib.cls_api_client import ClsApiClient
|
||||||
from samples.vsphere.contentlibrary.lib.cls_api_helper import ClsApiHelper
|
from samples.vsphere.contentlibrary.lib.cls_api_helper import ClsApiHelper
|
||||||
|
|
||||||
__author__ = 'VMware, Inc.'
|
|
||||||
__copyright__ = 'Copyright 2016 VMware, Inc. All rights reserved.'
|
|
||||||
|
|
||||||
|
|
||||||
class DeployOvfTemplate(SampleBase):
|
class DeployOvfTemplate(SampleBase):
|
||||||
|
@ -13,6 +13,9 @@
|
|||||||
"""
|
"""
|
||||||
|
|
||||||
|
|
||||||
|
__author__ = 'VMware, Inc.'
|
||||||
|
__copyright__ = 'Copyright 2016 VMware, Inc. All rights reserved.'
|
||||||
|
|
||||||
import tempfile
|
import tempfile
|
||||||
try:
|
try:
|
||||||
import urllib2
|
import urllib2
|
||||||
@ -28,10 +31,6 @@ from samples.vsphere.contentlibrary.lib.cls_api_helper import ClsApiHelper
|
|||||||
from samples.vsphere.common.vim.helpers.get_datastore_by_name import get_datastore_id
|
from samples.vsphere.common.vim.helpers.get_datastore_by_name import get_datastore_id
|
||||||
|
|
||||||
|
|
||||||
__author__ = 'VMware, Inc.'
|
|
||||||
__copyright__ = 'Copyright 2016 VMware, Inc. All rights reserved.'
|
|
||||||
|
|
||||||
|
|
||||||
class OvfImportExport(SampleBase):
|
class OvfImportExport(SampleBase):
|
||||||
"""
|
"""
|
||||||
Demonstrates the workflow to import an OVF package into the content library,
|
Demonstrates the workflow to import an OVF package into the content library,
|
||||||
|
@ -12,6 +12,9 @@
|
|||||||
* NON-INFRINGEMENT AND FITNESS FOR A PARTICULAR PURPOSE.
|
* NON-INFRINGEMENT AND FITNESS FOR A PARTICULAR PURPOSE.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
__author__ = 'VMware, Inc.'
|
||||||
|
__copyright__ = 'Copyright 2016 VMware, Inc. All rights reserved.'
|
||||||
|
|
||||||
try:
|
try:
|
||||||
import urllib2
|
import urllib2
|
||||||
except ImportError:
|
except ImportError:
|
||||||
@ -26,9 +29,6 @@ from samples.vsphere.contentlibrary.lib.cls_api_client import ClsApiClient
|
|||||||
from samples.vsphere.contentlibrary.lib.cls_api_helper import ClsApiHelper
|
from samples.vsphere.contentlibrary.lib.cls_api_helper import ClsApiHelper
|
||||||
from samples.vsphere.contentlibrary.lib.cls_sync_helper import ClsSyncHelper
|
from samples.vsphere.contentlibrary.lib.cls_sync_helper import ClsSyncHelper
|
||||||
|
|
||||||
__author__ = 'VMware, Inc.'
|
|
||||||
__copyright__ = 'Copyright 2016 VMware, Inc. All rights reserved.'
|
|
||||||
|
|
||||||
|
|
||||||
class LibraryPublishSubscribe(SampleBase):
|
class LibraryPublishSubscribe(SampleBase):
|
||||||
"""
|
"""
|
||||||
@ -174,7 +174,7 @@ class LibraryPublishSubscribe(SampleBase):
|
|||||||
self.sub_lib_id = self.client.subscribed_library_service.create(
|
self.sub_lib_id = self.client.subscribed_library_service.create(
|
||||||
create_spec=sub_spec, client_token=generate_random_uuid())
|
create_spec=sub_spec, client_token=generate_random_uuid())
|
||||||
sub_lib = self.client.subscribed_library_service.get(self.sub_lib_id)
|
sub_lib = self.client.subscribed_library_service.get(self.sub_lib_id)
|
||||||
return (sub_lib, sub_spec)
|
return sub_lib, sub_spec
|
||||||
|
|
||||||
def _cleanup(self):
|
def _cleanup(self):
|
||||||
if self.sub_lib_id:
|
if self.sub_lib_id:
|
||||||
|
@ -12,6 +12,9 @@
|
|||||||
* NON-INFRINGEMENT AND FITNESS FOR A PARTICULAR PURPOSE.
|
* NON-INFRINGEMENT AND FITNESS FOR A PARTICULAR PURPOSE.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
__author__ = 'VMware, Inc.'
|
||||||
|
__copyright__ = 'Copyright 2016 VMware, Inc. All rights reserved.'
|
||||||
|
|
||||||
try:
|
try:
|
||||||
import urllib2
|
import urllib2
|
||||||
except ImportError:
|
except ImportError:
|
||||||
@ -24,8 +27,6 @@ from samples.vsphere.contentlibrary.lib.cls_api_helper import ClsApiHelper
|
|||||||
|
|
||||||
from samples.vsphere.vcenter.helper.vm_helper import get_vm
|
from samples.vsphere.vcenter.helper.vm_helper import get_vm
|
||||||
|
|
||||||
__author__ = 'VMware, Inc.'
|
|
||||||
__copyright__ = 'Copyright 2016 VMware, Inc. All rights reserved.'
|
|
||||||
|
|
||||||
|
|
||||||
class CaptureVMTemplateToContentLibrary(SampleBase):
|
class CaptureVMTemplateToContentLibrary(SampleBase):
|
||||||
|
@ -1,3 +1,18 @@
|
|||||||
|
"""
|
||||||
|
* *******************************************************
|
||||||
|
* Copyright VMware, Inc. 2016. All Rights Reserved.
|
||||||
|
* *******************************************************
|
||||||
|
*
|
||||||
|
* DISCLAIMER. THIS PROGRAM IS PROVIDED TO YOU "AS IS" WITHOUT
|
||||||
|
* WARRANTIES OR CONDITIONS OF ANY KIND, WHETHER ORAL OR WRITTEN,
|
||||||
|
* EXPRESS OR IMPLIED. THE AUTHOR SPECIFICALLY DISCLAIMS ANY IMPLIED
|
||||||
|
* WARRANTIES OR CONDITIONS OF MERCHANTABILITY, SATISFACTORY QUALITY,
|
||||||
|
* NON-INFRINGEMENT AND FITNESS FOR A PARTICULAR PURPOSE.
|
||||||
|
"""
|
||||||
|
|
||||||
|
__author__ = 'VMware, Inc.'
|
||||||
|
__copyright__ = 'Copyright 2016 VMware, Inc. All rights reserved.'
|
||||||
|
|
||||||
# Required to distribute different parts of this
|
# Required to distribute different parts of this
|
||||||
# package as multiple distribution
|
# package as multiple distribution
|
||||||
try:
|
try:
|
||||||
|
@ -0,0 +1,24 @@
|
|||||||
|
"""
|
||||||
|
* *******************************************************
|
||||||
|
* Copyright VMware, Inc. 2016. All Rights Reserved.
|
||||||
|
* *******************************************************
|
||||||
|
*
|
||||||
|
* DISCLAIMER. THIS PROGRAM IS PROVIDED TO YOU "AS IS" WITHOUT
|
||||||
|
* WARRANTIES OR CONDITIONS OF ANY KIND, WHETHER ORAL OR WRITTEN,
|
||||||
|
* EXPRESS OR IMPLIED. THE AUTHOR SPECIFICALLY DISCLAIMS ANY IMPLIED
|
||||||
|
* WARRANTIES OR CONDITIONS OF MERCHANTABILITY, SATISFACTORY QUALITY,
|
||||||
|
* NON-INFRINGEMENT AND FITNESS FOR A PARTICULAR PURPOSE.
|
||||||
|
"""
|
||||||
|
|
||||||
|
__author__ = 'VMware, Inc.'
|
||||||
|
__copyright__ = 'Copyright 2016 VMware, Inc. All rights reserved.'
|
||||||
|
|
||||||
|
|
||||||
|
# Required to distribute different parts of this
|
||||||
|
# package as multiple distribution
|
||||||
|
try:
|
||||||
|
import pkg_resources
|
||||||
|
pkg_resources.declare_namespace(__name__)
|
||||||
|
except ImportError:
|
||||||
|
from pkgutil import extend_path
|
||||||
|
__path__ = extend_path(__path__, __name__) # @ReservedAssignment
|
@ -1,3 +1,19 @@
|
|||||||
|
"""
|
||||||
|
* *******************************************************
|
||||||
|
* Copyright VMware, Inc. 2016. All Rights Reserved.
|
||||||
|
* *******************************************************
|
||||||
|
*
|
||||||
|
* DISCLAIMER. THIS PROGRAM IS PROVIDED TO YOU "AS IS" WITHOUT
|
||||||
|
* WARRANTIES OR CONDITIONS OF ANY KIND, WHETHER ORAL OR WRITTEN,
|
||||||
|
* EXPRESS OR IMPLIED. THE AUTHOR SPECIFICALLY DISCLAIMS ANY IMPLIED
|
||||||
|
* WARRANTIES OR CONDITIONS OF MERCHANTABILITY, SATISFACTORY QUALITY,
|
||||||
|
* NON-INFRINGEMENT AND FITNESS FOR A PARTICULAR PURPOSE.
|
||||||
|
"""
|
||||||
|
|
||||||
|
__author__ = 'VMware, Inc.'
|
||||||
|
__copyright__ = 'Copyright 2016 VMware, Inc. All rights reserved.'
|
||||||
|
|
||||||
|
|
||||||
# Required to distribute different parts of this
|
# Required to distribute different parts of this
|
||||||
# package as multiple distribution
|
# package as multiple distribution
|
||||||
try:
|
try:
|
||||||
|
@ -10,6 +10,9 @@
|
|||||||
* NON-INFRINGEMENT AND FITNESS FOR A PARTICULAR PURPOSE.
|
* NON-INFRINGEMENT AND FITNESS FOR A PARTICULAR PURPOSE.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
__author__ = 'VMware, Inc.'
|
||||||
|
__copyright__ = 'Copyright 2016 VMware, Inc. All rights reserved.'
|
||||||
|
|
||||||
from com.vmware.vcenter_client import Cluster
|
from com.vmware.vcenter_client import Cluster
|
||||||
|
|
||||||
from samples.vsphere.vcenter.helper import datacenter_helper
|
from samples.vsphere.vcenter.helper import datacenter_helper
|
||||||
|
@ -10,6 +10,9 @@
|
|||||||
* NON-INFRINGEMENT AND FITNESS FOR A PARTICULAR PURPOSE.
|
* NON-INFRINGEMENT AND FITNESS FOR A PARTICULAR PURPOSE.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
__author__ = 'VMware, Inc.'
|
||||||
|
__copyright__ = 'Copyright 2016 VMware, Inc. All rights reserved.'
|
||||||
|
|
||||||
from com.vmware.vcenter_client import Datacenter
|
from com.vmware.vcenter_client import Datacenter
|
||||||
|
|
||||||
|
|
||||||
|
@ -10,6 +10,9 @@
|
|||||||
* NON-INFRINGEMENT AND FITNESS FOR A PARTICULAR PURPOSE.
|
* NON-INFRINGEMENT AND FITNESS FOR A PARTICULAR PURPOSE.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
__author__ = 'VMware, Inc.'
|
||||||
|
__copyright__ = 'Copyright 2016 VMware, Inc. All rights reserved.'
|
||||||
|
|
||||||
from com.vmware.vcenter_client import Datastore
|
from com.vmware.vcenter_client import Datastore
|
||||||
|
|
||||||
from samples.vsphere.vcenter.helper import datacenter_helper
|
from samples.vsphere.vcenter.helper import datacenter_helper
|
||||||
|
@ -10,6 +10,9 @@
|
|||||||
* NON-INFRINGEMENT AND FITNESS FOR A PARTICULAR PURPOSE.
|
* NON-INFRINGEMENT AND FITNESS FOR A PARTICULAR PURPOSE.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
__author__ = 'VMware, Inc.'
|
||||||
|
__copyright__ = 'Copyright 2016 VMware, Inc. All rights reserved.'
|
||||||
|
|
||||||
from com.vmware.vcenter_client import Folder
|
from com.vmware.vcenter_client import Folder
|
||||||
|
|
||||||
from samples.vsphere.vcenter.helper import datacenter_helper
|
from samples.vsphere.vcenter.helper import datacenter_helper
|
||||||
|
@ -10,6 +10,9 @@
|
|||||||
* NON-INFRINGEMENT AND FITNESS FOR A PARTICULAR PURPOSE.
|
* NON-INFRINGEMENT AND FITNESS FOR A PARTICULAR PURPOSE.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
__author__ = 'VMware, Inc.'
|
||||||
|
__copyright__ = 'Copyright 2016 VMware, Inc. All rights reserved.'
|
||||||
|
|
||||||
from com.vmware.vcenter_client import Network
|
from com.vmware.vcenter_client import Network
|
||||||
|
|
||||||
from samples.vsphere.vcenter.helper import datacenter_helper
|
from samples.vsphere.vcenter.helper import datacenter_helper
|
||||||
|
@ -10,6 +10,9 @@
|
|||||||
* NON-INFRINGEMENT AND FITNESS FOR A PARTICULAR PURPOSE.
|
* NON-INFRINGEMENT AND FITNESS FOR A PARTICULAR PURPOSE.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
__author__ = 'VMware, Inc.'
|
||||||
|
__copyright__ = 'Copyright 2016 VMware, Inc. All rights reserved.'
|
||||||
|
|
||||||
from com.vmware.vcenter_client import ResourcePool
|
from com.vmware.vcenter_client import ResourcePool
|
||||||
|
|
||||||
from samples.vsphere.vcenter.helper import datacenter_helper
|
from samples.vsphere.vcenter.helper import datacenter_helper
|
||||||
|
@ -10,6 +10,9 @@
|
|||||||
* NON-INFRINGEMENT AND FITNESS FOR A PARTICULAR PURPOSE.
|
* NON-INFRINGEMENT AND FITNESS FOR A PARTICULAR PURPOSE.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
__author__ = 'VMware, Inc.'
|
||||||
|
__copyright__ = 'Copyright 2016 VMware, Inc. All rights reserved.'
|
||||||
|
|
||||||
from com.vmware.vcenter_client import VM
|
from com.vmware.vcenter_client import VM
|
||||||
|
|
||||||
|
|
||||||
|
@ -10,6 +10,9 @@
|
|||||||
* NON-INFRINGEMENT AND FITNESS FOR A PARTICULAR PURPOSE.
|
* NON-INFRINGEMENT AND FITNESS FOR A PARTICULAR PURPOSE.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
__author__ = 'VMware, Inc.'
|
||||||
|
__copyright__ = 'Copyright 2016 VMware, Inc. All rights reserved.'
|
||||||
|
|
||||||
from com.vmware.vcenter_client import VM
|
from com.vmware.vcenter_client import VM
|
||||||
|
|
||||||
from samples.vsphere.vcenter.helper import datastore_helper
|
from samples.vsphere.vcenter.helper import datastore_helper
|
||||||
|
@ -1,3 +1,19 @@
|
|||||||
|
"""
|
||||||
|
* *******************************************************
|
||||||
|
* Copyright VMware, Inc. 2016. All Rights Reserved.
|
||||||
|
* *******************************************************
|
||||||
|
*
|
||||||
|
* DISCLAIMER. THIS PROGRAM IS PROVIDED TO YOU "AS IS" WITHOUT
|
||||||
|
* WARRANTIES OR CONDITIONS OF ANY KIND, WHETHER ORAL OR WRITTEN,
|
||||||
|
* EXPRESS OR IMPLIED. THE AUTHOR SPECIFICALLY DISCLAIMS ANY IMPLIED
|
||||||
|
* WARRANTIES OR CONDITIONS OF MERCHANTABILITY, SATISFACTORY QUALITY,
|
||||||
|
* NON-INFRINGEMENT AND FITNESS FOR A PARTICULAR PURPOSE.
|
||||||
|
"""
|
||||||
|
|
||||||
|
__author__ = 'VMware, Inc.'
|
||||||
|
__copyright__ = 'Copyright 2016 VMware, Inc. All rights reserved.'
|
||||||
|
|
||||||
|
|
||||||
# Required to distribute different parts of this
|
# Required to distribute different parts of this
|
||||||
# package as multiple distribution
|
# package as multiple distribution
|
||||||
try:
|
try:
|
||||||
|
@ -10,6 +10,10 @@
|
|||||||
* NON-INFRINGEMENT AND FITNESS FOR A PARTICULAR PURPOSE.
|
* NON-INFRINGEMENT AND FITNESS FOR A PARTICULAR PURPOSE.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
__author__ = 'VMware, Inc.'
|
||||||
|
__copyright__ = 'Copyright 2016 VMware, Inc. All rights reserved.'
|
||||||
|
|
||||||
|
|
||||||
from samples.vsphere.common.vim.file import (detect_directory,
|
from samples.vsphere.common.vim.file import (detect_directory,
|
||||||
create_directory,
|
create_directory,
|
||||||
delete_directory)
|
delete_directory)
|
||||||
|
@ -10,6 +10,10 @@
|
|||||||
* NON-INFRINGEMENT AND FITNESS FOR A PARTICULAR PURPOSE.
|
* NON-INFRINGEMENT AND FITNESS FOR A PARTICULAR PURPOSE.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
__author__ = 'VMware, Inc.'
|
||||||
|
__copyright__ = 'Copyright 2016 VMware, Inc. All rights reserved.'
|
||||||
|
|
||||||
|
|
||||||
import pyVim.task
|
import pyVim.task
|
||||||
from com.vmware.vcenter_client import Cluster
|
from com.vmware.vcenter_client import Cluster
|
||||||
from pyVmomi import vim
|
from pyVmomi import vim
|
||||||
|
@ -10,6 +10,10 @@
|
|||||||
* NON-INFRINGEMENT AND FITNESS FOR A PARTICULAR PURPOSE.
|
* NON-INFRINGEMENT AND FITNESS FOR A PARTICULAR PURPOSE.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
__author__ = 'VMware, Inc.'
|
||||||
|
__copyright__ = 'Copyright 2016 VMware, Inc. All rights reserved.'
|
||||||
|
|
||||||
|
|
||||||
from com.vmware.vcenter_client import (Datacenter, Folder)
|
from com.vmware.vcenter_client import (Datacenter, Folder)
|
||||||
|
|
||||||
|
|
||||||
|
@ -10,6 +10,10 @@
|
|||||||
* NON-INFRINGEMENT AND FITNESS FOR A PARTICULAR PURPOSE.
|
* NON-INFRINGEMENT AND FITNESS FOR A PARTICULAR PURPOSE.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
__author__ = 'VMware, Inc.'
|
||||||
|
__copyright__ = 'Copyright 2016 VMware, Inc. All rights reserved.'
|
||||||
|
|
||||||
|
|
||||||
import pyVim.task
|
import pyVim.task
|
||||||
from com.vmware.vcenter_client import Host
|
from com.vmware.vcenter_client import Host
|
||||||
from pyVmomi import vim
|
from pyVmomi import vim
|
||||||
|
@ -10,6 +10,10 @@
|
|||||||
* NON-INFRINGEMENT AND FITNESS FOR A PARTICULAR PURPOSE.
|
* NON-INFRINGEMENT AND FITNESS FOR A PARTICULAR PURPOSE.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
__author__ = 'VMware, Inc.'
|
||||||
|
__copyright__ = 'Copyright 2016 VMware, Inc. All rights reserved.'
|
||||||
|
|
||||||
|
|
||||||
from samples.vsphere.common.vim.file import (detect_file, delete_file,
|
from samples.vsphere.common.vim.file import (detect_file, delete_file,
|
||||||
parse_datastore_path)
|
parse_datastore_path)
|
||||||
from samples.vsphere.common.vim.inventory import get_datastore_mo
|
from samples.vsphere.common.vim.inventory import get_datastore_mo
|
||||||
|
@ -10,6 +10,10 @@
|
|||||||
* NON-INFRINGEMENT AND FITNESS FOR A PARTICULAR PURPOSE.
|
* NON-INFRINGEMENT AND FITNESS FOR A PARTICULAR PURPOSE.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
__author__ = 'VMware, Inc.'
|
||||||
|
__copyright__ = 'Copyright 2016 VMware, Inc. All rights reserved.'
|
||||||
|
|
||||||
|
|
||||||
import pyVim.task
|
import pyVim.task
|
||||||
from com.vmware.vcenter_client import (Folder)
|
from com.vmware.vcenter_client import (Folder)
|
||||||
from pyVmomi import vim
|
from pyVmomi import vim
|
||||||
|
@ -10,6 +10,10 @@
|
|||||||
* NON-INFRINGEMENT AND FITNESS FOR A PARTICULAR PURPOSE.
|
* NON-INFRINGEMENT AND FITNESS FOR A PARTICULAR PURPOSE.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
__author__ = 'VMware, Inc.'
|
||||||
|
__copyright__ = 'Copyright 2016 VMware, Inc. All rights reserved.'
|
||||||
|
|
||||||
|
|
||||||
import pyVim.task
|
import pyVim.task
|
||||||
from com.vmware.vcenter_client import (Folder, Host)
|
from com.vmware.vcenter_client import (Folder, Host)
|
||||||
from pyVmomi import vim
|
from pyVmomi import vim
|
||||||
|
@ -10,6 +10,10 @@
|
|||||||
* NON-INFRINGEMENT AND FITNESS FOR A PARTICULAR PURPOSE.
|
* NON-INFRINGEMENT AND FITNESS FOR A PARTICULAR PURPOSE.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
__author__ = 'VMware, Inc.'
|
||||||
|
__copyright__ = 'Copyright 2016 VMware, Inc. All rights reserved.'
|
||||||
|
|
||||||
|
|
||||||
from samples.vsphere.common.vim.file import (detect_file, delete_file,
|
from samples.vsphere.common.vim.file import (detect_file, delete_file,
|
||||||
parse_datastore_path)
|
parse_datastore_path)
|
||||||
from samples.vsphere.common.vim.inventory import get_datastore_mo
|
from samples.vsphere.common.vim.inventory import get_datastore_mo
|
||||||
|
@ -17,6 +17,10 @@
|
|||||||
Script that runs through all the setup and samples.
|
Script that runs through all the setup and samples.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
__author__ = 'VMware, Inc.'
|
||||||
|
__copyright__ = 'Copyright 2016 VMware, Inc. All rights reserved.'
|
||||||
|
|
||||||
|
|
||||||
import pyVim.connect
|
import pyVim.connect
|
||||||
from samples.vsphere.common import sample_util
|
from samples.vsphere.common import sample_util
|
||||||
from samples.vsphere.common import vapiconnect
|
from samples.vsphere.common import vapiconnect
|
||||||
|
@ -10,6 +10,10 @@
|
|||||||
* NON-INFRINGEMENT AND FITNESS FOR A PARTICULAR PURPOSE.
|
* NON-INFRINGEMENT AND FITNESS FOR A PARTICULAR PURPOSE.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
__author__ = 'VMware, Inc.'
|
||||||
|
__copyright__ = 'Copyright 2016 VMware, Inc. All rights reserved.'
|
||||||
|
|
||||||
|
|
||||||
import pyVim.task
|
import pyVim.task
|
||||||
from com.vmware.vcenter_client import Host
|
from com.vmware.vcenter_client import Host
|
||||||
from pyVmomi import vim
|
from pyVmomi import vim
|
||||||
|
@ -13,6 +13,11 @@
|
|||||||
"""
|
"""
|
||||||
This module implements simple helper functions for python samples
|
This module implements simple helper functions for python samples
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
__author__ = 'VMware, Inc.'
|
||||||
|
__copyright__ = 'Copyright 2016 VMware, Inc. All rights reserved.'
|
||||||
|
|
||||||
|
|
||||||
import argparse
|
import argparse
|
||||||
|
|
||||||
|
|
||||||
|
@ -1,5 +1,3 @@
|
|||||||
#!/usr/bin/python
|
|
||||||
|
|
||||||
"""
|
"""
|
||||||
* *******************************************************
|
* *******************************************************
|
||||||
* Copyright (c) VMware, Inc. 2016. All Rights Reserved.
|
* Copyright (c) VMware, Inc. 2016. All Rights Reserved.
|
||||||
@ -12,6 +10,9 @@
|
|||||||
* NON-INFRINGEMENT AND FITNESS FOR A PARTICULAR PURPOSE.
|
* NON-INFRINGEMENT AND FITNESS FOR A PARTICULAR PURPOSE.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
__author__ = 'VMware, Inc.'
|
||||||
|
__copyright__ = 'Copyright 2016 VMware, Inc. All rights reserved.'
|
||||||
|
|
||||||
config = {}
|
config = {}
|
||||||
config["SERVER"] = ""
|
config["SERVER"] = ""
|
||||||
config["USERNAME"] = "administrator@vsphere.local"
|
config["USERNAME"] = "administrator@vsphere.local"
|
||||||
@ -95,7 +96,7 @@ class Testbed(object):
|
|||||||
|
|
||||||
@config.setter
|
@config.setter
|
||||||
def config(self, value):
|
def config(self, value):
|
||||||
'setting'
|
"""setting"""
|
||||||
self._config = value
|
self._config = value
|
||||||
|
|
||||||
@property
|
@property
|
||||||
@ -104,7 +105,7 @@ class Testbed(object):
|
|||||||
|
|
||||||
@entities.setter
|
@entities.setter
|
||||||
def entities(self, value):
|
def entities(self, value):
|
||||||
'setting'
|
"""setting"""
|
||||||
self._entities = value
|
self._entities = value
|
||||||
|
|
||||||
def to_config_string(self):
|
def to_config_string(self):
|
||||||
|
@ -10,6 +10,9 @@
|
|||||||
* NON-INFRINGEMENT AND FITNESS FOR A PARTICULAR PURPOSE.
|
* NON-INFRINGEMENT AND FITNESS FOR A PARTICULAR PURPOSE.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
__author__ = 'VMware, Inc.'
|
||||||
|
__copyright__ = 'Copyright 2016 VMware, Inc. All rights reserved.'
|
||||||
|
|
||||||
import samples.vsphere.vcenter.setup.backend_directory as backend_directory
|
import samples.vsphere.vcenter.setup.backend_directory as backend_directory
|
||||||
import samples.vsphere.vcenter.setup.cluster as cluster
|
import samples.vsphere.vcenter.setup.cluster as cluster
|
||||||
import samples.vsphere.vcenter.setup.datacenter as datacenter
|
import samples.vsphere.vcenter.setup.datacenter as datacenter
|
||||||
|
@ -0,0 +1,24 @@
|
|||||||
|
"""
|
||||||
|
* *******************************************************
|
||||||
|
* Copyright VMware, Inc. 2016. All Rights Reserved.
|
||||||
|
* *******************************************************
|
||||||
|
*
|
||||||
|
* DISCLAIMER. THIS PROGRAM IS PROVIDED TO YOU "AS IS" WITHOUT
|
||||||
|
* WARRANTIES OR CONDITIONS OF ANY KIND, WHETHER ORAL OR WRITTEN,
|
||||||
|
* EXPRESS OR IMPLIED. THE AUTHOR SPECIFICALLY DISCLAIMS ANY IMPLIED
|
||||||
|
* WARRANTIES OR CONDITIONS OF MERCHANTABILITY, SATISFACTORY QUALITY,
|
||||||
|
* NON-INFRINGEMENT AND FITNESS FOR A PARTICULAR PURPOSE.
|
||||||
|
"""
|
||||||
|
|
||||||
|
__author__ = 'VMware, Inc.'
|
||||||
|
__copyright__ = 'Copyright 2016 VMware, Inc. All rights reserved.'
|
||||||
|
|
||||||
|
|
||||||
|
# Required to distribute different parts of this
|
||||||
|
# package as multiple distribution
|
||||||
|
try:
|
||||||
|
import pkg_resources
|
||||||
|
pkg_resources.declare_namespace(__name__)
|
||||||
|
except ImportError:
|
||||||
|
from pkgutil import extend_path
|
||||||
|
__path__ = extend_path(__path__, __name__) # @ReservedAssignment
|
@ -1,3 +1,19 @@
|
|||||||
|
"""
|
||||||
|
* *******************************************************
|
||||||
|
* Copyright VMware, Inc. 2016. All Rights Reserved.
|
||||||
|
* *******************************************************
|
||||||
|
*
|
||||||
|
* DISCLAIMER. THIS PROGRAM IS PROVIDED TO YOU "AS IS" WITHOUT
|
||||||
|
* WARRANTIES OR CONDITIONS OF ANY KIND, WHETHER ORAL OR WRITTEN,
|
||||||
|
* EXPRESS OR IMPLIED. THE AUTHOR SPECIFICALLY DISCLAIMS ANY IMPLIED
|
||||||
|
* WARRANTIES OR CONDITIONS OF MERCHANTABILITY, SATISFACTORY QUALITY,
|
||||||
|
* NON-INFRINGEMENT AND FITNESS FOR A PARTICULAR PURPOSE.
|
||||||
|
"""
|
||||||
|
|
||||||
|
__author__ = 'VMware, Inc.'
|
||||||
|
__copyright__ = 'Copyright 2016 VMware, Inc. All rights reserved.'
|
||||||
|
|
||||||
|
|
||||||
# Required to distribute different parts of this
|
# Required to distribute different parts of this
|
||||||
# package as multiple distribution
|
# package as multiple distribution
|
||||||
try:
|
try:
|
||||||
|
@ -12,6 +12,9 @@
|
|||||||
* NON-INFRINGEMENT AND FITNESS FOR A PARTICULAR PURPOSE.
|
* NON-INFRINGEMENT AND FITNESS FOR A PARTICULAR PURPOSE.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
__author__ = 'VMware, Inc.'
|
||||||
|
__copyright__ = 'Copyright 2016 VMware, Inc. All rights reserved.'
|
||||||
|
|
||||||
from com.vmware.vcenter.vm.hardware.boot_client import Device as BootDevice
|
from com.vmware.vcenter.vm.hardware.boot_client import Device as BootDevice
|
||||||
from com.vmware.vcenter.vm.hardware_client import (
|
from com.vmware.vcenter.vm.hardware_client import (
|
||||||
Disk, Ethernet)
|
Disk, Ethernet)
|
||||||
|
@ -12,6 +12,9 @@
|
|||||||
* NON-INFRINGEMENT AND FITNESS FOR A PARTICULAR PURPOSE.
|
* NON-INFRINGEMENT AND FITNESS FOR A PARTICULAR PURPOSE.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
__author__ = 'VMware, Inc.'
|
||||||
|
__copyright__ = 'Copyright 2016 VMware, Inc. All rights reserved.'
|
||||||
|
|
||||||
from com.vmware.vcenter.vm_client import Power
|
from com.vmware.vcenter.vm_client import Power
|
||||||
from com.vmware.vcenter_client import VM
|
from com.vmware.vcenter_client import VM
|
||||||
from samples.vsphere.common import vapiconnect
|
from samples.vsphere.common import vapiconnect
|
||||||
|
@ -12,6 +12,9 @@
|
|||||||
* NON-INFRINGEMENT AND FITNESS FOR A PARTICULAR PURPOSE.
|
* NON-INFRINGEMENT AND FITNESS FOR A PARTICULAR PURPOSE.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
__author__ = 'VMware, Inc.'
|
||||||
|
__copyright__ = 'Copyright 2016 VMware, Inc. All rights reserved.'
|
||||||
|
|
||||||
from com.vmware.vcenter.vm.hardware.boot_client import Device as BootDevice
|
from com.vmware.vcenter.vm.hardware.boot_client import Device as BootDevice
|
||||||
from com.vmware.vcenter.vm.hardware_client import (
|
from com.vmware.vcenter.vm.hardware_client import (
|
||||||
Cpu, Memory, Disk, Ethernet, Cdrom, Serial, Parallel, Floppy, Boot)
|
Cpu, Memory, Disk, Ethernet, Cdrom, Serial, Parallel, Floppy, Boot)
|
||||||
|
@ -0,0 +1,24 @@
|
|||||||
|
"""
|
||||||
|
* *******************************************************
|
||||||
|
* Copyright VMware, Inc. 2016. All Rights Reserved.
|
||||||
|
* *******************************************************
|
||||||
|
*
|
||||||
|
* DISCLAIMER. THIS PROGRAM IS PROVIDED TO YOU "AS IS" WITHOUT
|
||||||
|
* WARRANTIES OR CONDITIONS OF ANY KIND, WHETHER ORAL OR WRITTEN,
|
||||||
|
* EXPRESS OR IMPLIED. THE AUTHOR SPECIFICALLY DISCLAIMS ANY IMPLIED
|
||||||
|
* WARRANTIES OR CONDITIONS OF MERCHANTABILITY, SATISFACTORY QUALITY,
|
||||||
|
* NON-INFRINGEMENT AND FITNESS FOR A PARTICULAR PURPOSE.
|
||||||
|
"""
|
||||||
|
|
||||||
|
__author__ = 'VMware, Inc.'
|
||||||
|
__copyright__ = 'Copyright 2016 VMware, Inc. All rights reserved.'
|
||||||
|
|
||||||
|
|
||||||
|
# Required to distribute different parts of this
|
||||||
|
# package as multiple distribution
|
||||||
|
try:
|
||||||
|
import pkg_resources
|
||||||
|
pkg_resources.declare_namespace(__name__)
|
||||||
|
except ImportError:
|
||||||
|
from pkgutil import extend_path
|
||||||
|
__path__ = extend_path(__path__, __name__) # @ReservedAssignment
|
@ -0,0 +1,24 @@
|
|||||||
|
"""
|
||||||
|
* *******************************************************
|
||||||
|
* Copyright VMware, Inc. 2016. All Rights Reserved.
|
||||||
|
* *******************************************************
|
||||||
|
*
|
||||||
|
* DISCLAIMER. THIS PROGRAM IS PROVIDED TO YOU "AS IS" WITHOUT
|
||||||
|
* WARRANTIES OR CONDITIONS OF ANY KIND, WHETHER ORAL OR WRITTEN,
|
||||||
|
* EXPRESS OR IMPLIED. THE AUTHOR SPECIFICALLY DISCLAIMS ANY IMPLIED
|
||||||
|
* WARRANTIES OR CONDITIONS OF MERCHANTABILITY, SATISFACTORY QUALITY,
|
||||||
|
* NON-INFRINGEMENT AND FITNESS FOR A PARTICULAR PURPOSE.
|
||||||
|
"""
|
||||||
|
|
||||||
|
__author__ = 'VMware, Inc.'
|
||||||
|
__copyright__ = 'Copyright 2016 VMware, Inc. All rights reserved.'
|
||||||
|
|
||||||
|
|
||||||
|
# Required to distribute different parts of this
|
||||||
|
# package as multiple distribution
|
||||||
|
try:
|
||||||
|
import pkg_resources
|
||||||
|
pkg_resources.declare_namespace(__name__)
|
||||||
|
except ImportError:
|
||||||
|
from pkgutil import extend_path
|
||||||
|
__path__ = extend_path(__path__, __name__) # @ReservedAssignment
|
@ -12,6 +12,9 @@
|
|||||||
* NON-INFRINGEMENT AND FITNESS FOR A PARTICULAR PURPOSE.
|
* NON-INFRINGEMENT AND FITNESS FOR A PARTICULAR PURPOSE.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
__author__ = 'VMware, Inc.'
|
||||||
|
__copyright__ = 'Copyright 2016 VMware, Inc. All rights reserved.'
|
||||||
|
|
||||||
from com.vmware.vcenter.vm.hardware.adapter_client import Sata
|
from com.vmware.vcenter.vm.hardware.adapter_client import Sata
|
||||||
from samples.vsphere.common import vapiconnect
|
from samples.vsphere.common import vapiconnect
|
||||||
from samples.vsphere.common.sample_util import pp, \
|
from samples.vsphere.common.sample_util import pp, \
|
||||||
|
@ -12,6 +12,9 @@
|
|||||||
* NON-INFRINGEMENT AND FITNESS FOR A PARTICULAR PURPOSE.
|
* NON-INFRINGEMENT AND FITNESS FOR A PARTICULAR PURPOSE.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
__author__ = 'VMware, Inc.'
|
||||||
|
__copyright__ = 'Copyright 2016 VMware, Inc. All rights reserved.'
|
||||||
|
|
||||||
from com.vmware.vcenter.vm.hardware.adapter_client import Scsi
|
from com.vmware.vcenter.vm.hardware.adapter_client import Scsi
|
||||||
from samples.vsphere.common import vapiconnect
|
from samples.vsphere.common import vapiconnect
|
||||||
from samples.vsphere.common.sample_util import pp, \
|
from samples.vsphere.common.sample_util import pp, \
|
||||||
|
@ -12,6 +12,9 @@
|
|||||||
* NON-INFRINGEMENT AND FITNESS FOR A PARTICULAR PURPOSE.
|
* NON-INFRINGEMENT AND FITNESS FOR A PARTICULAR PURPOSE.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
__author__ = 'VMware, Inc.'
|
||||||
|
__copyright__ = 'Copyright 2016 VMware, Inc. All rights reserved.'
|
||||||
|
|
||||||
from com.vmware.vcenter.vm.hardware_client import Boot
|
from com.vmware.vcenter.vm.hardware_client import Boot
|
||||||
from samples.vsphere.common import vapiconnect
|
from samples.vsphere.common import vapiconnect
|
||||||
from samples.vsphere.common.sample_util import parse_cli_args_vm
|
from samples.vsphere.common.sample_util import parse_cli_args_vm
|
||||||
|
@ -12,6 +12,9 @@
|
|||||||
* NON-INFRINGEMENT AND FITNESS FOR A PARTICULAR PURPOSE.
|
* NON-INFRINGEMENT AND FITNESS FOR A PARTICULAR PURPOSE.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
__author__ = 'VMware, Inc.'
|
||||||
|
__copyright__ = 'Copyright 2016 VMware, Inc. All rights reserved.'
|
||||||
|
|
||||||
from com.vmware.vcenter.vm.hardware.boot_client import Device as BootDevice
|
from com.vmware.vcenter.vm.hardware.boot_client import Device as BootDevice
|
||||||
from com.vmware.vcenter.vm.hardware_client import (Disk, Ethernet)
|
from com.vmware.vcenter.vm.hardware_client import (Disk, Ethernet)
|
||||||
from samples.vsphere.common import vapiconnect
|
from samples.vsphere.common import vapiconnect
|
||||||
|
@ -12,6 +12,9 @@
|
|||||||
* NON-INFRINGEMENT AND FITNESS FOR A PARTICULAR PURPOSE.
|
* NON-INFRINGEMENT AND FITNESS FOR A PARTICULAR PURPOSE.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
__author__ = 'VMware, Inc.'
|
||||||
|
__copyright__ = 'Copyright 2016 VMware, Inc. All rights reserved.'
|
||||||
|
|
||||||
from com.vmware.vcenter.vm.hardware.adapter_client import Sata
|
from com.vmware.vcenter.vm.hardware.adapter_client import Sata
|
||||||
from com.vmware.vcenter.vm.hardware_client import (Cdrom,
|
from com.vmware.vcenter.vm.hardware_client import (Cdrom,
|
||||||
IdeAddressSpec,
|
IdeAddressSpec,
|
||||||
|
@ -12,6 +12,9 @@
|
|||||||
* NON-INFRINGEMENT AND FITNESS FOR A PARTICULAR PURPOSE.
|
* NON-INFRINGEMENT AND FITNESS FOR A PARTICULAR PURPOSE.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
__author__ = 'VMware, Inc.'
|
||||||
|
__copyright__ = 'Copyright 2016 VMware, Inc. All rights reserved.'
|
||||||
|
|
||||||
from com.vmware.vcenter.vm.hardware_client import Cpu
|
from com.vmware.vcenter.vm.hardware_client import Cpu
|
||||||
from samples.vsphere.common import vapiconnect
|
from samples.vsphere.common import vapiconnect
|
||||||
from samples.vsphere.common.sample_util import parse_cli_args_vm
|
from samples.vsphere.common.sample_util import parse_cli_args_vm
|
||||||
|
@ -11,6 +11,10 @@
|
|||||||
* WARRANTIES OR CONDITIONS OF MERCHANTABILITY, SATISFACTORY QUALITY,
|
* WARRANTIES OR CONDITIONS OF MERCHANTABILITY, SATISFACTORY QUALITY,
|
||||||
* NON-INFRINGEMENT AND FITNESS FOR A PARTICULAR PURPOSE.
|
* NON-INFRINGEMENT AND FITNESS FOR A PARTICULAR PURPOSE.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
__author__ = 'VMware, Inc.'
|
||||||
|
__copyright__ = 'Copyright 2016 VMware, Inc. All rights reserved.'
|
||||||
|
|
||||||
import atexit
|
import atexit
|
||||||
|
|
||||||
from com.vmware.vcenter.vm.hardware.adapter_client import Sata
|
from com.vmware.vcenter.vm.hardware.adapter_client import Sata
|
||||||
|
@ -12,6 +12,9 @@
|
|||||||
* NON-INFRINGEMENT AND FITNESS FOR A PARTICULAR PURPOSE.
|
* NON-INFRINGEMENT AND FITNESS FOR A PARTICULAR PURPOSE.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
__author__ = 'VMware, Inc.'
|
||||||
|
__copyright__ = 'Copyright 2016 VMware, Inc. All rights reserved.'
|
||||||
|
|
||||||
from com.vmware.vcenter.vm.hardware_client import Ethernet
|
from com.vmware.vcenter.vm.hardware_client import Ethernet
|
||||||
from com.vmware.vcenter.vm_client import Power
|
from com.vmware.vcenter.vm_client import Power
|
||||||
from samples.vsphere.common import vapiconnect
|
from samples.vsphere.common import vapiconnect
|
||||||
|
@ -12,6 +12,9 @@
|
|||||||
* NON-INFRINGEMENT AND FITNESS FOR A PARTICULAR PURPOSE.
|
* NON-INFRINGEMENT AND FITNESS FOR A PARTICULAR PURPOSE.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
__author__ = 'VMware, Inc.'
|
||||||
|
__copyright__ = 'Copyright 2016 VMware, Inc. All rights reserved.'
|
||||||
|
|
||||||
from com.vmware.vcenter.vm.hardware_client import Floppy
|
from com.vmware.vcenter.vm.hardware_client import Floppy
|
||||||
from com.vmware.vcenter.vm_client import Power
|
from com.vmware.vcenter.vm_client import Power
|
||||||
from samples.vsphere.common import vapiconnect
|
from samples.vsphere.common import vapiconnect
|
||||||
|
@ -10,6 +10,9 @@
|
|||||||
* NON-INFRINGEMENT AND FITNESS FOR A PARTICULAR PURPOSE.
|
* NON-INFRINGEMENT AND FITNESS FOR A PARTICULAR PURPOSE.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
__author__ = 'VMware, Inc.'
|
||||||
|
__copyright__ = 'Copyright 2016 VMware, Inc. All rights reserved.'
|
||||||
|
|
||||||
import samples.vsphere.vcenter.vm.hardware.adapter.sata
|
import samples.vsphere.vcenter.vm.hardware.adapter.sata
|
||||||
import samples.vsphere.vcenter.vm.hardware.adapter.scsi
|
import samples.vsphere.vcenter.vm.hardware.adapter.scsi
|
||||||
import samples.vsphere.vcenter.vm.hardware.boot
|
import samples.vsphere.vcenter.vm.hardware.boot
|
||||||
|
@ -12,6 +12,9 @@
|
|||||||
* NON-INFRINGEMENT AND FITNESS FOR A PARTICULAR PURPOSE.
|
* NON-INFRINGEMENT AND FITNESS FOR A PARTICULAR PURPOSE.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
__author__ = 'VMware, Inc.'
|
||||||
|
__copyright__ = 'Copyright 2016 VMware, Inc. All rights reserved.'
|
||||||
|
|
||||||
from com.vmware.vcenter.vm.hardware_client import Memory
|
from com.vmware.vcenter.vm.hardware_client import Memory
|
||||||
from samples.vsphere.common import vapiconnect
|
from samples.vsphere.common import vapiconnect
|
||||||
from samples.vsphere.common.sample_util import parse_cli_args_vm
|
from samples.vsphere.common.sample_util import parse_cli_args_vm
|
||||||
|
@ -12,6 +12,9 @@
|
|||||||
* NON-INFRINGEMENT AND FITNESS FOR A PARTICULAR PURPOSE.
|
* NON-INFRINGEMENT AND FITNESS FOR A PARTICULAR PURPOSE.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
__author__ = 'VMware, Inc.'
|
||||||
|
__copyright__ = 'Copyright 2016 VMware, Inc. All rights reserved.'
|
||||||
|
|
||||||
from com.vmware.vcenter.vm.hardware_client import Parallel
|
from com.vmware.vcenter.vm.hardware_client import Parallel
|
||||||
from com.vmware.vcenter.vm_client import Power
|
from com.vmware.vcenter.vm_client import Power
|
||||||
from pyVim.connect import SmartConnect, Disconnect
|
from pyVim.connect import SmartConnect, Disconnect
|
||||||
|
@ -12,6 +12,9 @@
|
|||||||
* NON-INFRINGEMENT AND FITNESS FOR A PARTICULAR PURPOSE.
|
* NON-INFRINGEMENT AND FITNESS FOR A PARTICULAR PURPOSE.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
__author__ = 'VMware, Inc.'
|
||||||
|
__copyright__ = 'Copyright 2016 VMware, Inc. All rights reserved.'
|
||||||
|
|
||||||
from com.vmware.vcenter.vm.hardware_client import Serial
|
from com.vmware.vcenter.vm.hardware_client import Serial
|
||||||
from com.vmware.vcenter.vm_client import Power
|
from com.vmware.vcenter.vm_client import Power
|
||||||
from pyVim.connect import SmartConnect, Disconnect
|
from pyVim.connect import SmartConnect, Disconnect
|
||||||
|
@ -10,6 +10,9 @@
|
|||||||
* NON-INFRINGEMENT AND FITNESS FOR A PARTICULAR PURPOSE.
|
* NON-INFRINGEMENT AND FITNESS FOR A PARTICULAR PURPOSE.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
__author__ = 'VMware, Inc.'
|
||||||
|
__copyright__ = 'Copyright 2016 VMware, Inc. All rights reserved.'
|
||||||
|
|
||||||
import samples.vsphere.vcenter.helper.network_helper
|
import samples.vsphere.vcenter.helper.network_helper
|
||||||
import samples.vsphere.vcenter.vm.hardware.main
|
import samples.vsphere.vcenter.vm.hardware.main
|
||||||
import samples.vsphere.vcenter.vm.placement
|
import samples.vsphere.vcenter.vm.placement
|
||||||
|
@ -10,6 +10,9 @@
|
|||||||
* NON-INFRINGEMENT AND FITNESS FOR A PARTICULAR PURPOSE.
|
* NON-INFRINGEMENT AND FITNESS FOR A PARTICULAR PURPOSE.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
__author__ = 'VMware, Inc.'
|
||||||
|
__copyright__ = 'Copyright 2016 VMware, Inc. All rights reserved.'
|
||||||
|
|
||||||
from com.vmware.vcenter_client import (Cluster, Datastore, Folder, ResourcePool,
|
from com.vmware.vcenter_client import (Cluster, Datastore, Folder, ResourcePool,
|
||||||
VM)
|
VM)
|
||||||
|
|
||||||
|
@ -11,6 +11,10 @@
|
|||||||
* WARRANTIES OR CONDITIONS OF MERCHANTABILITY, SATISFACTORY QUALITY,
|
* WARRANTIES OR CONDITIONS OF MERCHANTABILITY, SATISFACTORY QUALITY,
|
||||||
* NON-INFRINGEMENT AND FITNESS FOR A PARTICULAR PURPOSE.
|
* NON-INFRINGEMENT AND FITNESS FOR A PARTICULAR PURPOSE.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
__author__ = 'VMware, Inc.'
|
||||||
|
__copyright__ = 'Copyright 2016 VMware, Inc. All rights reserved.'
|
||||||
|
|
||||||
import atexit
|
import atexit
|
||||||
|
|
||||||
from com.vmware.vcenter.vm_client import Power
|
from com.vmware.vcenter.vm_client import Power
|
||||||
|
Loading…
Reference in New Issue
Block a user