Skip to content

New GResellerCustomer

Spencer Varney edited this page Dec 27, 2016 · 3 revisions

New-GResellerCustomer

SYNOPSIS

Creates a customer resource if one does not already exist.

SYNTAX

Params (Default)

New-GResellerCustomer [[-CustomerAuthToken] <String>] [[-CustomerBody] <Customer>] [-AlternateEmail] <String>
 [-CustomerDomain] <String> [[-CustomerDomainVerified] <Boolean>] [[-CustomerId] <String>]
 [[-PhoneNumber] <String>] [[-PostalAddress1] <String>] [[-PostalAddress2] <String>]
 [[-PostalAddress3] <String>] [[-PostalContactName] <String>] [[-PostalCountryCode] <String>]
 [[-PostalLocality] <String>] [[-PostalOrgName] <String>] [[-PostalCode] <String>] [[-PostalRegion] <String>]
 [-StandardQueryParams <StandardQueryParameters>] [-GAuthId <String>] [-WhatIf] [-Confirm]

Body

New-GResellerCustomer [[-CustomerAuthToken] <String>] [[-CustomerBody] <Customer>] [-AlternateEmail] <String>
 [-CustomerDomain] <String> [[-CustomerDomainVerified] <Boolean>] [[-CustomerId] <String>]
 [[-PhoneNumber] <String>] [[-PostalAddress] <Address>] [-StandardQueryParams <StandardQueryParameters>]
 [-GAuthId <String>] [-WhatIf] [-Confirm]

DESCRIPTION

Creates a customer resource if one does not already exist.

EXAMPLES

---------- EXAMPLE 1 ----------

PS C:\> New-GResellerCustomer -CustomerBody $SomeCustomerObj

This automatically generated example serves to show the bare minimum required to call this Cmdlet.

Additional examples may be added, viewed and edited by users on the community wiki at the URL found in the related links.

PARAMETERS

-CustomerAuthToken

An auth token needed for Newing a customer for which domain already exists. Can be generated at https://admin.google.com/TransferToken. Optional.

Type: String
Parameter Sets: (All)
Aliases: 

Required: False
Position: 0
Default value: 
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False

-CustomerBody

JSON template for a customer.

Type: Customer
Parameter Sets: (All)
Aliases: 

Required: False
Position: 1
Default value: 
Accept pipeline input: True (ByPropertyName, ByValue)
Accept wildcard characters: False

-AlternateEmail

The alternate email of the customer.

Type: String
Parameter Sets: (All)
Aliases: 

Required: True
Position: 2
Default value: 
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False

-CustomerDomain

The domain name of the customer.

Type: String
Parameter Sets: (All)
Aliases: 

Required: True
Position: 3
Default value: 
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False

-CustomerDomainVerified

Whether the customer's primary domain has been verified.

Type: Boolean
Parameter Sets: (All)
Aliases: 

Required: False
Position: 4
Default value: 
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False

-CustomerId

The id of the customer.

Type: String
Parameter Sets: (All)
Aliases: 

Required: False
Position: 5
Default value: 
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False

-PhoneNumber

The phone number of the customer.

Type: String
Parameter Sets: (All)
Aliases: 

Required: False
Position: 6
Default value: 
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False

-PostalAddress

The postal address of the customer.

Type: Address
Parameter Sets: Body
Aliases: 

Required: False
Position: 7
Default value: 
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False

-PostalAddress1

The postal address of the customer.

Type: String
Parameter Sets: Params
Aliases: 

Required: False
Position: 7
Default value: 
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False

-PostalAddress2

The second postal address of the customer.

Type: String
Parameter Sets: Params
Aliases: 

Required: False
Position: 8
Default value: 
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False

-PostalAddress3

The third postal address of the customer.

Type: String
Parameter Sets: Params
Aliases: 

Required: False
Position: 9
Default value: 
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False

-PostalContactName

Name of the contact person.

Type: String
Parameter Sets: Params
Aliases: 

Required: False
Position: 10
Default value: 
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False

-PostalCountryCode

ISO 3166 country code.

Type: String
Parameter Sets: Params
Aliases: 

Required: False
Position: 11
Default value: 
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False

-PostalLocality

Name of the locality. This is in accordance with - http://portablecontacts.net/draft-spec.html#address_element.

Type: String
Parameter Sets: Params
Aliases: 

Required: False
Position: 12
Default value: 
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False

-PostalOrgName

Name of the organization.

Type: String
Parameter Sets: Params
Aliases: 

Required: False
Position: 13
Default value: 
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False

-PostalCode

The postal code. This is in accordance with - http://portablecontacts.net/draft-spec.html#address_element.

Type: String
Parameter Sets: Params
Aliases: 

Required: False
Position: 14
Default value: 
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False

-PostalRegion

Name of the region. This is in accordance with - http://portablecontacts.net/draft-spec.html#address_element.

Type: String
Parameter Sets: Params
Aliases: 

Required: False
Position: 15
Default value: 
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False

-StandardQueryParams

A Standard Query Parameters Object.

Type: StandardQueryParameters
Parameter Sets: (All)
Aliases: 

Required: False
Position: Named
Default value: 
Accept pipeline input: False
Accept wildcard characters: False

-GAuthId

The GAuthId representing the gShell auth credentials this cmdlet should use to run.

Type: String
Parameter Sets: (All)
Aliases: 

Required: False
Position: Named
Default value: 
Accept pipeline input: False
Accept wildcard characters: False

INPUTS

System.String

An auth token needed for Newing a customer for which domain already exists. Can be generated at https://admin.google.com/TransferToken. Optional.

Google.Apis.Reseller.v1.Data.Customer

JSON template for a customer.

System.String

The alternate email of the customer.

System.String

The domain name of the customer.

System.Boolean

Whether the customer's primary domain has been verified.

System.String

The id of the customer.

System.String

The phone number of the customer.

Google.Apis.Reseller.v1.Data.Address

The postal address of the customer.

System.String

The postal address of the customer.

System.String

The second postal address of the customer.

System.String

The third postal address of the customer.

System.String

Name of the contact person.

System.String

ISO 3166 country code.

System.String

Name of the locality. This is in accordance with - http://portablecontacts.net/draft-spec.html#address_element.

System.String

Name of the organization.

System.String

The postal code. This is in accordance with - http://portablecontacts.net/draft-spec.html#address_element.

System.String

Name of the region. This is in accordance with - http://portablecontacts.net/draft-spec.html#address_element.

OUTPUTS

NOTES

Part of the gShell Project, relating to the Google Reseller API; see Related Links or use the -Online parameter.

RELATED LINKS

[Wiki page for this Cmdlet]

[Getting started with gShell]

Clone this wiki locally