Class: Google::Apis::AdminDirectoryV1::Customer

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/admin_directory_v1/classes.rb,
generated/google/apis/admin_directory_v1/representations.rb,
generated/google/apis/admin_directory_v1/representations.rb

Overview

STEPLADDER: Generated unstable field number for field 'kind'. (See http://go/ stepladder-help#fieldNumber) STEPLADDER: Generated unstable field number for field 'etag'. (See http://go/stepladder-help#fieldNumber)

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ Customer

Returns a new instance of Customer.


1276
1277
1278
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 1276

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#alternate_emailString

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

Returns:

  • (String)

1230
1231
1232
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 1230

def alternate_email
  @alternate_email
end

#customer_creation_timeDateTime

The customer's creation time (Readonly) Corresponds to the JSON property customerCreationTime

Returns:

  • (DateTime)

1235
1236
1237
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 1235

def customer_creation_time
  @customer_creation_time
end

#customer_domainString

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

Returns:

  • (String)

1241
1242
1243
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 1241

def customer_domain
  @customer_domain
end

#etagString

ETag of the resource. Corresponds to the JSON property etag

Returns:

  • (String)

1246
1247
1248
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 1246

def etag
  @etag
end

#idString

The unique ID for the customer's G Suite account. (Readonly) Corresponds to the JSON property id

Returns:

  • (String)

1251
1252
1253
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 1251

def id
  @id
end

#kindString

Identifies the resource as a customer. Value: admin#directory#customer Corresponds to the JSON property kind

Returns:

  • (String)

1256
1257
1258
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 1256

def kind
  @kind
end

#languageString

The customer's ISO 639-2 language code. The default value is en-US Corresponds to the JSON property language

Returns:

  • (String)

1261
1262
1263
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 1261

def language
  @language
end

#phone_numberString

The customer's contact phone number in E.164 format. Corresponds to the JSON property phoneNumber

Returns:

  • (String)

1266
1267
1268
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 1266

def phone_number
  @phone_number
end

#postal_addressGoogle::Apis::AdminDirectoryV1::CustomerPostalAddress

STEPLADDER: Generated unstable field number for field 'address_line2' to avoid collision. (See http://go/stepladder-help#fieldNumber) STEPLADDER: Generated unstable field number for field 'address_line3' to avoid collision. (See http:/ /go/stepladder-help#fieldNumber) Corresponds to the JSON property postalAddress


1274
1275
1276
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 1274

def postal_address
  @postal_address
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object


1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 1281

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