-
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.4 (#152)
* chore: use gapic-generator-python 0.63.4 chore: fix snippet region tag format chore: fix docstring code block formatting PiperOrigin-RevId: 430730865 Source-Link: googleapis/googleapis@ea58002 Source-Link: googleapis/googleapis-gen@ca893ff Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiY2E4OTNmZjhhZjI1ZmM3ZmUwMDFkZTE0MDVhNTE3ZDgwNDQ2ZWNjYSJ9 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * chore: copy generated_samples dir Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com> Co-authored-by: Bu Sun Kim <busunkim@google.com>
- Loading branch information
1 parent
687b102
commit bc8c78c
Showing
14 changed files
with
918 additions
and
15 deletions.
There are no files selected for viewing
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
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
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
49 changes: 49 additions & 0 deletions
49
...es/generated_samples/monitoring_v1_generated_dashboards_service_create_dashboard_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 CreateDashboard | ||
# 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-monitoring-dashboard | ||
|
||
|
||
# [START monitoring_v1_generated_DashboardsService_CreateDashboard_async] | ||
from google.monitoring import dashboard_v1 | ||
|
||
|
||
async def sample_create_dashboard(): | ||
# Create a client | ||
client = dashboard_v1.DashboardsServiceAsyncClient() | ||
|
||
# Initialize request argument(s) | ||
dashboard = dashboard_v1.Dashboard() | ||
dashboard.display_name = "display_name_value" | ||
|
||
request = dashboard_v1.CreateDashboardRequest( | ||
parent="parent_value", | ||
dashboard=dashboard, | ||
) | ||
|
||
# Make the request | ||
response = await client.create_dashboard(request=request) | ||
|
||
# Handle the response | ||
print(response) | ||
|
||
# [END monitoring_v1_generated_DashboardsService_CreateDashboard_async] |
49 changes: 49 additions & 0 deletions
49
...les/generated_samples/monitoring_v1_generated_dashboards_service_create_dashboard_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 CreateDashboard | ||
# 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-monitoring-dashboard | ||
|
||
|
||
# [START monitoring_v1_generated_DashboardsService_CreateDashboard_sync] | ||
from google.monitoring import dashboard_v1 | ||
|
||
|
||
def sample_create_dashboard(): | ||
# Create a client | ||
client = dashboard_v1.DashboardsServiceClient() | ||
|
||
# Initialize request argument(s) | ||
dashboard = dashboard_v1.Dashboard() | ||
dashboard.display_name = "display_name_value" | ||
|
||
request = dashboard_v1.CreateDashboardRequest( | ||
parent="parent_value", | ||
dashboard=dashboard, | ||
) | ||
|
||
# Make the request | ||
response = client.create_dashboard(request=request) | ||
|
||
# Handle the response | ||
print(response) | ||
|
||
# [END monitoring_v1_generated_DashboardsService_CreateDashboard_sync] |
43 changes: 43 additions & 0 deletions
43
...es/generated_samples/monitoring_v1_generated_dashboards_service_delete_dashboard_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,43 @@ | ||
# -*- 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 DeleteDashboard | ||
# 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-monitoring-dashboard | ||
|
||
|
||
# [START monitoring_v1_generated_DashboardsService_DeleteDashboard_async] | ||
from google.monitoring import dashboard_v1 | ||
|
||
|
||
async def sample_delete_dashboard(): | ||
# Create a client | ||
client = dashboard_v1.DashboardsServiceAsyncClient() | ||
|
||
# Initialize request argument(s) | ||
request = dashboard_v1.DeleteDashboardRequest( | ||
name="name_value", | ||
) | ||
|
||
# Make the request | ||
await client.delete_dashboard(request=request) | ||
|
||
|
||
# [END monitoring_v1_generated_DashboardsService_DeleteDashboard_async] |
43 changes: 43 additions & 0 deletions
43
...les/generated_samples/monitoring_v1_generated_dashboards_service_delete_dashboard_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,43 @@ | ||
# -*- 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 DeleteDashboard | ||
# 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-monitoring-dashboard | ||
|
||
|
||
# [START monitoring_v1_generated_DashboardsService_DeleteDashboard_sync] | ||
from google.monitoring import dashboard_v1 | ||
|
||
|
||
def sample_delete_dashboard(): | ||
# Create a client | ||
client = dashboard_v1.DashboardsServiceClient() | ||
|
||
# Initialize request argument(s) | ||
request = dashboard_v1.DeleteDashboardRequest( | ||
name="name_value", | ||
) | ||
|
||
# Make the request | ||
client.delete_dashboard(request=request) | ||
|
||
|
||
# [END monitoring_v1_generated_DashboardsService_DeleteDashboard_sync] |
45 changes: 45 additions & 0 deletions
45
...mples/generated_samples/monitoring_v1_generated_dashboards_service_get_dashboard_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 GetDashboard | ||
# 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-monitoring-dashboard | ||
|
||
|
||
# [START monitoring_v1_generated_DashboardsService_GetDashboard_async] | ||
from google.monitoring import dashboard_v1 | ||
|
||
|
||
async def sample_get_dashboard(): | ||
# Create a client | ||
client = dashboard_v1.DashboardsServiceAsyncClient() | ||
|
||
# Initialize request argument(s) | ||
request = dashboard_v1.GetDashboardRequest( | ||
name="name_value", | ||
) | ||
|
||
# Make the request | ||
response = await client.get_dashboard(request=request) | ||
|
||
# Handle the response | ||
print(response) | ||
|
||
# [END monitoring_v1_generated_DashboardsService_GetDashboard_async] |
45 changes: 45 additions & 0 deletions
45
...amples/generated_samples/monitoring_v1_generated_dashboards_service_get_dashboard_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 GetDashboard | ||
# 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-monitoring-dashboard | ||
|
||
|
||
# [START monitoring_v1_generated_DashboardsService_GetDashboard_sync] | ||
from google.monitoring import dashboard_v1 | ||
|
||
|
||
def sample_get_dashboard(): | ||
# Create a client | ||
client = dashboard_v1.DashboardsServiceClient() | ||
|
||
# Initialize request argument(s) | ||
request = dashboard_v1.GetDashboardRequest( | ||
name="name_value", | ||
) | ||
|
||
# Make the request | ||
response = client.get_dashboard(request=request) | ||
|
||
# Handle the response | ||
print(response) | ||
|
||
# [END monitoring_v1_generated_DashboardsService_GetDashboard_sync] |
Oops, something went wrong.