Skip to content
This repository has been archived by the owner on Dec 31, 2023. It is now read-only.

Commit

Permalink
feat: Added Snooze API support (#519)
Browse files Browse the repository at this point in the history
* feat: Added Snooze API support

PiperOrigin-RevId: 500543032

Source-Link: googleapis/googleapis@d4864bf

Source-Link: googleapis/googleapis-gen@2450315
Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiMjQ1MDMxNTU3Zjg4NTJlOGUwODlhNjUxMWY2M2ZjMjI2NzAzZmVmOSJ9

* 🦉 Updates from OwlBot post-processor

See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md

* workaround docs issue

Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
Co-authored-by: Anthonios Partheniou <partheniou@google.com>
  • Loading branch information
3 people committed Jan 9, 2023
1 parent f98269c commit 1d33db7
Show file tree
Hide file tree
Showing 27 changed files with 7,055 additions and 1 deletion.
1 change: 1 addition & 0 deletions docs/monitoring_v3/services.rst
Expand Up @@ -9,4 +9,5 @@ Services for Google Cloud Monitoring v3 API
notification_channel_service
query_service
service_monitoring_service
snooze_service
uptime_check_service
10 changes: 10 additions & 0 deletions docs/monitoring_v3/snooze_service.rst
@@ -0,0 +1,10 @@
SnoozeService
-------------------------------

.. automodule:: google.cloud.monitoring_v3.services.snooze_service
:members:
:inherited-members:

.. automodule:: google.cloud.monitoring_v3.services.snooze_service.pagers
:members:
:inherited-members:
20 changes: 20 additions & 0 deletions google/cloud/monitoring/__init__.py
Expand Up @@ -50,6 +50,12 @@
from google.cloud.monitoring_v3.services.service_monitoring_service.async_client import (
ServiceMonitoringServiceAsyncClient,
)
from google.cloud.monitoring_v3.services.snooze_service.client import (
SnoozeServiceClient,
)
from google.cloud.monitoring_v3.services.snooze_service.async_client import (
SnoozeServiceAsyncClient,
)
from google.cloud.monitoring_v3.services.uptime_check_service.client import (
UptimeCheckServiceClient,
)
Expand Down Expand Up @@ -189,6 +195,12 @@
UpdateServiceLevelObjectiveRequest,
)
from google.cloud.monitoring_v3.types.service_service import UpdateServiceRequest
from google.cloud.monitoring_v3.types.snooze import Snooze
from google.cloud.monitoring_v3.types.snooze_service import CreateSnoozeRequest
from google.cloud.monitoring_v3.types.snooze_service import GetSnoozeRequest
from google.cloud.monitoring_v3.types.snooze_service import ListSnoozesRequest
from google.cloud.monitoring_v3.types.snooze_service import ListSnoozesResponse
from google.cloud.monitoring_v3.types.snooze_service import UpdateSnoozeRequest
from google.cloud.monitoring_v3.types.span_context import SpanContext
from google.cloud.monitoring_v3.types.uptime import InternalChecker
from google.cloud.monitoring_v3.types.uptime import UptimeCheckConfig
Expand Down Expand Up @@ -227,6 +239,8 @@
"QueryServiceAsyncClient",
"ServiceMonitoringServiceClient",
"ServiceMonitoringServiceAsyncClient",
"SnoozeServiceClient",
"SnoozeServiceAsyncClient",
"UptimeCheckServiceClient",
"UptimeCheckServiceAsyncClient",
"AlertPolicy",
Expand Down Expand Up @@ -311,6 +325,12 @@
"ListServicesResponse",
"UpdateServiceLevelObjectiveRequest",
"UpdateServiceRequest",
"Snooze",
"CreateSnoozeRequest",
"GetSnoozeRequest",
"ListSnoozesRequest",
"ListSnoozesResponse",
"UpdateSnoozeRequest",
"SpanContext",
"InternalChecker",
"UptimeCheckConfig",
Expand Down
16 changes: 16 additions & 0 deletions google/cloud/monitoring_v3/__init__.py
Expand Up @@ -30,6 +30,8 @@
from .services.query_service import QueryServiceAsyncClient
from .services.service_monitoring_service import ServiceMonitoringServiceClient
from .services.service_monitoring_service import ServiceMonitoringServiceAsyncClient
from .services.snooze_service import SnoozeServiceClient
from .services.snooze_service import SnoozeServiceAsyncClient
from .services.uptime_check_service import UptimeCheckServiceClient
from .services.uptime_check_service import UptimeCheckServiceAsyncClient

