Dela via


GitHubOwnerCollection.CreateOrUpdateAsync Method

Definition

Create or update a monitored GitHub owner.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SecurityDevOps/gitHubConnectors/{gitHubConnectorName}/owners/{gitHubOwnerName}
  • Operation Id: GitHubOwner_CreateOrUpdate
public virtual System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.SecurityDevOps.GitHubOwnerResource>> CreateOrUpdateAsync (Azure.WaitUntil waitUntil, string gitHubOwnerName, Azure.ResourceManager.SecurityDevOps.GitHubOwnerData data, System.Threading.CancellationToken cancellationToken = default);
abstract member CreateOrUpdateAsync : Azure.WaitUntil * string * Azure.ResourceManager.SecurityDevOps.GitHubOwnerData * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.SecurityDevOps.GitHubOwnerResource>>
override this.CreateOrUpdateAsync : Azure.WaitUntil * string * Azure.ResourceManager.SecurityDevOps.GitHubOwnerData * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.SecurityDevOps.GitHubOwnerResource>>
Public Overridable Function CreateOrUpdateAsync (waitUntil As WaitUntil, gitHubOwnerName As String, data As GitHubOwnerData, Optional cancellationToken As CancellationToken = Nothing) As Task(Of ArmOperation(Of GitHubOwnerResource))

Parameters

waitUntil
WaitUntil

Completed if the method should wait to return until the long-running operation has completed on the service; Started if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples.

gitHubOwnerName
String

Name of the GitHub Owner.

data
GitHubOwnerData

Github owner.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

gitHubOwnerName is an empty string, and was expected to be non-empty.

gitHubOwnerName or data is null.

Applies to