public async Task <List <CertificateRequestResult> > BeginAutoRenewal(RenewalSettings settings) { var response = await PostAsync("managedcertificates/autorenew", settings); var serializer = new JsonSerializer(); using (var sr = new StreamReader(await response.Content.ReadAsStreamAsync())) using (var reader = new JsonTextReader(sr)) { var results = serializer.Deserialize <List <CertificateRequestResult> >(reader); return(results); } }
public async Task <List <CertificateRequestResult> > BeginAutoRenewal(RenewalSettings settings) { DebugLog(); return(await _certifyManager.PerformRenewalAllManagedCertificates(settings, null)); }
public Task <List <CertificateRequestResult> > PerformRenewalAllManagedCertificates(RenewalSettings settings, Dictionary <string, Progress <RequestProgressState> > progressTrackers = null) { throw new NotImplementedException(); }
/// <summary> /// Update a user license's renewal settings. This is applicable for accounts with annual commitment plans only. /// Documentation https://developers.google.com/reseller/v1/reference/subscriptions/changeRenewalSettings /// Generation Note: This does not always build corectly. Google needs to standardise things I need to figuer out which ones are wrong. /// </summary> /// <param name="service">Authenticated Reseller service.</param> /// <param name="customerId">Either the customer's primary domain name or the customer's unique identifier. If using the domain name, we do not recommend using a customerId as a key for persistent data. If the domain name for a customerId is changed, the Google system automatically updates.</param> /// <param name="subscriptionId">This is a required property. The subscriptionId is the subscription identifier and is unique for each customer. Since a subscriptionId changes when a subscription is updated, we recommend to not use this ID as a key for persistent data. And the subscriptionId can be found using the retrieve all reseller subscriptions method.</param> /// <param name="body">A valid Reseller v1 body.</param> /// <returns>SubscriptionResponse</returns> public static Subscription ChangeRenewalSettings(ResellerService service, string customerId, string subscriptionId, RenewalSettings body) { try { // Initial validation. if (service == null) { throw new ArgumentNullException("service"); } if (body == null) { throw new ArgumentNullException("body"); } if (customerId == null) { throw new ArgumentNullException(customerId); } if (subscriptionId == null) { throw new ArgumentNullException(subscriptionId); } // Make the request. return(service.Subscriptions.ChangeRenewalSettings(body, customerId, subscriptionId).Execute()); } catch (Exception ex) { throw new Exception("Request Subscriptions.ChangeRenewalSettings failed.", ex); } }