/// <summary>Creates/Transfers a subscription for the customer.</summary> /// <param name="SubscriptionBody">The body of the request.</param> /// <param name="CustomerId">Id of the Customer</param> /// <param name="properties">The optional properties for this method.</param> /// <param name="gShellServiceAccount">The optional email address the service account should impersonate.</param> public Google.Apis.Reseller.v1.Data.Subscription Insert(Google.Apis.Reseller.v1.Data.Subscription SubscriptionBody, string CustomerId, SubscriptionsInsertProperties properties = null, gShell.dotNet.Utilities.OAuth2.StandardQueryParameters StandardQueryParams = null) { var request = GetService().Subscriptions.Insert(SubscriptionBody, CustomerId); if (StandardQueryParams != null) { request.Fields = StandardQueryParams.fields; request.QuotaUser = StandardQueryParams.quotaUser; request.UserIp = StandardQueryParams.userIp; } if (properties != null) { request.CustomerAuthToken = properties.CustomerAuthToken; } return(request.Execute()); }
/// <summary>Creates/Transfers a subscription for the customer.</summary> /// <param name="SubscriptionBody">The body of the request.</param> /// <param name="CustomerId">Id of the Customer</param> /// <param name="properties">The optional properties for this method.</param> public Google.Apis.Reseller.v1.Data.Subscription Insert(Google.Apis.Reseller.v1.Data.Subscription SubscriptionBody, string CustomerId, gReseller.Subscriptions.SubscriptionsInsertProperties properties = null, gShell.dotNet.Utilities.OAuth2.StandardQueryParameters StandardQueryParams = null) { properties = properties ?? new gReseller.Subscriptions.SubscriptionsInsertProperties(); return(mainBase.subscriptions.Insert(SubscriptionBody, CustomerId, properties, StandardQueryParams)); }