GitHubOwnerCollection.CreateOrUpdate 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 Azure.ResourceManager.ArmOperation<Azure.ResourceManager.SecurityDevOps.GitHubOwnerResource> CreateOrUpdate (Azure.WaitUntil waitUntil, string gitHubOwnerName, Azure.ResourceManager.SecurityDevOps.GitHubOwnerData data, System.Threading.CancellationToken cancellationToken = default);
abstract member CreateOrUpdate : Azure.WaitUntil * string * Azure.ResourceManager.SecurityDevOps.GitHubOwnerData * System.Threading.CancellationToken -> Azure.ResourceManager.ArmOperation<Azure.ResourceManager.SecurityDevOps.GitHubOwnerResource>
override this.CreateOrUpdate : Azure.WaitUntil * string * Azure.ResourceManager.SecurityDevOps.GitHubOwnerData * System.Threading.CancellationToken -> Azure.ResourceManager.ArmOperation<Azure.ResourceManager.SecurityDevOps.GitHubOwnerResource>
Public Overridable Function CreateOrUpdate (waitUntil As WaitUntil, gitHubOwnerName As String, data As GitHubOwnerData, Optional cancellationToken As CancellationToken = Nothing) As 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