// Copyright 2020 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. syntax = "proto3"; package google.cloud.channel.v1; import "google/api/field_behavior.proto"; import "google/api/resource.proto"; import "google/cloud/channel/v1/common.proto"; import "google/protobuf/timestamp.proto"; import "google/type/postal_address.proto"; import "google/api/annotations.proto"; option go_package = "google.golang.org/genproto/googleapis/cloud/channel/v1;channel"; option java_multiple_files = true; option java_outer_classname = "CustomersProto"; option java_package = "com.google.cloud.channel.v1"; // Entity representing a customer of a reseller or distributor. message Customer { option (google.api.resource) = { type: "cloudchannel.googleapis.com/Customer" pattern: "accounts/{account}/customers/{customer}" }; // Output only. Resource name of the customer. // Format: accounts/{account_id}/customers/{customer_id} string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; // Required. Name of the organization that the customer entity represents. string org_display_name = 2 [(google.api.field_behavior) = REQUIRED]; // Required. Address of the organization of the customer entity. // Region and zip codes are required to enforce US laws and embargoes. // Language code is discarded. Use the Customer-level language code to set the // customer's language. google.type.PostalAddress org_postal_address = 3 [(google.api.field_behavior) = REQUIRED]; // Primary contact info. ContactInfo primary_contact_info = 4; // 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. string alternate_email = 5; // Required. Primary domain used by the customer. // Domain of primary contact email is required to be same as the provided // domain. string domain = 6 [(google.api.field_behavior) = REQUIRED]; // Output only. The time at which the customer is created. google.protobuf.Timestamp create_time = 7 [(google.api.field_behavior) = OUTPUT_ONLY]; // Output only. The time at which the customer is updated. google.protobuf.Timestamp update_time = 8 [(google.api.field_behavior) = OUTPUT_ONLY]; // Output only. Customer's cloud_identity_id. // Populated only if a Cloud Identity resource exists for this customer. string cloud_identity_id = 9 [(google.api.field_behavior) = OUTPUT_ONLY]; // 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. string language_code = 10 [(google.api.field_behavior) = OPTIONAL]; // Output only. Cloud Identity information for the customer. // Populated only if a Cloud Identity account exists for this customer. CloudIdentityInfo cloud_identity_info = 12 [(google.api.field_behavior) = OUTPUT_ONLY]; // Cloud Identity ID of the customer's channel partner. // Populated only if a channel partner exists for this customer. string channel_partner_id = 13; } // Contact information for a customer account. message ContactInfo { // First name of the contact in the customer account. string first_name = 1; // Last name of the contact in the customer account. string last_name = 2; // Output only. Display name of the contact in the customer account. // Populated by combining customer first name and last name. string display_name = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; // Email of the contact in the customer account. // Email is required for entitlements that need creation of admin.google.com // accounts. The email will be the username used in credentials to access the // admin.google.com account. string email = 5; // Optional. Job title of the contact in the customer account. string title = 6 [(google.api.field_behavior) = OPTIONAL]; // Phone number of the contact in the customer account. string phone = 7; }