コード例 #1
0
            /// <summary>Changes the plan of a subscription</summary>
            /// <param name="ChangePlanRequestBody">The body of the request.</param>
            /// <param name="CustomerId">Id of the Customer</param>
            /// <param name="SubscriptionId">Id of the subscription,
            /// which is unique for a customer</param>
            /// <param name="gShellServiceAccount">The optional email address the service account should impersonate.</param>
            public Google.Apis.Reseller.v1.Data.Subscription ChangePlan(Google.Apis.Reseller.v1.Data.ChangePlanRequest ChangePlanRequestBody, string CustomerId, string SubscriptionId, gShell.dotNet.Utilities.OAuth2.StandardQueryParameters StandardQueryParams = null)
            {
                var request = GetService().Subscriptions.ChangePlan(ChangePlanRequestBody, CustomerId, SubscriptionId);

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



                return(request.Execute());
            }
コード例 #2
0
 /// <summary>Changes the plan of a subscription</summary>
 /// <param name="ChangePlanRequestBody">The body of the request.</param>
 /// <param name="CustomerId">Id of the Customer</param>
 /// <param name="SubscriptionId">Id of the subscription,
 /// which is unique for a customer</param>
 public Google.Apis.Reseller.v1.Data.Subscription ChangePlan(Google.Apis.Reseller.v1.Data.ChangePlanRequest ChangePlanRequestBody, string CustomerId, string SubscriptionId, gShell.dotNet.Utilities.OAuth2.StandardQueryParameters StandardQueryParams = null)
 {
     return(mainBase.subscriptions.ChangePlan(ChangePlanRequestBody, CustomerId, SubscriptionId, StandardQueryParams));
 }