libcloud-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From to...@apache.org
Subject [2/2] git commit: Update script to support new image manegement API and re-generate the file.
Date Mon, 28 Apr 2014 12:12:52 GMT
Update script to support new image manegement API and re-generate the file.


Project: http://git-wip-us.apache.org/repos/asf/libcloud/repo
Commit: http://git-wip-us.apache.org/repos/asf/libcloud/commit/08d7d95d
Tree: http://git-wip-us.apache.org/repos/asf/libcloud/tree/08d7d95d
Diff: http://git-wip-us.apache.org/repos/asf/libcloud/diff/08d7d95d

Branch: refs/heads/trunk
Commit: 08d7d95dbe5e2d545b1d66a2744ae6adf4226a16
Parents: d2604af
Author: Tomaz Muraus <tomaz@apache.org>
Authored: Mon Apr 28 14:07:19 2014 +0200
Committer: Tomaz Muraus <tomaz@apache.org>
Committed: Mon Apr 28 14:12:36 2014 +0200

----------------------------------------------------------------------
 .../generate_provider_feature_matrix_table.py   |  15 ++-
 .../_supported_methods_image_management.rst     | 124 +++++++++----------
 2 files changed, 75 insertions(+), 64 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/libcloud/blob/08d7d95d/contrib/generate_provider_feature_matrix_table.py
