1+ <?php
2+ /**
3+ * Cmp
4+ *
5+ * @category Jdcloud
6+ * @package Jdcloud\Cmp
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 \Cmp ;
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 cmp.
22+ *
23+ * @method \Jdcloud\Result describeMaintenancePolicies(array $args = [])
24+ * @method \GuzzleHttp\Promise\Promise describeMaintenancePoliciesAsync(array $args = [])
25+ * @method \Jdcloud\Result createMaintenancePolicy(array $args = [])
26+ * @method \GuzzleHttp\Promise\Promise createMaintenancePolicyAsync(array $args = [])
27+ * @method \Jdcloud\Result modifyMaintenancePolicy(array $args = [])
28+ * @method \GuzzleHttp\Promise\Promise modifyMaintenancePolicyAsync(array $args = [])
29+ * @method \Jdcloud\Result deleteMaintenancePolicy(array $args = [])
30+ * @method \GuzzleHttp\Promise\Promise deleteMaintenancePolicyAsync(array $args = [])
31+ * @method \Jdcloud\Result associateMaintenancePolicy(array $args = [])
32+ * @method \GuzzleHttp\Promise\Promise associateMaintenancePolicyAsync(array $args = [])
33+ * @method \Jdcloud\Result disassociateMaintenancePolicy(array $args = [])
34+ * @method \GuzzleHttp\Promise\Promise disassociateMaintenancePolicyAsync(array $args = [])
35+ * @method \Jdcloud\Result describeMaintenanceEvents(array $args = [])
36+ * @method \GuzzleHttp\Promise\Promise describeMaintenanceEventsAsync(array $args = [])
37+ * @method \Jdcloud\Result createCustomEventsOnResource(array $args = [])
38+ * @method \GuzzleHttp\Promise\Promise createCustomEventsOnResourceAsync(array $args = [])
39+ * @method \Jdcloud\Result modifyMaintenanceEvent(array $args = [])
40+ * @method \GuzzleHttp\Promise\Promise modifyMaintenanceEventAsync(array $args = [])
41+ * @method \Jdcloud\Result authorizeEvent(array $args = [])
42+ * @method \GuzzleHttp\Promise\Promise authorizeEventAsync(array $args = [])
43+ * @method \Jdcloud\Result recommendedInstanceTypes(array $args = [])
44+ * @method \GuzzleHttp\Promise\Promise recommendedInstanceTypesAsync(array $args = [])
45+ */
46+ class CmpClient extends JdCloudClient
47+ {
48+ public function __construct (array $ args )
49+ {
50+ $ args ['with_resolved ' ] = function (array $ args ) {
51+ $ this ->getHandlerList ()->appendInit (
52+ PresignUrlMiddleware::wrap (
53+ $ this ,
54+ $ args ['endpoint_provider ' ],
55+ [
56+ 'operations ' => [
57+ ],
58+ 'service ' => 'cmp ' ,
59+ 'presign_param ' => 'PresignedUrl ' ,
60+ ]
61+ ),
62+ 'cmp '
63+ );
64+ };
65+
66+ parent ::__construct ($ args );
67+ }
68+ }
0 commit comments