From 3980ec43fe2298d9a2c547c6afbb4aa973e45baa Mon Sep 17 00:00:00 2001 From: Owl Bot Date: Fri, 24 Jan 2025 17:14:54 +0000 Subject: [PATCH] feat: A new method `CreateCustomer` is added to service `CloudControlsPartnerCore` feat: A new method `UpdateCustomer` is added to service `CloudControlsPartnerCore` feat: A new method `DeleteCustomer` is added to service `CloudControlsPartnerCore` feat: A new field `organization_domain` is added to message `.google.cloud.cloudcontrolspartner.v1beta.Customer` feat: A new message `CreateCustomerRequest` is added feat: A new message `UpdateCustomerRequest` is added feat: A new message `DeleteCustomerRequest` is added docs: A comment for field `requested_cancellation` in message `.google.cloud.cloudcontrolspartner.v1beta.OperationMetadata` is changed docs: A comment for enum value `VIRTRU` in enum `EkmSolution` is changed PiperOrigin-RevId: 719291894 Source-Link: https://github.com/googleapis/googleapis/commit/4d8214803feb680a2dfa8ca4437b7ddfe64d146d Source-Link: https://github.com/googleapis/googleapis-gen/commit/41b559fd8e8799fecb97d2f00560a408e977c332 Copy-Tag: eyJwIjoiYXBpcy9Hb29nbGUuQ2xvdWQuQ2xvdWRDb250cm9sc1BhcnRuZXIuVjFCZXRhLy5Pd2xCb3QueWFtbCIsImgiOiI0MWI1NTlmZDhlODc5OWZlY2I5N2QyZjAwNTYwYTQwOGU5NzdjMzMyIn0= --- ...CoreClient.CreateCustomerAsyncSnippet.g.cs | 46 + ...eateCustomerRequestObjectAsyncSnippet.g.cs | 49 + ...nt.CreateCustomerRequestObjectSnippet.g.cs | 48 + ...eateCustomerResourceNamesAsyncSnippet.g.cs | 46 + ...nt.CreateCustomerResourceNamesSnippet.g.cs | 45 + ...rtnerCoreClient.CreateCustomerSnippet.g.cs | 45 + ...CoreClient.DeleteCustomerAsyncSnippet.g.cs | 44 + ...leteCustomerRequestObjectAsyncSnippet.g.cs | 47 + ...nt.DeleteCustomerRequestObjectSnippet.g.cs | 46 + ...leteCustomerResourceNamesAsyncSnippet.g.cs | 44 + ...nt.DeleteCustomerResourceNamesSnippet.g.cs | 43 + ...rtnerCoreClient.DeleteCustomerSnippet.g.cs | 43 + ...CoreClient.UpdateCustomerAsyncSnippet.g.cs | 46 + ...dateCustomerRequestObjectAsyncSnippet.g.cs | 49 + ...nt.UpdateCustomerRequestObjectSnippet.g.cs | 48 + ...rtnerCoreClient.UpdateCustomerSnippet.g.cs | 45 + ...gle.cloud.cloudcontrolspartner.v1beta.json | 803 ++++++++++++++++ ...loudControlsPartnerCoreClientSnippets.g.cs | 251 +++++ .../CloudControlsPartnerCoreClient.g.cs | 503 ++++++++++ .../Core.g.cs | 141 +-- .../CoreGrpc.g.cs | 220 ++++- .../Customers.g.cs | 878 +++++++++++++++++- .../CustomersResourceNames.g.cs | 24 + .../Partners.g.cs | 23 +- .../gapic_metadata.json | 18 + 25 files changed, 3479 insertions(+), 116 deletions(-) create mode 100644 apis/Google.Cloud.CloudControlsPartner.V1Beta/Google.Cloud.CloudControlsPartner.V1Beta.GeneratedSnippets/CloudControlsPartnerCoreClient.CreateCustomerAsyncSnippet.g.cs create mode 100644 apis/Google.Cloud.CloudControlsPartner.V1Beta/Google.Cloud.CloudControlsPartner.V1Beta.GeneratedSnippets/CloudControlsPartnerCoreClient.CreateCustomerRequestObjectAsyncSnippet.g.cs create mode 100644 apis/Google.Cloud.CloudControlsPartner.V1Beta/Google.Cloud.CloudControlsPartner.V1Beta.GeneratedSnippets/CloudControlsPartnerCoreClient.CreateCustomerRequestObjectSnippet.g.cs create mode 100644 apis/Google.Cloud.CloudControlsPartner.V1Beta/Google.Cloud.CloudControlsPartner.V1Beta.GeneratedSnippets/CloudControlsPartnerCoreClient.CreateCustomerResourceNamesAsyncSnippet.g.cs create mode 100644 apis/Google.Cloud.CloudControlsPartner.V1Beta/Google.Cloud.CloudControlsPartner.V1Beta.GeneratedSnippets/CloudControlsPartnerCoreClient.CreateCustomerResourceNamesSnippet.g.cs create mode 100644 apis/Google.Cloud.CloudControlsPartner.V1Beta/Google.Cloud.CloudControlsPartner.V1Beta.GeneratedSnippets/CloudControlsPartnerCoreClient.CreateCustomerSnippet.g.cs create mode 100644 apis/Google.Cloud.CloudControlsPartner.V1Beta/Google.Cloud.CloudControlsPartner.V1Beta.GeneratedSnippets/CloudControlsPartnerCoreClient.DeleteCustomerAsyncSnippet.g.cs create mode 100644 apis/Google.Cloud.CloudControlsPartner.V1Beta/Google.Cloud.CloudControlsPartner.V1Beta.GeneratedSnippets/CloudControlsPartnerCoreClient.DeleteCustomerRequestObjectAsyncSnippet.g.cs create mode 100644 apis/Google.Cloud.CloudControlsPartner.V1Beta/Google.Cloud.CloudControlsPartner.V1Beta.GeneratedSnippets/CloudControlsPartnerCoreClient.DeleteCustomerRequestObjectSnippet.g.cs create mode 100644 apis/Google.Cloud.CloudControlsPartner.V1Beta/Google.Cloud.CloudControlsPartner.V1Beta.GeneratedSnippets/CloudControlsPartnerCoreClient.DeleteCustomerResourceNamesAsyncSnippet.g.cs create mode 100644 apis/Google.Cloud.CloudControlsPartner.V1Beta/Google.Cloud.CloudControlsPartner.V1Beta.GeneratedSnippets/CloudControlsPartnerCoreClient.DeleteCustomerResourceNamesSnippet.g.cs create mode 100644 apis/Google.Cloud.CloudControlsPartner.V1Beta/Google.Cloud.CloudControlsPartner.V1Beta.GeneratedSnippets/CloudControlsPartnerCoreClient.DeleteCustomerSnippet.g.cs create mode 100644 apis/Google.Cloud.CloudControlsPartner.V1Beta/Google.Cloud.CloudControlsPartner.V1Beta.GeneratedSnippets/CloudControlsPartnerCoreClient.UpdateCustomerAsyncSnippet.g.cs create mode 100644 apis/Google.Cloud.CloudControlsPartner.V1Beta/Google.Cloud.CloudControlsPartner.V1Beta.GeneratedSnippets/CloudControlsPartnerCoreClient.UpdateCustomerRequestObjectAsyncSnippet.g.cs create mode 100644 apis/Google.Cloud.CloudControlsPartner.V1Beta/Google.Cloud.CloudControlsPartner.V1Beta.GeneratedSnippets/CloudControlsPartnerCoreClient.UpdateCustomerRequestObjectSnippet.g.cs create mode 100644 apis/Google.Cloud.CloudControlsPartner.V1Beta/Google.Cloud.CloudControlsPartner.V1Beta.GeneratedSnippets/CloudControlsPartnerCoreClient.UpdateCustomerSnippet.g.cs diff --git a/apis/Google.Cloud.CloudControlsPartner.V1Beta/Google.Cloud.CloudControlsPartner.V1Beta.GeneratedSnippets/CloudControlsPartnerCoreClient.CreateCustomerAsyncSnippet.g.cs b/apis/Google.Cloud.CloudControlsPartner.V1Beta/Google.Cloud.CloudControlsPartner.V1Beta.GeneratedSnippets/CloudControlsPartnerCoreClient.CreateCustomerAsyncSnippet.g.cs new file mode 100644 index 000000000000..43d7dbbfd184 --- /dev/null +++ b/apis/Google.Cloud.CloudControlsPartner.V1Beta/Google.Cloud.CloudControlsPartner.V1Beta.GeneratedSnippets/CloudControlsPartnerCoreClient.CreateCustomerAsyncSnippet.g.cs @@ -0,0 +1,46 @@ +// Copyright 2025 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 +// +// https://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. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START cloudcontrolspartner_v1beta_generated_CloudControlsPartnerCore_CreateCustomer_async_flattened] + using Google.Cloud.CloudControlsPartner.V1Beta; + using System.Threading.Tasks; + + public sealed partial class GeneratedCloudControlsPartnerCoreClientSnippets + { + /// Snippet for CreateCustomerAsync + /// + /// This snippet has been automatically generated and should be regarded as a code template only. + /// It will require modifications to work: + /// - It may require correct/in-range values for request initialization. + /// - It may require specifying regional endpoints when creating the service client as shown in + /// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint. + /// + public async Task CreateCustomerAsync() + { + // Create client + CloudControlsPartnerCoreClient cloudControlsPartnerCoreClient = await CloudControlsPartnerCoreClient.CreateAsync(); + // Initialize request argument(s) + string parent = "organizations/[ORGANIZATION]/locations/[LOCATION]"; + Customer customer = new Customer(); + string customerId = ""; + // Make the request + Customer response = await cloudControlsPartnerCoreClient.CreateCustomerAsync(parent, customer, customerId); + } + } + // [END cloudcontrolspartner_v1beta_generated_CloudControlsPartnerCore_CreateCustomer_async_flattened] +} diff --git a/apis/Google.Cloud.CloudControlsPartner.V1Beta/Google.Cloud.CloudControlsPartner.V1Beta.GeneratedSnippets/CloudControlsPartnerCoreClient.CreateCustomerRequestObjectAsyncSnippet.g.cs b/apis/Google.Cloud.CloudControlsPartner.V1Beta/Google.Cloud.CloudControlsPartner.V1Beta.GeneratedSnippets/CloudControlsPartnerCoreClient.CreateCustomerRequestObjectAsyncSnippet.g.cs new file mode 100644 index 000000000000..7b649573647e --- /dev/null +++ b/apis/Google.Cloud.CloudControlsPartner.V1Beta/Google.Cloud.CloudControlsPartner.V1Beta.GeneratedSnippets/CloudControlsPartnerCoreClient.CreateCustomerRequestObjectAsyncSnippet.g.cs @@ -0,0 +1,49 @@ +// Copyright 2025 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 +// +// https://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. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START cloudcontrolspartner_v1beta_generated_CloudControlsPartnerCore_CreateCustomer_async] + using Google.Cloud.CloudControlsPartner.V1Beta; + using System.Threading.Tasks; + + public sealed partial class GeneratedCloudControlsPartnerCoreClientSnippets + { + /// Snippet for CreateCustomerAsync + /// + /// This snippet has been automatically generated and should be regarded as a code template only. + /// It will require modifications to work: + /// - It may require correct/in-range values for request initialization. + /// - It may require specifying regional endpoints when creating the service client as shown in + /// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint. + /// + public async Task CreateCustomerRequestObjectAsync() + { + // Create client + CloudControlsPartnerCoreClient cloudControlsPartnerCoreClient = await CloudControlsPartnerCoreClient.CreateAsync(); + // Initialize request argument(s) + CreateCustomerRequest request = new CreateCustomerRequest + { + ParentAsOrganizationLocationName = OrganizationLocationName.FromOrganizationLocation("[ORGANIZATION]", "[LOCATION]"), + Customer = new Customer(), + CustomerId = "", + }; + // Make the request + Customer response = await cloudControlsPartnerCoreClient.CreateCustomerAsync(request); + } + } + // [END cloudcontrolspartner_v1beta_generated_CloudControlsPartnerCore_CreateCustomer_async] +} diff --git a/apis/Google.Cloud.CloudControlsPartner.V1Beta/Google.Cloud.CloudControlsPartner.V1Beta.GeneratedSnippets/CloudControlsPartnerCoreClient.CreateCustomerRequestObjectSnippet.g.cs b/apis/Google.Cloud.CloudControlsPartner.V1Beta/Google.Cloud.CloudControlsPartner.V1Beta.GeneratedSnippets/CloudControlsPartnerCoreClient.CreateCustomerRequestObjectSnippet.g.cs new file mode 100644 index 000000000000..fab7f2301972 --- /dev/null +++ b/apis/Google.Cloud.CloudControlsPartner.V1Beta/Google.Cloud.CloudControlsPartner.V1Beta.GeneratedSnippets/CloudControlsPartnerCoreClient.CreateCustomerRequestObjectSnippet.g.cs @@ -0,0 +1,48 @@ +// Copyright 2025 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 +// +// https://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. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START cloudcontrolspartner_v1beta_generated_CloudControlsPartnerCore_CreateCustomer_sync] + using Google.Cloud.CloudControlsPartner.V1Beta; + + public sealed partial class GeneratedCloudControlsPartnerCoreClientSnippets + { + /// Snippet for CreateCustomer + /// + /// This snippet has been automatically generated and should be regarded as a code template only. + /// It will require modifications to work: + /// - It may require correct/in-range values for request initialization. + /// - It may require specifying regional endpoints when creating the service client as shown in + /// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint. + /// + public void CreateCustomerRequestObject() + { + // Create client + CloudControlsPartnerCoreClient cloudControlsPartnerCoreClient = CloudControlsPartnerCoreClient.Create(); + // Initialize request argument(s) + CreateCustomerRequest request = new CreateCustomerRequest + { + ParentAsOrganizationLocationName = OrganizationLocationName.FromOrganizationLocation("[ORGANIZATION]", "[LOCATION]"), + Customer = new Customer(), + CustomerId = "", + }; + // Make the request + Customer response = cloudControlsPartnerCoreClient.CreateCustomer(request); + } + } + // [END cloudcontrolspartner_v1beta_generated_CloudControlsPartnerCore_CreateCustomer_sync] +} diff --git a/apis/Google.Cloud.CloudControlsPartner.V1Beta/Google.Cloud.CloudControlsPartner.V1Beta.GeneratedSnippets/CloudControlsPartnerCoreClient.CreateCustomerResourceNamesAsyncSnippet.g.cs b/apis/Google.Cloud.CloudControlsPartner.V1Beta/Google.Cloud.CloudControlsPartner.V1Beta.GeneratedSnippets/CloudControlsPartnerCoreClient.CreateCustomerResourceNamesAsyncSnippet.g.cs new file mode 100644 index 000000000000..edb570753e2b --- /dev/null +++ b/apis/Google.Cloud.CloudControlsPartner.V1Beta/Google.Cloud.CloudControlsPartner.V1Beta.GeneratedSnippets/CloudControlsPartnerCoreClient.CreateCustomerResourceNamesAsyncSnippet.g.cs @@ -0,0 +1,46 @@ +// Copyright 2025 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 +// +// https://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. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START cloudcontrolspartner_v1beta_generated_CloudControlsPartnerCore_CreateCustomer_async_flattened_resourceNames] + using Google.Cloud.CloudControlsPartner.V1Beta; + using System.Threading.Tasks; + + public sealed partial class GeneratedCloudControlsPartnerCoreClientSnippets + { + /// Snippet for CreateCustomerAsync + /// + /// This snippet has been automatically generated and should be regarded as a code template only. + /// It will require modifications to work: + /// - It may require correct/in-range values for request initialization. + /// - It may require specifying regional endpoints when creating the service client as shown in + /// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint. + /// + public async Task CreateCustomerResourceNamesAsync() + { + // Create client + CloudControlsPartnerCoreClient cloudControlsPartnerCoreClient = await CloudControlsPartnerCoreClient.CreateAsync(); + // Initialize request argument(s) + OrganizationLocationName parent = OrganizationLocationName.FromOrganizationLocation("[ORGANIZATION]", "[LOCATION]"); + Customer customer = new Customer(); + string customerId = ""; + // Make the request + Customer response = await cloudControlsPartnerCoreClient.CreateCustomerAsync(parent, customer, customerId); + } + } + // [END cloudcontrolspartner_v1beta_generated_CloudControlsPartnerCore_CreateCustomer_async_flattened_resourceNames] +} diff --git a/apis/Google.Cloud.CloudControlsPartner.V1Beta/Google.Cloud.CloudControlsPartner.V1Beta.GeneratedSnippets/CloudControlsPartnerCoreClient.CreateCustomerResourceNamesSnippet.g.cs b/apis/Google.Cloud.CloudControlsPartner.V1Beta/Google.Cloud.CloudControlsPartner.V1Beta.GeneratedSnippets/CloudControlsPartnerCoreClient.CreateCustomerResourceNamesSnippet.g.cs new file mode 100644 index 000000000000..426d74d14293 --- /dev/null +++ b/apis/Google.Cloud.CloudControlsPartner.V1Beta/Google.Cloud.CloudControlsPartner.V1Beta.GeneratedSnippets/CloudControlsPartnerCoreClient.CreateCustomerResourceNamesSnippet.g.cs @@ -0,0 +1,45 @@ +// Copyright 2025 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 +// +// https://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. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START cloudcontrolspartner_v1beta_generated_CloudControlsPartnerCore_CreateCustomer_sync_flattened_resourceNames] + using Google.Cloud.CloudControlsPartner.V1Beta; + + public sealed partial class GeneratedCloudControlsPartnerCoreClientSnippets + { + /// Snippet for CreateCustomer + /// + /// This snippet has been automatically generated and should be regarded as a code template only. + /// It will require modifications to work: + /// - It may require correct/in-range values for request initialization. + /// - It may require specifying regional endpoints when creating the service client as shown in + /// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint. + /// + public void CreateCustomerResourceNames() + { + // Create client + CloudControlsPartnerCoreClient cloudControlsPartnerCoreClient = CloudControlsPartnerCoreClient.Create(); + // Initialize request argument(s) + OrganizationLocationName parent = OrganizationLocationName.FromOrganizationLocation("[ORGANIZATION]", "[LOCATION]"); + Customer customer = new Customer(); + string customerId = ""; + // Make the request + Customer response = cloudControlsPartnerCoreClient.CreateCustomer(parent, customer, customerId); + } + } + // [END cloudcontrolspartner_v1beta_generated_CloudControlsPartnerCore_CreateCustomer_sync_flattened_resourceNames] +} diff --git a/apis/Google.Cloud.CloudControlsPartner.V1Beta/Google.Cloud.CloudControlsPartner.V1Beta.GeneratedSnippets/CloudControlsPartnerCoreClient.CreateCustomerSnippet.g.cs b/apis/Google.Cloud.CloudControlsPartner.V1Beta/Google.Cloud.CloudControlsPartner.V1Beta.GeneratedSnippets/CloudControlsPartnerCoreClient.CreateCustomerSnippet.g.cs new file mode 100644 index 000000000000..78c93eca9651 --- /dev/null +++ b/apis/Google.Cloud.CloudControlsPartner.V1Beta/Google.Cloud.CloudControlsPartner.V1Beta.GeneratedSnippets/CloudControlsPartnerCoreClient.CreateCustomerSnippet.g.cs @@ -0,0 +1,45 @@ +// Copyright 2025 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 +// +// https://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. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START cloudcontrolspartner_v1beta_generated_CloudControlsPartnerCore_CreateCustomer_sync_flattened] + using Google.Cloud.CloudControlsPartner.V1Beta; + + public sealed partial class GeneratedCloudControlsPartnerCoreClientSnippets + { + /// Snippet for CreateCustomer + /// + /// This snippet has been automatically generated and should be regarded as a code template only. + /// It will require modifications to work: + /// - It may require correct/in-range values for request initialization. + /// - It may require specifying regional endpoints when creating the service client as shown in + /// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint. + /// + public void CreateCustomer() + { + // Create client + CloudControlsPartnerCoreClient cloudControlsPartnerCoreClient = CloudControlsPartnerCoreClient.Create(); + // Initialize request argument(s) + string parent = "organizations/[ORGANIZATION]/locations/[LOCATION]"; + Customer customer = new Customer(); + string customerId = ""; + // Make the request + Customer response = cloudControlsPartnerCoreClient.CreateCustomer(parent, customer, customerId); + } + } + // [END cloudcontrolspartner_v1beta_generated_CloudControlsPartnerCore_CreateCustomer_sync_flattened] +} diff --git a/apis/Google.Cloud.CloudControlsPartner.V1Beta/Google.Cloud.CloudControlsPartner.V1Beta.GeneratedSnippets/CloudControlsPartnerCoreClient.DeleteCustomerAsyncSnippet.g.cs b/apis/Google.Cloud.CloudControlsPartner.V1Beta/Google.Cloud.CloudControlsPartner.V1Beta.GeneratedSnippets/CloudControlsPartnerCoreClient.DeleteCustomerAsyncSnippet.g.cs new file mode 100644 index 000000000000..ceafe21dee1a --- /dev/null +++ b/apis/Google.Cloud.CloudControlsPartner.V1Beta/Google.Cloud.CloudControlsPartner.V1Beta.GeneratedSnippets/CloudControlsPartnerCoreClient.DeleteCustomerAsyncSnippet.g.cs @@ -0,0 +1,44 @@ +// Copyright 2025 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 +// +// https://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. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START cloudcontrolspartner_v1beta_generated_CloudControlsPartnerCore_DeleteCustomer_async_flattened] + using Google.Cloud.CloudControlsPartner.V1Beta; + using System.Threading.Tasks; + + public sealed partial class GeneratedCloudControlsPartnerCoreClientSnippets + { + /// Snippet for DeleteCustomerAsync + /// + /// This snippet has been automatically generated and should be regarded as a code template only. + /// It will require modifications to work: + /// - It may require correct/in-range values for request initialization. + /// - It may require specifying regional endpoints when creating the service client as shown in + /// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint. + /// + public async Task DeleteCustomerAsync() + { + // Create client + CloudControlsPartnerCoreClient cloudControlsPartnerCoreClient = await CloudControlsPartnerCoreClient.CreateAsync(); + // Initialize request argument(s) + string name = "organizations/[ORGANIZATION]/locations/[LOCATION]/customers/[CUSTOMER]"; + // Make the request + await cloudControlsPartnerCoreClient.DeleteCustomerAsync(name); + } + } + // [END cloudcontrolspartner_v1beta_generated_CloudControlsPartnerCore_DeleteCustomer_async_flattened] +} diff --git a/apis/Google.Cloud.CloudControlsPartner.V1Beta/Google.Cloud.CloudControlsPartner.V1Beta.GeneratedSnippets/CloudControlsPartnerCoreClient.DeleteCustomerRequestObjectAsyncSnippet.g.cs b/apis/Google.Cloud.CloudControlsPartner.V1Beta/Google.Cloud.CloudControlsPartner.V1Beta.GeneratedSnippets/CloudControlsPartnerCoreClient.DeleteCustomerRequestObjectAsyncSnippet.g.cs new file mode 100644 index 000000000000..c05b496b38dd --- /dev/null +++ b/apis/Google.Cloud.CloudControlsPartner.V1Beta/Google.Cloud.CloudControlsPartner.V1Beta.GeneratedSnippets/CloudControlsPartnerCoreClient.DeleteCustomerRequestObjectAsyncSnippet.g.cs @@ -0,0 +1,47 @@ +// Copyright 2025 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 +// +// https://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. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START cloudcontrolspartner_v1beta_generated_CloudControlsPartnerCore_DeleteCustomer_async] + using Google.Cloud.CloudControlsPartner.V1Beta; + using System.Threading.Tasks; + + public sealed partial class GeneratedCloudControlsPartnerCoreClientSnippets + { + /// Snippet for DeleteCustomerAsync + /// + /// This snippet has been automatically generated and should be regarded as a code template only. + /// It will require modifications to work: + /// - It may require correct/in-range values for request initialization. + /// - It may require specifying regional endpoints when creating the service client as shown in + /// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint. + /// + public async Task DeleteCustomerRequestObjectAsync() + { + // Create client + CloudControlsPartnerCoreClient cloudControlsPartnerCoreClient = await CloudControlsPartnerCoreClient.CreateAsync(); + // Initialize request argument(s) + DeleteCustomerRequest request = new DeleteCustomerRequest + { + CustomerName = CustomerName.FromOrganizationLocationCustomer("[ORGANIZATION]", "[LOCATION]", "[CUSTOMER]"), + }; + // Make the request + await cloudControlsPartnerCoreClient.DeleteCustomerAsync(request); + } + } + // [END cloudcontrolspartner_v1beta_generated_CloudControlsPartnerCore_DeleteCustomer_async] +} diff --git a/apis/Google.Cloud.CloudControlsPartner.V1Beta/Google.Cloud.CloudControlsPartner.V1Beta.GeneratedSnippets/CloudControlsPartnerCoreClient.DeleteCustomerRequestObjectSnippet.g.cs b/apis/Google.Cloud.CloudControlsPartner.V1Beta/Google.Cloud.CloudControlsPartner.V1Beta.GeneratedSnippets/CloudControlsPartnerCoreClient.DeleteCustomerRequestObjectSnippet.g.cs new file mode 100644 index 000000000000..2dab6c5edd9e --- /dev/null +++ b/apis/Google.Cloud.CloudControlsPartner.V1Beta/Google.Cloud.CloudControlsPartner.V1Beta.GeneratedSnippets/CloudControlsPartnerCoreClient.DeleteCustomerRequestObjectSnippet.g.cs @@ -0,0 +1,46 @@ +// Copyright 2025 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 +// +// https://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. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START cloudcontrolspartner_v1beta_generated_CloudControlsPartnerCore_DeleteCustomer_sync] + using Google.Cloud.CloudControlsPartner.V1Beta; + + public sealed partial class GeneratedCloudControlsPartnerCoreClientSnippets + { + /// Snippet for DeleteCustomer + /// + /// This snippet has been automatically generated and should be regarded as a code template only. + /// It will require modifications to work: + /// - It may require correct/in-range values for request initialization. + /// - It may require specifying regional endpoints when creating the service client as shown in + /// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint. + /// + public void DeleteCustomerRequestObject() + { + // Create client + CloudControlsPartnerCoreClient cloudControlsPartnerCoreClient = CloudControlsPartnerCoreClient.Create(); + // Initialize request argument(s) + DeleteCustomerRequest request = new DeleteCustomerRequest + { + CustomerName = CustomerName.FromOrganizationLocationCustomer("[ORGANIZATION]", "[LOCATION]", "[CUSTOMER]"), + }; + // Make the request + cloudControlsPartnerCoreClient.DeleteCustomer(request); + } + } + // [END cloudcontrolspartner_v1beta_generated_CloudControlsPartnerCore_DeleteCustomer_sync] +} diff --git a/apis/Google.Cloud.CloudControlsPartner.V1Beta/Google.Cloud.CloudControlsPartner.V1Beta.GeneratedSnippets/CloudControlsPartnerCoreClient.DeleteCustomerResourceNamesAsyncSnippet.g.cs b/apis/Google.Cloud.CloudControlsPartner.V1Beta/Google.Cloud.CloudControlsPartner.V1Beta.GeneratedSnippets/CloudControlsPartnerCoreClient.DeleteCustomerResourceNamesAsyncSnippet.g.cs new file mode 100644 index 000000000000..e739109e85a4 --- /dev/null +++ b/apis/Google.Cloud.CloudControlsPartner.V1Beta/Google.Cloud.CloudControlsPartner.V1Beta.GeneratedSnippets/CloudControlsPartnerCoreClient.DeleteCustomerResourceNamesAsyncSnippet.g.cs @@ -0,0 +1,44 @@ +// Copyright 2025 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 +// +// https://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. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START cloudcontrolspartner_v1beta_generated_CloudControlsPartnerCore_DeleteCustomer_async_flattened_resourceNames] + using Google.Cloud.CloudControlsPartner.V1Beta; + using System.Threading.Tasks; + + public sealed partial class GeneratedCloudControlsPartnerCoreClientSnippets + { + /// Snippet for DeleteCustomerAsync + /// + /// This snippet has been automatically generated and should be regarded as a code template only. + /// It will require modifications to work: + /// - It may require correct/in-range values for request initialization. + /// - It may require specifying regional endpoints when creating the service client as shown in + /// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint. + /// + public async Task DeleteCustomerResourceNamesAsync() + { + // Create client + CloudControlsPartnerCoreClient cloudControlsPartnerCoreClient = await CloudControlsPartnerCoreClient.CreateAsync(); + // Initialize request argument(s) + CustomerName name = CustomerName.FromOrganizationLocationCustomer("[ORGANIZATION]", "[LOCATION]", "[CUSTOMER]"); + // Make the request + await cloudControlsPartnerCoreClient.DeleteCustomerAsync(name); + } + } + // [END cloudcontrolspartner_v1beta_generated_CloudControlsPartnerCore_DeleteCustomer_async_flattened_resourceNames] +} diff --git a/apis/Google.Cloud.CloudControlsPartner.V1Beta/Google.Cloud.CloudControlsPartner.V1Beta.GeneratedSnippets/CloudControlsPartnerCoreClient.DeleteCustomerResourceNamesSnippet.g.cs b/apis/Google.Cloud.CloudControlsPartner.V1Beta/Google.Cloud.CloudControlsPartner.V1Beta.GeneratedSnippets/CloudControlsPartnerCoreClient.DeleteCustomerResourceNamesSnippet.g.cs new file mode 100644 index 000000000000..4fd76496dbf8 --- /dev/null +++ b/apis/Google.Cloud.CloudControlsPartner.V1Beta/Google.Cloud.CloudControlsPartner.V1Beta.GeneratedSnippets/CloudControlsPartnerCoreClient.DeleteCustomerResourceNamesSnippet.g.cs @@ -0,0 +1,43 @@ +// Copyright 2025 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 +// +// https://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. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START cloudcontrolspartner_v1beta_generated_CloudControlsPartnerCore_DeleteCustomer_sync_flattened_resourceNames] + using Google.Cloud.CloudControlsPartner.V1Beta; + + public sealed partial class GeneratedCloudControlsPartnerCoreClientSnippets + { + /// Snippet for DeleteCustomer + /// + /// This snippet has been automatically generated and should be regarded as a code template only. + /// It will require modifications to work: + /// - It may require correct/in-range values for request initialization. + /// - It may require specifying regional endpoints when creating the service client as shown in + /// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint. + /// + public void DeleteCustomerResourceNames() + { + // Create client + CloudControlsPartnerCoreClient cloudControlsPartnerCoreClient = CloudControlsPartnerCoreClient.Create(); + // Initialize request argument(s) + CustomerName name = CustomerName.FromOrganizationLocationCustomer("[ORGANIZATION]", "[LOCATION]", "[CUSTOMER]"); + // Make the request + cloudControlsPartnerCoreClient.DeleteCustomer(name); + } + } + // [END cloudcontrolspartner_v1beta_generated_CloudControlsPartnerCore_DeleteCustomer_sync_flattened_resourceNames] +} diff --git a/apis/Google.Cloud.CloudControlsPartner.V1Beta/Google.Cloud.CloudControlsPartner.V1Beta.GeneratedSnippets/CloudControlsPartnerCoreClient.DeleteCustomerSnippet.g.cs b/apis/Google.Cloud.CloudControlsPartner.V1Beta/Google.Cloud.CloudControlsPartner.V1Beta.GeneratedSnippets/CloudControlsPartnerCoreClient.DeleteCustomerSnippet.g.cs new file mode 100644 index 000000000000..15f789cbf2ac --- /dev/null +++ b/apis/Google.Cloud.CloudControlsPartner.V1Beta/Google.Cloud.CloudControlsPartner.V1Beta.GeneratedSnippets/CloudControlsPartnerCoreClient.DeleteCustomerSnippet.g.cs @@ -0,0 +1,43 @@ +// Copyright 2025 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 +// +// https://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. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START cloudcontrolspartner_v1beta_generated_CloudControlsPartnerCore_DeleteCustomer_sync_flattened] + using Google.Cloud.CloudControlsPartner.V1Beta; + + public sealed partial class GeneratedCloudControlsPartnerCoreClientSnippets + { + /// Snippet for DeleteCustomer + /// + /// This snippet has been automatically generated and should be regarded as a code template only. + /// It will require modifications to work: + /// - It may require correct/in-range values for request initialization. + /// - It may require specifying regional endpoints when creating the service client as shown in + /// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint. + /// + public void DeleteCustomer() + { + // Create client + CloudControlsPartnerCoreClient cloudControlsPartnerCoreClient = CloudControlsPartnerCoreClient.Create(); + // Initialize request argument(s) + string name = "organizations/[ORGANIZATION]/locations/[LOCATION]/customers/[CUSTOMER]"; + // Make the request + cloudControlsPartnerCoreClient.DeleteCustomer(name); + } + } + // [END cloudcontrolspartner_v1beta_generated_CloudControlsPartnerCore_DeleteCustomer_sync_flattened] +} diff --git a/apis/Google.Cloud.CloudControlsPartner.V1Beta/Google.Cloud.CloudControlsPartner.V1Beta.GeneratedSnippets/CloudControlsPartnerCoreClient.UpdateCustomerAsyncSnippet.g.cs b/apis/Google.Cloud.CloudControlsPartner.V1Beta/Google.Cloud.CloudControlsPartner.V1Beta.GeneratedSnippets/CloudControlsPartnerCoreClient.UpdateCustomerAsyncSnippet.g.cs new file mode 100644 index 000000000000..56b62c147ca6 --- /dev/null +++ b/apis/Google.Cloud.CloudControlsPartner.V1Beta/Google.Cloud.CloudControlsPartner.V1Beta.GeneratedSnippets/CloudControlsPartnerCoreClient.UpdateCustomerAsyncSnippet.g.cs @@ -0,0 +1,46 @@ +// Copyright 2025 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 +// +// https://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. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START cloudcontrolspartner_v1beta_generated_CloudControlsPartnerCore_UpdateCustomer_async_flattened] + using Google.Cloud.CloudControlsPartner.V1Beta; + using Google.Protobuf.WellKnownTypes; + using System.Threading.Tasks; + + public sealed partial class GeneratedCloudControlsPartnerCoreClientSnippets + { + /// Snippet for UpdateCustomerAsync + /// + /// This snippet has been automatically generated and should be regarded as a code template only. + /// It will require modifications to work: + /// - It may require correct/in-range values for request initialization. + /// - It may require specifying regional endpoints when creating the service client as shown in + /// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint. + /// + public async Task UpdateCustomerAsync() + { + // Create client + CloudControlsPartnerCoreClient cloudControlsPartnerCoreClient = await CloudControlsPartnerCoreClient.CreateAsync(); + // Initialize request argument(s) + Customer customer = new Customer(); + FieldMask updateMask = new FieldMask(); + // Make the request + Customer response = await cloudControlsPartnerCoreClient.UpdateCustomerAsync(customer, updateMask); + } + } + // [END cloudcontrolspartner_v1beta_generated_CloudControlsPartnerCore_UpdateCustomer_async_flattened] +} diff --git a/apis/Google.Cloud.CloudControlsPartner.V1Beta/Google.Cloud.CloudControlsPartner.V1Beta.GeneratedSnippets/CloudControlsPartnerCoreClient.UpdateCustomerRequestObjectAsyncSnippet.g.cs b/apis/Google.Cloud.CloudControlsPartner.V1Beta/Google.Cloud.CloudControlsPartner.V1Beta.GeneratedSnippets/CloudControlsPartnerCoreClient.UpdateCustomerRequestObjectAsyncSnippet.g.cs new file mode 100644 index 000000000000..08e54b8954db --- /dev/null +++ b/apis/Google.Cloud.CloudControlsPartner.V1Beta/Google.Cloud.CloudControlsPartner.V1Beta.GeneratedSnippets/CloudControlsPartnerCoreClient.UpdateCustomerRequestObjectAsyncSnippet.g.cs @@ -0,0 +1,49 @@ +// Copyright 2025 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 +// +// https://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. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START cloudcontrolspartner_v1beta_generated_CloudControlsPartnerCore_UpdateCustomer_async] + using Google.Cloud.CloudControlsPartner.V1Beta; + using Google.Protobuf.WellKnownTypes; + using System.Threading.Tasks; + + public sealed partial class GeneratedCloudControlsPartnerCoreClientSnippets + { + /// Snippet for UpdateCustomerAsync + /// + /// This snippet has been automatically generated and should be regarded as a code template only. + /// It will require modifications to work: + /// - It may require correct/in-range values for request initialization. + /// - It may require specifying regional endpoints when creating the service client as shown in + /// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint. + /// + public async Task UpdateCustomerRequestObjectAsync() + { + // Create client + CloudControlsPartnerCoreClient cloudControlsPartnerCoreClient = await CloudControlsPartnerCoreClient.CreateAsync(); + // Initialize request argument(s) + UpdateCustomerRequest request = new UpdateCustomerRequest + { + Customer = new Customer(), + UpdateMask = new FieldMask(), + }; + // Make the request + Customer response = await cloudControlsPartnerCoreClient.UpdateCustomerAsync(request); + } + } + // [END cloudcontrolspartner_v1beta_generated_CloudControlsPartnerCore_UpdateCustomer_async] +} diff --git a/apis/Google.Cloud.CloudControlsPartner.V1Beta/Google.Cloud.CloudControlsPartner.V1Beta.GeneratedSnippets/CloudControlsPartnerCoreClient.UpdateCustomerRequestObjectSnippet.g.cs b/apis/Google.Cloud.CloudControlsPartner.V1Beta/Google.Cloud.CloudControlsPartner.V1Beta.GeneratedSnippets/CloudControlsPartnerCoreClient.UpdateCustomerRequestObjectSnippet.g.cs new file mode 100644 index 000000000000..137642499ea6 --- /dev/null +++ b/apis/Google.Cloud.CloudControlsPartner.V1Beta/Google.Cloud.CloudControlsPartner.V1Beta.GeneratedSnippets/CloudControlsPartnerCoreClient.UpdateCustomerRequestObjectSnippet.g.cs @@ -0,0 +1,48 @@ +// Copyright 2025 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 +// +// https://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. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START cloudcontrolspartner_v1beta_generated_CloudControlsPartnerCore_UpdateCustomer_sync] + using Google.Cloud.CloudControlsPartner.V1Beta; + using Google.Protobuf.WellKnownTypes; + + public sealed partial class GeneratedCloudControlsPartnerCoreClientSnippets + { + /// Snippet for UpdateCustomer + /// + /// This snippet has been automatically generated and should be regarded as a code template only. + /// It will require modifications to work: + /// - It may require correct/in-range values for request initialization. + /// - It may require specifying regional endpoints when creating the service client as shown in + /// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint. + /// + public void UpdateCustomerRequestObject() + { + // Create client + CloudControlsPartnerCoreClient cloudControlsPartnerCoreClient = CloudControlsPartnerCoreClient.Create(); + // Initialize request argument(s) + UpdateCustomerRequest request = new UpdateCustomerRequest + { + Customer = new Customer(), + UpdateMask = new FieldMask(), + }; + // Make the request + Customer response = cloudControlsPartnerCoreClient.UpdateCustomer(request); + } + } + // [END cloudcontrolspartner_v1beta_generated_CloudControlsPartnerCore_UpdateCustomer_sync] +} diff --git a/apis/Google.Cloud.CloudControlsPartner.V1Beta/Google.Cloud.CloudControlsPartner.V1Beta.GeneratedSnippets/CloudControlsPartnerCoreClient.UpdateCustomerSnippet.g.cs b/apis/Google.Cloud.CloudControlsPartner.V1Beta/Google.Cloud.CloudControlsPartner.V1Beta.GeneratedSnippets/CloudControlsPartnerCoreClient.UpdateCustomerSnippet.g.cs new file mode 100644 index 000000000000..6fb504afc040 --- /dev/null +++ b/apis/Google.Cloud.CloudControlsPartner.V1Beta/Google.Cloud.CloudControlsPartner.V1Beta.GeneratedSnippets/CloudControlsPartnerCoreClient.UpdateCustomerSnippet.g.cs @@ -0,0 +1,45 @@ +// Copyright 2025 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 +// +// https://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. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START cloudcontrolspartner_v1beta_generated_CloudControlsPartnerCore_UpdateCustomer_sync_flattened] + using Google.Cloud.CloudControlsPartner.V1Beta; + using Google.Protobuf.WellKnownTypes; + + public sealed partial class GeneratedCloudControlsPartnerCoreClientSnippets + { + /// Snippet for UpdateCustomer + /// + /// This snippet has been automatically generated and should be regarded as a code template only. + /// It will require modifications to work: + /// - It may require correct/in-range values for request initialization. + /// - It may require specifying regional endpoints when creating the service client as shown in + /// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint. + /// + public void UpdateCustomer() + { + // Create client + CloudControlsPartnerCoreClient cloudControlsPartnerCoreClient = CloudControlsPartnerCoreClient.Create(); + // Initialize request argument(s) + Customer customer = new Customer(); + FieldMask updateMask = new FieldMask(); + // Make the request + Customer response = cloudControlsPartnerCoreClient.UpdateCustomer(customer, updateMask); + } + } + // [END cloudcontrolspartner_v1beta_generated_CloudControlsPartnerCore_UpdateCustomer_sync_flattened] +} diff --git a/apis/Google.Cloud.CloudControlsPartner.V1Beta/Google.Cloud.CloudControlsPartner.V1Beta.GeneratedSnippets/snippet_metadata_google.cloud.cloudcontrolspartner.v1beta.json b/apis/Google.Cloud.CloudControlsPartner.V1Beta/Google.Cloud.CloudControlsPartner.V1Beta.GeneratedSnippets/snippet_metadata_google.cloud.cloudcontrolspartner.v1beta.json index a65ca4c05f73..917dee0796e3 100644 --- a/apis/Google.Cloud.CloudControlsPartner.V1Beta/Google.Cloud.CloudControlsPartner.V1Beta.GeneratedSnippets/snippet_metadata_google.cloud.cloudcontrolspartner.v1beta.json +++ b/apis/Google.Cloud.CloudControlsPartner.V1Beta/Google.Cloud.CloudControlsPartner.V1Beta.GeneratedSnippets/snippet_metadata_google.cloud.cloudcontrolspartner.v1beta.json @@ -2402,6 +2402,809 @@ } ] }, + { + "regionTag": "cloudcontrolspartner_v1beta_generated_CloudControlsPartnerCore_CreateCustomer_sync", + "title": "CreateCustomerRequestObject", + "description": "Snippet for CreateCustomer", + "file": "CloudControlsPartnerCoreClient.CreateCustomerRequestObjectSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "CreateCustomer", + "fullName": "Google.Cloud.CloudControlsPartner.V1Beta.CloudControlsPartnerCoreClient.CreateCustomer", + "parameters": [ + { + "type": "Google.Cloud.CloudControlsPartner.V1Beta.CreateCustomerRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Cloud.CloudControlsPartner.V1Beta.Customer", + "client": { + "shortName": "CloudControlsPartnerCoreClient", + "fullName": "Google.Cloud.CloudControlsPartner.V1Beta.CloudControlsPartnerCoreClient" + }, + "method": { + "shortName": "CreateCustomer", + "fullName": "google.cloud.cloudcontrolspartner.v1beta.CloudControlsPartnerCore.CreateCustomer", + "service": { + "shortName": "CloudControlsPartnerCore", + "fullName": "google.cloud.cloudcontrolspartner.v1beta.CloudControlsPartnerCore" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + }, + { + "start": 34, + "end": 44, + "type": "SHORT" + } + ] + }, + { + "regionTag": "cloudcontrolspartner_v1beta_generated_CloudControlsPartnerCore_CreateCustomer_async", + "title": "CreateCustomerRequestObjectAsync", + "description": "Snippet for CreateCustomerAsync", + "file": "CloudControlsPartnerCoreClient.CreateCustomerRequestObjectAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "CreateCustomerAsync", + "fullName": "Google.Cloud.CloudControlsPartner.V1Beta.CloudControlsPartnerCoreClient.CreateCustomerAsync", + "async": true, + "parameters": [ + { + "type": "Google.Cloud.CloudControlsPartner.V1Beta.CreateCustomerRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task", + "client": { + "shortName": "CloudControlsPartnerCoreClient", + "fullName": "Google.Cloud.CloudControlsPartner.V1Beta.CloudControlsPartnerCoreClient" + }, + "method": { + "shortName": "CreateCustomer", + "fullName": "google.cloud.cloudcontrolspartner.v1beta.CloudControlsPartnerCore.CreateCustomer", + "service": { + "shortName": "CloudControlsPartnerCore", + "fullName": "google.cloud.cloudcontrolspartner.v1beta.CloudControlsPartnerCore" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 47, + "type": "FULL" + }, + { + "start": 35, + "end": 45, + "type": "SHORT" + } + ] + }, + { + "regionTag": "cloudcontrolspartner_v1beta_generated_CloudControlsPartnerCore_CreateCustomer_sync_flattened", + "title": "CreateCustomer", + "description": "Snippet for CreateCustomer", + "file": "CloudControlsPartnerCoreClient.CreateCustomerSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "CreateCustomer", + "fullName": "Google.Cloud.CloudControlsPartner.V1Beta.CloudControlsPartnerCoreClient.CreateCustomer", + "parameters": [ + { + "type": "System.String", + "name": "parent" + }, + { + "type": "Google.Cloud.CloudControlsPartner.V1Beta.Customer", + "name": "customer" + }, + { + "type": "System.String", + "name": "customerId" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Cloud.CloudControlsPartner.V1Beta.Customer", + "client": { + "shortName": "CloudControlsPartnerCoreClient", + "fullName": "Google.Cloud.CloudControlsPartner.V1Beta.CloudControlsPartnerCoreClient" + }, + "method": { + "shortName": "CreateCustomer", + "fullName": "google.cloud.cloudcontrolspartner.v1beta.CloudControlsPartnerCore.CreateCustomer", + "service": { + "shortName": "CloudControlsPartnerCore", + "fullName": "google.cloud.cloudcontrolspartner.v1beta.CloudControlsPartnerCore" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 43, + "type": "FULL" + }, + { + "start": 34, + "end": 41, + "type": "SHORT" + } + ] + }, + { + "regionTag": "cloudcontrolspartner_v1beta_generated_CloudControlsPartnerCore_CreateCustomer_async_flattened", + "title": "CreateCustomerAsync", + "description": "Snippet for CreateCustomerAsync", + "file": "CloudControlsPartnerCoreClient.CreateCustomerAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "CreateCustomerAsync", + "fullName": "Google.Cloud.CloudControlsPartner.V1Beta.CloudControlsPartnerCoreClient.CreateCustomerAsync", + "async": true, + "parameters": [ + { + "type": "System.String", + "name": "parent" + }, + { + "type": "Google.Cloud.CloudControlsPartner.V1Beta.Customer", + "name": "customer" + }, + { + "type": "System.String", + "name": "customerId" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task", + "client": { + "shortName": "CloudControlsPartnerCoreClient", + "fullName": "Google.Cloud.CloudControlsPartner.V1Beta.CloudControlsPartnerCoreClient" + }, + "method": { + "shortName": "CreateCustomer", + "fullName": "google.cloud.cloudcontrolspartner.v1beta.CloudControlsPartnerCore.CreateCustomer", + "service": { + "shortName": "CloudControlsPartnerCore", + "fullName": "google.cloud.cloudcontrolspartner.v1beta.CloudControlsPartnerCore" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 44, + "type": "FULL" + }, + { + "start": 35, + "end": 42, + "type": "SHORT" + } + ] + }, + { + "regionTag": "cloudcontrolspartner_v1beta_generated_CloudControlsPartnerCore_CreateCustomer_sync_flattened_resourceNames", + "title": "CreateCustomerResourceNames", + "description": "Snippet for CreateCustomer", + "file": "CloudControlsPartnerCoreClient.CreateCustomerResourceNamesSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "CreateCustomer", + "fullName": "Google.Cloud.CloudControlsPartner.V1Beta.CloudControlsPartnerCoreClient.CreateCustomer", + "parameters": [ + { + "type": "Google.Cloud.CloudControlsPartner.V1Beta.OrganizationLocationName", + "name": "parent" + }, + { + "type": "Google.Cloud.CloudControlsPartner.V1Beta.Customer", + "name": "customer" + }, + { + "type": "System.String", + "name": "customerId" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Cloud.CloudControlsPartner.V1Beta.Customer", + "client": { + "shortName": "CloudControlsPartnerCoreClient", + "fullName": "Google.Cloud.CloudControlsPartner.V1Beta.CloudControlsPartnerCoreClient" + }, + "method": { + "shortName": "CreateCustomer", + "fullName": "google.cloud.cloudcontrolspartner.v1beta.CloudControlsPartnerCore.CreateCustomer", + "service": { + "shortName": "CloudControlsPartnerCore", + "fullName": "google.cloud.cloudcontrolspartner.v1beta.CloudControlsPartnerCore" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 43, + "type": "FULL" + }, + { + "start": 34, + "end": 41, + "type": "SHORT" + } + ] + }, + { + "regionTag": "cloudcontrolspartner_v1beta_generated_CloudControlsPartnerCore_CreateCustomer_async_flattened_resourceNames", + "title": "CreateCustomerResourceNamesAsync", + "description": "Snippet for CreateCustomerAsync", + "file": "CloudControlsPartnerCoreClient.CreateCustomerResourceNamesAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "CreateCustomerAsync", + "fullName": "Google.Cloud.CloudControlsPartner.V1Beta.CloudControlsPartnerCoreClient.CreateCustomerAsync", + "async": true, + "parameters": [ + { + "type": "Google.Cloud.CloudControlsPartner.V1Beta.OrganizationLocationName", + "name": "parent" + }, + { + "type": "Google.Cloud.CloudControlsPartner.V1Beta.Customer", + "name": "customer" + }, + { + "type": "System.String", + "name": "customerId" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task", + "client": { + "shortName": "CloudControlsPartnerCoreClient", + "fullName": "Google.Cloud.CloudControlsPartner.V1Beta.CloudControlsPartnerCoreClient" + }, + "method": { + "shortName": "CreateCustomer", + "fullName": "google.cloud.cloudcontrolspartner.v1beta.CloudControlsPartnerCore.CreateCustomer", + "service": { + "shortName": "CloudControlsPartnerCore", + "fullName": "google.cloud.cloudcontrolspartner.v1beta.CloudControlsPartnerCore" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 44, + "type": "FULL" + }, + { + "start": 35, + "end": 42, + "type": "SHORT" + } + ] + }, + { + "regionTag": "cloudcontrolspartner_v1beta_generated_CloudControlsPartnerCore_UpdateCustomer_sync", + "title": "UpdateCustomerRequestObject", + "description": "Snippet for UpdateCustomer", + "file": "CloudControlsPartnerCoreClient.UpdateCustomerRequestObjectSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "UpdateCustomer", + "fullName": "Google.Cloud.CloudControlsPartner.V1Beta.CloudControlsPartnerCoreClient.UpdateCustomer", + "parameters": [ + { + "type": "Google.Cloud.CloudControlsPartner.V1Beta.UpdateCustomerRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Cloud.CloudControlsPartner.V1Beta.Customer", + "client": { + "shortName": "CloudControlsPartnerCoreClient", + "fullName": "Google.Cloud.CloudControlsPartner.V1Beta.CloudControlsPartnerCoreClient" + }, + "method": { + "shortName": "UpdateCustomer", + "fullName": "google.cloud.cloudcontrolspartner.v1beta.CloudControlsPartnerCore.UpdateCustomer", + "service": { + "shortName": "CloudControlsPartnerCore", + "fullName": "google.cloud.cloudcontrolspartner.v1beta.CloudControlsPartnerCore" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + }, + { + "start": 35, + "end": 44, + "type": "SHORT" + } + ] + }, + { + "regionTag": "cloudcontrolspartner_v1beta_generated_CloudControlsPartnerCore_UpdateCustomer_async", + "title": "UpdateCustomerRequestObjectAsync", + "description": "Snippet for UpdateCustomerAsync", + "file": "CloudControlsPartnerCoreClient.UpdateCustomerRequestObjectAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "UpdateCustomerAsync", + "fullName": "Google.Cloud.CloudControlsPartner.V1Beta.CloudControlsPartnerCoreClient.UpdateCustomerAsync", + "async": true, + "parameters": [ + { + "type": "Google.Cloud.CloudControlsPartner.V1Beta.UpdateCustomerRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task", + "client": { + "shortName": "CloudControlsPartnerCoreClient", + "fullName": "Google.Cloud.CloudControlsPartner.V1Beta.CloudControlsPartnerCoreClient" + }, + "method": { + "shortName": "UpdateCustomer", + "fullName": "google.cloud.cloudcontrolspartner.v1beta.CloudControlsPartnerCore.UpdateCustomer", + "service": { + "shortName": "CloudControlsPartnerCore", + "fullName": "google.cloud.cloudcontrolspartner.v1beta.CloudControlsPartnerCore" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 47, + "type": "FULL" + }, + { + "start": 36, + "end": 45, + "type": "SHORT" + } + ] + }, + { + "regionTag": "cloudcontrolspartner_v1beta_generated_CloudControlsPartnerCore_UpdateCustomer_sync_flattened", + "title": "UpdateCustomer", + "description": "Snippet for UpdateCustomer", + "file": "CloudControlsPartnerCoreClient.UpdateCustomerSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "UpdateCustomer", + "fullName": "Google.Cloud.CloudControlsPartner.V1Beta.CloudControlsPartnerCoreClient.UpdateCustomer", + "parameters": [ + { + "type": "Google.Cloud.CloudControlsPartner.V1Beta.Customer", + "name": "customer" + }, + { + "type": "Google.Protobuf.WellKnownTypes.FieldMask", + "name": "updateMask" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.Cloud.CloudControlsPartner.V1Beta.Customer", + "client": { + "shortName": "CloudControlsPartnerCoreClient", + "fullName": "Google.Cloud.CloudControlsPartner.V1Beta.CloudControlsPartnerCoreClient" + }, + "method": { + "shortName": "UpdateCustomer", + "fullName": "google.cloud.cloudcontrolspartner.v1beta.CloudControlsPartnerCore.UpdateCustomer", + "service": { + "shortName": "CloudControlsPartnerCore", + "fullName": "google.cloud.cloudcontrolspartner.v1beta.CloudControlsPartnerCore" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 43, + "type": "FULL" + }, + { + "start": 35, + "end": 41, + "type": "SHORT" + } + ] + }, + { + "regionTag": "cloudcontrolspartner_v1beta_generated_CloudControlsPartnerCore_UpdateCustomer_async_flattened", + "title": "UpdateCustomerAsync", + "description": "Snippet for UpdateCustomerAsync", + "file": "CloudControlsPartnerCoreClient.UpdateCustomerAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "UpdateCustomerAsync", + "fullName": "Google.Cloud.CloudControlsPartner.V1Beta.CloudControlsPartnerCoreClient.UpdateCustomerAsync", + "async": true, + "parameters": [ + { + "type": "Google.Cloud.CloudControlsPartner.V1Beta.Customer", + "name": "customer" + }, + { + "type": "Google.Protobuf.WellKnownTypes.FieldMask", + "name": "updateMask" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task", + "client": { + "shortName": "CloudControlsPartnerCoreClient", + "fullName": "Google.Cloud.CloudControlsPartner.V1Beta.CloudControlsPartnerCoreClient" + }, + "method": { + "shortName": "UpdateCustomer", + "fullName": "google.cloud.cloudcontrolspartner.v1beta.CloudControlsPartnerCore.UpdateCustomer", + "service": { + "shortName": "CloudControlsPartnerCore", + "fullName": "google.cloud.cloudcontrolspartner.v1beta.CloudControlsPartnerCore" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 44, + "type": "FULL" + }, + { + "start": 36, + "end": 42, + "type": "SHORT" + } + ] + }, + { + "regionTag": "cloudcontrolspartner_v1beta_generated_CloudControlsPartnerCore_DeleteCustomer_sync", + "title": "DeleteCustomerRequestObject", + "description": "Snippet for DeleteCustomer", + "file": "CloudControlsPartnerCoreClient.DeleteCustomerRequestObjectSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "DeleteCustomer", + "fullName": "Google.Cloud.CloudControlsPartner.V1Beta.CloudControlsPartnerCoreClient.DeleteCustomer", + "parameters": [ + { + "type": "Google.Cloud.CloudControlsPartner.V1Beta.DeleteCustomerRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "client": { + "shortName": "CloudControlsPartnerCoreClient", + "fullName": "Google.Cloud.CloudControlsPartner.V1Beta.CloudControlsPartnerCoreClient" + }, + "method": { + "shortName": "DeleteCustomer", + "fullName": "google.cloud.cloudcontrolspartner.v1beta.CloudControlsPartnerCore.DeleteCustomer", + "service": { + "shortName": "CloudControlsPartnerCore", + "fullName": "google.cloud.cloudcontrolspartner.v1beta.CloudControlsPartnerCore" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 44, + "type": "FULL" + }, + { + "start": 34, + "end": 42, + "type": "SHORT" + } + ] + }, + { + "regionTag": "cloudcontrolspartner_v1beta_generated_CloudControlsPartnerCore_DeleteCustomer_async", + "title": "DeleteCustomerRequestObjectAsync", + "description": "Snippet for DeleteCustomerAsync", + "file": "CloudControlsPartnerCoreClient.DeleteCustomerRequestObjectAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "DeleteCustomerAsync", + "fullName": "Google.Cloud.CloudControlsPartner.V1Beta.CloudControlsPartnerCoreClient.DeleteCustomerAsync", + "async": true, + "parameters": [ + { + "type": "Google.Cloud.CloudControlsPartner.V1Beta.DeleteCustomerRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task", + "client": { + "shortName": "CloudControlsPartnerCoreClient", + "fullName": "Google.Cloud.CloudControlsPartner.V1Beta.CloudControlsPartnerCoreClient" + }, + "method": { + "shortName": "DeleteCustomer", + "fullName": "google.cloud.cloudcontrolspartner.v1beta.CloudControlsPartnerCore.DeleteCustomer", + "service": { + "shortName": "CloudControlsPartnerCore", + "fullName": "google.cloud.cloudcontrolspartner.v1beta.CloudControlsPartnerCore" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 45, + "type": "FULL" + }, + { + "start": 35, + "end": 43, + "type": "SHORT" + } + ] + }, + { + "regionTag": "cloudcontrolspartner_v1beta_generated_CloudControlsPartnerCore_DeleteCustomer_sync_flattened", + "title": "DeleteCustomer", + "description": "Snippet for DeleteCustomer", + "file": "CloudControlsPartnerCoreClient.DeleteCustomerSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "DeleteCustomer", + "fullName": "Google.Cloud.CloudControlsPartner.V1Beta.CloudControlsPartnerCoreClient.DeleteCustomer", + "parameters": [ + { + "type": "System.String", + "name": "name" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "client": { + "shortName": "CloudControlsPartnerCoreClient", + "fullName": "Google.Cloud.CloudControlsPartner.V1Beta.CloudControlsPartnerCoreClient" + }, + "method": { + "shortName": "DeleteCustomer", + "fullName": "google.cloud.cloudcontrolspartner.v1beta.CloudControlsPartnerCore.DeleteCustomer", + "service": { + "shortName": "CloudControlsPartnerCore", + "fullName": "google.cloud.cloudcontrolspartner.v1beta.CloudControlsPartnerCore" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 41, + "type": "FULL" + }, + { + "start": 34, + "end": 39, + "type": "SHORT" + } + ] + }, + { + "regionTag": "cloudcontrolspartner_v1beta_generated_CloudControlsPartnerCore_DeleteCustomer_async_flattened", + "title": "DeleteCustomerAsync", + "description": "Snippet for DeleteCustomerAsync", + "file": "CloudControlsPartnerCoreClient.DeleteCustomerAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "DeleteCustomerAsync", + "fullName": "Google.Cloud.CloudControlsPartner.V1Beta.CloudControlsPartnerCoreClient.DeleteCustomerAsync", + "async": true, + "parameters": [ + { + "type": "System.String", + "name": "name" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task", + "client": { + "shortName": "CloudControlsPartnerCoreClient", + "fullName": "Google.Cloud.CloudControlsPartner.V1Beta.CloudControlsPartnerCoreClient" + }, + "method": { + "shortName": "DeleteCustomer", + "fullName": "google.cloud.cloudcontrolspartner.v1beta.CloudControlsPartnerCore.DeleteCustomer", + "service": { + "shortName": "CloudControlsPartnerCore", + "fullName": "google.cloud.cloudcontrolspartner.v1beta.CloudControlsPartnerCore" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 42, + "type": "FULL" + }, + { + "start": 35, + "end": 40, + "type": "SHORT" + } + ] + }, + { + "regionTag": "cloudcontrolspartner_v1beta_generated_CloudControlsPartnerCore_DeleteCustomer_sync_flattened_resourceNames", + "title": "DeleteCustomerResourceNames", + "description": "Snippet for DeleteCustomer", + "file": "CloudControlsPartnerCoreClient.DeleteCustomerResourceNamesSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "DeleteCustomer", + "fullName": "Google.Cloud.CloudControlsPartner.V1Beta.CloudControlsPartnerCoreClient.DeleteCustomer", + "parameters": [ + { + "type": "Google.Cloud.CloudControlsPartner.V1Beta.CustomerName", + "name": "name" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "client": { + "shortName": "CloudControlsPartnerCoreClient", + "fullName": "Google.Cloud.CloudControlsPartner.V1Beta.CloudControlsPartnerCoreClient" + }, + "method": { + "shortName": "DeleteCustomer", + "fullName": "google.cloud.cloudcontrolspartner.v1beta.CloudControlsPartnerCore.DeleteCustomer", + "service": { + "shortName": "CloudControlsPartnerCore", + "fullName": "google.cloud.cloudcontrolspartner.v1beta.CloudControlsPartnerCore" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 41, + "type": "FULL" + }, + { + "start": 34, + "end": 39, + "type": "SHORT" + } + ] + }, + { + "regionTag": "cloudcontrolspartner_v1beta_generated_CloudControlsPartnerCore_DeleteCustomer_async_flattened_resourceNames", + "title": "DeleteCustomerResourceNamesAsync", + "description": "Snippet for DeleteCustomerAsync", + "file": "CloudControlsPartnerCoreClient.DeleteCustomerResourceNamesAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "DeleteCustomerAsync", + "fullName": "Google.Cloud.CloudControlsPartner.V1Beta.CloudControlsPartnerCoreClient.DeleteCustomerAsync", + "async": true, + "parameters": [ + { + "type": "Google.Cloud.CloudControlsPartner.V1Beta.CustomerName", + "name": "name" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task", + "client": { + "shortName": "CloudControlsPartnerCoreClient", + "fullName": "Google.Cloud.CloudControlsPartner.V1Beta.CloudControlsPartnerCoreClient" + }, + "method": { + "shortName": "DeleteCustomer", + "fullName": "google.cloud.cloudcontrolspartner.v1beta.CloudControlsPartnerCore.DeleteCustomer", + "service": { + "shortName": "CloudControlsPartnerCore", + "fullName": "google.cloud.cloudcontrolspartner.v1beta.CloudControlsPartnerCore" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 42, + "type": "FULL" + }, + { + "start": 35, + "end": 40, + "type": "SHORT" + } + ] + }, { "regionTag": "cloudcontrolspartner_v1beta_generated_CloudControlsPartnerMonitoring_ListViolations_sync", "title": "ListViolationsRequestObject", diff --git a/apis/Google.Cloud.CloudControlsPartner.V1Beta/Google.Cloud.CloudControlsPartner.V1Beta.Snippets/CloudControlsPartnerCoreClientSnippets.g.cs b/apis/Google.Cloud.CloudControlsPartner.V1Beta/Google.Cloud.CloudControlsPartner.V1Beta.Snippets/CloudControlsPartnerCoreClientSnippets.g.cs index eabc28603cfd..cb402046717c 100644 --- a/apis/Google.Cloud.CloudControlsPartner.V1Beta/Google.Cloud.CloudControlsPartner.V1Beta.Snippets/CloudControlsPartnerCoreClientSnippets.g.cs +++ b/apis/Google.Cloud.CloudControlsPartner.V1Beta/Google.Cloud.CloudControlsPartner.V1Beta.Snippets/CloudControlsPartnerCoreClientSnippets.g.cs @@ -18,6 +18,7 @@ namespace GoogleCSharpSnippets { using Google.Api.Gax; using Google.Cloud.CloudControlsPartner.V1Beta; + using Google.Protobuf.WellKnownTypes; using System; using System.Linq; using System.Threading.Tasks; @@ -1311,5 +1312,255 @@ public async Task GetPartnerResourceNamesAsync() Partner response = await cloudControlsPartnerCoreClient.GetPartnerAsync(name); // End snippet } + + /// Snippet for CreateCustomer + public void CreateCustomerRequestObject() + { + // Snippet: CreateCustomer(CreateCustomerRequest, CallSettings) + // Create client + CloudControlsPartnerCoreClient cloudControlsPartnerCoreClient = CloudControlsPartnerCoreClient.Create(); + // Initialize request argument(s) + CreateCustomerRequest request = new CreateCustomerRequest + { + ParentAsOrganizationLocationName = OrganizationLocationName.FromOrganizationLocation("[ORGANIZATION]", "[LOCATION]"), + Customer = new Customer(), + CustomerId = "", + }; + // Make the request + Customer response = cloudControlsPartnerCoreClient.CreateCustomer(request); + // End snippet + } + + /// Snippet for CreateCustomerAsync + public async Task CreateCustomerRequestObjectAsync() + { + // Snippet: CreateCustomerAsync(CreateCustomerRequest, CallSettings) + // Additional: CreateCustomerAsync(CreateCustomerRequest, CancellationToken) + // Create client + CloudControlsPartnerCoreClient cloudControlsPartnerCoreClient = await CloudControlsPartnerCoreClient.CreateAsync(); + // Initialize request argument(s) + CreateCustomerRequest request = new CreateCustomerRequest + { + ParentAsOrganizationLocationName = OrganizationLocationName.FromOrganizationLocation("[ORGANIZATION]", "[LOCATION]"), + Customer = new Customer(), + CustomerId = "", + }; + // Make the request + Customer response = await cloudControlsPartnerCoreClient.CreateCustomerAsync(request); + // End snippet + } + + /// Snippet for CreateCustomer + public void CreateCustomer() + { + // Snippet: CreateCustomer(string, Customer, string, CallSettings) + // Create client + CloudControlsPartnerCoreClient cloudControlsPartnerCoreClient = CloudControlsPartnerCoreClient.Create(); + // Initialize request argument(s) + string parent = "organizations/[ORGANIZATION]/locations/[LOCATION]"; + Customer customer = new Customer(); + string customerId = ""; + // Make the request + Customer response = cloudControlsPartnerCoreClient.CreateCustomer(parent, customer, customerId); + // End snippet + } + + /// Snippet for CreateCustomerAsync + public async Task CreateCustomerAsync() + { + // Snippet: CreateCustomerAsync(string, Customer, string, CallSettings) + // Additional: CreateCustomerAsync(string, Customer, string, CancellationToken) + // Create client + CloudControlsPartnerCoreClient cloudControlsPartnerCoreClient = await CloudControlsPartnerCoreClient.CreateAsync(); + // Initialize request argument(s) + string parent = "organizations/[ORGANIZATION]/locations/[LOCATION]"; + Customer customer = new Customer(); + string customerId = ""; + // Make the request + Customer response = await cloudControlsPartnerCoreClient.CreateCustomerAsync(parent, customer, customerId); + // End snippet + } + + /// Snippet for CreateCustomer + public void CreateCustomerResourceNames() + { + // Snippet: CreateCustomer(OrganizationLocationName, Customer, string, CallSettings) + // Create client + CloudControlsPartnerCoreClient cloudControlsPartnerCoreClient = CloudControlsPartnerCoreClient.Create(); + // Initialize request argument(s) + OrganizationLocationName parent = OrganizationLocationName.FromOrganizationLocation("[ORGANIZATION]", "[LOCATION]"); + Customer customer = new Customer(); + string customerId = ""; + // Make the request + Customer response = cloudControlsPartnerCoreClient.CreateCustomer(parent, customer, customerId); + // End snippet + } + + /// Snippet for CreateCustomerAsync + public async Task CreateCustomerResourceNamesAsync() + { + // Snippet: CreateCustomerAsync(OrganizationLocationName, Customer, string, CallSettings) + // Additional: CreateCustomerAsync(OrganizationLocationName, Customer, string, CancellationToken) + // Create client + CloudControlsPartnerCoreClient cloudControlsPartnerCoreClient = await CloudControlsPartnerCoreClient.CreateAsync(); + // Initialize request argument(s) + OrganizationLocationName parent = OrganizationLocationName.FromOrganizationLocation("[ORGANIZATION]", "[LOCATION]"); + Customer customer = new Customer(); + string customerId = ""; + // Make the request + Customer response = await cloudControlsPartnerCoreClient.CreateCustomerAsync(parent, customer, customerId); + // End snippet + } + + /// Snippet for UpdateCustomer + public void UpdateCustomerRequestObject() + { + // Snippet: UpdateCustomer(UpdateCustomerRequest, CallSettings) + // Create client + CloudControlsPartnerCoreClient cloudControlsPartnerCoreClient = CloudControlsPartnerCoreClient.Create(); + // Initialize request argument(s) + UpdateCustomerRequest request = new UpdateCustomerRequest + { + Customer = new Customer(), + UpdateMask = new FieldMask(), + }; + // Make the request + Customer response = cloudControlsPartnerCoreClient.UpdateCustomer(request); + // End snippet + } + + /// Snippet for UpdateCustomerAsync + public async Task UpdateCustomerRequestObjectAsync() + { + // Snippet: UpdateCustomerAsync(UpdateCustomerRequest, CallSettings) + // Additional: UpdateCustomerAsync(UpdateCustomerRequest, CancellationToken) + // Create client + CloudControlsPartnerCoreClient cloudControlsPartnerCoreClient = await CloudControlsPartnerCoreClient.CreateAsync(); + // Initialize request argument(s) + UpdateCustomerRequest request = new UpdateCustomerRequest + { + Customer = new Customer(), + UpdateMask = new FieldMask(), + }; + // Make the request + Customer response = await cloudControlsPartnerCoreClient.UpdateCustomerAsync(request); + // End snippet + } + + /// Snippet for UpdateCustomer + public void UpdateCustomer() + { + // Snippet: UpdateCustomer(Customer, FieldMask, CallSettings) + // Create client + CloudControlsPartnerCoreClient cloudControlsPartnerCoreClient = CloudControlsPartnerCoreClient.Create(); + // Initialize request argument(s) + Customer customer = new Customer(); + FieldMask updateMask = new FieldMask(); + // Make the request + Customer response = cloudControlsPartnerCoreClient.UpdateCustomer(customer, updateMask); + // End snippet + } + + /// Snippet for UpdateCustomerAsync + public async Task UpdateCustomerAsync() + { + // Snippet: UpdateCustomerAsync(Customer, FieldMask, CallSettings) + // Additional: UpdateCustomerAsync(Customer, FieldMask, CancellationToken) + // Create client + CloudControlsPartnerCoreClient cloudControlsPartnerCoreClient = await CloudControlsPartnerCoreClient.CreateAsync(); + // Initialize request argument(s) + Customer customer = new Customer(); + FieldMask updateMask = new FieldMask(); + // Make the request + Customer response = await cloudControlsPartnerCoreClient.UpdateCustomerAsync(customer, updateMask); + // End snippet + } + + /// Snippet for DeleteCustomer + public void DeleteCustomerRequestObject() + { + // Snippet: DeleteCustomer(DeleteCustomerRequest, CallSettings) + // Create client + CloudControlsPartnerCoreClient cloudControlsPartnerCoreClient = CloudControlsPartnerCoreClient.Create(); + // Initialize request argument(s) + DeleteCustomerRequest request = new DeleteCustomerRequest + { + CustomerName = CustomerName.FromOrganizationLocationCustomer("[ORGANIZATION]", "[LOCATION]", "[CUSTOMER]"), + }; + // Make the request + cloudControlsPartnerCoreClient.DeleteCustomer(request); + // End snippet + } + + /// Snippet for DeleteCustomerAsync + public async Task DeleteCustomerRequestObjectAsync() + { + // Snippet: DeleteCustomerAsync(DeleteCustomerRequest, CallSettings) + // Additional: DeleteCustomerAsync(DeleteCustomerRequest, CancellationToken) + // Create client + CloudControlsPartnerCoreClient cloudControlsPartnerCoreClient = await CloudControlsPartnerCoreClient.CreateAsync(); + // Initialize request argument(s) + DeleteCustomerRequest request = new DeleteCustomerRequest + { + CustomerName = CustomerName.FromOrganizationLocationCustomer("[ORGANIZATION]", "[LOCATION]", "[CUSTOMER]"), + }; + // Make the request + await cloudControlsPartnerCoreClient.DeleteCustomerAsync(request); + // End snippet + } + + /// Snippet for DeleteCustomer + public void DeleteCustomer() + { + // Snippet: DeleteCustomer(string, CallSettings) + // Create client + CloudControlsPartnerCoreClient cloudControlsPartnerCoreClient = CloudControlsPartnerCoreClient.Create(); + // Initialize request argument(s) + string name = "organizations/[ORGANIZATION]/locations/[LOCATION]/customers/[CUSTOMER]"; + // Make the request + cloudControlsPartnerCoreClient.DeleteCustomer(name); + // End snippet + } + + /// Snippet for DeleteCustomerAsync + public async Task DeleteCustomerAsync() + { + // Snippet: DeleteCustomerAsync(string, CallSettings) + // Additional: DeleteCustomerAsync(string, CancellationToken) + // Create client + CloudControlsPartnerCoreClient cloudControlsPartnerCoreClient = await CloudControlsPartnerCoreClient.CreateAsync(); + // Initialize request argument(s) + string name = "organizations/[ORGANIZATION]/locations/[LOCATION]/customers/[CUSTOMER]"; + // Make the request + await cloudControlsPartnerCoreClient.DeleteCustomerAsync(name); + // End snippet + } + + /// Snippet for DeleteCustomer + public void DeleteCustomerResourceNames() + { + // Snippet: DeleteCustomer(CustomerName, CallSettings) + // Create client + CloudControlsPartnerCoreClient cloudControlsPartnerCoreClient = CloudControlsPartnerCoreClient.Create(); + // Initialize request argument(s) + CustomerName name = CustomerName.FromOrganizationLocationCustomer("[ORGANIZATION]", "[LOCATION]", "[CUSTOMER]"); + // Make the request + cloudControlsPartnerCoreClient.DeleteCustomer(name); + // End snippet + } + + /// Snippet for DeleteCustomerAsync + public async Task DeleteCustomerResourceNamesAsync() + { + // Snippet: DeleteCustomerAsync(CustomerName, CallSettings) + // Additional: DeleteCustomerAsync(CustomerName, CancellationToken) + // Create client + CloudControlsPartnerCoreClient cloudControlsPartnerCoreClient = await CloudControlsPartnerCoreClient.CreateAsync(); + // Initialize request argument(s) + CustomerName name = CustomerName.FromOrganizationLocationCustomer("[ORGANIZATION]", "[LOCATION]", "[CUSTOMER]"); + // Make the request + await cloudControlsPartnerCoreClient.DeleteCustomerAsync(name); + // End snippet + } } } diff --git a/apis/Google.Cloud.CloudControlsPartner.V1Beta/Google.Cloud.CloudControlsPartner.V1Beta/CloudControlsPartnerCoreClient.g.cs b/apis/Google.Cloud.CloudControlsPartner.V1Beta/Google.Cloud.CloudControlsPartner.V1Beta/CloudControlsPartnerCoreClient.g.cs index fc97a1208507..df56729b245d 100644 --- a/apis/Google.Cloud.CloudControlsPartner.V1Beta/Google.Cloud.CloudControlsPartner.V1Beta/CloudControlsPartnerCoreClient.g.cs +++ b/apis/Google.Cloud.CloudControlsPartner.V1Beta/Google.Cloud.CloudControlsPartner.V1Beta/CloudControlsPartnerCoreClient.g.cs @@ -27,6 +27,7 @@ using st = System.Threading; using stt = System.Threading.Tasks; using sys = System; +using wkt = Google.Protobuf.WellKnownTypes; namespace Google.Cloud.CloudControlsPartner.V1Beta { @@ -55,6 +56,9 @@ private CloudControlsPartnerCoreSettings(CloudControlsPartnerCoreSettings existi GetPartnerPermissionsSettings = existing.GetPartnerPermissionsSettings; ListAccessApprovalRequestsSettings = existing.ListAccessApprovalRequestsSettings; GetPartnerSettings = existing.GetPartnerSettings; + CreateCustomerSettings = existing.CreateCustomerSettings; + UpdateCustomerSettings = existing.UpdateCustomerSettings; + DeleteCustomerSettings = existing.DeleteCustomerSettings; OnCopy(existing); } @@ -205,6 +209,45 @@ private CloudControlsPartnerCoreSettings(CloudControlsPartnerCoreSettings existi /// public gaxgrpc::CallSettings GetPartnerSettings { get; set; } = gaxgrpc::CallSettings.FromExpiration(gax::Expiration.None); + /// + /// for synchronous and asynchronous calls to + /// CloudControlsPartnerCoreClient.CreateCustomer and + /// CloudControlsPartnerCoreClient.CreateCustomerAsync. + /// + /// + /// + /// This call will not be retried. + /// No timeout is applied. + /// + /// + public gaxgrpc::CallSettings CreateCustomerSettings { get; set; } = gaxgrpc::CallSettings.FromExpiration(gax::Expiration.None); + + /// + /// for synchronous and asynchronous calls to + /// CloudControlsPartnerCoreClient.UpdateCustomer and + /// CloudControlsPartnerCoreClient.UpdateCustomerAsync. + /// + /// + /// + /// This call will not be retried. + /// No timeout is applied. + /// + /// + public gaxgrpc::CallSettings UpdateCustomerSettings { get; set; } = gaxgrpc::CallSettings.FromExpiration(gax::Expiration.None); + + /// + /// for synchronous and asynchronous calls to + /// CloudControlsPartnerCoreClient.DeleteCustomer and + /// CloudControlsPartnerCoreClient.DeleteCustomerAsync. + /// + /// + /// + /// This call will not be retried. + /// No timeout is applied. + /// + /// + public gaxgrpc::CallSettings DeleteCustomerSettings { get; set; } = gaxgrpc::CallSettings.FromExpiration(gax::Expiration.None); + /// Creates a deep clone of this object, with all the same property values. /// A deep clone of this object. public CloudControlsPartnerCoreSettings Clone() => new CloudControlsPartnerCoreSettings(this); @@ -1385,6 +1428,367 @@ public virtual Partner GetPartner(PartnerName name, gaxgrpc::CallSettings callSe /// A Task containing the RPC response. public virtual stt::Task GetPartnerAsync(PartnerName name, st::CancellationToken cancellationToken) => GetPartnerAsync(name, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); + + /// + /// Creates a new customer. + /// + /// The request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// The RPC response. + public virtual Customer CreateCustomer(CreateCustomerRequest request, gaxgrpc::CallSettings callSettings = null) => + throw new sys::NotImplementedException(); + + /// + /// Creates a new customer. + /// + /// The request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// A Task containing the RPC response. + public virtual stt::Task CreateCustomerAsync(CreateCustomerRequest request, gaxgrpc::CallSettings callSettings = null) => + throw new sys::NotImplementedException(); + + /// + /// Creates a new customer. + /// + /// The request object containing all of the parameters for the API call. + /// A to use for this RPC. + /// A Task containing the RPC response. + public virtual stt::Task CreateCustomerAsync(CreateCustomerRequest request, st::CancellationToken cancellationToken) => + CreateCustomerAsync(request, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); + + /// + /// Creates a new customer. + /// + /// + /// Required. Parent resource + /// Format: `organizations/{organization}/locations/{location}` + /// + /// + /// Required. The customer to create. + /// + /// + /// Required. The customer id to use for the customer, which will become the + /// final component of the customer's resource name. The specified value must + /// be a valid Google cloud organization id. + /// + /// If not null, applies overrides to this RPC call. + /// The RPC response. + public virtual Customer CreateCustomer(string parent, Customer customer, string customerId, gaxgrpc::CallSettings callSettings = null) => + CreateCustomer(new CreateCustomerRequest + { + Parent = gax::GaxPreconditions.CheckNotNullOrEmpty(parent, nameof(parent)), + Customer = gax::GaxPreconditions.CheckNotNull(customer, nameof(customer)), + CustomerId = gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), + }, callSettings); + + /// + /// Creates a new customer. + /// + /// + /// Required. Parent resource + /// Format: `organizations/{organization}/locations/{location}` + /// + /// + /// Required. The customer to create. + /// + /// + /// Required. The customer id to use for the customer, which will become the + /// final component of the customer's resource name. The specified value must + /// be a valid Google cloud organization id. + /// + /// If not null, applies overrides to this RPC call. + /// A Task containing the RPC response. + public virtual stt::Task CreateCustomerAsync(string parent, Customer customer, string customerId, gaxgrpc::CallSettings callSettings = null) => + CreateCustomerAsync(new CreateCustomerRequest + { + Parent = gax::GaxPreconditions.CheckNotNullOrEmpty(parent, nameof(parent)), + Customer = gax::GaxPreconditions.CheckNotNull(customer, nameof(customer)), + CustomerId = gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), + }, callSettings); + + /// + /// Creates a new customer. + /// + /// + /// Required. Parent resource + /// Format: `organizations/{organization}/locations/{location}` + /// + /// + /// Required. The customer to create. + /// + /// + /// Required. The customer id to use for the customer, which will become the + /// final component of the customer's resource name. The specified value must + /// be a valid Google cloud organization id. + /// + /// A to use for this RPC. + /// A Task containing the RPC response. + public virtual stt::Task CreateCustomerAsync(string parent, Customer customer, string customerId, st::CancellationToken cancellationToken) => + CreateCustomerAsync(parent, customer, customerId, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); + + /// + /// Creates a new customer. + /// + /// + /// Required. Parent resource + /// Format: `organizations/{organization}/locations/{location}` + /// + /// + /// Required. The customer to create. + /// + /// + /// Required. The customer id to use for the customer, which will become the + /// final component of the customer's resource name. The specified value must + /// be a valid Google cloud organization id. + /// + /// If not null, applies overrides to this RPC call. + /// The RPC response. + public virtual Customer CreateCustomer(OrganizationLocationName parent, Customer customer, string customerId, gaxgrpc::CallSettings callSettings = null) => + CreateCustomer(new CreateCustomerRequest + { + ParentAsOrganizationLocationName = gax::GaxPreconditions.CheckNotNull(parent, nameof(parent)), + Customer = gax::GaxPreconditions.CheckNotNull(customer, nameof(customer)), + CustomerId = gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), + }, callSettings); + + /// + /// Creates a new customer. + /// + /// + /// Required. Parent resource + /// Format: `organizations/{organization}/locations/{location}` + /// + /// + /// Required. The customer to create. + /// + /// + /// Required. The customer id to use for the customer, which will become the + /// final component of the customer's resource name. The specified value must + /// be a valid Google cloud organization id. + /// + /// If not null, applies overrides to this RPC call. + /// A Task containing the RPC response. + public virtual stt::Task CreateCustomerAsync(OrganizationLocationName parent, Customer customer, string customerId, gaxgrpc::CallSettings callSettings = null) => + CreateCustomerAsync(new CreateCustomerRequest + { + ParentAsOrganizationLocationName = gax::GaxPreconditions.CheckNotNull(parent, nameof(parent)), + Customer = gax::GaxPreconditions.CheckNotNull(customer, nameof(customer)), + CustomerId = gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), + }, callSettings); + + /// + /// Creates a new customer. + /// + /// + /// Required. Parent resource + /// Format: `organizations/{organization}/locations/{location}` + /// + /// + /// Required. The customer to create. + /// + /// + /// Required. The customer id to use for the customer, which will become the + /// final component of the customer's resource name. The specified value must + /// be a valid Google cloud organization id. + /// + /// A to use for this RPC. + /// A Task containing the RPC response. + public virtual stt::Task CreateCustomerAsync(OrganizationLocationName parent, Customer customer, string customerId, st::CancellationToken cancellationToken) => + CreateCustomerAsync(parent, customer, customerId, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); + + /// + /// Update details of a single customer + /// + /// The request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// The RPC response. + public virtual Customer UpdateCustomer(UpdateCustomerRequest request, gaxgrpc::CallSettings callSettings = null) => + throw new sys::NotImplementedException(); + + /// + /// Update details of a single customer + /// + /// The request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// A Task containing the RPC response. + public virtual stt::Task UpdateCustomerAsync(UpdateCustomerRequest request, gaxgrpc::CallSettings callSettings = null) => + throw new sys::NotImplementedException(); + + /// + /// Update details of a single customer + /// + /// The request object containing all of the parameters for the API call. + /// A to use for this RPC. + /// A Task containing the RPC response. + public virtual stt::Task UpdateCustomerAsync(UpdateCustomerRequest request, st::CancellationToken cancellationToken) => + UpdateCustomerAsync(request, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); + + /// + /// Update details of a single customer + /// + /// + /// Required. The customer to update + /// Format: + /// `organizations/{organization}/locations/{location}/customers/{customer}` + /// + /// + /// Optional. The list of fields to update + /// + /// If not null, applies overrides to this RPC call. + /// The RPC response. + public virtual Customer UpdateCustomer(Customer customer, wkt::FieldMask updateMask, gaxgrpc::CallSettings callSettings = null) => + UpdateCustomer(new UpdateCustomerRequest + { + Customer = gax::GaxPreconditions.CheckNotNull(customer, nameof(customer)), + UpdateMask = updateMask, + }, callSettings); + + /// + /// Update details of a single customer + /// + /// + /// Required. The customer to update + /// Format: + /// `organizations/{organization}/locations/{location}/customers/{customer}` + /// + /// + /// Optional. The list of fields to update + /// + /// If not null, applies overrides to this RPC call. + /// A Task containing the RPC response. + public virtual stt::Task UpdateCustomerAsync(Customer customer, wkt::FieldMask updateMask, gaxgrpc::CallSettings callSettings = null) => + UpdateCustomerAsync(new UpdateCustomerRequest + { + Customer = gax::GaxPreconditions.CheckNotNull(customer, nameof(customer)), + UpdateMask = updateMask, + }, callSettings); + + /// + /// Update details of a single customer + /// + /// + /// Required. The customer to update + /// Format: + /// `organizations/{organization}/locations/{location}/customers/{customer}` + /// + /// + /// Optional. The list of fields to update + /// + /// A to use for this RPC. + /// A Task containing the RPC response. + public virtual stt::Task UpdateCustomerAsync(Customer customer, wkt::FieldMask updateMask, st::CancellationToken cancellationToken) => + UpdateCustomerAsync(customer, updateMask, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); + + /// + /// Delete details of a single customer + /// + /// The request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// The RPC response. + public virtual void DeleteCustomer(DeleteCustomerRequest request, gaxgrpc::CallSettings callSettings = null) => + throw new sys::NotImplementedException(); + + /// + /// Delete details of a single customer + /// + /// The request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// A Task containing the RPC response. + public virtual stt::Task DeleteCustomerAsync(DeleteCustomerRequest request, gaxgrpc::CallSettings callSettings = null) => + throw new sys::NotImplementedException(); + + /// + /// Delete details of a single customer + /// + /// The request object containing all of the parameters for the API call. + /// A to use for this RPC. + /// A Task containing the RPC response. + public virtual stt::Task DeleteCustomerAsync(DeleteCustomerRequest request, st::CancellationToken cancellationToken) => + DeleteCustomerAsync(request, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); + + /// + /// Delete details of a single customer + /// + /// + /// Required. name of the resource to be deleted + /// format: name=organizations/*/locations/*/customers/* + /// + /// If not null, applies overrides to this RPC call. + /// The RPC response. + public virtual void DeleteCustomer(string name, gaxgrpc::CallSettings callSettings = null) => + DeleteCustomer(new DeleteCustomerRequest + { + Name = gax::GaxPreconditions.CheckNotNullOrEmpty(name, nameof(name)), + }, callSettings); + + /// + /// Delete details of a single customer + /// + /// + /// Required. name of the resource to be deleted + /// format: name=organizations/*/locations/*/customers/* + /// + /// If not null, applies overrides to this RPC call. + /// A Task containing the RPC response. + public virtual stt::Task DeleteCustomerAsync(string name, gaxgrpc::CallSettings callSettings = null) => + DeleteCustomerAsync(new DeleteCustomerRequest + { + Name = gax::GaxPreconditions.CheckNotNullOrEmpty(name, nameof(name)), + }, callSettings); + + /// + /// Delete details of a single customer + /// + /// + /// Required. name of the resource to be deleted + /// format: name=organizations/*/locations/*/customers/* + /// + /// A to use for this RPC. + /// A Task containing the RPC response. + public virtual stt::Task DeleteCustomerAsync(string name, st::CancellationToken cancellationToken) => + DeleteCustomerAsync(name, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); + + /// + /// Delete details of a single customer + /// + /// + /// Required. name of the resource to be deleted + /// format: name=organizations/*/locations/*/customers/* + /// + /// If not null, applies overrides to this RPC call. + /// The RPC response. + public virtual void DeleteCustomer(CustomerName name, gaxgrpc::CallSettings callSettings = null) => + DeleteCustomer(new DeleteCustomerRequest + { + CustomerName = gax::GaxPreconditions.CheckNotNull(name, nameof(name)), + }, callSettings); + + /// + /// Delete details of a single customer + /// + /// + /// Required. name of the resource to be deleted + /// format: name=organizations/*/locations/*/customers/* + /// + /// If not null, applies overrides to this RPC call. + /// A Task containing the RPC response. + public virtual stt::Task DeleteCustomerAsync(CustomerName name, gaxgrpc::CallSettings callSettings = null) => + DeleteCustomerAsync(new DeleteCustomerRequest + { + CustomerName = gax::GaxPreconditions.CheckNotNull(name, nameof(name)), + }, callSettings); + + /// + /// Delete details of a single customer + /// + /// + /// Required. name of the resource to be deleted + /// format: name=organizations/*/locations/*/customers/* + /// + /// A to use for this RPC. + /// A Task containing the RPC response. + public virtual stt::Task DeleteCustomerAsync(CustomerName name, st::CancellationToken cancellationToken) => + DeleteCustomerAsync(name, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); } /// CloudControlsPartnerCore client wrapper implementation, for convenient use. @@ -1409,6 +1813,12 @@ public sealed partial class CloudControlsPartnerCoreClientImpl : CloudControlsPa private readonly gaxgrpc::ApiCall _callGetPartner; + private readonly gaxgrpc::ApiCall _callCreateCustomer; + + private readonly gaxgrpc::ApiCall _callUpdateCustomer; + + private readonly gaxgrpc::ApiCall _callDeleteCustomer; + /// /// Constructs a client wrapper for the CloudControlsPartnerCore service, with the specified gRPC client and /// settings. @@ -1453,6 +1863,15 @@ public CloudControlsPartnerCoreClientImpl(CloudControlsPartnerCore.CloudControls _callGetPartner = clientHelper.BuildApiCall("GetPartner", grpcClient.GetPartnerAsync, grpcClient.GetPartner, effectiveSettings.GetPartnerSettings).WithGoogleRequestParam("name", request => request.Name); Modify_ApiCall(ref _callGetPartner); Modify_GetPartnerApiCall(ref _callGetPartner); + _callCreateCustomer = clientHelper.BuildApiCall("CreateCustomer", grpcClient.CreateCustomerAsync, grpcClient.CreateCustomer, effectiveSettings.CreateCustomerSettings).WithGoogleRequestParam("parent", request => request.Parent); + Modify_ApiCall(ref _callCreateCustomer); + Modify_CreateCustomerApiCall(ref _callCreateCustomer); + _callUpdateCustomer = clientHelper.BuildApiCall("UpdateCustomer", grpcClient.UpdateCustomerAsync, grpcClient.UpdateCustomer, effectiveSettings.UpdateCustomerSettings).WithGoogleRequestParam("customer.name", request => request.Customer?.Name); + Modify_ApiCall(ref _callUpdateCustomer); + Modify_UpdateCustomerApiCall(ref _callUpdateCustomer); + _callDeleteCustomer = clientHelper.BuildApiCall("DeleteCustomer", grpcClient.DeleteCustomerAsync, grpcClient.DeleteCustomer, effectiveSettings.DeleteCustomerSettings).WithGoogleRequestParam("name", request => request.Name); + Modify_ApiCall(ref _callDeleteCustomer); + Modify_DeleteCustomerApiCall(ref _callDeleteCustomer); OnConstruction(grpcClient, effectiveSettings, clientHelper); } @@ -1474,6 +1893,12 @@ public CloudControlsPartnerCoreClientImpl(CloudControlsPartnerCore.CloudControls partial void Modify_GetPartnerApiCall(ref gaxgrpc::ApiCall call); + partial void Modify_CreateCustomerApiCall(ref gaxgrpc::ApiCall call); + + partial void Modify_UpdateCustomerApiCall(ref gaxgrpc::ApiCall call); + + partial void Modify_DeleteCustomerApiCall(ref gaxgrpc::ApiCall call); + partial void OnConstruction(CloudControlsPartnerCore.CloudControlsPartnerCoreClient grpcClient, CloudControlsPartnerCoreSettings effectiveSettings, gaxgrpc::ClientHelper clientHelper); /// The underlying gRPC CloudControlsPartnerCore client @@ -1495,6 +1920,12 @@ public CloudControlsPartnerCoreClientImpl(CloudControlsPartnerCore.CloudControls partial void Modify_GetPartnerRequest(ref GetPartnerRequest request, ref gaxgrpc::CallSettings settings); + partial void Modify_CreateCustomerRequest(ref CreateCustomerRequest request, ref gaxgrpc::CallSettings settings); + + partial void Modify_UpdateCustomerRequest(ref UpdateCustomerRequest request, ref gaxgrpc::CallSettings settings); + + partial void Modify_DeleteCustomerRequest(ref DeleteCustomerRequest request, ref gaxgrpc::CallSettings settings); + /// /// Gets details of a single workload /// @@ -1690,6 +2121,78 @@ public override Partner GetPartner(GetPartnerRequest request, gaxgrpc::CallSetti Modify_GetPartnerRequest(ref request, ref callSettings); return _callGetPartner.Async(request, callSettings); } + + /// + /// Creates a new customer. + /// + /// The request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// The RPC response. + public override Customer CreateCustomer(CreateCustomerRequest request, gaxgrpc::CallSettings callSettings = null) + { + Modify_CreateCustomerRequest(ref request, ref callSettings); + return _callCreateCustomer.Sync(request, callSettings); + } + + /// + /// Creates a new customer. + /// + /// The request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// A Task containing the RPC response. + public override stt::Task CreateCustomerAsync(CreateCustomerRequest request, gaxgrpc::CallSettings callSettings = null) + { + Modify_CreateCustomerRequest(ref request, ref callSettings); + return _callCreateCustomer.Async(request, callSettings); + } + + /// + /// Update details of a single customer + /// + /// The request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// The RPC response. + public override Customer UpdateCustomer(UpdateCustomerRequest request, gaxgrpc::CallSettings callSettings = null) + { + Modify_UpdateCustomerRequest(ref request, ref callSettings); + return _callUpdateCustomer.Sync(request, callSettings); + } + + /// + /// Update details of a single customer + /// + /// The request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// A Task containing the RPC response. + public override stt::Task UpdateCustomerAsync(UpdateCustomerRequest request, gaxgrpc::CallSettings callSettings = null) + { + Modify_UpdateCustomerRequest(ref request, ref callSettings); + return _callUpdateCustomer.Async(request, callSettings); + } + + /// + /// Delete details of a single customer + /// + /// The request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// The RPC response. + public override void DeleteCustomer(DeleteCustomerRequest request, gaxgrpc::CallSettings callSettings = null) + { + Modify_DeleteCustomerRequest(ref request, ref callSettings); + _callDeleteCustomer.Sync(request, callSettings); + } + + /// + /// Delete details of a single customer + /// + /// The request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// A Task containing the RPC response. + public override stt::Task DeleteCustomerAsync(DeleteCustomerRequest request, gaxgrpc::CallSettings callSettings = null) + { + Modify_DeleteCustomerRequest(ref request, ref callSettings); + return _callDeleteCustomer.Async(request, callSettings); + } } public partial class ListWorkloadsRequest : gaxgrpc::IPageRequest diff --git a/apis/Google.Cloud.CloudControlsPartner.V1Beta/Google.Cloud.CloudControlsPartner.V1Beta/Core.g.cs b/apis/Google.Cloud.CloudControlsPartner.V1Beta/Google.Cloud.CloudControlsPartner.V1Beta/Core.g.cs index e4f9442c81ab..6f1b79413981 100644 --- a/apis/Google.Cloud.CloudControlsPartner.V1Beta/Google.Cloud.CloudControlsPartner.V1Beta/Core.g.cs +++ b/apis/Google.Cloud.CloudControlsPartner.V1Beta/Google.Cloud.CloudControlsPartner.V1Beta/Core.g.cs @@ -37,69 +37,84 @@ static CoreReflection() { "L2VrbV9jb25uZWN0aW9ucy5wcm90bxpCZ29vZ2xlL2Nsb3VkL2Nsb3VkY29u", "dHJvbHNwYXJ0bmVyL3YxYmV0YS9wYXJ0bmVyX3Blcm1pc3Npb25zLnByb3Rv", "Gjdnb29nbGUvY2xvdWQvY2xvdWRjb250cm9sc3BhcnRuZXIvdjFiZXRhL3Bh", - "cnRuZXJzLnByb3RvGh9nb29nbGUvcHJvdG9idWYvdGltZXN0YW1wLnByb3Rv", - "IoACChFPcGVyYXRpb25NZXRhZGF0YRI0CgtjcmVhdGVfdGltZRgBIAEoCzIa", - "Lmdvb2dsZS5wcm90b2J1Zi5UaW1lc3RhbXBCA+BBAxIxCghlbmRfdGltZRgC", - "IAEoCzIaLmdvb2dsZS5wcm90b2J1Zi5UaW1lc3RhbXBCA+BBAxITCgZ0YXJn", - "ZXQYAyABKAlCA+BBAxIRCgR2ZXJiGAQgASgJQgPgQQMSGwoOc3RhdHVzX21l", - "c3NhZ2UYBSABKAlCA+BBAxIjChZyZXF1ZXN0ZWRfY2FuY2VsbGF0aW9uGAYg", - "ASgIQgPgQQMSGAoLYXBpX3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9ucy8qL2N1", + "c3RvbWVycy8qfRpXykEjY2xvdWRjb250cm9sc3BhcnRuZXIuZ29vZ2xlYXBp", + "cy5jb23SQS5odHRwczovL3d3dy5nb29nbGVhcGlzLmNvbS9hdXRoL2Nsb3Vk", + "LXBsYXRmb3JtQpEDCixjb20uZ29vZ2xlLmNsb3VkLmNsb3VkY29udHJvbHNw", + "YXJ0bmVyLnYxYmV0YUIJQ29yZVByb3RvUAFaYGNsb3VkLmdvb2dsZS5jb20v", + "Z28vY2xvdWRjb250cm9sc3BhcnRuZXIvYXBpdjFiZXRhL2Nsb3VkY29udHJv", + "bHNwYXJ0bmVycGI7Y2xvdWRjb250cm9sc3BhcnRuZXJwYqoCKEdvb2dsZS5D", + "bG91ZC5DbG91ZENvbnRyb2xzUGFydG5lci5WMUJldGHKAihHb29nbGVcQ2xv", + "dWRcQ2xvdWRDb250cm9sc1BhcnRuZXJcVjFiZXRh6gIrR29vZ2xlOjpDbG91", + "ZDo6Q2xvdWRDb250cm9sc1BhcnRuZXI6OlYxYmV0YepBbQo4Y2xvdWRjb250", + "cm9sc3BhcnRuZXIuZ29vZ2xlYXBpcy5jb20vT3JnYW5pemF0aW9uTG9jYXRp", + "b24SMW9yZ2FuaXphdGlvbnMve29yZ2FuaXphdGlvbn0vbG9jYXRpb25zL3ts", + "b2NhdGlvbn1iBnByb3RvMw==")); descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { global::Google.Api.AnnotationsReflection.Descriptor, global::Google.Api.ClientReflection.Descriptor, global::Google.Api.FieldBehaviorReflection.Descriptor, global::Google.Api.ResourceReflection.Descriptor, global::Google.Cloud.CloudControlsPartner.V1Beta.AccessApprovalRequestsReflection.Descriptor, global::Google.Cloud.CloudControlsPartner.V1Beta.CustomerWorkloadsReflection.Descriptor, global::Google.Cloud.CloudControlsPartner.V1Beta.CustomersReflection.Descriptor, global::Google.Cloud.CloudControlsPartner.V1Beta.EkmConnectionsReflection.Descriptor, global::Google.Cloud.CloudControlsPartner.V1Beta.PartnerPermissionsReflection.Descriptor, global::Google.Cloud.CloudControlsPartner.V1Beta.PartnersReflection.Descriptor, global::Google.Protobuf.WellKnownTypes.TimestampReflection.Descriptor, }, + new pbr::FileDescriptor[] { global::Google.Api.AnnotationsReflection.Descriptor, global::Google.Api.ClientReflection.Descriptor, global::Google.Api.FieldBehaviorReflection.Descriptor, global::Google.Api.ResourceReflection.Descriptor, global::Google.Cloud.CloudControlsPartner.V1Beta.AccessApprovalRequestsReflection.Descriptor, global::Google.Cloud.CloudControlsPartner.V1Beta.CustomerWorkloadsReflection.Descriptor, global::Google.Cloud.CloudControlsPartner.V1Beta.CustomersReflection.Descriptor, global::Google.Cloud.CloudControlsPartner.V1Beta.EkmConnectionsReflection.Descriptor, global::Google.Cloud.CloudControlsPartner.V1Beta.PartnerPermissionsReflection.Descriptor, global::Google.Cloud.CloudControlsPartner.V1Beta.PartnersReflection.Descriptor, global::Google.Protobuf.WellKnownTypes.EmptyReflection.Descriptor, global::Google.Protobuf.WellKnownTypes.TimestampReflection.Descriptor, }, new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.CloudControlsPartner.V1Beta.OperationMetadata), global::Google.Cloud.CloudControlsPartner.V1Beta.OperationMetadata.Parser, new[]{ "CreateTime", "EndTime", "Target", "Verb", "StatusMessage", "RequestedCancellation", "ApiVersion" }, null, null, null, null) })); @@ -243,7 +258,7 @@ public string StatusMessage { /// /// Output only. Identifies whether the user has requested cancellation /// of the operation. Operations that have been cancelled successfully - /// have [Operation.error][] value with a + /// have [Operation.error][google.longrunning.Operation.error] value with a /// [google.rpc.Status.code][google.rpc.Status.code] of 1, corresponding to /// `Code.CANCELLED`. /// diff --git a/apis/Google.Cloud.CloudControlsPartner.V1Beta/Google.Cloud.CloudControlsPartner.V1Beta/CoreGrpc.g.cs b/apis/Google.Cloud.CloudControlsPartner.V1Beta/Google.Cloud.CloudControlsPartner.V1Beta/CoreGrpc.g.cs index 7163a65271c5..de80a1499a84 100644 --- a/apis/Google.Cloud.CloudControlsPartner.V1Beta/Google.Cloud.CloudControlsPartner.V1Beta/CoreGrpc.g.cs +++ b/apis/Google.Cloud.CloudControlsPartner.V1Beta/Google.Cloud.CloudControlsPartner.V1Beta/CoreGrpc.g.cs @@ -95,6 +95,14 @@ static T __Helper_DeserializeMessage(grpc::DeserializationContext context, gl static readonly grpc::Marshaller __Marshaller_google_cloud_cloudcontrolspartner_v1beta_GetPartnerRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Cloud.CloudControlsPartner.V1Beta.GetPartnerRequest.Parser)); [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] static readonly grpc::Marshaller __Marshaller_google_cloud_cloudcontrolspartner_v1beta_Partner = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Cloud.CloudControlsPartner.V1Beta.Partner.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_google_cloud_cloudcontrolspartner_v1beta_CreateCustomerRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Cloud.CloudControlsPartner.V1Beta.CreateCustomerRequest.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_google_cloud_cloudcontrolspartner_v1beta_UpdateCustomerRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Cloud.CloudControlsPartner.V1Beta.UpdateCustomerRequest.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_google_cloud_cloudcontrolspartner_v1beta_DeleteCustomerRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Cloud.CloudControlsPartner.V1Beta.DeleteCustomerRequest.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_google_protobuf_Empty = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Protobuf.WellKnownTypes.Empty.Parser)); [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] static readonly grpc::Method __Method_GetWorkload = new grpc::Method( @@ -160,6 +168,30 @@ static T __Helper_DeserializeMessage(grpc::DeserializationContext context, gl __Marshaller_google_cloud_cloudcontrolspartner_v1beta_GetPartnerRequest, __Marshaller_google_cloud_cloudcontrolspartner_v1beta_Partner); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Method __Method_CreateCustomer = new grpc::Method( + grpc::MethodType.Unary, + __ServiceName, + "CreateCustomer", + __Marshaller_google_cloud_cloudcontrolspartner_v1beta_CreateCustomerRequest, + __Marshaller_google_cloud_cloudcontrolspartner_v1beta_Customer); + + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Method __Method_UpdateCustomer = new grpc::Method( + grpc::MethodType.Unary, + __ServiceName, + "UpdateCustomer", + __Marshaller_google_cloud_cloudcontrolspartner_v1beta_UpdateCustomerRequest, + __Marshaller_google_cloud_cloudcontrolspartner_v1beta_Customer); + + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Method __Method_DeleteCustomer = new grpc::Method( + grpc::MethodType.Unary, + __ServiceName, + "DeleteCustomer", + __Marshaller_google_cloud_cloudcontrolspartner_v1beta_DeleteCustomerRequest, + __Marshaller_google_protobuf_Empty); + /// Service descriptor public static global::Google.Protobuf.Reflection.ServiceDescriptor Descriptor { @@ -268,6 +300,42 @@ public abstract partial class CloudControlsPartnerCoreBase throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); } + /// + /// Creates a new customer. + /// + /// The request received from the client. + /// The context of the server-side call handler being invoked. + /// The response to send back to the client (wrapped by a task). + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::System.Threading.Tasks.Task CreateCustomer(global::Google.Cloud.CloudControlsPartner.V1Beta.CreateCustomerRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + /// + /// Update details of a single customer + /// + /// The request received from the client. + /// The context of the server-side call handler being invoked. + /// The response to send back to the client (wrapped by a task). + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::System.Threading.Tasks.Task UpdateCustomer(global::Google.Cloud.CloudControlsPartner.V1Beta.UpdateCustomerRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + /// + /// Delete details of a single customer + /// + /// The request received from the client. + /// The context of the server-side call handler being invoked. + /// The response to send back to the client (wrapped by a task). + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::System.Threading.Tasks.Task DeleteCustomer(global::Google.Cloud.CloudControlsPartner.V1Beta.DeleteCustomerRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + } /// Client for CloudControlsPartnerCore @@ -689,6 +757,150 @@ protected CloudControlsPartnerCoreClient(ClientBaseConfiguration configuration) { return CallInvoker.AsyncUnaryCall(__Method_GetPartner, null, options, request); } + /// + /// Creates a new customer. + /// + /// The request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Google.Cloud.CloudControlsPartner.V1Beta.Customer CreateCustomer(global::Google.Cloud.CloudControlsPartner.V1Beta.CreateCustomerRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return CreateCustomer(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Creates a new customer. + /// + /// The request to send to the server. + /// The options for the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Google.Cloud.CloudControlsPartner.V1Beta.Customer CreateCustomer(global::Google.Cloud.CloudControlsPartner.V1Beta.CreateCustomerRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_CreateCustomer, null, options, request); + } + /// + /// Creates a new customer. + /// + /// The request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall CreateCustomerAsync(global::Google.Cloud.CloudControlsPartner.V1Beta.CreateCustomerRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return CreateCustomerAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Creates a new customer. + /// + /// The request to send to the server. + /// The options for the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall CreateCustomerAsync(global::Google.Cloud.CloudControlsPartner.V1Beta.CreateCustomerRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_CreateCustomer, null, options, request); + } + /// + /// Update details of a single customer + /// + /// The request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Google.Cloud.CloudControlsPartner.V1Beta.Customer UpdateCustomer(global::Google.Cloud.CloudControlsPartner.V1Beta.UpdateCustomerRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return UpdateCustomer(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Update details of a single customer + /// + /// The request to send to the server. + /// The options for the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Google.Cloud.CloudControlsPartner.V1Beta.Customer UpdateCustomer(global::Google.Cloud.CloudControlsPartner.V1Beta.UpdateCustomerRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_UpdateCustomer, null, options, request); + } + /// + /// Update details of a single customer + /// + /// The request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall UpdateCustomerAsync(global::Google.Cloud.CloudControlsPartner.V1Beta.UpdateCustomerRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return UpdateCustomerAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Update details of a single customer + /// + /// The request to send to the server. + /// The options for the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall UpdateCustomerAsync(global::Google.Cloud.CloudControlsPartner.V1Beta.UpdateCustomerRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_UpdateCustomer, null, options, request); + } + /// + /// Delete details of a single customer + /// + /// The request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Google.Protobuf.WellKnownTypes.Empty DeleteCustomer(global::Google.Cloud.CloudControlsPartner.V1Beta.DeleteCustomerRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return DeleteCustomer(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Delete details of a single customer + /// + /// The request to send to the server. + /// The options for the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Google.Protobuf.WellKnownTypes.Empty DeleteCustomer(global::Google.Cloud.CloudControlsPartner.V1Beta.DeleteCustomerRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_DeleteCustomer, null, options, request); + } + /// + /// Delete details of a single customer + /// + /// The request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall DeleteCustomerAsync(global::Google.Cloud.CloudControlsPartner.V1Beta.DeleteCustomerRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return DeleteCustomerAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Delete details of a single customer + /// + /// The request to send to the server. + /// The options for the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall DeleteCustomerAsync(global::Google.Cloud.CloudControlsPartner.V1Beta.DeleteCustomerRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_DeleteCustomer, null, options, request); + } /// Creates a new instance of client from given ClientBaseConfiguration. [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] protected override CloudControlsPartnerCoreClient NewInstance(ClientBaseConfiguration configuration) @@ -710,7 +922,10 @@ protected override CloudControlsPartnerCoreClient NewInstance(ClientBaseConfigur .AddMethod(__Method_GetEkmConnections, serviceImpl.GetEkmConnections) .AddMethod(__Method_GetPartnerPermissions, serviceImpl.GetPartnerPermissions) .AddMethod(__Method_ListAccessApprovalRequests, serviceImpl.ListAccessApprovalRequests) - .AddMethod(__Method_GetPartner, serviceImpl.GetPartner).Build(); + .AddMethod(__Method_GetPartner, serviceImpl.GetPartner) + .AddMethod(__Method_CreateCustomer, serviceImpl.CreateCustomer) + .AddMethod(__Method_UpdateCustomer, serviceImpl.UpdateCustomer) + .AddMethod(__Method_DeleteCustomer, serviceImpl.DeleteCustomer).Build(); } /// Register service method with a service binder with or without implementation. Useful when customizing the service binding logic. @@ -728,6 +943,9 @@ public static void BindService(grpc::ServiceBinderBase serviceBinder, CloudContr serviceBinder.AddMethod(__Method_GetPartnerPermissions, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.GetPartnerPermissions)); serviceBinder.AddMethod(__Method_ListAccessApprovalRequests, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.ListAccessApprovalRequests)); serviceBinder.AddMethod(__Method_GetPartner, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.GetPartner)); + serviceBinder.AddMethod(__Method_CreateCustomer, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.CreateCustomer)); + serviceBinder.AddMethod(__Method_UpdateCustomer, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.UpdateCustomer)); + serviceBinder.AddMethod(__Method_DeleteCustomer, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.DeleteCustomer)); } } diff --git a/apis/Google.Cloud.CloudControlsPartner.V1Beta/Google.Cloud.CloudControlsPartner.V1Beta/Customers.g.cs b/apis/Google.Cloud.CloudControlsPartner.V1Beta/Google.Cloud.CloudControlsPartner.V1Beta/Customers.g.cs index eacd0c79545b..7de6fa9f79d1 100644 --- a/apis/Google.Cloud.CloudControlsPartner.V1Beta/Google.Cloud.CloudControlsPartner.V1Beta/Customers.g.cs +++ b/apis/Google.Cloud.CloudControlsPartner.V1Beta/Google.Cloud.CloudControlsPartner.V1Beta/Customers.g.cs @@ -29,51 +29,65 @@ static CustomersReflection() { "bmVyLnYxYmV0YRofZ29vZ2xlL2FwaS9maWVsZF9iZWhhdmlvci5wcm90bxoZ", "Z29vZ2xlL2FwaS9yZXNvdXJjZS5wcm90bxo/Z29vZ2xlL2Nsb3VkL2Nsb3Vk", "Y29udHJvbHNwYXJ0bmVyL3YxYmV0YS9jb21wbGV0aW9uX3N0YXRlLnByb3Rv", - "Gh9nb29nbGUvcHJvdG9idWYvdGltZXN0YW1wLnByb3RvItACCghDdXN0b21l", - "chIRCgRuYW1lGAEgASgJQgPgQQgSGQoMZGlzcGxheV9uYW1lGAIgASgJQgPg", - "QQISaQoZY3VzdG9tZXJfb25ib2FyZGluZ19zdGF0ZRgDIAEoCzJBLmdvb2ds", - "ZS5jbG91ZC5jbG91ZGNvbnRyb2xzcGFydG5lci52MWJldGEuQ3VzdG9tZXJP", - "bmJvYXJkaW5nU3RhdGVCA+BBAxIZCgxpc19vbmJvYXJkZWQYBCABKAhCA+BB", - "AzqPAepBiwEKLGNsb3VkY29udHJvbHNwYXJ0bmVyLmdvb2dsZWFwaXMuY29t", - "L0N1c3RvbWVyEkZvcmdhbml6YXRpb25zL3tvcmdhbml6YXRpb259L2xvY2F0", - "aW9ucy97bG9jYXRpb259L2N1c3RvbWVycy97Y3VzdG9tZXJ9KgljdXN0b21l", - "cnMyCGN1c3RvbWVyIq8BChRMaXN0Q3VzdG9tZXJzUmVxdWVzdBJECgZwYXJl", - "bnQYASABKAlCNOBBAvpBLhIsY2xvdWRjb250cm9sc3BhcnRuZXIuZ29vZ2xl", - "YXBpcy5jb20vQ3VzdG9tZXISEQoJcG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lLkNsb3VkLkNsb3Vk", + "Q29udHJvbHNQYXJ0bmVyLlYxQmV0YcoCKEdvb2dsZVxDbG91ZFxDbG91ZENv", + "bnRyb2xzUGFydG5lclxWMWJldGHqAitHb29nbGU6OkNsb3VkOjpDbG91ZENv", + "bnRyb2xzUGFydG5lcjo6VjFiZXRhYgZwcm90bzM=")); descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { global::Google.Api.FieldBehaviorReflection.Descriptor, global::Google.Api.ResourceReflection.Descriptor, global::Google.Cloud.CloudControlsPartner.V1Beta.CompletionStateReflection.Descriptor, global::Google.Protobuf.WellKnownTypes.TimestampReflection.Descriptor, }, + new pbr::FileDescriptor[] { global::Google.Api.FieldBehaviorReflection.Descriptor, global::Google.Api.ResourceReflection.Descriptor, global::Google.Cloud.CloudControlsPartner.V1Beta.CompletionStateReflection.Descriptor, global::Google.Protobuf.WellKnownTypes.FieldMaskReflection.Descriptor, global::Google.Protobuf.WellKnownTypes.TimestampReflection.Descriptor, }, new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.CloudControlsPartner.V1Beta.Customer), global::Google.Cloud.CloudControlsPartner.V1Beta.Customer.Parser, new[]{ "Name", "DisplayName", "CustomerOnboardingState", "IsOnboarded" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.CloudControlsPartner.V1Beta.Customer), global::Google.Cloud.CloudControlsPartner.V1Beta.Customer.Parser, new[]{ "Name", "DisplayName", "CustomerOnboardingState", "IsOnboarded", "OrganizationDomain" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.CloudControlsPartner.V1Beta.ListCustomersRequest), global::Google.Cloud.CloudControlsPartner.V1Beta.ListCustomersRequest.Parser, new[]{ "Parent", "PageSize", "PageToken", "Filter", "OrderBy" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.CloudControlsPartner.V1Beta.ListCustomersResponse), global::Google.Cloud.CloudControlsPartner.V1Beta.ListCustomersResponse.Parser, new[]{ "Customers", "NextPageToken", "Unreachable" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.CloudControlsPartner.V1Beta.CreateCustomerRequest), global::Google.Cloud.CloudControlsPartner.V1Beta.CreateCustomerRequest.Parser, new[]{ "Parent", "Customer", "CustomerId" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.CloudControlsPartner.V1Beta.GetCustomerRequest), global::Google.Cloud.CloudControlsPartner.V1Beta.GetCustomerRequest.Parser, new[]{ "Name" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.CloudControlsPartner.V1Beta.CustomerOnboardingState), global::Google.Cloud.CloudControlsPartner.V1Beta.CustomerOnboardingState.Parser, new[]{ "OnboardingSteps" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.CloudControlsPartner.V1Beta.CustomerOnboardingStep), global::Google.Cloud.CloudControlsPartner.V1Beta.CustomerOnboardingStep.Parser, new[]{ "Step", "StartTime", "CompletionTime", "CompletionState" }, null, new[]{ typeof(global::Google.Cloud.CloudControlsPartner.V1Beta.CustomerOnboardingStep.Types.Step) }, null, null) + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.CloudControlsPartner.V1Beta.CustomerOnboardingStep), global::Google.Cloud.CloudControlsPartner.V1Beta.CustomerOnboardingStep.Parser, new[]{ "Step", "StartTime", "CompletionTime", "CompletionState" }, null, new[]{ typeof(global::Google.Cloud.CloudControlsPartner.V1Beta.CustomerOnboardingStep.Types.Step) }, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.CloudControlsPartner.V1Beta.UpdateCustomerRequest), global::Google.Cloud.CloudControlsPartner.V1Beta.UpdateCustomerRequest.Parser, new[]{ "Customer", "UpdateMask" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.CloudControlsPartner.V1Beta.DeleteCustomerRequest), global::Google.Cloud.CloudControlsPartner.V1Beta.DeleteCustomerRequest.Parser, new[]{ "Name" }, null, null, null, null) })); } #endregion @@ -122,6 +136,7 @@ public Customer(Customer other) : this() { displayName_ = other.displayName_; customerOnboardingState_ = other.customerOnboardingState_ != null ? other.customerOnboardingState_.Clone() : null; isOnboarded_ = other.isOnboarded_; + organizationDomain_ = other.organizationDomain_; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } @@ -192,6 +207,22 @@ public bool IsOnboarded { } } + /// Field number for the "organization_domain" field. + public const int OrganizationDomainFieldNumber = 5; + private string organizationDomain_ = ""; + /// + /// Output only. The customer organization domain, extracted from + /// CRM Organization’s display_name field. e.g. "google.com" + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string OrganizationDomain { + get { return organizationDomain_; } + set { + organizationDomain_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { @@ -211,6 +242,7 @@ public bool Equals(Customer other) { if (DisplayName != other.DisplayName) return false; if (!object.Equals(CustomerOnboardingState, other.CustomerOnboardingState)) return false; if (IsOnboarded != other.IsOnboarded) return false; + if (OrganizationDomain != other.OrganizationDomain) return false; return Equals(_unknownFields, other._unknownFields); } @@ -222,6 +254,7 @@ public override int GetHashCode() { if (DisplayName.Length != 0) hash ^= DisplayName.GetHashCode(); if (customerOnboardingState_ != null) hash ^= CustomerOnboardingState.GetHashCode(); if (IsOnboarded != false) hash ^= IsOnboarded.GetHashCode(); + if (OrganizationDomain.Length != 0) hash ^= OrganizationDomain.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } @@ -256,6 +289,10 @@ public void WriteTo(pb::CodedOutputStream output) { output.WriteRawTag(32); output.WriteBool(IsOnboarded); } + if (OrganizationDomain.Length != 0) { + output.WriteRawTag(42); + output.WriteString(OrganizationDomain); + } if (_unknownFields != null) { _unknownFields.WriteTo(output); } @@ -282,6 +319,10 @@ public void WriteTo(pb::CodedOutputStream output) { output.WriteRawTag(32); output.WriteBool(IsOnboarded); } + if (OrganizationDomain.Length != 0) { + output.WriteRawTag(42); + output.WriteString(OrganizationDomain); + } if (_unknownFields != null) { _unknownFields.WriteTo(ref output); } @@ -304,6 +345,9 @@ public int CalculateSize() { if (IsOnboarded != false) { size += 1 + 1; } + if (OrganizationDomain.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(OrganizationDomain); + } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } @@ -331,6 +375,9 @@ public void MergeFrom(Customer other) { if (other.IsOnboarded != false) { IsOnboarded = other.IsOnboarded; } + if (other.OrganizationDomain.Length != 0) { + OrganizationDomain = other.OrganizationDomain; + } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } @@ -365,6 +412,10 @@ public void MergeFrom(pb::CodedInputStream input) { IsOnboarded = input.ReadBool(); break; } + case 42: { + OrganizationDomain = input.ReadString(); + break; + } } } #endif @@ -399,6 +450,10 @@ public void MergeFrom(pb::CodedInputStream input) { IsOnboarded = input.ReadBool(); break; } + case 42: { + OrganizationDomain = input.ReadString(); + break; + } } } } @@ -1020,6 +1075,294 @@ public void MergeFrom(pb::CodedInputStream input) { } + /// + /// Request to create a customer + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class CreateCustomerRequest : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CreateCustomerRequest()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Google.Cloud.CloudControlsPartner.V1Beta.CustomersReflection.Descriptor.MessageTypes[3]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CreateCustomerRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CreateCustomerRequest(CreateCustomerRequest other) : this() { + parent_ = other.parent_; + customer_ = other.customer_ != null ? other.customer_.Clone() : null; + customerId_ = other.customerId_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CreateCustomerRequest Clone() { + return new CreateCustomerRequest(this); + } + + /// Field number for the "parent" field. + public const int ParentFieldNumber = 1; + private string parent_ = ""; + /// + /// Required. Parent resource + /// Format: `organizations/{organization}/locations/{location}` + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Parent { + get { return parent_; } + set { + parent_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "customer" field. + public const int CustomerFieldNumber = 2; + private global::Google.Cloud.CloudControlsPartner.V1Beta.Customer customer_; + /// + /// Required. The customer to create. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Cloud.CloudControlsPartner.V1Beta.Customer Customer { + get { return customer_; } + set { + customer_ = value; + } + } + + /// Field number for the "customer_id" field. + public const int CustomerIdFieldNumber = 3; + private string customerId_ = ""; + /// + /// Required. The customer id to use for the customer, which will become the + /// final component of the customer's resource name. The specified value must + /// be a valid Google cloud organization id. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string CustomerId { + get { return customerId_; } + set { + customerId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as CreateCustomerRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(CreateCustomerRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Parent != other.Parent) return false; + if (!object.Equals(Customer, other.Customer)) return false; + if (CustomerId != other.CustomerId) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Parent.Length != 0) hash ^= Parent.GetHashCode(); + if (customer_ != null) hash ^= Customer.GetHashCode(); + if (CustomerId.Length != 0) hash ^= CustomerId.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Parent.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Parent); + } + if (customer_ != null) { + output.WriteRawTag(18); + output.WriteMessage(Customer); + } + if (CustomerId.Length != 0) { + output.WriteRawTag(26); + output.WriteString(CustomerId); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Parent.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Parent); + } + if (customer_ != null) { + output.WriteRawTag(18); + output.WriteMessage(Customer); + } + if (CustomerId.Length != 0) { + output.WriteRawTag(26); + output.WriteString(CustomerId); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Parent.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Parent); + } + if (customer_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Customer); + } + if (CustomerId.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(CustomerId); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(CreateCustomerRequest other) { + if (other == null) { + return; + } + if (other.Parent.Length != 0) { + Parent = other.Parent; + } + if (other.customer_ != null) { + if (customer_ == null) { + Customer = new global::Google.Cloud.CloudControlsPartner.V1Beta.Customer(); + } + Customer.MergeFrom(other.Customer); + } + if (other.CustomerId.Length != 0) { + CustomerId = other.CustomerId; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + Parent = input.ReadString(); + break; + } + case 18: { + if (customer_ == null) { + Customer = new global::Google.Cloud.CloudControlsPartner.V1Beta.Customer(); + } + input.ReadMessage(Customer); + break; + } + case 26: { + CustomerId = input.ReadString(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + Parent = input.ReadString(); + break; + } + case 18: { + if (customer_ == null) { + Customer = new global::Google.Cloud.CloudControlsPartner.V1Beta.Customer(); + } + input.ReadMessage(Customer); + break; + } + case 26: { + CustomerId = input.ReadString(); + break; + } + } + } + } + #endif + + } + /// /// Message for getting a customer /// @@ -1038,7 +1381,7 @@ public sealed partial class GetCustomerRequest : pb::IMessage + /// Request to update a customer + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class UpdateCustomerRequest : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new UpdateCustomerRequest()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Google.Cloud.CloudControlsPartner.V1Beta.CustomersReflection.Descriptor.MessageTypes[7]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public UpdateCustomerRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public UpdateCustomerRequest(UpdateCustomerRequest other) : this() { + customer_ = other.customer_ != null ? other.customer_.Clone() : null; + updateMask_ = other.updateMask_ != null ? other.updateMask_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public UpdateCustomerRequest Clone() { + return new UpdateCustomerRequest(this); + } + + /// Field number for the "customer" field. + public const int CustomerFieldNumber = 1; + private global::Google.Cloud.CloudControlsPartner.V1Beta.Customer customer_; + /// + /// Required. The customer to update + /// Format: + /// `organizations/{organization}/locations/{location}/customers/{customer}` + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Cloud.CloudControlsPartner.V1Beta.Customer Customer { + get { return customer_; } + set { + customer_ = value; + } + } + + /// Field number for the "update_mask" field. + public const int UpdateMaskFieldNumber = 2; + private global::Google.Protobuf.WellKnownTypes.FieldMask updateMask_; + /// + /// Optional. The list of fields to update + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Protobuf.WellKnownTypes.FieldMask UpdateMask { + get { return updateMask_; } + set { + updateMask_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as UpdateCustomerRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(UpdateCustomerRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(Customer, other.Customer)) return false; + if (!object.Equals(UpdateMask, other.UpdateMask)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (customer_ != null) hash ^= Customer.GetHashCode(); + if (updateMask_ != null) hash ^= UpdateMask.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (customer_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Customer); + } + if (updateMask_ != null) { + output.WriteRawTag(18); + output.WriteMessage(UpdateMask); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (customer_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Customer); + } + if (updateMask_ != null) { + output.WriteRawTag(18); + output.WriteMessage(UpdateMask); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (customer_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Customer); + } + if (updateMask_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(UpdateMask); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(UpdateCustomerRequest other) { + if (other == null) { + return; + } + if (other.customer_ != null) { + if (customer_ == null) { + Customer = new global::Google.Cloud.CloudControlsPartner.V1Beta.Customer(); + } + Customer.MergeFrom(other.Customer); + } + if (other.updateMask_ != null) { + if (updateMask_ == null) { + UpdateMask = new global::Google.Protobuf.WellKnownTypes.FieldMask(); + } + UpdateMask.MergeFrom(other.UpdateMask); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + if (customer_ == null) { + Customer = new global::Google.Cloud.CloudControlsPartner.V1Beta.Customer(); + } + input.ReadMessage(Customer); + break; + } + case 18: { + if (updateMask_ == null) { + UpdateMask = new global::Google.Protobuf.WellKnownTypes.FieldMask(); + } + input.ReadMessage(UpdateMask); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + if (customer_ == null) { + Customer = new global::Google.Cloud.CloudControlsPartner.V1Beta.Customer(); + } + input.ReadMessage(Customer); + break; + } + case 18: { + if (updateMask_ == null) { + UpdateMask = new global::Google.Protobuf.WellKnownTypes.FieldMask(); + } + input.ReadMessage(UpdateMask); + break; + } + } + } + } + #endif + + } + + /// + /// Message for deleting customer + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class DeleteCustomerRequest : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new DeleteCustomerRequest()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Google.Cloud.CloudControlsPartner.V1Beta.CustomersReflection.Descriptor.MessageTypes[8]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DeleteCustomerRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DeleteCustomerRequest(DeleteCustomerRequest other) : this() { + name_ = other.name_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DeleteCustomerRequest Clone() { + return new DeleteCustomerRequest(this); + } + + /// Field number for the "name" field. + public const int NameFieldNumber = 1; + private string name_ = ""; + /// + /// Required. name of the resource to be deleted + /// format: name=organizations/*/locations/*/customers/* + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Name { + get { return name_; } + set { + name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as DeleteCustomerRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(DeleteCustomerRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Name != other.Name) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Name.Length != 0) hash ^= Name.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Name.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Name); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Name.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Name); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Name.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(DeleteCustomerRequest other) { + if (other == null) { + return; + } + if (other.Name.Length != 0) { + Name = other.Name; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + Name = input.ReadString(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + Name = input.ReadString(); + break; + } + } + } + } + #endif + + } + #endregion } diff --git a/apis/Google.Cloud.CloudControlsPartner.V1Beta/Google.Cloud.CloudControlsPartner.V1Beta/CustomersResourceNames.g.cs b/apis/Google.Cloud.CloudControlsPartner.V1Beta/Google.Cloud.CloudControlsPartner.V1Beta/CustomersResourceNames.g.cs index da13ef8b9f50..3f2f48761db4 100644 --- a/apis/Google.Cloud.CloudControlsPartner.V1Beta/Google.Cloud.CloudControlsPartner.V1Beta/CustomersResourceNames.g.cs +++ b/apis/Google.Cloud.CloudControlsPartner.V1Beta/Google.Cloud.CloudControlsPartner.V1Beta/CustomersResourceNames.g.cs @@ -297,6 +297,18 @@ public OrganizationLocationName ParentAsOrganizationLocationName } } + public partial class CreateCustomerRequest + { + /// + /// -typed view over the resource name property. + /// + public OrganizationLocationName ParentAsOrganizationLocationName + { + get => string.IsNullOrEmpty(Parent) ? null : OrganizationLocationName.Parse(Parent, allowUnparsed: true); + set => Parent = value?.ToString() ?? ""; + } + } + public partial class GetCustomerRequest { /// @@ -308,4 +320,16 @@ public partial class GetCustomerRequest set => Name = value?.ToString() ?? ""; } } + + public partial class DeleteCustomerRequest + { + /// + /// -typed view over the resource name property. + /// + public gccv::CustomerName CustomerName + { + get => string.IsNullOrEmpty(Name) ? null : gccv::CustomerName.Parse(Name, allowUnparsed: true); + set => Name = value?.ToString() ?? ""; + } + } } diff --git a/apis/Google.Cloud.CloudControlsPartner.V1Beta/Google.Cloud.CloudControlsPartner.V1Beta/Partners.g.cs b/apis/Google.Cloud.CloudControlsPartner.V1Beta/Google.Cloud.CloudControlsPartner.V1Beta/Partners.g.cs index 44e66511cee0..eee43a06026b 100644 --- a/apis/Google.Cloud.CloudControlsPartner.V1Beta/Google.Cloud.CloudControlsPartner.V1Beta/Partners.g.cs +++ b/apis/Google.Cloud.CloudControlsPartner.V1Beta/Google.Cloud.CloudControlsPartner.V1Beta/Partners.g.cs @@ -41,19 +41,19 @@ static PartnersReflection() { "fS9wYXJ0bmVyMgdwYXJ0bmVyIlYKEUdldFBhcnRuZXJSZXF1ZXN0EkEKBG5h", "bWUYASABKAlCM+BBAvpBLQorY2xvdWRjb250cm9sc3BhcnRuZXIuZ29vZ2xl", "YXBpcy5jb20vUGFydG5lciInCgNTa3USCgoCaWQYASABKAkSFAoMZGlzcGxh", - "eV9uYW1lGAIgASgJIuABCgtFa21NZXRhZGF0YRJXCgxla21fc29sdXRpb24Y", + "eV9uYW1lGAIgASgJIuQBCgtFa21NZXRhZGF0YRJXCgxla21fc29sdXRpb24Y", "ASABKA4yQS5nb29nbGUuY2xvdWQuY2xvdWRjb250cm9sc3BhcnRuZXIudjFi", "ZXRhLkVrbU1ldGFkYXRhLkVrbVNvbHV0aW9uEhgKEGVrbV9lbmRwb2ludF91", - "cmkYAiABKAkiXgoLRWttU29sdXRpb24SHAoYRUtNX1NPTFVUSU9OX1VOU1BF", + "cmkYAiABKAkiYgoLRWttU29sdXRpb24SHAoYRUtNX1NPTFVUSU9OX1VOU1BF", "Q0lGSUVEEAASDAoIRk9SVEFOSVgQARILCgdGVVRVUkVYEAISCgoGVEhBTEVT", - "EAMSCgoGVklSVFJVEARCpQIKLGNvbS5nb29nbGUuY2xvdWQuY2xvdWRjb250", - "cm9sc3BhcnRuZXIudjFiZXRhQg1QYXJ0bmVyc1Byb3RvUAFaYGNsb3VkLmdv", - "b2dsZS5jb20vZ28vY2xvdWRjb250cm9sc3BhcnRuZXIvYXBpdjFiZXRhL2Ns", - "b3VkY29udHJvbHNwYXJ0bmVycGI7Y2xvdWRjb250cm9sc3BhcnRuZXJwYqoC", - "KEdvb2dsZS5DbG91ZC5DbG91ZENvbnRyb2xzUGFydG5lci5WMUJldGHKAihH", - "b29nbGVcQ2xvdWRcQ2xvdWRDb250cm9sc1BhcnRuZXJcVjFiZXRh6gIrR29v", - "Z2xlOjpDbG91ZDo6Q2xvdWRDb250cm9sc1BhcnRuZXI6OlYxYmV0YWIGcHJv", - "dG8z")); + "EAMSDgoGVklSVFJVEAQaAggBQqUCCixjb20uZ29vZ2xlLmNsb3VkLmNsb3Vk", + "Y29udHJvbHNwYXJ0bmVyLnYxYmV0YUINUGFydG5lcnNQcm90b1ABWmBjbG91", + "ZC5nb29nbGUuY29tL2dvL2Nsb3VkY29udHJvbHNwYXJ0bmVyL2FwaXYxYmV0", + "YS9jbG91ZGNvbnRyb2xzcGFydG5lcnBiO2Nsb3VkY29udHJvbHNwYXJ0bmVy", + "cGKqAihHb29nbGUuQ2xvdWQuQ2xvdWRDb250cm9sc1BhcnRuZXIuVjFCZXRh", + "ygIoR29vZ2xlXENsb3VkXENsb3VkQ29udHJvbHNQYXJ0bmVyXFYxYmV0YeoC", + "K0dvb2dsZTo6Q2xvdWQ6OkNsb3VkQ29udHJvbHNQYXJ0bmVyOjpWMWJldGFi", + "BnByb3RvMw==")); descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, new pbr::FileDescriptor[] { global::Google.Api.FieldBehaviorReflection.Descriptor, global::Google.Api.ResourceReflection.Descriptor, global::Google.Protobuf.WellKnownTypes.TimestampReflection.Descriptor, }, new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { @@ -1193,8 +1193,9 @@ public enum EkmSolution { /// [pbr::OriginalName("THALES")] Thales = 3, /// - /// EKM Partner Virtu + /// This enum value is never used. /// + [global::System.ObsoleteAttribute] [pbr::OriginalName("VIRTRU")] Virtru = 4, } diff --git a/apis/Google.Cloud.CloudControlsPartner.V1Beta/gapic_metadata.json b/apis/Google.Cloud.CloudControlsPartner.V1Beta/gapic_metadata.json index 44d20b0b085f..741248d44579 100644 --- a/apis/Google.Cloud.CloudControlsPartner.V1Beta/gapic_metadata.json +++ b/apis/Google.Cloud.CloudControlsPartner.V1Beta/gapic_metadata.json @@ -10,6 +10,18 @@ "grpc": { "libraryClient": "CloudControlsPartnerCoreClient", "rpcs": { + "CreateCustomer": { + "methods": [ + "CreateCustomer", + "CreateCustomerAsync" + ] + }, + "DeleteCustomer": { + "methods": [ + "DeleteCustomer", + "DeleteCustomerAsync" + ] + }, "GetCustomer": { "methods": [ "GetCustomer", @@ -57,6 +69,12 @@ "ListWorkloads", "ListWorkloadsAsync" ] + }, + "UpdateCustomer": { + "methods": [ + "UpdateCustomer", + "UpdateCustomerAsync" + ] } } }