/* * Copyright (C) Alibaba Cloud Computing * All rights reserved. * * 版权所有 (C)阿里云计算有限公司 */ using System; using System.Collections.Generic; using Aliyun.OSS.Common.Communication; using Aliyun.OSS.Util; using Aliyun.OSS.Transform; namespace Aliyun.OSS.Commands { internal class GetBucketLoggingCommand : OssCommand { private readonly string _bucketName; protected override string Bucket { get { return _bucketName; } } private GetBucketLoggingCommand(IServiceClient client, Uri endpoint, ExecutionContext context, string bucketName, IDeserializer deserializer) : base(client, endpoint, context, deserializer) { OssUtils.CheckBucketName(bucketName); _bucketName = bucketName; } public static GetBucketLoggingCommand Create(IServiceClient client, Uri endpoint, ExecutionContext context, string bucketName) { return new GetBucketLoggingCommand(client, endpoint, context, bucketName, DeserializerFactory.GetFactory().CreateGetBucketLoggingResultDeserializer()); } protected override IDictionary Parameters { get { return new Dictionary() { { RequestParameters.SUBRESOURCE_LOGGING, null } }; } } } }