----------------------------------------------------------------------
diff --git a/contrib/generate_provider_feature_matrix_table.py b/contrib/generate_provider_feature_matrix_table.py
index 6d93f7a..54ab7fe 100755
--- a/contrib/generate_provider_feature_matrix_table.py
+++ b/contrib/generate_provider_feature_matrix_table.py
@@ -47,6 +47,8 @@ BASE_API_METHODS = {
     'compute_main': ['list_nodes', 'create_node', 'reboot_node',
                      'destroy_node', 'list_images', 'list_sizes',
                      'deploy_node'],
+    'compute_image_management': ['list_images', 'get_image',
+                                 'create_image', 'delete_image', 'copy_image'],
     'compute_block_storage': ['list_volumes', 'create_volume',
                               'destroy_volume',
                               'attach_volume', 'detach_volume',
@@ -82,6 +84,13 @@ FRIENDLY_METHODS_NAMES = {
         'list_sizes': 'list sizes',
         'deploy_node': 'deploy node'
     },
+    'compute_image_management': {
+        'list_images': 'list images',
+        'get_image': 'get image',
+        'create_image': 'create image',
+        'copy_image': 'copy image',
+        'delete_image': 'delete image'
+    },
     'compute_block_storage': {
         'list_volumes': 'list volumes',
         'create_volume': 'create volume',
@@ -156,8 +165,8 @@ def get_provider_api_names(Provider):
 def generate_providers_table(api):
     result = {}
 
-    if api in ['compute_main', 'compute_block_storage',
-               'compute_key_pair_management']:
+    if api in ['compute_main', 'compute_image_management',
+               'compute_block_storage', 'compute_key_pair_management']:
         driver = NodeDriver
         drivers = COMPUTE_DRIVERS
         provider = ComputeProvider
@@ -354,6 +363,8 @@ def generate_tables():
 
         if api == 'compute_main':
             file_name_2 = '_supported_methods_main.rst'
+        elif api == 'compute_image_management':
+            file_name_2 = '_supported_methods_image_management.rst'
         elif api == 'compute_block_storage':
             file_name_2 = '_supported_methods_block_storage.rst'
         elif api == 'compute_key_pair_management':

http://git-wip-us.apache.org/repos/asf/libcloud/blob/08d7d95d/docs/compute/_supported_methods_image_management.rst
----------------------------------------------------------------------
diff --git a/docs/compute/_supported_methods_image_management.rst b/docs/compute/_supported_methods_image_management.rst
index 1e2d2c0..787d858 100644
--- a/docs/compute/_supported_methods_image_management.rst
+++ b/docs/compute/_supported_methods_image_management.rst
@@ -1,64 +1,64 @@
-===================================== ============ ============= ============== =============
=============
-Provider                              create image delete image  get image      list images
  copy image
-===================================== ============ ============= ============== =============
=============
-`Abiquo`_                             no           no            no             yes     
     no
-`Bluebox Blocks`_                     no           no            no             yes     
     no
-`Brightbox`_                          no           no            no             yes     
     no
-`CloudFrames`_                        no           no            no             yes     
     no
-`CloudSigma (API v2.0)`_              no           no            no             yes     
     no
-`CloudStack`_                         no           no            no             yes     
     no
-`Digital Ocean`_                      no           no            no             yes     
     no
-`Dreamhost`_                          no           no            no             yes     
     no
-`Amazon EC2`_                         yes          yes           yes            yes     
     yes
-`Amazon EC2 (ap-northeast-1)`_        yes          yes           yes            yes     
     yes
-`Amazon EC2 (ap-southeast-1)`_        yes          yes           yes            yes     
     yes
-`Amazon EC2 (ap-southeast-2)`_        yes          yes           yes            yes     
     yes
-`Amazon EC2 (eu-west-1)`_             yes          yes           yes            yes     
     yes
-`Amazon EC2 (eu-west-1)`_             yes          yes           yes            yes     
     yes
-`Amazon EC2 (sa-east-1)`_             yes          yes           yes            yes     
     yes
-`Amazon EC2`_                         yes          yes           yes            yes     
     yes
-`Amazon EC2 (us-west-1)`_             yes          yes           yes            yes     
     yes
-`Amazon EC2 (us-west-2)`_             yes          yes           yes            yes     
     yes
-`Enomaly Elastic Computing Platform`_ no           no            no             yes     
     no
-`ElasticHosts`_                       no           no            no             yes     
     no
-`ElasticHosts (syd-y)`_               no           no            no             yes     
     no
-`ElasticHosts (tor-p)`_               no           no            no             yes     
     no
-`ElasticHosts (cn-1)`_                no           no            no             yes     
     no
-`ElasticHosts (lon-p)`_               no           no            no             yes     
     no
-`ElasticHosts (lon-b)`_               no           no            no             yes     
     no
-`ElasticHosts (sat-p)`_               no           no            no             yes     
     no
-`ElasticHosts (lax-p)`_               no           no            no             yes     
     no
-`ElasticHosts (sjc-c)`_               no           no            no             yes     
     no
-`Eucalyptus`_                         yes          yes           yes            yes     
     yes
-`Exoscale`_                           no           no            no             no      
     no
-`Gandi`_                              no           no            no             yes     
     no
-`Google Compute Engine`_              no           no            no             yes     
     no
-`GoGrid`_                             no           no            no             yes     
     no
-`HostVirtual`_                        no           no            no             yes     
     no
-`IBM SmartCloud Enterprise`_          no           no            no             yes     
     no
-`Ikoula`_                             no           no            no             no      
     no
-`Joyent`_                             no           no            no             yes     
     no
-`KTUCloud`_                           no           no            no             yes     
     no
-`Libvirt`_                            no           no            no             no      
     no
-`Linode`_                             no           no            no             yes     
     no
-`NephoScale`_                         no           no            no             yes     
     no
-`Nimbus`_                             yes          yes           yes            yes     
     yes
-`Ninefold`_                           no           no            no             no      
     no
-`OpenNebula (v3.8)`_                  no           no            no             yes     
     no
-`OpenStack`_                          yes          yes           yes            yes     
     no
-`Opsource`_                           no           no            no             yes     
     no
-`Rackspace Cloud (Next Gen)`_         yes          yes           yes            yes     
     no
-`Rackspace Cloud (First Gen)`_        yes          yes           yes            yes     
     no
-`RimuHosting`_                        no           no            no             yes     
     no
-`ServerLove`_                         no           no            no             no      
     no
-`skalicloud`_                         no           no            no             no      
     no
-`SoftLayer`_                          no           no            no             yes     
     no
-`vCloud`_                             no           no            no             yes     
     no
-`VCL`_                                no           no            no             yes     
     no
-`vCloud`_                             no           no            no             yes     
     no
-`Voxel VoxCLOUD`_                     no           no            no             yes     
     no
-`vps.net`_                            no           no            no             yes     
     no
-===================================== ============ ============= ============== =============
=============
+===================================== =========== ========= ============ ============ ==========
+Provider                              list images get image create image delete image copy
image
+===================================== =========== ========= ============ ============ ==========
+`Abiquo`_                             yes         no        no           no           no
       
+`Bluebox Blocks`_                     yes         no        no           no           no
       
+`Brightbox`_                          yes         no        no           no           no
       
+`CloudFrames`_                        yes         no        no           no           no
       
+`CloudSigma (API v2.0)`_              yes         no        no           no           no
       
+`CloudStack`_                         yes         no        no           no           no
       
+`Digital Ocean`_                      yes         no        no           no           no
       
+`Dreamhost`_                          yes         no        no           no           no
       
+`Amazon EC2`_                         yes         yes       yes          yes          yes
      
+`Amazon EC2 (ap-northeast-1)`_        yes         yes       yes          yes          yes
      
+`Amazon EC2 (ap-southeast-1)`_        yes         yes       yes          yes          yes
      
+`Amazon EC2 (ap-southeast-2)`_        yes         yes       yes          yes          yes
      
+`Amazon EC2 (eu-west-1)`_             yes         yes       yes          yes          yes
      
+`Amazon EC2 (eu-west-1)`_             yes         yes       yes          yes          yes
      
+`Amazon EC2 (sa-east-1)`_             yes         yes       yes          yes          yes
      
+`Amazon EC2`_                         yes         yes       yes          yes          yes
      
+`Amazon EC2 (us-west-1)`_             yes         yes       yes          yes          yes
      
+`Amazon EC2 (us-west-2)`_             yes         yes       yes          yes          yes
      
+`Enomaly Elastic Computing Platform`_ yes         no        no           no           no
       
+`ElasticHosts`_                       yes         no        no           no           no
       
+`ElasticHosts (syd-y)`_               yes         no        no           no           no
       
+`ElasticHosts (tor-p)`_               yes         no        no           no           no
       
+`ElasticHosts (cn-1)`_                yes         no        no           no           no
       
+`ElasticHosts (lon-p)`_               yes         no        no           no           no
       
+`ElasticHosts (lon-b)`_               yes         no        no           no           no
       
+`ElasticHosts (sat-p)`_               yes         no        no           no           no
       
+`ElasticHosts (lax-p)`_               yes         no        no           no           no
       
+`ElasticHosts (sjc-c)`_               yes         no        no           no           no
       
+`Eucalyptus`_                         yes         yes       yes          yes          yes
      
+`Exoscale`_                           yes         no        no           no           no
       
+`Gandi`_                              yes         no        no           no           no
       
+`Google Compute Engine`_              yes         no        no           no           no
       
+`GoGrid`_                             yes         no        no           no           no
       
+`HostVirtual`_                        yes         no        no           no           no
       
+`IBM SmartCloud Enterprise`_          yes         no        yes          no           no
       
+`Ikoula`_                             yes         no        no           no           no
       
+`Joyent`_                             yes         no        no           no           no
       
+`KTUCloud`_                           yes         no        no           no           no
       
+`Libvirt`_                            no          no        no           no           no
       
+`Linode`_                             yes         no        no           no           no
       
+`NephoScale`_                         yes         no        no           no           no
       
+`Nimbus`_                             yes         yes       yes          yes          yes
      
+`Ninefold`_                           yes         no        no           no           no
       
+`OpenNebula (v3.8)`_                  yes         no        no           no           no
       
+`OpenStack`_                          yes         yes       no           no           no
       
+`Opsource`_                           yes         no        no           no           no
       
+`Rackspace Cloud (Next Gen)`_         yes         yes       yes          yes          no
       
+`Rackspace Cloud (First Gen)`_        yes         yes       yes          yes          no
       
+`RimuHosting`_                        yes         no        no           no           no
       
+`ServerLove`_                         yes         no        no           no           no
       
+`skalicloud`_                         yes         no        no           no           no
       
+`SoftLayer`_                          yes         no        no           no           no
       
+`vCloud`_                             yes         no        no           no           no
       
+`VCL`_                                yes         no        no           no           no
       
+`vCloud`_                             yes         no        no           no           no
       
+`Voxel VoxCLOUD`_                     yes         no        no           no           no
       
+`vps.net`_                            yes         no        no           no           no
       
+===================================== =========== ========= ============ ============ ==========
 
 .. _`Abiquo`: http://www.abiquo.com/
 .. _`Bluebox Blocks`: http://bluebox.net
@@ -116,4 +116,4 @@ Provider                              create image delete image  get image
 .. _`VCL`: http://incubator.apache.org/vcl/
 .. _`vCloud`: http://www.vmware.com/products/vcloud/
 .. _`Voxel VoxCLOUD`: http://www.voxel.net/
-.. _`vps.net`: http://vps.net/
\ No newline at end of file
+.. _`vps.net`: http://vps.net/


Mime
View raw message