├── .gitattributes ├── .gitignore ├── CloudFileExplorer.sln ├── CloudFileExplorer ├── CloudFileExplorer - Backup.csproj ├── CloudFileExplorer.csproj ├── DefaultServiceFactory.cs ├── Helper │ ├── DefaultCacheProvider.cs │ ├── IniHelper.cs │ ├── ListViewHelper.cs │ ├── ListViewNF.cs │ └── SystemFileHelper.cs ├── ICloudClient.cs ├── MainForm.Designer.cs ├── MainForm.cs ├── MainForm.resx ├── Model │ ├── FileInfoModel.cs │ ├── ProgressState.cs │ └── UploadArg.cs ├── OSSCloudClient.cs ├── Program.cs ├── Properties │ ├── Resources.Designer.cs │ └── Resources.resx ├── Resources │ ├── BrowseFolders.png │ └── BrowserUp.png ├── SureDialog.cs ├── SureDialog.designer.cs ├── SureDialog.resx └── setting.ini ├── OnceMi.AspNetCore.OSS ├── Interface │ ├── Base │ │ └── BaseOSSService.cs │ ├── ICacheProvider.cs │ ├── IOSSService.cs │ ├── IOSSServiceFactory.cs │ └── Service │ │ ├── IAliyunOSSService.cs │ │ ├── IHaweiOSSService.cs │ │ ├── IMinioOSSService.cs │ │ ├── IQCloudOSSService.cs │ │ └── IQiniuOSSService.cs ├── LICENSE ├── Models │ ├── Bucket.cs │ ├── BucketCorsRule.cs │ ├── DefaultOptionName.cs │ ├── Exceptions │ │ └── BucketExistException.cs │ ├── Huawei │ │ └── BucketStorageInfo.cs │ ├── Item.cs │ ├── ItemMeta.cs │ ├── ItemUploadInfo.cs │ ├── Owner.cs │ ├── Policy │ │ ├── AccessMode.cs │ │ ├── Principal.cs │ │ └── StatementItem.cs │ ├── PolicyInfo.cs │ ├── PresignedObjectType.cs │ ├── PresignedUrlCache.cs │ └── Qiniu │ │ ├── QiniuApi.cs │ │ ├── QiniuError.cs │ │ ├── QiniuFullBucketInfo.cs │ │ └── QiniuObjectMetadata.cs ├── OSSOptions.cs ├── OSSServiceExtensions.cs ├── OSSServiceFactory.cs ├── OnceMi.AspNetCore.OSS.csproj ├── Properties │ └── PublishProfiles │ │ └── FolderProfile.pubxml ├── SDK │ ├── HuaweiCloud │ │ ├── Enumerations.cs │ │ ├── Internal │ │ │ ├── Auth │ │ │ │ ├── AbstractSigner.cs │ │ │ │ ├── ObsSigner.cs │ │ │ │ ├── Signer.cs │ │ │ │ ├── V2Signer.cs │ │ │ │ └── V4Signer.cs │ │ │ ├── CommonParser.cs │ │ │ ├── CommonUtil.cs │ │ │ ├── Constants.cs │ │ │ ├── DownloadCheckPoint.cs │ │ │ ├── EnumAdaptor.cs │ │ │ ├── HttpClient.async.cs │ │ │ ├── HttpClient.cs │ │ │ ├── HttpContext.cs │ │ │ ├── HttpRequest.cs │ │ │ ├── HttpResponse.cs │ │ │ ├── HttpResponseHandler.cs │ │ │ ├── IConvertor.cs │ │ │ ├── IHeaders.cs │ │ │ ├── IParser.cs │ │ │ ├── Log │ │ │ │ └── LoggerMgr.cs │ │ │ ├── Negotiation │ │ │ │ ├── AuthTypeCache.cs │ │ │ │ ├── GetApiVersionRequest.cs │ │ │ │ ├── GetApiVersionResponse.cs │ │ │ │ └── LocksHolder.cs │ │ │ ├── ObsAsyncResult.cs │ │ │ ├── ObsCallback.cs │ │ │ ├── ObsConvertor.cs │ │ │ ├── ObsHeaders.cs │ │ │ ├── ObsParser.cs │ │ │ ├── SecurityProvider.cs │ │ │ ├── SimpleTransfer.cs │ │ │ ├── ThreadSafeTransfer.cs │ │ │ ├── UploadCheckPoint.cs │ │ │ ├── V2Convertor.cs │ │ │ ├── V2Headers.cs │ │ │ └── V2Parser.cs │ │ ├── Model │ │ │ ├── AbortMultipartUploadRequest.cs │ │ │ ├── AbortMultipartUploadResponse.cs │ │ │ ├── AbstractAccessControlList.cs │ │ │ ├── AccessControlList.cs │ │ │ ├── AppendObjectRequest.cs │ │ │ ├── AppendObjectResponse.cs │ │ │ ├── ByteRange.cs │ │ │ ├── CanonicalGrantee.cs │ │ │ ├── CompleteMultipartUploadRequest.cs │ │ │ ├── CompleteMultipartUploadResponse.cs │ │ │ ├── Condition.cs │ │ │ ├── CopyObjectRequest.cs │ │ │ ├── CopyObjectResponse.cs │ │ │ ├── CopyPartRequest.cs │ │ │ ├── CopyPartResponse.cs │ │ │ ├── CorsConfiguration.cs │ │ │ ├── CorsRule.cs │ │ │ ├── CreateBucketRequest.cs │ │ │ ├── CreateBucketResponse.cs │ │ │ ├── CreatePostSignatureRequest.cs │ │ │ ├── CreatePostSignatureResponse.cs │ │ │ ├── CreateTemporarySignatureRequest.cs │ │ │ ├── CreateTemporarySignatureResponse.cs │ │ │ ├── CreateV4PostSignatureResponse.cs │ │ │ ├── DeleteBucketCorsRequest.cs │ │ │ ├── DeleteBucketCorsResponse.cs │ │ │ ├── DeleteBucketLifecycleRequest.cs │ │ │ ├── DeleteBucketLifecycleResponse.cs │ │ │ ├── DeleteBucketPolicyRequest.cs │ │ │ ├── DeleteBucketPolicyResponse.cs │ │ │ ├── DeleteBucketReplicationRequest.cs │ │ │ ├── DeleteBucketReplicationResponse.cs │ │ │ ├── DeleteBucketRequest.cs │ │ │ ├── DeleteBucketResponse.cs │ │ │ ├── DeleteBucketTaggingRequest.cs │ │ │ ├── DeleteBucketTaggingResponse.cs │ │ │ ├── DeleteBucketWebsiteRequest.cs │ │ │ ├── DeleteBucketWebsiteResponse.cs │ │ │ ├── DeleteError.cs │ │ │ ├── DeleteObjectRequest.cs │ │ │ ├── DeleteObjectResponse.cs │ │ │ ├── DeleteObjectsRequest.cs │ │ │ ├── DeleteObjectsRequest.ext.cs │ │ │ ├── DeleteObjectsResponse.cs │ │ │ ├── DeletedObject.cs │ │ │ ├── DownloadFileRequest.cs │ │ │ ├── Expiration.cs │ │ │ ├── ExpirationDetail.cs │ │ │ ├── FilterRule.cs │ │ │ ├── FunctionGraphConfiguration.cs │ │ │ ├── GetBucketAclRequest.cs │ │ │ ├── GetBucketAclResponse.cs │ │ │ ├── GetBucketCorsRequest.cs │ │ │ ├── GetBucketCorsResponse.cs │ │ │ ├── GetBucketLifecycleRequest.cs │ │ │ ├── GetBucketLifecycleResponse.cs │ │ │ ├── GetBucketLocationRequest.cs │ │ │ ├── GetBucketLocationResponse.cs │ │ │ ├── GetBucketLoggingRequest.cs │ │ │ ├── GetBucketLoggingResponse.cs │ │ │ ├── GetBucketMetadataRequest.cs │ │ │ ├── GetBucketMetadataResponse.cs │ │ │ ├── GetBucketNotificationRequest.cs │ │ │ ├── GetBucketNotificationResponse.cs │ │ │ ├── GetBucketPolicyRequest.cs │ │ │ ├── GetBucketPolicyResponse.cs │ │ │ ├── GetBucketQuotaRequest.cs │ │ │ ├── GetBucketQuotaResponse.cs │ │ │ ├── GetBucketReplicationRequest.cs │ │ │ ├── GetBucketReplicationResponse.cs │ │ │ ├── GetBucketStorageInfoRequest.cs │ │ │ ├── GetBucketStorageInfoResponse.cs │ │ │ ├── GetBucketStoragePolicyRequest.cs │ │ │ ├── GetBucketStoragePolicyResponse.cs │ │ │ ├── GetBucketTaggingRequest.cs │ │ │ ├── GetBucketTaggingResponse.cs │ │ │ ├── GetBucketVersioningRequest.cs │ │ │ ├── GetBucketVersioningResponse.cs │ │ │ ├── GetBucketWebsiteRequest.cs │ │ │ ├── GetBucketWebsiteResponse.cs │ │ │ ├── GetObjectAclRequest.cs │ │ │ ├── GetObjectAclResponse.cs │ │ │ ├── GetObjectMetadataRequest.cs │ │ │ ├── GetObjectMetadataResponse.cs │ │ │ ├── GetObjectRequest.cs │ │ │ ├── GetObjectResponse.cs │ │ │ ├── Grant.cs │ │ │ ├── Grantee.cs │ │ │ ├── GroupGrantee.cs │ │ │ ├── HeadBucketRequest.cs │ │ │ ├── HeadObjectRequest.cs │ │ │ ├── InitiateMultipartUploadRequest.cs │ │ │ ├── InitiateMultipartUploadResponse.cs │ │ │ ├── Initiator.cs │ │ │ ├── KeyVersion.cs │ │ │ ├── LifecycleConfiguration.cs │ │ │ ├── LifecycleRule.cs │ │ │ ├── ListBucketsRequest.cs │ │ │ ├── ListBucketsResponse.cs │ │ │ ├── ListMultipartUploadsRequest.cs │ │ │ ├── ListMultipartUploadsResponse.cs │ │ │ ├── ListObjectsRequest.cs │ │ │ ├── ListObjectsResponse.cs │ │ │ ├── ListPartsRequest.cs │ │ │ ├── ListPartsResponse.cs │ │ │ ├── ListVersionsRequest.cs │ │ │ ├── ListVersionsResponse.cs │ │ │ ├── LoggingConfiguration.cs │ │ │ ├── MetadataCollection.cs │ │ │ ├── ModelEnumerations.cs │ │ │ ├── MultipartUpload.cs │ │ │ ├── NoncurrentVersionExpiration.cs │ │ │ ├── NoncurrentVersionTransition.cs │ │ │ ├── NotificationConfiguration.cs │ │ │ ├── ObsBucket.cs │ │ │ ├── ObsObject.cs │ │ │ ├── ObsObjectVersion.cs │ │ │ ├── Owner.cs │ │ │ ├── PartDetail.cs │ │ │ ├── PartEtag.cs │ │ │ ├── PutObjectBasicRequest.cs │ │ │ ├── PutObjectRequest.cs │ │ │ ├── PutObjectResponse.cs │ │ │ ├── Redirect.cs │ │ │ ├── RedirectBasic.cs │ │ │ ├── ReplicationConfiguration.cs │ │ │ ├── ReplicationRule.cs │ │ │ ├── ResponseHeaderOverrides.cs │ │ │ ├── RestoreObjectRequest.cs │ │ │ ├── RestoreObjectResponse.cs │ │ │ ├── RestoreStatus.cs │ │ │ ├── ResumableEvent.cs │ │ │ ├── ResumableUploadRequest.cs │ │ │ ├── RoutingRule.cs │ │ │ ├── SetBucketAclRequest.cs │ │ │ ├── SetBucketAclResponse.cs │ │ │ ├── SetBucketCorsRequest.cs │ │ │ ├── SetBucketCorsResponse.cs │ │ │ ├── SetBucketLifecycleRequest.cs │ │ │ ├── SetBucketLifecycleResponse.cs │ │ │ ├── SetBucketLoggingRequest.cs │ │ │ ├── SetBucketLoggingResponse.cs │ │ │ ├── SetBucketNotificationRequest.cs │ │ │ ├── SetBucketNotificationResponse.cs │ │ │ ├── SetBucketPolicyRequest.cs │ │ │ ├── SetBucketPolicyResponse.cs │ │ │ ├── SetBucketQuotaRequest.cs │ │ │ ├── SetBucketQuotaResponse.cs │ │ │ ├── SetBucketReplicationRequest.cs │ │ │ ├── SetBucketReplicationResponse.cs │ │ │ ├── SetBucketStoragePolicyRequest.cs │ │ │ ├── SetBucketStoragePolicyResponse.cs │ │ │ ├── SetBucketTaggingRequest.cs │ │ │ ├── SetBucketTaggingResponse.cs │ │ │ ├── SetBucketVersioningRequest.cs │ │ │ ├── SetBucketVersioningResponse.cs │ │ │ ├── SetBucketWebsiteRequest.cs │ │ │ ├── SetBucketWebsiteResponse.cs │ │ │ ├── SetObjectAclRequest.cs │ │ │ ├── SetObjectAclResponse.cs │ │ │ ├── SseCHeader.cs │ │ │ ├── SseHeader.cs │ │ │ ├── SseKmsHeader.cs │ │ │ ├── Tag.cs │ │ │ ├── TopicConfiguration.cs │ │ │ ├── TransferStatus.cs │ │ │ ├── Transition.cs │ │ │ ├── UploadFileRequest.cs │ │ │ ├── UploadPartRequest.cs │ │ │ ├── UploadPartResponse.cs │ │ │ ├── UploadStreamRequest.cs │ │ │ ├── VersioningConfiguration.cs │ │ │ └── WebsiteConfiguration.cs │ │ ├── ObsBucketWebServiceRequest.cs │ │ ├── ObsClient.buckets.async.cs │ │ ├── ObsClient.buckets.cs │ │ ├── ObsClient.common.async.cs │ │ ├── ObsClient.common.cs │ │ ├── ObsClient.objects.async.cs │ │ ├── ObsClient.objects.cs │ │ ├── ObsClient.resumable.cs │ │ ├── ObsClient.temporary.cs │ │ ├── ObsConfig.cs │ │ ├── ObsConfig.ext.cs │ │ ├── ObsException.cs │ │ ├── ObsWebServiceRequest.cs │ │ ├── ObsWebServiceResponse.cs │ │ └── ServiceException.cs │ └── Minio │ │ ├── AWSS3Endpoints.cs │ │ ├── ApiEndpoints │ │ ├── BucketOperations.cs │ │ ├── IBucketOperations.cs │ │ ├── IObjectOperations.cs │ │ └── ObjectOperations.cs │ │ ├── BucketRegionCache.cs │ │ ├── Credentials │ │ ├── AWSEnvironmentProvider.cs │ │ ├── AssumeRoleBaseProvider.cs │ │ ├── AssumeRoleProvider.cs │ │ ├── CertificateIdentityProvider.cs │ │ ├── ChainedProvider.cs │ │ ├── ECSCredentials.cs │ │ ├── EnvironmentProvider.cs │ │ ├── IAMAWSProvider.cs │ │ ├── IClientProvider.cs │ │ ├── JsonWebToken.cs │ │ ├── MinioEnvironmentProvider.cs │ │ ├── WebIdentityClientGrantsProvider.cs │ │ └── WebIdentityProvider.cs │ │ ├── DataModel │ │ ├── AccessCredentials.cs │ │ ├── Args.cs │ │ ├── Bucket.cs │ │ ├── BucketArgs.cs │ │ ├── BucketOperationsArgs.cs │ │ ├── BucketOperationsReponse.cs │ │ ├── BucketVersioningArgs.cs │ │ ├── BuilderUtil.cs │ │ ├── CopyConditions.cs │ │ ├── CopyObjectResult.cs │ │ ├── CopyPartResult.cs │ │ ├── CreateBucketConfiguration.cs │ │ ├── DeleteObject.cs │ │ ├── DeleteObjectsRequest.cs │ │ ├── DeleteObjectsResult.cs │ │ ├── DeletedObject.cs │ │ ├── EncryptionArgs.cs │ │ ├── GenericResponse.cs │ │ ├── ILM │ │ │ ├── AbortIncompleteMultipartUpload.cs │ │ │ ├── AndOperator.cs │ │ │ ├── Duration.cs │ │ │ ├── Expiration.cs │ │ │ ├── LifecycleConfiguration.cs │ │ │ ├── LifecycleRule.cs │ │ │ ├── NoncurrentVersionExpiration.cs │ │ │ ├── NoncurrentVersionTransition.cs │ │ │ ├── RuleFilter.cs │ │ │ └── Transition.cs │ │ ├── InitiateMultipartUploadResult.cs │ │ ├── Item.cs │ │ ├── ListAllMyBucketsResult.cs │ │ ├── ListBucketResult.cs │ │ ├── ListMultipartUploadsResult.cs │ │ ├── ListPartsResult.cs │ │ ├── ListVersionsResult.cs │ │ ├── MinioClientBuilder.cs │ │ ├── MinioNotification.cs │ │ ├── Notification │ │ │ ├── Arn.cs │ │ │ ├── BucketNotification.cs │ │ │ ├── EventType.cs │ │ │ ├── Filter.cs │ │ │ ├── FilterRule.cs │ │ │ ├── LambdaConfig.cs │ │ │ ├── NotificationConfiguration.cs │ │ │ ├── QueueConfig.cs │ │ │ ├── S3Key.cs │ │ │ └── TopicConfig.cs │ │ ├── ObjectArgs.cs │ │ ├── ObjectConditionalQueryArgs.cs │ │ ├── ObjectLock │ │ │ ├── DefaultRetention.cs │ │ │ ├── ObjectLegalHoldConfiguration.cs │ │ │ ├── ObjectLockConfiguration.cs │ │ │ ├── ObjectLockRule.cs │ │ │ └── ObjectRetentionConfiguration.cs │ │ ├── ObjectOperationsArgs.cs │ │ ├── ObjectOperationsResponse.cs │ │ ├── ObjectStat.cs │ │ ├── ObjectVersionArgs.cs │ │ ├── ObjectWriteArgs.cs │ │ ├── Part.cs │ │ ├── PostPolicy.cs │ │ ├── Prefix.cs │ │ ├── Replication │ │ │ ├── AccessControlTranslation.cs │ │ │ ├── AndOperator.cs │ │ │ ├── DeleteMarkerReplication.cs │ │ │ ├── DeleteReplication.cs │ │ │ ├── EncryptionConfiguration.cs │ │ │ ├── ExistingObjectReplication.cs │ │ │ ├── Metrics.cs │ │ │ ├── ReplicationConfiguration.cs │ │ │ ├── ReplicationDestination.cs │ │ │ ├── ReplicationRule.cs │ │ │ ├── ReplicationTime.cs │ │ │ ├── ReplicationTimeValue.cs │ │ │ ├── RuleFilter.cs │ │ │ ├── SourceSelectionCriteria.cs │ │ │ └── SseKmsEncryptedObjects.cs │ │ ├── Select │ │ │ ├── CSVFileHeaderInfo.cs │ │ │ ├── CSVInputOptions.cs │ │ │ ├── CSVOutputOptions.cs │ │ │ ├── CSVQuoteFields.cs │ │ │ ├── InputSerialization.cs │ │ │ ├── JSONInputOptions.cs │ │ │ ├── JSONOutputOptions.cs │ │ │ ├── JSONType.cs │ │ │ ├── MessageType.cs │ │ │ ├── OutputSerialization.cs │ │ │ ├── ParquetInputOptions.cs │ │ │ ├── ProgressMessage.cs │ │ │ ├── QueryExpressionType.cs │ │ │ ├── RequestProgress.cs │ │ │ ├── SelectCompressionType.cs │ │ │ ├── SelectEventType.cs │ │ │ ├── SelectObjectContentResponse.cs │ │ │ ├── SelectObjectInputSerialization.cs │ │ │ ├── SelectObjectOptions.cs │ │ │ ├── SelectObjectOutputSerialization.cs │ │ │ ├── SelectObjectType.cs │ │ │ ├── SelectResponseStream.cs │ │ │ └── StatsMessage.cs │ │ ├── ServerSideEncryption.cs │ │ ├── ServerSideEncryptionConfiguration.cs │ │ ├── ServerSideEncryptionConfigurationRule.cs │ │ ├── Tags │ │ │ ├── Tag.cs │ │ │ ├── TagSet.cs │ │ │ └── Tagging.cs │ │ ├── Tracing │ │ │ ├── RequestParameter.cs │ │ │ ├── RequestToLog.cs │ │ │ └── ResponseToLog.cs │ │ ├── Upload.cs │ │ └── VersioningConfiguration.cs │ │ ├── DefaultRequestLogger.cs │ │ ├── Exceptions │ │ ├── AccessDeniedException.cs │ │ ├── AuthorizationException.cs │ │ ├── BucketNotFoundException.cs │ │ ├── ConnectionException.cs │ │ ├── CredentialsProviderException.cs │ │ ├── DeleteError.cs │ │ ├── DeleteObjectException.cs │ │ ├── EmptyBucketOperation.cs │ │ ├── EntityTooLargeException.cs │ │ ├── ErrorResponse.cs │ │ ├── ErrorResponseException.cs │ │ ├── ForbiddenException.cs │ │ ├── InternalClientException.cs │ │ ├── InternalServerException.cs │ │ ├── InvalidBucketNameException.cs │ │ ├── InvalidContentLengthException.cs │ │ ├── InvalidEndpointException.cs │ │ ├── InvalidExpiryRangeException.cs │ │ ├── InvalidObjectNameException.cs │ │ ├── InvalidObjectPrefixException.cs │ │ ├── MalFormedXMLException.cs │ │ ├── MinioException.cs │ │ ├── MissingBucketReplicationConfigurationException.cs │ │ ├── MissingObjectLockConfigurationException.cs │ │ ├── ObjectNotFoundException.cs │ │ ├── RedirectionException.cs │ │ ├── SelectObjectContentException.cs │ │ ├── UnexpectedMinioException.cs │ │ ├── UnexpectedShortReadException.cs │ │ └── VersionDeletedException.cs │ │ ├── Helper │ │ ├── Constants.cs │ │ ├── Enum.cs │ │ ├── OperationsHelper.cs │ │ ├── RequestUtil.cs │ │ ├── s3utils.cs │ │ └── utils.cs │ │ ├── HttpRequestMessageBuilder.cs │ │ ├── IRequestLogger.cs │ │ ├── MinioClient.cs │ │ ├── Regions.cs │ │ ├── ResponseResult.cs │ │ └── V4Authenticator.cs ├── Services │ ├── AliyunOSSService.cs │ ├── HaweiOSSService.cs │ ├── MinioOSSService.cs │ ├── QCloudOSSService.cs │ └── QiniuOSSService.cs └── Utils │ ├── CacheProviders │ └── MemoryCacheProvider.cs │ ├── Encrypt.cs │ ├── JsonUtil.cs │ └── TimeUtil.cs ├── doc ├── 1.png └── 2.png ├── logo.ico ├── logo.png └── readme.md /.gitattributes: -------------------------------------------------------------------------------- 1 | # Auto detect text files and perform LF normalization 2 | * text=auto 3 | 4 | # Custom for Visual Studio 5 | *.cs diff=csharp 6 | *.sln merge=union 7 | *.csproj merge=union 8 | *.vbproj merge=union 9 | *.fsproj merge=union 10 | *.dbproj merge=union 11 | 12 | # Standard to msysgit 13 | *.doc diff=astextplain 14 | *.DOC diff=astextplain 15 | *.docx diff=astextplain 16 | *.DOCX diff=astextplain 17 | *.dot diff=astextplain 18 | *.DOT diff=astextplain 19 | *.pdf diff=astextplain 20 | *.PDF diff=astextplain 21 | *.rtf diff=astextplain 22 | *.RTF diff=astextplain 23 | -------------------------------------------------------------------------------- /CloudFileExplorer/Helper/DefaultCacheProvider.cs: -------------------------------------------------------------------------------- 1 | using Microsoft.Extensions.Caching.Memory; 2 | using OnceMi.AspNetCore.OSS; 3 | using System; 4 | using System.Collections.Generic; 5 | using System.Text; 6 | 7 | namespace CloudFileExplorer.Helper 8 | { 9 | public class DefaultCacheProvider : ICacheProvider 10 | { 11 | private readonly IMemoryCache _memoryCache=new MemoryCache(new MemoryCacheOptions()); 12 | public T Get(string key) where T : class 13 | { 14 | return _memoryCache.Get(key); 15 | } 16 | 17 | public void Remove(string key) 18 | { 19 | _memoryCache.Remove(key); 20 | } 21 | 22 | public void Set(string key, T value, TimeSpan ts) where T : class 23 | { 24 | _memoryCache.Set(key, value, ts); 25 | } 26 | } 27 | } 28 | -------------------------------------------------------------------------------- /CloudFileExplorer/Helper/ListViewNF.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Text; 4 | using System.Windows.Forms; 5 | 6 | namespace System.Windows.Forms 7 | { 8 | public class ListViewNF : ListView 9 | { 10 | public ListViewNF() 11 | { 12 | // 开启双缓冲 13 | this.SetStyle(ControlStyles.OptimizedDoubleBuffer | ControlStyles.AllPaintingInWmPaint, true); 14 | 15 | // Enable the OnNotifyMessage event so we get a chance to filter out 16 | // Windows messages before they get to the form's WndProc 17 | this.SetStyle(ControlStyles.EnableNotifyMessage, true); 18 | } 19 | 20 | protected override void OnNotifyMessage(Message m) 21 | { 22 | //Filter out the WM_ERASEBKGND message 23 | if (m.Msg != 0x14) 24 | { 25 | base.OnNotifyMessage(m); 26 | } 27 | 28 | } 29 | 30 | 31 | } 32 | } 33 | -------------------------------------------------------------------------------- /CloudFileExplorer/ICloudClient.cs: -------------------------------------------------------------------------------- 1 | using CloudFileExplorer.Model; 2 | using System; 3 | using System.Collections.Generic; 4 | using System.ComponentModel; 5 | using System.Text; 6 | 7 | namespace CloudFileExplorer 8 | { 9 | public interface ICloudClient 10 | { 11 | string BucketName { get; set; } 12 | 13 | bool Delete(string path, bool recursive); 14 | bool Exist(string path); 15 | List GetAllBucket(); 16 | FileInfoModel GetFileStatus(string path); 17 | List GetFlolderList(BackgroundWorker worker, string path); 18 | bool MakeDir(string path); 19 | List MoveFile(string[] sourcePath, string dectPath); 20 | void MutDownLoad(BackgroundWorker worker, string localRootPath, List fileList, int fileType); 21 | void MutUpload(BackgroundWorker worker, List localPath, string remoteRootPath, string localRootPath); 22 | bool ReName(string oldPath, string newPath); 23 | Tuple StatisticSize(string path); 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /CloudFileExplorer/Model/FileInfoModel.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Text; 4 | 5 | namespace CloudFileExplorer.Model 6 | { 7 | public class FileInfoModel 8 | { 9 | //路径 10 | public string Path { get; set; } 11 | 12 | //文件大小 13 | public long Size { get; set; } 14 | 15 | //是否为文件夹 16 | public bool Isdir { get; set; } 17 | 18 | //修改时间 19 | public long Modification_time { get; set; } 20 | 21 | //文件名 22 | public string FileName { get; set; } 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /CloudFileExplorer/Model/ProgressState.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Text; 4 | 5 | namespace CloudFileExplorer.Model 6 | { 7 | public class ProgressState 8 | { 9 | /// 10 | /// 消息内容 11 | /// 12 | public string ListBoxMsg { get; set; } 13 | /// 14 | /// 当前文件名 15 | /// 16 | public string CurrentTitle { get; set; } 17 | /// 18 | /// 总数 19 | /// 20 | public int totalCount { get; set; } 21 | /// 22 | /// 当前数 23 | /// 24 | public int CurrentCount { get; set; } 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /CloudFileExplorer/Model/UploadArg.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Text; 4 | 5 | namespace CloudFileExplorer.Model 6 | { 7 | public class UploadArg 8 | { 9 | public UploadArg() 10 | { 11 | FilePathList = new List(); 12 | } 13 | public List FilePathList { get; set; } 14 | public string LocalFileRoot { get; set; } 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /CloudFileExplorer/Program.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Threading.Tasks; 5 | using System.Windows.Forms; 6 | 7 | namespace CloudFileExplorer 8 | { 9 | static class Program 10 | { 11 | /// 12 | /// The main entry point for the application. 13 | /// 14 | [STAThread] 15 | static void Main() 16 | { 17 | Application.SetHighDpiMode(HighDpiMode.SystemAware); 18 | Application.EnableVisualStyles(); 19 | Application.SetCompatibleTextRenderingDefault(false); 20 | Application.Run(new MainForm()); 21 | } 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /CloudFileExplorer/Resources/BrowseFolders.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gudao/Cloud-File-Explorer/deb3cccdc4230f7dd76adfc6a7951163de295601/CloudFileExplorer/Resources/BrowseFolders.png -------------------------------------------------------------------------------- /CloudFileExplorer/Resources/BrowserUp.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gudao/Cloud-File-Explorer/deb3cccdc4230f7dd76adfc6a7951163de295601/CloudFileExplorer/Resources/BrowserUp.png -------------------------------------------------------------------------------- /CloudFileExplorer/setting.ini: -------------------------------------------------------------------------------- 1 |  2 | [Providers] 3 | Provider="Aliyun" ;Minio/Aliyun/QCloud/Qiniu/HuaweiCloud 4 | Endpoint ="oss-cn-beijing.aliyuncs.com" 5 | Region="cn-beijing" 6 | AccessKey="your key" 7 | SecretKey="your Secret" 8 | IsEnableCache="true" 9 | IsEnableHttps="false" 10 | 11 | -------------------------------------------------------------------------------- /OnceMi.AspNetCore.OSS/Interface/ICacheProvider.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace OnceMi.AspNetCore.OSS 4 | { 5 | public interface ICacheProvider 6 | { 7 | /// 8 | /// 移除Key 9 | /// 10 | /// 11 | void Remove(string key); 12 | 13 | /// 14 | /// 根据Key从缓存中获取对象 15 | /// 16 | /// 17 | T Get(string key) where T : class; 18 | 19 | /// 20 | /// 缓存对象 21 | /// 22 | /// 23 | /// 24 | /// 25 | /// 26 | void Set(string key, T value, TimeSpan ts) where T : class; 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /OnceMi.AspNetCore.OSS/Interface/IOSSServiceFactory.cs: -------------------------------------------------------------------------------- 1 | using Minio; 2 | 3 | namespace OnceMi.AspNetCore.OSS 4 | { 5 | public interface IOSSServiceFactory 6 | { 7 | IOSSService Create(); 8 | 9 | IOSSService Create(string name); 10 | } 11 | } -------------------------------------------------------------------------------- /OnceMi.AspNetCore.OSS/Interface/Service/IAliyunOSSService.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Text; 5 | using System.Threading.Tasks; 6 | 7 | namespace OnceMi.AspNetCore.OSS 8 | { 9 | public interface IAliyunOSSService : IOSSService 10 | { 11 | /// 12 | /// 获取储存桶地域 13 | /// 14 | /// 15 | /// 16 | Task GetBucketLocationAsync(string bucketName); 17 | 18 | /// 19 | /// 管理桶跨域访问 20 | /// 21 | /// 22 | /// 23 | /// 24 | Task SetBucketCorsRequestAsync(string bucketName, List rules); 25 | 26 | /// 27 | /// 获取桶外部访问URL 28 | /// 29 | /// 30 | /// 31 | Task GetBucketEndpointAsync(string bucketName); 32 | } 33 | } 34 | -------------------------------------------------------------------------------- /OnceMi.AspNetCore.OSS/Interface/Service/IMinioOSSService.cs: -------------------------------------------------------------------------------- 1 | using System.Collections.Generic; 2 | using System.Threading.Tasks; 3 | 4 | namespace OnceMi.AspNetCore.OSS 5 | { 6 | public interface IMinioOSSService : IOSSService 7 | { 8 | Task RemoveIncompleteUploadAsync(string bucketName, string objectName); 9 | 10 | Task> ListIncompleteUploads(string bucketName); 11 | 12 | Task GetPolicyAsync(string bucketName); 13 | 14 | Task SetPolicyAsync(string bucketName, List statements); 15 | 16 | Task RemovePolicyAsync(string bucketName); 17 | 18 | Task PolicyExistsAsync(string bucketName, StatementItem statement); 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /OnceMi.AspNetCore.OSS/Interface/Service/IQCloudOSSService.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Text; 5 | using System.Threading.Tasks; 6 | 7 | namespace OnceMi.AspNetCore.OSS 8 | { 9 | public interface IQCloudOSSService : IOSSService 10 | { 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /OnceMi.AspNetCore.OSS/Interface/Service/IQiniuOSSService.cs: -------------------------------------------------------------------------------- 1 |  2 | using System.Collections.Generic; 3 | using System.Threading.Tasks; 4 | 5 | namespace OnceMi.AspNetCore.OSS 6 | { 7 | public interface IQiniuOSSService : IOSSService 8 | { 9 | /// 10 | /// 获取储存桶信息 11 | /// 12 | /// 13 | /// 14 | Task GetBucketInfoAsync(string bucketName); 15 | 16 | /// 17 | /// 获取储存桶绑定域名 18 | /// 19 | /// 20 | /// 21 | Task> GetBucketDomainNameAsync(string bucketName); 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /OnceMi.AspNetCore.OSS/LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2020 oncemi 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /OnceMi.AspNetCore.OSS/Models/Bucket.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Globalization; 4 | using System.Text; 5 | 6 | namespace OnceMi.AspNetCore.OSS 7 | { 8 | public class Bucket 9 | { 10 | 11 | /// 12 | /// Bucket location getter/setter 13 | /// 14 | public string Location { get; internal set; } 15 | 16 | /// 17 | /// Bucket name getter/setter 18 | /// 19 | public string Name { get; internal set; } 20 | 21 | /// 22 | /// Bucket getter/setter 23 | /// 24 | public Owner Owner { get; internal set; } 25 | 26 | private DateTime _creationDate = DateTime.MinValue; 27 | 28 | /// 29 | /// Bucket creation time getter/setter 30 | /// 31 | public string CreationDate 32 | { 33 | get 34 | { 35 | return _creationDate.ToString("yyyy-MM-dd HH:mm:ss"); 36 | } 37 | internal set 38 | { 39 | if (DateTime.TryParse(value, out DateTime dt)) 40 | { 41 | _creationDate = dt; 42 | } 43 | _creationDate = DateTime.MinValue; 44 | } 45 | } 46 | } 47 | } 48 | -------------------------------------------------------------------------------- /OnceMi.AspNetCore.OSS/Models/BucketCorsRule.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Net.Http; 5 | using System.Text; 6 | using System.Threading.Tasks; 7 | 8 | namespace OnceMi.AspNetCore.OSS 9 | { 10 | public class BucketCorsRule 11 | { 12 | public string Origin { get; set; } 13 | 14 | public HttpMethod Method { get; set; } = HttpMethod.Post; 15 | 16 | public string AllowedHeader { get; set; } 17 | 18 | public string ExposeHeader { get; set; } 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /OnceMi.AspNetCore.OSS/Models/DefaultOptionName.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Text; 5 | using System.Threading.Tasks; 6 | 7 | namespace OnceMi.AspNetCore.OSS 8 | { 9 | public class DefaultOptionName 10 | { 11 | public const string Name = "default"; 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /OnceMi.AspNetCore.OSS/Models/Exceptions/BucketExistException.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Text; 5 | using System.Threading.Tasks; 6 | 7 | namespace OnceMi.AspNetCore.OSS 8 | { 9 | public class BucketExistException : Exception 10 | { 11 | public BucketExistException() 12 | { 13 | 14 | } 15 | 16 | public BucketExistException(string message) : base(message) 17 | { 18 | 19 | } 20 | 21 | public BucketExistException(string message, Exception innerException) : base(message, innerException) 22 | { 23 | 24 | } 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /OnceMi.AspNetCore.OSS/Models/Huawei/BucketStorageInfo.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Text; 4 | 5 | namespace OnceMi.AspNetCore.OSS.Models.Huawei 6 | { 7 | public class BucketStorageInfo 8 | { 9 | public long Size { get; internal set; } 10 | 11 | public long ObjectNumber { get; internal set; } 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /OnceMi.AspNetCore.OSS/Models/Item.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Text; 4 | 5 | namespace OnceMi.AspNetCore.OSS 6 | { 7 | public class Item 8 | { 9 | public string Key { get; internal set; } 10 | 11 | public string LastModified { get; internal set; } 12 | 13 | public string ETag { get; internal set; } 14 | 15 | public ulong Size { get; internal set; } 16 | 17 | public bool IsDir { get; internal set; } 18 | 19 | public string BucketName { get; internal set; } 20 | 21 | public string VersionId { get; set; } 22 | 23 | public DateTime? LastModifiedDateTime { get; internal set; } 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /OnceMi.AspNetCore.OSS/Models/ItemMeta.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Text; 4 | 5 | namespace OnceMi.AspNetCore.OSS 6 | { 7 | public class ItemMeta 8 | { 9 | public string ObjectName { get; internal set; } 10 | 11 | public long Size { get; internal set; } 12 | 13 | public DateTime LastModified { get; internal set; } 14 | 15 | public string ETag { get; internal set; } 16 | 17 | public string ContentType { get; internal set; } 18 | 19 | public bool IsEnableHttps { get; set; } 20 | 21 | public Dictionary MetaData { get; internal set; } 22 | 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /OnceMi.AspNetCore.OSS/Models/ItemUploadInfo.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Text; 4 | 5 | namespace OnceMi.AspNetCore.OSS 6 | { 7 | public class ItemUploadInfo 8 | { 9 | public string Key { get; set; } 10 | 11 | public string UploadId { get; set; } 12 | 13 | public string Initiated { get; set; } 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /OnceMi.AspNetCore.OSS/Models/Owner.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Text; 4 | 5 | namespace OnceMi.AspNetCore.OSS 6 | { 7 | public class Owner 8 | { 9 | public string Id { get; set; } 10 | 11 | public string Name { get; set; } 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /OnceMi.AspNetCore.OSS/Models/Policy/AccessMode.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Text; 5 | using System.Threading.Tasks; 6 | 7 | namespace OnceMi.AspNetCore.OSS 8 | { 9 | public enum AccessMode 10 | { 11 | Private = 0, 12 | 13 | PublicRead = 1, 14 | 15 | PublicReadWrite = 2, 16 | 17 | Default = 3 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /OnceMi.AspNetCore.OSS/Models/Policy/Principal.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Text; 4 | 5 | namespace OnceMi.AspNetCore.OSS 6 | { 7 | public class Principal 8 | { 9 | /// 10 | /// 11 | /// 12 | public List AWS { get; set; } 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /OnceMi.AspNetCore.OSS/Models/Policy/StatementItem.cs: -------------------------------------------------------------------------------- 1 | using Newtonsoft.Json; 2 | using System; 3 | using System.Collections.Generic; 4 | using System.Text; 5 | 6 | namespace OnceMi.AspNetCore.OSS 7 | { 8 | public class StatementItem 9 | { 10 | /// 11 | /// 12 | /// 13 | public string Effect { get; set; } 14 | 15 | /// 16 | /// 17 | /// 18 | public Principal Principal { get; set; } 19 | 20 | /// 21 | /// 22 | /// 23 | public List Action { get; set; } 24 | 25 | /// 26 | /// 27 | /// 28 | public List Resource { get; set; } 29 | 30 | /// 31 | /// 是否删除 32 | /// 33 | [JsonIgnore] 34 | public bool IsDelete { get; set; } = false; 35 | } 36 | } 37 | -------------------------------------------------------------------------------- /OnceMi.AspNetCore.OSS/Models/PolicyInfo.cs: -------------------------------------------------------------------------------- 1 | using System.Collections.Generic; 2 | 3 | namespace OnceMi.AspNetCore.OSS 4 | { 5 | public class PolicyInfo 6 | { 7 | /// 8 | /// 9 | /// 10 | public string Version { get; set; } 11 | 12 | /// 13 | /// 14 | /// 15 | public List Statement { get; set; } 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /OnceMi.AspNetCore.OSS/Models/PresignedObjectType.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Text; 5 | using System.Threading.Tasks; 6 | 7 | namespace OnceMi.AspNetCore.OSS 8 | { 9 | internal enum PresignedObjectType 10 | { 11 | Put, 12 | Get, 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /OnceMi.AspNetCore.OSS/Models/PresignedUrlCache.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Text; 4 | 5 | namespace OnceMi.AspNetCore.OSS 6 | { 7 | class PresignedUrlCache 8 | { 9 | public string Name { get; set; } 10 | 11 | public string BucketName { get; set; } 12 | 13 | public long CreateTime { get; set; } 14 | 15 | public string Url { get; set; } 16 | 17 | public PresignedObjectType Type { get; set; } 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /OnceMi.AspNetCore.OSS/Models/Qiniu/QiniuApi.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Text; 5 | using System.Threading.Tasks; 6 | 7 | namespace OnceMi.AspNetCore.OSS.Models.Qiniu 8 | { 9 | public class QiniuApi 10 | { 11 | public static string GetServiceApi(OSSOptions Options) 12 | { 13 | return $"{(Options.IsEnableHttps ? "https" : "http")}://uc.qbox.me"; 14 | } 15 | 16 | public static string GetBaseApi(string host, OSSOptions Options) 17 | { 18 | return $"{(Options.IsEnableHttps ? "https" : "http")}://{host}"; 19 | } 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /OnceMi.AspNetCore.OSS/Models/Qiniu/QiniuError.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Text; 5 | using System.Threading.Tasks; 6 | 7 | namespace OnceMi.AspNetCore.OSS.Models.Qiniu 8 | { 9 | class QiniuError 10 | { 11 | /// 12 | /// 13 | /// 14 | public string error { get; set; } 15 | 16 | /// 17 | /// 18 | /// 19 | public string error_code { get; set; } 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /OnceMi.AspNetCore.OSS/OSSOptions.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gudao/Cloud-File-Explorer/deb3cccdc4230f7dd76adfc6a7951163de295601/OnceMi.AspNetCore.OSS/OSSOptions.cs -------------------------------------------------------------------------------- /OnceMi.AspNetCore.OSS/OSSServiceExtensions.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gudao/Cloud-File-Explorer/deb3cccdc4230f7dd76adfc6a7951163de295601/OnceMi.AspNetCore.OSS/OSSServiceExtensions.cs -------------------------------------------------------------------------------- /OnceMi.AspNetCore.OSS/OSSServiceFactory.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gudao/Cloud-File-Explorer/deb3cccdc4230f7dd76adfc6a7951163de295601/OnceMi.AspNetCore.OSS/OSSServiceFactory.cs -------------------------------------------------------------------------------- /OnceMi.AspNetCore.OSS/Properties/PublishProfiles/FolderProfile.pubxml: -------------------------------------------------------------------------------- 1 |  2 | 5 | 6 | 7 | Release 8 | Any CPU 9 | bin\Release\publish\ 10 | FileSystem 11 | 12 | -------------------------------------------------------------------------------- /OnceMi.AspNetCore.OSS/SDK/HuaweiCloud/Internal/Auth/ObsSigner.cs: -------------------------------------------------------------------------------- 1 | /*---------------------------------------------------------------------------------- 2 | // Copyright 2019 Huawei Technologies Co.,Ltd. 3 | // Licensed under the Apache License, Version 2.0 (the "License"); you may not use 4 | // this file except in compliance with the License. You may obtain a copy of the 5 | // License at 6 | // 7 | // http://www.apache.org/licenses/LICENSE-2.0 8 | // 9 | // Unless required by applicable law or agreed to in writing, software distributed 10 | // under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR 11 | // CONDITIONS OF ANY KIND, either express or implied. See the License for the 12 | // specific language governing permissions and limitations under the License. 13 | //----------------------------------------------------------------------------------*/ 14 | using System; 15 | using System.Collections.Generic; 16 | using System.Text; 17 | 18 | namespace OBS.Internal.Auth 19 | { 20 | internal class ObsSigner : AbstractSigner 21 | { 22 | 23 | private static ObsSigner instance = new ObsSigner(); 24 | 25 | private ObsSigner() 26 | { 27 | 28 | } 29 | 30 | public static Signer GetInstance() 31 | { 32 | return instance; 33 | } 34 | 35 | protected override string GetAuthPrefix() 36 | { 37 | return "OBS"; 38 | } 39 | } 40 | } 41 | -------------------------------------------------------------------------------- /OnceMi.AspNetCore.OSS/SDK/HuaweiCloud/Internal/Auth/V2Signer.cs: -------------------------------------------------------------------------------- 1 | /*---------------------------------------------------------------------------------- 2 | // Copyright 2019 Huawei Technologies Co.,Ltd. 3 | // Licensed under the Apache License, Version 2.0 (the "License"); you may not use 4 | // this file except in compliance with the License. You may obtain a copy of the 5 | // License at 6 | // 7 | // http://www.apache.org/licenses/LICENSE-2.0 8 | // 9 | // Unless required by applicable law or agreed to in writing, software distributed 10 | // under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR 11 | // CONDITIONS OF ANY KIND, either express or implied. See the License for the 12 | // specific language governing permissions and limitations under the License. 13 | //----------------------------------------------------------------------------------*/ 14 | namespace OBS.Internal.Auth 15 | { 16 | internal class V2Signer : AbstractSigner 17 | { 18 | 19 | private static V2Signer instance = new V2Signer(); 20 | 21 | private V2Signer() 22 | { 23 | 24 | } 25 | 26 | public static Signer GetInstance() 27 | { 28 | return instance; 29 | } 30 | 31 | protected override string GetAuthPrefix() 32 | { 33 | return "AWS"; 34 | } 35 | 36 | } 37 | } 38 | -------------------------------------------------------------------------------- /OnceMi.AspNetCore.OSS/SDK/HuaweiCloud/Internal/Negotiation/GetApiVersionRequest.cs: -------------------------------------------------------------------------------- 1 | /*---------------------------------------------------------------------------------- 2 | // Copyright 2019 Huawei Technologies Co.,Ltd. 3 | // Licensed under the Apache License, Version 2.0 (the "License"); you may not use 4 | // this file except in compliance with the License. You may obtain a copy of the 5 | // License at 6 | // 7 | // http://www.apache.org/licenses/LICENSE-2.0 8 | // 9 | // Unless required by applicable law or agreed to in writing, software distributed 10 | // under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR 11 | // CONDITIONS OF ANY KIND, either express or implied. See the License for the 12 | // specific language governing permissions and limitations under the License. 13 | //----------------------------------------------------------------------------------*/ 14 | using System; 15 | using System.Collections.Generic; 16 | using System.Text; 17 | 18 | namespace OBS.Internal.Negotiation 19 | { 20 | internal class GetApiVersionRequest : ObsWebServiceRequest 21 | { 22 | internal override string GetAction() 23 | { 24 | return "GetApiVersion"; 25 | } 26 | 27 | public string BucketName 28 | { 29 | get; 30 | set; 31 | } 32 | } 33 | } 34 | -------------------------------------------------------------------------------- /OnceMi.AspNetCore.OSS/SDK/HuaweiCloud/Internal/Negotiation/GetApiVersionResponse.cs: -------------------------------------------------------------------------------- 1 | /*---------------------------------------------------------------------------------- 2 | // Copyright 2019 Huawei Technologies Co.,Ltd. 3 | // Licensed under the Apache License, Version 2.0 (the "License"); you may not use 4 | // this file except in compliance with the License. You may obtain a copy of the 5 | // License at 6 | // 7 | // http://www.apache.org/licenses/LICENSE-2.0 8 | // 9 | // Unless required by applicable law or agreed to in writing, software distributed 10 | // under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR 11 | // CONDITIONS OF ANY KIND, either express or implied. See the License for the 12 | // specific language governing permissions and limitations under the License. 13 | //----------------------------------------------------------------------------------*/ 14 | using System; 15 | using System.Collections.Generic; 16 | using System.Text; 17 | 18 | namespace OBS.Internal.Negotiation 19 | { 20 | class GetApiVersionResponse : ObsWebServiceResponse 21 | { 22 | 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /OnceMi.AspNetCore.OSS/SDK/HuaweiCloud/Internal/ObsCallback.cs: -------------------------------------------------------------------------------- 1 | /*---------------------------------------------------------------------------------- 2 | // Copyright 2019 Huawei Technologies Co.,Ltd. 3 | // Licensed under the Apache License, Version 2.0 (the "License"); you may not use 4 | // this file except in compliance with the License. You may obtain a copy of the 5 | // License at 6 | // 7 | // http://www.apache.org/licenses/LICENSE-2.0 8 | // 9 | // Unless required by applicable law or agreed to in writing, software distributed 10 | // under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR 11 | // CONDITIONS OF ANY KIND, either express or implied. See the License for the 12 | // specific language governing permissions and limitations under the License. 13 | //----------------------------------------------------------------------------------*/ 14 | using System; 15 | using System.Collections.Generic; 16 | using System.Text; 17 | 18 | namespace OBS.Internal 19 | { 20 | internal delegate void ObsCallback(); 21 | } 22 | -------------------------------------------------------------------------------- /OnceMi.AspNetCore.OSS/SDK/HuaweiCloud/Internal/SecurityProvider.cs: -------------------------------------------------------------------------------- 1 | /*---------------------------------------------------------------------------------- 2 | // Copyright 2019 Huawei Technologies Co.,Ltd. 3 | // Licensed under the Apache License, Version 2.0 (the "License"); you may not use 4 | // this file except in compliance with the License. You may obtain a copy of the 5 | // License at 6 | // 7 | // http://www.apache.org/licenses/LICENSE-2.0 8 | // 9 | // Unless required by applicable law or agreed to in writing, software distributed 10 | // under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR 11 | // CONDITIONS OF ANY KIND, either express or implied. See the License for the 12 | // specific language governing permissions and limitations under the License. 13 | //----------------------------------------------------------------------------------*/ 14 | using System; 15 | using System.Collections.Generic; 16 | using System.Text; 17 | 18 | namespace OBS.Internal 19 | { 20 | internal class SecurityProvider 21 | { 22 | public string Ak 23 | { 24 | get; 25 | set; 26 | } 27 | 28 | public string Sk 29 | { 30 | get; 31 | set; 32 | } 33 | 34 | public string Token 35 | { 36 | get; 37 | set; 38 | } 39 | } 40 | } 41 | -------------------------------------------------------------------------------- /OnceMi.AspNetCore.OSS/SDK/HuaweiCloud/Model/AbortMultipartUploadResponse.cs: -------------------------------------------------------------------------------- 1 | /*---------------------------------------------------------------------------------- 2 | // Copyright 2019 Huawei Technologies Co.,Ltd. 3 | // Licensed under the Apache License, Version 2.0 (the "License"); you may not use 4 | // this file except in compliance with the License. You may obtain a copy of the 5 | // License at 6 | // 7 | // http://www.apache.org/licenses/LICENSE-2.0 8 | // 9 | // Unless required by applicable law or agreed to in writing, software distributed 10 | // under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR 11 | // CONDITIONS OF ANY KIND, either express or implied. See the License for the 12 | // specific language governing permissions and limitations under the License. 13 | //----------------------------------------------------------------------------------*/ 14 | 15 | namespace OBS.Model 16 | { 17 | /// 18 | /// Response to a request for aborting a multipart upload 19 | /// 20 | public class AbortMultipartUploadResponse : ObsWebServiceResponse 21 | { 22 | } 23 | } 24 | 25 | 26 | 27 | 28 | -------------------------------------------------------------------------------- /OnceMi.AspNetCore.OSS/SDK/HuaweiCloud/Model/CreateBucketResponse.cs: -------------------------------------------------------------------------------- 1 | /*---------------------------------------------------------------------------------- 2 | // Copyright 2019 Huawei Technologies Co.,Ltd. 3 | // Licensed under the Apache License, Version 2.0 (the "License"); you may not use 4 | // this file except in compliance with the License. You may obtain a copy of the 5 | // License at 6 | // 7 | // http://www.apache.org/licenses/LICENSE-2.0 8 | // 9 | // Unless required by applicable law or agreed to in writing, software distributed 10 | // under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR 11 | // CONDITIONS OF ANY KIND, either express or implied. See the License for the 12 | // specific language governing permissions and limitations under the License. 13 | //----------------------------------------------------------------------------------*/ 14 | namespace OBS.Model 15 | { 16 | /// 17 | /// Response to a bucket creation request 18 | /// 19 | public class CreateBucketResponse : ObsWebServiceResponse 20 | { 21 | 22 | } 23 | } 24 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /OnceMi.AspNetCore.OSS/SDK/HuaweiCloud/Model/CreatePostSignatureResponse.cs: -------------------------------------------------------------------------------- 1 | /*---------------------------------------------------------------------------------- 2 | // Copyright 2019 Huawei Technologies Co.,Ltd. 3 | // Licensed under the Apache License, Version 2.0 (the "License"); you may not use 4 | // this file except in compliance with the License. You may obtain a copy of the 5 | // License at 6 | // 7 | // http://www.apache.org/licenses/LICENSE-2.0 8 | // 9 | // Unless required by applicable law or agreed to in writing, software distributed 10 | // under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR 11 | // CONDITIONS OF ANY KIND, either express or implied. See the License for the 12 | // specific language governing permissions and limitations under the License. 13 | //----------------------------------------------------------------------------------*/ 14 | using System; 15 | using System.Collections.Generic; 16 | 17 | namespace OBS.Model 18 | { 19 | /// 20 | /// Response to a browser-based authentication request 21 | /// 22 | public class CreatePostSignatureResponse 23 | { 24 | 25 | /// 26 | /// Signature string, which is set in the form 27 | /// 28 | public string Signature 29 | { 30 | get; 31 | internal set; 32 | } 33 | 34 | } 35 | } 36 | 37 | 38 | 39 | -------------------------------------------------------------------------------- /OnceMi.AspNetCore.OSS/SDK/HuaweiCloud/Model/DeleteBucketCorsRequest.cs: -------------------------------------------------------------------------------- 1 | /*---------------------------------------------------------------------------------- 2 | // Copyright 2019 Huawei Technologies Co.,Ltd. 3 | // Licensed under the Apache License, Version 2.0 (the "License"); you may not use 4 | // this file except in compliance with the License. You may obtain a copy of the 5 | // License at 6 | // 7 | // http://www.apache.org/licenses/LICENSE-2.0 8 | // 9 | // Unless required by applicable law or agreed to in writing, software distributed 10 | // under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR 11 | // CONDITIONS OF ANY KIND, either express or implied. See the License for the 12 | // specific language governing permissions and limitations under the License. 13 | //----------------------------------------------------------------------------------*/ 14 | 15 | namespace OBS.Model 16 | { 17 | /// 18 | /// Parameters in a request for deleting bucket CORS configuration 19 | /// 20 | public class DeleteBucketCorsRequest : ObsBucketWebServiceRequest 21 | { 22 | 23 | internal override string GetAction() 24 | { 25 | return "DeleteBucketCors"; 26 | } 27 | 28 | } 29 | } 30 | 31 | 32 | 33 | -------------------------------------------------------------------------------- /OnceMi.AspNetCore.OSS/SDK/HuaweiCloud/Model/DeleteBucketCorsResponse.cs: -------------------------------------------------------------------------------- 1 | /*---------------------------------------------------------------------------------- 2 | // Copyright 2019 Huawei Technologies Co.,Ltd. 3 | // Licensed under the Apache License, Version 2.0 (the "License"); you may not use 4 | // this file except in compliance with the License. You may obtain a copy of the 5 | // License at 6 | // 7 | // http://www.apache.org/licenses/LICENSE-2.0 8 | // 9 | // Unless required by applicable law or agreed to in writing, software distributed 10 | // under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR 11 | // CONDITIONS OF ANY KIND, either express or implied. See the License for the 12 | // specific language governing permissions and limitations under the License. 13 | //----------------------------------------------------------------------------------*/ 14 | 15 | namespace OBS.Model 16 | { 17 | /// 18 | /// Response to a request for deleting bucket CORS configuration 19 | /// 20 | public class DeleteBucketCorsResponse : ObsWebServiceResponse 21 | { 22 | } 23 | } 24 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /OnceMi.AspNetCore.OSS/SDK/HuaweiCloud/Model/DeleteBucketLifecycleRequest.cs: -------------------------------------------------------------------------------- 1 | /*---------------------------------------------------------------------------------- 2 | // Copyright 2019 Huawei Technologies Co.,Ltd. 3 | // Licensed under the Apache License, Version 2.0 (the "License"); you may not use 4 | // this file except in compliance with the License. You may obtain a copy of the 5 | // License at 6 | // 7 | // http://www.apache.org/licenses/LICENSE-2.0 8 | // 9 | // Unless required by applicable law or agreed to in writing, software distributed 10 | // under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR 11 | // CONDITIONS OF ANY KIND, either express or implied. See the License for the 12 | // specific language governing permissions and limitations under the License. 13 | //----------------------------------------------------------------------------------*/ 14 | 15 | namespace OBS.Model 16 | { 17 | /// 18 | /// Parameters in a request for deleting bucket lifecycle rules 19 | /// 20 | public class DeleteBucketLifecycleRequest : ObsBucketWebServiceRequest 21 | { 22 | 23 | internal override string GetAction() 24 | { 25 | return "DeleteLifecycle"; 26 | } 27 | 28 | } 29 | } 30 | 31 | 32 | 33 | -------------------------------------------------------------------------------- /OnceMi.AspNetCore.OSS/SDK/HuaweiCloud/Model/DeleteBucketLifecycleResponse.cs: -------------------------------------------------------------------------------- 1 | /*---------------------------------------------------------------------------------- 2 | // Copyright 2019 Huawei Technologies Co.,Ltd. 3 | // Licensed under the Apache License, Version 2.0 (the "License"); you may not use 4 | // this file except in compliance with the License. You may obtain a copy of the 5 | // License at 6 | // 7 | // http://www.apache.org/licenses/LICENSE-2.0 8 | // 9 | // Unless required by applicable law or agreed to in writing, software distributed 10 | // under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR 11 | // CONDITIONS OF ANY KIND, either express or implied. See the License for the 12 | // specific language governing permissions and limitations under the License. 13 | //----------------------------------------------------------------------------------*/ 14 | 15 | namespace OBS.Model 16 | { 17 | /// 18 | /// Response to a request for deleting bucket lifecycle rules 19 | /// 20 | public class DeleteBucketLifecycleResponse : ObsWebServiceResponse 21 | { 22 | } 23 | } 24 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /OnceMi.AspNetCore.OSS/SDK/HuaweiCloud/Model/DeleteBucketPolicyRequest.cs: -------------------------------------------------------------------------------- 1 | /*---------------------------------------------------------------------------------- 2 | // Copyright 2019 Huawei Technologies Co.,Ltd. 3 | // Licensed under the Apache License, Version 2.0 (the "License"); you may not use 4 | // this file except in compliance with the License. You may obtain a copy of the 5 | // License at 6 | // 7 | // http://www.apache.org/licenses/LICENSE-2.0 8 | // 9 | // Unless required by applicable law or agreed to in writing, software distributed 10 | // under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR 11 | // CONDITIONS OF ANY KIND, either express or implied. See the License for the 12 | // specific language governing permissions and limitations under the License. 13 | //----------------------------------------------------------------------------------*/ 14 | 15 | namespace OBS.Model 16 | { 17 | /// 18 | /// Parameters in a request for deleting bucket policies 19 | /// 20 | public partial class DeleteBucketPolicyRequest : ObsBucketWebServiceRequest 21 | { 22 | 23 | internal override string GetAction() 24 | { 25 | return "DeleteBucketPolicy"; 26 | } 27 | 28 | } 29 | } 30 | 31 | 32 | 33 | -------------------------------------------------------------------------------- /OnceMi.AspNetCore.OSS/SDK/HuaweiCloud/Model/DeleteBucketPolicyResponse.cs: -------------------------------------------------------------------------------- 1 | /*---------------------------------------------------------------------------------- 2 | // Copyright 2019 Huawei Technologies Co.,Ltd. 3 | // Licensed under the Apache License, Version 2.0 (the "License"); you may not use 4 | // this file except in compliance with the License. You may obtain a copy of the 5 | // License at 6 | // 7 | // http://www.apache.org/licenses/LICENSE-2.0 8 | // 9 | // Unless required by applicable law or agreed to in writing, software distributed 10 | // under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR 11 | // CONDITIONS OF ANY KIND, either express or implied. See the License for the 12 | // specific language governing permissions and limitations under the License. 13 | //----------------------------------------------------------------------------------*/ 14 | 15 | namespace OBS.Model 16 | { 17 | /// 18 | /// Response to a request for deleting bucket policies 19 | /// 20 | public class DeleteBucketPolicyResponse : ObsWebServiceResponse 21 | { 22 | } 23 | } 24 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /OnceMi.AspNetCore.OSS/SDK/HuaweiCloud/Model/DeleteBucketReplicationRequest.cs: -------------------------------------------------------------------------------- 1 | /*---------------------------------------------------------------------------------- 2 | // Copyright 2019 Huawei Technologies Co.,Ltd. 3 | // Licensed under the Apache License, Version 2.0 (the "License"); you may not use 4 | // this file except in compliance with the License. You may obtain a copy of the 5 | // License at 6 | // 7 | // http://www.apache.org/licenses/LICENSE-2.0 8 | // 9 | // Unless required by applicable law or agreed to in writing, software distributed 10 | // under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR 11 | // CONDITIONS OF ANY KIND, either express or implied. See the License for the 12 | // specific language governing permissions and limitations under the License. 13 | //----------------------------------------------------------------------------------*/ 14 | 15 | namespace OBS.Model 16 | { 17 | /// 18 | /// Parameters of a request for deleting the cross-region copy configuration of a bucket 19 | /// 20 | public class DeleteBucketReplicationRequest : ObsBucketWebServiceRequest 21 | { 22 | 23 | internal override string GetAction() 24 | { 25 | return "DeleteBucketReplication"; 26 | } 27 | 28 | } 29 | } 30 | 31 | 32 | 33 | -------------------------------------------------------------------------------- /OnceMi.AspNetCore.OSS/SDK/HuaweiCloud/Model/DeleteBucketReplicationResponse.cs: -------------------------------------------------------------------------------- 1 | /*---------------------------------------------------------------------------------- 2 | // Copyright 2019 Huawei Technologies Co.,Ltd. 3 | // Licensed under the Apache License, Version 2.0 (the "License"); you may not use 4 | // this file except in compliance with the License. You may obtain a copy of the 5 | // License at 6 | // 7 | // http://www.apache.org/licenses/LICENSE-2.0 8 | // 9 | // Unless required by applicable law or agreed to in writing, software distributed 10 | // under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR 11 | // CONDITIONS OF ANY KIND, either express or implied. See the License for the 12 | // specific language governing permissions and limitations under the License. 13 | //----------------------------------------------------------------------------------*/ 14 | 15 | namespace OBS.Model 16 | { 17 | /// 18 | /// Response to a request for deleting the cross-region copy configuration of a bucket 19 | /// 20 | public class DeleteBucketReplicationResponse : ObsWebServiceResponse 21 | { 22 | } 23 | } 24 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /OnceMi.AspNetCore.OSS/SDK/HuaweiCloud/Model/DeleteBucketRequest.cs: -------------------------------------------------------------------------------- 1 | /*---------------------------------------------------------------------------------- 2 | // Copyright 2019 Huawei Technologies Co.,Ltd. 3 | // Licensed under the Apache License, Version 2.0 (the "License"); you may not use 4 | // this file except in compliance with the License. You may obtain a copy of the 5 | // License at 6 | // 7 | // http://www.apache.org/licenses/LICENSE-2.0 8 | // 9 | // Unless required by applicable law or agreed to in writing, software distributed 10 | // under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR 11 | // CONDITIONS OF ANY KIND, either express or implied. See the License for the 12 | // specific language governing permissions and limitations under the License. 13 | //----------------------------------------------------------------------------------*/ 14 | 15 | namespace OBS.Model 16 | { 17 | /// 18 | /// Parameters in a bucket deletion request 19 | /// 20 | public class DeleteBucketRequest : ObsBucketWebServiceRequest 21 | { 22 | 23 | internal override string GetAction() 24 | { 25 | return "DeleteBucket"; 26 | } 27 | 28 | } 29 | } 30 | 31 | 32 | 33 | -------------------------------------------------------------------------------- /OnceMi.AspNetCore.OSS/SDK/HuaweiCloud/Model/DeleteBucketResponse.cs: -------------------------------------------------------------------------------- 1 | /*---------------------------------------------------------------------------------- 2 | // Copyright 2019 Huawei Technologies Co.,Ltd. 3 | // Licensed under the Apache License, Version 2.0 (the "License"); you may not use 4 | // this file except in compliance with the License. You may obtain a copy of the 5 | // License at 6 | // 7 | // http://www.apache.org/licenses/LICENSE-2.0 8 | // 9 | // Unless required by applicable law or agreed to in writing, software distributed 10 | // under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR 11 | // CONDITIONS OF ANY KIND, either express or implied. See the License for the 12 | // specific language governing permissions and limitations under the License. 13 | //----------------------------------------------------------------------------------*/ 14 | 15 | namespace OBS.Model 16 | { 17 | /// 18 | /// Response to a bucket deletion request 19 | /// 20 | public class DeleteBucketResponse : ObsWebServiceResponse 21 | { 22 | } 23 | } 24 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /OnceMi.AspNetCore.OSS/SDK/HuaweiCloud/Model/DeleteBucketTaggingRequest.cs: -------------------------------------------------------------------------------- 1 | /*---------------------------------------------------------------------------------- 2 | // Copyright 2019 Huawei Technologies Co.,Ltd. 3 | // Licensed under the Apache License, Version 2.0 (the "License"); you may not use 4 | // this file except in compliance with the License. You may obtain a copy of the 5 | // License at 6 | // 7 | // http://www.apache.org/licenses/LICENSE-2.0 8 | // 9 | // Unless required by applicable law or agreed to in writing, software distributed 10 | // under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR 11 | // CONDITIONS OF ANY KIND, either express or implied. See the License for the 12 | // specific language governing permissions and limitations under the License. 13 | //----------------------------------------------------------------------------------*/ 14 | 15 | namespace OBS.Model 16 | { 17 | /// 18 | /// Parameters in a bucket tag deletion request 19 | /// 20 | public class DeleteBucketTaggingRequest : ObsBucketWebServiceRequest 21 | { 22 | 23 | internal override string GetAction() 24 | { 25 | return "DeleteBucketTagging"; 26 | } 27 | 28 | } 29 | } 30 | 31 | 32 | 33 | -------------------------------------------------------------------------------- /OnceMi.AspNetCore.OSS/SDK/HuaweiCloud/Model/DeleteBucketTaggingResponse.cs: -------------------------------------------------------------------------------- 1 | /*---------------------------------------------------------------------------------- 2 | // Copyright 2019 Huawei Technologies Co.,Ltd. 3 | // Licensed under the Apache License, Version 2.0 (the "License"); you may not use 4 | // this file except in compliance with the License. You may obtain a copy of the 5 | // License at 6 | // 7 | // http://www.apache.org/licenses/LICENSE-2.0 8 | // 9 | // Unless required by applicable law or agreed to in writing, software distributed 10 | // under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR 11 | // CONDITIONS OF ANY KIND, either express or implied. See the License for the 12 | // specific language governing permissions and limitations under the License. 13 | //----------------------------------------------------------------------------------*/ 14 | 15 | namespace OBS.Model 16 | { 17 | /// 18 | /// Response to a bucket tag deletion request 19 | /// 20 | public class DeleteBucketTaggingResponse : ObsWebServiceResponse 21 | { 22 | } 23 | } 24 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /OnceMi.AspNetCore.OSS/SDK/HuaweiCloud/Model/DeleteBucketWebsiteRequest.cs: -------------------------------------------------------------------------------- 1 | /*---------------------------------------------------------------------------------- 2 | // Copyright 2019 Huawei Technologies Co.,Ltd. 3 | // Licensed under the Apache License, Version 2.0 (the "License"); you may not use 4 | // this file except in compliance with the License. You may obtain a copy of the 5 | // License at 6 | // 7 | // http://www.apache.org/licenses/LICENSE-2.0 8 | // 9 | // Unless required by applicable law or agreed to in writing, software distributed 10 | // under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR 11 | // CONDITIONS OF ANY KIND, either express or implied. See the License for the 12 | // specific language governing permissions and limitations under the License. 13 | //----------------------------------------------------------------------------------*/ 14 | 15 | namespace OBS.Model 16 | { 17 | /// 18 | /// Parameters in a request for deleting bucket website hosting rules 19 | /// 20 | public class DeleteBucketWebsiteRequest : ObsBucketWebServiceRequest 21 | { 22 | 23 | internal override string GetAction() 24 | { 25 | return "DeleteBucketWebsite"; 26 | } 27 | 28 | } 29 | } 30 | 31 | 32 | 33 | -------------------------------------------------------------------------------- /OnceMi.AspNetCore.OSS/SDK/HuaweiCloud/Model/DeleteBucketWebsiteResponse.cs: -------------------------------------------------------------------------------- 1 | /*---------------------------------------------------------------------------------- 2 | // Copyright 2019 Huawei Technologies Co.,Ltd. 3 | // Licensed under the Apache License, Version 2.0 (the "License"); you may not use 4 | // this file except in compliance with the License. You may obtain a copy of the 5 | // License at 6 | // 7 | // http://www.apache.org/licenses/LICENSE-2.0 8 | // 9 | // Unless required by applicable law or agreed to in writing, software distributed 10 | // under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR 11 | // CONDITIONS OF ANY KIND, either express or implied. See the License for the 12 | // specific language governing permissions and limitations under the License. 13 | //----------------------------------------------------------------------------------*/ 14 | 15 | namespace OBS.Model 16 | { 17 | /// 18 | /// Response to a request for deleting bucket website hosting rules 19 | /// 20 | public class DeleteBucketWebsiteResponse : ObsWebServiceResponse 21 | { 22 | } 23 | } 24 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /OnceMi.AspNetCore.OSS/SDK/HuaweiCloud/Model/GetBucketAclRequest.cs: -------------------------------------------------------------------------------- 1 | /*---------------------------------------------------------------------------------- 2 | // Copyright 2019 Huawei Technologies Co.,Ltd. 3 | // Licensed under the Apache License, Version 2.0 (the "License"); you may not use 4 | // this file except in compliance with the License. You may obtain a copy of the 5 | // License at 6 | // 7 | // http://www.apache.org/licenses/LICENSE-2.0 8 | // 9 | // Unless required by applicable law or agreed to in writing, software distributed 10 | // under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR 11 | // CONDITIONS OF ANY KIND, either express or implied. See the License for the 12 | // specific language governing permissions and limitations under the License. 13 | //----------------------------------------------------------------------------------*/ 14 | 15 | namespace OBS.Model 16 | { 17 | /// 18 | /// Parameters in a request for obtaining bucket ACLs 19 | /// 20 | public class GetBucketAclRequest : ObsBucketWebServiceRequest 21 | { 22 | internal override string GetAction() 23 | { 24 | return "GetBucketAcl"; 25 | } 26 | } 27 | } 28 | 29 | 30 | 31 | -------------------------------------------------------------------------------- /OnceMi.AspNetCore.OSS/SDK/HuaweiCloud/Model/GetBucketAclResponse.cs: -------------------------------------------------------------------------------- 1 | /*---------------------------------------------------------------------------------- 2 | // Copyright 2019 Huawei Technologies Co.,Ltd. 3 | // Licensed under the Apache License, Version 2.0 (the "License"); you may not use 4 | // this file except in compliance with the License. You may obtain a copy of the 5 | // License at 6 | // 7 | // http://www.apache.org/licenses/LICENSE-2.0 8 | // 9 | // Unless required by applicable law or agreed to in writing, software distributed 10 | // under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR 11 | // CONDITIONS OF ANY KIND, either express or implied. See the License for the 12 | // specific language governing permissions and limitations under the License. 13 | //----------------------------------------------------------------------------------*/ 14 | 15 | namespace OBS.Model 16 | { 17 | /// 18 | /// Response to a request for obtaining bucket ACLs 19 | /// 20 | public class GetBucketAclResponse : ObsWebServiceResponse 21 | { 22 | /// 23 | /// List of grantees' permission information 24 | /// 25 | public AccessControlList AccessControlList { get; internal set; } 26 | } 27 | } 28 | 29 | 30 | 31 | -------------------------------------------------------------------------------- /OnceMi.AspNetCore.OSS/SDK/HuaweiCloud/Model/GetBucketCorsRequest.cs: -------------------------------------------------------------------------------- 1 | /*---------------------------------------------------------------------------------- 2 | // Copyright 2019 Huawei Technologies Co.,Ltd. 3 | // Licensed under the Apache License, Version 2.0 (the "License"); you may not use 4 | // this file except in compliance with the License. You may obtain a copy of the 5 | // License at 6 | // 7 | // http://www.apache.org/licenses/LICENSE-2.0 8 | // 9 | // Unless required by applicable law or agreed to in writing, software distributed 10 | // under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR 11 | // CONDITIONS OF ANY KIND, either express or implied. See the License for the 12 | // specific language governing permissions and limitations under the License. 13 | //----------------------------------------------------------------------------------*/ 14 | 15 | namespace OBS.Model 16 | { 17 | /// 18 | /// Parameters in a request for obtaining bucket CORS configuration 19 | /// 20 | public class GetBucketCorsRequest : ObsBucketWebServiceRequest 21 | { 22 | 23 | internal override string GetAction() 24 | { 25 | return "GetBucketCors"; 26 | } 27 | 28 | } 29 | } 30 | 31 | 32 | 33 | -------------------------------------------------------------------------------- /OnceMi.AspNetCore.OSS/SDK/HuaweiCloud/Model/GetBucketCorsResponse.cs: -------------------------------------------------------------------------------- 1 | /*---------------------------------------------------------------------------------- 2 | // Copyright 2019 Huawei Technologies Co.,Ltd. 3 | // Licensed under the Apache License, Version 2.0 (the "License"); you may not use 4 | // this file except in compliance with the License. You may obtain a copy of the 5 | // License at 6 | // 7 | // http://www.apache.org/licenses/LICENSE-2.0 8 | // 9 | // Unless required by applicable law or agreed to in writing, software distributed 10 | // under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR 11 | // CONDITIONS OF ANY KIND, either express or implied. See the License for the 12 | // specific language governing permissions and limitations under the License. 13 | //----------------------------------------------------------------------------------*/ 14 | 15 | namespace OBS.Model 16 | { 17 | /// 18 | /// Response to a request for obtaining bucket CORS configuration 19 | /// 20 | public class GetBucketCorsResponse : ObsWebServiceResponse 21 | { 22 | 23 | /// 24 | /// Bucket CORS configuration 25 | /// 26 | public CorsConfiguration Configuration 27 | { 28 | get; 29 | internal set; 30 | } 31 | 32 | } 33 | } 34 | 35 | 36 | 37 | -------------------------------------------------------------------------------- /OnceMi.AspNetCore.OSS/SDK/HuaweiCloud/Model/GetBucketLifecycleRequest.cs: -------------------------------------------------------------------------------- 1 | /*---------------------------------------------------------------------------------- 2 | // Copyright 2019 Huawei Technologies Co.,Ltd. 3 | // Licensed under the Apache License, Version 2.0 (the "License"); you may not use 4 | // this file except in compliance with the License. You may obtain a copy of the 5 | // License at 6 | // 7 | // http://www.apache.org/licenses/LICENSE-2.0 8 | // 9 | // Unless required by applicable law or agreed to in writing, software distributed 10 | // under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR 11 | // CONDITIONS OF ANY KIND, either express or implied. See the License for the 12 | // specific language governing permissions and limitations under the License. 13 | //----------------------------------------------------------------------------------*/ 14 | 15 | namespace OBS.Model 16 | { 17 | /// 18 | /// Parameters in a request for obtaining bucket lifecycle rules 19 | /// 20 | public class GetBucketLifecycleRequest : ObsBucketWebServiceRequest 21 | { 22 | 23 | internal override string GetAction() 24 | { 25 | return "GetBucketLifecycle"; 26 | } 27 | 28 | } 29 | } 30 | 31 | 32 | 33 | -------------------------------------------------------------------------------- /OnceMi.AspNetCore.OSS/SDK/HuaweiCloud/Model/GetBucketLifecycleResponse.cs: -------------------------------------------------------------------------------- 1 | /*---------------------------------------------------------------------------------- 2 | // Copyright 2019 Huawei Technologies Co.,Ltd. 3 | // Licensed under the Apache License, Version 2.0 (the "License"); you may not use 4 | // this file except in compliance with the License. You may obtain a copy of the 5 | // License at 6 | // 7 | // http://www.apache.org/licenses/LICENSE-2.0 8 | // 9 | // Unless required by applicable law or agreed to in writing, software distributed 10 | // under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR 11 | // CONDITIONS OF ANY KIND, either express or implied. See the License for the 12 | // specific language governing permissions and limitations under the License. 13 | //----------------------------------------------------------------------------------*/ 14 | 15 | namespace OBS.Model 16 | { 17 | /// 18 | /// Response to a request for obtaining bucket lifecycle rules 19 | /// 20 | public class GetBucketLifecycleResponse : ObsWebServiceResponse 21 | { 22 | 23 | 24 | /// 25 | /// Bucket lifecycle rules 26 | /// 27 | public LifecycleConfiguration Configuration 28 | { 29 | get; 30 | internal set; 31 | } 32 | } 33 | } 34 | 35 | 36 | 37 | -------------------------------------------------------------------------------- /OnceMi.AspNetCore.OSS/SDK/HuaweiCloud/Model/GetBucketLocationRequest.cs: -------------------------------------------------------------------------------- 1 | /*---------------------------------------------------------------------------------- 2 | // Copyright 2019 Huawei Technologies Co.,Ltd. 3 | // Licensed under the Apache License, Version 2.0 (the "License"); you may not use 4 | // this file except in compliance with the License. You may obtain a copy of the 5 | // License at 6 | // 7 | // http://www.apache.org/licenses/LICENSE-2.0 8 | // 9 | // Unless required by applicable law or agreed to in writing, software distributed 10 | // under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR 11 | // CONDITIONS OF ANY KIND, either express or implied. See the License for the 12 | // specific language governing permissions and limitations under the License. 13 | //----------------------------------------------------------------------------------*/ 14 | 15 | namespace OBS.Model 16 | { 17 | /// 18 | /// Parameters in a request for obtaining the bucket location 19 | /// 20 | public class GetBucketLocationRequest : ObsBucketWebServiceRequest 21 | { 22 | internal override string GetAction() 23 | { 24 | return "GetBucketLocation"; 25 | } 26 | } 27 | } 28 | 29 | 30 | 31 | -------------------------------------------------------------------------------- /OnceMi.AspNetCore.OSS/SDK/HuaweiCloud/Model/GetBucketLocationResponse.cs: -------------------------------------------------------------------------------- 1 | /*---------------------------------------------------------------------------------- 2 | // Copyright 2019 Huawei Technologies Co.,Ltd. 3 | // Licensed under the Apache License, Version 2.0 (the "License"); you may not use 4 | // this file except in compliance with the License. You may obtain a copy of the 5 | // License at 6 | // 7 | // http://www.apache.org/licenses/LICENSE-2.0 8 | // 9 | // Unless required by applicable law or agreed to in writing, software distributed 10 | // under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR 11 | // CONDITIONS OF ANY KIND, either express or implied. See the License for the 12 | // specific language governing permissions and limitations under the License. 13 | //----------------------------------------------------------------------------------*/ 14 | 15 | namespace OBS.Model 16 | { 17 | /// 18 | /// Response to a request for obtaining the bucket location 19 | /// 20 | public class GetBucketLocationResponse : ObsWebServiceResponse 21 | { 22 | 23 | /// 24 | /// Bucket location 25 | /// 26 | public string Location 27 | { 28 | get; 29 | internal set; 30 | } 31 | } 32 | } 33 | 34 | 35 | 36 | -------------------------------------------------------------------------------- /OnceMi.AspNetCore.OSS/SDK/HuaweiCloud/Model/GetBucketLoggingRequest.cs: -------------------------------------------------------------------------------- 1 | /*---------------------------------------------------------------------------------- 2 | // Copyright 2019 Huawei Technologies Co.,Ltd. 3 | // Licensed under the Apache License, Version 2.0 (the "License"); you may not use 4 | // this file except in compliance with the License. You may obtain a copy of the 5 | // License at 6 | // 7 | // http://www.apache.org/licenses/LICENSE-2.0 8 | // 9 | // Unless required by applicable law or agreed to in writing, software distributed 10 | // under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR 11 | // CONDITIONS OF ANY KIND, either express or implied. See the License for the 12 | // specific language governing permissions and limitations under the License. 13 | //----------------------------------------------------------------------------------*/ 14 | 15 | namespace OBS.Model 16 | { 17 | /// 18 | /// Parameters in a request for obtaining bucket logging configuration 19 | /// 20 | public class GetBucketLoggingRequest : ObsBucketWebServiceRequest 21 | { 22 | 23 | internal override string GetAction() 24 | { 25 | return "GetBucketLogging"; 26 | } 27 | 28 | } 29 | } 30 | 31 | 32 | 33 | -------------------------------------------------------------------------------- /OnceMi.AspNetCore.OSS/SDK/HuaweiCloud/Model/GetBucketLoggingResponse.cs: -------------------------------------------------------------------------------- 1 | /*---------------------------------------------------------------------------------- 2 | // Copyright 2019 Huawei Technologies Co.,Ltd. 3 | // Licensed under the Apache License, Version 2.0 (the "License"); you may not use 4 | // this file except in compliance with the License. You may obtain a copy of the 5 | // License at 6 | // 7 | // http://www.apache.org/licenses/LICENSE-2.0 8 | // 9 | // Unless required by applicable law or agreed to in writing, software distributed 10 | // under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR 11 | // CONDITIONS OF ANY KIND, either express or implied. See the License for the 12 | // specific language governing permissions and limitations under the License. 13 | //----------------------------------------------------------------------------------*/ 14 | 15 | namespace OBS.Model 16 | { 17 | /// 18 | /// Response to a request for obtaining bucket logging configuration 19 | /// 20 | public class GetBucketLoggingResponse : ObsWebServiceResponse 21 | { 22 | 23 | /// 24 | /// Bucket logging configuration 25 | /// 26 | public LoggingConfiguration Configuration 27 | { 28 | get; 29 | internal set; 30 | } 31 | } 32 | } 33 | 34 | 35 | 36 | -------------------------------------------------------------------------------- /OnceMi.AspNetCore.OSS/SDK/HuaweiCloud/Model/GetBucketNotificationRequest.cs: -------------------------------------------------------------------------------- 1 | /*---------------------------------------------------------------------------------- 2 | // Copyright 2019 Huawei Technologies Co.,Ltd. 3 | // Licensed under the Apache License, Version 2.0 (the "License"); you may not use 4 | // this file except in compliance with the License. You may obtain a copy of the 5 | // License at 6 | // 7 | // http://www.apache.org/licenses/LICENSE-2.0 8 | // 9 | // Unless required by applicable law or agreed to in writing, software distributed 10 | // under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR 11 | // CONDITIONS OF ANY KIND, either express or implied. See the License for the 12 | // specific language governing permissions and limitations under the License. 13 | //----------------------------------------------------------------------------------*/ 14 | 15 | namespace OBS.Model 16 | { 17 | /// 18 | /// Parameters in a request for obtaining bucket notification configuration 19 | /// 20 | public class GetBucketNotificationRequest : ObsBucketWebServiceRequest 21 | { 22 | 23 | internal override string GetAction() 24 | { 25 | return "GetBucketNotification"; 26 | } 27 | 28 | } 29 | } 30 | 31 | 32 | 33 | -------------------------------------------------------------------------------- /OnceMi.AspNetCore.OSS/SDK/HuaweiCloud/Model/GetBucketNotificationResponse.cs: -------------------------------------------------------------------------------- 1 | /*---------------------------------------------------------------------------------- 2 | // Copyright 2019 Huawei Technologies Co.,Ltd. 3 | // Licensed under the Apache License, Version 2.0 (the "License"); you may not use 4 | // this file except in compliance with the License. You may obtain a copy of the 5 | // License at 6 | // 7 | // http://www.apache.org/licenses/LICENSE-2.0 8 | // 9 | // Unless required by applicable law or agreed to in writing, software distributed 10 | // under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR 11 | // CONDITIONS OF ANY KIND, either express or implied. See the License for the 12 | // specific language governing permissions and limitations under the License. 13 | //----------------------------------------------------------------------------------*/ 14 | 15 | namespace OBS.Model 16 | { 17 | 18 | /// 19 | /// Response to a request for obtaining bucket notification configuration 20 | /// 21 | public class GetBucketNotificationReponse : ObsWebServiceResponse 22 | { 23 | 24 | /// 25 | /// Bucket notification configuration 26 | /// 27 | public NotificationConfiguration Configuration 28 | { 29 | get; 30 | internal set; 31 | } 32 | 33 | } 34 | } 35 | 36 | 37 | 38 | -------------------------------------------------------------------------------- /OnceMi.AspNetCore.OSS/SDK/HuaweiCloud/Model/GetBucketPolicyRequest.cs: -------------------------------------------------------------------------------- 1 | /*---------------------------------------------------------------------------------- 2 | // Copyright 2019 Huawei Technologies Co.,Ltd. 3 | // Licensed under the Apache License, Version 2.0 (the "License"); you may not use 4 | // this file except in compliance with the License. You may obtain a copy of the 5 | // License at 6 | // 7 | // http://www.apache.org/licenses/LICENSE-2.0 8 | // 9 | // Unless required by applicable law or agreed to in writing, software distributed 10 | // under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR 11 | // CONDITIONS OF ANY KIND, either express or implied. See the License for the 12 | // specific language governing permissions and limitations under the License. 13 | //----------------------------------------------------------------------------------*/ 14 | 15 | namespace OBS.Model 16 | { 17 | /// 18 | /// Parameters in a request for obtaining bucket policies 19 | /// 20 | public class GetBucketPolicyRequest : ObsBucketWebServiceRequest 21 | { 22 | 23 | internal override string GetAction() 24 | { 25 | return "GetBucketPolicy"; 26 | } 27 | 28 | } 29 | } 30 | 31 | 32 | 33 | -------------------------------------------------------------------------------- /OnceMi.AspNetCore.OSS/SDK/HuaweiCloud/Model/GetBucketPolicyResponse.cs: -------------------------------------------------------------------------------- 1 | /*---------------------------------------------------------------------------------- 2 | // Copyright 2019 Huawei Technologies Co.,Ltd. 3 | // Licensed under the Apache License, Version 2.0 (the "License"); you may not use 4 | // this file except in compliance with the License. You may obtain a copy of the 5 | // License at 6 | // 7 | // http://www.apache.org/licenses/LICENSE-2.0 8 | // 9 | // Unless required by applicable law or agreed to in writing, software distributed 10 | // under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR 11 | // CONDITIONS OF ANY KIND, either express or implied. See the License for the 12 | // specific language governing permissions and limitations under the License. 13 | //----------------------------------------------------------------------------------*/ 14 | 15 | namespace OBS.Model 16 | { 17 | /// 18 | /// Response to a request for obtaining bucket policies 19 | /// 20 | public class GetBucketPolicyResponse : ObsWebServiceResponse 21 | { 22 | /// 23 | /// Policy content in the JSON format 24 | /// 25 | public string Policy { get; internal set; } 26 | 27 | } 28 | } 29 | 30 | 31 | 32 | -------------------------------------------------------------------------------- /OnceMi.AspNetCore.OSS/SDK/HuaweiCloud/Model/GetBucketQuotaRequest.cs: -------------------------------------------------------------------------------- 1 | /*---------------------------------------------------------------------------------- 2 | // Copyright 2019 Huawei Technologies Co.,Ltd. 3 | // Licensed under the Apache License, Version 2.0 (the "License"); you may not use 4 | // this file except in compliance with the License. You may obtain a copy of the 5 | // License at 6 | // 7 | // http://www.apache.org/licenses/LICENSE-2.0 8 | // 9 | // Unless required by applicable law or agreed to in writing, software distributed 10 | // under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR 11 | // CONDITIONS OF ANY KIND, either express or implied. See the License for the 12 | // specific language governing permissions and limitations under the License. 13 | //----------------------------------------------------------------------------------*/ 14 | 15 | namespace OBS.Model 16 | { 17 | /// 18 | /// Parameters in a request for obtaining bucket quotas 19 | /// 20 | public class GetBucketQuotaRequest : ObsBucketWebServiceRequest 21 | { 22 | 23 | internal override string GetAction() 24 | { 25 | return "GetBucketQuota"; 26 | } 27 | 28 | } 29 | } 30 | 31 | 32 | 33 | -------------------------------------------------------------------------------- /OnceMi.AspNetCore.OSS/SDK/HuaweiCloud/Model/GetBucketQuotaResponse.cs: -------------------------------------------------------------------------------- 1 | /*---------------------------------------------------------------------------------- 2 | // Copyright 2019 Huawei Technologies Co.,Ltd. 3 | // Licensed under the Apache License, Version 2.0 (the "License"); you may not use 4 | // this file except in compliance with the License. You may obtain a copy of the 5 | // License at 6 | // 7 | // http://www.apache.org/licenses/LICENSE-2.0 8 | // 9 | // Unless required by applicable law or agreed to in writing, software distributed 10 | // under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR 11 | // CONDITIONS OF ANY KIND, either express or implied. See the License for the 12 | // specific language governing permissions and limitations under the License. 13 | //----------------------------------------------------------------------------------*/ 14 | 15 | namespace OBS.Model 16 | { 17 | /// 18 | /// Response to a request for obtaining bucket quotas 19 | /// 20 | public class GetBucketQuotaResponse : ObsWebServiceResponse 21 | { 22 | 23 | /// 24 | /// Bucket quota 25 | /// 26 | public long StorageQuota 27 | { 28 | get; 29 | internal set; 30 | } 31 | 32 | } 33 | } 34 | 35 | 36 | 37 | -------------------------------------------------------------------------------- /OnceMi.AspNetCore.OSS/SDK/HuaweiCloud/Model/GetBucketReplicationRequest.cs: -------------------------------------------------------------------------------- 1 | /*---------------------------------------------------------------------------------- 2 | // Copyright 2019 Huawei Technologies Co.,Ltd. 3 | // Licensed under the Apache License, Version 2.0 (the "License"); you may not use 4 | // this file except in compliance with the License. You may obtain a copy of the 5 | // License at 6 | // 7 | // http://www.apache.org/licenses/LICENSE-2.0 8 | // 9 | // Unless required by applicable law or agreed to in writing, software distributed 10 | // under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR 11 | // CONDITIONS OF ANY KIND, either express or implied. See the License for the 12 | // specific language governing permissions and limitations under the License. 13 | //----------------------------------------------------------------------------------*/ 14 | 15 | namespace OBS.Model 16 | { 17 | /// 18 | /// Parameters in a request for obtaining the cross-region copy configuration of a bucket 19 | /// 20 | public class GetBucketReplicationRequest : ObsBucketWebServiceRequest 21 | { 22 | 23 | internal override string GetAction() 24 | { 25 | return "GetBucketReplication"; 26 | } 27 | 28 | } 29 | } 30 | 31 | 32 | 33 | -------------------------------------------------------------------------------- /OnceMi.AspNetCore.OSS/SDK/HuaweiCloud/Model/GetBucketReplicationResponse.cs: -------------------------------------------------------------------------------- 1 | /*---------------------------------------------------------------------------------- 2 | // Copyright 2019 Huawei Technologies Co.,Ltd. 3 | // Licensed under the Apache License, Version 2.0 (the "License"); you may not use 4 | // this file except in compliance with the License. You may obtain a copy of the 5 | // License at 6 | // 7 | // http://www.apache.org/licenses/LICENSE-2.0 8 | // 9 | // Unless required by applicable law or agreed to in writing, software distributed 10 | // under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR 11 | // CONDITIONS OF ANY KIND, either express or implied. See the License for the 12 | // specific language governing permissions and limitations under the License. 13 | //----------------------------------------------------------------------------------*/ 14 | 15 | namespace OBS.Model 16 | { 17 | /// 18 | /// Response to a request for obtaining the cross-region copy configuration of a bucket 19 | /// 20 | public class GetBucketReplicationResponse : ObsWebServiceResponse 21 | { 22 | 23 | /// 24 | /// Cross-region copy configuration of a bucket 25 | /// 26 | public ReplicationConfiguration Configuration 27 | { 28 | get; 29 | internal set; 30 | } 31 | } 32 | } 33 | 34 | 35 | 36 | -------------------------------------------------------------------------------- /OnceMi.AspNetCore.OSS/SDK/HuaweiCloud/Model/GetBucketStorageInfoRequest.cs: -------------------------------------------------------------------------------- 1 | /*---------------------------------------------------------------------------------- 2 | // Copyright 2019 Huawei Technologies Co.,Ltd. 3 | // Licensed under the Apache License, Version 2.0 (the "License"); you may not use 4 | // this file except in compliance with the License. You may obtain a copy of the 5 | // License at 6 | // 7 | // http://www.apache.org/licenses/LICENSE-2.0 8 | // 9 | // Unless required by applicable law or agreed to in writing, software distributed 10 | // under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR 11 | // CONDITIONS OF ANY KIND, either express or implied. See the License for the 12 | // specific language governing permissions and limitations under the License. 13 | //----------------------------------------------------------------------------------*/ 14 | 15 | namespace OBS.Model 16 | { 17 | /// 18 | /// Parameters in a request for obtaining bucket storage information 19 | /// 20 | public class GetBucketStorageInfoRequest: ObsBucketWebServiceRequest 21 | { 22 | 23 | internal override string GetAction() 24 | { 25 | return "GetBucketStorageInfo"; 26 | } 27 | 28 | } 29 | } 30 | 31 | 32 | 33 | -------------------------------------------------------------------------------- /OnceMi.AspNetCore.OSS/SDK/HuaweiCloud/Model/GetBucketStoragePolicyRequest.cs: -------------------------------------------------------------------------------- 1 | /*---------------------------------------------------------------------------------- 2 | // Copyright 2019 Huawei Technologies Co.,Ltd. 3 | // Licensed under the Apache License, Version 2.0 (the "License"); you may not use 4 | // this file except in compliance with the License. You may obtain a copy of the 5 | // License at 6 | // 7 | // http://www.apache.org/licenses/LICENSE-2.0 8 | // 9 | // Unless required by applicable law or agreed to in writing, software distributed 10 | // under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR 11 | // CONDITIONS OF ANY KIND, either express or implied. See the License for the 12 | // specific language governing permissions and limitations under the License. 13 | //----------------------------------------------------------------------------------*/ 14 | 15 | namespace OBS.Model 16 | { 17 | /// 18 | /// Parameters in a request for obtaining bucket storage policies 19 | /// 20 | public class GetBucketStoragePolicyRequest : ObsBucketWebServiceRequest 21 | { 22 | 23 | internal override string GetAction() 24 | { 25 | return "GetBucketStoragePolicy"; 26 | } 27 | 28 | } 29 | } 30 | 31 | 32 | 33 | -------------------------------------------------------------------------------- /OnceMi.AspNetCore.OSS/SDK/HuaweiCloud/Model/GetBucketStoragePolicyResponse.cs: -------------------------------------------------------------------------------- 1 | /*---------------------------------------------------------------------------------- 2 | // Copyright 2019 Huawei Technologies Co.,Ltd. 3 | // Licensed under the Apache License, Version 2.0 (the "License"); you may not use 4 | // this file except in compliance with the License. You may obtain a copy of the 5 | // License at 6 | // 7 | // http://www.apache.org/licenses/LICENSE-2.0 8 | // 9 | // Unless required by applicable law or agreed to in writing, software distributed 10 | // under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR 11 | // CONDITIONS OF ANY KIND, either express or implied. See the License for the 12 | // specific language governing permissions and limitations under the License. 13 | //----------------------------------------------------------------------------------*/ 14 | 15 | namespace OBS.Model 16 | { 17 | /// 18 | /// Response to a request for obtaining bucket storage policies 19 | /// 20 | public class GetBucketStoragePolicyResponse : ObsWebServiceResponse 21 | { 22 | 23 | /// 24 | /// Bucket storage class 25 | /// 26 | public StorageClassEnum? StorageClass 27 | { 28 | get; 29 | internal set; 30 | } 31 | } 32 | } 33 | 34 | 35 | 36 | -------------------------------------------------------------------------------- /OnceMi.AspNetCore.OSS/SDK/HuaweiCloud/Model/GetBucketTaggingRequest.cs: -------------------------------------------------------------------------------- 1 | /*---------------------------------------------------------------------------------- 2 | // Copyright 2019 Huawei Technologies Co.,Ltd. 3 | // Licensed under the Apache License, Version 2.0 (the "License"); you may not use 4 | // this file except in compliance with the License. You may obtain a copy of the 5 | // License at 6 | // 7 | // http://www.apache.org/licenses/LICENSE-2.0 8 | // 9 | // Unless required by applicable law or agreed to in writing, software distributed 10 | // under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR 11 | // CONDITIONS OF ANY KIND, either express or implied. See the License for the 12 | // specific language governing permissions and limitations under the License. 13 | //----------------------------------------------------------------------------------*/ 14 | 15 | namespace OBS.Model 16 | { 17 | /// 18 | /// Parameters in a request for obtaining bucket tags 19 | /// 20 | public class GetBucketTaggingRequest : ObsBucketWebServiceRequest 21 | { 22 | 23 | internal override string GetAction() 24 | { 25 | return "GetBucketTagging"; 26 | } 27 | 28 | } 29 | } 30 | 31 | 32 | 33 | -------------------------------------------------------------------------------- /OnceMi.AspNetCore.OSS/SDK/HuaweiCloud/Model/GetBucketVersioningRequest.cs: -------------------------------------------------------------------------------- 1 | /*---------------------------------------------------------------------------------- 2 | // Copyright 2019 Huawei Technologies Co.,Ltd. 3 | // Licensed under the Apache License, Version 2.0 (the "License"); you may not use 4 | // this file except in compliance with the License. You may obtain a copy of the 5 | // License at 6 | // 7 | // http://www.apache.org/licenses/LICENSE-2.0 8 | // 9 | // Unless required by applicable law or agreed to in writing, software distributed 10 | // under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR 11 | // CONDITIONS OF ANY KIND, either express or implied. See the License for the 12 | // specific language governing permissions and limitations under the License. 13 | //----------------------------------------------------------------------------------*/ 14 | 15 | namespace OBS.Model 16 | { 17 | /// 18 | /// Parameters in a request for obtaining bucket versioning configuration 19 | /// 20 | public class GetBucketVersioningRequest : ObsBucketWebServiceRequest 21 | { 22 | 23 | internal override string GetAction() 24 | { 25 | return "GetBucketVersioning"; 26 | } 27 | 28 | } 29 | } 30 | 31 | 32 | 33 | -------------------------------------------------------------------------------- /OnceMi.AspNetCore.OSS/SDK/HuaweiCloud/Model/GetBucketVersioningResponse.cs: -------------------------------------------------------------------------------- 1 | /*---------------------------------------------------------------------------------- 2 | // Copyright 2019 Huawei Technologies Co.,Ltd. 3 | // Licensed under the Apache License, Version 2.0 (the "License"); you may not use 4 | // this file except in compliance with the License. You may obtain a copy of the 5 | // License at 6 | // 7 | // http://www.apache.org/licenses/LICENSE-2.0 8 | // 9 | // Unless required by applicable law or agreed to in writing, software distributed 10 | // under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR 11 | // CONDITIONS OF ANY KIND, either express or implied. See the License for the 12 | // specific language governing permissions and limitations under the License. 13 | //----------------------------------------------------------------------------------*/ 14 | 15 | namespace OBS.Model 16 | { 17 | /// 18 | /// Response to a request for obtaining bucket versioning configuration 19 | /// 20 | public class GetBucketVersioningResponse : ObsWebServiceResponse 21 | { 22 | 23 | /// 24 | /// Bucket versioning configuration 25 | /// 26 | public VersioningConfiguration Configuration 27 | { 28 | get; 29 | internal set; 30 | } 31 | } 32 | } 33 | 34 | 35 | 36 | -------------------------------------------------------------------------------- /OnceMi.AspNetCore.OSS/SDK/HuaweiCloud/Model/GetBucketWebsiteRequest.cs: -------------------------------------------------------------------------------- 1 | /*---------------------------------------------------------------------------------- 2 | // Copyright 2019 Huawei Technologies Co.,Ltd. 3 | // Licensed under the Apache License, Version 2.0 (the "License"); you may not use 4 | // this file except in compliance with the License. You may obtain a copy of the 5 | // License at 6 | // 7 | // http://www.apache.org/licenses/LICENSE-2.0 8 | // 9 | // Unless required by applicable law or agreed to in writing, software distributed 10 | // under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR 11 | // CONDITIONS OF ANY KIND, either express or implied. See the License for the 12 | // specific language governing permissions and limitations under the License. 13 | //----------------------------------------------------------------------------------*/ 14 | 15 | namespace OBS.Model 16 | { 17 | /// 18 | /// Parameters in a request for obtaining bucket website hosting rules 19 | /// 20 | public class GetBucketWebsiteRequest : ObsBucketWebServiceRequest 21 | { 22 | 23 | internal override string GetAction() 24 | { 25 | return "GetBucketWebsite"; 26 | } 27 | 28 | } 29 | } 30 | 31 | 32 | 33 | -------------------------------------------------------------------------------- /OnceMi.AspNetCore.OSS/SDK/HuaweiCloud/Model/GetBucketWebsiteResponse.cs: -------------------------------------------------------------------------------- 1 | /*---------------------------------------------------------------------------------- 2 | // Copyright 2019 Huawei Technologies Co.,Ltd. 3 | // Licensed under the Apache License, Version 2.0 (the "License"); you may not use 4 | // this file except in compliance with the License. You may obtain a copy of the 5 | // License at 6 | // 7 | // http://www.apache.org/licenses/LICENSE-2.0 8 | // 9 | // Unless required by applicable law or agreed to in writing, software distributed 10 | // under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR 11 | // CONDITIONS OF ANY KIND, either express or implied. See the License for the 12 | // specific language governing permissions and limitations under the License. 13 | //----------------------------------------------------------------------------------*/ 14 | 15 | namespace OBS.Model 16 | { 17 | /// 18 | /// Response to a request for obtaining bucket website hosting rules 19 | /// 20 | public class GetBucketWebsiteResponse : ObsWebServiceResponse 21 | { 22 | 23 | /// 24 | /// Website hosting configuration of a bucket 25 | /// 26 | public WebsiteConfiguration Configuration 27 | { 28 | get; 29 | internal set; 30 | } 31 | 32 | } 33 | } 34 | 35 | 36 | 37 | -------------------------------------------------------------------------------- /OnceMi.AspNetCore.OSS/SDK/HuaweiCloud/Model/GetObjectAclResponse.cs: -------------------------------------------------------------------------------- 1 | /*---------------------------------------------------------------------------------- 2 | // Copyright 2019 Huawei Technologies Co.,Ltd. 3 | // Licensed under the Apache License, Version 2.0 (the "License"); you may not use 4 | // this file except in compliance with the License. You may obtain a copy of the 5 | // License at 6 | // 7 | // http://www.apache.org/licenses/LICENSE-2.0 8 | // 9 | // Unless required by applicable law or agreed to in writing, software distributed 10 | // under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR 11 | // CONDITIONS OF ANY KIND, either express or implied. See the License for the 12 | // specific language governing permissions and limitations under the License. 13 | //----------------------------------------------------------------------------------*/ 14 | 15 | namespace OBS.Model 16 | { 17 | /// 18 | /// Response to a request for obtaining object ACLs 19 | /// 20 | public class GetObjectAclResponse : ObsWebServiceResponse 21 | { 22 | /// 23 | /// List of grantees' permission information 24 | /// 25 | public AccessControlList AccessControlList { get; internal set; } 26 | } 27 | } 28 | 29 | 30 | 31 | -------------------------------------------------------------------------------- /OnceMi.AspNetCore.OSS/SDK/HuaweiCloud/Model/Grantee.cs: -------------------------------------------------------------------------------- 1 | /*---------------------------------------------------------------------------------- 2 | // Copyright 2019 Huawei Technologies Co.,Ltd. 3 | // Licensed under the Apache License, Version 2.0 (the "License"); you may not use 4 | // this file except in compliance with the License. You may obtain a copy of the 5 | // License at 6 | // 7 | // http://www.apache.org/licenses/LICENSE-2.0 8 | // 9 | // Unless required by applicable law or agreed to in writing, software distributed 10 | // under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR 11 | // CONDITIONS OF ANY KIND, either express or implied. See the License for the 12 | // specific language governing permissions and limitations under the License. 13 | //----------------------------------------------------------------------------------*/ 14 | 15 | namespace OBS.Model 16 | { 17 | /// 18 | /// Grantee information in the ACL 19 | /// 20 | public interface Grantee 21 | { 22 | 23 | } 24 | } 25 | 26 | 27 | -------------------------------------------------------------------------------- /OnceMi.AspNetCore.OSS/SDK/HuaweiCloud/Model/HeadBucketRequest.cs: -------------------------------------------------------------------------------- 1 | /*---------------------------------------------------------------------------------- 2 | // Copyright 2019 Huawei Technologies Co.,Ltd. 3 | // Licensed under the Apache License, Version 2.0 (the "License"); you may not use 4 | // this file except in compliance with the License. You may obtain a copy of the 5 | // License at 6 | // 7 | // http://www.apache.org/licenses/LICENSE-2.0 8 | // 9 | // Unless required by applicable law or agreed to in writing, software distributed 10 | // under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR 11 | // CONDITIONS OF ANY KIND, either express or implied. See the License for the 12 | // specific language governing permissions and limitations under the License. 13 | //----------------------------------------------------------------------------------*/ 14 | 15 | namespace OBS.Model 16 | { 17 | /// 18 | /// Parameters in a request for querying whether a bucket exists 19 | /// 20 | public class HeadBucketRequest : ObsBucketWebServiceRequest 21 | { 22 | internal override string GetAction() 23 | { 24 | return "HeadBucket"; 25 | } 26 | } 27 | } 28 | 29 | 30 | 31 | -------------------------------------------------------------------------------- /OnceMi.AspNetCore.OSS/SDK/HuaweiCloud/Model/Initiator.cs: -------------------------------------------------------------------------------- 1 | /*---------------------------------------------------------------------------------- 2 | // Copyright 2019 Huawei Technologies Co.,Ltd. 3 | // Licensed under the Apache License, Version 2.0 (the "License"); you may not use 4 | // this file except in compliance with the License. You may obtain a copy of the 5 | // License at 6 | // 7 | // http://www.apache.org/licenses/LICENSE-2.0 8 | // 9 | // Unless required by applicable law or agreed to in writing, software distributed 10 | // under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR 11 | // CONDITIONS OF ANY KIND, either express or implied. See the License for the 12 | // specific language governing permissions and limitations under the License. 13 | //----------------------------------------------------------------------------------*/ 14 | using System; 15 | 16 | namespace OBS.Model 17 | { 18 | /// 19 | /// Creator of the multipart upload 20 | /// 21 | public class Initiator 22 | { 23 | 24 | 25 | /// 26 | /// Username 27 | /// 28 | [Obsolete] 29 | public string DisplayName 30 | { 31 | get; 32 | set; 33 | } 34 | 35 | /// 36 | /// ID of the domain to which the user belongs 37 | /// 38 | public string Id 39 | { 40 | get; 41 | set; 42 | } 43 | 44 | } 45 | } 46 | 47 | 48 | -------------------------------------------------------------------------------- /OnceMi.AspNetCore.OSS/SDK/HuaweiCloud/Model/KeyVersion.cs: -------------------------------------------------------------------------------- 1 | /*---------------------------------------------------------------------------------- 2 | // Copyright 2019 Huawei Technologies Co.,Ltd. 3 | // Licensed under the Apache License, Version 2.0 (the "License"); you may not use 4 | // this file except in compliance with the License. You may obtain a copy of the 5 | // License at 6 | // 7 | // http://www.apache.org/licenses/LICENSE-2.0 8 | // 9 | // Unless required by applicable law or agreed to in writing, software distributed 10 | // under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR 11 | // CONDITIONS OF ANY KIND, either express or implied. See the License for the 12 | // specific language governing permissions and limitations under the License. 13 | //----------------------------------------------------------------------------------*/ 14 | 15 | namespace OBS.Model 16 | { 17 | /// 18 | /// Information about the object to be deleted 19 | /// 20 | public class KeyVersion 21 | { 22 | 23 | 24 | /// 25 | /// Object name 26 | /// 27 | public string Key 28 | { 29 | get; 30 | set; 31 | } 32 | 33 | 34 | 35 | /// 36 | /// Object version ID 37 | /// 38 | public string VersionId 39 | { 40 | get; 41 | set; 42 | } 43 | 44 | 45 | } 46 | } 47 | 48 | 49 | -------------------------------------------------------------------------------- /OnceMi.AspNetCore.OSS/SDK/HuaweiCloud/Model/Owner.cs: -------------------------------------------------------------------------------- 1 | /*---------------------------------------------------------------------------------- 2 | // Copyright 2019 Huawei Technologies Co.,Ltd. 3 | // Licensed under the Apache License, Version 2.0 (the "License"); you may not use 4 | // this file except in compliance with the License. You may obtain a copy of the 5 | // License at 6 | // 7 | // http://www.apache.org/licenses/LICENSE-2.0 8 | // 9 | // Unless required by applicable law or agreed to in writing, software distributed 10 | // under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR 11 | // CONDITIONS OF ANY KIND, either express or implied. See the License for the 12 | // specific language governing permissions and limitations under the License. 13 | //----------------------------------------------------------------------------------*/ 14 | 15 | using System; 16 | 17 | namespace OBS.Model 18 | { 19 | /// 20 | /// Bucket or object owner information 21 | /// 22 | public class Owner 23 | { 24 | /// 25 | /// Owner name 26 | /// 27 | [Obsolete] 28 | public string DisplayName { set; get; } 29 | 30 | /// 31 | /// ID of the domain to which the owner belongs 32 | /// 33 | public string Id { get; set; } 34 | } 35 | } 36 | 37 | 38 | -------------------------------------------------------------------------------- /OnceMi.AspNetCore.OSS/SDK/HuaweiCloud/Model/PartDetail.cs: -------------------------------------------------------------------------------- 1 | /*---------------------------------------------------------------------------------- 2 | // Copyright 2019 Huawei Technologies Co.,Ltd. 3 | // Licensed under the Apache License, Version 2.0 (the "License"); you may not use 4 | // this file except in compliance with the License. You may obtain a copy of the 5 | // License at 6 | // 7 | // http://www.apache.org/licenses/LICENSE-2.0 8 | // 9 | // Unless required by applicable law or agreed to in writing, software distributed 10 | // under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR 11 | // CONDITIONS OF ANY KIND, either express or implied. See the License for the 12 | // specific language governing permissions and limitations under the License. 13 | //----------------------------------------------------------------------------------*/ 14 | using System; 15 | 16 | namespace OBS.Model 17 | { 18 | /// 19 | /// Part details 20 | /// 21 | public class PartDetail : PartETag 22 | { 23 | 24 | 25 | /// 26 | /// Last modification time of the part 27 | /// 28 | public DateTime? LastModified 29 | { 30 | get; 31 | internal set; 32 | } 33 | 34 | /// 35 | /// Part size 36 | /// 37 | public long Size 38 | { 39 | get; 40 | internal set; 41 | } 42 | 43 | } 44 | } 45 | 46 | 47 | -------------------------------------------------------------------------------- /OnceMi.AspNetCore.OSS/SDK/HuaweiCloud/Model/RestoreObjectResponse.cs: -------------------------------------------------------------------------------- 1 | /*---------------------------------------------------------------------------------- 2 | // Copyright 2019 Huawei Technologies Co.,Ltd. 3 | // Licensed under the Apache License, Version 2.0 (the "License"); you may not use 4 | // this file except in compliance with the License. You may obtain a copy of the 5 | // License at 6 | // 7 | // http://www.apache.org/licenses/LICENSE-2.0 8 | // 9 | // Unless required by applicable law or agreed to in writing, software distributed 10 | // under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR 11 | // CONDITIONS OF ANY KIND, either express or implied. See the License for the 12 | // specific language governing permissions and limitations under the License. 13 | //----------------------------------------------------------------------------------*/ 14 | 15 | namespace OBS.Model 16 | { 17 | /// 18 | /// Response to a request for restoring an Archive object 19 | /// 20 | public class RestoreObjectResponse : ObsWebServiceResponse 21 | { 22 | } 23 | } 24 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /OnceMi.AspNetCore.OSS/SDK/HuaweiCloud/Model/SetBucketAclResponse.cs: -------------------------------------------------------------------------------- 1 | /*---------------------------------------------------------------------------------- 2 | // Copyright 2019 Huawei Technologies Co.,Ltd. 3 | // Licensed under the Apache License, Version 2.0 (the "License"); you may not use 4 | // this file except in compliance with the License. You may obtain a copy of the 5 | // License at 6 | // 7 | // http://www.apache.org/licenses/LICENSE-2.0 8 | // 9 | // Unless required by applicable law or agreed to in writing, software distributed 10 | // under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR 11 | // CONDITIONS OF ANY KIND, either express or implied. See the License for the 12 | // specific language governing permissions and limitations under the License. 13 | //----------------------------------------------------------------------------------*/ 14 | 15 | namespace OBS.Model 16 | { 17 | /// 18 | /// Response to a request for setting bucket ACLs 19 | /// 20 | public partial class SetBucketAclResponse : ObsWebServiceResponse 21 | { 22 | } 23 | } 24 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /OnceMi.AspNetCore.OSS/SDK/HuaweiCloud/Model/SetBucketCorsResponse.cs: -------------------------------------------------------------------------------- 1 | /*---------------------------------------------------------------------------------- 2 | // Copyright 2019 Huawei Technologies Co.,Ltd. 3 | // Licensed under the Apache License, Version 2.0 (the "License"); you may not use 4 | // this file except in compliance with the License. You may obtain a copy of the 5 | // License at 6 | // 7 | // http://www.apache.org/licenses/LICENSE-2.0 8 | // 9 | // Unless required by applicable law or agreed to in writing, software distributed 10 | // under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR 11 | // CONDITIONS OF ANY KIND, either express or implied. See the License for the 12 | // specific language governing permissions and limitations under the License. 13 | //----------------------------------------------------------------------------------*/ 14 | 15 | namespace OBS.Model 16 | { 17 | /// 18 | /// Response to a request for configuring bucket CORS 19 | /// 20 | public class SetBucketCorsResponse : ObsWebServiceResponse 21 | { 22 | } 23 | } 24 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /OnceMi.AspNetCore.OSS/SDK/HuaweiCloud/Model/SetBucketLifecycleResponse.cs: -------------------------------------------------------------------------------- 1 | /*---------------------------------------------------------------------------------- 2 | // Copyright 2019 Huawei Technologies Co.,Ltd. 3 | // Licensed under the Apache License, Version 2.0 (the "License"); you may not use 4 | // this file except in compliance with the License. You may obtain a copy of the 5 | // License at 6 | // 7 | // http://www.apache.org/licenses/LICENSE-2.0 8 | // 9 | // Unless required by applicable law or agreed to in writing, software distributed 10 | // under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR 11 | // CONDITIONS OF ANY KIND, either express or implied. See the License for the 12 | // specific language governing permissions and limitations under the License. 13 | //----------------------------------------------------------------------------------*/ 14 | 15 | namespace OBS.Model 16 | { 17 | /// 18 | /// Response to a request for setting bucket lifecycle rules 19 | /// 20 | public class SetBucketLifecycleResponse : ObsWebServiceResponse 21 | { 22 | } 23 | } 24 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /OnceMi.AspNetCore.OSS/SDK/HuaweiCloud/Model/SetBucketLoggingResponse.cs: -------------------------------------------------------------------------------- 1 | /*---------------------------------------------------------------------------------- 2 | // Copyright 2019 Huawei Technologies Co.,Ltd. 3 | // Licensed under the Apache License, Version 2.0 (the "License"); you may not use 4 | // this file except in compliance with the License. You may obtain a copy of the 5 | // License at 6 | // 7 | // http://www.apache.org/licenses/LICENSE-2.0 8 | // 9 | // Unless required by applicable law or agreed to in writing, software distributed 10 | // under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR 11 | // CONDITIONS OF ANY KIND, either express or implied. See the License for the 12 | // specific language governing permissions and limitations under the License. 13 | //----------------------------------------------------------------------------------*/ 14 | 15 | namespace OBS.Model 16 | { 17 | /// 18 | /// Response to a request for setting bucket logging 19 | /// 20 | public partial class SetBucketLoggingResponse : ObsWebServiceResponse 21 | { 22 | } 23 | } 24 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /OnceMi.AspNetCore.OSS/SDK/HuaweiCloud/Model/SetBucketNotificationResponse.cs: -------------------------------------------------------------------------------- 1 | /*---------------------------------------------------------------------------------- 2 | // Copyright 2019 Huawei Technologies Co.,Ltd. 3 | // Licensed under the Apache License, Version 2.0 (the "License"); you may not use 4 | // this file except in compliance with the License. You may obtain a copy of the 5 | // License at 6 | // 7 | // http://www.apache.org/licenses/LICENSE-2.0 8 | // 9 | // Unless required by applicable law or agreed to in writing, software distributed 10 | // under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR 11 | // CONDITIONS OF ANY KIND, either express or implied. See the License for the 12 | // specific language governing permissions and limitations under the License. 13 | //----------------------------------------------------------------------------------*/ 14 | 15 | namespace OBS.Model 16 | { 17 | /// 18 | /// Response to a request for setting bucket notification 19 | /// 20 | public class SetBucketNotificationResponse : ObsWebServiceResponse 21 | { 22 | } 23 | } 24 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /OnceMi.AspNetCore.OSS/SDK/HuaweiCloud/Model/SetBucketPolicyResponse.cs: -------------------------------------------------------------------------------- 1 | /*---------------------------------------------------------------------------------- 2 | // Copyright 2019 Huawei Technologies Co.,Ltd. 3 | // Licensed under the Apache License, Version 2.0 (the "License"); you may not use 4 | // this file except in compliance with the License. You may obtain a copy of the 5 | // License at 6 | // 7 | // http://www.apache.org/licenses/LICENSE-2.0 8 | // 9 | // Unless required by applicable law or agreed to in writing, software distributed 10 | // under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR 11 | // CONDITIONS OF ANY KIND, either express or implied. See the License for the 12 | // specific language governing permissions and limitations under the License. 13 | //----------------------------------------------------------------------------------*/ 14 | 15 | namespace OBS.Model 16 | { 17 | /// 18 | /// Response to a request for setting bucket policies 19 | /// 20 | public class SetBucketPolicyResponse : ObsWebServiceResponse 21 | { 22 | } 23 | } 24 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /OnceMi.AspNetCore.OSS/SDK/HuaweiCloud/Model/SetBucketQuotaResponse.cs: -------------------------------------------------------------------------------- 1 | /*---------------------------------------------------------------------------------- 2 | // Copyright 2019 Huawei Technologies Co.,Ltd. 3 | // Licensed under the Apache License, Version 2.0 (the "License"); you may not use 4 | // this file except in compliance with the License. You may obtain a copy of the 5 | // License at 6 | // 7 | // http://www.apache.org/licenses/LICENSE-2.0 8 | // 9 | // Unless required by applicable law or agreed to in writing, software distributed 10 | // under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR 11 | // CONDITIONS OF ANY KIND, either express or implied. See the License for the 12 | // specific language governing permissions and limitations under the License. 13 | //----------------------------------------------------------------------------------*/ 14 | 15 | namespace OBS.Model 16 | { 17 | /// 18 | /// Response to a request for setting bucket quotas 19 | /// 20 | public class SetBucketQuotaResponse : ObsWebServiceResponse 21 | { 22 | 23 | } 24 | } 25 | 26 | 27 | 28 | -------------------------------------------------------------------------------- /OnceMi.AspNetCore.OSS/SDK/HuaweiCloud/Model/SetBucketReplicationResponse.cs: -------------------------------------------------------------------------------- 1 | /*---------------------------------------------------------------------------------- 2 | // Copyright 2019 Huawei Technologies Co.,Ltd. 3 | // Licensed under the Apache License, Version 2.0 (the "License"); you may not use 4 | // this file except in compliance with the License. You may obtain a copy of the 5 | // License at 6 | // 7 | // http://www.apache.org/licenses/LICENSE-2.0 8 | // 9 | // Unless required by applicable law or agreed to in writing, software distributed 10 | // under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR 11 | // CONDITIONS OF ANY KIND, either express or implied. See the License for the 12 | // specific language governing permissions and limitations under the License. 13 | //----------------------------------------------------------------------------------*/ 14 | 15 | namespace OBS.Model 16 | { 17 | /// 18 | /// Response to a request for setting cross-region replication of a bucket 19 | /// 20 | public class SetBucketReplicationResponse : ObsWebServiceResponse 21 | { 22 | } 23 | } 24 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /OnceMi.AspNetCore.OSS/SDK/HuaweiCloud/Model/SetBucketStoragePolicyResponse.cs: -------------------------------------------------------------------------------- 1 | /*---------------------------------------------------------------------------------- 2 | // Copyright 2019 Huawei Technologies Co.,Ltd. 3 | // Licensed under the Apache License, Version 2.0 (the "License"); you may not use 4 | // this file except in compliance with the License. You may obtain a copy of the 5 | // License at 6 | // 7 | // http://www.apache.org/licenses/LICENSE-2.0 8 | // 9 | // Unless required by applicable law or agreed to in writing, software distributed 10 | // under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR 11 | // CONDITIONS OF ANY KIND, either express or implied. See the License for the 12 | // specific language governing permissions and limitations under the License. 13 | //----------------------------------------------------------------------------------*/ 14 | 15 | namespace OBS.Model 16 | { 17 | /// 18 | /// Response to a request for setting a bucket storage class 19 | /// 20 | public class SetBucketStoragePolicyResponse : ObsWebServiceResponse 21 | { 22 | 23 | } 24 | } 25 | 26 | 27 | 28 | -------------------------------------------------------------------------------- /OnceMi.AspNetCore.OSS/SDK/HuaweiCloud/Model/SetBucketTaggingResponse.cs: -------------------------------------------------------------------------------- 1 | /*---------------------------------------------------------------------------------- 2 | // Copyright 2019 Huawei Technologies Co.,Ltd. 3 | // Licensed under the Apache License, Version 2.0 (the "License"); you may not use 4 | // this file except in compliance with the License. You may obtain a copy of the 5 | // License at 6 | // 7 | // http://www.apache.org/licenses/LICENSE-2.0 8 | // 9 | // Unless required by applicable law or agreed to in writing, software distributed 10 | // under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR 11 | // CONDITIONS OF ANY KIND, either express or implied. See the License for the 12 | // specific language governing permissions and limitations under the License. 13 | //----------------------------------------------------------------------------------*/ 14 | 15 | namespace OBS.Model 16 | { 17 | /// 18 | /// Response to a request for setting bucket tags 19 | /// 20 | public class SetBucketTaggingResponse : ObsWebServiceResponse 21 | { 22 | } 23 | } 24 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /OnceMi.AspNetCore.OSS/SDK/HuaweiCloud/Model/SetBucketVersioningResponse.cs: -------------------------------------------------------------------------------- 1 | /*---------------------------------------------------------------------------------- 2 | // Copyright 2019 Huawei Technologies Co.,Ltd. 3 | // Licensed under the Apache License, Version 2.0 (the "License"); you may not use 4 | // this file except in compliance with the License. You may obtain a copy of the 5 | // License at 6 | // 7 | // http://www.apache.org/licenses/LICENSE-2.0 8 | // 9 | // Unless required by applicable law or agreed to in writing, software distributed 10 | // under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR 11 | // CONDITIONS OF ANY KIND, either express or implied. See the License for the 12 | // specific language governing permissions and limitations under the License. 13 | //----------------------------------------------------------------------------------*/ 14 | 15 | namespace OBS.Model 16 | { 17 | /// 18 | /// Response to a request for setting bucket versioning 19 | /// 20 | public class SetBucketVersioningResponse : ObsWebServiceResponse 21 | { 22 | } 23 | } 24 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /OnceMi.AspNetCore.OSS/SDK/HuaweiCloud/Model/SetBucketWebsiteResponse.cs: -------------------------------------------------------------------------------- 1 | /*---------------------------------------------------------------------------------- 2 | // Copyright 2019 Huawei Technologies Co.,Ltd. 3 | // Licensed under the Apache License, Version 2.0 (the "License"); you may not use 4 | // this file except in compliance with the License. You may obtain a copy of the 5 | // License at 6 | // 7 | // http://www.apache.org/licenses/LICENSE-2.0 8 | // 9 | // Unless required by applicable law or agreed to in writing, software distributed 10 | // under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR 11 | // CONDITIONS OF ANY KIND, either express or implied. See the License for the 12 | // specific language governing permissions and limitations under the License. 13 | //----------------------------------------------------------------------------------*/ 14 | 15 | namespace OBS.Model 16 | { 17 | /// 18 | /// Response to a request for setting bucket website hosting rules 19 | /// 20 | public class SetBucketWebsiteResponse : ObsWebServiceResponse 21 | { 22 | } 23 | } 24 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /OnceMi.AspNetCore.OSS/SDK/HuaweiCloud/Model/SetObjectAclResponse.cs: -------------------------------------------------------------------------------- 1 | /*---------------------------------------------------------------------------------- 2 | // Copyright 2019 Huawei Technologies Co.,Ltd. 3 | // Licensed under the Apache License, Version 2.0 (the "License"); you may not use 4 | // this file except in compliance with the License. You may obtain a copy of the 5 | // License at 6 | // 7 | // http://www.apache.org/licenses/LICENSE-2.0 8 | // 9 | // Unless required by applicable law or agreed to in writing, software distributed 10 | // under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR 11 | // CONDITIONS OF ANY KIND, either express or implied. See the License for the 12 | // specific language governing permissions and limitations under the License. 13 | //----------------------------------------------------------------------------------*/ 14 | 15 | namespace OBS.Model 16 | { 17 | /// 18 | /// Response to a request for setting an object ACL 19 | /// 20 | public class SetObjectAclResponse : ObsWebServiceResponse 21 | { 22 | } 23 | } 24 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /OnceMi.AspNetCore.OSS/SDK/HuaweiCloud/Model/SseHeader.cs: -------------------------------------------------------------------------------- 1 | /*---------------------------------------------------------------------------------- 2 | // Copyright 2019 Huawei Technologies Co.,Ltd. 3 | // Licensed under the Apache License, Version 2.0 (the "License"); you may not use 4 | // this file except in compliance with the License. You may obtain a copy of the 5 | // License at 6 | // 7 | // http://www.apache.org/licenses/LICENSE-2.0 8 | // 9 | // Unless required by applicable law or agreed to in writing, software distributed 10 | // under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR 11 | // CONDITIONS OF ANY KIND, either express or implied. See the License for the 12 | // specific language governing permissions and limitations under the License. 13 | //----------------------------------------------------------------------------------*/ 14 | using System; 15 | using System.Collections.Generic; 16 | using System.Text; 17 | 18 | namespace OBS.Model 19 | { 20 | /// 21 | /// SSE encryption headers 22 | /// 23 | public interface SseHeader 24 | { 25 | 26 | } 27 | } 28 | 29 | 30 | -------------------------------------------------------------------------------- /OnceMi.AspNetCore.OSS/SDK/HuaweiCloud/Model/UploadPartResponse.cs: -------------------------------------------------------------------------------- 1 | /*---------------------------------------------------------------------------------- 2 | // Copyright 2019 Huawei Technologies Co.,Ltd. 3 | // Licensed under the Apache License, Version 2.0 (the "License"); you may not use 4 | // this file except in compliance with the License. You may obtain a copy of the 5 | // License at 6 | // 7 | // http://www.apache.org/licenses/LICENSE-2.0 8 | // 9 | // Unless required by applicable law or agreed to in writing, software distributed 10 | // under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR 11 | // CONDITIONS OF ANY KIND, either express or implied. See the License for the 12 | // specific language governing permissions and limitations under the License. 13 | //----------------------------------------------------------------------------------*/ 14 | 15 | namespace OBS.Model 16 | { 17 | /// 18 | /// Response to a part upload request 19 | /// 20 | public class UploadPartResponse : ObsWebServiceResponse 21 | { 22 | 23 | 24 | /// 25 | /// Part ETag 26 | /// 27 | public string ETag 28 | { 29 | get; 30 | internal set; 31 | } 32 | 33 | /// 34 | /// Part number 35 | /// 36 | public int PartNumber 37 | { 38 | get; 39 | internal set; 40 | } 41 | 42 | 43 | } 44 | } 45 | 46 | 47 | 48 | -------------------------------------------------------------------------------- /OnceMi.AspNetCore.OSS/SDK/HuaweiCloud/Model/VersioningConfiguration.cs: -------------------------------------------------------------------------------- 1 | /*---------------------------------------------------------------------------------- 2 | // Copyright 2019 Huawei Technologies Co.,Ltd. 3 | // Licensed under the Apache License, Version 2.0 (the "License"); you may not use 4 | // this file except in compliance with the License. You may obtain a copy of the 5 | // License at 6 | // 7 | // http://www.apache.org/licenses/LICENSE-2.0 8 | // 9 | // Unless required by applicable law or agreed to in writing, software distributed 10 | // under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR 11 | // CONDITIONS OF ANY KIND, either express or implied. See the License for the 12 | // specific language governing permissions and limitations under the License. 13 | //----------------------------------------------------------------------------------*/ 14 | 15 | namespace OBS.Model 16 | { 17 | /// 18 | /// Bucket versioning configuration 19 | /// 20 | 21 | public class VersioningConfiguration 22 | { 23 | 24 | 25 | /// 26 | /// Bucket versioning status 27 | /// 28 | /// 29 | /// 30 | /// Mandatory parameter 31 | /// 32 | /// 33 | public VersionStatusEnum? Status 34 | { 35 | get; 36 | set; 37 | } 38 | } 39 | } 40 | 41 | 42 | -------------------------------------------------------------------------------- /OnceMi.AspNetCore.OSS/SDK/Minio/Credentials/EnvironmentProvider.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * MinIO .NET Library for Amazon S3 Compatible Cloud Storage, 3 | * (C) 2021 MinIO, Inc. 4 | * 5 | * Licensed under the Apache License, Version 2.0 (the "License"); 6 | * you may not use this file except in compliance with the License. 7 | * You may obtain a copy of the License at 8 | * 9 | * http://www.apache.org/licenses/LICENSE-2.0 10 | * 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | 18 | using System; 19 | 20 | namespace Minio.Credentials 21 | { 22 | public abstract class EnvironmentProvider : ClientProvider 23 | { 24 | internal string GetEnvironmentVariable(string env) 25 | { 26 | return Environment.GetEnvironmentVariable(env); 27 | } 28 | } 29 | } -------------------------------------------------------------------------------- /OnceMi.AspNetCore.OSS/SDK/Minio/Credentials/IClientProvider.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * MinIO .NET Library for Amazon S3 Compatible Cloud Storage, 3 | * (C) 2021 MinIO, Inc. 4 | * 5 | * Licensed under the Apache License, Version 2.0 (the "License"); 6 | * you may not use this file except in compliance with the License. 7 | * You may obtain a copy of the License at 8 | * 9 | * http://www.apache.org/licenses/LICENSE-2.0 10 | * 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | 18 | using System.Threading.Tasks; 19 | using Minio.DataModel; 20 | 21 | namespace Minio.Credentials 22 | { 23 | public abstract class ClientProvider 24 | { 25 | public abstract AccessCredentials GetCredentials(); 26 | public abstract Task GetCredentialsAsync(); 27 | } 28 | } -------------------------------------------------------------------------------- /OnceMi.AspNetCore.OSS/SDK/Minio/Credentials/JsonWebToken.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * MinIO .NET Library for Amazon S3 Compatible Cloud Storage, 3 | * (C) 2021 MinIO, Inc. 4 | * 5 | * Licensed under the Apache License, Version 2.0 (the "License"); 6 | * you may not use this file except in compliance with the License. 7 | * You may obtain a copy of the License at 8 | * 9 | * http://www.apache.org/licenses/LICENSE-2.0 10 | * 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | 18 | using Newtonsoft.Json; 19 | using Newtonsoft.Json.Serialization; 20 | 21 | namespace Minio.Credentials 22 | { 23 | public class JsonWebToken 24 | { 25 | [JsonProperty("access_token")] 26 | public string AccessToken { get; set; } 27 | [JsonProperty("expires_in")] 28 | public uint Expiry { get; set; } 29 | 30 | public JsonWebToken(string token, uint expiry) 31 | { 32 | this.AccessToken = token; 33 | this.Expiry = expiry; 34 | } 35 | } 36 | } -------------------------------------------------------------------------------- /OnceMi.AspNetCore.OSS/SDK/Minio/DataModel/Args.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * MinIO .NET Library for Amazon S3 Compatible Cloud Storage, (C) 2020 MinIO, Inc. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | using System.Net.Http; 18 | 19 | namespace Minio 20 | { 21 | public abstract class Args 22 | { 23 | 24 | // RequestMethod will be the HTTP Method for request variable, 25 | // which is of type HttpRequestMessage. 26 | // Will be one of the types: - HEAD, GET, PUT, DELETE. etc. 27 | internal HttpMethod RequestMethod { get; set; } 28 | 29 | internal virtual HttpRequestMessageBuilder BuildRequest(HttpRequestMessageBuilder requestMessageBuilder) 30 | { 31 | return requestMessageBuilder; 32 | } 33 | } 34 | } -------------------------------------------------------------------------------- /OnceMi.AspNetCore.OSS/SDK/Minio/DataModel/Bucket.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * MinIO .NET Library for Amazon S3 Compatible Cloud Storage, (C) 2017 MinIO, Inc. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | using System; 18 | using System.Globalization; 19 | 20 | namespace Minio.DataModel 21 | { 22 | [Serializable] 23 | public class Bucket 24 | { 25 | public string Name { get; set; } 26 | public string CreationDate { get; set; } 27 | 28 | public DateTime CreationDateDateTime 29 | { 30 | get 31 | { 32 | return DateTime.Parse(this.CreationDate, CultureInfo.InvariantCulture); 33 | } 34 | } 35 | } 36 | } 37 | -------------------------------------------------------------------------------- /OnceMi.AspNetCore.OSS/SDK/Minio/DataModel/CopyObjectResult.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * MinIO .NET Library for Amazon S3 Compatible Cloud Storage, (C) 2017 MinIO, Inc. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | using System; 18 | using System.Xml.Serialization; 19 | 20 | namespace Minio.DataModel 21 | { 22 | [Serializable] 23 | [XmlRoot(ElementName = "CopyObjectResult", Namespace = "http://s3.amazonaws.com/doc/2006-03-01/")] 24 | public class CopyObjectResult 25 | { 26 | public string ETag { get; set; } 27 | public string LastModified { get; set; } 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /OnceMi.AspNetCore.OSS/SDK/Minio/DataModel/CopyPartResult.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * MinIO .NET Library for Amazon S3 Compatible Cloud Storage, (C) 2017 MinIO, Inc. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | using System; 18 | using System.Xml.Serialization; 19 | 20 | namespace Minio.DataModel 21 | { 22 | [Serializable] 23 | [XmlRoot(ElementName = "CopyPartResult", Namespace = "http://s3.amazonaws.com/doc/2006-03-01/")] 24 | public class CopyPartResult 25 | { 26 | public string ETag { get; set; } 27 | public string LastModified { get; set; } 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /OnceMi.AspNetCore.OSS/SDK/Minio/DataModel/DeleteObject.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * MinIO .NET Library for Amazon S3 Compatible Cloud Storage, (C) 2017 MinIO, Inc. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | using System; 18 | using System.Xml.Serialization; 19 | 20 | namespace Minio.DataModel 21 | { 22 | [Serializable] 23 | [XmlType(TypeName = "Object")] 24 | public class DeleteObject 25 | { 26 | [XmlElement("Key")] 27 | public string Key { get; set; } 28 | 29 | [XmlElement("VersionId")] 30 | public string VersionId { get; set; } 31 | 32 | public DeleteObject() 33 | { 34 | this.Key = null; 35 | this.VersionId = null; 36 | } 37 | public DeleteObject(string key, string versionId = null) 38 | { 39 | this.Key = key; 40 | this.VersionId = versionId; 41 | } 42 | } 43 | } 44 | -------------------------------------------------------------------------------- /OnceMi.AspNetCore.OSS/SDK/Minio/DataModel/DeleteObjectsResult.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * MinIO .NET Library for Amazon S3 Compatible Cloud Storage, (C) 2017 MinIO, Inc. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | using Minio.Exceptions; 18 | using System; 19 | using System.Collections.Generic; 20 | using System.Xml.Serialization; 21 | 22 | namespace Minio.DataModel 23 | { 24 | [Serializable] 25 | [XmlRoot(ElementName = "DeleteResult", Namespace = "http://s3.amazonaws.com/doc/2006-03-01/")] 26 | public class DeleteObjectsResult 27 | { 28 | [XmlElement("Deleted")] 29 | public List objectsList; 30 | 31 | [XmlElement("Error")] 32 | public List errorList; 33 | 34 | public List ObjectsList() => this.objectsList; 35 | 36 | public List ErrorList() => this.errorList; 37 | } 38 | } 39 | -------------------------------------------------------------------------------- /OnceMi.AspNetCore.OSS/SDK/Minio/DataModel/DeletedObject.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * MinIO .NET Library for Amazon S3 Compatible Cloud Storage, (C) 2017 MinIO, Inc. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | using System; 18 | using System.Xml.Serialization; 19 | 20 | namespace Minio.DataModel 21 | { 22 | [Serializable] 23 | public class DeletedObject 24 | { 25 | [XmlElement("Key")] 26 | public string Key { get; set; } 27 | 28 | [XmlElement("VersionId")] 29 | public string VersionId { get; set; } 30 | 31 | [XmlElement("DeleteMarker")] 32 | public string DeleteMarker { get; set; } 33 | 34 | [XmlElement("DeleteMarkerVersionId")] 35 | public string DeleteMarkerVersionId { get; set; } 36 | } 37 | } 38 | -------------------------------------------------------------------------------- /OnceMi.AspNetCore.OSS/SDK/Minio/DataModel/EncryptionArgs.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * MinIO .NET Library for Amazon S3 Compatible Cloud Storage, (C) 2021 MinIO, Inc. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | using System.Collections.Generic; 18 | using Minio.DataModel; 19 | 20 | namespace Minio 21 | { 22 | public abstract class EncryptionArgs : ObjectArgs 23 | where T : EncryptionArgs 24 | { 25 | internal ServerSideEncryption SSE { get; set; } 26 | 27 | public EncryptionArgs() 28 | { 29 | } 30 | 31 | public T WithServerSideEncryption(ServerSideEncryption sse) 32 | { 33 | this.SSE = sse; 34 | return (T)this; 35 | } 36 | } 37 | } -------------------------------------------------------------------------------- /OnceMi.AspNetCore.OSS/SDK/Minio/DataModel/GenericResponse.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * MinIO .NET Library for Amazon S3 Compatible Cloud Storage, (C) 2020 MinIO, Inc. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | using System.Net; 18 | 19 | namespace Minio 20 | { 21 | public class GenericResponse 22 | { 23 | 24 | internal string ResponseContent { get; private set; } 25 | internal HttpStatusCode ResponseStatusCode { get; private set; } 26 | internal GenericResponse(HttpStatusCode statusCode, string responseContent) 27 | { 28 | this.ResponseContent = responseContent; 29 | this.ResponseStatusCode = ResponseStatusCode; 30 | } 31 | } 32 | } -------------------------------------------------------------------------------- /OnceMi.AspNetCore.OSS/SDK/Minio/DataModel/ILM/Duration.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * MinIO .NET Library for Amazon S3 Compatible Cloud Storage, (C) 2021 MinIO, Inc. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | using System; 18 | using System.Xml.Serialization; 19 | 20 | namespace Minio.DataModel 21 | { 22 | [Serializable] 23 | public abstract class Duration 24 | { 25 | [XmlElement(ElementName = "Date", IsNullable = true)] 26 | public string Date { get; set; } 27 | 28 | public Duration() 29 | { 30 | this.Date = null; 31 | } 32 | 33 | public Duration(DateTime date) 34 | { 35 | date = new DateTime(date.Year, date.Month, date.Day, 0, 0, 0); 36 | this.Date = utils.To8601String(date); 37 | } 38 | } 39 | } -------------------------------------------------------------------------------- /OnceMi.AspNetCore.OSS/SDK/Minio/DataModel/InitiateMultipartUploadResult.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * MinIO .NET Library for Amazon S3 Compatible Cloud Storage, (C) 2017 MinIO, Inc. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | using System; 18 | using System.Xml.Serialization; 19 | 20 | namespace Minio.DataModel 21 | { 22 | [Serializable] 23 | [XmlRoot(ElementName = "InitiateMultipartUploadResult", Namespace = "http://s3.amazonaws.com/doc/2006-03-01/")] 24 | public class InitiateMultipartUploadResult 25 | { 26 | public string UploadId { get; set; } 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /OnceMi.AspNetCore.OSS/SDK/Minio/DataModel/ListAllMyBucketsResult.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * MinIO .NET Library for Amazon S3 Compatible Cloud Storage, (C) 2017 MinIO, Inc. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | using System; 18 | using System.Collections.Generic; 19 | using System.Xml.Serialization; 20 | 21 | namespace Minio.DataModel 22 | { 23 | [Serializable] 24 | [XmlRoot(ElementName = "ListAllMyBucketsResult", Namespace = "http://s3.amazonaws.com/doc/2006-03-01/")] 25 | [XmlInclude(typeof(Bucket))] 26 | public class ListAllMyBucketsResult 27 | { 28 | [XmlAttribute] 29 | public string Owner { get; set; } 30 | 31 | [XmlArray("Buckets")] 32 | [XmlArrayItem(typeof(Bucket))] 33 | public List Buckets { get; set; } 34 | } 35 | } 36 | -------------------------------------------------------------------------------- /OnceMi.AspNetCore.OSS/SDK/Minio/DataModel/ListMultipartUploadsResult.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * MinIO .NET Library for Amazon S3 Compatible Cloud Storage, (C) 2017 MinIO, Inc. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | using System; 18 | using System.Xml.Serialization; 19 | 20 | namespace Minio.DataModel 21 | { 22 | [Serializable] 23 | [XmlRoot(ElementName = "ListMultipartUploadsResult", Namespace = "http://s3.amazonaws.com/doc/2006-03-01/")] 24 | public class ListMultipartUploadsResult 25 | { 26 | public string Bucket { get; set; } 27 | public string KeyMarker { get; set; } 28 | public string UploadIdMarker { get; set; } 29 | public string NextKeyMarker { get; set; } 30 | public string NextUploadIdMarker { get; set; } 31 | public int MaxUploads { get; set; } 32 | public bool IsTruncated { get; set; } 33 | } 34 | } 35 | -------------------------------------------------------------------------------- /OnceMi.AspNetCore.OSS/SDK/Minio/DataModel/ListPartsResult.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * MinIO .NET Library for Amazon S3 Compatible Cloud Storage, (C) 2017 MinIO, Inc. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | using System; 18 | using System.Xml.Serialization; 19 | 20 | namespace Minio.DataModel 21 | { 22 | [Serializable] 23 | [XmlRoot(ElementName = "ListPartsResult", Namespace = "http://s3.amazonaws.com/doc/2006-03-01/")] 24 | public class ListPartsResult 25 | { 26 | public int NextPartNumberMarker { get; set; } 27 | public bool IsTruncated { get; set; } 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /OnceMi.AspNetCore.OSS/SDK/Minio/DataModel/Notification/Filter.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * MinIO .NET Library for Amazon S3 Compatible Cloud Storage, (C) 2017 MinIO, Inc. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | using System; 18 | using System.Xml.Serialization; 19 | 20 | namespace Minio.DataModel 21 | { 22 | // Filter - a tag in the notification xml structure which carries 23 | // suffix/prefix filters 24 | [Serializable] 25 | public class Filter 26 | { 27 | [XmlElement("S3Key")] 28 | public S3Key S3Key { get; set; } 29 | 30 | public Filter() 31 | { 32 | this.S3Key = new S3Key(); 33 | } 34 | 35 | public Filter(S3Key key) 36 | { 37 | this.S3Key = key; 38 | } 39 | 40 | // Helper to XMLSerializer which decides whether to serialize S3Key 41 | public bool ShouldSerializeS3Key() => S3Key.FilterRules.Count != 0; 42 | } 43 | } -------------------------------------------------------------------------------- /OnceMi.AspNetCore.OSS/SDK/Minio/DataModel/ObjectArgs.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * MinIO .NET Library for Amazon S3 Compatible Cloud Storage, (C) 2020 MinIO, Inc. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | using System; 18 | 19 | 20 | namespace Minio 21 | { 22 | public abstract class ObjectArgs : BucketArgs 23 | where T : ObjectArgs 24 | { 25 | internal string ObjectName { get; set; } 26 | internal byte[] RequestBody { get; set; } 27 | 28 | public T WithObject(string obj) 29 | { 30 | this.ObjectName = obj; 31 | return (T)this; 32 | } 33 | 34 | public T WithRequestBody(byte[] data) 35 | { 36 | this.RequestBody = data; 37 | return (T)this; 38 | } 39 | 40 | internal override void Validate() 41 | { 42 | base.Validate(); 43 | utils.ValidateObjectName(this.ObjectName); 44 | } 45 | } 46 | } -------------------------------------------------------------------------------- /OnceMi.AspNetCore.OSS/SDK/Minio/DataModel/ObjectLock/DefaultRetention.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * MinIO .NET Library for Amazon S3 Compatible Cloud Storage, (C) 2020 MinIO, Inc. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | using System; 17 | using System.Xml.Serialization; 18 | 19 | namespace Minio.DataModel.ObjectLock 20 | { 21 | [Serializable] 22 | [XmlRoot(ElementName = "DefaultRetention", Namespace = "http://s3.amazonaws.com/doc/2006-03-01/")] 23 | public class DefaultRetention 24 | { 25 | public DefaultRetention() 26 | { 27 | } 28 | 29 | public DefaultRetention(int days, RetentionMode mode) 30 | { 31 | this.Days = days; 32 | this.Mode = mode; 33 | } 34 | [XmlElement("Days")] 35 | public int Days { get; set; } 36 | [XmlElement("Mode")] 37 | public RetentionMode Mode { get; set; } 38 | 39 | } 40 | } -------------------------------------------------------------------------------- /OnceMi.AspNetCore.OSS/SDK/Minio/DataModel/ObjectLock/ObjectLockRule.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * MinIO .NET Library for Amazon S3 Compatible Cloud Storage, (C) 2020, 2021 MinIO, Inc. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | using System; 18 | using System.Xml.Serialization; 19 | 20 | namespace Minio.DataModel.ObjectLock 21 | { 22 | [Serializable] 23 | [XmlRoot(ElementName = "ObjectLockRule", Namespace = "http://s3.amazonaws.com/doc/2006-03-01/")] 24 | public class ObjectLockRule 25 | { 26 | [XmlElement("DefaultRetention")] 27 | public DefaultRetention DefaultRetention { get; set; } 28 | public ObjectLockRule() 29 | { 30 | this.DefaultRetention = null; 31 | } 32 | 33 | public ObjectLockRule(RetentionMode mode, int retentionDurationDays) 34 | { 35 | this.DefaultRetention = new DefaultRetention(retentionDurationDays, mode); 36 | } 37 | } 38 | } -------------------------------------------------------------------------------- /OnceMi.AspNetCore.OSS/SDK/Minio/DataModel/ObjectVersionArgs.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * MinIO .NET Library for Amazon S3 Compatible Cloud Storage, (C) 2020 MinIO, Inc. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | namespace Minio 18 | { 19 | public abstract class ObjectVersionArgs : EncryptionArgs 20 | where T : ObjectVersionArgs 21 | { 22 | internal string VersionId { get; set; } 23 | public T WithVersionId(string vid) 24 | { 25 | this.VersionId = vid; 26 | return (T)this; 27 | } 28 | } 29 | } -------------------------------------------------------------------------------- /OnceMi.AspNetCore.OSS/SDK/Minio/DataModel/Prefix.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * MinIO .NET Library for Amazon S3 Compatible Cloud Storage, (C) 2017 MinIO, Inc. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | using System; 18 | using System.Xml.Serialization; 19 | 20 | namespace Minio.DataModel 21 | { 22 | [Serializable] 23 | public class Prefix 24 | { 25 | [XmlAttribute("Prefix")] 26 | public string Name { get; set; } 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /OnceMi.AspNetCore.OSS/SDK/Minio/DataModel/Select/CSVFileHeaderInfo.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * MinIO .NET Library for Amazon S3 Compatible Cloud Storage, (C) 2020 MinIO, Inc. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | using System.Xml.Serialization; 18 | 19 | namespace Minio.DataModel 20 | { 21 | public sealed class CSVFileHeaderInfo 22 | { 23 | // Constants for file header info. 24 | public static readonly CSVFileHeaderInfo None = new CSVFileHeaderInfo("NONE"); 25 | public static readonly CSVFileHeaderInfo Ignore = new CSVFileHeaderInfo("IGNORE"); 26 | public static readonly CSVFileHeaderInfo Use = new CSVFileHeaderInfo("USE"); 27 | [XmlText] 28 | public string HeaderInfo; 29 | public CSVFileHeaderInfo() 30 | { 31 | } 32 | 33 | public CSVFileHeaderInfo(string value) 34 | { 35 | this.HeaderInfo = value; 36 | } 37 | } 38 | } 39 | -------------------------------------------------------------------------------- /OnceMi.AspNetCore.OSS/SDK/Minio/DataModel/Select/CSVQuoteFields.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * MinIO .NET Library for Amazon S3 Compatible Cloud Storage, (C) 2020 MinIO, Inc. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | using System.Xml.Serialization; 18 | 19 | namespace Minio.DataModel 20 | { 21 | public sealed class CSVQuoteFields 22 | { 23 | // Constants for csv quote styles. 24 | public static readonly CSVQuoteFields Always = new CSVQuoteFields("Always"); 25 | public static readonly CSVQuoteFields AsNeeded = new CSVQuoteFields("AsNeeded"); 26 | 27 | [XmlText] 28 | public string QuoteFields; 29 | 30 | public CSVQuoteFields(string value) 31 | { 32 | this.QuoteFields = value; 33 | } 34 | public CSVQuoteFields() 35 | { 36 | 37 | } 38 | } 39 | } 40 | -------------------------------------------------------------------------------- /OnceMi.AspNetCore.OSS/SDK/Minio/DataModel/Select/InputSerialization.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * MinIO .NET Library for Amazon S3 Compatible Cloud Storage, (C) 2020 MinIO, Inc. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | using System; 18 | using System.Xml.Serialization; 19 | 20 | namespace Minio.DataModel 21 | { 22 | [Serializable] 23 | public class InputSerialization 24 | { 25 | public SelectCompressionType CompressionType { get; set; } 26 | [XmlElement("Parquet")] 27 | public ParquetInputOptions Parquet { get; set; } 28 | [XmlElement("CSV")] 29 | public CSVInputOptions CSV { get; set; } 30 | [XmlElement("JSON")] 31 | public JSONInputOptions JSON { get; set; } 32 | } 33 | } 34 | -------------------------------------------------------------------------------- /OnceMi.AspNetCore.OSS/SDK/Minio/DataModel/Select/JSONInputOptions.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * MinIO .NET Library for Amazon S3 Compatible Cloud Storage, (C) 2020 MinIO, Inc. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | using System; 18 | 19 | namespace Minio.DataModel 20 | { 21 | // JSONInputOptions json input specific options 22 | [Serializable] 23 | public class JSONInputOptions 24 | { 25 | public JSONType Type { get; set; } 26 | public JSONInputOptions() 27 | { 28 | 29 | } 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /OnceMi.AspNetCore.OSS/SDK/Minio/DataModel/Select/JSONOutputOptions.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * MinIO .NET Library for Amazon S3 Compatible Cloud Storage, (C) 2020 MinIO, Inc. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | using System; 18 | 19 | namespace Minio.DataModel 20 | { 21 | // JSONOutputOptions - json output specific options 22 | [Serializable] 23 | public class JSONOutputOptions 24 | { 25 | public string RecordDelimiter { get; set; } 26 | public JSONOutputOptions() 27 | { 28 | } 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /OnceMi.AspNetCore.OSS/SDK/Minio/DataModel/Select/JSONType.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * MinIO .NET Library for Amazon S3 Compatible Cloud Storage, (C) 2020 MinIO, Inc. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | using System.Xml.Serialization; 18 | 19 | namespace Minio.DataModel 20 | { 21 | public sealed class JSONType 22 | { 23 | // Constants for JSONTypes. 24 | public static readonly JSONType Document = new JSONType("DOCUMENT"); 25 | public static readonly JSONType Lines = new JSONType("LINES"); 26 | [XmlText] 27 | public string Type; 28 | public JSONType() 29 | { 30 | } 31 | 32 | public JSONType(string value) 33 | { 34 | this.Type = value; 35 | } 36 | } 37 | } 38 | -------------------------------------------------------------------------------- /OnceMi.AspNetCore.OSS/SDK/Minio/DataModel/Select/MessageType.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * MinIO .NET Library for Amazon S3 Compatible Cloud Storage, (C) 2020 MinIO, Inc. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | using System; 18 | using System.Xml.Serialization; 19 | 20 | namespace Minio.DataModel 21 | { 22 | public sealed class MessageType 23 | { 24 | // Constants for JSONTypes. 25 | public static readonly MessageType Error = new MessageType("error"); 26 | public static readonly MessageType Event = new MessageType("event"); 27 | [XmlText] 28 | public String Type; 29 | 30 | public MessageType() 31 | { 32 | } 33 | 34 | public MessageType(string value) 35 | { 36 | this.Type = value; 37 | } 38 | } 39 | } 40 | -------------------------------------------------------------------------------- /OnceMi.AspNetCore.OSS/SDK/Minio/DataModel/Select/OutputSerialization.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * MinIO .NET Library for Amazon S3 Compatible Cloud Storage, (C) 2020 MinIO, Inc. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | using System; 18 | using System.Xml.Serialization; 19 | 20 | namespace Minio.DataModel 21 | { 22 | [Serializable] 23 | public class OutputSerialization 24 | { 25 | [XmlAttribute("CSV")] 26 | public CSVOutputOptions CSV { get; set; } 27 | [XmlAttribute("JSON")] 28 | public JSONOutputOptions JSON { get; set; } 29 | 30 | public OutputSerialization() 31 | { 32 | 33 | } 34 | } 35 | } 36 | -------------------------------------------------------------------------------- /OnceMi.AspNetCore.OSS/SDK/Minio/DataModel/Select/ParquetInputOptions.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * MinIO .NET Library for Amazon S3 Compatible Cloud Storage, (C) 2020 MinIO, Inc. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | using System; 18 | 19 | namespace Minio.DataModel 20 | { 21 | [Serializable] 22 | public class ParquetInputOptions 23 | { 24 | public ParquetInputOptions() 25 | { 26 | 27 | } 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /OnceMi.AspNetCore.OSS/SDK/Minio/DataModel/Select/ProgressMessage.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * MinIO .NET Library for Amazon S3 Compatible Cloud Storage, (C) 2020 MinIO, Inc. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | using System; 18 | using System.Xml.Serialization; 19 | 20 | namespace Minio.DataModel 21 | { 22 | [Serializable] 23 | [XmlRoot(ElementName = "Progress")] 24 | public sealed class ProgressMessage : StatsMessage 25 | { 26 | public ProgressMessage() 27 | { 28 | } 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /OnceMi.AspNetCore.OSS/SDK/Minio/DataModel/Select/QueryExpressionType.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * MinIO .NET Library for Amazon S3 Compatible Cloud Storage, (C) 2020 MinIO, Inc. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | using System; 18 | using System.Xml.Serialization; 19 | 20 | namespace Minio.DataModel 21 | { 22 | [Serializable] 23 | public sealed class QueryExpressionType 24 | { 25 | // Constants for compression types under select API. 26 | public static readonly QueryExpressionType SQL = new QueryExpressionType("SQL"); 27 | [XmlText] 28 | public String ExpressionType; 29 | public QueryExpressionType() 30 | { 31 | 32 | } 33 | public QueryExpressionType(string value) 34 | { 35 | this.ExpressionType = value; 36 | } 37 | } 38 | } 39 | -------------------------------------------------------------------------------- /OnceMi.AspNetCore.OSS/SDK/Minio/DataModel/Select/RequestProgress.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * MinIO .NET Library for Amazon S3 Compatible Cloud Storage, (C) 2020 MinIO, Inc. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | using System; 18 | using System.Xml.Serialization; 19 | 20 | namespace Minio.DataModel 21 | { 22 | [Serializable] 23 | public class RequestProgress 24 | { 25 | [XmlElement(IsNullable = false)] 26 | public bool Enable { get; set; } 27 | 28 | public RequestProgress() 29 | { 30 | } 31 | 32 | public RequestProgress(bool val) 33 | { 34 | this.Enable = val; 35 | } 36 | } 37 | } 38 | -------------------------------------------------------------------------------- /OnceMi.AspNetCore.OSS/SDK/Minio/DataModel/Select/SelectObjectContentResponse.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * MinIO .NET Library for Amazon S3 Compatible Cloud Storage, (C) 2020 MinIO, Inc. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | using System; 18 | using System.IO; 19 | 20 | namespace Minio.DataModel 21 | { 22 | [Serializable] 23 | public class SelectObjectContentResponse 24 | { 25 | /// Event Stream result of SelectObjectContent 26 | public Action StreamCallBack { get; set; } 27 | 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /OnceMi.AspNetCore.OSS/SDK/Minio/DataModel/Select/SelectObjectInputSerialization.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * MinIO .NET Library for Amazon S3 Compatible Cloud Storage, (C) 2020 MinIO, Inc. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | using System; 18 | using System.Xml.Serialization; 19 | 20 | namespace Minio.DataModel 21 | { 22 | [Serializable] 23 | public class SelectObjectInputSerialization 24 | { 25 | public SelectCompressionType CompressionType { get; set; } 26 | [XmlElement("Parquet")] 27 | public ParquetInputOptions Parquet { get; set; } 28 | [XmlElement("CSV")] 29 | public CSVInputOptions CSV { get; set; } 30 | [XmlElement("JSON")] 31 | public JSONInputOptions JSON { get; set; } 32 | } 33 | } 34 | -------------------------------------------------------------------------------- /OnceMi.AspNetCore.OSS/SDK/Minio/DataModel/Select/SelectObjectOutputSerialization.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * MinIO .NET Library for Amazon S3 Compatible Cloud Storage, (C) 2020 MinIO, Inc. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | using System; 18 | using System.Xml.Serialization; 19 | 20 | namespace Minio.DataModel 21 | { 22 | [Serializable] 23 | public class SelectObjectOutputSerialization 24 | { 25 | [XmlElement("CSV")] 26 | public CSVOutputOptions CSV { get; set; } 27 | [XmlElement("JSON")] 28 | public JSONOutputOptions JSON { get; set; } 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /OnceMi.AspNetCore.OSS/SDK/Minio/DataModel/Select/SelectObjectType.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * MinIO .NET Library for Amazon S3 Compatible Cloud Storage, (C) 2020 MinIO, Inc. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | 18 | namespace Minio.DataModel 19 | { 20 | public sealed class SelectObjectType 21 | { 22 | // Constants for JSONTypes. 23 | public static readonly SelectObjectType CSV = new SelectObjectType("CSV"); 24 | public static readonly SelectObjectType JSON = new SelectObjectType("JSON"); 25 | public static readonly SelectObjectType Parquet= new SelectObjectType("Parquet"); 26 | 27 | public string Type; 28 | public SelectObjectType() 29 | { 30 | } 31 | public SelectObjectType(string value) 32 | { 33 | this.Type = value; 34 | } 35 | } 36 | } 37 | -------------------------------------------------------------------------------- /OnceMi.AspNetCore.OSS/SDK/Minio/DataModel/Select/StatsMessage.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * MinIO .NET Library for Amazon S3 Compatible Cloud Storage, (C) 2020 MinIO, Inc. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | using System; 18 | using System.Xml; 19 | using System.Xml.Serialization; 20 | 21 | // StatsMessage is a struct for stat xml message. 22 | namespace Minio.DataModel 23 | { 24 | [Serializable] 25 | [XmlRoot(ElementName = "Stats")] 26 | public class StatsMessage 27 | { 28 | [XmlElement] 29 | public long BytesScanned { get; set; } 30 | [XmlElement] 31 | public long BytesProcessed { get; set; } 32 | [XmlElement] 33 | public long BytesReturned { get; set; } 34 | 35 | } 36 | } 37 | -------------------------------------------------------------------------------- /OnceMi.AspNetCore.OSS/SDK/Minio/DataModel/Tags/Tag.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * MinIO .NET Library for Amazon S3 Compatible Cloud Storage, (C) 2020 MinIO, Inc. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | using System; 18 | using System.Xml.Serialization; 19 | 20 | namespace Minio.DataModel.Tags 21 | { 22 | [Serializable] 23 | [XmlRoot(ElementName = "Tag")] 24 | 25 | public class Tag 26 | { 27 | [XmlElement("Key")] 28 | public string Key { get; set; } 29 | [XmlElement("Value")] 30 | public string Value { get; set; } 31 | public Tag() 32 | { 33 | } 34 | 35 | public Tag(string key, string value) 36 | { 37 | this.Key = key; 38 | this.Value = value; 39 | 40 | } 41 | } 42 | } -------------------------------------------------------------------------------- /OnceMi.AspNetCore.OSS/SDK/Minio/DataModel/Tracing/RequestParameter.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * MinIO .NET Library for Amazon S3 Compatible Cloud Storage, (C) 2017 MinIO, Inc. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | namespace Minio.DataModel.Tracing 18 | { 19 | public sealed class RequestParameter 20 | { 21 | public string name { get; internal set; } 22 | public object value { get; internal set; } 23 | public string type { get; internal set; } 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /OnceMi.AspNetCore.OSS/SDK/Minio/DataModel/Tracing/RequestToLog.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * MinIO .NET Library for Amazon S3 Compatible Cloud Storage, (C) 2017 MinIO, Inc. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | using System; 18 | using System.Collections.Generic; 19 | 20 | namespace Minio.DataModel.Tracing 21 | { 22 | public sealed class RequestToLog 23 | { 24 | public string resource { get; internal set; } 25 | public IEnumerable parameters { get; internal set; } 26 | public string method { get; internal set; } 27 | public Uri uri { get; internal set; } 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /OnceMi.AspNetCore.OSS/SDK/Minio/DataModel/Tracing/ResponseToLog.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * MinIO .NET Library for Amazon S3 Compatible Cloud Storage, (C) 2017 MinIO, Inc. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | using System; 18 | using System.Collections.Generic; 19 | using System.Net; 20 | 21 | namespace Minio.DataModel.Tracing 22 | { 23 | public sealed class ResponseToLog 24 | { 25 | public string content { get; internal set; } 26 | public Dictionary headers { get; internal set; } 27 | public HttpStatusCode statusCode { get; internal set; } 28 | public Uri responseUri { get; internal set; } 29 | public double durationMs { get; internal set; } 30 | public string errorMessage { get; set; } 31 | } 32 | } 33 | -------------------------------------------------------------------------------- /OnceMi.AspNetCore.OSS/SDK/Minio/DataModel/Upload.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * MinIO .NET Library for Amazon S3 Compatible Cloud Storage, (C) 2017 MinIO, Inc. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | namespace Minio.DataModel 18 | { 19 | public class Upload 20 | { 21 | public string Key { get; set; } 22 | public string UploadId { get; set; } 23 | public string Initiated { get; set; } 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /OnceMi.AspNetCore.OSS/SDK/Minio/Exceptions/AccessDeniedException.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * MinIO .NET Library for Amazon S3 Compatible Cloud Storage, 3 | * (C) 2017, 2018, 2019, 2020 MinIO, Inc. 4 | * 5 | * Licensed under the Apache License, Version 2.0 (the "License"); 6 | * you may not use this file except in compliance with the License. 7 | * You may obtain a copy of the License at 8 | * 9 | * http://www.apache.org/licenses/LICENSE-2.0 10 | * 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | 18 | using System; 19 | 20 | namespace Minio.Exceptions 21 | { 22 | [Serializable] 23 | public class AccessDeniedException : MinioException 24 | { 25 | public AccessDeniedException(string message) : base(message) 26 | { 27 | } 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /OnceMi.AspNetCore.OSS/SDK/Minio/Exceptions/BucketNotFoundException.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * MinIO .NET Library for Amazon S3 Compatible Cloud Storage, 3 | * (C) 2017, 2018, 2019, 2020 MinIO, Inc. 4 | * 5 | * Licensed under the Apache License, Version 2.0 (the "License"); 6 | * you may not use this file except in compliance with the License. 7 | * You may obtain a copy of the License at 8 | * 9 | * http://www.apache.org/licenses/LICENSE-2.0 10 | * 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | 18 | using System; 19 | 20 | namespace Minio.Exceptions 21 | { 22 | [Serializable] 23 | public class BucketNotFoundException : MinioException 24 | { 25 | private readonly string bucketName; 26 | 27 | public BucketNotFoundException(string bucketName, string message) : base(message) 28 | { 29 | this.bucketName = bucketName; 30 | } 31 | 32 | public override string ToString() => $"{this.bucketName}: {base.ToString()}"; 33 | } 34 | } 35 | -------------------------------------------------------------------------------- /OnceMi.AspNetCore.OSS/SDK/Minio/Exceptions/ConnectionException.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * MinIO .NET Library for Amazon S3 Compatible Cloud Storage, 3 | * (C) 2017, 2018, 2019, 2020 MinIO, Inc. 4 | * 5 | * Licensed under the Apache License, Version 2.0 (the "License"); 6 | * you may not use this file except in compliance with the License. 7 | * You may obtain a copy of the License at 8 | * 9 | * http://www.apache.org/licenses/LICENSE-2.0 10 | * 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | 18 | 19 | namespace Minio.Exceptions 20 | { 21 | public class ConnectionException : MinioException 22 | { 23 | public ConnectionException(string message, ResponseResult response) : base(message, response) 24 | { 25 | } 26 | } 27 | } 28 | -------------------------------------------------------------------------------- /OnceMi.AspNetCore.OSS/SDK/Minio/Exceptions/CredentialsProviderException.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * MinIO .NET Library for Amazon S3 Compatible Cloud Storage, (C) 2021 MinIO, Inc. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | namespace Minio.Exceptions 18 | { 19 | public class CredentialsProviderException : MinioException 20 | { 21 | private readonly string CredentialProviderType; 22 | public CredentialsProviderException(string credentialProviderType, string message) : base(message) 23 | { 24 | this.CredentialProviderType = credentialProviderType; 25 | } 26 | 27 | public override string ToString() => $"{this.CredentialProviderType}: {base.ToString()}"; 28 | 29 | } 30 | } -------------------------------------------------------------------------------- /OnceMi.AspNetCore.OSS/SDK/Minio/Exceptions/DeleteError.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * MinIO .NET Library for Amazon S3 Compatible Cloud Storage, (C) 2017 MinIO, Inc. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | using System; 18 | using System.Xml.Serialization; 19 | 20 | namespace Minio.Exceptions 21 | { 22 | [Serializable] 23 | [XmlRoot(ElementName = "Error")] 24 | public class DeleteError : ErrorResponse 25 | { 26 | } 27 | } 28 | -------------------------------------------------------------------------------- /OnceMi.AspNetCore.OSS/SDK/Minio/Exceptions/DeleteObjectException.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * MinIO .NET Library for Amazon S3 Compatible Cloud Storage, (C) 2017 MinIO, Inc. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | namespace Minio.Exceptions 18 | { 19 | public class DeleteObjectException : MinioException 20 | { 21 | public DeleteObjectException(string message) : base(message) 22 | { 23 | } 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /OnceMi.AspNetCore.OSS/SDK/Minio/Exceptions/EmptyBucketOperation.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * MinIO .NET Library for Amazon S3 Compatible Cloud Storage, 3 | * (C) 2017-2021 MinIO, Inc. 4 | * 5 | * Licensed under the Apache License, Version 2.0 (the "License"); 6 | * you may not use this file except in compliance with the License. 7 | * You may obtain a copy of the License at 8 | * 9 | * http://www.apache.org/licenses/LICENSE-2.0 10 | * 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | 18 | using System; 19 | using Minio.Exceptions; 20 | using System.Net.Http; 21 | 22 | namespace Minio 23 | { 24 | [Serializable] 25 | internal class EmptyBucketOperation : MinioException 26 | { 27 | public EmptyBucketOperation(string message) : base(message) 28 | { 29 | } 30 | 31 | public EmptyBucketOperation(ResponseResult serverResponse) : base(serverResponse) 32 | { 33 | } 34 | 35 | public EmptyBucketOperation(string message, ResponseResult serverResponse) : base(message, serverResponse) 36 | { 37 | } 38 | 39 | } 40 | } -------------------------------------------------------------------------------- /OnceMi.AspNetCore.OSS/SDK/Minio/Exceptions/EntityTooLargeException.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * MinIO .NET Library for Amazon S3 Compatible Cloud Storage, (C) 2017 MinIO, Inc. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | namespace Minio.Exceptions 18 | { 19 | public class EntityTooLargeException : MinioException 20 | { 21 | public EntityTooLargeException(string message) : base(message) 22 | { 23 | } 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /OnceMi.AspNetCore.OSS/SDK/Minio/Exceptions/ErrorResponse.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * MinIO .NET Library for Amazon S3 Compatible Cloud Storage, (C) 2017 MinIO, Inc. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | using System; 18 | using System.Xml.Serialization; 19 | 20 | namespace Minio.Exceptions 21 | { 22 | [Serializable] 23 | [XmlRoot(ElementName="Error", Namespace = "")] 24 | public class ErrorResponse 25 | { 26 | public string Code { get; set; } 27 | public string Message { get; set; } 28 | public string RequestId { get; set; } 29 | public string HostId { get; set; } 30 | public string Resource { get; set; } 31 | public string BucketName { get; set; } 32 | public string Key { get; set; } 33 | public string VersionId { get; set; } 34 | public bool DeleteMarker { get; set; } 35 | public string BucketRegion { get; set; } 36 | } 37 | } 38 | -------------------------------------------------------------------------------- /OnceMi.AspNetCore.OSS/SDK/Minio/Exceptions/ErrorResponseException.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * MinIO .NET Library for Amazon S3 Compatible Cloud Storage, 3 | * (C) 2017, 2018, 2019, 2020 MinIO, Inc. 4 | * 5 | * Licensed under the Apache License, Version 2.0 (the "License"); 6 | * you may not use this file except in compliance with the License. 7 | * You may obtain a copy of the License at 8 | * 9 | * http://www.apache.org/licenses/LICENSE-2.0 10 | * 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | 18 | 19 | namespace Minio.Exceptions 20 | { 21 | public class ErrorResponseException : MinioException 22 | { 23 | public ErrorResponseException(ErrorResponse errorResponse, ResponseResult serverResponse) : 24 | base(serverResponse) 25 | { 26 | Response = errorResponse; 27 | } 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /OnceMi.AspNetCore.OSS/SDK/Minio/Exceptions/ForbiddenException.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * MinIO .NET Library for Amazon S3 Compatible Cloud Storage, (C) 2017 MinIO, Inc. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | namespace Minio.Exceptions 18 | { 19 | public class ForbiddenException : MinioException 20 | { 21 | public ForbiddenException(string message) : base(message) 22 | { 23 | } 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /OnceMi.AspNetCore.OSS/SDK/Minio/Exceptions/InternalClientException.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * MinIO .NET Library for Amazon S3 Compatible Cloud Storage, 3 | * (C) 2017, 2018, 2019, 2020 MinIO, Inc. 4 | * 5 | * Licensed under the Apache License, Version 2.0 (the "License"); 6 | * you may not use this file except in compliance with the License. 7 | * You may obtain a copy of the License at 8 | * 9 | * http://www.apache.org/licenses/LICENSE-2.0 10 | * 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | 18 | 19 | namespace Minio.Exceptions 20 | { 21 | public class InternalClientException : MinioException 22 | { 23 | public InternalClientException(string message, ResponseResult response) : base(message, response) 24 | { 25 | } 26 | } 27 | } 28 | -------------------------------------------------------------------------------- /OnceMi.AspNetCore.OSS/SDK/Minio/Exceptions/InternalServerException.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * MinIO .NET Library for Amazon S3 Compatible Cloud Storage, (C) 2017 MinIO, Inc. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | namespace Minio.Exceptions 18 | { 19 | public class InternalServerException : MinioException 20 | { 21 | public InternalServerException(string message) : base(message) 22 | { 23 | } 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /OnceMi.AspNetCore.OSS/SDK/Minio/Exceptions/InvalidBucketNameException.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * MinIO .NET Library for Amazon S3 Compatible Cloud Storage, (C) 2017 MinIO, Inc. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | namespace Minio.Exceptions 18 | { 19 | public class InvalidBucketNameException : MinioException 20 | { 21 | private readonly string bucketName; 22 | 23 | public InvalidBucketNameException(string bucketName, string message) : base(message) 24 | { 25 | this.bucketName = bucketName; 26 | } 27 | 28 | public override string ToString() => $"{this.bucketName}: {base.ToString()}"; 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /OnceMi.AspNetCore.OSS/SDK/Minio/Exceptions/InvalidContentLengthException.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * MinIO .NET Library for Amazon S3 Compatible Cloud Storage, (C) 2017 MinIO, Inc. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | namespace Minio.Exceptions 18 | { 19 | public class InvalidContentLengthException : MinioException 20 | { 21 | private readonly string bucketName; 22 | private readonly string objectName; 23 | 24 | public InvalidContentLengthException(string bucketName, string objectName, string message) : base(message) 25 | { 26 | this.bucketName = bucketName; 27 | this.objectName = objectName; 28 | } 29 | 30 | public override string ToString() 31 | { 32 | return $"{this.bucketName} :{this.objectName}: {base.ToString()}"; 33 | } 34 | } 35 | } 36 | -------------------------------------------------------------------------------- /OnceMi.AspNetCore.OSS/SDK/Minio/Exceptions/InvalidExpiryRangeException.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * MinIO .NET Library for Amazon S3 Compatible Cloud Storage, (C) 2017 MinIO, Inc. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | namespace Minio.Exceptions 18 | { 19 | public class InvalidExpiryRangeException : MinioException 20 | { 21 | public InvalidExpiryRangeException(string message) : base(message) 22 | { 23 | } 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /OnceMi.AspNetCore.OSS/SDK/Minio/Exceptions/InvalidObjectNameException.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * MinIO .NET Library for Amazon S3 Compatible Cloud Storage, (C) 2017 MinIO, Inc. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | namespace Minio.Exceptions 18 | { 19 | public class InvalidObjectNameException : MinioException 20 | { 21 | private readonly string objectName; 22 | 23 | public InvalidObjectNameException(string objectName, string message) : base(message) 24 | { 25 | this.objectName = objectName; 26 | } 27 | 28 | public override string ToString() => $"{this.objectName}: {base.ToString()}"; 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /OnceMi.AspNetCore.OSS/SDK/Minio/Exceptions/InvalidObjectPrefixException.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * MinIO .NET Library for Amazon S3 Compatible Cloud Storage, (C) 2017 MinIO, Inc. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | namespace Minio.Exceptions 18 | { 19 | public class InvalidObjectPrefixException : MinioException 20 | { 21 | private readonly string objectPrefix; 22 | 23 | public InvalidObjectPrefixException(string objectPrefix, string message) : base(message) 24 | { 25 | this.objectPrefix = objectPrefix; 26 | } 27 | 28 | public override string ToString() => $"{this.objectPrefix}: {base.ToString()}"; 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /OnceMi.AspNetCore.OSS/SDK/Minio/Exceptions/MissingBucketReplicationConfigurationException.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * MinIO .NET Library for Amazon S3 Compatible Cloud Storage, (C) 2021 MinIO, Inc. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | namespace Minio.Exceptions 18 | { 19 | public class MissingBucketReplicationConfigurationException : MinioException 20 | { 21 | private readonly string bucketName; 22 | 23 | public MissingBucketReplicationConfigurationException(string bucketName, string message) : base(message) 24 | { 25 | this.bucketName = bucketName; 26 | } 27 | 28 | public override string ToString() => $"{this.bucketName}: {base.ToString()}"; 29 | } 30 | } -------------------------------------------------------------------------------- /OnceMi.AspNetCore.OSS/SDK/Minio/Exceptions/MissingObjectLockConfigurationException.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * MinIO .NET Library for Amazon S3 Compatible Cloud Storage, (C) 2021 MinIO, Inc. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | namespace Minio.Exceptions 18 | { 19 | public class MissingObjectLockConfigurationException : MinioException 20 | { 21 | private readonly string bucketName; 22 | 23 | public MissingObjectLockConfigurationException(string bucketName, string message) : base(message) 24 | { 25 | this.bucketName = bucketName; 26 | } 27 | 28 | public override string ToString() => $"{this.bucketName}: {base.ToString()}"; 29 | } 30 | } -------------------------------------------------------------------------------- /OnceMi.AspNetCore.OSS/SDK/Minio/Exceptions/ObjectNotFoundException.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * MinIO .NET Library for Amazon S3 Compatible Cloud Storage, (C) 2017 MinIO, Inc. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | namespace Minio.Exceptions 18 | { 19 | public class ObjectNotFoundException : MinioException 20 | { 21 | private readonly string objectName; 22 | 23 | public ObjectNotFoundException(string objectName, string message) : base(message) 24 | { 25 | this.objectName = objectName; 26 | } 27 | 28 | public override string ToString() => $"{this.objectName}: {base.ToString()}"; 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /OnceMi.AspNetCore.OSS/SDK/Minio/Exceptions/RedirectionException.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * MinIO .NET Library for Amazon S3 Compatible Cloud Storage, (C) 2017 MinIO, Inc. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | namespace Minio.Exceptions 18 | { 19 | public class RedirectionException : MinioException 20 | { 21 | public RedirectionException(string message) : base(message) 22 | { 23 | } 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /OnceMi.AspNetCore.OSS/SDK/Minio/Exceptions/SelectObjectContentException.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * MinIO .NET Library for Amazon S3 Compatible Cloud Storage, 3 | * (C) 2017, 2018, 2019, 2020 MinIO, Inc. 4 | * 5 | * Licensed under the Apache License, Version 2.0 (the "License"); 6 | * you may not use this file except in compliance with the License. 7 | * You may obtain a copy of the License at 8 | * 9 | * http://www.apache.org/licenses/LICENSE-2.0 10 | * 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | 18 | using System; 19 | 20 | namespace Minio.Exceptions 21 | { 22 | [Serializable] 23 | public class SelectObjectContentException : MinioException 24 | { 25 | public SelectObjectContentException(string message) : base(message) 26 | { 27 | } 28 | } 29 | } -------------------------------------------------------------------------------- /OnceMi.AspNetCore.OSS/SDK/Minio/Exceptions/UnexpectedMinioException.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * MinIO .NET Library for Amazon S3 Compatible Cloud Storage, 3 | * (C) 2017, 2018, 2019, 2020 MinIO, Inc. 4 | * 5 | * Licensed under the Apache License, Version 2.0 (the "License"); 6 | * you may not use this file except in compliance with the License. 7 | * You may obtain a copy of the License at 8 | * 9 | * http://www.apache.org/licenses/LICENSE-2.0 10 | * 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | 18 | using System; 19 | 20 | namespace Minio.Exceptions 21 | { 22 | [Serializable] 23 | public class UnexpectedMinioException : MinioException 24 | { 25 | public UnexpectedMinioException(string message) : base(message) 26 | { 27 | } 28 | } 29 | } -------------------------------------------------------------------------------- /OnceMi.AspNetCore.OSS/SDK/Minio/Exceptions/UnexpectedShortReadException.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * MinIO .NET Library for Amazon S3 Compatible Cloud Storage, (C) 2017 MinIO, Inc. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | namespace Minio.Exceptions 18 | { 19 | public class UnexpectedShortReadException : MinioException 20 | { 21 | public UnexpectedShortReadException(string message) : base(message) 22 | { 23 | } 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /OnceMi.AspNetCore.OSS/SDK/Minio/Exceptions/VersionDeletedException.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * MinIO .NET Library for Amazon S3 Compatible Cloud Storage, (C) 2020 MinIO, Inc. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | namespace Minio.Exceptions 18 | { 19 | public class VersionDeletedException : MinioException 20 | { 21 | private readonly string versionId; 22 | 23 | public VersionDeletedException(string vid, string message) : base(message) 24 | { 25 | this.versionId = vid; 26 | } 27 | 28 | public override string ToString() => $"{this.versionId}: {base.ToString()}"; 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /OnceMi.AspNetCore.OSS/SDK/Minio/Helper/Enum.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * MinIO .NET Library for Amazon S3 Compatible Cloud Storage, (C) 2017 MinIO, Inc. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | namespace Minio 18 | { 19 | public class Enum 20 | { 21 | /// 22 | /// HTTP method to use when making requests 23 | /// 24 | internal enum Method 25 | { 26 | GET, 27 | POST, 28 | PUT, 29 | DELETE, 30 | HEAD, 31 | OPTIONS, 32 | PATCH, 33 | MERGE, 34 | } 35 | } 36 | } 37 | -------------------------------------------------------------------------------- /OnceMi.AspNetCore.OSS/SDK/Minio/IRequestLogger.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * MinIO .NET Library for Amazon S3 Compatible Cloud Storage, (C) 2017 MinIO, Inc. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | using Minio.DataModel.Tracing; 18 | 19 | namespace Minio 20 | { 21 | public interface IRequestLogger 22 | { 23 | void LogRequest(RequestToLog requestToLog, ResponseToLog responseToLog, double durationMs); 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /OnceMi.AspNetCore.OSS/Utils/CacheProviders/MemoryCacheProvider.cs: -------------------------------------------------------------------------------- 1 | using Microsoft.Extensions.Caching.Memory; 2 | using System; 3 | 4 | namespace OnceMi.AspNetCore.OSS 5 | { 6 | /// 7 | /// 默认实现的缓存提供 8 | /// 9 | class MemoryCacheProvider : ICacheProvider 10 | { 11 | private readonly IMemoryCache _cache; 12 | 13 | public MemoryCacheProvider(IMemoryCache cache) 14 | { 15 | this._cache = cache ?? throw new ArgumentNullException(nameof(IMemoryCache)); 16 | } 17 | 18 | public T Get(string key) where T : class 19 | { 20 | return _cache.Get(key); 21 | } 22 | 23 | public void Remove(string key) 24 | { 25 | _cache.Remove(key); 26 | } 27 | 28 | public void Set(string key, T value, TimeSpan ts) where T : class 29 | { 30 | _cache.Set(key, value, ts); 31 | } 32 | } 33 | } 34 | -------------------------------------------------------------------------------- /OnceMi.AspNetCore.OSS/Utils/Encrypt.cs: -------------------------------------------------------------------------------- 1 | using System.Text; 2 | 3 | namespace OnceMi.AspNetCore.OSS 4 | { 5 | static class Encrypt 6 | { 7 | public static string MD5(string input) 8 | { 9 | using (System.Security.Cryptography.MD5 md5 = System.Security.Cryptography.MD5.Create()) 10 | { 11 | byte[] inputBytes = Encoding.UTF8.GetBytes(input); 12 | byte[] hashBytes = md5.ComputeHash(inputBytes); 13 | 14 | StringBuilder sb = new StringBuilder(); 15 | for (int i = 0; i < hashBytes.Length; i++) 16 | { 17 | sb.Append(hashBytes[i].ToString("X2")); 18 | } 19 | return sb.ToString(); 20 | } 21 | } 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /OnceMi.AspNetCore.OSS/Utils/JsonUtil.cs: -------------------------------------------------------------------------------- 1 | using Newtonsoft.Json; 2 | using System.IO; 3 | 4 | namespace OnceMi.AspNetCore.OSS 5 | { 6 | static class JsonUtil 7 | { 8 | /// 9 | /// 将对象序列化为JSON格式 10 | /// 11 | /// 对象 12 | /// json字符串 13 | public static string SerializeObject(object o) 14 | { 15 | string json = JsonConvert.SerializeObject(o); 16 | return json; 17 | } 18 | 19 | /// 20 | /// 解析JSON字符串生成对象实体 21 | /// 22 | /// 对象类型 23 | /// json字符串(eg.{"ID":"112","Name":"石子儿"}) 24 | /// 对象实体 25 | public static T DeserializeObject(string json) where T : class 26 | { 27 | JsonSerializer serializer = new JsonSerializer(); 28 | StringReader sr = new StringReader(json); 29 | object o = serializer.Deserialize(new JsonTextReader(sr), typeof(T)); 30 | T t = o as T; 31 | return t; 32 | } 33 | } 34 | } 35 | -------------------------------------------------------------------------------- /doc/1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gudao/Cloud-File-Explorer/deb3cccdc4230f7dd76adfc6a7951163de295601/doc/1.png -------------------------------------------------------------------------------- /doc/2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gudao/Cloud-File-Explorer/deb3cccdc4230f7dd76adfc6a7951163de295601/doc/2.png -------------------------------------------------------------------------------- /logo.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gudao/Cloud-File-Explorer/deb3cccdc4230f7dd76adfc6a7951163de295601/logo.ico -------------------------------------------------------------------------------- /logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gudao/Cloud-File-Explorer/deb3cccdc4230f7dd76adfc6a7951163de295601/logo.png -------------------------------------------------------------------------------- /readme.md: -------------------------------------------------------------------------------- 1 |  2 | ![logo](doc/1.png) 3 | 4 | Cloud File Explorer 5 | ================= 6 | **从 NetHadoop 升级而来,在保留原有阿里云OSS功能的基础上,增加 腾讯云COS、华为云OBS、七牛云Kodo、Minio自建对象存储。** 7 | 云端文件操作依赖[OnceMi.AspNetCore.OSS](https://github.com/oncemi/OnceMi.AspNetCore.OSS) 版本1.1.5,因部分功能原有项目不支持,故放至本地稍有修改。 8 | 9 | 功能 10 | =========== 11 | - 以最接近本地文件管理器的形式展示云端文件,循环列表展示文件夹内容 12 | - 上传、下载,支持单文件、多文件、文件夹上传、下载 13 | - 云端文件直接复制、粘贴、重命名、删除 14 | - 根据文件列表批量下载文件,即txt中存放预下载文件路径,根据txt批量下载 15 | - 导出当前文件夹下的所有文件名到txt中 16 | - 统计云端文件夹中的文件个数和总大小 17 | - 同文件夹内搜索 18 | - 支持拖拽上传、下载 19 | 20 | 预览 21 | ========= 22 | ![截图](doc/2.png) 23 | 24 | 安装 25 | ========= 26 | 暂时只支持 Windows 操作系统。 27 | 需要安装.Net Core 3.1及以上.Net 运行环境。 28 | 修改根目录下的setting.ini文件中的账号信息,然后双击运行压缩包内的CloudFileExplorer.exe 29 | ``` 30 | [Providers] 31 | Provider="Aliyun" ;Minio/Aliyun/QCloud/Qiniu/HuaweiCloud 32 | Endpoint ="oss-cn-beijing.aliyuncs.com" 33 | Region="cn-beijing" 34 | AccessKey="your key" 35 | SecretKey="your Secret" 36 | IsEnableCache="true" 37 | IsEnableHttps="false" 38 | ``` 39 | - Provider:根据云存储方案选择对应的选项,Minio/Aliyun/QCloud/Qiniu/HuaweiCloud 40 | - Endpoint:接入点,根据云存储方案确定接入点域名,腾讯云中表示AppId 41 | - Region: 地区 --------------------------------------------------------------------------------