Class: Google::Apis::AdminDirectoryV1::Customer
- Inherits:
-
Object
- Object
- Google::Apis::AdminDirectoryV1::Customer
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/admin_directory_v1/classes.rb,
lib/google/apis/admin_directory_v1/representations.rb,
lib/google/apis/admin_directory_v1/representations.rb
Instance Attribute Summary collapse
-
#alternate_email ⇒ String
The customer's secondary contact email address.
-
#customer_creation_time ⇒ DateTime
The customer's creation time (Readonly) Corresponds to the JSON property
customerCreationTime. -
#customer_domain ⇒ String
The customer's primary domain name string.
-
#etag ⇒ String
ETag of the resource.
-
#id ⇒ String
The unique ID for the customer's Google Workspace account.
-
#kind ⇒ String
Identifies the resource as a customer.
-
#language ⇒ String
The customer's ISO 639-2 language code.
-
#phone_number ⇒ String
The customer's contact phone number in E.164 format.
-
#postal_address ⇒ Google::Apis::AdminDirectoryV1::CustomerPostalAddress
The customer's postal address information.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Customer
constructor
A new instance of Customer.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ Customer
Returns a new instance of Customer.
1620 1621 1622 |
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 1620 def initialize(**args) update!(**args) end |
Instance Attribute Details
#alternate_email ⇒ String
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
1573 1574 1575 |
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 1573 def alternate_email @alternate_email end |
#customer_creation_time ⇒ DateTime
The customer's creation time (Readonly)
Corresponds to the JSON property customerCreationTime
1578 1579 1580 |
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 1578 def customer_creation_time @customer_creation_time end |
#customer_domain ⇒ String
The customer's primary domain name string. Do not include the www prefix
when creating a new customer.
Corresponds to the JSON property customerDomain
1584 1585 1586 |
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 1584 def customer_domain @customer_domain end |
#etag ⇒ String
ETag of the resource.
Corresponds to the JSON property etag
1589 1590 1591 |
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 1589 def etag @etag end |
#id ⇒ String
The unique ID for the customer's Google Workspace account. (Readonly)
Corresponds to the JSON property id
1594 1595 1596 |
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 1594 def id @id end |
#kind ⇒ String
Identifies the resource as a customer. Value: admin#directory#customer
Corresponds to the JSON property kind
1599 1600 1601 |
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 1599 def kind @kind end |
#language ⇒ String
The customer's ISO 639-2 language code. See the Language Codes 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
1607 1608 1609 |
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 1607 def language @language end |
#phone_number ⇒ String
The customer's contact phone number in E.164 format.
Corresponds to the JSON property phoneNumber
1613 1614 1615 |
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 1613 def phone_number @phone_number end |
#postal_address ⇒ Google::Apis::AdminDirectoryV1::CustomerPostalAddress
The customer's postal address information.
Corresponds to the JSON property postalAddress
1618 1619 1620 |
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 1618 def postal_address @postal_address end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1625 1626 1627 1628 1629 1630 1631 1632 1633 1634 1635 |
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 1625 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 |