/// <summary>Update a customer resource if one it exists and is owned by the reseller.</summary> /// <param name="CustomerBody">The body of the request.</param> /// <param name="CustomerId">Id of the Customer</param> /// <param name="gShellServiceAccount">The optional email address the service account should impersonate.</param> public Google.Apis.Reseller.v1.Data.Customer Update(Google.Apis.Reseller.v1.Data.Customer CustomerBody, string CustomerId, gShell.dotNet.Utilities.OAuth2.StandardQueryParameters StandardQueryParams = null) { var request = GetService().Customers.Update(CustomerBody, CustomerId); if (StandardQueryParams != null) { request.Fields = StandardQueryParams.fields; request.QuotaUser = StandardQueryParams.quotaUser; request.UserIp = StandardQueryParams.userIp; } return(request.Execute()); }
/// <summary>Creates a customer resource if one does not already exist.</summary> /// <param name="CustomerBody">The body of the request.</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.Customer Insert(Google.Apis.Reseller.v1.Data.Customer CustomerBody, CustomersInsertProperties properties = null, gShell.dotNet.Utilities.OAuth2.StandardQueryParameters StandardQueryParams = null) { var request = GetService().Customers.Insert(CustomerBody); 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>Update a customer resource if one it exists and is owned by the reseller.</summary> /// <param name="CustomerBody">The body of the request.</param> /// <param name="CustomerId">Id of the Customer</param> public Google.Apis.Reseller.v1.Data.Customer Update(Google.Apis.Reseller.v1.Data.Customer CustomerBody, string CustomerId, gShell.dotNet.Utilities.OAuth2.StandardQueryParameters StandardQueryParams = null) { return(mainBase.customers.Update(CustomerBody, CustomerId, StandardQueryParams)); }
/// <summary>Creates a customer resource if one does not already exist.</summary> /// <param name="CustomerBody">The body of the request.</param> /// <param name="properties">The optional properties for this method.</param> public Google.Apis.Reseller.v1.Data.Customer Insert(Google.Apis.Reseller.v1.Data.Customer CustomerBody, gReseller.Customers.CustomersInsertProperties properties = null, gShell.dotNet.Utilities.OAuth2.StandardQueryParameters StandardQueryParams = null) { properties = properties ?? new gReseller.Customers.CustomersInsertProperties(); return(mainBase.customers.Insert(CustomerBody, properties, StandardQueryParams)); }