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

Commit

Permalink
feat: add OSConfigZonalService API (#116)
Browse files Browse the repository at this point in the history
- [ ] Regenerate this pull request now.

PiperOrigin-RevId: 394704298

Source-Link: googleapis/googleapis@31d2d34

Source-Link: googleapis/googleapis-gen@aa3ce09
  • Loading branch information
gcf-owl-bot[bot] committed Sep 3, 2021
1 parent ce674bd commit 72bb90f
Show file tree
Hide file tree
Showing 19 changed files with 5,561 additions and 23 deletions.
10 changes: 10 additions & 0 deletions docs/osconfig_v1/os_config_zonal_service.rst
@@ -0,0 +1,10 @@
OsConfigZonalService
--------------------------------------

.. automodule:: google.cloud.osconfig_v1.services.os_config_zonal_service
:members:
:inherited-members:

.. automodule:: google.cloud.osconfig_v1.services.os_config_zonal_service.pagers
:members:
:inherited-members:
1 change: 1 addition & 0 deletions docs/osconfig_v1/services.rst
Expand Up @@ -4,3 +4,4 @@ Services for Google Cloud Osconfig v1 API
:maxdepth: 2

os_config_service
os_config_zonal_service
28 changes: 28 additions & 0 deletions google/cloud/osconfig/__init__.py
Expand Up @@ -20,8 +20,18 @@
from google.cloud.osconfig_v1.services.os_config_service.async_client import (
OsConfigServiceAsyncClient,
)
from google.cloud.osconfig_v1.services.os_config_zonal_service.client import (
OsConfigZonalServiceClient,
)
from google.cloud.osconfig_v1.services.os_config_zonal_service.async_client import (
OsConfigZonalServiceAsyncClient,
)

from google.cloud.osconfig_v1.types.inventory import GetInventoryRequest
from google.cloud.osconfig_v1.types.inventory import Inventory
from google.cloud.osconfig_v1.types.inventory import ListInventoriesRequest
from google.cloud.osconfig_v1.types.inventory import ListInventoriesResponse
from google.cloud.osconfig_v1.types.inventory import InventoryView
from google.cloud.osconfig_v1.types.osconfig_common import FixedOrPercent
from google.cloud.osconfig_v1.types.patch_deployments import (
CreatePatchDeploymentRequest,
Expand Down Expand Up @@ -63,11 +73,24 @@
from google.cloud.osconfig_v1.types.patch_jobs import WindowsUpdateSettings
from google.cloud.osconfig_v1.types.patch_jobs import YumSettings
from google.cloud.osconfig_v1.types.patch_jobs import ZypperSettings
from google.cloud.osconfig_v1.types.vulnerability import CVSSv3
from google.cloud.osconfig_v1.types.vulnerability import GetVulnerabilityReportRequest
from google.cloud.osconfig_v1.types.vulnerability import ListVulnerabilityReportsRequest
from google.cloud.osconfig_v1.types.vulnerability import (
ListVulnerabilityReportsResponse,
)
from google.cloud.osconfig_v1.types.vulnerability import VulnerabilityReport

__all__ = (
"OsConfigServiceClient",
"OsConfigServiceAsyncClient",
"OsConfigZonalServiceClient",
"OsConfigZonalServiceAsyncClient",
"GetInventoryRequest",
"Inventory",
"ListInventoriesRequest",
"ListInventoriesResponse",
"InventoryView",
"FixedOrPercent",
"CreatePatchDeploymentRequest",
"DeletePatchDeploymentRequest",
Expand Down Expand Up @@ -101,4 +124,9 @@
"WindowsUpdateSettings",
"YumSettings",
"ZypperSettings",
"CVSSv3",
"GetVulnerabilityReportRequest",
"ListVulnerabilityReportsRequest",
"ListVulnerabilityReportsResponse",
"VulnerabilityReport",
)
22 changes: 22 additions & 0 deletions google/cloud/osconfig_v1/__init__.py
Expand Up @@ -16,8 +16,14 @@

from .services.os_config_service import OsConfigServiceClient
from .services.os_config_service import OsConfigServiceAsyncClient
from .services.os_config_zonal_service import OsConfigZonalServiceClient
from .services.os_config_zonal_service import OsConfigZonalServiceAsyncClient

from .types.inventory import GetInventoryRequest
from .types.inventory import Inventory
from .types.inventory import ListInventoriesRequest
from .types.inventory import ListInventoriesResponse
from .types.inventory import InventoryView
from .types.osconfig_common import FixedOrPercent
from .types.patch_deployments import CreatePatchDeploymentRequest
from .types.patch_deployments import DeletePatchDeploymentRequest
Expand Down Expand Up @@ -51,10 +57,17 @@
from .types.patch_jobs import WindowsUpdateSettings
from .types.patch_jobs import YumSettings
from .types.patch_jobs import ZypperSettings
from .types.vulnerability import CVSSv3
from .types.vulnerability import GetVulnerabilityReportRequest
from .types.vulnerability import ListVulnerabilityReportsRequest
from .types.vulnerability import ListVulnerabilityReportsResponse
from .types.vulnerability import VulnerabilityReport

__all__ = (
"OsConfigServiceAsyncClient",
"OsConfigZonalServiceAsyncClient",
"AptSettings",
"CVSSv3",
"CancelPatchJobRequest",
"CreatePatchDeploymentRequest",
"DeletePatchDeploymentRequest",
Expand All @@ -63,27 +76,36 @@
"ExecutePatchJobRequest",
"FixedOrPercent",
"GcsObject",
"GetInventoryRequest",
"GetPatchDeploymentRequest",
"GetPatchJobRequest",
"GetVulnerabilityReportRequest",
"GooSettings",
"Instance",
"Inventory",
"InventoryView",
"ListInventoriesRequest",
"ListInventoriesResponse",
"ListPatchDeploymentsRequest",
"ListPatchDeploymentsResponse",
"ListPatchJobInstanceDetailsRequest",
"ListPatchJobInstanceDetailsResponse",
"ListPatchJobsRequest",
"ListPatchJobsResponse",
"ListVulnerabilityReportsRequest",
"ListVulnerabilityReportsResponse",
"MonthlySchedule",
"OneTimeSchedule",
"OsConfigServiceClient",
"OsConfigZonalServiceClient",
"PatchConfig",
"PatchDeployment",
"PatchInstanceFilter",
"PatchJob",
"PatchJobInstanceDetails",
"PatchRollout",
"RecurringSchedule",
"VulnerabilityReport",
"WeekDayOfMonth",
"WeeklySchedule",
"WindowsUpdateSettings",
Expand Down
54 changes: 54 additions & 0 deletions google/cloud/osconfig_v1/gapic_metadata.json
Expand Up @@ -108,6 +108,60 @@
}
}
}
},
"OsConfigZonalService": {
"clients": {
"grpc": {
"libraryClient": "OsConfigZonalServiceClient",
"rpcs": {
"GetInventory": {
"methods": [
"get_inventory"
]
},
"GetVulnerabilityReport": {
"methods": [
"get_vulnerability_report"
]
},
"ListInventories": {
"methods": [
"list_inventories"
]
},
"ListVulnerabilityReports": {
"methods": [
"list_vulnerability_reports"
]
}
}
},
"grpc-async": {
"libraryClient": "OsConfigZonalServiceAsyncClient",
"rpcs": {
"GetInventory": {
"methods": [
"get_inventory"
]
},
"GetVulnerabilityReport": {
"methods": [
"get_vulnerability_report"
]
},
"ListInventories": {
"methods": [
"list_inventories"
]
},
"ListVulnerabilityReports": {
"methods": [
"list_vulnerability_reports"
]
}
}
}
}
}
}
}
@@ -0,0 +1,22 @@
# -*- 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.
#
from .client import OsConfigZonalServiceClient
from .async_client import OsConfigZonalServiceAsyncClient

__all__ = (
"OsConfigZonalServiceClient",
"OsConfigZonalServiceAsyncClient",
)

0 comments on commit 72bb90f

Please sign in to comment.