@@ -19,6 +19,7 @@ package google.cloud.cloudcontrolspartner.v1;
1919import "google/api/field_behavior.proto" ;
2020import "google/api/resource.proto" ;
2121import "google/cloud/cloudcontrolspartner/v1/completion_state.proto" ;
22+ import "google/protobuf/field_mask.proto" ;
2223import "google/protobuf/timestamp.proto" ;
2324
2425option csharp_namespace = "Google.Cloud.CloudControlsPartner.V1" ;
@@ -51,6 +52,10 @@ message Customer {
5152
5253 // Output only. Indicates whether a customer is fully onboarded
5354 bool is_onboarded = 4 [(google.api.field_behavior ) = OUTPUT_ONLY ];
55+
56+ // Output only. The customer organization domain, extracted from
57+ // CRM Organization’s display_name field. e.g. "google.com"
58+ string organization_domain = 5 [(google.api.field_behavior ) = OUTPUT_ONLY ];
5459}
5560
5661// Request to list customers
@@ -92,6 +97,26 @@ message ListCustomersResponse {
9297 repeated string unreachable = 3 ;
9398}
9499
100+ // Request to create a customer
101+ message CreateCustomerRequest {
102+ // Required. Parent resource
103+ // Format: `organizations/{organization}/locations/{location}`
104+ string parent = 1 [
105+ (google.api.field_behavior ) = REQUIRED ,
106+ (google.api.resource_reference ) = {
107+ child_type : "cloudcontrolspartner.googleapis.com/Customer"
108+ }
109+ ];
110+
111+ // Required. The customer to create.
112+ Customer customer = 2 [(google.api.field_behavior ) = REQUIRED ];
113+
114+ // Required. The customer id to use for the customer, which will become the
115+ // final component of the customer's resource name. The specified value must
116+ // be a valid Google cloud organization id.
117+ string customer_id = 3 [(google.api.field_behavior ) = REQUIRED ];
118+ }
119+
95120// Message for getting a customer
96121message GetCustomerRequest {
97122 // Required. Format:
@@ -137,3 +162,27 @@ message CustomerOnboardingStep {
137162 CompletionState completion_state = 4
138163 [(google.api.field_behavior ) = OUTPUT_ONLY ];
139164}
165+
166+ // Request to update a customer
167+ message UpdateCustomerRequest {
168+ // Required. The customer to update
169+ // Format:
170+ // `organizations/{organization}/locations/{location}/customers/{customer}`
171+ Customer customer = 1 [(google.api.field_behavior ) = REQUIRED ];
172+
173+ // Optional. The list of fields to update
174+ google.protobuf.FieldMask update_mask = 2
175+ [(google.api.field_behavior ) = OPTIONAL ];
176+ }
177+
178+ // Message for deleting customer
179+ message DeleteCustomerRequest {
180+ // Required. name of the resource to be deleted
181+ // format: name=organizations/*/locations/*/customers/*
182+ string name = 1 [
183+ (google.api.field_behavior ) = REQUIRED ,
184+ (google.api.resource_reference ) = {
185+ type : "cloudcontrolspartner.googleapis.com/Customer"
186+ }
187+ ];
188+ }
0 commit comments