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.
Web サイトの選択
Web サイトを選択すると、翻訳されたコンテンツにアクセスし、地域のイベントやサービスを確認できます。現在の位置情報に基づき、次のサイトの選択を推奨します:
また、以下のリストから Web サイトを選択することもできます。
最適なサイトパフォーマンスの取得方法
中国のサイト (中国語または英語) を選択することで、最適なサイトパフォーマンスが得られます。その他の国の MathWorks のサイトは、お客様の地域からのアクセスが最適化されていません。
南北アメリカ
ヨーロッパ
アジア太平洋地域
最寄りの営業オフィスへのお問い合わせ