Skip to content

Commit

Permalink
feat: add v1alpha (#80)
Browse files Browse the repository at this point in the history
Googlers see b/186567237
  • Loading branch information
parthea authored Jun 9, 2021
1 parent 6d5caff commit 23862dc
Show file tree
Hide file tree
Showing 30 changed files with 13,358 additions and 5 deletions.
1 change: 0 additions & 1 deletion packages/google-cloud-os-config/.coveragerc
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
branch = True

[report]
fail_under = 100
show_missing = True
omit =
google/cloud/osconfig/__init__.py
Expand Down
1 change: 0 additions & 1 deletion packages/google-cloud-os-config/.github/.OwlBot.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ deep-remove-regex:
- /owl-bot-staging

deep-preserve-regex:
- /owl-bot-staging/v1alpha
- /owl-bot-staging/v1beta

deep-copy-regex:
Expand Down
21 changes: 18 additions & 3 deletions packages/google-cloud-os-config/docs/index.rst
Original file line number Diff line number Diff line change
@@ -1,15 +1,30 @@
.. include:: README.rst

.. include:: multiprocessing.rst
.. include:: multiprocessing.rst

This package includes clients for multiple versions of the osconfig
API. By default, you will get ``v1``, the latest GA version.

osconfig_v1 API Reference
-------------------------

API Reference
-------------
.. toctree::
:maxdepth: 2

osconfig_v1/services
osconfig_v1/types


osconfig_v1alpha API Reference
------------------------------

.. toctree::
:maxdepth: 2

osconfig_v1alpha/services
osconfig_v1alpha/types


Changelog
---------

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
OsConfigZonalService
--------------------------------------

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

.. automodule:: google.cloud.osconfig_v1alpha.services.os_config_zonal_service.pagers
:members:
:inherited-members:
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
Services for Google Cloud Osconfig v1alpha API
==============================================
.. toctree::
:maxdepth: 2

os_config_zonal_service
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
Types for Google Cloud Osconfig v1alpha API
===========================================

.. automodule:: google.cloud.osconfig_v1alpha.types
:members:
:undoc-members:
:show-inheritance:
Original file line number Diff line number Diff line change
@@ -0,0 +1,88 @@
# -*- 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 .services.os_config_zonal_service import OsConfigZonalServiceClient
from .services.os_config_zonal_service import OsConfigZonalServiceAsyncClient

from .types.config_common import OSPolicyResourceCompliance
from .types.config_common import OSPolicyResourceConfigStep
from .types.config_common import OSPolicyComplianceState
from .types.instance_os_policies_compliance import (
GetInstanceOSPoliciesComplianceRequest,
)
from .types.instance_os_policies_compliance import InstanceOSPoliciesCompliance
from .types.instance_os_policies_compliance import (
ListInstanceOSPoliciesCompliancesRequest,
)
from .types.instance_os_policies_compliance import (
ListInstanceOSPoliciesCompliancesResponse,
)
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.os_policy import OSPolicy
from .types.os_policy_assignments import CreateOSPolicyAssignmentRequest
from .types.os_policy_assignments import DeleteOSPolicyAssignmentRequest
from .types.os_policy_assignments import GetOSPolicyAssignmentRequest
from .types.os_policy_assignments import ListOSPolicyAssignmentRevisionsRequest
from .types.os_policy_assignments import ListOSPolicyAssignmentRevisionsResponse
from .types.os_policy_assignments import ListOSPolicyAssignmentsRequest
from .types.os_policy_assignments import ListOSPolicyAssignmentsResponse
from .types.os_policy_assignments import OSPolicyAssignment
from .types.os_policy_assignments import OSPolicyAssignmentOperationMetadata
from .types.os_policy_assignments import UpdateOSPolicyAssignmentRequest
from .types.osconfig_common import FixedOrPercent
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__ = (
"OsConfigZonalServiceAsyncClient",
"CVSSv3",
"CreateOSPolicyAssignmentRequest",
"DeleteOSPolicyAssignmentRequest",
"FixedOrPercent",
"GetInstanceOSPoliciesComplianceRequest",
"GetInventoryRequest",
"GetOSPolicyAssignmentRequest",
"GetVulnerabilityReportRequest",
"InstanceOSPoliciesCompliance",
"Inventory",
"InventoryView",
"ListInstanceOSPoliciesCompliancesRequest",
"ListInstanceOSPoliciesCompliancesResponse",
"ListInventoriesRequest",
"ListInventoriesResponse",
"ListOSPolicyAssignmentRevisionsRequest",
"ListOSPolicyAssignmentRevisionsResponse",
"ListOSPolicyAssignmentsRequest",
"ListOSPolicyAssignmentsResponse",
"ListVulnerabilityReportsRequest",
"ListVulnerabilityReportsResponse",
"OSPolicy",
"OSPolicyAssignment",
"OSPolicyAssignmentOperationMetadata",
"OSPolicyComplianceState",
"OSPolicyResourceCompliance",
"OSPolicyResourceConfigStep",
"OsConfigZonalServiceClient",
"UpdateOSPolicyAssignmentRequest",
"VulnerabilityReport",
)
Original file line number Diff line number Diff line change
@@ -0,0 +1,143 @@
{
"comment": "This file maps proto services/RPCs to the corresponding library clients/methods",
"language": "python",
"libraryPackage": "google.cloud.osconfig_v1alpha",
"protoPackage": "google.cloud.osconfig.v1alpha",
"schema": "1.0",
"services": {
"OsConfigZonalService": {
"clients": {
"grpc": {
"libraryClient": "OsConfigZonalServiceClient",
"rpcs": {
"CreateOSPolicyAssignment": {
"methods": [
"create_os_policy_assignment"
]
},
"DeleteOSPolicyAssignment": {
"methods": [
"delete_os_policy_assignment"
]
},
"GetInstanceOSPoliciesCompliance": {
"methods": [
"get_instance_os_policies_compliance"
]
},
"GetInventory": {
"methods": [
"get_inventory"
]
},
"GetOSPolicyAssignment": {
"methods": [
"get_os_policy_assignment"
]
},
"GetVulnerabilityReport": {
"methods": [
"get_vulnerability_report"
]
},
"ListInstanceOSPoliciesCompliances": {
"methods": [
"list_instance_os_policies_compliances"
]
},
"ListInventories": {
"methods": [
"list_inventories"
]
},
"ListOSPolicyAssignmentRevisions": {
"methods": [
"list_os_policy_assignment_revisions"
]
},
"ListOSPolicyAssignments": {
"methods": [
"list_os_policy_assignments"
]
},
"ListVulnerabilityReports": {
"methods": [
"list_vulnerability_reports"
]
},
"UpdateOSPolicyAssignment": {
"methods": [
"update_os_policy_assignment"
]
}
}
},
"grpc-async": {
"libraryClient": "OsConfigZonalServiceAsyncClient",
"rpcs": {
"CreateOSPolicyAssignment": {
"methods": [
"create_os_policy_assignment"
]
},
"DeleteOSPolicyAssignment": {
"methods": [
"delete_os_policy_assignment"
]
},
"GetInstanceOSPoliciesCompliance": {
"methods": [
"get_instance_os_policies_compliance"
]
},
"GetInventory": {
"methods": [
"get_inventory"
]
},
"GetOSPolicyAssignment": {
"methods": [
"get_os_policy_assignment"
]
},
"GetVulnerabilityReport": {
"methods": [
"get_vulnerability_report"
]
},
"ListInstanceOSPoliciesCompliances": {
"methods": [
"list_instance_os_policies_compliances"
]
},
"ListInventories": {
"methods": [
"list_inventories"
]
},
"ListOSPolicyAssignmentRevisions": {
"methods": [
"list_os_policy_assignment_revisions"
]
},
"ListOSPolicyAssignments": {
"methods": [
"list_os_policy_assignments"
]
},
"ListVulnerabilityReports": {
"methods": [
"list_vulnerability_reports"
]
},
"UpdateOSPolicyAssignment": {
"methods": [
"update_os_policy_assignment"
]
}
}
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# Marker file for PEP 561.
# The google-cloud-osconfig package uses inline types.
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# -*- 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.
#
Original file line number Diff line number Diff line change
@@ -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",
)
Loading

0 comments on commit 23862dc

Please sign in to comment.