ApiIssueCommentCollection.CreateOrUpdate メソッド

定義

API の問題の新しいコメントを作成するか、既存のものを更新します。

  • 要求パス/サブスクリプション/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/issues/{issueId}/comments/{commentId}
  • 操作IdApiIssueComment_CreateOrUpdate
public virtual Azure.ResourceManager.ArmOperation<Azure.ResourceManager.ApiManagement.ApiIssueCommentResource> CreateOrUpdate (Azure.WaitUntil waitUntil, string commentId, Azure.ResourceManager.ApiManagement.ApiIssueCommentData data, Azure.ETag? ifMatch = default, System.Threading.CancellationToken cancellationToken = default);
abstract member CreateOrUpdate : Azure.WaitUntil * string * Azure.ResourceManager.ApiManagement.ApiIssueCommentData * Nullable<Azure.ETag> * System.Threading.CancellationToken -> Azure.ResourceManager.ArmOperation<Azure.ResourceManager.ApiManagement.ApiIssueCommentResource>
override this.CreateOrUpdate : Azure.WaitUntil * string * Azure.ResourceManager.ApiManagement.ApiIssueCommentData * Nullable<Azure.ETag> * System.Threading.CancellationToken -> Azure.ResourceManager.ArmOperation<Azure.ResourceManager.ApiManagement.ApiIssueCommentResource>
Public Overridable Function CreateOrUpdate (waitUntil As WaitUntil, commentId As String, data As ApiIssueCommentData, Optional ifMatch As Nullable(Of ETag) = Nothing, Optional cancellationToken As CancellationToken = Nothing) As ArmOperation(Of ApiIssueCommentResource)

パラメーター

waitUntil
WaitUntil

Completed メソッドが、サービスで実行時間の長い操作が完了するまで戻るまで待機する必要がある場合。 Started 操作を開始した後に が返される場合は 。 実行時間の長い操作の詳細については、「 Azure.Core Long-Running 操作のサンプル」を参照してください。

commentId
String

Issue 内のコメント識別子。 現在の Issue で一意である必要があります。

data
ApiIssueCommentData

パラメーターを作成します。

ifMatch
Nullable<ETag>

エンティティの ETag。 エンティティを作成する場合は必須ではありませんが、エンティティを更新する場合は必須です。

cancellationToken
CancellationToken

使用する取り消しトークン。

戻り値

例外

commentId は空の文字列であり、空でないと予想されていました。

commentId または data が null です。

適用対象