Thanks to visit codestin.com
Credit goes to github.com

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

Commit 493ac75

Browse files
authored
feat: add v1alpha (#80)
Googlers see b/186567237
1 parent c484cb6 commit 493ac75

30 files changed

+13358
-5
lines changed

.coveragerc

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
branch = True
33

44
[report]
5-
fail_under = 100
65
show_missing = True
76
omit =
87
google/cloud/osconfig/__init__.py

.github/.OwlBot.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ deep-remove-regex:
1919
- /owl-bot-staging
2020

2121
deep-preserve-regex:
22-
- /owl-bot-staging/v1alpha
2322
- /owl-bot-staging/v1beta
2423

2524
deep-copy-regex:

docs/index.rst

Lines changed: 18 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,30 @@
11
.. include:: README.rst
22

3-
.. include:: multiprocessing.rst
3+
.. include:: multiprocessing.rst
4+
5+
This package includes clients for multiple versions of the osconfig
6+
API. By default, you will get ``v1``, the latest GA version.
7+
8+
osconfig_v1 API Reference
9+
-------------------------
410

5-
API Reference
6-
-------------
711
.. toctree::
812
:maxdepth: 2
913

1014
osconfig_v1/services
1115
osconfig_v1/types
1216

17+
18+
osconfig_v1alpha API Reference
19+
------------------------------
20+
21+
.. toctree::
22+
:maxdepth: 2
23+
24+
osconfig_v1alpha/services
25+
osconfig_v1alpha/types
26+
27+
1328
Changelog
1429
---------
1530

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_v1alpha.services.os_config_zonal_service
5+
:members:
6+
:inherited-members:
7+
8+
.. automodule:: google.cloud.osconfig_v1alpha.services.os_config_zonal_service.pagers
9+
:members:
10+
:inherited-members:

docs/osconfig_v1alpha/services.rst

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
Services for Google Cloud Osconfig v1alpha API
2+
==============================================
3+
.. toctree::
4+
:maxdepth: 2
5+
6+
os_config_zonal_service

docs/osconfig_v1alpha/types.rst

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
Types for Google Cloud Osconfig v1alpha API
2+
===========================================
3+
4+
.. automodule:: google.cloud.osconfig_v1alpha.types
5+
:members:
6+
:undoc-members:
7+
:show-inheritance:
Lines changed: 88 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,88 @@
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+
17+
from .services.os_config_zonal_service import OsConfigZonalServiceClient
18+
from .services.os_config_zonal_service import OsConfigZonalServiceAsyncClient
19+
20+
from .types.config_common import OSPolicyResourceCompliance
21+
from .types.config_common import OSPolicyResourceConfigStep
22+
from .types.config_common import OSPolicyComplianceState
23+
from .types.instance_os_policies_compliance import (
24+
GetInstanceOSPoliciesComplianceRequest,
25+
)
26+
from .types.instance_os_policies_compliance import InstanceOSPoliciesCompliance
27+
from .types.instance_os_policies_compliance import (
28+
ListInstanceOSPoliciesCompliancesRequest,
29+
)
30+
from .types.instance_os_policies_compliance import (
31+
ListInstanceOSPoliciesCompliancesResponse,
32+
)
33+
from .types.inventory import GetInventoryRequest
34+
from .types.inventory import Inventory
35+
from .types.inventory import ListInventoriesRequest
36+
from .types.inventory import ListInventoriesResponse
37+
from .types.inventory import InventoryView
38+
from .types.os_policy import OSPolicy
39+
from .types.os_policy_assignments import CreateOSPolicyAssignmentRequest
40+
from .types.os_policy_assignments import DeleteOSPolicyAssignmentRequest
41+
from .types.os_policy_assignments import GetOSPolicyAssignmentRequest
42+
from .types.os_policy_assignments import ListOSPolicyAssignmentRevisionsRequest
43+
from .types.os_policy_assignments import ListOSPolicyAssignmentRevisionsResponse
44+
from .types.os_policy_assignments import ListOSPolicyAssignmentsRequest
45+
from .types.os_policy_assignments import ListOSPolicyAssignmentsResponse
46+
from .types.os_policy_assignments import OSPolicyAssignment
47+
from .types.os_policy_assignments import OSPolicyAssignmentOperationMetadata
48+
from .types.os_policy_assignments import UpdateOSPolicyAssignmentRequest
49+
from .types.osconfig_common import FixedOrPercent
50+
from .types.vulnerability import CVSSv3
51+
from .types.vulnerability import GetVulnerabilityReportRequest
52+
from .types.vulnerability import ListVulnerabilityReportsRequest
53+
from .types.vulnerability import ListVulnerabilityReportsResponse
54+
from .types.vulnerability import VulnerabilityReport
55+
56+
__all__ = (
57+
"OsConfigZonalServiceAsyncClient",
58+
"CVSSv3",
59+
"CreateOSPolicyAssignmentRequest",
60+
"DeleteOSPolicyAssignmentRequest",
61+
"FixedOrPercent",
62+
"GetInstanceOSPoliciesComplianceRequest",
63+
"GetInventoryRequest",
64+
"GetOSPolicyAssignmentRequest",
65+
"GetVulnerabilityReportRequest",
66+
"InstanceOSPoliciesCompliance",
67+
"Inventory",
68+
"InventoryView",
69+
"ListInstanceOSPoliciesCompliancesRequest",
70+
"ListInstanceOSPoliciesCompliancesResponse",
71+
"ListInventoriesRequest",
72+
"ListInventoriesResponse",
73+
"ListOSPolicyAssignmentRevisionsRequest",
74+
"ListOSPolicyAssignmentRevisionsResponse",
75+
"ListOSPolicyAssignmentsRequest",
76+
"ListOSPolicyAssignmentsResponse",
77+
"ListVulnerabilityReportsRequest",
78+
"ListVulnerabilityReportsResponse",
79+
"OSPolicy",
80+
"OSPolicyAssignment",
81+
"OSPolicyAssignmentOperationMetadata",
82+
"OSPolicyComplianceState",
83+
"OSPolicyResourceCompliance",
84+
"OSPolicyResourceConfigStep",
85+
"OsConfigZonalServiceClient",
86+
"UpdateOSPolicyAssignmentRequest",
87+
"VulnerabilityReport",
88+
)
Lines changed: 143 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,143 @@
1+
{
2+
"comment": "This file maps proto services/RPCs to the corresponding library clients/methods",
3+
"language": "python",
4+
"libraryPackage": "google.cloud.osconfig_v1alpha",
5+
"protoPackage": "google.cloud.osconfig.v1alpha",
6+
"schema": "1.0",
7+
"services": {
8+
"OsConfigZonalService": {
9+
"clients": {
10+
"grpc": {
11+
"libraryClient": "OsConfigZonalServiceClient",
12+
"rpcs": {
13+
"CreateOSPolicyAssignment": {
14+
"methods": [
15+
"create_os_policy_assignment"
16+
]
17+
},
18+
"DeleteOSPolicyAssignment": {
19+
"methods": [
20+
"delete_os_policy_assignment"
21+
]
22+
},
23+
"GetInstanceOSPoliciesCompliance": {
24+
"methods": [
25+
"get_instance_os_policies_compliance"
26+
]
27+
},
28+
"GetInventory": {
29+
"methods": [
30+
"get_inventory"
31+
]
32+
},
33+
"GetOSPolicyAssignment": {
34+
"methods": [
35+
"get_os_policy_assignment"
36+
]
37+
},
38+
"GetVulnerabilityReport": {
39+
"methods": [
40+
"get_vulnerability_report"
41+
]
42+
},
43+
"ListInstanceOSPoliciesCompliances": {
44+
"methods": [
45+
"list_instance_os_policies_compliances"
46+
]
47+
},
48+
"ListInventories": {
49+
"methods": [
50+
"list_inventories"
51+
]
52+
},
53+
"ListOSPolicyAssignmentRevisions": {
54+
"methods": [
55+
"list_os_policy_assignment_revisions"
56+
]
57+
},
58+
"ListOSPolicyAssignments": {
59+
"methods": [
60+
"list_os_policy_assignments"
61+
]
62+
},
63+
"ListVulnerabilityReports": {
64+
"methods": [
65+
"list_vulnerability_reports"
66+
]
67+
},
68+
"UpdateOSPolicyAssignment": {
69+
"methods": [
70+
"update_os_policy_assignment"
71+
]
72+
}
73+
}
74+
},
75+
"grpc-async": {
76+
"libraryClient": "OsConfigZonalServiceAsyncClient",
77+
"rpcs": {
78+
"CreateOSPolicyAssignment": {
79+
"methods": [
80+
"create_os_policy_assignment"
81+
]
82+
},
83+
"DeleteOSPolicyAssignment": {
84+
"methods": [
85+
"delete_os_policy_assignment"
86+
]
87+
},
88+
"GetInstanceOSPoliciesCompliance": {
89+
"methods": [
90+
"get_instance_os_policies_compliance"
91+
]
92+
},
93+
"GetInventory": {
94+
"methods": [
95+
"get_inventory"
96+
]
97+
},
98+
"GetOSPolicyAssignment": {
99+
"methods": [
100+
"get_os_policy_assignment"
101+
]
102+
},
103+
"GetVulnerabilityReport": {
104+
"methods": [
105+
"get_vulnerability_report"
106+
]
107+
},
108+
"ListInstanceOSPoliciesCompliances": {
109+
"methods": [
110+
"list_instance_os_policies_compliances"
111+
]
112+
},
113+
"ListInventories": {
114+
"methods": [
115+
"list_inventories"
116+
]
117+
},
118+
"ListOSPolicyAssignmentRevisions": {
119+
"methods": [
120+
"list_os_policy_assignment_revisions"
121+
]
122+
},
123+
"ListOSPolicyAssignments": {
124+
"methods": [
125+
"list_os_policy_assignments"
126+
]
127+
},
128+
"ListVulnerabilityReports": {
129+
"methods": [
130+
"list_vulnerability_reports"
131+
]
132+
},
133+
"UpdateOSPolicyAssignment": {
134+
"methods": [
135+
"update_os_policy_assignment"
136+
]
137+
}
138+
}
139+
}
140+
}
141+
}
142+
}
143+
}
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# Marker file for PEP 561.
2+
# The google-cloud-osconfig package uses inline types.
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
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+
#

0 commit comments

Comments
 (0)