-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: use gapic-generator-python 0.63.2 (#131)
* chore: use gapic-generator-python 0.63.2 docs: add generated snippets PiperOrigin-RevId: 427792504 Source-Link: googleapis/googleapis@55b9e1e Source-Link: googleapis/googleapis-gen@bf4e86b Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiYmY0ZTg2Yjc1M2Y0MmNiMGVkYjFmZDUxZmJlODQwZDdkYTBhMWNkZSJ9 * 🦉 Updates from OwlBot See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
- Loading branch information
1 parent
8686472
commit 8d6039b
Showing
71 changed files
with
7,504 additions
and
0 deletions.
There are no files selected for viewing
672 changes: 672 additions & 0 deletions
672
.../google/cloud/contact_center_insights_v1/services/contact_center_insights/async_client.py
Large diffs are not rendered by default.
Oops, something went wrong.
706 changes: 706 additions & 0 deletions
706
...sights/google/cloud/contact_center_insights_v1/services/contact_center_insights/client.py
Large diffs are not rendered by default.
Oops, something went wrong.
45 changes: 45 additions & 0 deletions
45
...d_contact_center_insights_v1_contact_center_insights_calculate_issue_model_stats_async.py
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,45 @@ | ||
# -*- coding: utf-8 -*- | ||
# Copyright 2020 Google LLC | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
# You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
# | ||
# Generated code. DO NOT EDIT! | ||
# | ||
# Snippet for CalculateIssueModelStats | ||
# NOTE: This snippet has been automatically generated for illustrative purposes only. | ||
# It may require modifications to work in your environment. | ||
|
||
# To install the latest published package dependency, execute the following: | ||
# python3 -m pip install google-cloud-contact-center-insights | ||
|
||
|
||
# [START contactcenterinsights_generated_contact_center_insights_v1_ContactCenterInsights_CalculateIssueModelStats_async] | ||
from google.cloud import contact_center_insights_v1 | ||
|
||
|
||
async def sample_calculate_issue_model_stats(): | ||
# Create a client | ||
client = contact_center_insights_v1.ContactCenterInsightsAsyncClient() | ||
|
||
# Initialize request argument(s) | ||
request = contact_center_insights_v1.CalculateIssueModelStatsRequest( | ||
issue_model="issue_model_value", | ||
) | ||
|
||
# Make the request | ||
response = await client.calculate_issue_model_stats(request=request) | ||
|
||
# Handle the response | ||
print(response) | ||
|
||
# [END contactcenterinsights_generated_contact_center_insights_v1_ContactCenterInsights_CalculateIssueModelStats_async] |
45 changes: 45 additions & 0 deletions
45
...ed_contact_center_insights_v1_contact_center_insights_calculate_issue_model_stats_sync.py
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,45 @@ | ||
# -*- coding: utf-8 -*- | ||
# Copyright 2020 Google LLC | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
# You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
# | ||
# Generated code. DO NOT EDIT! | ||
# | ||
# Snippet for CalculateIssueModelStats | ||
# NOTE: This snippet has been automatically generated for illustrative purposes only. | ||
# It may require modifications to work in your environment. | ||
|
||
# To install the latest published package dependency, execute the following: | ||
# python3 -m pip install google-cloud-contact-center-insights | ||
|
||
|
||
# [START contactcenterinsights_generated_contact_center_insights_v1_ContactCenterInsights_CalculateIssueModelStats_sync] | ||
from google.cloud import contact_center_insights_v1 | ||
|
||
|
||
def sample_calculate_issue_model_stats(): | ||
# Create a client | ||
client = contact_center_insights_v1.ContactCenterInsightsClient() | ||
|
||
# Initialize request argument(s) | ||
request = contact_center_insights_v1.CalculateIssueModelStatsRequest( | ||
issue_model="issue_model_value", | ||
) | ||
|
||
# Make the request | ||
response = client.calculate_issue_model_stats(request=request) | ||
|
||
# Handle the response | ||
print(response) | ||
|
||
# [END contactcenterinsights_generated_contact_center_insights_v1_ContactCenterInsights_CalculateIssueModelStats_sync] |
45 changes: 45 additions & 0 deletions
45
...hts_generated_contact_center_insights_v1_contact_center_insights_calculate_stats_async.py
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,45 @@ | ||
# -*- coding: utf-8 -*- | ||
# Copyright 2020 Google LLC | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
# You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
# | ||
# Generated code. DO NOT EDIT! | ||
# | ||
# Snippet for CalculateStats | ||
# NOTE: This snippet has been automatically generated for illustrative purposes only. | ||
# It may require modifications to work in your environment. | ||
|
||
# To install the latest published package dependency, execute the following: | ||
# python3 -m pip install google-cloud-contact-center-insights | ||
|
||
|
||
# [START contactcenterinsights_generated_contact_center_insights_v1_ContactCenterInsights_CalculateStats_async] | ||
from google.cloud import contact_center_insights_v1 | ||
|
||
|
||
async def sample_calculate_stats(): | ||
# Create a client | ||
client = contact_center_insights_v1.ContactCenterInsightsAsyncClient() | ||
|
||
# Initialize request argument(s) | ||
request = contact_center_insights_v1.CalculateStatsRequest( | ||
location="location_value", | ||
) | ||
|
||
# Make the request | ||
response = await client.calculate_stats(request=request) | ||
|
||
# Handle the response | ||
print(response) | ||
|
||
# [END contactcenterinsights_generated_contact_center_insights_v1_ContactCenterInsights_CalculateStats_async] |
45 changes: 45 additions & 0 deletions
45
...ghts_generated_contact_center_insights_v1_contact_center_insights_calculate_stats_sync.py
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,45 @@ | ||
# -*- coding: utf-8 -*- | ||
# Copyright 2020 Google LLC | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
# You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
# | ||
# Generated code. DO NOT EDIT! | ||
# | ||
# Snippet for CalculateStats | ||
# NOTE: This snippet has been automatically generated for illustrative purposes only. | ||
# It may require modifications to work in your environment. | ||
|
||
# To install the latest published package dependency, execute the following: | ||
# python3 -m pip install google-cloud-contact-center-insights | ||
|
||
|
||
# [START contactcenterinsights_generated_contact_center_insights_v1_ContactCenterInsights_CalculateStats_sync] | ||
from google.cloud import contact_center_insights_v1 | ||
|
||
|
||
def sample_calculate_stats(): | ||
# Create a client | ||
client = contact_center_insights_v1.ContactCenterInsightsClient() | ||
|
||
# Initialize request argument(s) | ||
request = contact_center_insights_v1.CalculateStatsRequest( | ||
location="location_value", | ||
) | ||
|
||
# Make the request | ||
response = client.calculate_stats(request=request) | ||
|
||
# Handle the response | ||
print(response) | ||
|
||
# [END contactcenterinsights_generated_contact_center_insights_v1_ContactCenterInsights_CalculateStats_sync] |
49 changes: 49 additions & 0 deletions
49
...hts_generated_contact_center_insights_v1_contact_center_insights_create_analysis_async.py
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,49 @@ | ||
# -*- coding: utf-8 -*- | ||
# Copyright 2020 Google LLC | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
# You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
# | ||
# Generated code. DO NOT EDIT! | ||
# | ||
# Snippet for CreateAnalysis | ||
# NOTE: This snippet has been automatically generated for illustrative purposes only. | ||
# It may require modifications to work in your environment. | ||
|
||
# To install the latest published package dependency, execute the following: | ||
# python3 -m pip install google-cloud-contact-center-insights | ||
|
||
|
||
# [START contactcenterinsights_generated_contact_center_insights_v1_ContactCenterInsights_CreateAnalysis_async] | ||
from google.cloud import contact_center_insights_v1 | ||
|
||
|
||
async def sample_create_analysis(): | ||
# Create a client | ||
client = contact_center_insights_v1.ContactCenterInsightsAsyncClient() | ||
|
||
# Initialize request argument(s) | ||
request = contact_center_insights_v1.CreateAnalysisRequest( | ||
parent="parent_value", | ||
) | ||
|
||
# Make the request | ||
operation = client.create_analysis(request=request) | ||
|
||
print("Waiting for operation to complete...") | ||
|
||
response = await operation.result() | ||
|
||
# Handle the response | ||
print(response) | ||
|
||
# [END contactcenterinsights_generated_contact_center_insights_v1_ContactCenterInsights_CreateAnalysis_async] |
49 changes: 49 additions & 0 deletions
49
...ghts_generated_contact_center_insights_v1_contact_center_insights_create_analysis_sync.py
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,49 @@ | ||
# -*- coding: utf-8 -*- | ||
# Copyright 2020 Google LLC | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
# You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
# | ||
# Generated code. DO NOT EDIT! | ||
# | ||
# Snippet for CreateAnalysis | ||
# NOTE: This snippet has been automatically generated for illustrative purposes only. | ||
# It may require modifications to work in your environment. | ||
|
||
# To install the latest published package dependency, execute the following: | ||
# python3 -m pip install google-cloud-contact-center-insights | ||
|
||
|
||
# [START contactcenterinsights_generated_contact_center_insights_v1_ContactCenterInsights_CreateAnalysis_sync] | ||
from google.cloud import contact_center_insights_v1 | ||
|
||
|
||
def sample_create_analysis(): | ||
# Create a client | ||
client = contact_center_insights_v1.ContactCenterInsightsClient() | ||
|
||
# Initialize request argument(s) | ||
request = contact_center_insights_v1.CreateAnalysisRequest( | ||
parent="parent_value", | ||
) | ||
|
||
# Make the request | ||
operation = client.create_analysis(request=request) | ||
|
||
print("Waiting for operation to complete...") | ||
|
||
response = operation.result() | ||
|
||
# Handle the response | ||
print(response) | ||
|
||
# [END contactcenterinsights_generated_contact_center_insights_v1_ContactCenterInsights_CreateAnalysis_sync] |
45 changes: 45 additions & 0 deletions
45
...generated_contact_center_insights_v1_contact_center_insights_create_conversation_async.py
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,45 @@ | ||
# -*- coding: utf-8 -*- | ||
# Copyright 2020 Google LLC | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
# You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
# | ||
# Generated code. DO NOT EDIT! | ||
# | ||
# Snippet for CreateConversation | ||
# NOTE: This snippet has been automatically generated for illustrative purposes only. | ||
# It may require modifications to work in your environment. | ||
|
||
# To install the latest published package dependency, execute the following: | ||
# python3 -m pip install google-cloud-contact-center-insights | ||
|
||
|
||
# [START contactcenterinsights_generated_contact_center_insights_v1_ContactCenterInsights_CreateConversation_async] | ||
from google.cloud import contact_center_insights_v1 | ||
|
||
|
||
async def sample_create_conversation(): | ||
# Create a client | ||
client = contact_center_insights_v1.ContactCenterInsightsAsyncClient() | ||
|
||
# Initialize request argument(s) | ||
request = contact_center_insights_v1.CreateConversationRequest( | ||
parent="parent_value", | ||
) | ||
|
||
# Make the request | ||
response = await client.create_conversation(request=request) | ||
|
||
# Handle the response | ||
print(response) | ||
|
||
# [END contactcenterinsights_generated_contact_center_insights_v1_ContactCenterInsights_CreateConversation_async] |
45 changes: 45 additions & 0 deletions
45
..._generated_contact_center_insights_v1_contact_center_insights_create_conversation_sync.py
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,45 @@ | ||
# -*- coding: utf-8 -*- | ||
# Copyright 2020 Google LLC | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
# You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
# | ||
# Generated code. DO NOT EDIT! | ||
# | ||
# Snippet for CreateConversation | ||
# NOTE: This snippet has been automatically generated for illustrative purposes only. | ||
# It may require modifications to work in your environment. | ||
|
||
# To install the latest published package dependency, execute the following: | ||
# python3 -m pip install google-cloud-contact-center-insights | ||
|
||
|
||
# [START contactcenterinsights_generated_contact_center_insights_v1_ContactCenterInsights_CreateConversation_sync] | ||
from google.cloud import contact_center_insights_v1 | ||
|
||
|
||
def sample_create_conversation(): | ||
# Create a client | ||
client = contact_center_insights_v1.ContactCenterInsightsClient() | ||
|
||
# Initialize request argument(s) | ||
request = contact_center_insights_v1.CreateConversationRequest( | ||
parent="parent_value", | ||
) | ||
|
||
# Make the request | ||
response = client.create_conversation(request=request) | ||
|
||
# Handle the response | ||
print(response) | ||
|
||
# [END contactcenterinsights_generated_contact_center_insights_v1_ContactCenterInsights_CreateConversation_sync] |
Oops, something went wrong.