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

Commit 72bb90f

Browse files
feat: add OSConfigZonalService API (#116)
- [ ] Regenerate this pull request now. PiperOrigin-RevId: 394704298 Source-Link: googleapis/googleapis@31d2d34 Source-Link: https://github.com/googleapis/googleapis-gen/commit/aa3ce0901f686a71b68e427c6bb7a611b151b540
1 parent ce674bd commit 72bb90f

19 files changed

Lines changed: 5561 additions & 23 deletions

File tree

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
OsConfigZonalService
2+
--------------------------------------
3+
4+
.. automodule:: google.cloud.osconfig_v1.services.os_config_zonal_service
5+
:members:
6+
:inherited-members:
7+
8+
.. automodule:: google.cloud.osconfig_v1.services.os_config_zonal_service.pagers
9+
:members:
10+
:inherited-members:

‎docs/osconfig_v1/services.rst‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,4 @@ Services for Google Cloud Osconfig v1 API
44
:maxdepth: 2
55

66
os_config_service
7+
os_config_zonal_service

‎google/cloud/osconfig/__init__.py‎

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,18 @@
2020
from google.cloud.osconfig_v1.services.os_config_service.async_client import (
2121
OsConfigServiceAsyncClient,
2222
)
23+
from google.cloud.osconfig_v1.services.os_config_zonal_service.client import (
24+
OsConfigZonalServiceClient,
25+
)
26+
from google.cloud.osconfig_v1.services.os_config_zonal_service.async_client import (
27+
OsConfigZonalServiceAsyncClient,
28+
)
2329

30+
from google.cloud.osconfig_v1.types.inventory import GetInventoryRequest
2431
from google.cloud.osconfig_v1.types.inventory import Inventory
32+
from google.cloud.osconfig_v1.types.inventory import ListInventoriesRequest
33+
from google.cloud.osconfig_v1.types.inventory import ListInventoriesResponse
34+
from google.cloud.osconfig_v1.types.inventory import InventoryView
2535
from google.cloud.osconfig_v1.types.osconfig_common import FixedOrPercent
2636
from google.cloud.osconfig_v1.types.patch_deployments import (
2737
CreatePatchDeploymentRequest,
@@ -63,11 +73,24 @@
6373
from google.cloud.osconfig_v1.types.patch_jobs import WindowsUpdateSettings
6474
from google.cloud.osconfig_v1.types.patch_jobs import YumSettings
6575
from google.cloud.osconfig_v1.types.patch_jobs import ZypperSettings
76+
from google.cloud.osconfig_v1.types.vulnerability import CVSSv3
77+
from google.cloud.osconfig_v1.types.vulnerability import GetVulnerabilityReportRequest
78+
from google.cloud.osconfig_v1.types.vulnerability import ListVulnerabilityReportsRequest
79+
from google.cloud.osconfig_v1.types.vulnerability import (
80+
ListVulnerabilityReportsResponse,
81+
)
82+
from google.cloud.osconfig_v1.types.vulnerability import VulnerabilityReport
6683

6784
__all__ = (
6885
"OsConfigServiceClient",
6986
"OsConfigServiceAsyncClient",
87+
"OsConfigZonalServiceClient",
88+
"OsConfigZonalServiceAsyncClient",
89+
"GetInventoryRequest",
7090
"Inventory",
91+
"ListInventoriesRequest",
92+
"ListInventoriesResponse",
93+
"InventoryView",
7194
"FixedOrPercent",
7295
"CreatePatchDeploymentRequest",
7396
"DeletePatchDeploymentRequest",
@@ -101,4 +124,9 @@
101124
"WindowsUpdateSettings",
102125
"YumSettings",
103126
"ZypperSettings",
127+
"CVSSv3",
128+
"GetVulnerabilityReportRequest",
129+
"ListVulnerabilityReportsRequest",
130+
"ListVulnerabilityReportsResponse",
131+
"VulnerabilityReport",
104132
)

‎google/cloud/osconfig_v1/__init__.py‎

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,14 @@
1616

1717
from .services.os_config_service import OsConfigServiceClient
1818
from .services.os_config_service import OsConfigServiceAsyncClient
19+
from .services.os_config_zonal_service import OsConfigZonalServiceClient
20+
from .services.os_config_zonal_service import OsConfigZonalServiceAsyncClient
1921

22+
from .types.inventory import GetInventoryRequest
2023
from .types.inventory import Inventory
24+
from .types.inventory import ListInventoriesRequest
25+
from .types.inventory import ListInventoriesResponse
26+
from .types.inventory import InventoryView
2127
from .types.osconfig_common import FixedOrPercent
2228
from .types.patch_deployments import CreatePatchDeploymentRequest
2329
from .types.patch_deployments import DeletePatchDeploymentRequest
@@ -51,10 +57,17 @@
5157
from .types.patch_jobs import WindowsUpdateSettings
5258
from .types.patch_jobs import YumSettings
5359
from .types.patch_jobs import ZypperSettings
60+
from .types.vulnerability import CVSSv3
61+
from .types.vulnerability import GetVulnerabilityReportRequest
62+
from .types.vulnerability import ListVulnerabilityReportsRequest
63+
from .types.vulnerability import ListVulnerabilityReportsResponse
64+
from .types.vulnerability import VulnerabilityReport
5465

5566
__all__ = (
5667
"OsConfigServiceAsyncClient",
68+
"OsConfigZonalServiceAsyncClient",
5769
"AptSettings",
70+
"CVSSv3",
5871
"CancelPatchJobRequest",
5972
"CreatePatchDeploymentRequest",
6073
"DeletePatchDeploymentRequest",
@@ -63,27 +76,36 @@
6376
"ExecutePatchJobRequest",
6477
"FixedOrPercent",
6578
"GcsObject",
79+
"GetInventoryRequest",
6680
"GetPatchDeploymentRequest",
6781
"GetPatchJobRequest",
82+
"GetVulnerabilityReportRequest",
6883
"GooSettings",
6984
"Instance",
7085
"Inventory",
86+
"InventoryView",
87+
"ListInventoriesRequest",
88+
"ListInventoriesResponse",
7189
"ListPatchDeploymentsRequest",
7290
"ListPatchDeploymentsResponse",
7391
"ListPatchJobInstanceDetailsRequest",
7492
"ListPatchJobInstanceDetailsResponse",
7593
"ListPatchJobsRequest",
7694
"ListPatchJobsResponse",
95+
"ListVulnerabilityReportsRequest",
96+
"ListVulnerabilityReportsResponse",
7797
"MonthlySchedule",
7898
"OneTimeSchedule",
7999
"OsConfigServiceClient",
100+
"OsConfigZonalServiceClient",
80101
"PatchConfig",
81102
"PatchDeployment",
82103
"PatchInstanceFilter",
83104
"PatchJob",
84105
"PatchJobInstanceDetails",
85106
"PatchRollout",
86107
"RecurringSchedule",
108+
"VulnerabilityReport",
87109
"WeekDayOfMonth",
88110
"WeeklySchedule",
89111
"WindowsUpdateSettings",

‎google/cloud/osconfig_v1/gapic_metadata.json‎

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,60 @@
108108
}
109109
}
110110
}
111+
},
112+
"OsConfigZonalService": {
113+
"clients": {
114+
"grpc": {
115+
"libraryClient": "OsConfigZonalServiceClient",
116+
"rpcs": {
117+
"GetInventory": {
118+
"methods": [
119+
"get_inventory"
120+
]
121+
},
122+
"GetVulnerabilityReport": {
123+
"methods": [
124+
"get_vulnerability_report"
125+
]
126+
},
127+
"ListInventories": {
128+
"methods": [
129+
"list_inventories"
130+
]
131+
},
132+
"ListVulnerabilityReports": {
133+
"methods": [
134+
"list_vulnerability_reports"
135+
]
136+
}
137+
}
138+
},
139+
"grpc-async": {
140+
"libraryClient": "OsConfigZonalServiceAsyncClient",
141+
"rpcs": {
142+
"GetInventory": {
143+
"methods": [
144+
"get_inventory"
145+
]
146+
},
147+
"GetVulnerabilityReport": {
148+
"methods": [
149+
"get_vulnerability_report"
150+
]
151+
},
152+
"ListInventories": {
153+
"methods": [
154+
"list_inventories"
155+
]
156+
},
157+
"ListVulnerabilityReports": {
158+
"methods": [
159+
"list_vulnerability_reports"
160+
]
161+
}
162+
}
163+
}
164+
}
111165
}
112166
}
113167
}
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
# -*- coding: utf-8 -*-
2+
# Copyright 2020 Google LLC
3+
#
4+
# Licensed under the Apache License, Version 2.0 (the "License");
5+
# you may not use this file except in compliance with the License.
6+
# You may obtain a copy of the License at
7+
#
8+
# http://www.apache.org/licenses/LICENSE-2.0
9+
#
10+
# Unless required by applicable law or agreed to in writing, software
11+
# distributed under the License is distributed on an "AS IS" BASIS,
12+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
# See the License for the specific language governing permissions and
14+
# limitations under the License.
15+
#
16+
from .client import OsConfigZonalServiceClient
17+
from .async_client import OsConfigZonalServiceAsyncClient
18+
19+
__all__ = (
20+
"OsConfigZonalServiceClient",
21+
"OsConfigZonalServiceAsyncClient",
22+
)

0 commit comments

Comments
 (0)