/**
* Copyright 2019 Huawei Technologies Co.,Ltd.
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use
* this file except in compliance with the License. You may obtain a copy of the
* License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software distributed
* under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
* CONDITIONS OF ANY KIND, either express or implied. See the License for the
* specific language governing permissions and limitations under the License.
*
*/
'use strict';
const owner = {
'type' : 'object',
'location' : 'xml',
'sentAs' : 'Owner',
'parameters' : {
'ID' : {
'sentAs' : 'ID',
}
}
};
const initiator = {
'type' : 'object',
'location' : 'xml',
'sentAs' : 'Initiator',
'parameters' : {
'ID' : {
'sentAs' : 'ID',
},
},
};
const commonPrefixes = {
'type' : 'array',
'location' : 'xml',
'sentAs' : 'CommonPrefixes',
'items' : {
'type' : 'object',
'parameters' : {
'Prefix' : {
'sentAs' : 'Prefix',
},
}
}
};
const grants = {
'type' : 'array',
'location' : 'xml',
'wrapper' : 'AccessControlList',
'sentAs' : 'Grant',
'items' : {
'type' : 'object',
'parameters' : {
'Grantee' : {
'type' : 'object',
'sentAs' : 'Grantee',
'parameters' : {
'Type' : {
'type' : 'ignore',
},
'ID' : {
'sentAs' : 'ID',
'notAllowEmpty' : true,
},
'URI' : {
'sentAs' : 'Canned',
'type' : 'adapter',
'notAllowEmpty' : true,
}
},
},
'Permission' : {
'sentAs' : 'Permission',
},
'Delivered' :{
'sentAs' : 'Delivered',
}
},
},
};
const loggingEnabled = {
'type' : 'object',
'location' : 'xml',
'sentAs' : 'LoggingEnabled',
'parameters' : {
'TargetBucket' : {
'sentAs' : 'TargetBucket',
},
'TargetPrefix' : {
'sentAs' : 'TargetPrefix',
},
'TargetGrants' : {
'type' : 'array',
'wrapper' : 'TargetGrants',
'sentAs' : 'Grant',
'items' : {
'type' : 'object',
'parameters' : {
'Grantee' : {
'type' : 'object',
'sentAs' : 'Grantee',
'parameters' : {
'Type' : {
'type' : 'ignore',
},
'ID' : {
'sentAs' : 'ID',
},
'URI' : {
'sentAs' : 'Canned',
'type' : 'adapter'
}
},
},
'Permission' : {
'sentAs' : 'Permission',
},
},
},
},
},
};
const rules = {
'required' : true,
'type' : 'array',
'location' : 'xml',
'sentAs' : 'Rule',
'items' : {
'type' : 'object',
'parameters' : {
'ID' : {
'sentAs' : 'ID',
},
'Prefix' : {
'sentAs' : 'Prefix',
},
'Status' : {
'sentAs' : 'Status',
},
'Transitions' : {
'type' : 'array',
'sentAs' : 'Transition',
'items' : {
'type' : 'object',
'parameters' : {
'StorageClass' :{
'sentAs' : 'StorageClass',
'type' : 'adapter'
},
'Date' : {
'sentAs' : 'Date',
},
'Days' : {
'type' : 'number',
'sentAs' : 'Days'
}
}
}
},
'Expiration' : {
'type' : 'object',
'sentAs' : 'Expiration',
'parameters' : {
'Date' : {
'sentAs' : 'Date',
},
'Days' : {
'type' : 'number',
'sentAs' : 'Days'
},
},
},
'NoncurrentVersionTransitions' :{
'type' : 'array',
'sentAs' : 'NoncurrentVersionTransition',
'items' : {
'type' : 'object',
'parameters' : {
'StorageClass' :{
'sentAs' : 'StorageClass',
'type' : 'adapter'
},
'NoncurrentDays' : {
'type' : 'number',
'sentAs' : 'NoncurrentDays'
}
}
}
},
'NoncurrentVersionExpiration' : {
'type' : 'object',
'sentAs' : 'NoncurrentVersionExpiration',
'parameters' : {
'NoncurrentDays' : {
'type' : 'number',
'sentAs' : 'NoncurrentDays',
},
},
}
},
},
};
const redirectAllRequestsTo = {
'type' : 'object',
'location' : 'xml',
'sentAs' : 'RedirectAllRequestsTo',
'parameters' : {
'HostName' : {
'sentAs' : 'HostName',
},
'Protocol' : {
'sentAs' : 'Protocol',
},
}
};
const routingRules = {
'type' : 'array',
'wrapper' : 'RoutingRules',
'location' : 'xml',
'sentAs' : 'RoutingRule',
'items' : {
'type' : 'object',
'parameters' : {
'Condition' : {
'type' : 'object',
'sentAs' : 'Condition',
'parameters' : {
'HttpErrorCodeReturnedEquals' : {
'sentAs' : 'HttpErrorCodeReturnedEquals',
},
'KeyPrefixEquals' : {
'sentAs' : 'KeyPrefixEquals',
},
},
},
'Redirect' : {
'type' : 'object',
'sentAs' : 'Redirect',
'parameters' : {
'HostName' : {
'sentAs' : 'HostName',
},
'HttpRedirectCode' : {
'sentAs' : 'HttpRedirectCode',
},
'Protocol' : {
'sentAs' : 'Protocol',
},
'ReplaceKeyPrefixWith' : {
'sentAs' : 'ReplaceKeyPrefixWith',
},
'ReplaceKeyWith' : {
'sentAs' : 'ReplaceKeyWith',
}
}
},
},
},
};
const indexDocument = {
'type' : 'object',
'location' : 'xml',
'sentAs' : 'IndexDocument',
'parameters' : {
'Suffix' : {
'sentAs' : 'Suffix',
},
}
};
const errorDocument = {
'type' : 'object',
'location' : 'xml',
'sentAs' : 'ErrorDocument',
'parameters' : {
'Key' : {
'sentAs' : 'Key',
},
}
};
const corsRule = {
'required' : true,
'type' : 'array',
'location' : 'xml',
'sentAs' : 'CORSRule',
'items' : {
'type' : 'object',
'parameters' : {
'ID' : {
'sentAs' : 'ID',
},
'AllowedMethod' : {
'type' : 'array',
'sentAs' : 'AllowedMethod',
'items' : {
'type' : 'string',
},
},
'AllowedOrigin' : {
'type' : 'array',
'sentAs' : 'AllowedOrigin',
'items' : {
'type' : 'string',
},
},
'AllowedHeader' : {
'type' : 'array',
'sentAs' : 'AllowedHeader',
'items' : {
'type' : 'string',
},
},
'MaxAgeSeconds' : {
'type' : 'number',
'sentAs' : 'MaxAgeSeconds',
},
'ExposeHeader' : {
'type' : 'array',
'sentAs' : 'ExposeHeader',
'items' : {
'type' : 'string',
},
},
},
},
};
const functionGraphConfiguration = {
'type' : 'array',
'location' : 'xml',
'sentAs' : 'FunctionGraphConfiguration',
'items' : {
'type' : 'object',
'location' : 'xml',
'parameters' : {
'ID' : {
'sentAs' : 'Id'
},
'Filter' : {
'type' : 'object',
'parameters' : {
'FilterRules' : {
'wrapper' : 'Object',
'type' : 'array',
'sentAs' : 'FilterRule',
'items' : {
'type' : 'object',
'parameters' : {
'Name' : {},
'Value' : {}
}
}
}
}
},
'FunctionGraph' : {},
'Event' : {
'type' : 'array',
'items' : {
'type' : 'adapter',
}
}
}
}
};
const topicConfiguration = {
'type' : 'array',
'location' : 'xml',
'sentAs' : 'TopicConfiguration',
'items' : {
'type' : 'object',
'location' : 'xml',
'parameters' : {
'ID' : {
'sentAs' : 'Id'
},
'Filter' : {
'type' : 'object',
'parameters' : {
'FilterRules' : {
'wrapper' : 'Object',
'type' : 'array',
'sentAs' : 'FilterRule',
'items' : {
'type' : 'object',
'parameters' : {
'Name' : {},
'Value' : {}
}
}
}
}
},
'Topic' : {},
'Event' : {
'type' : 'array',
'items' : {
'type' : 'adapter',
}
}
}
}
};
const tagSet = {
'required' : true,
'type' : 'array',
'location' : 'xml',
'wrapper' : 'TagSet',
'sentAs' : 'Tag',
'items' : {
'type' : 'object',
'parameters' : {
'Key' : {
'sentAs' : 'Key',
},
'Value' : {
'sentAs' : 'Value',
}
}
}
};
const replicationRules = {
'required' : true,
'type' : 'array',
'location' : 'xml',
'sentAs' : 'Rule',
'items' : {
'type' : 'object',
'parameters' : {
大象慧云node-huawei-obs前后端项目系统.zip
需积分: 0 95 浏览量
2024-01-16
11:52:39
上传
评论
收藏 25.79MB ZIP 举报
![avatar](https://profile-avatar.csdnimg.cn/421fe3cf48564128aca47ee460992edd_m0_63168877.jpg!1)
![avatar-vip](https://csdnimg.cn/release/downloadcmsfe/public/img/user-vip.1c89f3c5.png)
妄北y
- 粉丝: 1w+
- 资源: 1万+
最新资源
- 基于74LS161+ 74LS192芯片实现倒计时定时器Multisim仿真源文件,Multisim10以上版本可打开运行
- 科大讯飞语音引擎 jar包 demo,科大讯飞语音合成引擎3.0,支持4.0系统以上,文字转语音输出.zip
- Java架构面试笔试专题资料及经验(含答案)SpringBoot面试Linux面试专题及答案 合集.zip
- 头歌c语言实验答案tion-model-for-ne开发笔记
- docker配置使用-model-for-networK开发demo
- docker配置使用vaWeb-mas笔记
- c语言连接两个字符串-mas开发笔记
- 俄罗斯引擎yandex进入x-master 笔记
- 头歌c语言实验答案el-for-network-ids-ma笔记
- 一个delphi写的连连看
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
![feedback](https://img-home.csdnimg.cn/images/20220527035711.png)
![feedback](https://img-home.csdnimg.cn/images/20220527035711.png)
![feedback-tip](https://img-home.csdnimg.cn/images/20220527035111.png)