class Google::Apis::AdminDirectoryV1::Customer

Attributes

alternate_email[RW]

The customer's secondary contact email address. This email address cannot be on the same domain as the `customerDomain` Corresponds to the JSON property `alternateEmail` @return [String]

customer_creation_time[RW]

The customer's creation time (Readonly) Corresponds to the JSON property `customerCreationTime` @return [DateTime]

customer_domain[RW]

The customer's primary domain name string. Do not include the `www` prefix when creating a new customer. Corresponds to the JSON property `customerDomain` @return [String]

etag[RW]

ETag of the resource. Corresponds to the JSON property `etag` @return [String]

id[RW]

The unique ID for the customer's Google Workspace account. (Readonly) Corresponds to the JSON property `id` @return [String]

kind[RW]

Identifies the resource as a customer. Value: `admin#directory#customer` Corresponds to the JSON property `kind` @return [String]

language[RW]

The customer's ISO 639-2 language code. See the [Language Codes](/admin-sdk/ directory/v1/languages) page for the list of supported codes. Valid language codes outside the supported set will be accepted by the API but may lead to unexpected behavior. The default value is `en`. Corresponds to the JSON property `language` @return [String]

phone_number[RW]

The customer's contact phone number in [E.164](en.wikipedia.org/wiki/E. 164) format. Corresponds to the JSON property `phoneNumber` @return [String]

postal_address[RW]

The customer's postal address information. Corresponds to the JSON property `postalAddress` @return [Google::Apis::AdminDirectoryV1::CustomerPostalAddress]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/admin_directory_v1/classes.rb, line 1502
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/admin_directory_v1/classes.rb, line 1507
def update!(**args)
  @alternate_email = args[:alternate_email] if args.key?(:alternate_email)
  @customer_creation_time = args[:customer_creation_time] if args.key?(:customer_creation_time)
  @customer_domain = args[:customer_domain] if args.key?(:customer_domain)
  @etag = args[:etag] if args.key?(:etag)
  @id = args[:id] if args.key?(:id)
  @kind = args[:kind] if args.key?(:kind)
  @language = args[:language] if args.key?(:language)
  @phone_number = args[:phone_number] if args.key?(:phone_number)
  @postal_address = args[:postal_address] if args.key?(:postal_address)
end