MATLAB 帮助中心
本页采用了机器翻译。点击此处可查看最新英文版本。
从 OSLC 服务提供方中删除资源
自 R2021a 起
status = remove(resource,myClient)
status = remove(resource,myClient) 从与 resource 关联的生命周期协作开放服务 (OSLC) 服务提供方中删除资源 myClient 并返回删除成功状态。
status
resource
myClient
示例
全部折叠
此示例显示如何使用配置的 OSLC 客户端提交需求资源的查询请求以及删除需求资源。
按照为需求管理域创建和配置 OSLC 客户端中所述创建并配置 OSLC 客户端 myClient 后,为需求资源类型创建查询功能。
myQueryCapability = getQueryService(myClient,'Requirement');
向服务提供者提交可用的需求资源的查询请求。
reqs = queryRequirements(myQueryCapability)
reqs = 1×30 Requirement array with properties: ResourceUrl Dirty IsFetched Title Identifier
从服务提供方处检索需求资源的完整资源数据。检查需求资源。
myReq = reqs(1); status = fetch(myReq,myClient)
status = StatusCode enumeration OK
myReq
myReq = Requirement with properties: ResourceUrl: 'https://localhost:9443/rm/resources/_72lxMWJREeup0...' Dirty: 0 IsFetched: 1 Title: 'My New Requirement' Identifier: '1806'
删除服务提供方的需求。
status = remove(myReq,myClient)
oslc.rm.Requirement
oslc.rm.RequirementCollection
oslc.cm.ChangeRequest
OSLC 资源,指定为以下对象之一:
oslc.qm.TestCase
oslc.qm.TestExecutionRecord
oslc.qm.TestPlan
oslc.qm.TestResult
oslc.qm.TestScript
oslc.Client
OSLC 客户端,指定为 oslc.Client 对象。
matlab.net.http.StatusCode
删除成功状态,作为 matlab.net.http.StatusCode 对象返回。
在 R2021a 中推出
oslc.Client | oslc.rm.Requirement | oslc.rm.RequirementCollection | oslc.cm.ChangeRequest | oslc.qm.TestCase | oslc.qm.TestExecutionRecord | oslc.qm.TestPlan | oslc.qm.TestResult | oslc.qm.TestScript | commit | show | fetch
commit
show
fetch
You clicked a link that corresponds to this MATLAB command:
Run the command by entering it in the MATLAB Command Window. Web browsers do not support MATLAB commands.
选择网站
选择网站以获取翻译的可用内容,以及查看当地活动和优惠。根据您的位置,我们建议您选择:。
您也可以从以下列表中选择网站:
如何获得最佳网站性能
选择中国网站(中文或英文)以获得最佳网站性能。其他 MathWorks 国家/地区网站并未针对您所在位置的访问进行优化。
美洲
欧洲
亚太
联系您当地的办事处