Exemple #1
0
            /// <summary>Cancels/Downgrades a subscription.</summary>
            /// <param name="CustomerId">Id of the Customer</param>
            /// <param name="SubscriptionId">Id of the subscription,
            /// which is unique for a customer</param>
            /// <param name="DeletionType">Whether the subscription is to be fully
            /// cancelled or downgraded</param>
            /// <param name="gShellServiceAccount">The optional email address the service account should impersonate.</param>
            public void Delete(string CustomerId, string SubscriptionId, v1.SubscriptionsResource.DeleteRequest.DeletionTypeEnum DeletionType, gShell.dotNet.Utilities.OAuth2.StandardQueryParameters StandardQueryParams = null)
            {
                var request = GetService().Subscriptions.Delete(CustomerId, SubscriptionId, DeletionType);

                if (StandardQueryParams != null)
                {
                    request.Fields    = StandardQueryParams.fields;
                    request.QuotaUser = StandardQueryParams.quotaUser;
                    request.UserIp    = StandardQueryParams.userIp;
                }



                request.Execute();
            }
Exemple #2
0
 /// <summary>Cancels/Downgrades a subscription.</summary>
 /// <param name="CustomerId">Id of the Customer</param>
 /// <param name="SubscriptionId">Id of the subscription,
 /// which is unique for a customer</param>
 /// <param name="DeletionType">Whether the subscription is to be fully
 /// cancelled or downgraded</param>
 public void Delete(string CustomerId, string SubscriptionId, v1.SubscriptionsResource.DeleteRequest.DeletionTypeEnum DeletionType, gShell.dotNet.Utilities.OAuth2.StandardQueryParameters StandardQueryParams = null)
 {
     mainBase.subscriptions.Delete(CustomerId, SubscriptionId, DeletionType, StandardQueryParams);
 }