Class: Google::Apis::CloudchannelV1::GoogleCloudChannelV1Customer
- Inherits:
-
Object
- Object
- Google::Apis::CloudchannelV1::GoogleCloudChannelV1Customer
- Includes:
- Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
- Defined in:
- lib/google/apis/cloudchannel_v1/classes.rb,
lib/google/apis/cloudchannel_v1/representations.rb,
lib/google/apis/cloudchannel_v1/representations.rb
Overview
Entity representing a customer of a reseller or distributor.
Instance Attribute Summary collapse
-
#alternate_email ⇒ String
Secondary contact email.
-
#channel_partner_id ⇒ String
Cloud Identity ID of the customer's channel partner.
-
#cloud_identity_id ⇒ String
Output only.
-
#cloud_identity_info ⇒ Google::Apis::CloudchannelV1::GoogleCloudChannelV1CloudIdentityInfo
Cloud Identity information for the Cloud Channel Customer.
-
#create_time ⇒ String
Output only.
-
#domain ⇒ String
Required.
-
#language_code ⇒ String
Optional.
-
#name ⇒ String
Output only.
-
#org_display_name ⇒ String
Required.
-
#org_postal_address ⇒ Google::Apis::CloudchannelV1::GoogleTypePostalAddress
Represents a postal address, e.g.
-
#primary_contact_info ⇒ Google::Apis::CloudchannelV1::GoogleCloudChannelV1ContactInfo
Contact information for a customer account.
-
#update_time ⇒ String
Output only.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudChannelV1Customer
constructor
A new instance of GoogleCloudChannelV1Customer.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudChannelV1Customer
Returns a new instance of GoogleCloudChannelV1Customer.
672 673 674 |
# File 'lib/google/apis/cloudchannel_v1/classes.rb', line 672 def initialize(**args) update!(**args) end |
Instance Attribute Details
#alternate_email ⇒ String
Secondary contact email. Alternate email and primary contact email are
required to have different domains if primary contact email is present. When
creating admin.google.com accounts, users get notified credentials at this
email. This email address is also used as a recovery email.
Corresponds to the JSON property alternateEmail
600 601 602 |
# File 'lib/google/apis/cloudchannel_v1/classes.rb', line 600 def alternate_email @alternate_email end |
#channel_partner_id ⇒ String
Cloud Identity ID of the customer's channel partner. Populated only if a
channel partner exists for this customer.
Corresponds to the JSON property channelPartnerId
606 607 608 |
# File 'lib/google/apis/cloudchannel_v1/classes.rb', line 606 def channel_partner_id @channel_partner_id end |
#cloud_identity_id ⇒ String
Output only. Customer's cloud_identity_id. Populated only if a Cloud Identity
resource exists for this customer.
Corresponds to the JSON property cloudIdentityId
612 613 614 |
# File 'lib/google/apis/cloudchannel_v1/classes.rb', line 612 def cloud_identity_id @cloud_identity_id end |
#cloud_identity_info ⇒ Google::Apis::CloudchannelV1::GoogleCloudChannelV1CloudIdentityInfo
Cloud Identity information for the Cloud Channel Customer.
Corresponds to the JSON property cloudIdentityInfo
617 618 619 |
# File 'lib/google/apis/cloudchannel_v1/classes.rb', line 617 def cloud_identity_info @cloud_identity_info end |
#create_time ⇒ String
Output only. The time at which the customer is created.
Corresponds to the JSON property createTime
622 623 624 |
# File 'lib/google/apis/cloudchannel_v1/classes.rb', line 622 def create_time @create_time end |
#domain ⇒ String
Required. Primary domain used by the customer. Domain of primary contact email
is required to be same as the provided domain.
Corresponds to the JSON property domain
628 629 630 |
# File 'lib/google/apis/cloudchannel_v1/classes.rb', line 628 def domain @domain end |
#language_code ⇒ String
Optional. The BCP-47 language code, such as "en-US" or "sr-Latn". For more
information, see https://www.unicode.org/reports/tr35/#
Unicode_locale_identifier.
Corresponds to the JSON property languageCode
635 636 637 |
# File 'lib/google/apis/cloudchannel_v1/classes.rb', line 635 def language_code @language_code end |
#name ⇒ String
Output only. Resource name of the customer. Format: accounts/account_id
/
customers/customer_id
Corresponds to the JSON property name
641 642 643 |
# File 'lib/google/apis/cloudchannel_v1/classes.rb', line 641 def name @name end |
#org_display_name ⇒ String
Required. Name of the organization that the customer entity represents.
Corresponds to the JSON property orgDisplayName
646 647 648 |
# File 'lib/google/apis/cloudchannel_v1/classes.rb', line 646 def org_display_name @org_display_name end |
#org_postal_address ⇒ Google::Apis::CloudchannelV1::GoogleTypePostalAddress
Represents a postal address, e.g. for postal delivery or payments addresses.
Given a postal address, a postal service can deliver items to a premise, P.O.
Box or similar. It is not intended to model geographical locations (roads,
towns, mountains). In typical usage an address would be created via user input
or from importing existing data, depending on the type of process. Advice on
address input / editing: - Use an i18n-ready address widget such as https://
github.com/google/libaddressinput) - Users should not be presented with UI
elements for input or editing of fields outside countries where that field is
used. For more guidance on how to use this schema, please see: https://support.
google.com/business/answer/6397478
Corresponds to the JSON property orgPostalAddress
660 661 662 |
# File 'lib/google/apis/cloudchannel_v1/classes.rb', line 660 def org_postal_address @org_postal_address end |
#primary_contact_info ⇒ Google::Apis::CloudchannelV1::GoogleCloudChannelV1ContactInfo
Contact information for a customer account.
Corresponds to the JSON property primaryContactInfo
665 666 667 |
# File 'lib/google/apis/cloudchannel_v1/classes.rb', line 665 def primary_contact_info @primary_contact_info end |
#update_time ⇒ String
Output only. The time at which the customer is updated.
Corresponds to the JSON property updateTime
670 671 672 |
# File 'lib/google/apis/cloudchannel_v1/classes.rb', line 670 def update_time @update_time end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
677 678 679 680 681 682 683 684 685 686 687 688 689 690 |
# File 'lib/google/apis/cloudchannel_v1/classes.rb', line 677 def update!(**args) @alternate_email = args[:alternate_email] if args.key?(:alternate_email) @channel_partner_id = args[:channel_partner_id] if args.key?(:channel_partner_id) @cloud_identity_id = args[:cloud_identity_id] if args.key?(:cloud_identity_id) @cloud_identity_info = args[:cloud_identity_info] if args.key?(:cloud_identity_info) @create_time = args[:create_time] if args.key?(:create_time) @domain = args[:domain] if args.key?(:domain) @language_code = args[:language_code] if args.key?(:language_code) @name = args[:name] if args.key?(:name) @org_display_name = args[:org_display_name] if args.key?(:org_display_name) @org_postal_address = args[:org_postal_address] if args.key?(:org_postal_address) @primary_contact_info = args[:primary_contact_info] if args.key?(:primary_contact_info) @update_time = args[:update_time] if args.key?(:update_time) end |