MATLAB 도움말 센터
Remove resource from OSLC service provider
Since R2021a
status = remove(resource,myClient)
status = remove(resource,myClient) removes the resource resource from the Open Services for Lifecycle Collaboration (OSLC) service provider associated with myClient and returns the remove success status.
status
resource
myClient
example
collapse all
This example shows how to submit a query request for requirement resources with a configured OSLC client and remove a requirement resource.
After you have created and configured the OSLC client myClient as described in Create and Configure an OSLC Client for the Requirements Management Domain, create a query capability for the requirement resource type.
myQueryCapability = getQueryService(myClient,'Requirement');
Submit a query request to the service provider for the available requirement resources.
reqs = queryRequirements(myQueryCapability)
reqs = 1×30 Requirement array with properties: ResourceUrl Dirty IsFetched Title Identifier
Retrieve the full resource data from the service provider for a requirement resource. Inspect the requirement resource.
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'
Remove the requirement from the service provider.
status = remove(myReq,myClient)
oslc.rm.Requirement
oslc.rm.RequirementCollection
oslc.cm.ChangeRequest
OSLC resource, specified as one of these objects:
oslc.qm.TestCase
oslc.qm.TestExecutionRecord
oslc.qm.TestPlan
oslc.qm.TestResult
oslc.qm.TestScript
oslc.Client
OSLC client, specified as an oslc.Client object.
matlab.net.http.StatusCode
Removal success status, returned as a matlab.net.http.StatusCode object.
Introduced in 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 사이트 방문이 최적화되지 않았습니다.
미주
유럽
아시아 태평양
지역별 지사에 문의