<?php
/**
 * Containerregistry
 *
 * @category Jdcloud
 * @package  Jdcloud\Containerregistry
 * @author   Jdcloud <jdcloud-api@jd.com>
 * @license  Apache-2.0 http://www.apache.org/licenses/LICENSE-2.0
 * @link     https://www.jdcloud.com/help/faq
 */

namespace Jdcloud\Containerregistry;

use Jdcloud\JdCloudClient;
use Jdcloud\Api\Service;
use Jdcloud\Api\DocModel;
use Jdcloud\Api\ApiProvider;
use Jdcloud\PresignUrlMiddleware;

/**
 * Client used to interact with containerregistry.
 *
 * @method \Jdcloud\Result getAuthorizationToken(array $args = [])
 * @method \GuzzleHttp\Promise\Promise getAuthorizationTokenAsync(array $args = [])
 * @method \Jdcloud\Result describeAuthorizationTokens(array $args = [])
 * @method \GuzzleHttp\Promise\Promise describeAuthorizationTokensAsync(array $args = [])
 * @method \Jdcloud\Result releaseAuthorizationToken(array $args = [])
 * @method \GuzzleHttp\Promise\Promise releaseAuthorizationTokenAsync(array $args = [])
 * @method \Jdcloud\Result describeImages(array $args = [])
 * @method \GuzzleHttp\Promise\Promise describeImagesAsync(array $args = [])
 * @method \Jdcloud\Result deleteImage(array $args = [])
 * @method \GuzzleHttp\Promise\Promise deleteImageAsync(array $args = [])
 * @method \Jdcloud\Result describeQuotas(array $args = [])
 * @method \GuzzleHttp\Promise\Promise describeQuotasAsync(array $args = [])
 * @method \Jdcloud\Result describeRegistries(array $args = [])
 * @method \GuzzleHttp\Promise\Promise describeRegistriesAsync(array $args = [])
 * @method \Jdcloud\Result createRegistry(array $args = [])
 * @method \GuzzleHttp\Promise\Promise createRegistryAsync(array $args = [])
 * @method \Jdcloud\Result describeRegistry(array $args = [])
 * @method \GuzzleHttp\Promise\Promise describeRegistryAsync(array $args = [])
 * @method \Jdcloud\Result deleteRegistry(array $args = [])
 * @method \GuzzleHttp\Promise\Promise deleteRegistryAsync(array $args = [])
 * @method \Jdcloud\Result checkRegistryName(array $args = [])
 * @method \GuzzleHttp\Promise\Promise checkRegistryNameAsync(array $args = [])
 * @method \Jdcloud\Result createRepository(array $args = [])
 * @method \GuzzleHttp\Promise\Promise createRepositoryAsync(array $args = [])
 * @method \Jdcloud\Result describeRepositories(array $args = [])
 * @method \GuzzleHttp\Promise\Promise describeRepositoriesAsync(array $args = [])
 * @method \Jdcloud\Result deleteRepository(array $args = [])
 * @method \GuzzleHttp\Promise\Promise deleteRepositoryAsync(array $args = [])
 * @method \Jdcloud\Result checkRepositoryName(array $args = [])
 * @method \GuzzleHttp\Promise\Promise checkRepositoryNameAsync(array $args = [])
 */
class ContainerregistryClient extends JdCloudClient
{
    public function __construct(array $args)
    {
        $args['with_resolved'] = function (array $args) {
            $this->getHandlerList()->appendInit(
                PresignUrlMiddleware::wrap(
                    $this,
                    $args['endpoint_provider'],
                    [
                        'operations' => [
                        ],
                        'service' => 'containerregistry',
                        'presign_param' => 'PresignedUrl',
                    ]
                ),
                'containerregistry'
            );
        };

        parent::__construct($args);
    }
}