Class: Google::Apis::ResellerV1::Customer

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

Overview

JSON template for a customer.

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



219
220
221
# File 'generated/google/apis/reseller_v1/classes.rb', line 219

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

Instance Attribute Details

#alternate_emailString

Like the "Customer email" in the reseller tools, this email is the secondary contact used if something happens to the customer's service such as service outage or a security issue. This property is required when creating a new customer and should not use the same domain as customerDomain. Corresponds to the JSON property alternateEmail

Returns:

  • (String)


173
174
175
# File 'generated/google/apis/reseller_v1/classes.rb', line 173

def alternate_email
  @alternate_email
end

#customer_domainString

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

Returns:

  • (String)


180
181
182
# File 'generated/google/apis/reseller_v1/classes.rb', line 180

def customer_domain
  @customer_domain
end

#customer_domain_verifiedBoolean Also known as: customer_domain_verified?

Whether the customer's primary domain has been verified. Corresponds to the JSON property customerDomainVerified

Returns:

  • (Boolean)


185
186
187
# File 'generated/google/apis/reseller_v1/classes.rb', line 185

def customer_domain_verified
  @customer_domain_verified
end

#customer_idString

This property will always be returned in a response as the unique identifier generated by Google. In a request, this property can be either the primary domain or the unique identifier generated by Google. Corresponds to the JSON property customerId

Returns:

  • (String)


193
194
195
# File 'generated/google/apis/reseller_v1/classes.rb', line 193

def customer_id
  @customer_id
end

#kindString

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

Returns:

  • (String)


198
199
200
# File 'generated/google/apis/reseller_v1/classes.rb', line 198

def kind
  @kind
end

#phone_numberString

Customer contact phone number. This can be continuous numbers, with spaces, etc. But it must be a real phone number and not, for example, "123". See phone local format conventions. Corresponds to the JSON property phoneNumber

Returns:

  • (String)


205
206
207
# File 'generated/google/apis/reseller_v1/classes.rb', line 205

def phone_number
  @phone_number
end

#postal_addressGoogle::Apis::ResellerV1::Address

JSON template for address of a customer. Corresponds to the JSON property postalAddress



210
211
212
# File 'generated/google/apis/reseller_v1/classes.rb', line 210

def postal_address
  @postal_address
end

#resource_ui_urlString

URL to customer's Admin console dashboard. The read-only URL is generated by the API service. This is used if your client application requires the customer to complete a task in the Admin console. Corresponds to the JSON property resourceUiUrl

Returns:

  • (String)


217
218
219
# File 'generated/google/apis/reseller_v1/classes.rb', line 217

def resource_ui_url
  @resource_ui_url
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



224
225
226
227
228
229
230
231
232
233
# File 'generated/google/apis/reseller_v1/classes.rb', line 224

def update!(**args)
  @alternate_email = args[:alternate_email] if args.key?(:alternate_email)
  @customer_domain = args[:customer_domain] if args.key?(:customer_domain)
  @customer_domain_verified = args[:customer_domain_verified] if args.key?(:customer_domain_verified)
  @customer_id = args[:customer_id] if args.key?(:customer_id)
  @kind = args[:kind] if args.key?(:kind)
  @phone_number = args[:phone_number] if args.key?(:phone_number)
  @postal_address = args[:postal_address] if args.key?(:postal_address)
  @resource_ui_url = args[:resource_ui_url] if args.key?(:resource_ui_url)
end