Skip to content

Commit

Permalink
chore: use gapic-generator-python 0.63.4 (#152)
Browse files Browse the repository at this point in the history
* 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
3 people authored Feb 25, 2022
1 parent 687b102 commit bc8c78c
Show file tree
Hide file tree
Showing 14 changed files with 918 additions and 15 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ async def create_dashboard(
Management <https://cloud.google.com/iam>`__.
.. code-block::
.. code-block:: python
from google.monitoring import dashboard_v1
Expand Down Expand Up @@ -306,7 +306,7 @@ async def list_dashboards(
Management <https://cloud.google.com/iam>`__.
.. code-block::
.. code-block:: python
from google.monitoring import dashboard_v1
Expand Down Expand Up @@ -388,7 +388,7 @@ async def get_dashboard(
Management <https://cloud.google.com/iam>`__.
.. code-block::
.. code-block:: python
from google.monitoring import dashboard_v1
Expand Down Expand Up @@ -463,7 +463,7 @@ async def delete_dashboard(
Management <https://cloud.google.com/iam>`__.
.. code-block::
.. code-block:: python
from google.monitoring import dashboard_v1
Expand Down Expand Up @@ -526,7 +526,7 @@ async def update_dashboard(
Management <https://cloud.google.com/iam>`__.
.. code-block::
.. code-block:: python
from google.monitoring import dashboard_v1
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -434,8 +434,7 @@ def create_dashboard(
Management <https://cloud.google.com/iam>`__.
.. code-block::
.. code-block:: python
from google.monitoring import dashboard_v1
Expand Down Expand Up @@ -515,8 +514,7 @@ def list_dashboards(
Management <https://cloud.google.com/iam>`__.
.. code-block::
.. code-block:: python
from google.monitoring import dashboard_v1
Expand Down Expand Up @@ -599,8 +597,7 @@ def get_dashboard(
Management <https://cloud.google.com/iam>`__.
.. code-block::
.. code-block:: python
from google.monitoring import dashboard_v1
Expand Down Expand Up @@ -676,8 +673,7 @@ def delete_dashboard(
Management <https://cloud.google.com/iam>`__.
.. code-block::
.. code-block:: python
from google.monitoring import dashboard_v1
Expand Down Expand Up @@ -741,8 +737,7 @@ def update_dashboard(
Management <https://cloud.google.com/iam>`__.
.. code-block::
.. code-block:: python
from google.monitoring import dashboard_v1
Expand Down
1 change: 1 addition & 0 deletions packages/google-cloud-monitoring-dashboards/owlbot.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@
s.move(library / "tests")
s.move(library / "scripts")
s.move(library / "docs", excludes=["index.rst"])
s.move(library / "samples")

s.remove_staging_dirs()

Expand Down
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]
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]
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]
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]
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]
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]
Loading

0 comments on commit bc8c78c

Please sign in to comment.