Skip to content
Permalink
Browse files
feat: add v1alpha (#80)
Googlers see b/186567237
  • Loading branch information
parthea committed Jun 9, 2021
1 parent c484cb6 commit 493ac75a5fec0185fa15415fe4feffe0c36ca7e9
Showing with 13,358 additions and 5 deletions.
  1. +0 −1 .coveragerc
  2. +0 −1 .github/.OwlBot.yaml
  3. +18 −3 docs/index.rst
  4. +10 −0 docs/osconfig_v1alpha/os_config_zonal_service.rst
  5. +6 −0 docs/osconfig_v1alpha/services.rst
  6. +7 −0 docs/osconfig_v1alpha/types.rst
  7. +88 −0 google/cloud/osconfig_v1alpha/__init__.py
  8. +143 −0 google/cloud/osconfig_v1alpha/gapic_metadata.json
  9. +2 −0 google/cloud/osconfig_v1alpha/py.typed
  10. +15 −0 google/cloud/osconfig_v1alpha/services/__init__.py
  11. +22 −0 google/cloud/osconfig_v1alpha/services/os_config_zonal_service/__init__.py
  12. +1,341 −0 google/cloud/osconfig_v1alpha/services/os_config_zonal_service/async_client.py
  13. +1,611 −0 google/cloud/osconfig_v1alpha/services/os_config_zonal_service/client.py
  14. +715 −0 google/cloud/osconfig_v1alpha/services/os_config_zonal_service/pagers.py
  15. +35 −0 google/cloud/osconfig_v1alpha/services/os_config_zonal_service/transports/__init__.py
  16. +370 −0 google/cloud/osconfig_v1alpha/services/os_config_zonal_service/transports/base.py
  17. +646 −0 google/cloud/osconfig_v1alpha/services/os_config_zonal_service/transports/grpc.py
  18. +654 −0 google/cloud/osconfig_v1alpha/services/os_config_zonal_service/transports/grpc_asyncio.py
  19. +86 −0 google/cloud/osconfig_v1alpha/types/__init__.py
  20. +106 −0 google/cloud/osconfig_v1alpha/types/config_common.py
  21. +212 −0 google/cloud/osconfig_v1alpha/types/instance_os_policies_compliance.py
  22. +466 −0 google/cloud/osconfig_v1alpha/types/inventory.py
  23. +722 −0 google/cloud/osconfig_v1alpha/types/os_policy.py
  24. +426 −0 google/cloud/osconfig_v1alpha/types/os_policy_assignments.py
  25. +41 −0 google/cloud/osconfig_v1alpha/types/osconfig_common.py
  26. +21 −0 google/cloud/osconfig_v1alpha/types/osconfig_zonal_service.py
  27. +353 −0 google/cloud/osconfig_v1alpha/types/vulnerability.py
  28. +187 −0 scripts/fixup_osconfig_v1alpha_keywords.py
  29. +15 −0 tests/unit/gapic/osconfig_v1alpha/__init__.py
  30. +5,040 −0 tests/unit/gapic/osconfig_v1alpha/test_os_config_zonal_service.py
@@ -2,7 +2,6 @@
branch = True

[report]
fail_under = 100
show_missing = True
omit =
google/cloud/osconfig/__init__.py
@@ -19,7 +19,6 @@ deep-remove-regex:
- /owl-bot-staging

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

deep-copy-regex:
@@ -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
---------

@@ -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:
@@ -0,0 +1,6 @@
Services for Google Cloud Osconfig v1alpha API
==============================================
.. toctree::
:maxdepth: 2

os_config_zonal_service
@@ -0,0 +1,7 @@
Types for Google Cloud Osconfig v1alpha API
===========================================

.. automodule:: google.cloud.osconfig_v1alpha.types
:members:
:undoc-members:
:show-inheritance:
@@ -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",
)
@@ -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"
]
}
}
}
}
}
}
}
@@ -0,0 +1,2 @@
# Marker file for PEP 561.
# The google-cloud-osconfig package uses inline types.
@@ -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.
#
@@ -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 493ac75

Please sign in to comment.