Exemplo n.º 1
0
 /// <summary>
 /// List Confluent marketplace agreements in the subscription.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='nextPageLink'>
 /// The NextLink from the previous successful call to List operation.
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <IPage <ConfluentAgreementResource> > ListNextAsync(this IMarketplaceAgreementsOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.ListNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
Exemplo n.º 2
0
 /// <summary>
 /// Accept marketplace terms.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='body'>
 /// Confluent Agreement resource
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <ConfluentAgreementResource> CreateAsync(this IMarketplaceAgreementsOperations operations, ConfluentAgreementResource body = default(ConfluentAgreementResource), CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.CreateWithHttpMessagesAsync(body, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
 /// <summary>
 /// Get marketplace terms.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='publisherId'>
 /// Publisher identifier string of image being deployed.
 /// </param>
 /// <param name='offerId'>
 /// Offer identifier string of image being deployed.
 /// </param>
 /// <param name='planId'>
 /// Plan identifier string of image being deployed.
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <AgreementTerms> GetAsync(this IMarketplaceAgreementsOperations operations, string publisherId, string offerId, string planId, CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.GetWithHttpMessagesAsync(publisherId, offerId, planId, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
 /// <summary>
 /// Create Datadog marketplace agreement in the subscription.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='properties'>
 /// Represents the properties of the resource.
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <DatadogAgreementResource> CreateOrUpdateAsync(this IMarketplaceAgreementsOperations operations, DatadogAgreementProperties properties = default(DatadogAgreementProperties), CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.CreateOrUpdateWithHttpMessagesAsync(properties, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
 /// <summary>
 /// List marketplace agreements in the subscription.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <IList <AgreementTerms> > ListAsync(this IMarketplaceAgreementsOperations operations, CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.ListWithHttpMessagesAsync(null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
Exemplo n.º 6
0
 /// <summary>
 /// List Confluent marketplace agreements in the subscription.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='nextPageLink'>
 /// The NextLink from the previous successful call to List operation.
 /// </param>
 public static IPage <ConfluentAgreementResource> ListNext(this IMarketplaceAgreementsOperations operations, string nextPageLink)
 {
     return(operations.ListNextAsync(nextPageLink).GetAwaiter().GetResult());
 }
Exemplo n.º 7
0
 /// <summary>
 /// Accept marketplace terms.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='body'>
 /// Confluent Agreement resource
 /// </param>
 public static ConfluentAgreementResource Create(this IMarketplaceAgreementsOperations operations, ConfluentAgreementResource body = default(ConfluentAgreementResource))
 {
     return(operations.CreateAsync(body).GetAwaiter().GetResult());
 }
Exemplo n.º 8
0
 /// <summary>
 /// List Confluent marketplace agreements in the subscription.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 public static IPage <ConfluentAgreementResource> List(this IMarketplaceAgreementsOperations operations)
 {
     return(operations.ListAsync().GetAwaiter().GetResult());
 }
 /// <summary>
 /// Save marketplace terms.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='publisherId'>
 /// Publisher identifier string of image being deployed.
 /// </param>
 /// <param name='offerId'>
 /// Offer identifier string of image being deployed.
 /// </param>
 /// <param name='planId'>
 /// Plan identifier string of image being deployed.
 /// </param>
 /// <param name='parameters'>
 /// Parameters supplied to the Create Marketplace Terms operation.
 /// </param>
 public static AgreementTerms Create(this IMarketplaceAgreementsOperations operations, string publisherId, string offerId, string planId, AgreementTerms parameters)
 {
     return(operations.CreateAsync(publisherId, offerId, planId, parameters).GetAwaiter().GetResult());
 }
 /// <summary>
 /// Get marketplace terms.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='publisherId'>
 /// Publisher identifier string of image being deployed.
 /// </param>
 /// <param name='offerId'>
 /// Offer identifier string of image being deployed.
 /// </param>
 /// <param name='planId'>
 /// Plan identifier string of image being deployed.
 /// </param>
 public static AgreementTerms Get(this IMarketplaceAgreementsOperations operations, string publisherId, string offerId, string planId)
 {
     return(operations.GetAsync(publisherId, offerId, planId).GetAwaiter().GetResult());
 }
 /// <summary>
 /// Create Datadog marketplace agreement in the subscription.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='properties'>
 /// Represents the properties of the resource.
 /// </param>
 public static DatadogAgreementResource CreateOrUpdate(this IMarketplaceAgreementsOperations operations, DatadogAgreementProperties properties = default(DatadogAgreementProperties))
 {
     return(operations.CreateOrUpdateAsync(properties).GetAwaiter().GetResult());
 }
 /// <summary>
 /// List marketplace agreements in the subscription.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 public static IList <AgreementTerms> List(this IMarketplaceAgreementsOperations operations)
 {
     return(operations.ListAsync().GetAwaiter().GetResult());
 }