~juju-gui-charmers/charms/precise/juju-gui/trunk

« back to all changes in this revision

Viewing changes to server/guiserver/bundles/__init__.py

  • Committer: Francesco Banconi
  • Date: 2015-03-02 15:00:30 UTC
  • mfrom: (60.13.162 develop-trunk)
  • Revision ID: francesco.banconi@canonical.com-20150302150030-ya05a8fh7vxlezbr
Tags: 1.3.3
New charm release.

Show diffs side-by-side

added added

removed removed

Lines of Context:
30
30
      The following arguments are passed to the validate and import_bundle
31
31
      interface methods:
32
32
        - user: a guiserver.auth.User instance, representing a logged in user;
33
 
        - name: a string representing the name of the bundle to be imported;
 
33
        - name: a string representing the name of the bundle to be imported; in
 
34
          the case of v3 bundles, this will be the name of the bundle within
 
35
          the basket, in v4 bundles, this will be the bundle ID;
34
36
        - bundle: a YAML decoded object representing the bundle contents.
35
37
      The watch and next interface methods are used to retrieve information
36
38
      about the status of the currently started/scheduled deployments.
87
89
Importing a bundle.
88
90
-------------------
89
91
 
90
 
A deployment request looks like the following:
 
92
A v3 deployment request looks like the following:
91
93
 
92
94
    {
93
95
        'RequestId': 1,
100
102
        },
101
103
    }
102
104
 
 
105
A v4 deployment request looks like the following:
 
106
 
 
107
    {
 
108
        'RequestId': 1,
 
109
        'Type': 'Deployer',
 
110
        'Request': 'Import',
 
111
        'Params': {
 
112
            'Version': 4,
 
113
            'YAML': 'bundle',
 
114
            'BundleID': 'id'
 
115
        },
 
116
    }
 
117
 
103
118
In the request parameters above, the YAML field stores the YAML encoded
104
 
contents representing one or more bundles, and the Name field is the name of
105
 
the specific bundle (included in YAML) that must be deployed. The Name
106
 
parameter is optional in the case YAML includes only one bundle.  The BundleID
107
 
is optional and is used for incrementing the deployment counter in
108
 
Charmworld.
 
119
contents representing one (or more, in the case of v3 baskets) bundles, and the
 
120
Name field is the name of the specific bundle (included in YAML) that must be
 
121
deployed. The Name parameter is optional in the case YAML includes only one
 
122
bundle, or in the case of v4 bundles.  The BundleID is optional and is used for
 
123
incrementing the deployment counter in the charm store.
109
124
 
110
125
After receiving a deployment request, the DeployMiddleware sends a response
111
126
indicating whether or not the request has been accepted. This response is sent