forked from googleapis/google-cloud-dotnet
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Add import / export IssueModel
feat: Add CMEK InitializeLroSpec feat: Add metadata import to IngestConversations feat: Add sampling to IngestConversations docs: Add a comment for valid `order_by` values in ListConversations docs: Add a comment for valid `update_mask` values in UpdateConversation PiperOrigin-RevId: 683188578 Source-Link: googleapis/googleapis@d0eeab3 Source-Link: googleapis/googleapis-gen@4d5b300 Copy-Tag: eyJwIjoiYXBpcy9Hb29nbGUuQ2xvdWQuQ29udGFjdENlbnRlckluc2lnaHRzLlYxLy5Pd2xCb3QueWFtbCIsImgiOiI0ZDViMzAwYTcyNDljZTI0Mjc4ZmJlNzdjMTY5ODNhMDZkNmU0YTVkIn0=
- Loading branch information
1 parent
2e16e74
commit 8b67ba5
Showing
35 changed files
with
11,243 additions
and
2,730 deletions.
There are no files selected for viewing
61 changes: 61 additions & 0 deletions
61
...sights.V1.GeneratedSnippets/ContactCenterInsightsClient.ExportIssueModelAsyncSnippet.g.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
// Copyright 2024 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 contactcenterinsights_v1_generated_ContactCenterInsights_ExportIssueModel_async_flattened] | ||
using Google.Cloud.ContactCenterInsights.V1; | ||
using Google.LongRunning; | ||
using System.Threading.Tasks; | ||
|
||
public sealed partial class GeneratedContactCenterInsightsClientSnippets | ||
{ | ||
/// <summary>Snippet for ExportIssueModelAsync</summary> | ||
/// <remarks> | ||
/// 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. | ||
/// </remarks> | ||
public async Task ExportIssueModelAsync() | ||
{ | ||
// Create client | ||
ContactCenterInsightsClient contactCenterInsightsClient = await ContactCenterInsightsClient.CreateAsync(); | ||
// Initialize request argument(s) | ||
string name = "projects/[PROJECT]/locations/[LOCATION]/issueModels/[ISSUE_MODEL]"; | ||
// Make the request | ||
Operation<ExportIssueModelResponse, ExportIssueModelMetadata> response = await contactCenterInsightsClient.ExportIssueModelAsync(name); | ||
|
||
// Poll until the returned long-running operation is complete | ||
Operation<ExportIssueModelResponse, ExportIssueModelMetadata> completedResponse = await response.PollUntilCompletedAsync(); | ||
// Retrieve the operation result | ||
ExportIssueModelResponse result = completedResponse.Result; | ||
|
||
// Or get the name of the operation | ||
string operationName = response.Name; | ||
// This name can be stored, then the long-running operation retrieved later by name | ||
Operation<ExportIssueModelResponse, ExportIssueModelMetadata> retrievedResponse = await contactCenterInsightsClient.PollOnceExportIssueModelAsync(operationName); | ||
// Check if the retrieved long-running operation has completed | ||
if (retrievedResponse.IsCompleted) | ||
{ | ||
// If it has completed, then access the result | ||
ExportIssueModelResponse retrievedResult = retrievedResponse.Result; | ||
} | ||
} | ||
} | ||
// [END contactcenterinsights_v1_generated_ContactCenterInsights_ExportIssueModel_async_flattened] | ||
} |
65 changes: 65 additions & 0 deletions
65
...eratedSnippets/ContactCenterInsightsClient.ExportIssueModelRequestObjectAsyncSnippet.g.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
// Copyright 2024 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 contactcenterinsights_v1_generated_ContactCenterInsights_ExportIssueModel_async] | ||
using Google.Cloud.ContactCenterInsights.V1; | ||
using Google.LongRunning; | ||
using System.Threading.Tasks; | ||
|
||
public sealed partial class GeneratedContactCenterInsightsClientSnippets | ||
{ | ||
/// <summary>Snippet for ExportIssueModelAsync</summary> | ||
/// <remarks> | ||
/// 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. | ||
/// </remarks> | ||
public async Task ExportIssueModelRequestObjectAsync() | ||
{ | ||
// Create client | ||
ContactCenterInsightsClient contactCenterInsightsClient = await ContactCenterInsightsClient.CreateAsync(); | ||
// Initialize request argument(s) | ||
ExportIssueModelRequest request = new ExportIssueModelRequest | ||
{ | ||
IssueModelName = IssueModelName.FromProjectLocationIssueModel("[PROJECT]", "[LOCATION]", "[ISSUE_MODEL]"), | ||
GcsDestination = new ExportIssueModelRequest.Types.GcsDestination(), | ||
}; | ||
// Make the request | ||
Operation<ExportIssueModelResponse, ExportIssueModelMetadata> response = await contactCenterInsightsClient.ExportIssueModelAsync(request); | ||
|
||
// Poll until the returned long-running operation is complete | ||
Operation<ExportIssueModelResponse, ExportIssueModelMetadata> completedResponse = await response.PollUntilCompletedAsync(); | ||
// Retrieve the operation result | ||
ExportIssueModelResponse result = completedResponse.Result; | ||
|
||
// Or get the name of the operation | ||
string operationName = response.Name; | ||
// This name can be stored, then the long-running operation retrieved later by name | ||
Operation<ExportIssueModelResponse, ExportIssueModelMetadata> retrievedResponse = await contactCenterInsightsClient.PollOnceExportIssueModelAsync(operationName); | ||
// Check if the retrieved long-running operation has completed | ||
if (retrievedResponse.IsCompleted) | ||
{ | ||
// If it has completed, then access the result | ||
ExportIssueModelResponse retrievedResult = retrievedResponse.Result; | ||
} | ||
} | ||
} | ||
// [END contactcenterinsights_v1_generated_ContactCenterInsights_ExportIssueModel_async] | ||
} |
64 changes: 64 additions & 0 deletions
64
...1.GeneratedSnippets/ContactCenterInsightsClient.ExportIssueModelRequestObjectSnippet.g.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
// Copyright 2024 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 contactcenterinsights_v1_generated_ContactCenterInsights_ExportIssueModel_sync] | ||
using Google.Cloud.ContactCenterInsights.V1; | ||
using Google.LongRunning; | ||
|
||
public sealed partial class GeneratedContactCenterInsightsClientSnippets | ||
{ | ||
/// <summary>Snippet for ExportIssueModel</summary> | ||
/// <remarks> | ||
/// 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. | ||
/// </remarks> | ||
public void ExportIssueModelRequestObject() | ||
{ | ||
// Create client | ||
ContactCenterInsightsClient contactCenterInsightsClient = ContactCenterInsightsClient.Create(); | ||
// Initialize request argument(s) | ||
ExportIssueModelRequest request = new ExportIssueModelRequest | ||
{ | ||
IssueModelName = IssueModelName.FromProjectLocationIssueModel("[PROJECT]", "[LOCATION]", "[ISSUE_MODEL]"), | ||
GcsDestination = new ExportIssueModelRequest.Types.GcsDestination(), | ||
}; | ||
// Make the request | ||
Operation<ExportIssueModelResponse, ExportIssueModelMetadata> response = contactCenterInsightsClient.ExportIssueModel(request); | ||
|
||
// Poll until the returned long-running operation is complete | ||
Operation<ExportIssueModelResponse, ExportIssueModelMetadata> completedResponse = response.PollUntilCompleted(); | ||
// Retrieve the operation result | ||
ExportIssueModelResponse result = completedResponse.Result; | ||
|
||
// Or get the name of the operation | ||
string operationName = response.Name; | ||
// This name can be stored, then the long-running operation retrieved later by name | ||
Operation<ExportIssueModelResponse, ExportIssueModelMetadata> retrievedResponse = contactCenterInsightsClient.PollOnceExportIssueModel(operationName); | ||
// Check if the retrieved long-running operation has completed | ||
if (retrievedResponse.IsCompleted) | ||
{ | ||
// If it has completed, then access the result | ||
ExportIssueModelResponse retrievedResult = retrievedResponse.Result; | ||
} | ||
} | ||
} | ||
// [END contactcenterinsights_v1_generated_ContactCenterInsights_ExportIssueModel_sync] | ||
} |
61 changes: 61 additions & 0 deletions
61
...eratedSnippets/ContactCenterInsightsClient.ExportIssueModelResourceNamesAsyncSnippet.g.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
// Copyright 2024 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 contactcenterinsights_v1_generated_ContactCenterInsights_ExportIssueModel_async_flattened_resourceNames] | ||
using Google.Cloud.ContactCenterInsights.V1; | ||
using Google.LongRunning; | ||
using System.Threading.Tasks; | ||
|
||
public sealed partial class GeneratedContactCenterInsightsClientSnippets | ||
{ | ||
/// <summary>Snippet for ExportIssueModelAsync</summary> | ||
/// <remarks> | ||
/// 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. | ||
/// </remarks> | ||
public async Task ExportIssueModelResourceNamesAsync() | ||
{ | ||
// Create client | ||
ContactCenterInsightsClient contactCenterInsightsClient = await ContactCenterInsightsClient.CreateAsync(); | ||
// Initialize request argument(s) | ||
IssueModelName name = IssueModelName.FromProjectLocationIssueModel("[PROJECT]", "[LOCATION]", "[ISSUE_MODEL]"); | ||
// Make the request | ||
Operation<ExportIssueModelResponse, ExportIssueModelMetadata> response = await contactCenterInsightsClient.ExportIssueModelAsync(name); | ||
|
||
// Poll until the returned long-running operation is complete | ||
Operation<ExportIssueModelResponse, ExportIssueModelMetadata> completedResponse = await response.PollUntilCompletedAsync(); | ||
// Retrieve the operation result | ||
ExportIssueModelResponse result = completedResponse.Result; | ||
|
||
// Or get the name of the operation | ||
string operationName = response.Name; | ||
// This name can be stored, then the long-running operation retrieved later by name | ||
Operation<ExportIssueModelResponse, ExportIssueModelMetadata> retrievedResponse = await contactCenterInsightsClient.PollOnceExportIssueModelAsync(operationName); | ||
// Check if the retrieved long-running operation has completed | ||
if (retrievedResponse.IsCompleted) | ||
{ | ||
// If it has completed, then access the result | ||
ExportIssueModelResponse retrievedResult = retrievedResponse.Result; | ||
} | ||
} | ||
} | ||
// [END contactcenterinsights_v1_generated_ContactCenterInsights_ExportIssueModel_async_flattened_resourceNames] | ||
} |
60 changes: 60 additions & 0 deletions
60
...1.GeneratedSnippets/ContactCenterInsightsClient.ExportIssueModelResourceNamesSnippet.g.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
// Copyright 2024 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 contactcenterinsights_v1_generated_ContactCenterInsights_ExportIssueModel_sync_flattened_resourceNames] | ||
using Google.Cloud.ContactCenterInsights.V1; | ||
using Google.LongRunning; | ||
|
||
public sealed partial class GeneratedContactCenterInsightsClientSnippets | ||
{ | ||
/// <summary>Snippet for ExportIssueModel</summary> | ||
/// <remarks> | ||
/// 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. | ||
/// </remarks> | ||
public void ExportIssueModelResourceNames() | ||
{ | ||
// Create client | ||
ContactCenterInsightsClient contactCenterInsightsClient = ContactCenterInsightsClient.Create(); | ||
// Initialize request argument(s) | ||
IssueModelName name = IssueModelName.FromProjectLocationIssueModel("[PROJECT]", "[LOCATION]", "[ISSUE_MODEL]"); | ||
// Make the request | ||
Operation<ExportIssueModelResponse, ExportIssueModelMetadata> response = contactCenterInsightsClient.ExportIssueModel(name); | ||
|
||
// Poll until the returned long-running operation is complete | ||
Operation<ExportIssueModelResponse, ExportIssueModelMetadata> completedResponse = response.PollUntilCompleted(); | ||
// Retrieve the operation result | ||
ExportIssueModelResponse result = completedResponse.Result; | ||
|
||
// Or get the name of the operation | ||
string operationName = response.Name; | ||
// This name can be stored, then the long-running operation retrieved later by name | ||
Operation<ExportIssueModelResponse, ExportIssueModelMetadata> retrievedResponse = contactCenterInsightsClient.PollOnceExportIssueModel(operationName); | ||
// Check if the retrieved long-running operation has completed | ||
if (retrievedResponse.IsCompleted) | ||
{ | ||
// If it has completed, then access the result | ||
ExportIssueModelResponse retrievedResult = retrievedResponse.Result; | ||
} | ||
} | ||
} | ||
// [END contactcenterinsights_v1_generated_ContactCenterInsights_ExportIssueModel_sync_flattened_resourceNames] | ||
} |
60 changes: 60 additions & 0 deletions
60
...terInsights.V1.GeneratedSnippets/ContactCenterInsightsClient.ExportIssueModelSnippet.g.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
// Copyright 2024 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 contactcenterinsights_v1_generated_ContactCenterInsights_ExportIssueModel_sync_flattened] | ||
using Google.Cloud.ContactCenterInsights.V1; | ||
using Google.LongRunning; | ||
|
||
public sealed partial class GeneratedContactCenterInsightsClientSnippets | ||
{ | ||
/// <summary>Snippet for ExportIssueModel</summary> | ||
/// <remarks> | ||
/// 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. | ||
/// </remarks> | ||
public void ExportIssueModel() | ||
{ | ||
// Create client | ||
ContactCenterInsightsClient contactCenterInsightsClient = ContactCenterInsightsClient.Create(); | ||
// Initialize request argument(s) | ||
string name = "projects/[PROJECT]/locations/[LOCATION]/issueModels/[ISSUE_MODEL]"; | ||
// Make the request | ||
Operation<ExportIssueModelResponse, ExportIssueModelMetadata> response = contactCenterInsightsClient.ExportIssueModel(name); | ||
|
||
// Poll until the returned long-running operation is complete | ||
Operation<ExportIssueModelResponse, ExportIssueModelMetadata> completedResponse = response.PollUntilCompleted(); | ||
// Retrieve the operation result | ||
ExportIssueModelResponse result = completedResponse.Result; | ||
|
||
// Or get the name of the operation | ||
string operationName = response.Name; | ||
// This name can be stored, then the long-running operation retrieved later by name | ||
Operation<ExportIssueModelResponse, ExportIssueModelMetadata> retrievedResponse = contactCenterInsightsClient.PollOnceExportIssueModel(operationName); | ||
// Check if the retrieved long-running operation has completed | ||
if (retrievedResponse.IsCompleted) | ||
{ | ||
// If it has completed, then access the result | ||
ExportIssueModelResponse retrievedResult = retrievedResponse.Result; | ||
} | ||
} | ||
} | ||
// [END contactcenterinsights_v1_generated_ContactCenterInsights_ExportIssueModel_sync_flattened] | ||
} |
Oops, something went wrong.