1+ <?php
2+ /**
3+ * Lavm
4+ *
5+ * @category Jdcloud
6+ * @package Jdcloud\Lavm
7+ * @author Jdcloud <jdcloud-api@jd.com>
8+ * @license Apache-2.0 http://www.apache.org/licenses/LICENSE-2.0
9+ * @link https://www.jdcloud.com/help/faq
10+ */
11+
12+ namespace Jdcloud \Lavm ;
13+
14+ use Jdcloud \JdCloudClient ;
15+ use Jdcloud \Api \Service ;
16+ use Jdcloud \Api \DocModel ;
17+ use Jdcloud \Api \ApiProvider ;
18+ use Jdcloud \PresignUrlMiddleware ;
19+
20+ /**
21+ * Client used to interact with lavm.
22+ *
23+ * @method \Jdcloud\Result describeDisks(array $args = [])
24+ * @method \GuzzleHttp\Promise\Promise describeDisksAsync(array $args = [])
25+ * @method \Jdcloud\Result describeFirewallRules(array $args = [])
26+ * @method \GuzzleHttp\Promise\Promise describeFirewallRulesAsync(array $args = [])
27+ * @method \Jdcloud\Result createFirewallRule(array $args = [])
28+ * @method \GuzzleHttp\Promise\Promise createFirewallRuleAsync(array $args = [])
29+ * @method \Jdcloud\Result modifyFirewallRule(array $args = [])
30+ * @method \GuzzleHttp\Promise\Promise modifyFirewallRuleAsync(array $args = [])
31+ * @method \Jdcloud\Result deleteFirewallRule(array $args = [])
32+ * @method \GuzzleHttp\Promise\Promise deleteFirewallRuleAsync(array $args = [])
33+ * @method \Jdcloud\Result describeImages(array $args = [])
34+ * @method \GuzzleHttp\Promise\Promise describeImagesAsync(array $args = [])
35+ * @method \Jdcloud\Result createCustomImage(array $args = [])
36+ * @method \GuzzleHttp\Promise\Promise createCustomImageAsync(array $args = [])
37+ * @method \Jdcloud\Result deleteCustomImage(array $args = [])
38+ * @method \GuzzleHttp\Promise\Promise deleteCustomImageAsync(array $args = [])
39+ * @method \Jdcloud\Result modifyImageAttribute(array $args = [])
40+ * @method \GuzzleHttp\Promise\Promise modifyImageAttributeAsync(array $args = [])
41+ * @method \Jdcloud\Result describeInstances(array $args = [])
42+ * @method \GuzzleHttp\Promise\Promise describeInstancesAsync(array $args = [])
43+ * @method \Jdcloud\Result createInstances(array $args = [])
44+ * @method \GuzzleHttp\Promise\Promise createInstancesAsync(array $args = [])
45+ * @method \Jdcloud\Result startInstance(array $args = [])
46+ * @method \GuzzleHttp\Promise\Promise startInstanceAsync(array $args = [])
47+ * @method \Jdcloud\Result stopInstance(array $args = [])
48+ * @method \GuzzleHttp\Promise\Promise stopInstanceAsync(array $args = [])
49+ * @method \Jdcloud\Result rebootInstance(array $args = [])
50+ * @method \GuzzleHttp\Promise\Promise rebootInstanceAsync(array $args = [])
51+ * @method \Jdcloud\Result describeInstanceVncUrl(array $args = [])
52+ * @method \GuzzleHttp\Promise\Promise describeInstanceVncUrlAsync(array $args = [])
53+ * @method \Jdcloud\Result resetSystem(array $args = [])
54+ * @method \GuzzleHttp\Promise\Promise resetSystemAsync(array $args = [])
55+ * @method \Jdcloud\Result updateInstanceAttribute(array $args = [])
56+ * @method \GuzzleHttp\Promise\Promise updateInstanceAttributeAsync(array $args = [])
57+ * @method \Jdcloud\Result describePlansCanUpgrade(array $args = [])
58+ * @method \GuzzleHttp\Promise\Promise describePlansCanUpgradeAsync(array $args = [])
59+ * @method \Jdcloud\Result upgradeInstance(array $args = [])
60+ * @method \GuzzleHttp\Promise\Promise upgradeInstanceAsync(array $args = [])
61+ * @method \Jdcloud\Result describeInstance(array $args = [])
62+ * @method \GuzzleHttp\Promise\Promise describeInstanceAsync(array $args = [])
63+ * @method \Jdcloud\Result describeInstancesTrafficPackages(array $args = [])
64+ * @method \GuzzleHttp\Promise\Promise describeInstancesTrafficPackagesAsync(array $args = [])
65+ * @method \Jdcloud\Result associateDomains(array $args = [])
66+ * @method \GuzzleHttp\Promise\Promise associateDomainsAsync(array $args = [])
67+ * @method \Jdcloud\Result disassociateDomains(array $args = [])
68+ * @method \GuzzleHttp\Promise\Promise disassociateDomainsAsync(array $args = [])
69+ * @method \Jdcloud\Result describeDomains(array $args = [])
70+ * @method \GuzzleHttp\Promise\Promise describeDomainsAsync(array $args = [])
71+ * @method \Jdcloud\Result describeKeypairs(array $args = [])
72+ * @method \GuzzleHttp\Promise\Promise describeKeypairsAsync(array $args = [])
73+ * @method \Jdcloud\Result createKeypair(array $args = [])
74+ * @method \GuzzleHttp\Promise\Promise createKeypairAsync(array $args = [])
75+ * @method \Jdcloud\Result importKeypair(array $args = [])
76+ * @method \GuzzleHttp\Promise\Promise importKeypairAsync(array $args = [])
77+ * @method \Jdcloud\Result deleteKeypair(array $args = [])
78+ * @method \GuzzleHttp\Promise\Promise deleteKeypairAsync(array $args = [])
79+ * @method \Jdcloud\Result attachKeypair(array $args = [])
80+ * @method \GuzzleHttp\Promise\Promise attachKeypairAsync(array $args = [])
81+ * @method \Jdcloud\Result detachKeypair(array $args = [])
82+ * @method \GuzzleHttp\Promise\Promise detachKeypairAsync(array $args = [])
83+ * @method \Jdcloud\Result describePlans(array $args = [])
84+ * @method \GuzzleHttp\Promise\Promise describePlansAsync(array $args = [])
85+ * @method \Jdcloud\Result describePlansSoldOutStatus(array $args = [])
86+ * @method \GuzzleHttp\Promise\Promise describePlansSoldOutStatusAsync(array $args = [])
87+ * @method \Jdcloud\Result queryQuota(array $args = [])
88+ * @method \GuzzleHttp\Promise\Promise queryQuotaAsync(array $args = [])
89+ */
90+ class LavmClient extends JdCloudClient
91+ {
92+ public function __construct (array $ args )
93+ {
94+ $ args ['with_resolved ' ] = function (array $ args ) {
95+ $ this ->getHandlerList ()->appendInit (
96+ PresignUrlMiddleware::wrap (
97+ $ this ,
98+ $ args ['endpoint_provider ' ],
99+ [
100+ 'operations ' => [
101+ ],
102+ 'service ' => 'lavm ' ,
103+ 'presign_param ' => 'PresignedUrl ' ,
104+ ]
105+ ),
106+ 'lavm '
107+ );
108+ };
109+
110+ parent ::__construct ($ args );
111+ }
112+ }
0 commit comments