Expand Down Expand Up @@ -115,6 +117,12 @@
from .types.service_service import ListServicesResponse
from .types.service_service import UpdateServiceLevelObjectiveRequest
from .types.service_service import UpdateServiceRequest
from .types.snooze import Snooze
from .types.snooze_service import CreateSnoozeRequest
from .types.snooze_service import GetSnoozeRequest
from .types.snooze_service import ListSnoozesRequest
from .types.snooze_service import ListSnoozesResponse
from .types.snooze_service import UpdateSnoozeRequest
from .types.span_context import SpanContext
from .types.uptime import InternalChecker
from .types.uptime import UptimeCheckConfig
Expand All @@ -137,6 +145,7 @@
"NotificationChannelServiceAsyncClient",
"QueryServiceAsyncClient",
"ServiceMonitoringServiceAsyncClient",
"SnoozeServiceAsyncClient",
"UptimeCheckServiceAsyncClient",
"Aggregation",
"AlertPolicy",
Expand All @@ -149,6 +158,7 @@
"CreateNotificationChannelRequest",
"CreateServiceLevelObjectiveRequest",
"CreateServiceRequest",
"CreateSnoozeRequest",
"CreateTimeSeriesError",
"CreateTimeSeriesRequest",
"CreateTimeSeriesSummary",
Expand All @@ -172,6 +182,7 @@
"GetNotificationChannelVerificationCodeResponse",
"GetServiceLevelObjectiveRequest",
"GetServiceRequest",
"GetSnoozeRequest",
"GetUptimeCheckConfigRequest",
"Group",
"GroupResourceType",
Expand All @@ -196,6 +207,8 @@
"ListServiceLevelObjectivesResponse",
"ListServicesRequest",
"ListServicesResponse",
"ListSnoozesRequest",
"ListSnoozesResponse",
"ListTimeSeriesRequest",
"ListTimeSeriesResponse",
"ListUptimeCheckConfigsRequest",
Expand All @@ -221,6 +234,8 @@
"ServiceLevelObjective",
"ServiceMonitoringServiceClient",
"ServiceTier",
"Snooze",
"SnoozeServiceClient",
"SpanContext",
"TextLocator",
"TimeInterval",
Expand All @@ -234,6 +249,7 @@
"UpdateNotificationChannelRequest",
"UpdateServiceLevelObjectiveRequest",
"UpdateServiceRequest",
"UpdateSnoozeRequest",
"UpdateUptimeCheckConfigRequest",
"UptimeCheckConfig",
"UptimeCheckIp",
Expand Down
54 changes: 54 additions & 0 deletions google/cloud/monitoring_v3/gapic_metadata.json
Expand Up @@ -499,6 +499,60 @@
}
}
},
"SnoozeService": {
"clients": {
"grpc": {
"libraryClient": "SnoozeServiceClient",
"rpcs": {
"CreateSnooze": {
"methods": [
"create_snooze"
]
},
"GetSnooze": {
"methods": [
"get_snooze"
]
},
"ListSnoozes": {
"methods": [
"list_snoozes"
]
},
"UpdateSnooze": {
"methods": [
"update_snooze"
]
}
}
},
"grpc-async": {
"libraryClient": "SnoozeServiceAsyncClient",
"rpcs": {
"CreateSnooze": {
"methods": [
"create_snooze"
]
},
"GetSnooze": {
"methods": [
"get_snooze"
]
},
"ListSnoozes": {
"methods": [
"list_snoozes"
]
},
"UpdateSnooze": {
"methods": [
"update_snooze"
]
}
}
}
}
},
"UptimeCheckService": {
"clients": {
"grpc": {
Expand Down
22 changes: 22 additions & 0 deletions google/cloud/monitoring_v3/services/snooze_service/__init__.py
@@ -0,0 +1,22 @@
# -*- coding: utf-8 -*-
# Copyright 2022 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.
#
from .client import SnoozeServiceClient
from .async_client import SnoozeServiceAsyncClient

__all__ = (
"SnoozeServiceClient",
"SnoozeServiceAsyncClient",
)

0 comments on commit 1d33db7

Please sign in to comment.