DatadogExtensions.CreateOrUpdateMarketplaceAgreementAsync Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Create Datadog marketplace agreement in the subscription. <item> Mocking. To mock this method, please mock CreateOrUpdateMarketplaceAgreementAsync(DatadogAgreement, CancellationToken) instead. </item>
public static System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Datadog.Models.DatadogAgreement>> CreateOrUpdateMarketplaceAgreementAsync(this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, Azure.ResourceManager.Datadog.Models.DatadogAgreement body = default, System.Threading.CancellationToken cancellationToken = default);
public static System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Datadog.Models.DatadogAgreement>> CreateOrUpdateMarketplaceAgreementAsync(this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, Azure.ResourceManager.Datadog.Models.DatadogAgreement body, System.Threading.CancellationToken cancellationToken = default);
static member CreateOrUpdateMarketplaceAgreementAsync : Azure.ResourceManager.Resources.SubscriptionResource * Azure.ResourceManager.Datadog.Models.DatadogAgreement * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Datadog.Models.DatadogAgreement>>
<Extension()>
Public Function CreateOrUpdateMarketplaceAgreementAsync (subscriptionResource As SubscriptionResource, Optional body As DatadogAgreement = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of DatadogAgreement))
<Extension()>
Public Function CreateOrUpdateMarketplaceAgreementAsync (subscriptionResource As SubscriptionResource, body As DatadogAgreement, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of DatadogAgreement))
Parameters
- subscriptionResource
- SubscriptionResource
The SubscriptionResource the method will execute against.
- body
- DatadogAgreement
The request body.
- cancellationToken
- CancellationToken
The cancellation token to use.
Returns
Exceptions
subscriptionResource is null.