Class: Google::Apis::AdminDirectoryV1::Customer
- Inherits:
-
Object
- Object
- Google::Apis::AdminDirectoryV1::Customer
- 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
JSON template for Customer Resource object in Directory API.
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 G Suite 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
JSON template for postal address of a customer.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Customer
constructor
A new instance of Customer.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ Customer
Returns a new instance of Customer
1202 1203 1204 |
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 1202 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
1159 1160 1161 |
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 1159 def alternate_email @alternate_email end |
#customer_creation_time ⇒ DateTime
The customer's creation time (Readonly)
Corresponds to the JSON property customerCreationTime
1164 1165 1166 |
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 1164 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
1170 1171 1172 |
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 1170 def customer_domain @customer_domain end |
#etag ⇒ String
ETag of the resource.
Corresponds to the JSON property etag
1175 1176 1177 |
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 1175 def etag @etag end |
#id ⇒ String
The unique ID for the customer's G Suite account. (Readonly)
Corresponds to the JSON property id
1180 1181 1182 |
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 1180 def id @id end |
#kind ⇒ String
Identifies the resource as a customer. Value: admin#directory#customer
Corresponds to the JSON property kind
1185 1186 1187 |
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 1185 def kind @kind end |
#language ⇒ String
The customer's ISO 639-2 language code. The default value is en-US
Corresponds to the JSON property language
1190 1191 1192 |
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 1190 def language @language end |
#phone_number ⇒ String
The customer's contact phone number in E.164 format.
Corresponds to the JSON property phoneNumber
1195 1196 1197 |
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 1195 def phone_number @phone_number end |
#postal_address ⇒ Google::Apis::AdminDirectoryV1::CustomerPostalAddress
JSON template for postal address of a customer.
Corresponds to the JSON property postalAddress
1200 1201 1202 |
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 1200 def postal_address @postal_address end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1207 1208 1209 1210 1211 1212 1213 1214 1215 1216 1217 |
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 1207 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 |